1 2013-12-03 Tom Tromey <tromey@redhat.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Doug Evans <dje@google.com>
4 Samuel Bronson <naesten@gmail.com>
6 Bring back gdb-add-index as a contrib script.
7 * contrib/gdb-add-index.sh: New file.
8 * NEWS: Note the addition.
10 2013-12-03 Samuel Bronson <naesten@gmail.com>
12 * MAINTAINERS (Write After Approval): Add myself to the list.
14 2013-12-03 Joel Brobecker <brobecker@adacore.com>
16 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
18 2013-12-03 Joel Brobecker <brobecker@adacore.com>
20 * mi/mi-main.c: Remove trailing spaces throughout.
22 2013-12-03 Pedro Alves <palves@redhat.com>
23 Joel Brobecker <brobecker@adacore.com>
25 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
26 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
27 of a regular error when the GDB/MI command does not exist.
28 * mi/mi-main.c (mi_cmd_list_features): Add
29 "undefined-command-error-code".
30 (mi_print_exception): Print an "undefined-command"
31 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
32 * NEWS: Add entry documenting the new "code" variable in
33 "^error" result records.
35 2013-12-03 Joel Brobecker <brobecker@adacore.com>
37 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
38 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
39 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
40 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
41 field to output of "-list-features".
43 * NEWS: Add entry for new -info-gdb-mi-command.
45 2013-12-02 Doug Evans <dje@google.com>
46 Jan Kratochvil <jan.kratochvil@redhat.com>
48 * objfiles.c (allocate_objfile): Save original_name as an absolute
50 * objfiles.h (struct objfile): Expand comment on original_name.
51 * source.c (openp): Call gdb_abspath.
52 * utils.c (gdb_abspath): New function.
53 * utils.h (gdb_abspath): Declare.
55 2013-12-02 Pedro Alves <palves@redhat.com>
57 * dcache.c (dcache_read_line): Use target_read_raw_memory.
58 * target.c (target_read_raw_memory): New function.
59 (target_read_stack, target_write_memory, target_write_raw_memory):
61 (target_read_code): Add comment.
62 * target.h (target_read_raw_memory): Declare.
64 2013-12-02 Pedro Alves <palves@redhat.com>
66 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
69 2013-12-02 Pedro Alves <pedro@codesourcery.com>
70 Maciej W. Rozycki <macro@codesourcery.com>
72 * remote.c (putpkt_for_catch_errors): Remove function.
73 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
76 2013-12-02 Pedro Alves <palves@redhat.com>
79 * remote-notif.c (handle_notification): Return early if no
80 notification is found.
82 2013-12-02 Joel Brobecker <brobecker@adacore.com>
84 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
87 2013-12-02 Joel Brobecker <brobecker@adacore.com>
89 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
91 2013-12-02 Joel Brobecker <brobecker@adacore.com>
93 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
94 * ctf.c (ctf_start): Remove obsolete comment.
96 2013-12-02 Joel Brobecker <brobecker@adacore.com>
98 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
100 2013-11-30 Doug Evans <xdje42@gmail.com>
102 * auto-load.h (script_language): New members name, auto_load_enabled.
103 Add missing comments on struct members.
104 (auto_load_objfile_script): Delete.
105 * auto-load.c: #include "cli/cli-cmds.h".
106 (auto_load_gdb_scripts_enabled): New function.
107 (script_language_gdb): Update, add new members.
108 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
109 and call to maybe_add_script moved to caller.
110 (auto_load_objfile_script_1): Auto-load safe-checking and
111 call to maybe_add_script moved here.
112 (auto_load_objfile_script): Make static. Early exit if support for
113 scripting language hasn't been compiled in, or auto-loading has been
115 (source_section_scripts): Argument "source_name" renamed to
116 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
117 with section_name. Skip loading script if support for scripting
118 language hasn't been compiled in, or auto-loading has been disabled.
119 Call language->source_script_for_objfile instead of calling
120 source_python_script_for_objfile directly.
121 (load_auto_scripts_for_objfile): Update.
122 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
123 (gdbpy_load_auto_script_for_objfile): Delete.
124 (auto_load_python_scripts_enabled): New function.
125 (script_language_python): Update, add new members.
126 (gdbpy_script_language_defn): New function.
127 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
128 (gdbpy_script_language_defn): Declare.
130 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
131 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
132 (source_section_scripts): Moved here from py-auto-load.c.
133 (auto_load_section_scripts): Ditto.
134 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
135 auto-load.c, renamed AUTO_SECTION_NAME.
136 (source_section_scripts, auto_load_section_scripts): Moved to
139 2013-11-30 Yao Qi <yao@codesourcery.com>
141 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
143 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
145 * gdbarch.sh: Remove include of "gdb_string.h", replace by
148 2013-11-29 Doug Evans <xdje42@gmail.com>
150 * python/py-auto-load.c (source_section_scripts): Move comment to
151 more relevant location.
154 * python/py-breakpoint.c: Remove trailing whitespace.
155 * python/py-cmd.c: Ditto.
156 * python/py-evts.c: Ditto.
157 * python/py-finishbreakpoint.c: Ditto.
158 * python/py-frame.c: Ditto.
159 * python/py-function.c: Ditto.
160 * python/py-inferior.c: Ditto.
161 * python/py-infthread.c: Ditto.
162 * python/py-param.c: Ditto.
163 * python/py-prettyprint.c: Ditto.
164 * python/py-symbol.c: Ditto.
165 * python/py-type.c: Ditto.
166 * python/py-utils.c: Ditto.
167 * python/py-value.c: Ditto.
168 * python/python-internal.h: Ditto.
169 * python/python.c: Ditto.
171 2013-11-29 Pedro Alves <palves@redhat.com>
173 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
175 2013-11-29 Pedro Alves <palves@redhat.com>
177 * breakpoint.c (build_target_condition_list): Release previous
179 (build_target_command_list): Release previous commands.
180 (bp_location_dtor): Release target conditions and commands.
181 * remote.c (remote_add_target_side_condition): Don't release
183 (remote_add_target_side_commands): Don't release commands.
185 2013-11-29 Yao Qi <yao@codesourcery.com>
186 Pedro Alves <palves@redhat.com>
188 * dcache.c (dcache_read_line): Use current_target.beneath
189 instead of ¤t_target.
190 * target.c (memory_xfer_partial_1): Factor code out to ...
191 (raw_memory_xfer_partial): ... it. New function.
192 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
193 is TARGET_OBJECT_RAW_MEMORY.
195 2013-11-28 Doug Evans <xdje42@gmail.com>
197 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
198 breakpoint_object. All uses updated.
199 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
200 breakpoint_object. All uses updated.
201 * python.c (*): All uses of breakpoint_object updated.
202 * python.h (*): All uses of breakpoint_object updated.
203 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
204 * python/py-finishbreakpoint.c (*): Ditto.
206 2013-11-28 Doug Evans <xdje42@gmail.com>
208 * configure.ac: Add comments delineating libpython and libmcheck.
209 * configure: Regenerate.
211 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
212 Pedro Alves <palves@redhat.com>
214 * valprint.c (value_check_printable): If the value is entirely
215 unavailable, print a single "<unavailable>" instead of printing
218 2013-11-28 Pedro Alves <palves@redhat.com>
220 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
221 Add "set debug frame" output.
222 (frame_stop_reason_symbol_string): New function.
224 2013-11-28 Pedro Alves <palves@redhat.com>
226 * frame-unwind.c (default_frame_unwind_stop_reason): Return
227 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
228 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
230 2013-11-28 Pedro Alves <palves@redhat.com>
232 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
233 set the unwind stop reason to UNWIND_OUTERMOST, not
234 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
236 2013-11-28 Pedro Alves <palves@redhat.com>
238 * frame.c (frame_unwind_register): Say the register was "not
239 saved" instead of "optimized out".
241 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
244 * configure: Rebuild.
245 * configure.ac: Tighten cygwin detection check.
247 2013-11-27 Pedro Alves <palves@redhat.com>
249 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
250 register in the previous frame's arch.
252 2013-11-27 Pedro Alves <palves@redhat.com>
254 * frame-unwind.c (frame_unwind_got_optimized): Return
255 an lval_register value instead of a not_lval value.
257 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
259 * frame.c: Include "valprint.h".
260 (frame_unwind_register_value): Use value_optimized_out.
261 * value.c (value_fetch_lazy): Likewise.
263 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
265 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
267 2013-11-26 Tom Tromey <tromey@redhat.com>
269 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
272 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
274 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
275 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
276 (HAS_MPX): New macro.
277 (HAS_AVX): New macro.
278 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
280 2013-11-25 Keith Seitz <keiths@redhat.com>
283 * c-exp.y (classify_inner_name): If no matching symbol was
284 found, try looking up the token as a base class.
285 Likewise if a constructor was found.
286 * cp-namespace.c (find_type_baseclass_by_name): New function.
287 * cp-support.h (find_type_baseclass_by_name): Declare.
288 * valops.c (value_struct_elt_for_reference): If we get
289 a non-static field, try to get a value based on the
290 current instance, if any.
292 2013-11-24 Yao Qi <yao@codesourcery.com>
294 * disasm.c (dis_asm_read_memory): Call target_read_code
295 instead of target_read_memory.
297 2013-11-24 Yao Qi <yao@codesourcery.com>
299 * NEWS: Add note on new "set code-cache" option.
300 * target-dcache.c (code_cache_enabled_1): New variable.
301 (code_cache_enabled): New variable.
302 (show_code_cache, set_code_cache): New function.
303 (code_cache_enabled_p): New function.
304 (_initialize_target_dcache): Register command.
305 * target-dcache.h (code_cache_enabled_p): Declare.
306 * target.c (memory_xfer_partial_1):Handle
307 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
308 (target_read_code): New function.
309 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
311 (target_read_code): Declare.
313 2013-11-24 Yao Qi <yao@codesourcery.com>
315 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
316 (stack_cache_enabled_1): ... this. New variable.
317 (stack_cache_enabled_p): Rename to ...
318 (stack_cache_enabled): ... this. New variable.
319 (set_stack_cache_enabled_p): Rename to ...
320 (set_stack_cache): ... this. Update caller.
321 (show_stack_cache_enabled_p): Rename to ...
322 (show_stack_cache): ... this. Update caller.
323 (stack_cache_enabled): Rename to ...
324 (stack_cache_enabled_p): ... this. Update caller.
325 (_initialize_target_dcache): Replace "data cache" with
326 "target memory cache".
327 * target-dcache.h (stack_cache_enabled): Remove declaration.
328 (stack_cache_enabled_p): Add declaration.
330 2013-11-23 Doug Evans <xdje42@gmail.com>
332 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
335 2013-11-23 Doug Evans <xdje42@gmail.com>
337 * python/py-frame.c (frapy_block): Fix error message text.
339 2013-11-23 Doug Evans <xdje42@gmail.com>
341 * cli/cli-script.c (multi_line_command_p): New function.
342 (recurse_read_control_structure, read_command_lines_1): Call it.
343 (execute_control_command): Consistently have a blank line between
346 2013-11-22 Sterling Augustine <saugustine@google.com>
349 * valprint.c (read_string): Set new variable fetchlen based on
350 fetchlimit and size. Use it in call to partial_memory_read.
353 2013-11-22 Tom Tromey <tromey@redhat.com>
356 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
357 the return address column is unspecified.
359 2013-11-22 Tom Tromey <tromey@redhat.com>
360 Pedro Alves <palves@redhat.com>
363 * value.c (value_fetch_lazy): Internal error if
364 get_frame_register_value returns the same register.
366 2013-11-22 Pedro Alves <palves@redhat.com>
367 Tom Tromey <tromey@redhat.com>
369 * frame.c (frame_stash_add): Now returns whether a frame with the
370 same ID was already known.
371 (compute_frame_id): New function, factored out from get_frame_id.
372 (get_frame_id): No longer lazilly compute the frame id here.
373 (get_prev_frame_if_no_cycle): New function. Detects wider stack
375 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
376 and checking for stack cycles here.
378 2013-11-22 Pedro Alves <palves@redhat.com>
381 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
382 this frame and the new previous frame, not between this frame and
385 2013-11-22 Pedro Alves <palves@redhat.com>
388 * dwarf2-frame.c (struct dwarf2_frame_cache)
389 <checked_tailcall_bottom, entry_cfa_sp_offset,
390 entry_cfa_sp_offset_p>: New fields.
391 (dwarf2_frame_cache): Adjust to use the new cache fields instead
392 of locals. Don't call dwarf2_tailcall_sniffer_first here.
393 (dwarf2_frame_prev_register): Call it here, but only once.
395 2013-11-21 Doug Evans <xdje42@gmail.com>
397 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
398 (type_equality_entry): Move here from python/py-type.c.
399 (type_equality_entry_d): Ditto.
400 (compare_maybe_null_strings, check_types_equal): Ditto.
401 (check_types_worklist, types_deeply_equal): Ditto.
402 * gdbtypes.h (types_deeply_equal): Declare.
403 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
404 (typy_richcompare): Update.
406 2013-11-20 Joel Brobecker <brobecker@adacore.com>
408 * python/py-value.c (is_intlike): Delete.
409 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
410 by use of is_integral_type.
411 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
412 by use of is_integral_type and check for TYPE_CODE_PTR.
414 2013-11-20 Tom Tromey <tromey@redhat.com>
416 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
418 * gnulib/aclocal.m4: Update.
419 * gnulib/config.in: Update.
420 * gnulib/configure: Update.
421 * gnulib/import/Makefile.am: Update.
422 * gnulib/import/Makefile.in: Update.
423 * gnulib/import/errno.in.h: Remove.
424 * gnulib/import/intprops.h: Remove.
425 * gnulib/import/m4/errno_h.m4: Remove.
426 * gnulib/import/m4/gnulib-cache.m4: Update.
427 * gnulib/import/m4/gnulib-comp.m4: Update.
428 * gnulib/import/m4/strerror.m4: Remove.
429 * gnulib/import/m4/sys_socket_h.m4: Remove.
430 * gnulib/import/strerror-override.c: Remove.
431 * gnulib/import/strerror-override.h: Remove.
432 * gnulib/import/strerror.c: Remove.
433 * gnulib/update-gnulib.sh: Update.
435 2013-11-20 Yao Qi <yao@codesourcery.com>
437 * target-dcache.c (target_dcache_get_or_init): Call
438 set_address_space_data if 'dcache' is NULL.
440 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
442 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
444 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
446 * python/lib/gdb/command/bound_register.py: New file.
447 * data-directory/Makefile.in: Copy bond_register.py to the right path
448 to be initialized at gdb startup.
450 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
452 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
454 (amd64_linux_read_description): Add initialization for MPX and
456 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
457 (amd64_linux_gregset_reg_offset): Add MPX registers.
458 (amd64_linux_core_read_description): Add initialization for MPX
460 (_initialize_amd64_linux_tdep): Initialize MPX targets.
461 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
462 register on the list.
463 (tdesc_amd64_mpx_linux) Add new target for MPX.
464 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
465 (amd64_mpx_names): MPX register names.
466 (amd64_init_abi): Add MPX register while initializing the ABI.
467 (_initialize_amd64_tdep): Initialize MPX targets.
468 * amd64-tdep.h (amd64_regnum): Add MPX registers.
469 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
471 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
473 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
474 registers on the range of registers to be read from
476 (i386_linux_read_description): Add case for MPX.
477 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
478 (i386_linux_gregset_reg_offset): Add MPX registers.
479 (i386_linux_core_read_description): Initialize also MPX.
480 (_initialize_i386_linux_tdep): Add mpx initialization.
481 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
483 (i386_regnum): Add MPX registers.
484 (I386_MPX_NUM_REGS): New macro.
485 (i386_bnd_regnum_p): New function.
486 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
487 number of registers to be the number of BNDSTATUS.
488 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
489 * i386-tdep.c: Include features/i386/i386-mpx.c.
490 (i386_mpx_names): Add MPX register names array.
491 (i386_bnd_names): Add bnd pseudo register names array.
492 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
494 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
495 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
497 (i386_bnd_type): New function.
498 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
500 (i386_pseudo_register_read_into_value): Add bnd case.
501 (i386_pseudo_register_write): Add bnd pseudo registers.
502 (i386_register_reggroup_p): Add MPX register to the group all.
503 (i386_validate_tdesc_p): Add MPX to the target description
505 (i386_pseudo_register_name): Add bnd pseudo registers.
506 (i386_gdbarch_init): Add MPX for architecture initialization.
507 (_initia_initialize_i386_tdep): Add mpx initialization.
508 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
510 (XSAVE_MPX_ADDR): New macro.
511 (i387_supply_xsave): Add MPX case.
512 (i387_collect_xsave): Add MPX case.
513 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
514 (I387_BNDCFGU_REGNUM): New macro.
515 (I387_NUM_MPX_REGS): New macro.
516 (I387_NUM_BND_REGS): New macro.
517 (I387_NUM_MPX_CTRL_REGS): New macro.
518 (I387_MPXEND_REGNUM): New macro.
519 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
520 (I386_XSTATE_BNDCFG): Likewise.
521 (I386_XSTATE_MPX_MASK): Likewise.
522 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
523 (I386_XSTATE_BNDREGS_SIZE): New macro.
524 (I386_XSTATE_BNDCFG_SIZE): Likewise.
525 (I386_XSTATE_SIZE): Adapt for MPX.
526 (I386_XSTATE_MAX_SIZE): Likewise.
528 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
530 * features/i386/Makefile: Adapts for using MPX registers.
531 * features/i386/32bit-mpx.xml: New file.
532 * features/i386/64bit-mpx.xml: Likewise.
533 * features/i386/amd64-mpx-linux.c: Likewise.
534 * features/i386/amd64-mpx-linux.xml: Likewise.
535 * features/i386/amd64-mpx.c: Likewise.
536 * features/i386/amd64-mpx.xml: Likewise.
537 * features/i386/i386-mpx-linux.c: Likewise.
538 * features/i386/i386-mpx-linux.xml: Likewise.
539 * features/i386/i386-mpx.c: Likewise.
540 * features/i386/i386-mpx.xml: Likewise.
541 * regformats/i386/amd64-mpx-linux.dat: New file.
542 * regformats/i386/amd64-mpx.dat: Likewise.
543 * regformats/i386/i386-mpx-linux.dat: Likewise.
544 * regformats/i386/i386-mpx.dat: Likewise.
546 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
548 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
549 Modified logic of creating a bitfield to be in sync with
552 2013-11-20 Will Newton <will.newton@linaro.org>
554 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
557 2013-11-20 Yao Qi <yao@codesourcery.com>
559 * progspace.h (struct address_space_data): Declare.
560 * target-dcache.c: Include "progspace.h".
561 (target_dache): Remove.
562 (target_dcache_aspace_key): New.
563 (target_dcache_cleanup): New function.
564 (target_dcache_init_p): Get data through
565 target_dcache_aspace_key.
566 (target_dcache_invalidate): Likewise.
567 (target_dcache_get): Likewise.
568 (target_dcache_get_or_init): Likewise.
569 (_initialize_target_dcache): Initialize
570 target_dcache_aspace_key.
572 2013-11-20 Yao Qi <yao@codesourcery.com>
574 * progspace.c (struct address_space): Update comments.
575 <REGISTRY_FIELDS>: New fields.
576 DEFINE_REGISTRY for address_space.
577 (new_address_space): Call address_space_alloc_data.
578 (free_address_space): Call address_space_free_data.
579 * progspace.h: Use DECLARE_REGISTRY.
581 2013-11-20 Yao Qi <yao@codesourcery.com>
583 * Makefile.in (SFILES):Add target-dcache.c.
584 (HFILES_NO_SRCDIR): Add target-dcache.h.
585 (COMMON_OBS): Add target-dcache.o.
586 * dcache.c: Remove inclusion to "target.h". Include
588 * memattr.c: Include "target-dcache.h".
590 * tracepoint.c: Likewise.
591 * target.c: (stack_cache_enabled_p_1): Move to
593 (stack_cache_enabled_p): Likewise.
594 (set_stack_cache_enabled_p): Likewise.
595 (show_stack_cache_enabled_p): Likewise.
596 (target_dcache, target_dcache_init_p): Likewise.
597 (target_dcache_invalidate): Likewise.
598 (target_dcache_get, target_dcache_get_or_init): Likewise.
599 (memory_xfer_partial_1): Call function stack_cache_enabled.
600 (initialize_target): Move code to target-dcache.c.
601 * target.h (target_dcache_invalidate): Move to
603 (target_dcache_get): Likewise.
604 * target-dcache.c: New.
605 * target-dcache.h: New.
607 2013-11-20 Yao Qi <yao@codesourcery.com>
609 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
612 2013-11-20 Yao Qi <yao@codesourcery.com>
614 * dcache.c (last_cache): Remove.
615 (dcache_free, dcache_init): Update.
617 (dcache_print_line): Add parameter 'dcache'. Replace
618 'target_dcache' with 'dcache'.
619 (dcache_info): Move code to dcache_info_1. Call
621 (dcache_info_1): New function.
622 (set_dcache_size): Call target_dcache_invalidate.
623 (set_dcache_line_size): Call target_dcache_invalidate.
624 * target.c (target_dcache_init_p): New function.
625 (target_dcache_invalidate): Check target_dcache_init_p first.
626 (target_dcache_get, target_dcache_get_or_init): New function.
627 (memory_xfer_partial_1): Adjust.
628 (initialize_target): Don't initialize 'target_dcache'.
629 * target.h (struct dcache_struct): Declare.
630 (target_dcache_get): Declare.
632 2013-11-19 Yao Qi <yao@codesourcery.com>
634 * varobj.c (varobj_get_type): Fix typo.
636 2013-11-19 Joel Brobecker <brobecker@adacore.com>
638 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
640 2013-11-19 Joel Brobecker <brobecker@adacore.com>
642 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
645 2013-11-18 Tom Tromey <tromey@redhat.com>
647 * common/gdb_stat.h: Remove.
648 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
649 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
650 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
651 * corefile.c: Use sys/stat.h, not gdb_stat.h.
652 * ctf.c: Use sys/stat.h, not gdb_stat.h.
653 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
654 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
655 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
656 * exec.c: Use sys/stat.h, not gdb_stat.h.
657 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
658 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
659 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
660 * jit.c: Use sys/stat.h, not gdb_stat.h.
661 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
662 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
663 * main.c: Use sys/stat.h, not gdb_stat.h.
664 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
665 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
666 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
667 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
668 * procfs.c: Use sys/stat.h, not gdb_stat.h.
669 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
670 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
671 * remote.c: Use sys/stat.h, not gdb_stat.h.
672 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
673 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
674 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
675 * source.c: Use sys/stat.h, not gdb_stat.h.
676 * symfile.c: Use sys/stat.h, not gdb_stat.h.
677 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
678 * symtab.c: Use sys/stat.h, not gdb_stat.h.
679 * top.c: Use sys/stat.h, not gdb_stat.h.
680 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
682 2013-11-18 Tom Tromey <tromey@redhat.com>
684 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
686 * gnulib/aclocal.m4: Update.
687 * gnulib/config.in: Update.
688 * gnulib/configure: Update.
689 * gnulib/import/Makefile.am: Update.
690 * gnulib/import/Makefile.in: Update.
691 * gnulib/import/m4/gnulib-cache.m4: Update.
692 * gnulib/import/m4/gnulib-comp.m4: Update.
693 * gnulib/import/m4/sys_stat_h.m4: New.
694 * gnulib/import/m4/time_h.m4: New.
695 * gnulib/import/sys_stat.in.h: New.
696 * gnulib/import/time.in.h: New.
698 2013-11-18 Tom Tromey <tromey@redhat.com>
700 * configure: Rebuild.
701 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
703 2013-11-18 Tom Tromey <tromey@redhat.com>
705 * configure: Rebuild.
706 * configure.ac: Don't check for unistd.h.
708 2013-11-18 Tom Tromey <tromey@redhat.com>
710 * configure: Rebuild.
711 * configure.ac: Don't check for stdlib.h
712 * defs.h: Include stdlib.h unconditionally.
714 2013-11-18 Tom Tromey <tromey@redhat.com>
716 * config.in: Rebuild.
717 * configure: Rebuild.
718 * configure.ac: Don't check for stddef.h.
719 * defs.h: Unconditionally include stddef.h. Remove duplicate
722 2013-11-18 Tom Tromey <tromey@redhat.com>
724 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
725 * common/gdb_dirent.h: Remove.
726 * common/filestuff.c: Use dirent.h.
727 * common/linux-osdata.c: Use dirent.h.
729 * config.in: Rebuild.
730 * configure: Rebuild.
731 * configure.ac: Don't use AC_HEADER_DIRENT.
732 * linux-fork.c: Use dirent.h
733 * linux-nat.c: Use dirent.h.
734 * nto-procfs.c: Use dirent.h.
735 * procfs.c: Use dirent.h.
737 2013-11-18 Tom Tromey <tromey@redhat.com>
739 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
740 * gnulib/aclocal.m4: Update.
741 * gnulib/config.in: Update.
742 * gnulib/configure: Update.
743 * gnulib/import/Makefile.am: Update.
744 * gnulib/import/Makefile.in: Update.
745 * gnulib/import/dirent.in.h: New.
746 * gnulib/import/m4/dirent_h.m4: New.
747 * gnulib/import/m4/gnulib-cache.m4: Update.
748 * gnulib/import/m4/gnulib-comp.m4: Update.
750 2013-11-18 Tom Tromey <tromey@redhat.com>
752 * configure: Rebuild.
753 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
756 2013-11-18 Tom Tromey <tromey@redhat.com>
758 * common/gdb_string.h: Remove.
759 * aarch64-tdep.c: Use string.h, not gdb_string.h.
760 * ada-exp.y: Use string.h, not gdb_string.h.
761 * ada-lang.c: Use string.h, not gdb_string.h.
762 * ada-lex.l: Use string.h, not gdb_string.h.
763 * ada-typeprint.c: Use string.h, not gdb_string.h.
764 * ada-valprint.c: Use string.h, not gdb_string.h.
765 * aix-thread.c: Use string.h, not gdb_string.h.
766 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
767 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
768 * alpha-nat.c: Use string.h, not gdb_string.h.
769 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
770 * alpha-tdep.c: Use string.h, not gdb_string.h.
771 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
772 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
773 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
774 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
775 * amd64-nat.c: Use string.h, not gdb_string.h.
776 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
777 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
778 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
779 * arch-utils.c: Use string.h, not gdb_string.h.
780 * arm-linux-nat.c: Use string.h, not gdb_string.h.
781 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
782 * arm-tdep.c: Use string.h, not gdb_string.h.
783 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
784 * armbsd-tdep.c: Use string.h, not gdb_string.h.
785 * armnbsd-nat.c: Use string.h, not gdb_string.h.
786 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
787 * armobsd-tdep.c: Use string.h, not gdb_string.h.
788 * avr-tdep.c: Use string.h, not gdb_string.h.
789 * ax-gdb.c: Use string.h, not gdb_string.h.
790 * ax-general.c: Use string.h, not gdb_string.h.
791 * bcache.c: Use string.h, not gdb_string.h.
792 * bfin-tdep.c: Use string.h, not gdb_string.h.
793 * breakpoint.c: Use string.h, not gdb_string.h.
794 * build-id.c: Use string.h, not gdb_string.h.
795 * buildsym.c: Use string.h, not gdb_string.h.
796 * c-exp.y: Use string.h, not gdb_string.h.
797 * c-lang.c: Use string.h, not gdb_string.h.
798 * c-typeprint.c: Use string.h, not gdb_string.h.
799 * c-valprint.c: Use string.h, not gdb_string.h.
800 * charset.c: Use string.h, not gdb_string.h.
801 * cli-out.c: Use string.h, not gdb_string.h.
802 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
803 * cli/cli-decode.c: Use string.h, not gdb_string.h.
804 * cli/cli-dump.c: Use string.h, not gdb_string.h.
805 * cli/cli-interp.c: Use string.h, not gdb_string.h.
806 * cli/cli-logging.c: Use string.h, not gdb_string.h.
807 * cli/cli-script.c: Use string.h, not gdb_string.h.
808 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
809 * cli/cli-utils.c: Use string.h, not gdb_string.h.
810 * coffread.c: Use string.h, not gdb_string.h.
811 * common/common-utils.c: Use string.h, not gdb_string.h.
812 * common/filestuff.c: Use string.h, not gdb_string.h.
813 * common/linux-procfs.c: Use string.h, not gdb_string.h.
814 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
815 * common/signals.c: Use string.h, not gdb_string.h.
816 * common/vec.h: Use string.h, not gdb_string.h.
817 * core-regset.c: Use string.h, not gdb_string.h.
818 * corefile.c: Use string.h, not gdb_string.h.
819 * corelow.c: Use string.h, not gdb_string.h.
820 * cp-abi.c: Use string.h, not gdb_string.h.
821 * cp-support.c: Use string.h, not gdb_string.h.
822 * cp-valprint.c: Use string.h, not gdb_string.h.
823 * cris-tdep.c: Use string.h, not gdb_string.h.
824 * d-lang.c: Use string.h, not gdb_string.h.
825 * dbxread.c: Use string.h, not gdb_string.h.
826 * dcache.c: Use string.h, not gdb_string.h.
827 * demangle.c: Use string.h, not gdb_string.h.
828 * dicos-tdep.c: Use string.h, not gdb_string.h.
829 * disasm.c: Use string.h, not gdb_string.h.
830 * doublest.c: Use string.h, not gdb_string.h.
831 * dsrec.c: Use string.h, not gdb_string.h.
832 * dummy-frame.c: Use string.h, not gdb_string.h.
833 * dwarf2-frame.c: Use string.h, not gdb_string.h.
834 * dwarf2loc.c: Use string.h, not gdb_string.h.
835 * dwarf2read.c: Use string.h, not gdb_string.h.
836 * elfread.c: Use string.h, not gdb_string.h.
837 * environ.c: Use string.h, not gdb_string.h.
838 * eval.c: Use string.h, not gdb_string.h.
839 * event-loop.c: Use string.h, not gdb_string.h.
840 * exceptions.c: Use string.h, not gdb_string.h.
841 * exec.c: Use string.h, not gdb_string.h.
842 * expprint.c: Use string.h, not gdb_string.h.
843 * f-exp.y: Use string.h, not gdb_string.h.
844 * f-lang.c: Use string.h, not gdb_string.h.
845 * f-typeprint.c: Use string.h, not gdb_string.h.
846 * f-valprint.c: Use string.h, not gdb_string.h.
847 * fbsd-nat.c: Use string.h, not gdb_string.h.
848 * findcmd.c: Use string.h, not gdb_string.h.
849 * findvar.c: Use string.h, not gdb_string.h.
850 * fork-child.c: Use string.h, not gdb_string.h.
851 * frame.c: Use string.h, not gdb_string.h.
852 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
853 * frv-tdep.c: Use string.h, not gdb_string.h.
854 * gdb.c: Use string.h, not gdb_string.h.
855 * gdb_bfd.c: Use string.h, not gdb_string.h.
856 * gdbarch.c: Use string.h, not gdb_string.h.
857 * gdbtypes.c: Use string.h, not gdb_string.h.
858 * gnu-nat.c: Use string.h, not gdb_string.h.
859 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
860 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
861 * go-exp.y: Use string.h, not gdb_string.h.
862 * go-lang.c: Use string.h, not gdb_string.h.
863 * go32-nat.c: Use string.h, not gdb_string.h.
864 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
865 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
866 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
867 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
868 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
869 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
870 * i386-linux-nat.c: Use string.h, not gdb_string.h.
871 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
872 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
873 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
874 * i386-tdep.c: Use string.h, not gdb_string.h.
875 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
876 * i386gnu-nat.c: Use string.h, not gdb_string.h.
877 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
878 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
879 * i387-tdep.c: Use string.h, not gdb_string.h.
880 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
881 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
882 * inf-child.c: Use string.h, not gdb_string.h.
883 * inf-ptrace.c: Use string.h, not gdb_string.h.
884 * inf-ttrace.c: Use string.h, not gdb_string.h.
885 * infcall.c: Use string.h, not gdb_string.h.
886 * infcmd.c: Use string.h, not gdb_string.h.
887 * inflow.c: Use string.h, not gdb_string.h.
888 * infrun.c: Use string.h, not gdb_string.h.
889 * interps.c: Use string.h, not gdb_string.h.
890 * iq2000-tdep.c: Use string.h, not gdb_string.h.
891 * irix5-nat.c: Use string.h, not gdb_string.h.
892 * jv-exp.y: Use string.h, not gdb_string.h.
893 * jv-lang.c: Use string.h, not gdb_string.h.
894 * jv-typeprint.c: Use string.h, not gdb_string.h.
895 * jv-valprint.c: Use string.h, not gdb_string.h.
896 * language.c: Use string.h, not gdb_string.h.
897 * linux-fork.c: Use string.h, not gdb_string.h.
898 * linux-nat.c: Use string.h, not gdb_string.h.
899 * lm32-tdep.c: Use string.h, not gdb_string.h.
900 * m2-exp.y: Use string.h, not gdb_string.h.
901 * m2-typeprint.c: Use string.h, not gdb_string.h.
902 * m32c-tdep.c: Use string.h, not gdb_string.h.
903 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
904 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
905 * m32r-rom.c: Use string.h, not gdb_string.h.
906 * m32r-tdep.c: Use string.h, not gdb_string.h.
907 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
908 * m68k-tdep.c: Use string.h, not gdb_string.h.
909 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
910 * m68klinux-nat.c: Use string.h, not gdb_string.h.
911 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
912 * m88k-tdep.c: Use string.h, not gdb_string.h.
913 * macrocmd.c: Use string.h, not gdb_string.h.
914 * main.c: Use string.h, not gdb_string.h.
915 * mdebugread.c: Use string.h, not gdb_string.h.
916 * mem-break.c: Use string.h, not gdb_string.h.
917 * memattr.c: Use string.h, not gdb_string.h.
918 * memory-map.c: Use string.h, not gdb_string.h.
919 * mep-tdep.c: Use string.h, not gdb_string.h.
920 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
921 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
922 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
923 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
924 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
925 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
926 * mi/mi-console.c: Use string.h, not gdb_string.h.
927 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
928 * mi/mi-interp.c: Use string.h, not gdb_string.h.
929 * mi/mi-main.c: Use string.h, not gdb_string.h.
930 * mi/mi-parse.c: Use string.h, not gdb_string.h.
931 * microblaze-rom.c: Use string.h, not gdb_string.h.
932 * microblaze-tdep.c: Use string.h, not gdb_string.h.
933 * mingw-hdep.c: Use string.h, not gdb_string.h.
934 * minidebug.c: Use string.h, not gdb_string.h.
935 * minsyms.c: Use string.h, not gdb_string.h.
936 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
937 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
938 * mips-tdep.c: Use string.h, not gdb_string.h.
939 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
940 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
941 * mipsread.c: Use string.h, not gdb_string.h.
942 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
943 * mn10300-tdep.c: Use string.h, not gdb_string.h.
944 * monitor.c: Use string.h, not gdb_string.h.
945 * moxie-tdep.c: Use string.h, not gdb_string.h.
946 * mt-tdep.c: Use string.h, not gdb_string.h.
947 * nbsd-tdep.c: Use string.h, not gdb_string.h.
948 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
949 * nto-procfs.c: Use string.h, not gdb_string.h.
950 * nto-tdep.c: Use string.h, not gdb_string.h.
951 * objc-lang.c: Use string.h, not gdb_string.h.
952 * objfiles.c: Use string.h, not gdb_string.h.
953 * opencl-lang.c: Use string.h, not gdb_string.h.
954 * osabi.c: Use string.h, not gdb_string.h.
955 * osdata.c: Use string.h, not gdb_string.h.
956 * p-exp.y: Use string.h, not gdb_string.h.
957 * p-lang.c: Use string.h, not gdb_string.h.
958 * p-typeprint.c: Use string.h, not gdb_string.h.
959 * parse.c: Use string.h, not gdb_string.h.
960 * posix-hdep.c: Use string.h, not gdb_string.h.
961 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
962 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
963 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
964 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
965 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
966 * printcmd.c: Use string.h, not gdb_string.h.
967 * procfs.c: Use string.h, not gdb_string.h.
968 * prologue-value.c: Use string.h, not gdb_string.h.
969 * python/py-auto-load.c: Use string.h, not gdb_string.h.
970 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
971 * ravenscar-thread.c: Use string.h, not gdb_string.h.
972 * regcache.c: Use string.h, not gdb_string.h.
973 * registry.c: Use string.h, not gdb_string.h.
974 * remote-fileio.c: Use string.h, not gdb_string.h.
975 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
976 * remote-mips.c: Use string.h, not gdb_string.h.
977 * remote-sim.c: Use string.h, not gdb_string.h.
978 * remote.c: Use string.h, not gdb_string.h.
979 * reverse.c: Use string.h, not gdb_string.h.
980 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
981 * ser-base.c: Use string.h, not gdb_string.h.
982 * ser-go32.c: Use string.h, not gdb_string.h.
983 * ser-mingw.c: Use string.h, not gdb_string.h.
984 * ser-pipe.c: Use string.h, not gdb_string.h.
985 * ser-tcp.c: Use string.h, not gdb_string.h.
986 * ser-unix.c: Use string.h, not gdb_string.h.
987 * serial.c: Use string.h, not gdb_string.h.
988 * sh-tdep.c: Use string.h, not gdb_string.h.
989 * sh64-tdep.c: Use string.h, not gdb_string.h.
990 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
991 * skip.c: Use string.h, not gdb_string.h.
992 * sol-thread.c: Use string.h, not gdb_string.h.
993 * solib-dsbt.c: Use string.h, not gdb_string.h.
994 * solib-frv.c: Use string.h, not gdb_string.h.
995 * solib-osf.c: Use string.h, not gdb_string.h.
996 * solib-spu.c: Use string.h, not gdb_string.h.
997 * solib-target.c: Use string.h, not gdb_string.h.
998 * solib.c: Use string.h, not gdb_string.h.
999 * somread.c: Use string.h, not gdb_string.h.
1000 * source.c: Use string.h, not gdb_string.h.
1001 * sparc-nat.c: Use string.h, not gdb_string.h.
1002 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1003 * sparc-tdep.c: Use string.h, not gdb_string.h.
1004 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1005 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1006 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1007 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1008 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1009 * spu-multiarch.c: Use string.h, not gdb_string.h.
1010 * spu-tdep.c: Use string.h, not gdb_string.h.
1011 * stabsread.c: Use string.h, not gdb_string.h.
1012 * stack.c: Use string.h, not gdb_string.h.
1013 * std-regs.c: Use string.h, not gdb_string.h.
1014 * symfile.c: Use string.h, not gdb_string.h.
1015 * symmisc.c: Use string.h, not gdb_string.h.
1016 * symtab.c: Use string.h, not gdb_string.h.
1017 * target.c: Use string.h, not gdb_string.h.
1018 * thread.c: Use string.h, not gdb_string.h.
1019 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1020 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1021 * top.c: Use string.h, not gdb_string.h.
1022 * tracepoint.c: Use string.h, not gdb_string.h.
1023 * tui/tui-command.c: Use string.h, not gdb_string.h.
1024 * tui/tui-data.c: Use string.h, not gdb_string.h.
1025 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1026 * tui/tui-file.c: Use string.h, not gdb_string.h.
1027 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1028 * tui/tui-out.c: Use string.h, not gdb_string.h.
1029 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1030 * tui/tui-source.c: Use string.h, not gdb_string.h.
1031 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1032 * tui/tui-win.c: Use string.h, not gdb_string.h.
1033 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1034 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1035 * typeprint.c: Use string.h, not gdb_string.h.
1036 * ui-file.c: Use string.h, not gdb_string.h.
1037 * ui-out.c: Use string.h, not gdb_string.h.
1038 * user-regs.c: Use string.h, not gdb_string.h.
1039 * utils.c: Use string.h, not gdb_string.h.
1040 * v850-tdep.c: Use string.h, not gdb_string.h.
1041 * valarith.c: Use string.h, not gdb_string.h.
1042 * valops.c: Use string.h, not gdb_string.h.
1043 * valprint.c: Use string.h, not gdb_string.h.
1044 * value.c: Use string.h, not gdb_string.h.
1045 * varobj.c: Use string.h, not gdb_string.h.
1046 * vax-tdep.c: Use string.h, not gdb_string.h.
1047 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1048 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1049 * windows-nat.c: Use string.h, not gdb_string.h.
1050 * xcoffread.c: Use string.h, not gdb_string.h.
1051 * xml-support.c: Use string.h, not gdb_string.h.
1052 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1053 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1055 2013-11-18 Tom Tromey <tromey@redhat.com>
1057 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1059 * gnulib/aclocal.m4: Update.
1060 * gnulib/config.in: Update.
1061 * gnulib/configure: Update.
1062 * gnulib/import/Makefile.am: Update.
1063 * gnulib/import/Makefile.in: Update.
1064 * gnulib/import/errno.in.h: New.
1065 * gnulib/import/intprops.h: New.
1066 * gnulib/import/m4/errno_h.m4: New.
1067 * gnulib/import/m4/gnulib-cache.m4: Update.
1068 * gnulib/import/m4/gnulib-comp.m4: Update.
1069 * gnulib/import/m4/strerror.m4: New.
1070 * gnulib/import/m4/strstr.m4: New.
1071 * gnulib/import/m4/sys_socket_h.m4: New.
1072 * gnulib/import/strerror-override.c: New.
1073 * gnulib/import/strerror-override.h: New.
1074 * gnulib/import/strerror.c: New.
1075 * gnulib/import/strstr.c: New.
1077 2013-11-18 Tom Tromey <tromey@redhat.com>
1079 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1082 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1084 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1085 * sparc-tdep.h: And its prototype.
1087 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1089 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1091 2013-11-18 Pedro Alves <palves@redhat.com>
1093 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1096 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1098 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1099 to -list-features output.
1101 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1103 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1104 <read_addr_from_reg>: Renames "read_reg".
1105 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1107 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1108 Use read_addr_from_reg in place of read_reg.
1109 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1110 in place of read_reg.
1111 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1112 dwarf_expr_read_reg.
1113 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1114 with dwarf_expr_read_addr_from_reg.
1115 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1116 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1117 needs_frame_read_addr_from_reg.
1119 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1123 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1125 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1128 2013-11-15 Tom Tromey <tromey@redhat.com>
1131 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1132 (classify_name): Likewise. Prefer a field of "this" over a
1134 (classify_inner_name, yylex): Update.
1136 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1138 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1139 Extend the documentation a bit.
1140 <get_reg_value>: New field.
1141 * dwarf2loc.c (dwarf_expr_get_reg_value)
1142 (needs_frame_get_reg_value): New functions.
1143 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1145 * dwarf2-frame.c (get_reg_value): New function.
1146 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1147 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1148 Use new callback to compute result_val.
1150 2013-11-15 Alan Modra <amodra@gmail.com>
1152 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1153 (ppc64_desc_entry_point): ..this. Update comments here and at
1155 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1156 ppc64_standard_linkage3): Update comments.
1157 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1158 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1160 (ppc64_standard_linkage4_target): New function.
1161 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1162 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1163 nop match. Fix comment wrap.
1165 2013-11-14 Pedro Alves <palves@redhat.com>
1167 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1168 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1170 2013-11-14 Pedro Alves <palves@redhat.com>
1172 * infrun.c (struct execution_control_state)
1173 <stepped_after_stopped_by_watchpoint>: New field.
1174 (get_inferior_stop_soon): New function.
1175 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1176 moved to struct execution_control_state -- adjust. Use
1177 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1179 (handle_signal_stop): New function, factored out from
1180 handle_inferior_event.
1182 2013-11-14 Pedro Alves <palves@redhat.com>
1184 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1186 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1188 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1189 Adjust to return a boolean.
1190 * breakpoint.h (enum bpstat_signal_value): Delete.
1191 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1192 (bpstat_explains_signal): Likewise.
1193 * infrun.c (handle_inferior_event) <random signal checks>:
1194 bpstat_explains_signal now returns a boolean - adjust. No longer
1195 consider hiding signals.
1197 2013-11-14 Pedro Alves <palves@redhat.com>
1199 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1200 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1201 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1203 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1204 instead of BPSTAT_SIGNAL_HIDE.
1205 * infrun.c (handle_inferior_event): Rework random signal checks.
1207 2013-11-14 Pedro Alves <palves@redhat.com>
1209 * infrun.c (struct execution_control_state): Remove
1210 'random_signal' field.
1211 (handle_syscall_event): Use bpstat_causes_stop instead of
1212 bpstat_explains_signal. Don't set ecs->random_signal.
1213 (handle_inferior_event): New 'random_signal' local.
1214 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1215 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1216 bpstat_explains_signal. Don't set ecs->random_signal.
1217 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1220 2013-11-14 Pedro Alves <palves@redhat.com>
1222 * infrun.c (handle_inferior_event): Move comment from the
1223 function's body to the function's description, adjusted.
1225 2013-11-14 Pedro Alves <palves@redhat.com>
1227 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1228 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1229 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1232 2013-11-14 Tom Tromey <tromey@redhat.com>
1234 * python/py-linetable.c (ltpy_has_line)
1235 (ltpy_get_all_source_lines): Fix loop termination condition.
1237 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1239 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1240 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1241 PARSE->LANGUAGE during command execution, if set.
1242 * mi/mi-parse.c: Add "language.h" #include.
1243 (mi_parse): Add parsing of "--language" command option.
1245 * NEWS: Add entry mentioning the new "--language" command option.
1247 2013-11-14 Pedro Alves <palves@redhat.com>
1248 Joel Brobecker <brobecker@adacore.com>
1250 * cli/cli-utils.h (extract_arg_const): Add declaration.
1251 * cli/cli-utils.c (extract_arg_const): New function.
1252 (extract_arg): Reimplement using extract_arg_const.
1254 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1256 * language.h: Add "symtab.h" #include.
1258 2013-11-13 Doug Evans <xdje42@gmail.com>
1260 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1261 specific breakpoints, don't evaluate breakpoint condition if
1264 2013-11-13 Keith Seitz <keiths@redhat.com>
1268 * cp-support.c (insepct_type): Add support for substituting
1269 namespace aliases, too.
1270 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1271 for DW_TAG_imported_declaration.
1272 (add_partial_symbol): Likewise.
1273 (process_die): Handle namespace aliases with
1274 read_namespace_alias.
1275 (die_needs_namespace): Add DW_TAG_imported_declaration.
1276 (read_namespace_alias): New function.
1277 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1278 (new_symbol_full): Handle DW_TAG_imported_declaration.
1280 2013-11-13 Keith Seitz <keiths@redhat.com>
1282 * p-exp.y (uptok): Make first parameter const.
1283 (yylex): Make `tokstart' and `tokptr' const.
1284 Don't copy the lexer input to a temporary buffer.
1286 Remove const workaround for parse_escape.
1287 Create a temporary buffer for a convenience variable instead
1288 of doing in-place modification of the input.
1289 If a match is found with a different case from the input,
1290 do not change the input at all.
1291 Use `tmp' to construct the resultant stoken instead of
1294 2013-11-13 Doug Evans <xdje42@gmail.com>
1296 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1298 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1300 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1301 entry with "ada-exceptions".
1303 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1305 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1306 after re-initialization of OBJFILE's obstack.
1308 2013-11-12 Doug Evans <xdje42@gmail.com>
1310 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1311 bs->stop != 0 on entry. Update function comment. Simplify early
1312 exit for frame mismatch. Reindent rest of function.
1314 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1319 2013-11-12 Doug Evans <dje@google.com>
1321 Work around gold/15646.
1322 * dwarf2read.c (read_index_from_section): Update comment.
1323 (struct dw2_symtab_iterator): New member global_seen.
1324 (dw2_symtab_iter_init): Initialize it.
1325 (dw2_symtab_iter_next): Skip duplicate global symbols.
1326 (dw2_expand_symtabs_matching): Ditto.
1328 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1330 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1331 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1333 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1334 (mi_cmd_info_ada_exceptions): New function.
1335 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1337 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1339 * ada-lang.h: #include "vec.h".
1340 (struct ada_exc_info): New.
1341 (ada_exc_info): New typedef.
1342 (DEF_VEC_O(ada_exc_info)): New vector.
1343 (ada_exceptions_list): Add declaration.
1344 * ada-lang.c (ada_is_exception_sym)
1345 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1346 (sort_remove_dups_ada_exceptions_list)
1347 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1348 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1349 (ada_exceptions_list_1, ada_exceptions_list)
1350 (info_exceptions_command): New function.
1351 (_initialize_ada_language): Add "info exception" command.
1353 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1356 * NEWS: Add linetable feature.
1357 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1358 * python/py-linetable.c: New file.
1359 * python/py-symtab.c (stpy_get_linetable): New function.
1360 * python/python-internal.h (symtab_to_linetable_object): Declare.
1361 (gdbpy_initialize_linetable): Ditto.
1362 * python/python.c (_initialize_python): Call
1363 gdbpy_initialize_linetable.
1365 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1367 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1368 the documentation of fields "except_string" and "condition".
1369 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1370 CONDITION on the heap before passing it to
1371 create_ada_exception_catchpoint.
1372 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1375 2013-11-11 Tom Tromey <tromey@redhat.com>
1377 * config.in, configure: Rebuild.
1378 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1380 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1382 * remote-sim.c (gdbsim_detach): Break declaration into
1383 shorter lines. No code change.
1385 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1387 * remote-sim.c (gdbsim_detach): Fix prototype.
1389 2013-11-08 Doug Evans <dje@google.com>
1391 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1392 (create_debug_types_hash_table): Only print debugging messages for
1393 each TU if dwarf2-read >= 2.
1394 (process_queue): Ditto.
1395 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1398 2013-11-08 Tom Tromey <tromey@redhat.com>
1400 * configure: Rebuild.
1401 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1403 2013-11-08 Tom Tromey <tromey@redhat.com>
1405 * configure, config.in: Rebuild.
1406 * configure.ac: Remove unused configury.
1408 2013-11-08 Tom Tromey <tromey@redhat.com>
1410 * m32c-tdep.c: Use gdb_string.h.
1412 2013-11-08 Tom Tromey <tromey@redhat.com>
1414 * configure, config.in: Rebuild.
1415 * configure.ac: Remove all link.h-related checks.
1417 2013-11-08 Tom Tromey <tromey@redhat.com>
1419 * acinclude.m4: Include common.m4.
1420 * common/common.m4: New file.
1421 * configure, config.in: Rebuild.
1422 * configure.ac: Use GDB_AC_COMMON.
1424 2013-11-08 Doug Evans <dje@google.com>
1426 * NEWS: Mention that "set debug symtab-create" now accepts a
1428 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1429 to set the symtab's primary flag.
1430 * jit.c (finalize_symtab): Ditto.
1431 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1432 * symfile.c (allocate_symtab): Only print debugging messages for
1433 symtab_create_debug levels 2 and higher.
1434 * symtab.c (symtab_create_debug): Change type to unsigned int.
1435 (set_symtab_primary): New function.
1436 (_initialize_symtab): Change "set debug symtab-create" to a
1438 * symtab.h (set_symtab_primary): Declare.
1439 (symtab_create_debug): Update decl.
1441 2013-11-08 Tom Tromey <tromey@redhat.com>
1443 * aix-thread.c (aix_thread_detach): Update.
1444 * corelow.c (core_detach): Update.
1445 * darwin-nat.c (darwin_detach): Update.
1446 * dec-thread.c (dec_thread_detach): Update.
1447 * gnu-nat.c (gnu_detach): Update.
1448 * go32-nat.c (go32_detach): Update.
1449 * inf-ptrace.c (inf_ptrace_detach): Update.
1450 * inf-ttrace.c (inf_ttrace_detach): Update.
1451 * linux-fork.c (linux_fork_detach): Update.
1452 * linux-fork.h (linux_fork_detach): Update.
1453 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1454 local for const-correctness.
1455 * linux-thread-db.c (thread_db_detach): Update.
1456 * monitor.c (monitor_detach): Update.
1457 * nto-procfs.c (procfs_detach): Update.
1458 * procfs.c (procfs_detach): Update.
1459 * record.c (record_detach): Update.
1460 * record.h (record_detach): Update.
1461 * remote-m32r-sdi.c (m32r_detach): Update.
1462 * remote-mips.c (mips_detach): Update.
1463 * remote-sim.c (gdbsim_detach): Update.
1464 * remote.c (remote_detach_1, remote_detach)
1465 (extended_remote_detach): Update.
1466 * sol-thread.c (sol_thread_detach): Update.
1467 * target.c (target_detach): Make "args" const.
1468 (init_dummy_target): Update.
1469 * target.h (struct target_ops) <to_detach>: Make argument const.
1470 (target_detach): Likewise.
1471 * windows-nat.c (windows_detach): Update.
1473 2013-11-07 Doug Evans <dje@google.com>
1476 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1477 and align fields for PT_GNU_RELRO segments.
1479 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1482 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1484 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1486 * NEWS: Document Python temporary breakpoint support.
1487 * python/py-breakpoint.c (bppy_get_temporary): New function.
1488 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1489 to temporary if True.
1491 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1493 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1494 removed to allow analyzing unconditional branch instructions
1495 with PC-relative offsets of zero.
1497 2013-11-07 Yao Qi <yao@codesourcery.com>
1499 * mi/mi-cmd-var.c: Include "language.h".
1500 (mi_cmd_var_info_expression): Get language name from
1502 * varobj.c (varobj_language_string): Remove.
1503 (variable_language): Remove declaration.
1504 (languages): Remove.
1505 (varobj_get_language): Change the type of return value.
1506 (variable_language): Remove.
1507 * varobj.h (enum varobj_languages): Remove.
1508 (varobj_language_string): Remove declaration.
1509 (varobj_get_language): Update declaration.
1511 2013-11-07 Yao Qi <yao@codesourcery.com>
1513 * language.h (struct language_defn) <la_natural_name>: New
1515 * ada-lang.c (ada_language_defn): Initialize field
1517 * c-lang.c (c_language_defn): Likewise.
1518 (cplus_language_defn, asm_language_defn): Likewise.
1519 * d-lang.c (d_language_defn): Likewise.
1520 * f-lang.c (f_language_defn): Likewise.
1521 * go-lang.c (go_language_defn): Likewise.
1522 * jv-lang.c (java_language_defn): Likewise.
1523 * language.c (unknown_language_defn ): Likewise.
1524 (auto_language_defn): Likewise.
1525 * m2-lang.c (m2_language_defn): Likewise.
1526 * objc-lang.c (objc_language_defn): Likewise.
1527 * opencl-lang.c (opencl_language_defn): Likewise.
1528 * p-lang.c (pascal_language_defn): Likewise.
1530 2013-11-07 Yao Qi <yao@codesourcery.com>
1532 * language.c (language_str): Return const char *.
1533 (add_language): Add const to 'language_names'
1534 * language.h (struct language_defn) <la_name>: Add const.
1535 (language_str: Update declaration.
1537 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1539 * s390-linux-nat.c (s390_read_description): Consider the TE field
1540 in the HWCAP for determining 'have_regset_tdb'.
1542 2013-11-06 Will Newton <will.newton@linaro.org>
1545 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1546 values. (read_partial_die): Likewise.
1548 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1551 * top.c (command_line_input): Unify interactivity tests to use
1552 input_from_terminal_p.
1553 * event-top.c (command_line_handler): Likewise.
1555 2013-11-06 Yao Qi <yao@codesourcery.com>
1557 * Makefile.in (check-perf): New target.
1559 2013-11-05 Will Newton <will.newton@linaro.org>
1562 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1563 (arm_print_float_info): Likewise.
1565 2013-11-04 Anton Blanchard <anton@samba.org>
1567 * target.c (memory_xfer_partial): Cap write to 4KB.
1569 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1571 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1572 probe scan even when the arch provides no get_longjmp_target.
1574 2013-10-31 Pedro Alves <palves@redhat.com>
1576 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1577 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1578 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1579 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1580 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1581 <bpstat handling>: If the bpstat chain wants the signal to be
1582 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1585 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1587 * breakpoint.c (update_watchpoint): Update error message and add
1588 an additional error message.
1590 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1592 * s390-tdep.h: Rename to...
1593 * s390-linux-tdep.h: ...here.
1594 * s390-tdep.c: Rename to...
1595 * s390-linux-tdep.c: ...here. Adjust #include.
1596 * s390-nat.c: Rename to...
1597 * s390-linux-nat.c: ...here. Adjust #include.
1598 * config/s390/s390.mh: Rename to...
1599 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1601 * configure.host: Reflect host rename "s390" -> "linux".
1602 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1603 * Makefile.in (ALL_TARGET_OBS): Likewise.
1604 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1606 (ALLDEPFILES): Reflect rename of .c files.
1608 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1610 * s390-nat.c: Whitespace cleanup.
1611 * s390-tdep.c: Likewise.
1612 * s390-tdep.h: Remove empty line at end of file.
1614 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1616 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1619 2013-10-29 Tom Tromey <tromey@redhat.com>
1621 * utils.c (reg): Move undefinition...
1622 * gdb_curses.h: ... here. Update comment to mention AIX.
1624 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1626 * exec.h (add_target_sections_of_objfile): New declaration.
1627 * exec.c (add_target_sections_of_objfile): New function.
1628 * symfile.c (add_symbol_file_command): Update current target sections.
1629 (remove_symbol_file_command): New command.
1630 (symfile_free_objfile): New function.
1631 (_initialize_symfile): Register observer for free_objfile events.
1632 * NEWS: Add description of the remove-symbol-file command.
1633 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1634 * objfiles.c (free_objfile): Notify free_objfile.
1635 (is_addr_in_objfile): New function.
1636 * objfiles.h (is_addr_in_objfile): New declaration.
1637 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1638 events instead of solib_unloaded events.
1639 (_initialize_printcmd): Register observer for free_objfile instead
1640 of solib_unloaded notifications.
1641 * solib.c (remove_user_added_objfile): New function.
1642 (_initialize_symfile): Add remove-symbol-file.
1644 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1646 * infcmd.c (default_print_one_register_info): Use val_print to
1647 print all values even optimized out or unavailable ones. Don't
1648 try to print a raw form of optimized out or unavailable values.
1650 2013-10-29 Yao Qi <yao@codesourcery.com>
1652 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1653 parameter 'arg' instead of from program_space_data.
1654 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1655 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1656 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1657 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1658 * inflow.c (inflow_inferior_data_cleanup): Get data from
1659 parameter 'arg' instead of inferior_data.
1660 * registry.h: Add comments.
1662 2013-10-28 Pedro Alves <palves@redhat.com>
1664 * breakpoint.c (watchpoints_triggered)
1665 <!target_stopped_data_address>: Hardcode return 1.
1667 2013-10-28 Pedro Alves <palves@redhat.com>
1669 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1672 2013-10-28 Pedro Alves <palves@redhat.com>
1674 * infrun.c (process_event_stop_test): New function, factored out
1675 from handle_inferior_event.
1676 (handle_inferior_event): 'process_event_stop_test' is now a
1677 function instead of a goto label -- adjust.
1679 2013-10-28 Pedro Alves <palves@redhat.com>
1681 * infrun.c (handle_inferior_event): Move process_event_stop_test
1682 goto label to the else branch of the ecs->random_signal check,
1683 along with FRAME and GDBARCH re-fetching.
1685 2013-10-28 Pedro Alves <palves@redhat.com>
1687 * infrun.c (switch_back_to_stepped_thread): New function, factored
1688 out from handle_inferior_event.
1689 (handle_inferior_event): Adjust to call
1690 switch_back_to_stepped_thread. Call it also at the tail of the
1691 random signal handling, and return, instead of also handling
1692 random signals just before the stepping tests.
1694 2013-10-28 Pedro Alves <palves@redhat.com>
1696 * infrun.c (clear_stop_func): Delete.
1697 (handle_inferior_event): Don't call clear_stop_func and don't
1698 clear 'ecs->random_signal'.
1700 2013-10-27 Yao Qi <yao@codesourcery.com>
1702 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1703 (varobj_create, varobj_get_path_expr): Update.
1704 (varobj_value_has_mutated, varobj_update): Likewise.
1705 (create_child_with_value, new_root_variable): Likewise.
1706 (number_of_children, name_of_variable): Likewise.
1707 (value_of_child, my_value_of_variable): Likewise.
1708 (varobj_value_is_changeable_p): Likewise.
1710 2013-10-25 Yao Qi <yao@codesourcery.com>
1712 * language.h (struct lang_varobj_ops): Declare.
1713 (struct language_defn) <la_varobj_ops>: New field.
1714 * ada-lang.c: Include "varobj.h"
1715 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1717 * c-lang.c: Include "varobj.h"
1718 (c_language_defn): Initialize field 'la_varobj_ops' with
1720 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1722 (asm_language_defn): Initialize field 'la_varobj_ops' with
1724 (minimal_language_defn): Likewise.
1725 * d-lang.c (d_language_defn): Likewise.
1726 * f-lang.c (f_language_defn): Likewise.
1727 * go-lang.c (go_language_defn): Likewise.
1728 * m2-lang.c (m2_language_defn): Likewise.
1729 * objc-lang.c (objc_language_defn): Likewise.
1730 * opencl-lang.c (opencl_language_defn): Likewise.
1731 * p-lang.c (pascal_language_defn): Likewise.
1732 * language.c (unknown_language_defn): Likewise.
1733 (auto_language_defn): Likewise.
1734 (local_language_defn): Likewise.
1735 * jv-lang.c (java_language_defn): Initialize field
1736 'la_varobj_ops' with java_varobj_ops.
1737 * varobj.c (varobj_create): Update.
1738 * varobj.h (default_varobj_ops): Define macro.
1740 2013-10-25 Pedro Alves <palves@redhat.com>
1742 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1744 (cp_print_static_field): If the value is entirely optimized out,
1745 print <optimized out> here.
1746 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1748 * p-valprint.c (pascal_object_print_static_field): If the value is
1749 entirely optimized out, print <optimized out> here.
1750 * valops.c (do_search_struct_field)
1751 (value_struct_elt_for_reference): No longer handle a NULL static
1753 * value.c (value_static_field): Return an optimized out value
1756 2013-10-25 Yao Qi <yao@codesourcery.com>
1758 * remote.c (remote_traceframe_info): Return early if
1759 traceframe is not selected.
1761 2013-10-25 Yao Qi <yao@codesourcery.com>
1763 * tracepoint.c (traceframe_fun): Remove.
1764 (traceframe_sal): Remove.
1765 (set_traceframe_context): Add local variables.
1767 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1769 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1772 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1774 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1775 failure from register information collection.
1777 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1779 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1781 (linux_corefile_thread_callback): Update accordingly.
1782 (linux_make_corefile_notes): Likewise.
1784 2013-10-24 Pedro Alves <palves@redhat.com>
1786 * NEWS (New options): Mention set/show startup-with-shell.
1787 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1789 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1790 startup-with-shell'.
1791 (show_startup_with_shell): New function.
1792 (_initialize_fork_child): Register the set/show startup-with-shell
1794 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1795 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1796 * procfs.c (procfs_init_inferior): Remove comment.
1797 * infcmd.c (startup_with_shell): New global.
1798 * inferior.h (startup_with_shell): Declare global.
1799 (STARTUP_WITH_SHELL): Delete.
1800 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1802 2013-10-23 Pedro Alves <palves@redhat.com>
1804 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1805 * common/signals.c: Include "gdb_assert.h".
1806 (signals): New field 'symbol'.
1807 (SET): Use the 'symbol' parameter.
1808 (gdb_signal_to_symbol_string): New function.
1809 * infrun.c (handle_inferior_event) <random signal>: In debug
1810 output, print the random signal enum as string in addition to its
1812 * target/waitstatus.c (target_waitstatus_to_string): Print the
1813 signal's enum value as string instead of the (POSIX) signal name.
1815 2013-10-23 Gary Benson <gbenson@redhat.com>
1818 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1819 from 32 to 18. Adjusted fscanf format string accordingly.
1820 (Avoids leaving cmd unterminated.)
1821 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1822 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1823 that local_address and remote_address will not overflow.
1824 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1825 leaving dependencies unterminated. Parse size as "%u" to match
1828 2013-10-22 Pedro Alves <palves@redhat.com>
1830 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1831 set ecs->random signal.
1833 2013-10-22 Pedro Alves <palves@redhat.com>
1835 * infrun.c (keep_going): Update comments.
1837 2013-10-22 Pedro Alves <palves@redhat.com>
1839 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1840 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1842 2013-10-22 Pedro Alves <palves@redhat.com>
1844 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1846 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1847 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1848 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1849 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1850 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1851 (GDB_SIGNAL_LAST): Change description string.
1852 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1853 Adjust to signal renaming.
1854 * darwin-nat.c (darwin_decode_message): Likewise.
1856 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1858 * MAINTAINERS (Write After Approval): Add myself to the list.
1860 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1862 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1863 forced off, downgrade them to software watchpoints if possible,
1864 and error out if not possible.
1865 (watch_command_1): Move watchpoint type selection closer to
1866 watchpoint creation, and extend the comments.
1868 2013-10-18 Pedro Alves <palves@redhat.com>
1871 * infrun.c (handle_inferior_event): Keep going if we got a random
1872 signal we should not stop for, instead of falling through to the
1875 2013-10-18 Yao Qi <yao@codesourcery.com>
1877 * c-varobj.c (cplus_number_of_children): Fix indentation.
1879 2013-10-17 Tom Tromey <tromey@redhat.com>
1882 * printcmd.c (printcmd): Call gdb_flush.
1884 2013-10-17 Tom Tromey <tromey@redhat.com>
1886 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1887 (elf_locate_sections): Update.
1889 2013-10-17 Yao Qi <yao@codesourcery.com>
1891 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1892 * ada-varobj.c: Remove the include of ada-varobj.h.
1893 (ada_varobj_get_number_of_children): Declare.
1894 (ada_varobj_get_name_of_child): Make it static.
1895 (ada_varobj_get_path_expr_of_child): Likewise.
1896 (ada_varobj_get_value_of_child): Likewise.
1897 (ada_varobj_get_type_of_child): Likewise.
1898 (ada_varobj_get_value_of_array_variable): Likewise.
1899 * ada-varobj.h: Remove.
1901 2013-10-17 Yao Qi <yao@codesourcery.com>
1903 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1904 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1905 * ada-varobj.c: Include "varobj.h".
1906 (ada_number_of_children): New. Moved from varobj.c.
1907 (ada_name_of_variable, ada_name_of_child): Likewise.
1908 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1909 (ada_type_of_child, ada_value_of_variable): Likewise.
1910 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1911 (ada_varobj_ops): New.
1912 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1913 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1914 * gdbtypes.h (get_target_type): Declare.
1915 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1917 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1918 (ANONYMOUS_UNION_NAME): Likewise.
1919 (get_type, get_value_type, get_target_type): Remove declarations.
1920 (value_get_print_value, varobj_value_get_print_value): Likewise.
1921 (c_number_of_children, c_name_of_variable): Likewise.
1922 (c_name_of_child, c_path_expr_of_child): Likewise.
1923 (c_value_of_child, c_type_of_child): Likewise.
1924 (c_value_of_variable, cplus_number_of_children): Likewise.
1925 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1926 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1927 (cplus_value_of_child, cplus_type_of_child): Likewise.
1928 (cplus_value_of_variable, java_number_of_children): Likewise.
1929 (java_name_of_variable, java_name_of_child): Likewise.
1930 (java_path_expr_of_child, java_value_of_child): Likewise.
1931 (java_type_of_child, java_value_of_variable): Likewise.
1932 (ada_number_of_children, ada_name_of_variable): Likewise.
1933 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1934 (ada_value_of_child, ada_type_of_child): Likewise.
1935 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1936 (ada_value_has_mutated): Likewise.
1937 (struct language_specific): Move it to varobj.h.
1938 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1939 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1941 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1943 (is_anonymous_child): Move it to c-varobj.c and rename to
1944 varobj_is_anonymous_child. Caller update.
1945 (get_type): Move it to c-varobj.c.
1946 (get_value_type): Rename it varobj_get_value_type. Make it
1948 (get_target_type): Move it gdbtypes.c.
1949 (varobj_formatted_print_options): New function.
1950 (value_get_print_value): Rename it to
1951 varobj_value_get_print_value and make it extern.
1952 (varobj_value_is_changeable_p): Make it extern.
1953 (adjust_value_for_child_access): Move it to c-varobj.c.
1954 (default_value_is_changeable_p): Rename it to
1955 varobj_default_value_is_changeable_p. Make it extern.
1956 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1957 (c_name_of_child, c_path_expr_of_child): Likewise.
1958 (c_value_of_child, c_type_of_child): Likewise.
1959 (c_value_of_variable, cplus_number_of_children): Likewise.
1960 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1961 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1962 (cplus_value_of_child, cplus_type_of_child): Likewise.
1963 (cplus_value_of_variable): Likewise.
1964 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1965 (java_name_of_child, java_path_expr_of_child): Likewise.
1966 (java_value_of_child, java_type_of_child): Likewise.
1967 (java_value_of_variable): Likewise.
1968 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1969 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1970 (ada_value_of_child, ada_type_of_child): Likewise.
1971 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1972 (ada_value_has_mutated): Likewise.
1973 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1974 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1975 (c_varobj_ops, cplus_varobj_ops): Declare.
1976 (java_varobj_ops, ada_varobj_ops): Declare.
1977 (varobj_default_value_is_changeable_p): Declare.
1978 (varobj_value_is_changeable_p): Declare.
1979 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1980 (varobj_get_path_expr_parent): Declare.
1981 (varobj_value_get_print_value): Declare.
1982 (varobj_formatted_print_options): Declare.
1983 (varobj_restrict_range): Declare.
1985 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1987 * target/waitstatus.h (target_waitkind): Remove spurious
1988 character from the comments.
1990 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1992 * gdbarch.sh (get_longjmp_target): Add method documentation.
1993 * gdbarch.h: Regenerate.
1995 2013-10-16 Tom Tromey <tromey@redhat.com>
1997 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2000 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2002 * gcore.in: Call GDB using the full path to the gcore script.
2003 Error out if the GDB binary is not found.
2005 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2008 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2011 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2014 * target.c (target_disable_btrace): Fix invalid return value for
2016 (target_teardown_btrace): Likewise.
2018 2013-10-14 Yao Qi <yao@codesourcery.com>
2020 * varobj.c (struct varobj): Move most of the fields to
2022 (struct varobj_dynamic): New struct.
2023 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2024 (varobj_has_more): Likewise.
2025 (dynamic_varobj_has_child_method): Likewise.
2026 (update_dynamic_varobj_children): Likewise.
2027 (varobj_get_num_children): Likewise.
2028 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2029 (install_new_value_visualizer): Likewise.
2030 (install_new_value_visualizer, install_new_value): Likewise.
2031 (varobj_update, new_variable, free_variable): Likewise.
2032 (my_value_of_variable, value_get_print_value): Likewise.
2033 (install_visualizer): Change the type of parameter 'var' to
2034 'struct varobjd_dynamic *'. Callers update.
2035 * varobj.h (struct varobj): Moved from varobj.c.
2036 (struct varobj) <dynamic>: New field.
2038 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2040 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2041 as the preferred name of r30.
2042 * nios2-linux-tdep.c (reg_offsets): Likewise.
2043 * features/nios2-cpu.xml: Likewise.
2044 * features/nios2-linux.c: Regenerated.
2045 * features/nios2.c: Regenerated.
2046 * regformats/nios2-linux.dat: Regenerated.
2048 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2050 Canonicalize directories for EXEC_FILENAME.
2051 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2053 * utils.c (gdb_realpath_keepfile): New function.
2054 * utils.h (gdb_realpath_keepfile): New declaration.
2056 2013-10-11 Doug Evans <dje@google.com>
2058 * Makefile.in (GDBFLAGS): New variable.
2061 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2063 * NEWS: Add entry documenting the new "-catch-assert" and
2064 "-catch-exception" GDB/MI commands.
2066 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2068 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2070 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2071 "enabled". Set B->ENABLE_STATE accordingly.
2072 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2074 (create_ada_exception_catchpoint): Add declaration.
2075 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2076 (create_ada_exception_catchpoint): Make non-static. Add new
2077 parameter "disabled". Use it in call to
2078 init_ada_exception_breakpoint.
2079 (catch_ada_exception_command): Add parameter "enabled" in call
2080 to create_ada_exception_catchpoint.
2081 (catch_assert_command): Likewise.
2083 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2085 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2086 "catch-exception" commands.
2087 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2088 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2090 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2092 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2093 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2094 of all its enumerates with "ada_". Update the rest of this
2097 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2099 * ada-lang.c (ada_decode_exception_location): Delete.
2100 (create_ada_exception_catchpoint): Remove arguments "sal",
2101 "addr_string" and "ops". Add argument "ex_kind" instead.
2102 Adjust implementation accordingly, calling ada_exception_sal
2103 to get the entities it no longer gets passed as arguments.
2104 Document the function's arguments.
2105 (catch_ada_exception_command): Use catch_ada_exception_command_split
2106 instead of ada_decode_exception_location, and update call to
2107 create_ada_exception_catchpoint.
2108 (catch_ada_assert_command_split): Renames
2109 ada_decode_assert_location. Remove parameters "addr_string" and
2110 "ops", and now returns void. Adjust implementation accordingly.
2111 Update the function documentation.
2112 (catch_assert_command): Use catch_ada_assert_command_split
2113 instead of ada_decode_assert_location. Update call to
2114 create_ada_exception_catchpoint.
2116 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2118 * utils.h (perror_warning_with_name): Add declaration.
2119 * utils.c (perror_warning_with_name): New function.
2120 * cli/cli-cmds.c (source_script_with_search): Add call to
2121 perror_warning_with_name if from_tty is nul.
2123 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2125 * utils.c (perror_string): New function, extracted out of
2126 throw_perror_with_name.
2127 (throw_perror_with_name): Rework to use perror_string.
2129 2013-10-11 Yao Qi <yao@codesourcery.com>
2131 * remote.c (discard_pending_stop_replies_in_queue): Update
2133 (struct stop_reply) <rs>: New field.
2134 (remove_stop_reply_of_remote_state): New function.
2135 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2136 Callers update. Pass remove_stop_reply_of_remote_state to
2138 (remote_parse_stop_reply): Initialize field 'rs'.
2140 2013-10-10 Will Newton <will.newton@linaro.org>
2142 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2145 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2147 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2148 serial_baud_show_cmd.
2149 (_initialize_cli_cmds): Delete the code creating the
2150 "set/show remotebaud" commands.
2151 * serial.c (baud_rate): Move here from top.c.
2152 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2153 (_initialize_serial): Create "set/show serial baud" commands.
2154 Add "set/show remotebaud" command aliases.
2155 * top.c (baud_rate): Moved to serial.c.
2156 * NEWS: Document the new "set/show serial baud" commands,
2157 replacing "set/show remotebaud".
2159 2013-10-09 Pedro Alves <palves@redhat.com>
2161 * breakpoint.c (insert_bp_location): Use memory_error_message to
2162 build the memory error string.
2163 * c-lang.c: Include "gdbcore.h".
2164 (c_get_string): Use memory_error to throw error.
2165 (target_xfer_memory_error): Delete.
2166 (memory_error_message): New, factored out from
2167 target_xfer_memory_error.
2168 (memory_error): Change parameter type to target_xfer_error.
2170 (read_memory): Use memory_error instead of
2171 target_xfer_memory_error.
2172 * gdbcore.h: Include "target.h".
2173 (memory_error): Change parameter type to target_xfer_error.
2174 (memory_error_message): Declare function.
2175 * target.c (target_read_memory, target_read_stack)
2176 (target_write_memory, target_write_raw_memory): Return
2177 TARGET_XFER_E_IO on error. Adjust comments.
2178 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2180 * target.h (target_read, target_insert_breakpoint)
2181 (target_remove_breakpoint): Adjust comments.
2182 * valprint.c (partial_memory_read): Rename parameter, and adjust
2184 (val_print_string): Use memory_error_message to build the memory
2187 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2190 result variable. Rename variable fopen_e_ever_failed to
2191 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2193 2013-10-09 Pedro Alves <palves@redhat.com>
2195 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2196 (monitor_write_memory_longlongs, monitor_write_memory_block):
2197 Constify 'myaddr' parameter.
2198 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2200 (monitor_xfer_partial): New function.
2201 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2202 hook. Install a to_xfer_partial hook.
2204 2013-10-09 Tom Tromey <tromey@redhat.com>
2206 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2207 bfd_get_alt_debug_link_info.
2209 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 New flag OBJF_NOT_FILENAME.
2212 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2213 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2215 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2216 symbol_file_add_from_bfd.
2217 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2219 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2221 * objfiles.h (OBJF_NOT_FILENAME): New.
2223 2013-10-08 Tom Tromey <tromey@redhat.com>
2225 * Makefile.in (SFILES): Add build-id.c.
2226 (HFILES_NO_SRCDIR): Add build-id.h.
2227 * build-id.c: New file, largely from elfread.c. Modified
2229 * build-id.h: New file.
2230 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2231 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2232 Search for dwz file using build-id.
2233 * elfread.c (build_id_bfd_get, build_id_verify)
2234 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2236 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2238 * ada-lang.c (compare_names_with_case): Renamed from
2239 compare_names, adding a new parameter "casing" and its handling.
2240 New function documentation.
2241 (compare_names): New function, implemented using
2242 compare_names_with_case.
2244 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2246 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2248 2013-10-07 Tom Tromey <tromey@redhat.com>
2250 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2251 demangled_names_hash.
2252 (free_objfile): Don't delete the demangled_names_hash.
2253 * objfiles.h (struct objfile_per_bfd_storage)
2254 <demangled_names_hash>: New field.
2255 (struct objfile) <demangled_names_hash>: Move to
2256 objfile_per_bfd_storage.
2257 * symfile.c (reread_symbols): Don't delete the
2258 demangled_names_hash.
2259 * symtab.c (create_demangled_names_hash): Update.
2260 (symbol_set_names): Update.
2262 2013-10-07 Tom Tromey <tromey@redhat.com>
2264 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2265 needs_relocations>: New fields.
2266 (gdb_bfd_requires_relocations): New function.
2267 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2268 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2269 the BFD needs relocations applied.
2271 2013-10-07 Pedro Alves <palves@redhat.com>
2273 PR breakpoints/11568
2274 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2275 the thread list" instead of "gone".
2277 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2279 * NEWS: Mention new convenience variable $_exitsignal.
2280 * corelow.c (core_open): Reset exit convenience variables. Set
2281 $_exitsignal to the uncaught signal which generated the corefile.
2282 * infrun.c (handle_inferior_event): Reset exit convenience
2283 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2284 (clear_exit_convenience_vars): New function.
2285 * inferior.h (clear_exit_convenience_vars): New prototype.
2287 2013-10-06 Yao Qi <yao@codesourcery.com>
2289 * varobj.h: Add comments to enum varobj_languages.
2291 2013-10-04 Doug Evans <dje@google.com>
2293 Add support for DWP file format version 2.
2294 * NEWS: Mention support for DWP file format version 2.
2295 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2296 union of asection, containing_section. New fields virtual_offset
2297 and is_virtual. Change type of readin filed from int to char.
2298 (dwo_sections, dwo_file): Tweak comments.
2299 (dwp_v2_section_ids): New enum.
2300 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2302 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2304 (virtual_v2_dwo_sections): New struct.
2305 (dwp_hash_table): New fields version, nr_columns. Change type of
2306 section_pool field to a union.
2307 (dwp_file): New field version.
2308 (dwarf2_has_info): Check for virtual sections.
2309 (get_containing_section): New function.
2310 (get_section_bfd_owner, get_section_bfd_section): Call it.
2311 (dwarf2_locate_sections): Update.
2312 (dwarf2_section_empty_p): Update.
2313 (dwarf2_read_section): Handle virtual sections.
2314 (locate_dwz_sections): Update.
2315 (create_dwp_hash_table): Document and handle V2 format.
2316 (locate_v1_virtual_dwo_sections): Renamed from
2317 locate_virtual_dwo_sections and update. All callers updated.
2318 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2319 Delete arg htab. Rename arg section_index to unit_index.
2320 All callers updated.
2321 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2323 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2324 (lookup_dwo_unit_in_dwp): Add V2 support.
2325 (dwarf2_locate_dwo_sections): Update.
2326 (dwarf2_locate_common_dwp_sections): Renamed from
2327 dwarf2_locate_dwp_sections and update. All callers updated.
2328 (dwarf2_locate_v2_dwp_sections): New function.
2329 (open_and_init_dwp_file): Add V2 support.
2330 (read_str_index): New locals str_section, str_offsets_section.
2332 2013-10-04 Pedro Alves <palves@redhat.com>
2334 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2335 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2336 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2337 describing comments with references to ptid.h.
2338 * common/ptid.h: Remove intro description of constructors,
2339 accessors and predicates.
2340 (struct ptid): Reformat.
2341 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2342 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2343 describing comments.
2345 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2347 * aix-thread.c (sync_threadlists): Add missing ')' in call
2350 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2352 * procfs.c (procfs_init_inferior): Fix typo causing the build
2355 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2357 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2359 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2361 * mi/mi-main.c (run_one_inferior): Add function description.
2362 Make ARG a pointer to an integer whose value determines whether
2363 we should "run" or "start" the program.
2364 (mi_cmd_exec_run): Add handling of the "--start" option.
2365 Reject all other command-line options.
2366 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2368 2013-10-04 Yao Qi <yao@codesourcery.com>
2370 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2371 (struct notif_client) <pending_event>: Moved
2372 to struct remote_notif_state.
2374 (struct remote_notif_state) <pending_event>: New field.
2375 (notif_event_xfree): Declare.
2376 * remote-notif.c (handle_notification): Adjust.
2377 (notif_event_xfree): New function.
2378 (do_notif_event_xfree): Call notif_event_xfree.
2379 (remote_notif_state_xfree): Call notif_event_xfree to free
2380 each element in field pending_event.
2381 * remote.c (discard_pending_stop_replies): Remove declaration.
2382 (discard_pending_stop_replies_in_queue): Declare.
2383 (remote_close): Call discard_pending_stop_replies_in_queue
2384 instead of discard_pending_stop_replies.
2385 (remote_start_remote): Adjust.
2386 (stop_reply_xfree): Call notif_event_xfree.
2387 (notif_client_stop): Adjust initialization.
2388 (remote_notif_remove_all): Rename it to ...
2389 (remove_stop_reply_for_inferior): ... this. Update comments.
2390 Don't check INF is NULL.
2391 (discard_pending_stop_replies): Return early if notif_state is
2392 NULL. Adjust. Don't check INF is NULL.
2393 (remote_notif_get_pending_events): Adjust.
2394 (discard_pending_stop_replies_in_queue): New function.
2395 (remote_wait_ns): Likewise.
2397 2013-10-04 Yao Qi <yao@codesourcery.com>
2399 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2400 (notif_queue): Remove.
2401 (remote_notif_process): Add one parameter 'notif_queue'.
2402 Update comments. Callers update.
2403 (remote_async_get_pending_events_token): Remove.
2404 (remote_notif_register_async_event_handler): Remove.
2405 (remote_notif_unregister_async_event_handler): Remove.
2406 (handle_notification): Add parameter 'notif_queue'. Update
2407 comments. Callers update.
2408 (notif_xfree): Remove.
2409 (remote_notif_state_allocate): New function.
2410 (remote_notif_state_xfree): New function.
2411 (_initialize_notif): Remove code to allocate queue.
2412 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2413 (struct remote_notif_state): New.
2414 (handle_notification): Update declaration.
2415 (remote_notif_process): Likewise.
2416 (remote_notif_register_async_event_handler): Remove.
2417 (remote_notif_unregister_async_event_handler): Remove.
2418 (remote_notif_state_allocate): Declare.
2419 (remote_notif_state_xfree): Declare.
2420 * remote.c (struct remote_state) <notif_state>: New field.
2421 (remote_close): Don't call
2422 remote_notif_unregister_async_event_handler. Call
2423 remote_notif_state_xfree.
2424 (remote_open_1): Don't call
2425 remote_notif_register_async_event_handler. Call
2426 remote_notif_state_allocate.
2428 2013-10-04 Yao Qi <yao@codesourcery.com>
2430 * varobj.c (create_child_with_value): Remove 'const' from the
2431 type of parameter 'name'.
2432 (varobj_add_child): Likewise.
2433 (install_dynamic_child): Remove 'const' from the type of
2435 (varobj_add_child): Likewise.
2436 (create_child_with_value): Likewise. Update comments. Don't
2438 (update_dynamic_varobj_children): Duplicate 'name'
2439 and pass it to install_dynamic_child.
2441 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2443 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2444 conversion logic to occur after PyLong_Check. Comment on order
2445 change significance.
2446 * python/py-arch.c (archpy_disassemble): Comment on order of
2447 conversion for integers and longs.
2449 2013-10-03 Pedro Alves <palves@redhat.com>
2451 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2452 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2453 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2454 PTRACE_O_TRACEFORK is not supported.
2455 (linux_test_for_tracesysgood): New function.
2456 (linux_test_for_tracefork): New function, factored out from
2457 linux_check_ptrace_features, and also don't kill child_pid here.
2459 2013-10-03 Tristan Gingold <gingold@adacore.com>
2461 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2462 Remove verbose error reporting. Use detected state to
2463 thread_set_state call.
2464 (i386_darwin_dr_get): Fix return type. Remove verbose error
2466 Remove trailing spaces.
2468 2013-10-02 Pedro Alves <palves@redhat.com>
2470 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2471 val_print_optimized_out.
2472 * jv-valprint.c (java_print_value_fields): Likewise.
2473 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2474 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2475 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2476 new optimized out value.
2477 * findvar.c (address_from_register): Likewise.
2478 * frame.c (put_frame_register): Tweak error string to say the
2479 register was not saved, rather than optimized out.
2480 * infcmd.c (default_print_one_register_info): Adjust call to
2481 val_print_optimized_out. Use value_of_register instead of
2482 get_frame_register_value.
2483 * mi/mi-main.c (output_register): Use value_of_register instead of
2484 get_frame_register_value.
2485 * valprint.c (valprint_check_validity): Likewise.
2486 (val_print_optimized_out): New value parameter. If the value is
2487 lval_register, print <not saved> instead.
2488 (value_check_printable, val_print_scalar_formatted): Adjust calls
2489 to val_print_optimized_out.
2490 * valprint.h (val_print_optimized_out): New value parameter.
2491 * value.c (struct value) <optimized_out>: Extend comment.
2492 (error_value_optimized_out): New function.
2493 (require_not_optimized_out): Use it. Use a different string for
2494 lval_register values.
2495 * value.h (error_value_optimized_out): New declaration.
2496 * NEWS: Mention <not saved>.
2498 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2500 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2501 strcmp to compare two symtab filenames.
2503 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2505 * symtab.c (search_symbols_equal): Delete.
2506 (sort_search_symbols_remove_dups): Replace call to
2507 search_symbols_equal by call to compare_search_syms,
2508 adjusting as necessary.
2510 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2513 * python/python.c: Document gdb.execute command in Python help.
2515 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2517 * python/py-frame.c (frame_info_to_frame_object): Use
2518 gdbpy_convert_exception. Clean up Python object on failure.
2520 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2522 * python/lib/gdb/command/frame_filters.py
2523 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2524 (ShowFrameFilterPriority.invoke): Ditto.
2526 2013-10-01 Keith Seitz <keiths@redhat.com>
2528 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2529 (parse_linespec): Make 'argptr' const.
2530 Remove temporary cast of 'argptr' to const char **.
2531 (decode_line_full): Pass const pointer to parse_linespec.
2532 (decode_line_1): Likewise.
2533 (decode_objc): Make local variable 'new_argptr' const.
2534 (find_function_symbols): Remove temporary cast to char *
2536 * objc-lang.c (find_imps): Make argument 'method' const.
2538 * objc-lang.h (find_imps): Likewise.
2540 2013-10-01 Keith Seitz <keiths@redhat.com>
2542 * completer.c (skip_quoted_chars): Make all arguments const.
2544 (skip_quoted): Likewise.
2545 * completer.h (skip_quoted_chars): Likewise.
2546 (skip_quoted): Likewise.
2547 * defs.h (skip_quoted): Remove duplicate declaration.
2548 * jv-exp.y: Include completer.h.
2549 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2550 * p-exp.y: Include completer.h.
2552 2013-10-01 Keith Seitz <keiths@redhat.com>
2554 * c-exp.y (parse_number): Make first argument const.
2555 Make a copy of the input to manipulate.
2556 (c_parse_escape): Make first argument const.
2557 Make local variable 'tokptr' const.
2558 (parse_string_or_char): Make first two arguments const.
2559 (macro_original_text): Make const.
2560 (lex_one_token): Make local variable 'tokstart' const.
2561 Likewise for local variables named 'p'.
2562 Cast away const for struct stoken (temporary).
2563 * c-lang.h (c_parse_escpae): Make first argument const.
2564 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2566 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2568 * f-exp.y (parse_number): Make first argument const.
2569 (match_string_literal): Make local variable 'tokstart'
2571 (yylex): Make local variable 'p' const.
2572 Cast away const for struct stoken (temporary).
2573 * go-exp.y (parse_number): Make first argument const.
2574 (parse_string_or_char): Likewise.
2575 Make local variable 'tokstart' const.
2576 (lex_one_token): Likewise for numerous locals called 'p'.
2577 Cast away const for struct stoken (temporary).
2578 * jv-exp.y (parse_number): Make first argument const.
2579 Make local variables 'tokstart' and 'tokptr' const.
2580 Cast away const for call to skip_quoted (temporary).
2581 (yylex): Make local variable 'p' const.
2582 Cast away const for struct stoken (temporary).
2583 * m2-exp.y (parse_number): Make local variable 'p' const.
2584 (yylex): Likewise for 'tokstart'.
2585 Cast away const for struct stoken (temporary).
2586 Make local variable 'p' const.
2587 * macroexp.c (get_character_constant): Pass a const string
2589 (get_string_literal): Likewise.
2590 (macro_expand_next): Make first argument const.
2591 Cast away const for init_shared_buffer.
2592 * macroexp.h (macro_expand_next): Make first argument const.
2593 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2594 Pass a const string to c_parse_escape.
2595 Make local variables 'p' and 'namestart' const.
2596 * parse.c (lexptr): Make const.
2597 (prev_lexptr): Likewise.
2598 (find_template_name_end): Return const.
2599 Make argument const, too.
2600 (parse_exp_in_context): Make first argument const.
2601 Remove the entire const_hack.
2602 (parse_exp_in_context_1): Make first argument const.
2603 * parser-defs.h (find_template_name_end): Return const.
2604 Make argument const, too.
2605 (lexptr): Make const.
2606 (prev_lexptr): Likewise.
2607 * utils.c (parse_escape): Make second argument const.
2608 * utils.h (parse_escape): Likewise.
2610 2013-10-01 Keith Seitz <keiths@redhat.com>
2612 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2614 (block_lookup): Make 'raw_name' and 'name' const.
2615 * ada-lex.l (processString): Update for struct stoken.ptr.
2616 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2617 (operator_stoken): Likewise.
2618 (lex_one_token): Remove temporary cast to char * for
2620 * f-exp.y (yylex): Likewise.
2621 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2622 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2623 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2625 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2626 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2627 * linespec.c (struct ls_parser): Make 'stream' const.
2628 (find_parameter_list_end): Make argument 'input' and local
2630 (linespec_lexer_lex_string): Make local variables 'start' and
2632 Use skip_spaces_const instead of skip_spaces.
2633 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2635 (parse_linespec): Temporarily cast 'argptr' to const for
2636 'parser->lexer.stream'.
2637 * m2-exp.y (yylex): Remove temporary cast to char * for
2639 * objc-lang.c (add_msglist): Make local variable 'p' const.
2640 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2641 (exp : STRING): Make 'sp' const.
2642 (parse_number): Make argument 'p' const.
2643 * parser-defs.h (struct stoken): Make 'ptr' const.
2645 2013-10-01 Doug Evans <dje@google.com>
2647 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2649 2013-10-01 Yao Qi <yao@codesourcery.com>
2651 * varobj.c (c_value_of_root): Remove declaration.
2652 (cplus_value_of_root, java_value_of_root): Likewise.
2653 (ada_value_of_root): Likewise.
2654 (struct language_specific) <value_of_root>: Remove.
2655 (languages): Update initialization.
2656 (check_scope): Move earlier.
2657 (c_value_of_root): Move earlier and rename to ...
2658 (value_of_root_1): ... this.
2659 (value_of_root): Caller update.
2660 (cplus_value_of_root, java_value_of_root): Remove.
2661 (ada_value_of_root): Remove.
2663 2013-10-01 Yao Qi <yao@codesourcery.com>
2665 * varobj.c (varobj_format_string): Remove "unknown".
2666 (languages): Remove the first element.
2667 * varobj.h (enum varobj_languages): Remove vlang_c.
2669 2013-10-01 Yao Qi <yao@codesourcery.com>
2671 * varobj.c (struct language_specific) <language>: Remove.
2672 (languages): Update the initialization.
2674 2013-10-01 Yao Qi <yao@codesourcery.com>
2676 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2677 "solib-target.h". Include "windows-tdep.h".
2678 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2679 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2680 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2681 windows-tdep.o to gdb_target_obs.
2683 2013-10-01 Yao Qi <yao@codesourcery.com>
2685 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2687 (amd64_windows_init_abi): Don't call set_solib_ops and
2688 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2689 windows_init_abi instead.
2690 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2692 (i386_cygwin_init_abi): Don't call set_solib_ops,
2693 set_gdbarch_has_dos_based_file_system and
2694 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2695 windows_init_abi instead.
2696 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2697 (windows_init_abi): New function.
2698 (windows_iterate_over_objfiles_in_search_order): Make it
2700 * windows-tdep.h (windows_init_abi): Declare.
2701 (windows_iterate_over_objfiles_in_search_order): Remove
2704 2013-10-01 Jerome Guitton <guitton@adacore.com>
2706 Checked in by Joel Brobecker <brobecker@adacore.com>
2707 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2708 incomplete dictionnary instead of None in case of missing
2709 environment variables.
2710 (elinos_init): in case of an incomplete environment, best
2711 effort to load system libraries instead of abort.
2713 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2715 * ada-lang.c (ada_has_this_exception_support): Ignore
2716 mst_solib_trampoline minimal symbols.
2718 2013-09-30 Tristan Gingold <gingold@adacore.com>
2720 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2721 hardware watchpoint.
2722 (i386_darwin_dr_set): Support 32 and 64 bit states.
2723 (i386_darwin_dr_get): Likewise.
2724 (i386_darwin_dr_set_control): Make static.
2725 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2726 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2728 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2730 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2731 Replace TIDGET with ptid_get_lwp.
2732 Replace GET_LWP with ptid_get_lwp.
2733 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2734 Replace BUILD_THREAD with ptid_build.
2735 Replace BUILD_LWP with ptid_build.
2736 Replace PIDGET with ptid_get_pid.
2737 Replace TIDGET with ptid_get_lwp.
2738 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2739 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2740 Replace TIDGET with ptid_get_lwp.
2741 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2742 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2743 Replace TIDGET with ptid_get_lwp.
2744 Replace GET_LWP with ptid_get_lwp.
2745 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2747 * breakpoint.c: Likewise.
2748 * common/ptid.c (ptid_is_pid): Condense check for
2749 null_ptid and minus_one_ptid.
2750 (ptid_lwp_p): New function.
2751 (ptid_tid_p): New function.
2752 * common/ptid.h: Update comments for accessors.
2753 (ptid_lwp_p): New prototype.
2754 (ptid_tid_p): New prototype.
2755 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2756 * gcore.c: Replace PIDGET with ptid_get_pid.
2757 * gdbthread.h: Likewise.
2758 * gnu-nat.c: Likewise.
2759 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2760 Replace TIDGET with ptid_get_lwp.
2761 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2762 * hppanbsd-nat.c: Likewise.
2763 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2764 Replace TIDGET with ptid_get_lwp.
2765 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2766 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2767 * infcmd.c: Likewise.
2768 * inferior.h: Likewise.
2769 * inflow.c: Likewise.
2770 * infrun.c: Likewise.
2771 * linux-fork.c: Likewise.
2772 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2773 Replace GET_PID with ptid_get_pid.
2774 Replace is_lwp with ptid_lwp_p.
2775 Replace GET_LWP with ptid_get_lwp.
2776 Replace BUILD_LWP with ptid_build.
2778 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2780 * common/linux-btrace.c: Move sys/syscall.h out of the
2781 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2782 Also check for SYS_perf_event_open before attempting to buid.
2784 2013-09-27 Doug Evans <dje@google.com>
2786 * dwarf2read.c (dwarf2_section_info): Add comment.
2787 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2789 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2790 (dwarf2_read_section): Delete unused local "header". Add section
2791 name to error message.
2792 (create_dwo_in_dwp): Tweak comment.
2793 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2795 * dwarf2read.c (die_reader_specs): Tweak comment.
2796 (get_section_bfd_owner, get_section_bfd_section): New functions.
2797 (get_section_name, get_section_file_name): New functions.
2798 (get_section_id, get_section_flags): New functions.
2799 (*): Use new functions to access section fields.
2801 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2802 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2803 arg "htab". All callers updated.
2804 (create_debug_types_hash_table): Remove redundant copy of
2806 (create_dwo_in_dwp): Tweak comments.
2807 (read_str_index): Tweak comment. Record dwarf form name in static
2810 2013-09-27 Pedro Alves <palves@redhat.com>
2812 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2813 (remote_filename_p): Add comment.
2814 * remote.c (remote_filename_p): Adjust to use
2815 REMOTE_SYSROOT_PREFIX.
2816 * solib.c (solib_find): When deciding whether we need to add a
2817 directory separator, check whether the sysroot is "remote:"
2818 instead of checking whether the patch has a drive spec. Add
2821 2013-09-27 Pedro Alves <palves@redhat.com>
2823 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2825 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2828 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 Fix set debug frame output.
2831 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2832 SENTINEL_FRAME entry lower to match enum frame_type order.
2834 2013-09-26 Pierre Muller <muller@sourceware.org>
2836 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2837 AMD64_R15_REGNUM when a register index is expected.
2838 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2839 Substitute in array.
2840 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2841 (amd64_push_arguments): Substitute in integer_regnum array.
2843 2013-09-25 Doug Evans <dje@google.com>
2845 * objfiles.c (allocate_objfile): Move comment to better place.
2847 New option "set debug symfile on".
2848 * NEWS: Mention "set debug symfile".
2849 * Makefile.in (SFILES): Add symfile-debug.c.
2850 (COMMON_OBS): Add symfile-debug.o.
2851 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2852 objfile's symbol functions.
2853 * objfiles.h (objfile_set_sym_fns): Declare.
2854 * symfile-debug.c: New file.
2855 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2856 objfile's symbol functions.
2857 (reread_symbols): Ditto.
2859 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2861 (add_symtab_fns): Update prototype.
2862 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2863 (registered_sym_fns): ... this.
2864 (symtab_fns): Update.
2865 (add_symtab_fns): New arg "flavour". All callers updated.
2866 (find_sym_fns): Rewrite to use new sym_fns registry.
2868 * symfile.h (struct sym_fns): Add "objfile" argument to
2869 sym_read_linetable. All uses updated.
2871 * symtab.c (domain_name, search_domain_name): New functions.
2872 * symtab.h (domain_name, search_domain_name): Declare.
2874 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2875 map_matching_symbols so objfile is first. All uses updated.
2876 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2877 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2879 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2882 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2885 2013-09-24 Doug Evans <dje@google.com>
2887 * objfiles.c (free_objfile): Move comment.
2889 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2891 * ada-exp.y (string_to_operator): Delete.
2892 (dummy_string_to_ada_operator): Delete.
2894 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2897 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2899 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2900 call_dummy_integer_regs, and classify.
2901 * amd64-tdep.h (amd64_classify): Add declaration.
2902 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2903 (amd64_reg_class): Delete, moved to i386-tdep.h.
2904 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2905 Replace call to amd64_classify by call to tdep->classify.
2906 (amd64_push_arguments): Get the list of registers to use for
2907 passing integer parameters from the gdbarch tdep structure,
2908 rather than using a hardcoded one. Replace calls to amd64_classify
2909 by calls to tdep->classify.
2910 (amd64_push_dummy_call): Get the register number used for
2911 the "hidden" argument from tdep->call_dummy_integer_regs.
2912 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2913 and tdep->call_dummy_integer_regs. Set tdep->classify.
2915 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2918 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2919 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2920 where tdep->memory_args_by_pointer is non-zero.
2922 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2925 * i386-tdep.h (struct gdbarch_tdep): Add new field
2926 integer_param_regs_saved_in_caller_frame.
2927 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2928 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2930 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2932 * amd64-windows-tdep.c: #include "value.h"
2933 (amd64_windows_classify): Delete.
2934 (amd64_windows_passed_by_integer_register)
2935 (amd64_windows_passed_by_xmm_register)
2936 (amd64_windows_passed_by_pointer)
2937 (amd64_windows_adjust_args_passed_by_pointer)
2938 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2939 (amd64_windows_push_dummy_call): New functions.
2940 (amd64_windows_init_abi): Remove setting of
2941 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2942 tdep->classify, tdep->memory_args_by_pointer and
2943 tdep->integer_param_regs_saved_in_caller_frame.
2944 Add call to set_gdbarch_push_dummy_call.
2946 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2948 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2949 objfile->original_name.
2951 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2953 Pass down original filename for objfile.
2954 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2955 * elfread.c (elf_symfile_read): Likewise.
2956 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2957 longer set ORIGINAL_NAME.
2958 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2959 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2960 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2961 symbol_file_add_from_bfd call.
2962 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2963 (macho_check_dsym): Add parameter filenamep. Change function comment.
2965 (macho_symfile_read): New variable dsym_filename. Update
2966 macho_check_dsym call. Use it for symbol_file_add_separate.
2967 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2968 it. Use it for objfile->original_name.
2969 (objfile_name): Return OBFD's filename, if available.
2970 * objfiles.h (allocate_objfile): Add new parameter name.
2971 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2972 * symfile-mem.c (symbol_file_add_from_memory): Update
2973 symbol_file_add_from_bfd call.
2974 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2976 (symbol_file_add_with_addrs): New parameter name, add function comment
2977 for it. Remove variable name. Update allocate_objfile call.
2978 (symbol_file_add_separate): New parameter name, add function comment
2979 for it. Update symbol_file_add_with_addrs call.
2980 (symbol_file_add_from_bfd): New parameter name. Update
2981 symbol_file_add_with_addrs call.
2982 (symbol_file_add): Update symbol_file_add_from_bfd call.
2983 (reread_symbols): New variable original_name. Save
2984 objfile->original_name by it.
2985 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2988 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2990 Code cleanup: Add objfile_name accessor function.
2991 * ada-lang.c (is_known_support_routine): Use objfile_name.
2992 * auto-load.c (source_gdb_script_for_objfile)
2993 (auto_load_objfile_script): Likewise.
2994 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2995 * dbxread.c (dbx_symfile_read): Likewise.
2996 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2997 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2998 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2999 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3000 (lookup_dwp_signatured_type, lookup_dwo_unit)
3001 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3002 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3003 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3004 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3005 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3006 (read_subrange_type, load_partial_dies, read_partial_die)
3007 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3008 (die_containing_type, build_error_marker_type, lookup_die_type)
3009 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3010 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3011 (get_DW_AT_signature_type, write_psymtabs_to_index)
3012 (save_gdb_index_command): Likewise.
3013 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3015 * expprint.c (dump_subexp_body_standard): Likewise.
3016 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3017 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3019 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3020 obj_name, use objfile_name for it, use the variable.
3021 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3023 * machoread.c (macho_symtab_read, macho_check_dsym)
3024 (macho_symfile_relocate): Likewise.
3025 * maint.c (maintenance_translate_address): Likewise.
3026 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3027 * minsyms.c (install_minimal_symbols): Likewise.
3028 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3030 (filter_overlapping_sections): Use objfile_name.
3031 (objfile_name): New function.
3032 * objfiles.h (struct objfile): Rename field name to original_name.
3033 (objfile_name): New prototype.
3034 * printcmd.c (sym_info, address_info): Use objfile_name.
3035 * probe.c (parse_probes, collect_probes, compare_probes)
3036 (info_probes_for_ops): Likewise.
3037 * progspace.c (clone_program_space): Likewise.
3038 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3039 (maintenance_info_psymtabs): Likewise.
3040 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3041 (source_section_scripts): Likewise.
3042 * python/py-objfile.c (objfpy_get_filename): Likewise.
3043 * python/py-progspace.c (pspy_get_filename): Likewise.
3044 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3045 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3046 * solib.c (solib_read_symbols): Likewise.
3047 * stabsread.c (scan_file_globals): Likewise.
3048 * stap-probe.c (handle_stap_probe): Likewise.
3049 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3050 (find_separate_debug_file_by_debuglink): Likewise.
3051 (reread_symbols): Likewise. Use the objfile field name renamed to
3053 (allocate_symtab): Use objfile_name.
3054 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3055 (dump_objfile, dump_msymbols, dump_symtab_1)
3056 (maintenance_print_msymbols, maintenance_print_objfiles)
3057 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3058 * target.c (target_translate_tls_address, target_info): Likewise.
3059 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3062 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3065 * probe.c (parse_probes): Rename variable objfile_name to
3068 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3070 Remove solib-sunos.c.
3071 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3072 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3073 * objfiles.c (rt_common_objfile): Remove.
3074 (free_objfile): Remove rt_common_objfile comparison.
3075 * objfiles.h (rt_common_objfile): Remove.
3076 * solib-sunos.c: Remove.
3077 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3079 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3081 Remove a.out NetBSD and OpenBSD hosts.
3082 * NEWS (Removed native configurations): New.
3083 * config/arm/nbsdaout.mh: Remove.
3084 * config/i386/nbsdaout.mh: Remove.
3085 * config/i386/obsdaout.mh: Remove.
3086 * config/m68k/nbsdaout.mh: Remove.
3087 * config/sparc/nbsdaout.mh: Remove.
3088 * config/vax/nbsdaout.mh: Remove.
3089 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3090 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3091 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3093 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3094 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3095 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3097 2013-09-23 Tom Tromey <tromey@redhat.com>
3099 * linespec.c (struct minsym_and_objfile): Remove.
3100 (minsym_and_objfile_d): Remove.
3101 (struct linespec, struct collect_info, linespec_parse_basic)
3102 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3103 (compare_msymbols, find_method, find_function_symbols)
3104 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3105 (add_minsym, search_minsyms_for_name): Update.
3107 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3109 * regcache.c: Add include of valprint.h.
3110 (dump_endian_bytes): Delete.
3111 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3113 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3115 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3117 2013-09-19 Pedro Alves <palves@redhat.com>
3119 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3122 2013-09-19 Pedro Alves <palves@redhat.com>
3123 Thomas Schwinge <thomas@codesourcery.com>
3124 Yue Lu <hacklu.newborn@gmail.com>
3126 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3127 Take a gdb_byte pointer instead of a char pointer.
3129 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3130 gnu_xfer_partial helper.
3131 (gnu_xfer_partial): New function.
3132 (gnu_target): Don't install a deprecated_xfer_memory hook.
3133 Install a to_xfer_partial hook.
3135 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3138 * main.c (captured_main): Replace catch_command_errors by
3139 catch_command_errors_const. Twice.
3140 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3141 (symbol_file_add): Make name parameter const.
3142 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3143 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3144 variable name. Change their usage accordingly.
3145 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3147 (symbol_file_add_main): Make args parameter const.
3149 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3150 Ulrich Weigand <uweigand@de.ibm.com>
3152 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3154 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3156 2013-09-18 Pedro Alves <palves@redhat.com>
3157 Yue Lu <hacklu.newborn@gmail.com>
3159 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3160 (gnu_create_inferior)
3161 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3162 (set_sig_thread_cmd): Use the lwpid field of ptids to
3163 store/extract thread ids instead of the tid field.
3164 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3166 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3168 * infcmd.c (default_print_one_register_info): Add detection of
3169 optimized out values.
3170 (default_print_registers_info): Switch to using
3171 get_frame_register_value.
3173 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3175 * infrun.c (handle_inferior_event): Check if we know the
3176 function start address before setting a resume breakpoint.
3178 2013-09-18 Pedro Alves <palves@redhat.com>
3180 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3181 minus_one_ptid instead of looking at the ptid's tid field and
3182 comparing that to -1.
3184 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3186 * main.h (get_gdb_program_name): Remove extra whitespace.
3188 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3190 * main.h (get_gdb_program_name): Add declaration.
3191 * main.c (get_gdb_program_name): Add definition.
3193 2013-09-17 Doug Evans <dje@google.com>
3195 * dwarf2read.c: Move definitions of complaint functions to after
3196 forward declarations of local functions.
3198 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3199 Pedro Alves <palves@redhat.com>
3202 * breakpoint.c (remove_threaded_breakpoints): New function.
3203 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3204 as thread_exit observer.
3206 2013-09-17 Pedro Alves <palves@redhat.com>
3209 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3210 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3211 * corelow.c (core_open):
3212 * frame.h (print_stack_frame, print_frame_info): New
3213 'set_current_sal' parameter.
3214 * infcmd.c (finish_command, kill_command): Adjust call to
3216 * inferior.c (inferior_command): Likewise.
3217 * infrun.c (normal_stop): Likewise.
3218 * linux-fork.c (linux_fork_context): Likewise.
3219 * record-full.c (record_full_goto_entry, record_full_restore):
3221 * remote-mips.c (common_open): Likewise.
3222 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3224 (print_frame_info): New 'set_current_sal' parameter. Set the last
3225 displayed sal depending on the new paremeter instead of looking at
3227 (backtrace_command_1, select_and_print_frame, frame_command)
3228 (current_frame_command, up_command, down_command): Adjust call to
3230 * thread.c (print_thread_info, restore_selected_frame)
3231 (do_captured_thread_select): Adjust call to print_stack_frame.
3232 * tracepoint.c (tfind_1): Likewise.
3233 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3234 (mi_cmd_stack_info_frame): Likewise.
3235 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3236 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3238 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3240 * value.c (isvoid_internal_fn): Replace "parameter" with
3243 2013-09-16 Stan Shebs <stan@codesourcery.com>
3245 * README: Update references to writing code for GDB.
3246 * configure.ac (build_warnings): Remove obsolete comment.
3247 * configure: Regenerate.
3248 * gdbarch.sh: Remove references to gdbint.texinfo.
3249 * gdbarch.h: Regenerate.
3250 * gdbtypes.c (objfile_type): Remove comments referencing internals
3253 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3255 * NEWS: Mention new convenience function $_isvoid.
3256 * value.c (isvoid_internal_fn): New function.
3257 (_initialize_values): Add new convenience function $_isvoid.
3259 2013-09-16 Pierre Muller <muller@sourceware.org>
3261 * arm-linux-tdep.c: Add "elf/common.h" header.
3262 Remove AT_HWCAP macro definintion as it is provided in
3264 * s390-tdep.c: Remove system header <elf.h>
3265 Add "elf/common.h" header for AT_HWCAP definition.
3266 (s390_core_read_description): Use correct CORE_ADDR
3267 for hwcap local variable used as third parameter
3268 of function target_auxv_search.
3270 2013-09-14 Pierre Muller <muller@sourceware.org>
3271 Tom Tromey <tromey@redhat.com>
3272 Pedro Alves <palves@redhat.com>
3274 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3275 mode if operating system doesn't know O_CLOEXEC.
3277 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3280 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3283 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3285 * NEWS: Mention TDB support.
3286 * features/s390-tdb.xml: New file.
3287 * features/s390-te-linux64.xml: New file.
3288 * features/s390x-te-linux64.xml: New file.
3289 * features/Makefile (WHICH): Add new tdescs above.
3290 (s390-te-linux64-expedite): Set.
3291 (s390x-te-linux64-expedite): Set.
3292 * features/s390-te-linux64.c: New file (generated).
3293 * features/s390x-te-linux64.c: New file (generated).
3294 * regformats/s390-te-linux64.dat: New file (generated).
3295 * regformats/s390x-te-linux64.dat: New file (generated).
3296 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3297 (HWCAP_S390_TE): Likewise.
3298 (S390_TDB_DWORD0_REGNUM): Likewise.
3299 (S390_TDB_DWORD0_REGNUM): Likewise.
3300 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3301 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3302 (S390_TDB_ATIA_REGNUM): Likewise.
3303 (S390_TDB_R0_REGNUM): Likewise.
3304 (S390_TDB_R1_REGNUM): Likewise.
3305 (S390_TDB_R2_REGNUM): Likewise.
3306 (S390_TDB_R3_REGNUM): Likewise.
3307 (S390_TDB_R4_REGNUM): Likewise.
3308 (S390_TDB_R5_REGNUM): Likewise.
3309 (S390_TDB_R6_REGNUM): Likewise.
3310 (S390_TDB_R7_REGNUM): Likewise.
3311 (S390_TDB_R8_REGNUM): Likewise.
3312 (S390_TDB_R9_REGNUM): Likewise.
3313 (S390_TDB_R10_REGNUM): Likewise.
3314 (S390_TDB_R11_REGNUM): Likewise.
3315 (S390_TDB_R12_REGNUM): Likewise.
3316 (S390_TDB_R13_REGNUM): Likewise.
3317 (S390_TDB_R14_REGNUM): Likewise.
3318 (S390_TDB_R15_REGNUM): Likewise.
3319 (S390_NUM_REGS): Increase.
3320 (S390_IS_TDBREGSET_REGNUM): New macro.
3321 (s390_regmap_tdb): Declare.
3322 (s390_sizeof_tdbregset): Define.
3323 (tdesc_s390_te_linux64): Declare.
3324 (tdesc_s390x_te_linux64): Likewise.
3325 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3326 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3327 (s390_regmap_tdb): New regmap.
3328 (s390_supply_tdb_regset): New function.
3329 (s390_tdb_regset): New regset.
3330 (s390_linux64v2_regset_sections): Add TDB regset to list.
3331 (s390x_linux64v2_regset_sections): Likewise.
3332 (s390_regset_from_core_section): Recognize TDB core note section.
3333 (s390_core_read_description): If HWCAP indicates TE support,
3334 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3335 (s390_gdbarch_init): Handle TDB regset.
3336 (_initialize_s390_tdep): Initialize new tdescs.
3337 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3338 (have_regset_tdb): New variable.
3339 (s390_native_supply): Support register invalidation.
3340 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3341 (check_regset): Treat ENODATA as "regset exists".
3342 (s390_linux_fetch_inferior_registers): Add TDB.
3343 (s390_read_description): Check for TDB existence and select
3345 * gdbserver/Makefile.in (clean): Add removal of new makefile
3347 (s390-te-linux64.c): New makefile target.
3348 (s390x-te-linux64.c): Likewise.
3349 * gdbserver/configure.srv (srv_regobj): Append new objects
3350 s390-te-linux64.o and s390x-te-linux64.o.
3351 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3352 s390x-te-linux64.xml, and s390-tdb.xml.
3353 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3355 (tdesc_s390_te_linux64): Likewise.
3356 (init_registers_s390x_te_linux64): Likewise.
3357 (tdesc_s390x_te_linux64): Likewise.
3358 (s390_check_regset): Treat ENODATA as "regset exists".
3359 (s390_arch_setup): Add TDB regset support.
3360 (initialize_low_arch): Initialize registers for new tdescs.
3362 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3364 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3365 (S390_IS_FPREGSET_REGNUM): New macro.
3366 * s390-tdep.c (s390_dwarf_regmap): Make const.
3367 (regnum_is_gpr_full): New function for replacing repeated code.
3368 (s390_pseudo_register_name): Use it.
3369 (s390_pseudo_register_type): Likewise.
3370 (s390_pseudo_register_read): Likewise.
3371 (s390_pseudo_register_write): Likewise.
3372 (s390_unwind_pseudo_register): Likewise.
3373 (s390_regmap_gregset): New format for regmap.
3374 (s390x_regmap_gregset): Likewise.
3375 (s390_regmap_fpregset): Likewise.
3376 (s390_regmap_upper): Likewise.
3377 (s390_regmap_last_break): Likewise.
3378 (s390_regmap_system_call): Likewise.
3379 (s390_supply_regset): Adjust to new regmap format.
3380 (s390_collect_regset): Likewise.
3381 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3382 (s390_native_collect): Likewise.
3383 (supply_gregset): Likewise.
3384 (fill_gregset): Likewise.
3385 (supply_fpregset): Likewise.
3386 (fill_fpregset): Likewise.
3387 (fetch_regset): Likewise.
3388 (store_regset): Likewise.
3389 (s390_linux_fetch_inferior_registers): Likewise.
3390 (s390_linux_fetch_inferior_registers): Likewise.
3392 2013-09-12 Andrew Pinski <apinski@cavium.com>
3394 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3396 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3398 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3400 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3402 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3404 2013-09-06 Pedro Alves <palves@redhat.com>
3406 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3407 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3408 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3409 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3410 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3413 2013-09-06 Pedro Alves <palves@redhat.com>
3415 * remote-sim.c (dump_mem): Constify buf parameter.
3416 gdbsim_xfer_inferior_memory): Rename to ...
3417 (gdbsim_xfer_memory): ... this. Adjust interface as
3418 target_xfer_partial helper.
3419 (gdbsim_xfer_partial): New function.
3420 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3421 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3423 2013-09-06 Pedro Alves <palves@redhat.com>
3425 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3426 host_address_to_string, and send debug output to gdb_stdlog.
3428 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3430 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3431 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3432 gdb_target_obs for cris target.
3433 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3434 (cris_gdbarch_init): Move calls to
3435 set_gdbarch_fetch_tls_load_module_address and
3436 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3437 Add call to gdbarch_init_osabi.
3438 * cris-linux-tdep.c: New file.
3439 * cris-tdep.h: New file.
3441 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3443 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3444 to deprecated_init_ui_hook.
3446 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3448 * cli/cli-interp.c (_initialize_cli_interp): Add a
3449 command_loop_proc to interp_procs.
3450 * event-top.c (cli_command_loop): Change signature to match
3451 interp_command_loop_ftype.
3452 * event-top.h (cli_command_loop): Same.
3453 * interps.c (interp_new): Require every interpreter to have a
3455 (current_interp_command_loop): Just call the command_loop_proc on
3456 the current interpreter.
3457 * tui/tui-interp.c (_initialize_tui_interp): Add a
3458 command_loop_proc to interp_procs.
3460 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3462 * cris-tdep.c (cris_gdbarch_init): Add call to
3463 get_gdbarch_fetch_tls_load_module_address.
3465 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3467 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3468 (cris_elf_gregset_t): Rename from elf_gregset_t.
3469 (crisv32_elf_gregset_t): Adjust.
3470 (cris_supply_gregset, fetch_core_registers): Adjust.
3472 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3474 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3476 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3478 * defs.h (deprecated_command_loop_hook): Remove, including
3479 references in comments.
3480 * interps.c (current_interp_command_loop): No longer use
3481 deprecated_command_loop_hook.
3482 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3484 * top.c (deprecated_command_loop_hook): Remove.
3486 2013-09-05 Pedro Alves <palves@redhat.com>
3488 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3489 local is now int instead of ULONGEST. Print it with %d
3490 instead of paddress.
3492 2013-09-05 Tristan Gingold <gingold@adacore.com>
3494 * MAINTAINERS: Remove avr maintainership.
3496 2013-09-05 Pedro Alves <palves@redhat.com>
3498 * findvar.c (value_of_register): Rework in terms of
3499 value_of_register_lazy.
3501 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3503 * symfile.c (add_symbol_file_command): Remove trailing
3504 whitespaces and blank line after comment.
3506 2013-09-05 Pedro Alves <palves@redhat.com>
3508 * tui/tui-regs.c (tui_register_format): Don't look at the
3509 register's name here. Return string representing register
3510 value instead of storing it in the data element.
3511 (tui_get_register): Compare register string representations
3512 instead of register value states and contents.
3514 2013-09-05 Pedro Alves <palves@redhat.com>
3517 * tui/tui-regs.c (tui_show_registers): Show registers of the
3518 selected frame, not the current frame.
3520 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3522 * MAINTAINERS (Write After Approval): Add myself to the list.
3524 2013-09-04 Doug Evans <dje@google.com>
3526 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3527 (queue_and_load_dwo_tu): New function.
3528 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3529 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3530 Make dependent_cu optional.
3531 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3532 and an older .gdb_index is in use, queue and load all its TUs too.
3534 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3537 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3538 variable search_flags.
3539 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3540 (OPF_RETURN_REALPATH): ... here.
3541 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3542 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3544 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3546 * solib.c (solib_find): Likewise. Four times.
3547 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3548 in the function comment and for the realpath_fptr variable.
3549 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3550 (find_and_open_source): Likewise. Twice.
3551 * symfile.c (symfile_bfd_open): Likewise, also twice.
3553 2013-09-04 Doug Evans <dje@google.com>
3555 * progspace.c (save_current_space_and_thread): Remove unnecessary
3556 call to save_current_inferior.
3558 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3560 * sh64-tdep.c (sh64_do_register): Return after printing message
3561 about unavailable register contents.
3563 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3564 Pedro Alves <palves@redhat.com>
3566 * symfile.c (add_symbol_file_command): Error out on unknown
3567 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3568 options and collapse into single conditional branch.
3570 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3572 * inf-child.c (inf_child_follow_fork): New parameter
3574 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3575 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3576 * inferior.h (detach_fork): Remove.
3577 * infrun.c (detach_fork): Adjust comment and make it
3579 (follow_fork): Pass detach_fork parameter to
3581 * linux-nat.c (linux_child_follow_fork): New parameter
3583 * target.c (target_follow_fork): New parameter detach_fork.
3584 Pass detach_fork as parameter and print its value.
3585 * target.h (struct target_ops) <to_follow_fork>: New int
3587 (target_follow_fork): New parameter detach_fork.
3589 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3591 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3592 Replace sec->bfd by sec->the_bfd_section->owner.
3594 2013-09-03 Yao Qi <yao@codesourcery.com>
3596 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3597 from linux_has_shared_address_space.
3598 (linux_has_shared_address_space): Call linux_is_uclinux.
3599 * linux-tdep.h (linux_is_uclinux): Declare.
3600 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3603 2013-09-03 Yao Qi <yao@codesourcery.com>
3605 * config/djgpp/fnchange.lst: Remove entry of
3606 i386-interix-nat.c and i386-interix-tdep.c.
3607 * configure.ac: Remove '*-*-interix*'.
3608 * configure: Re-generated.
3609 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3610 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3612 * osabi.c (gdb_osabi_names): Remove "Interix".
3614 2013-09-03 Yao Qi <yao@codesourcery.com>
3616 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3618 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3620 * record.h (record_print_flag) <record_print_src_line,
3621 record_print_insn_range>: Rename into ...
3622 (record_print_flag) <record_print_src_line,
3623 record_print_insn_range>: ... this. Update all users.
3625 2013-09-02 Pierre Muller <muller@sourceware.org>
3627 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3630 2013-09-02 Pierre Muller <muller@sourceware.org>
3632 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3633 by use of plongest function.
3635 2013-09-02 Tristan Gingold <gingold@adacore.com>
3637 * NEWS: Add entry mentioning support for native Windows x64
3640 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3641 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3642 (struct amd64_windows_frame_cache): New struct.
3643 (amd64_windows_w2gdb_regnum): New global.
3644 (pc_in_range, amd64_windows_frame_decode_epilogue)
3645 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3646 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3647 (amd64_windows_frame_this_id): New functions.
3648 (amd64_windows_frame_unwind): New static global.
3649 (amd64_windows_skip_prologue): New function.
3650 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3651 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3652 with amd64_windows_skip_prologue.
3654 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3658 2013-08-30 Pedro Alves <palves@redhat.com>
3660 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3663 2013-08-30 Pedro Alves <palves@redhat.com>
3665 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3668 2013-08-30 Pedro Alves <palves@redhat.com>
3670 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3671 Adjust arguments to print_stack_frame.
3673 2013-08-30 Pedro Alves <palves@redhat.com>
3675 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3677 2013-08-30 Pedro Alves <palves@redhat.com>
3679 * frame.h (show_and_print_stack_frame): Delete declaration.
3681 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3684 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3685 (archpy_name): Check for valid architecture.
3686 (archpy_disassemble): Ditto.
3688 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3690 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3691 instead of "long long" in call to ptrace64.
3693 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3695 * mi/mi-interp.c (mi_command_loop): Change signature to match
3696 interp_command_loop_ftype.
3697 (mi1_command_loop): Remove.
3698 (mi2_command_loop): Remove.
3699 (mi3_command_loop): Remove.
3700 (mi_interpreter_resume): Remove setting of
3701 deprecated_command_loop_hook.
3702 (_initialize_mi_interp): Set mi_command_loop as the command loop
3705 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3707 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3710 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3712 * value.c (allocate_value_contents): Make static.
3713 * value.h (allocate_value_contents): Remove prototype.
3715 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3718 of assembling value via allocate_value_lazy and attribute setter.
3719 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3720 assembling value via allocate_value_lazy and attribute setter.
3721 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3722 assembling value via allocate_value_lazy and attribute setter.
3724 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3726 * value.c (value_from_contents_and_address): Replace allocate_value and
3727 memcpy with value_from_contents.
3729 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3731 * python/py-framefilter.c (py_print_frame): Remove usage of
3732 PyString_AsString. Use python_string_to_host_string instead.
3733 Refactor function to work with a string as a new allocation
3734 instead of a pointer.
3735 (py_print_frame): Ditto.
3736 * python/lib/gdb/frames.py (return_list): Cain iterators together
3737 instead of adding them as a list.
3738 (_sort_list): Call return_list, and remove duplicate code.
3739 (execute_frame_filters): Convert iterator to a list with list().
3740 * python/lib/gdb/command/frame_filters.py
3741 (SetFrameFilterPriority._set_filter_priority): Convert priority
3742 attribute to an integer.
3743 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3744 wrapper function __next__.
3745 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3748 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3751 * python/py-framefilter.c (apply_frame_filter): Check
3752 gdb_python_initialized. Exit if the Python frame-filter code
3753 cannot be initialized.
3755 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3758 * top.c (print_gdb_version): Remove erroneous newline after help
3761 2013-08-29 Yao Qi <yao@codesourcery.com>
3763 * varobj.c (install_dynamic_child): Remove trailing space.
3764 Add one blank line after variable declaration.
3766 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3769 * corefile.c (get_exec_file): Use exec_filename.
3770 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3771 * exec.c (exec_close): Free EXEC_FILENAME.
3772 (exec_file_attach): New variable canonical_pathname. Use
3773 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3775 * exec.h (exec_filename): New.
3776 * inferior.c (print_inferior, inferior_command): Use
3777 PSPACE_EXEC_FILENAME.
3778 * mi/mi-main.c (print_one_inferior): Likewise.
3779 * progspace.c (clone_program_space, print_program_space): Likewise.
3780 * progspace.h (struct program_space): New field pspace_exec_filename.
3781 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3782 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3784 2013-08-28 Will Newton <will.newton@linaro.org>
3786 * common/linux-ptrace.c: Include stdint.h unconditionally.
3788 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3791 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3793 2013-08-28 Yao Qi <yao@codesourcery.com>
3794 Pedro Alves <palves@redhat.com>
3796 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3797 instead of stdio_fileopen.
3798 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3799 .Call stderr_fileopen instead of stdio_fileopen.
3800 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3801 [__MINGW32__] (stderr_file_fputs): New function.
3802 (stderr_fileopen): New function.
3803 * ui-file.h (stderr_fileopen): Declare.
3805 2013-08-27 Doug Evans <dje@google.com>
3807 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3808 (struct dwarf2_per_cu_data): Ditto.
3809 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3810 (process_imported_unit_die): Ditto.
3811 (follow_die_sig_1): Simplify assert.
3813 2013-08-27 Pedro Alves <palves@redhat.com>
3815 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3816 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3817 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3818 windows_xfer_memory directly.
3819 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3821 2013-08-27 Pedro Alves <palves@redhat.com>
3823 * darwin-nat.c (darwin_xfer_memory): Delete.
3824 (_initialize_darwin_inferior): Don't install a
3825 deprecated_xfer_memory method.
3827 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3828 Yao Qi <yao@codesourcery.com>
3830 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3831 (parse_no_frames_option): Remove.
3832 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3833 (mi_cmd_stack_list_args): Adjust.
3834 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3835 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3836 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3838 (list_args_or_locals): New parameter 'skip_unavailable'.
3840 * valprint.c (scalar_type_p): Rename to ...
3841 (val_print_scalar_type_p): ... this. Make extern.
3842 (val_print, value_check_printable): Adjust.
3843 * valprint.h (val_print_scalar_type_p): Declare.
3844 * value.c (value_entirely_unavailable): New function.
3845 * value.h (value_entirely_unavailable): Declare.
3847 * NEWS: Mention the new option "--skip-unavailable" to MI
3848 commands '-stack-list-locals', '-stack-list-arguments' and
3849 '-stack-list-variables'.
3851 2013-08-27 Yao Qi <yao@codesourcery.com>
3853 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3854 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3856 * mi/mi-getopt.c (mi_getopt): Remove.
3857 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3859 (mi_getopt): Call mi_getopt_1.
3860 (mi_getopt_silent): New.
3861 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3863 2013-08-26 Doug Evans <dje@google.com>
3866 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3867 .gdb_index is in use.
3868 * symfile.c (reread_symbols): Reset objfile->sf.
3870 * NEWS: Document "mt print objfiles" now takes optional regexp.
3871 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3872 regexp of objfiles to print.
3873 (_initialize_symmisc): Update doc string for "mt print objfiles".
3875 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3876 missing debug info checks.
3878 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3879 Ulrich Weigand <uweigand@de.ibm.com>
3881 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3882 line tables generated by XLC compiled binaries.
3884 2013-08-23 Doug Evans <dje@google.com>
3886 * symmisc.c (dump_symtab): Delete prototype.
3887 (dump_msymbols, dump_objfile): Ditto.
3888 (maintenance_info_symtabs): Mark as dont_repeat.
3889 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3891 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3892 debugging printf to better location.
3894 2013-08-23 Pedro Alves <palves@redhat.com>
3896 * target.c (target_read_live_memory): Change type of 'ret' local
3899 2013-08-23 Pedro Alves <palves@redhat.com>
3901 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3902 (remote_read_bytes): Change return type to LONGEST, and adjust to
3903 return a target_xfer_error on error.
3904 (remote_xfer_memory): Delete.
3905 (remote_flash_write): Change type of 'ret' local to LONGEST.
3906 (remote_xfer_partial, remote_xfer_partial): Adjust.
3907 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3909 2013-08-23 Pierre Muller <muller@sourceware.org>
3911 ARI fix: Push # directives to start of line.
3912 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3914 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3917 * breakpoint.c (enable_command, disable_command): Iterate over
3918 all specified breakpoint locations.
3920 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3922 * common/linux-ptrace.c (linux_fork_to_function): Push #
3923 directives to the start of the line.
3924 (linux_check_ptrace_features): Fix warning message to use
3927 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3929 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3930 nat/linux-waitpid.h.
3931 (linux-waitpid.o): New object file rule.
3932 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3933 (current_ptrace_options): Moved from linux-nat.c.
3934 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3936 (linux_fork_to_function): New function.
3937 (linux_grandchild_function): Likewise.
3938 (linux_child_function): Likewise.
3939 (linux_check_ptrace_features): New function, heavily
3940 based on linux-nat.c:linux_test_for_tracefork.
3941 (linux_enable_event_reporting): New function.
3942 (ptrace_supports_feature): Likewise.
3943 (linux_supports_tracefork): Likewise.
3944 (linux_supports_traceclone): Likewise.
3945 (linux_supports_tracevforkdone): Likewise.
3946 (linux_supports_tracesysgood): Likewise.
3947 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3948 gdbserver/linux-low.c.
3949 (linux_enable_event_reporting): New declaration.
3950 (linux_supports_tracefork): Likewise.
3951 (linux_supports_traceclone): Likewise.
3952 (linux_supports_tracevforkdone): Likewise.
3953 (linux_supports_tracesysgood): Likewise.
3954 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3955 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3956 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3957 * config/arm/linux.mh (NATDEPFILES): Likewise.
3958 * config/i386/linux.mh (NATDEPFILES): Likewise.
3959 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3960 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3961 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3962 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3963 * config/mips/linux.mh (NATDEPFILES): Likewise.
3964 * config/pa/linux.mh (NATDEPFILES): Likewise..
3965 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3966 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3967 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3968 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3969 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3970 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3971 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3972 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3973 ptrace's 4th argument's types.
3974 Check the type of PTRACE_TYPE_ARG4.
3975 * configure: Regenerate.
3976 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3977 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3978 (linux_supports_tracefork_flag): Remove.
3979 (linux_supports_tracesysgood_flag): Likewise.
3980 (linux_supports_tracevforkdone_flag): Likewise.
3981 (current_ptrace_options): Moved to
3982 common/linux-ptrace.c.
3983 (linux_tracefork_child): Remove.
3984 (my_waitpid): Remove.
3985 (linux_test_for_tracefork): Renamed to
3986 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3987 (linux_test_for_tracesysgood): Remove.
3988 (linux_supports_tracesysgood): Remove.
3989 (linux_supports_tracefork): Remove.
3990 (linux_supports_tracevforkdone): Remove.
3991 (linux_enable_tracesysgood): Remove.
3992 (linux_enable_event_reporting): Remove.
3993 (linux_init_ptrace): New function.
3994 (linux_child_post_attach): Call linux_init_ptrace.
3995 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3996 (linux_child_follow_fork): Call linux_supports_tracefork
3997 and linux_supports_tracevforkdone.
3998 (linux_child_insert_fork_catchpoint): Call
3999 linux_supports_tracefork.
4000 (linux_child_insert_vfork_catchpoint): Likewise.
4001 (linux_child_set_syscall_catchpoint): Call
4002 linux_supports_tracesysgood.
4003 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4004 * nat/linux-nat.h: New file.
4005 * nat/linux-waitpid.c: New file.
4006 * nat/linux-waitpid.h: New file.
4008 2013-08-22 Samuel Bronson <naesten@gmail.com>
4010 ARM Linux support for `catch syscall'.
4011 * syscalls/arm-linux.py: New file.
4012 * syscalls/arm-linux.xml: Likewise.
4013 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4014 (arm_linux_init_abi): Register the new function and syscall xml file.
4015 * data-directory/Makefile.in: Install the new syscall xml file.
4016 * NEWS: Brag about this.
4018 2013-08-22 Pedro Alves <palves@redhat.com>
4021 * corefile.c (target_xfer_memory_error): New function.
4022 (memory_error): Defer EIO to target_memory_error.
4023 (read_memory): Use target_xfer_partial, and handle finer-grained
4025 * target.c (target_xfer_error_to_string): New function.
4026 (memory_xfer_partial_1): If memory is known to be
4027 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4028 (target_xfer_partial): Make extern.
4029 * target.h (enum target_xfer_error): New enum.
4030 (target_xfer_error_to_string): Declare function.
4031 (target_xfer_partial): Declare function.
4032 (struct target_ops) <xfer_partial>: Adjust describing comment.
4034 2013-08-22 Alan Modra <amodra@gmail.com>
4036 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4037 * configure.tgt: Likewise as targets.
4039 2013-08-20 Doug Evans <dje@google.com>
4041 * buildsym.c (subfile_stack): Move here from buildsym.h.
4042 (pending_macros): Ditto.
4043 (get_macro_table): New function.
4044 (buildsym_init): Initialize subfile_stack.
4045 * coffread.c (type_vector,type_vector_length): Moved here from
4047 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4048 (coff_symtab_read): Use it.
4049 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4050 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4051 with call to get_macro_table.
4052 * stabsread.c (type_vector,type_vector_length): Moved here from
4054 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4055 * buildsym.h (get_macro_table): Declare.
4057 2013-08-20 Tom Tromey <tromey@redhat.com>
4059 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4061 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4063 2013-08-20 Doug Evans <dje@google.com>
4065 * blockframe.c: Remove #include "psymtab.h".
4066 * cp-support.c: Ditto.
4070 2013-08-20 Tom Tromey <tromey@redhat.com>
4073 * exceptions.h (return_mask): Now an enum.
4074 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4077 2013-08-20 Tom Tromey <tromey@redhat.com>
4079 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4081 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4082 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4083 * jit.c (jit_object_close_impl): Update.
4084 * jv-lang.c (get_dynamics_objfile): Update.
4085 * linespec.c (add_minsym): Use get_dynamics_objfile.
4086 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4087 (allocate_objfile): Don't initialize 'gdbarch' field.
4088 (get_objfile_arch): Update.
4089 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4091 (struct objfile) <gdbarch>: ... here. Remove.
4092 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4094 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4096 2013-08-20 Alan Modra <amodra@gmail.com>
4098 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4099 for IBM long double nan and inf.
4100 (floatformat_is_negative, floatformat_classify,
4101 floatformat_mantissa): Similarly.
4102 (floatformat_ieee_single, floatformat_ieee_double,
4103 floatformat_ieee_quad, floatformat_arm_ext,
4104 floatformat_ia64_spill): Delete unused vars.
4105 (_initialize_doublest): Delete unused function.
4106 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4107 little-endian variants of floatformat_ibm_long_double.
4109 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4111 * Makefile.in (SFILES): Remove common/target-common.c and
4112 add target/waitstatus.c.
4113 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4114 target/resume.h, target/wait.h and target/waitstatus.h.
4115 (COMMON_OBS): Remove target-common.o and add
4117 (target-common.o): Remove.
4118 (waitstatus.o): New target object file.
4119 * common/target-common.c: Move contents to
4120 target/waitstatus.c and remove.
4121 * common/target-common.h: Move contents to other files and
4123 (enum resume_kind: Move to target/resume.h.
4124 (TARGET_WNOHANG): Move to target/wait.h.
4125 (enum target_waitkind): Move to target/waitstatus.h.
4126 (struct target_waitstatus): Likewise.
4127 * target.h: Do not include target-common.h and
4128 include target/resume.h, target/wait.h and
4129 target/waitstatus.h.
4130 * target/resume.h: New file.
4131 * target/wait.h: New file.
4132 * target/waitstatus.h: New file.
4133 * target/waitstatus.c: New file.
4135 2013-08-19 Pedro Alves <palves@redhat.com>
4137 * linux-nat.c (linux_test_for_tracefork)
4138 (linux_test_for_tracesysgood, linux_child_follow_fork)
4139 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4140 (linux_nat_wait_1): Extend comment.
4141 (linux_async_pipe): Add comment.
4143 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4145 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4146 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4147 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4148 Update to account for fact that PC is now a pseudo-register.
4149 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4150 cases for RL78_PC_REGNUM.
4152 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4155 * top.c (quit_force): Skip writing history file
4156 if input is not from terminal.
4158 2013-08-14 Tom Tromey <tromey@redhat.com>
4160 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4161 resultthreadlist>: New fields.
4162 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4163 (remote_get_threadlist, remote_threadlist_iterator): Use
4164 new fields. Remove static variables.
4166 2013-08-14 Tom Tromey <tromey@redhat.com>
4168 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4169 remote_watch_data_address>: New fields.
4170 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4171 (process_stop_reply, remote_wait_as)
4172 (remote_check_watch_resources, remote_stopped_data_address): Update.
4174 2013-08-14 Tom Tromey <tromey@redhat.com>
4176 * remote.c (struct remote_state) <async_client_callback,
4177 async_client_context>: New fields.
4178 (async_client_callback, async_client_context): Remove.
4179 (remote_async_serial_handler, remote_async): Update.
4181 2013-08-14 Tom Tromey <tromey@redhat.com>
4183 * remote.c (sizeof_pkt): Remove.
4184 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4186 2013-08-14 Tom Tromey <tromey@redhat.com>
4188 * remote.c (struct remote_state) <use_threadinfo_query,
4189 use_threadextra_query>: New fields.
4190 (remote_threads_info, remote_threads_extra_info)
4191 (remote_open_1): Update.
4193 2013-08-14 Tom Tromey <tromey@redhat.com>
4195 * remote.c (struct remote_state) <finished_object,
4196 finished_annex, finished_offset>: New fields.
4197 (remote_read_qxfer): Use remote_state fields; remove static
4200 2013-08-14 Tom Tromey <tromey@redhat.com>
4202 * remote.c (struct remote_state) <last_sent_step>:
4204 (last_sent_step): Remove.
4205 (remote_resume, remote_wait_as): Update.
4207 2013-08-14 Tom Tromey <tromey@redhat.com>
4209 * remote.c (struct remote_state) <last_sent_signal>:
4211 (last_sent_signal): Remove.
4212 (new_remote_state, remote_resume, remote_wait_as): Update.
4214 2013-08-14 Tom Tromey <tromey@redhat.com>
4216 * remote.c (struct remote_state) <last_program_signals_packet>:
4218 (last_program_signals_packet): Remove.
4219 (remote_program_signals, remote_open_1): Update.
4221 2013-08-14 Tom Tromey <tromey@redhat.com>
4223 * remote.c (struct remote_state) <last_pass_packet>:
4225 (last_pass_packet): Remove.
4226 (remote_pass_signals, remote_open_1): Update.
4228 2013-08-14 Tom Tromey <tromey@redhat.com>
4230 * remote.c (struct remote_state) <remote_traceframe_number>:
4232 (remote_traceframe_number): Remove.
4233 (new_remote_state, remote_open_1, set_remote_traceframe)
4234 (remote_trace_find): Update.
4236 2013-08-14 Tom Tromey <tromey@redhat.com>
4238 * remote.c (struct remote_state) <general_thread, continue_thread>:
4240 (general_thread, continue_thread): Remove.
4241 (record_currthread, set_thread, set_general_process)
4242 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4243 (extended_remote_mourn_1): Update.
4245 2013-08-14 Tom Tromey <tromey@redhat.com>
4247 * remote.c (struct remote_state) <remote_desc>: New field.
4248 (remote_desc): Remove.
4249 (remote_threads_info, remote_threads_extra_info, remote_close)
4250 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4251 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4252 (remote_hostio_send_command, remote_file_put, remote_file_get)
4253 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4254 (remote_async, remote_new_objfile, set_range_stepping): Update.
4256 2013-08-14 Tom Tromey <tromey@redhat.com>
4258 * remote.c (remote_state): Now a pointer.
4259 (get_remote_state_raw): Update.
4260 (new_remote_state): New function.
4261 (_initialize_remote): Use new_remote_state.
4263 2013-08-14 Tom Tromey <tromey@redhat.com>
4265 * remote.c (remote_protocol_features): Now const.
4267 2013-08-14 Tom Tromey <tromey@redhat.com>
4269 * remote.c (crc32_table, crc32): Remove.
4270 (remote_verify_memory): Use xcrc32.
4272 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4274 * value.h (create_internalvar_type_lazy): Adjust prototype
4277 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4279 * common/format.c (parse_format_string): Don't allow '#' flag for
4280 pointer arguments in format string.
4282 2013-08-13 Pierre Muller <muller@sourceware.org>
4284 * utils.c (init_page_info): Only call tgetnum function
4285 if rl_get_screen_size did not return useful values.
4287 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4289 PR breakpoints/15117
4290 * linespec.c (linespec_parse_basic): Check for convenience
4291 variable or history value while parsing.
4293 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4295 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4297 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4298 different signals between the generic Linux kernel implementation
4300 (avr_linux_gdb_signal_from_target): Delete.
4301 (avr_linux_gdb_signal_to_target): Delete.
4302 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4304 2013-08-09 Doug Evans <dje@google.com>
4306 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4309 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4311 * linux-tdep.c: Define enum with generic signal numbers.
4312 (linux_gdb_signal_from_target): New function.
4313 (linux_gdb_signal_to_target): Likewise.
4314 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4315 methods to the functions above.
4316 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4317 (linux_gdb_signal_to_target): Likewise.
4318 * alpha-linux-tdep.c: Define new enum with signals different
4319 from generic Linux kernel.
4320 (alpha_linux_gdb_signal_from_target): New function.
4321 (alpha_linux_gdb_signal_to_target): Likewise.
4322 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4323 with the functions mentioned above.
4324 * avr-tdep.c: Define enum with differences between Linux kernel
4326 (avr_linux_gdb_signal_from_target): New function.
4327 (avr_linux_gdb_signal_to_target): Likewise.
4328 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4329 the functions mentioned above.
4330 * sparc-linux-tdep.c: Define enum with differences between SPARC
4331 and generic Linux kernel signal numbers.
4332 (sparc32_linux_gdb_signal_from_target): New function.
4333 (sparc32_linux_gdb_signal_to_target): Likewise.
4334 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4335 to the functions defined above.
4336 * xtensa-linux-tdep.c: Define enum with differences between
4337 Xtensa and Linux kernel generic signals.
4338 (xtensa_linux_gdb_signal_from_target): New function.
4339 (xtensa_linux_gdb_signal_to_target): Likewise.
4340 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4341 to the functions defined above.
4342 * mips-linux-tdep.c: Define enum with differences between
4343 signals in MIPS and Linux kernel generic ones.
4344 (mips_gdb_signal_to_target): New function.
4345 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4346 only different signals from the Linux kernel generic.
4347 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4348 the functions defined above.
4349 * mips-linux-tdep.h (enum mips_signals): Remove.
4351 2013-08-09 Pedro Alves <palves@redhat.com>
4353 * avr-tdep.c (XMALLOC): Delete macro.
4354 * cli/cli-dump.c (XMALLOC): Delete macro.
4356 2013-08-09 Pedro Alves <palves@redhat.com>
4358 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4359 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4360 (fopen_with_cleanup, add_dump_command): Make static.
4361 * cli/cli-dump.h: Delete file.
4362 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4365 2013-08-09 Pedro Alves <palves@redhat.com>
4367 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4370 2013-08-09 Pedro Alves <palves@redhat.com>
4372 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4375 2013-08-09 Pedro Alves <palves@redhat.com>
4377 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4378 (gcore_command): Use tilde_expand here, and when showing the
4379 filename to the user, show the expanded version.
4381 2013-08-09 Yao Qi <yao@codesourcery.com>
4383 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4386 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4388 * gcore.c (create_gcore_bfd): Use tilde_expand.
4390 2013-08-08 Yao Qi <yao@codesourcery.com>
4392 * frame.h (read_frame_local): Declare.
4393 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4395 * stack.c (read_frame_local): New.
4397 2013-08-08 Yao Qi <yao@codesourcery.com>
4399 * mi/mi-cmd-stack.c: Update comments to function
4400 list_args_or_locals.
4402 2013-08-07 Tom Tromey <tromey@redhat.com>
4405 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4406 (process_psymtab_comp_unit_reader): Use it.
4407 (process_psymtab_comp_unit): Update. Add "pretend_language"
4409 (dwarf2_build_psymtabs_hard): Update.
4410 (scan_partial_symbols): Pass CU's language to
4411 process_psymtab_comp_unit.
4413 2013-08-07 Tom Tromey <tromey@redhat.com>
4415 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4416 (dwarf2_gdb_index_functions): Update.
4417 * psymtab.c (find_symbol_file_from_partial): Remove.
4418 (psym_functions): Update.
4419 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4422 2013-08-07 Tom Tromey <tromey@redhat.com>
4424 * symfile.c (set_initial_language): Look up "main" symbol
4425 and use its language.
4426 * symtab.c (find_main_filename): Remove.
4427 * symtab.h (find_main_filename): Remove.
4429 2013-08-07 Tom Tromey <tromey@redhat.com>
4431 * dwarf2read.c (recursively_compute_inclusions): Add
4432 "immediate_parent" argument. Set symtab's "user" field
4434 (compute_symtab_includes): Update.
4436 2013-08-07 Tom Tromey <tromey@redhat.com>
4438 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4439 when adding label symbols.
4441 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4442 Ulrich Weigand <uweigand@de.ibm.com>
4444 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4445 * configure.host (powerpc64-*-aix*): Likewise.
4447 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4448 Ulrich Weigand <uweigand@de.ibm.com>
4450 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4452 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4453 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4454 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4455 * configure.ac: Check for ptrace64.
4456 * configure, config.in: Regenerate.
4458 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4459 Ulrich Weigand <uweigand@de.ibm.com>
4461 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4462 Call ptrace64 instead of ptrace if defined.
4463 Add macro addr_ptr to take care of ptrace address argument.
4464 (pdc_read_regs): Likewise.
4465 (pdc_write_regs): Likewise.
4466 (aix_thread_resume): Likewise.
4467 (fetch_regs_kernel_thread): Likewise.
4468 (store_regs_kernel_thread): Likewise.
4470 2013-08-07 Anton Blanchard <anton@samba.org>
4472 * MAINTAINERS: Add myself to Write After Approval.
4474 2013-08-05 Tom Tromey <tromey@redhat.com>
4476 * aix-thread.c (_initialize_aix_thread): Use
4477 complete_target_initialization.
4478 * bsd-uthread.c (_initialize_bsd_uthread): Use
4479 complete_target_initialization.
4480 * dec-thread.c (_initialize_dec_thread): Use
4481 complete_target_initialization.
4482 * ravenscar-thread.c (_initialize_ravenscar): Use
4483 complete_target_initialization.
4484 * sol-thread.c (_initialize_sol_thread): Use
4485 complete_target_initialization.
4486 * spu-multiarch.c (_initialize_spu_multiarch): Use
4487 complete_target_initialization.
4489 2013-08-05 Tom Tromey <tromey@redhat.com>
4491 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4492 * ada-lang.c (ada_lookup_simple_minsym): Return
4493 bound_minimal_symbol.
4494 * ada-lang.h (ada_lookup_simple_minsym): Update.
4495 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4496 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4497 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4498 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4499 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4500 * minsyms.c (msymbol_objfile): Remove.
4501 (lookup_minimal_symbol_internal): New function, from
4502 lookup_minimal_symbol.
4503 (lookup_minimal_symbol): Rewrite using
4504 lookup_minimal_symbol_internal.
4505 (lookup_bound_minimal_symbol): New function.
4506 * minsyms.h (msymbol_objfile): Remove.
4507 (lookup_bound_minimal_symbol): Declare.
4508 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4509 * parse.c (write_exp_msymbol): Change parameter to a
4510 bound_minimal_symbol.
4511 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4512 * parser-defs.h (write_exp_msymbol): Update.
4513 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4514 * symfile.c (simple_read_overlay_table): Use
4515 lookup_bound_minimal_symbol.
4516 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4517 (search_symbols): Likewise.
4518 (print_msymbol_info): Take a bound_minimal_symbol argument.
4519 (symtab_symbol_info, rbreak_command): Update.
4520 * symtab.h (struct symbol_search) <msymbol>: Change type
4521 to bound_minimal_symbol.
4522 * valops.c (find_function_in_inferior): Use
4523 lookup_bound_minimal_symbol.
4524 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4526 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4529 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4531 (async_cleanup_sigint_signal_handler): ... this.
4532 (initialize_sigint_signal_handler): Remove declaration.
4533 (handle_remote_sigint): Rename the declaration to ...
4534 (async_handle_remote_sigint): ... this.
4535 (handle_remote_sigint_twice): Rename the declaration to ...
4536 (async_handle_remote_sigint_twice): ... this.
4537 (async_remote_interrupt, async_remote_interrupt_twice)
4538 (remote_interrupt): Remove the declarations.
4539 (remote_interrupt_twice): Rename the declaration ...
4540 (sync_remote_interrupt_twice): ... this.
4541 (sigint_remote_twice_token): Rename the variable to ...
4542 (async_sigint_remote_twice_token): ... this.
4543 (sigint_remote_token): Rename the variable to ...
4544 (async_sigint_remote_token): ... this.
4545 (initialize_sigint_signal_handler): Rename the function to ...
4546 (async_initialize_sigint_signal_handler): ... this. Update the name
4548 (handle_remote_sigint): Rename the function to ...
4549 (async_handle_remote_sigint): ... this. Update the names inside.
4550 (handle_remote_sigint_twice): Rename the function to ...
4551 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4552 (cleanup_sigint_signal_handler): Rename the function to ...
4553 (async_cleanup_sigint_signal_handler): ... this.
4554 (remote_interrupt): Rename the function to ...
4555 (sync_remote_interrupt): this. Update the names inside.
4556 (remote_interrupt_twice): Rename the function to ...
4557 (sync_remote_interrupt_twice): this. Update the names inside.
4558 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4559 (_initialize_remote): Update the names inside.
4561 2013-08-02 Tom Tromey <tromey@redhat.com>
4564 * breakpoint.c (update_watchpoint, watchpoint_check)
4565 (watch_command_1): Update.
4566 * eval.c (fetch_subexp_value): Add "preserve_errors"
4568 * ppc-linux-nat.c (check_condition): Update.
4569 * value.h (fetch_subexp_value): Update.
4571 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4573 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4576 2013-08-01 Doug Evans <dje@google.com>
4579 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4580 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4581 Add assert of sig_entry->dwo_unit == NULL.
4582 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4583 had already been read.
4584 (read_signatured_type): Set per_cu.tu_read.
4587 * valops.c (value_struct_elt): Add missing call to check_typedef.
4588 (value_find_oload_method_list): Ditto.
4590 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4591 effectively, struct symbol_search **.
4592 (make_cleanup_free_search_symbols): Change arg to struct
4593 symbol_search **. All callers updated.
4594 (compare_search_syms): Compare symtab file name and block as well.
4595 (search_symbols_equal): New function.
4596 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4597 New args new_head, new_tail. Result is now void. Remove dups after
4598 sorting the symbols.
4599 (search_symbols): Sort all found symbols once, after all have been
4600 found, and remove duplicates. Simplify cleanup tracking of result.
4601 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4603 Further workarounds for binutils/15021.
4604 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4605 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4606 Watch for duplicate symtabs coming from type units.
4607 (compute_symtab_includes): Update call to
4608 recursively_compute_inclusions. Build vector of included symtabs
4610 * symtab.h (symtab_ptr): New typedef.
4611 (DEF_VEC_P (symtab_ptr)): New VEC type.
4612 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4615 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4617 * cli/cli-script.c (script_from_file): Remove use of
4619 * main.c (captured_main): Remove use of error_pre_print and
4621 * utils.c (error_pre_print, quit_pre_print): Remove.
4622 * utils.h (error_pre_print, quit_pre_print): Likewise.
4624 2013-08-01 Yao Qi <yao@codesourcery.com>
4626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4628 (mi_cmd_stack_list_variables): Likewise.
4630 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4632 * exceptions.c (deprecated_throw_reason): Remove.
4633 * exceptions.h (deprecated_throw_reason): Remove.
4635 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4637 * remote-mips.c (mips_error): Replace use of
4638 deprecated_throw_reason with throw_verror. Use the error message
4639 passed to mips_error as the error message for throw_verror.
4641 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4643 * monitor.c (monitor_interrupt_query): Replace use of
4644 deprecated_throw_reason with quit.
4645 * nto-procfs.c (interrupt_query): Likewise.
4646 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4647 * remote-mips.c (mips_kill): Likewise.
4648 * remote.c (interrupt_query): Likewise.
4650 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4652 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4655 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4656 Yao Qi <yao@codesourcery.com>
4658 * tracepoint.c (trace_dump_command): Select the current frame.
4660 2013-07-30 Doug Evans <dje@google.com>
4662 * dwarf2read.c (process_queue): Add type signature to debug output.
4664 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4666 * value.c (value_fetch_lazy): Mark optimized out values as such
4667 rather than raising an error.
4669 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4671 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4672 before checking which bits of the parent, not the child, value are
4675 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4678 * top.c: Include "filenames.h".
4679 (set_history_filename): New function.
4680 (init_main): Install it as set hook of the "set history filename"
4683 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4685 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4686 attribute parameter.
4687 (dwarf2_const_value_data): Constify struct attribute parameter.
4688 (dwarf2_const_value): Constify struct attribute parameter.
4689 (dwarf2_const_value_attr): Constify struct attribute parameter.
4690 (lookup_die_type): Constify struct attribute parameter.
4691 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4692 (follow_die_ref_or_sig): Constify struct attribute parameter.
4693 (follow_die_ref): Constify struct attribute parameter.
4694 (follow_die_sig): Constify struct attribute parameter.
4695 (get_DW_AT_signature_type): Constify struct attribute parameter.
4696 (get_type_unit_group): Constify struct attribute parameter.
4697 (fill_in_loclist_baton): Constify struct attribute parameter.
4698 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4699 (type_unit_group): Constify struct attribute parameter.
4701 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4703 * dwarf2read.c (attr_form_is_block): Make argument const.
4704 (attr_form_is_section_offset): Make argument const.
4705 (attr_form_is_constant): Make argument const.
4706 (attr_form_is_ref): Make argument const.
4708 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4710 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4712 (attr_form_is_ref): Moved below attr_form_is_constant.
4714 2013-07-29 Doug Evans <dje@google.com>
4716 * main.c (captured_command_loop): Tweak comment.
4718 * target.c (target_async_permitted_1): Fix comment.
4720 * symtab.c (iterate_over_some_symtabs): Add comment.
4722 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4724 2013-07-27 Yao Qi <yao@codesourcery.com>
4726 * NEWS: Mention that GDBserver now supports hardware
4727 watchpoints on the MIPS GNU/Linux target.
4729 2013-07-27 Yao Qi <yao@codesourcery.com>
4731 * Makefile.in (HFILES_NO_SRCDIR): Add
4732 common/mips-linux-watch.h.
4733 (mips-linux-watch.o): New rule.
4734 * common/mips-linux-watch.c: New.
4735 * common/mips-linux-watch.h: New.
4736 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4737 * mips-linux-nat.c: Include mips-linux-watch.h.
4738 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4739 to common/mips-linux-watch.h.
4740 (MAX_DEBUG_REGISTER): Likewise.
4741 (enum pt_watch_style): Likewise.
4742 (struct mips32_watch_regs): Likewise.
4743 (struct mips64_watch_regs): Likewise.
4744 (struct pt_watch_regs): Likewise.
4745 (struct mips_watchpoint): Likewise.
4746 (mips_linux_watch_get_irw_mask): Move to
4747 common/mips-linux-watch.c.
4748 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4749 (mips_linux_watch_get_watchlo): Likewise.
4750 (mips_linux_watch_set_watchlo): Likewise.
4751 (mips_linux_watch_get_watchhi): Likewise.
4752 (mips_linux_watch_set_watchhi): Likewise.
4753 (mips_linux_read_watch_registers): Likewise.
4754 (mips_linux_watch_type_to_irw): Likewise.
4755 (mips_linux_stopped_data_address, fill_mask): Likewise.
4756 (mips_linux_watch_try_one_watch): Likewise.
4757 (mips_linux_watch_populate_regs): Likewise.
4759 2013-07-27 Yao Qi <yao@codesourcery.com>
4761 * mips-linux-nat.c (get_irw_mask): Rename to ...
4762 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4763 'set' to 'n'. Update function comment. All callers changed.
4764 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4765 function comment. All callers changed.
4766 (get_num_valid): Rename to ...
4767 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4768 'set' to 'n'. Update function comment. All callers changed.
4769 (get_watchlo): Rename to ...
4770 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4771 'set' to 'n'. Update function comment. All callers changed.
4772 (set_watchlo): Rename to ...
4773 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4774 'set' to 'n'. Update function comment. All callers changed.
4775 (get_watchhi): Rename to ...
4776 (mips_linux_watch_get_watchhi): ... this. Update function
4777 comment. All callers changed.
4778 (set_watchhi): Rename to ...
4779 (mips_linux_watch_set_watchhi): ... this. Update function
4780 comment. All callers changed.
4781 (mips_linux_read_watch_registers): Update function comment.
4782 Add new parameters 'lwpid', 'watch_readback', and
4783 'watch_readback_valid'. Update.
4784 (type_to_irw): Rename to ...
4785 (mips_linux_watch_type_to_irw): ... this. Update function
4786 comment. All callers changed.
4787 (fill_mask): Update function comment.
4788 (try_one_watch): Rename to ...
4789 (mips_linux_watch_try_one_watch): ... this. Change the type
4790 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4791 (populate_regs_from_watches): Rename to ...
4792 (mips_linux_watch_populate_regs): ... this. Add parameter
4793 'current_watches'. All callers changed.
4795 2013-07-27 Yao Qi <yao@codesourcery.com>
4797 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4799 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4800 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4801 (struct pt_watch_regs): Likewise.
4802 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4803 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4804 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4805 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4806 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4808 2013-07-27 Yao Qi <yao@codesourcery.com>
4810 * breakpoint.h: Include break-common.h.
4811 (enum target_hw_bp_type): Move to ...
4812 * common/break-common.h: ... here. New.
4814 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4816 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4817 process group regardless of having tty on stdin.
4819 2013-07-25 Doug Evans <dje@google.com>
4821 * linux-fork.h (detach_fork): Delete.
4823 2013-07-25 Tom Tromey <tromey@redhat.com>
4825 PR remote/15256, PR remote/15266:
4826 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4827 * monitor.c (monitor_detach): Use unpush_target.
4828 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4829 * remote-mips.c (mips_detach): Use unpush_target. Don't
4831 * remote-sim.c (gdbsim_detach): Use unpush_target.
4832 * target.c (pop_target): Remove.
4833 (pop_all_targets_above): Don't call target_close.
4834 (target_close): Assert that the target is unpushed.
4835 * target.h (pop_target): Don't declare.
4836 * tracepoint.c (tfile_open): Use unpush_target.
4838 2013-07-25 Tom Tromey <tromey@redhat.com>
4840 * linux-thread-db.c (init_thread_db_ops): Call
4841 complete_target_initialization.
4842 (_initialize_thread_db): Don't call add_target.
4843 * target.c (complete_target_initialization): New function.
4844 (add_target_with_completer): Call it.
4845 * target.h (complete_target_initialization): Declare.
4847 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4849 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4850 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4851 (HPPANBSD_SIZEOF_GREGS): New define.
4852 (hppaobsd_supply_gregset): Handle additional registers.
4853 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4854 we provide more registers now.
4855 (hppabsd_supply_gregset): Supply additional registers.
4856 (hppabsd_collect_gregset): Collect additional registers.
4858 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4860 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4861 (hppabsd_dwarf2_frame_init_reg): New function.
4862 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4864 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4866 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4867 'z' format code. Remove error for optimized out values, standard
4868 code will handle these fine.
4870 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4872 * NEWS: Mention new 'z' formatter.
4873 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4874 (_initialize_printcmd): Mention 'z' formatter in help text of the
4877 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4879 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4882 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4884 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4885 interface can evaluate arguments. Fallback to the old mode if it
4887 (create_exception_master_breakpoint): Likewise.
4888 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4889 (struct sym_probe_fns elf_probe_fns): Export function above to the
4891 * probe.c (can_evaluate_probe_arguments): New function.
4892 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4894 (can_evaluate_probe_arguments): New function prototype.
4895 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4896 probe interface can evaluate arguments. Fallback to the old mode
4898 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4899 interface can evaluate arguments. Warning the user if it cannot.
4900 (stap_can_evaluate_probe_arguments): New function.
4901 (struct probe_ops stap_probe_ops): Export function above to the
4903 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4904 New function pointer.
4906 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4908 * Makefile.in (SFILES): Add common/target-common.c.
4909 Add common/target-common.h to headers.
4910 (COMMON_OBS): Add target-common.o.
4911 (target-common.o): New target.
4912 * linux-nat.h (resume_kind): Move to common/target-common.h.
4913 * target.c (target_waitstatus_to_string): Move to
4914 common/target-common.c.
4915 * target.h: Include target-common.h.
4916 (target_waitkind): Move to common/target-common.h.
4917 (target_waitstatus): Likewise.
4918 (TARGET_WNOHANG): Likewise.
4919 * common/target-common.c: New file.
4920 * common/target-common.h: New file.
4922 2013-07-24 Doug Evans <dje@google.com>
4924 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4927 2013-07-23 Yao Qi <yao@codesourcery.com>
4929 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4930 parameter 'gdbarch'.
4931 (i386_stack_tramp_frame_sniffer): Caller update.
4932 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4933 parameter 'gdbarch' and 'target'.
4934 (i386_linux_core_read_description): Caller update.
4935 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4937 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4940 2013-07-23 Tom Tromey <tromey@redhat.com>
4942 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4945 2013-07-22 Doug Evans <dje@google.com>
4947 * exec.h (remove_target_sections): Delete arg abfd.
4948 * exec.c (exec_close): Update call to remove_target_sections.
4949 (remove_target_sections): Delete arg abfd.
4950 * solib.c (update_solib_list): Ditto.
4951 (reload_shared_libraries_1): Ditto.
4952 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4953 * target.h (struct target_section): Rename key to owner.
4956 2013-07-22 Tom Tromey <tromey@redhat.com>
4958 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4960 2013-07-22 Tom Tromey <tromey@redhat.com>
4962 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4963 Simplify cleanup handling.
4965 2013-07-22 Tom Tromey <tromey@redhat.com>
4967 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4968 on all return paths.
4970 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4972 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4973 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4974 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4976 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4978 * top.c (print_gdb_version): Add help, apropos description and
4979 url to online documentation.
4981 2013-07-19 Hui Zhu <hui@codesourcery.com>
4984 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4986 2013-07-19 Yao Qi <yao@codesourcery.com>
4988 * target.c (update_current_target): Change the default action
4989 of 'to_traceframe_info' from tcomplain to return_zero.
4990 * target.h (struct target_ops) <to_traceframe_info>: Add more
4992 * valops.c (read_value_memory): Call
4993 traceframe_available_memory unconditionally.
4995 2013-07-18 Yao Qi <yao@codesourcery.com>
4997 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4998 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4999 symbol without prefix. If found, set its type to
5000 'mst_solib_trampoline'.
5002 2013-07-17 Doug Evans <dje@google.com>
5004 * NEWS: Mention "set print raw frame-arguments".
5005 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5006 * stack.c (print_raw_frame_arguments): New static global.
5007 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5008 (_initialize_stack): New command "set/show print raw frame-arguments".
5009 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5010 (set_print_raw, show_print_raw): New functions.
5011 (_initialize_valprint): New prefix command "set/show print raw".
5012 * valprint.h (value_print_options): Improve comments.
5014 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5015 of all *list variables.
5017 * gdbcmd.h (togglelist): Delete.
5018 * cli/cli-cmds.c (togglelist): Delete.
5019 (init_cmd_lists): Update.
5020 * cli/cli-cmds.h (togglelist): Delete.
5022 2013-07-17 Tom Tromey <tromey@redhat.com>
5024 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5027 2013-07-16 Doug Evans <dje@google.com>
5029 * nto-tdep.c (nto_relocate_section_addresses): Update,
5030 target_section.bfd deleted.
5031 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5032 * s390-tdep.c (s390_load): Ditto.
5033 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5035 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5037 * common/format.c (parse_format_string): Add checks for NULL
5038 character before calling strchr.
5040 2013-07-16 Doug Evans <dje@google.com>
5042 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5043 temp_pathname argument.
5044 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5045 when opening the file fails.
5047 * target.h (struct target_section): Delete member bfd.
5048 All users updated to use the_bfd_section->owner instead.
5049 * exec.c (add_to_section_table): Assert bfd is expected value.
5050 Remove initialization of target_section.bfd.
5051 (remove_target_sections): Update.
5052 (section_table_available_memory): Update.
5053 (section_table_xfer_memory_partial): Update.
5054 (print_section_info): Update.
5055 (exec_set_section_address): Update.
5056 * record-full.c (record_full_core_xfer_partial): Update.
5057 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5058 * solib-target.c (solib_target_relocate_section_addresses): Update.
5059 * symfile.c (build_section_addr_info_from_section_table): Update.
5060 * target.c (memory_xfer_live_readonly_partial): Update.
5061 (memory_xfer_partial_1): Update.
5063 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5065 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5066 now available for embedded (BookE) and server (BookS) processors,
5067 correct mentions of 'booke' and adjust comments accordingly in order to
5068 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5069 (have_ptrace_booke_interface): Rename function and variable
5070 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5071 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5072 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5073 'hwdebug_point_cmp'. Update all uses.
5074 (booke_find_thread_points_by_tid): Rename function
5075 'booke_find_thread_points_by_tid' to
5076 'hwdebug_find_thread_points_by_tid'. Update all uses.
5077 (booke_insert_point): Rename function 'booke_insert_point' to
5078 'hwdebug_insert_point'. Update all uses.
5079 (booke_remove_point): Rename function 'booke_remove_point' to
5080 'hwdebug_remove_point'. Update all uses.
5082 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5084 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5085 numbers with enum values.
5087 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5090 * thread.c (thread_apply_all_command): Check for valid threads
5092 (thread_array_cleanup): New struct.
5093 (set_thread_refcount): New function.
5095 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5097 * infcmd.c (default_print_one_register_info): Reuse function
5100 2013-07-10 Tom Tromey <tromey@redhat.com>
5102 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5103 (ada-exp.o): New target.
5105 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5107 * mt-tdep.c (mt_registers_info): Call
5108 get_no_prettyformat_print_options instead of
5109 get_raw_print_options (regression by last patch from Doug
5112 2013-07-09 Pedro Alves <palves@redhat.com>
5114 Checked in by Joel Brobecker <brobecker@adacore.com>.
5115 * ada-lang.c (coerce_unspec_val_to_type): Use
5116 value_optimized_out_const.
5117 * value.c (value_optimized_out_const): New function.
5118 * value.h (value_optimized_out_const): New declaration.
5120 2013-07-09 Doug Evans <dje@google.com>
5122 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5123 Enum values rename as well. All uses updated.
5124 * valprint.h (value_print_options): Rename member pretty to
5125 pretty format. Rename member prettyprint_arrays to
5126 prettyformat_arrays. Rename member prettyprint_structs to
5127 prettyformat_structs. All uses updated.
5128 (get_no_prettyformat_print_options): Renamed from
5129 get_raw_print_options.
5130 * valprint.c (get_no_prettyformat_print_options): Renamed from
5131 get_raw_print_options. All callers updated.
5132 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5133 All callers updated.
5134 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5135 All callers updated.
5136 (_initialize_valprint): Improve help text for "set print pretty" and
5139 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5141 * value.c (value_bits_valid): Revert previous change, and change
5142 by Pedro on 2013-07-04, due to regressions in
5143 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5145 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5146 Pedro Alves <palves@redhat.com>
5148 * value.c (value_bits_valid): If the value is not lval_computed
5149 or has no check validity handler then the answer is the
5150 optimized_out flag, otherwise defer to the handler.
5152 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5154 * top.c (print_gdb_configuration): Explain in output of
5155 --configuration what does "relocatable" mean.
5157 * main.c (print_gdb_help): Regroup options in the --help text.
5158 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5159 the relevant discussions.
5161 2013-07-06 Yao Qi <yao@codesourcery.com>
5163 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5164 Remove parameter 'lsal'.
5165 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5166 to inner block. Caller update.
5167 (base_breakpoint_create_breakpoints_sal): Update.
5168 (bkpt_create_breakpoints_sal): Likewise.
5169 (tracepoint_create_breakpoints_sal): Likewise.
5170 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5171 element 0 of vector 'canonical->sals'.
5173 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5175 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5176 register number instead of the pseudo register one.
5177 (rs6000_dwarf2_reg_to_regnum): Likewise.
5179 2013-07-04 Pedro Alves <palves@redhat.com>
5181 * findvar.c (value_of_register): Use allocate_optimized_out_value
5182 if the register has been optimized out, instead of
5183 set_value_optimized_out.
5184 * frame-unwind.c (frame_unwind_got_optimized): Use
5185 allocate_optimized_out_value.
5187 2013-07-04 Pedro Alves <palves@redhat.com>
5189 * value.c (value_bits_valid): If the value is not lval_computed,
5190 or doesn't have a check_validity hook, assume the value is entirely
5193 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5195 * stack.c (read_frame_arg): No longer fetch lazy values.
5196 * value.c (value_optimized_out): If the value is not already
5197 marked optimized out, and is lazy then fetch it.
5198 (value_primitive_field): Move optimized out check to later in the
5199 function, after we have loaded any lazy values.
5200 (value_fetch_lazy): Use optimized out flag directly rather than
5201 calling optimized_out method.
5203 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5205 * valops.c: Don't include "user-regs.h".
5206 (value_fetch_lazy): Moved to value.c.
5207 * value.c: Include "user-regs.h".
5208 (value_fetch_lazy): Moved from valops.c.
5210 2013-07-04 Yao Qi <yao@codesourcery.com>
5213 2013-06-27 Yao Qi <yao@codesourcery.com>
5215 * common/create-version.sh: Update comments. Handle the case
5216 that TARGET_ALIAS is empty.
5218 2013-07-03 Pedro Alves <palves@redhat.com>
5220 * Makefile.in (config.status): Depend on development.sh.
5221 (aclocal_m4_deps): Add libmcheck.m4.
5222 * acinclude.m4: Include libmcheck.m4.
5223 * configure.ac: Source development.sh instead of setting
5224 'development' here. --enable-libmcheck/--disable-libmcheck code
5225 factored out to GDB_AC_LIBMCHECK. Run it.
5226 * development.sh: New file.
5227 * libmcheck.m4: New file.
5228 * configure: Regenerate.
5230 2013-07-02 Tom Tromey <tromey@redhat.com>
5232 * contrib/ari/update-web-ari.sh: Update for version.in change.
5234 2013-07-02 Tom Tromey <tromey@redhat.com>
5236 * common/ptid.h: Comment fixes.
5238 2013-07-01 Tom Tromey <tromey@redhat.com>
5240 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5241 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5242 (dwarf2_read_index, create_all_comp_units): Update.
5244 2013-07-01 Tom Tromey <tromey@redhat.com>
5246 * configure.ac (build_warnings): Add -Wold-style-definition.
5247 * configure: Rebuild.
5248 * machoread.c (_initialize_machoread): Use "(void)".
5249 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5252 2013-07-01 Tom Tromey <tromey@redhat.com>
5254 * configure.ac (build_warnings): Add -Wold-style-declaration.
5255 * configure: Rebuild.
5256 * dsrec.c (make_srec): Use "static const", not "const static".
5257 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5259 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5260 Use "static const", not "const static".
5261 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5263 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5265 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5267 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5269 (v850_dbtrap_breakpoint_from_pc): Likewise.
5270 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5273 2013-07-01 Tom Tromey <tromey@redhat.com>
5275 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5276 * configure: Rebuild.
5278 2013-07-01 Pedro Alves <palves@redhat.com>
5280 * defs.h: Include "pathmax.h".
5281 * utils.c: Don't include sys/param.h.
5282 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5283 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5284 instead of MAXPATHLEN.
5285 * solib-sunos.c: Don't include sys/param.h.
5286 * xcoffread.c: Don't include sys/param.h.
5287 * bsd-kvm.c: Don't include sys/param.h.
5288 * darwin-nat.c: Don't include sys/param.h.
5289 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5290 * darwin-nat-info.c: Don't include sys/param.h.
5291 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5293 * i386obsd-nat.c: Don't include sys/param.h.
5294 * inf-child.c: Don't include sys/param.h.
5295 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5296 * linux-fork.c: Don't include sys/param.h.
5297 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5298 * linux-nat.c: Don't include sys/param.h.
5299 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5300 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5301 * m68klinux-nat.c: Don't include sys/param.h.
5302 * nbsd-nat.c: Don't include sys/param.h.
5303 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5304 * ppc-linux-nat.c: Don't include sys/param.h.
5305 * rs6000-nat.c: Don't include sys/param.h.
5306 * spu-linux-nat.c. Don't include sys/param.h.
5307 * windows-nat.c: Don't include sys/param.h.
5308 * xtensa-linux-nat.c: Don't include sys/param.h.
5309 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5311 2013-07-01 Pedro Alves <palves@redhat.com>
5313 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5314 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5315 * gnulib/aclocal.m4: Regenerate.
5316 * gnulib/config.in: Regenerate.
5317 * gnulib/configure: Regenerate.
5318 * gnulib/import/pathmax.h: New file.
5319 * gnulib/import/Makefile.am: Regenerate.
5320 * gnulib/import/Makefile.in: Regenerate.
5321 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5322 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5323 * gnulib/import/m4/pathmax.m4: New file.
5325 2013-07-01 Pedro Alves <palves@redhat.com>
5327 * configure.ac (GDBINIT): Define, depending on host.
5328 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5329 * top.c (PATH_MAX): Delete fallback definition.
5330 (GDBINIT_FILENAME): Delete.
5331 (gdbinit): Reimplement as const char array set to the GDBINIT
5333 * top.h (gdbinit): Make const.
5334 * configure, config.in: Regenerate.
5336 2013-07-01 Pedro Alves <palves@redhat.com>
5338 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5339 * cli/cli-cmds.h (source_script): Likewise.
5340 * exceptions.c (catch_command_errors_const): New function.
5341 * exceptions.h (catch_command_errors_const): Declare.
5342 * main.c (get_init_files): Make parameters const, and adjust.
5343 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5344 'local_gdbinit' locals const. Adjust to use
5345 catch_command_errors_const.
5346 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5347 'local_gdbinit' locals const.
5349 2013-07-01 Pedro Alves <palves@redhat.com>
5351 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5352 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5353 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5356 2013-07-01 Pedro Alves <palves@redhat.com>
5358 Import the "unistd" gnulib module.
5359 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5360 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5361 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5362 import/m4/unistd_h.m4.
5363 * gnulib/aclocal.m4: Renenerate.
5364 * gnulib/config.in: Renenerate.
5365 * gnulib/configure: Renenerate.
5366 * gnulib/import/Makefile.am: Renenerate.
5367 * gnulib/import/Makefile.in: Renenerate.
5368 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5369 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5370 * gnulib/import/m4/off_t.m4: New file.
5371 * gnulib/import/m4/ssize_t.m4: New file.
5372 * gnulib/import/m4/sys_types_h.m4: New file.
5373 * gnulib/import/m4/unistd_h.m4: New file.
5374 * gnulib/import/sys_types.in.h: New file.
5375 * gnulib/import/unistd.c: New file.
5376 * gnulib/import/unistd.in.h: New file.
5378 2013-07-01 Pedro Alves <palves@redhat.com>
5380 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5381 defined instead of checking HAVE_UNISTD_H.
5383 2013-07-01 Pedro Alves <palves@redhat.com>
5385 Reimport gnulib from scratch.
5386 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5387 import/m4/onceonly.m4.
5388 * gnulib/aclocal.m4: Renegerate.
5389 * gnulib/config.in: Renegerate.
5390 * gnulib/configure: Renegerate.
5391 * gnulib/import/Makefile.in: Renegerate.
5392 * gnulib/import/extra/update-copyright: Renegerate.
5393 * gnulib/import/m4/onceonly.m4: Delete.
5395 2013-07-01 Pedro Alves <palves@redhat.com>
5397 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5399 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5402 * remote.c (async_remote_interrupt_twice): Make it static.
5403 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5405 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5407 * ia64-linux-tdep.c: Include <ctype.h>.
5408 (ia64_linux_stap_is_single_operand): New function.
5409 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5411 2013-06-28 Tom Tromey <tromey@redhat.com>
5413 * Makefile.in (version.c): Use version.in, not
5415 * common/create-version.sh: Likewise.
5416 * common/version.in: Move...
5417 * version.in: ...here.
5419 2013-06-28 Pedro Alves <palves@redhat.com>
5421 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5423 * utils.h (pagination_enabled): Declare.
5425 2013-06-28 Pedro Alves <palves@redhat.com>
5427 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5428 Move higher up in file.
5430 2013-06-28 Tom Tromey <tromey@redhat.com>
5432 * tracepoint.c (deprecated_readline_begin_hook)
5433 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5436 2013-06-28 Pedro Alves <palves@redhat.com>
5439 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5440 checking if they're available.
5441 * value.c (value_available_contents_eq): Change comment.
5442 * value.h (value_available_contents_eq): Expand comment.
5444 2013-06-27 Tom Tromey <tromey@redhat.com>
5446 * target.c (find_run_target): Remove.
5447 * target.h (find_run_target): Remove.
5449 2013-06-27 Tom Tromey <tromey@redhat.com>
5451 * corelow.c (core_gdbarch): Now static.
5453 2013-06-27 Tom Tromey <tromey@redhat.com>
5455 * target.c (target_struct_index): Remove.
5457 2013-06-27 Pedro Alves <palves@redhat.com>
5459 * infrun.c: Remove comment describing the 'stepping over runtime
5460 loader dynamic symbol resolution code' mechanism; moved to
5463 2013-06-27 Pedro Alves <palves@redhat.com>
5465 * exceptions.c (catch_command_errors): Remove spurious space.
5466 * exceptions.h (catch_command_errors): Second parameter is "arg",
5469 2013-06-27 Yao Qi <yao@codesourcery.com>
5471 * common/create-version.sh: Update comments. Handle the case
5472 that TARGET_ALIAS is empty.
5474 2013-06-26 Pedro Alves <palves@redhat.com>
5476 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5479 2013-06-26 Pedro Alves <palves@redhat.com>
5481 * infrun.c: Update comments on stepping over runtime loader
5482 dynamic symbol resolution code.
5484 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5486 * ax-gdb.h (union exp_element): Forward declare.
5487 * parser-defs.h: Include expression.h.
5489 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5491 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5493 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5495 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5497 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5499 Fix trace-status to output proper start-time and stop-time.
5500 * tracepoint.c (trace_status_command): Fix type of printf arg to
5501 prevent improper type conversion.
5502 (trace_status_mi): Likewise.
5504 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5506 * mips-tdep.c (mips_next_pc): Fix a typo.
5508 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5510 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5512 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5513 Yao Qi <yao@codesourcery.com>
5515 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5516 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5517 * mi/mi-main.c (print_variable_or_computed): New function.
5518 (mi_cmd_trace_frame_collected): New function.
5519 * tracepoint.c (find_trace_state_variable_by_number): New.
5520 (struct traceframe_info): Move to tracepoint.h
5521 (struct collection_list): Likewise.
5522 (do_collect_symbol): Include locals and arguments in the
5523 collected variables list.
5524 (clear_collection_list): Clear wholly collected variables list
5525 and computed variables list.
5526 (append_exp): New function.
5527 (encode_actions_1): Include variables in the wholly
5528 collected variables list. Include memory ranges and
5529 full-fledged expressions in the computed expressions list.
5530 (encode_actions): Move some code to ...
5531 Return the cleanup chain.
5532 (encode_actions_rsp): ... here. New function.
5533 (get_traceframe_location, get_traceframe_info): Remove static.
5534 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5535 (struct collection_list): Moved from tracepoint.c. Add two
5536 new fields 'wholly_collected' and 'computed'.
5537 (find_trace_state_variable_by_number): Declare.
5538 (encode_actions): Adjust declaration.
5539 (encode_actions_rsp): Declare.
5540 (get_traceframe_info, get_traceframe_location): Declare.
5542 * NEWS: Mention new MI command -trace-frame-collected.
5544 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5545 Yao Qi <yao@codesourcery.com>
5547 * ctf.c (ctf_traceframe_info): Push trace state variables
5548 present in the trace data into the traceframe info object.
5549 * breakpoint.c (DEF_VEC_I): Remove.
5550 * common/filestuff.c (DEF_VEC_I): Likewise.
5551 * dwarf2loc.c (DEF_VEC_I): Likewise.
5552 * mi/mi-main.c (DEF_VEC_I): Likewise.
5553 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5554 * features/traceframe-info.dtd: Add tvar element and its
5556 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5557 (build_traceframe_info): Push trace state variables present in
5558 the trace data into the traceframe info object.
5559 (traceframe_info_start_tvar): New function.
5560 (tvar_attributes): New.
5561 (traceframe_info_children): Add "tvar" element.
5562 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5564 * NEWS: Mention the change in GDB and GDBserver.
5566 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5567 Yao Qi <yao@codesourcery.com>
5569 * tracepoint.c (trace_dump_command): Move code to ...
5570 (get_traceframe_location): ... here. New.
5572 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5573 Yao Qi <yao@codesourcery.com>
5575 * tracepoint.c (trace_dump_command): GDB emits an error
5576 instead of a warning when a traceframe is not selected.
5578 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5579 Yao Qi <yao@codesourcery.com>
5581 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5582 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5584 (do_clear_collection_list, init_collection_list): New.
5585 (encode_actions): Add local variables 'tracepoint_list' and
5586 'stepping_list'. Call init_collection_list and make cleanup
5587 which calls do_clear_collection_list. Don't call
5588 clear_collection_list.
5589 (_initialize_tracepoint): Delete references to
5590 'tracepoint_list' and 'stepping_list'.
5592 2013-06-25 Tom Tromey <tromey@redhat.com>
5594 * common/create-version.sh (date): Use "$", not "$$" in sed
5597 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5599 * NEWS (New targets): Add entry for TI MSP430.
5601 2013-06-25 Yao Qi <yao@codesourcery.com>
5603 * remote.c (remote_start_remote): Move code to upload tsv
5606 2013-06-25 Yao Qi <yao@codesourcery.com>
5607 Hui Zhu <hui@codesourcery.com>
5608 Pedro Alves <palves@redhat.com>
5610 PR breakpoints/15075
5611 PR breakpoints/15434
5612 * breakpoint.c (bpstat_stop_status): Call
5613 b->ops->after_condition_true.
5614 (update_dprintf_command_list): Don't append "continue" command
5615 to the command list of dprintf breakpoint.
5616 (base_breakpoint_after_condition_true): New function.
5617 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5618 (dprintf_after_condition_true): New function.
5619 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5620 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5622 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5624 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5625 (ALLDEPFILES): Add msp430-tdep.c.
5626 * configure.tgt (msp430*-*-elf): New target.
5627 * msp430-tdep.c: New file.
5629 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5631 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5632 microMIPS synthetic symbols.
5634 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5636 * objfiles.h (pc_in_section): New prototype.
5637 (in_plt_section): Remove name argument, replace prototype with
5638 static inline function.
5639 * mips-tdep.h: Include "objfiles.h".
5640 (in_mips_stubs_section): New function.
5641 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5642 in_solib_call_trampoline member.
5643 (hppa_in_solib_call_trampoline): Remove name argument.
5644 * objfiles.c (pc_in_section): New function.
5645 (in_plt_section): Remove function.
5646 * mips-linux-tdep.c: Include "objfiles.h".
5647 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5648 name argument. Return 1 rather than the low 16-bit halfword of
5649 any instruction examined.
5650 (mips_linux_in_dynsym_resolve_code): Update
5651 mips_linux_in_dynsym_stub call accordingly.
5652 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5653 rather than an equivalent hand-coded sequence.
5654 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5655 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5656 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5657 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5659 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5660 on call to tdep->in_solib_call_trampoline.
5661 (hppa_in_solib_call_trampoline): Remove name argument, update
5662 according to in_plt_section change.
5663 (hppa_skip_trampoline_code): Update according to in_plt_section
5665 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5666 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5668 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5669 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5670 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5671 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5672 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5673 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5674 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5675 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5676 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5677 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5678 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5679 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5680 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5682 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5684 * common/create-version.sh: Fix expansion of $host_alias
5685 and $target_alias in generation of HOST_NAME and TARGET_NAME
5688 2013-06-24 Tom Tromey <tromey@redhat.com>
5690 * common/create-version.sh: New file.
5691 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5693 (HFILES_NO_SRCDIR): Use common/version.h.
5694 * version.in: Move to ...
5695 * common/version.in: ... here. Replace date with "DATE".
5696 * version.h: Move to ...
5697 * common/version.h: ... here.
5699 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5701 * gdb/gnulib/Makefile.in: Update date in copyright header.
5702 * gdb/gnulib/configure.ac: Ditto.
5703 * gdb/gnulib/update-gnulib.sh: Ditto.
5705 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5707 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5708 "gdb/gnulib/import".
5710 2013-06-21 Will Newton <will.newton@linaro.org>
5712 * doublest.c (ldfrexp): Remove function.
5713 (convert_doublest_to_floatformat): Call frexpl instead of
5716 2013-06-21 Will Newton <will.newton@linaro.org>
5718 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5719 * gnulib/aclocal.m4: Regenerate.
5720 * gnulib/config.in: Regenerate.
5721 * gnulib/configure: Regenerate.
5722 * gnulib/import/Makefile.am: Update.
5723 * gnulib/import/Makefile.in: Update.
5724 * gnulib/import/m4/gnulib-cache.m4: Update.
5725 * gnulib/import/m4/gnulib-comp.m4: Update.
5726 * gnulib/import/float+.h: Import.
5727 * gnulib/import/float.c: Import.
5728 * gnulib/import/float.in.h: Import.
5729 * gnulib/import/fpucw.h: Import.
5730 * gnulib/import/frexp.c: Import.
5731 * gnulib/import/frexpl.c: Import.
5732 * gnulib/import/isnan.c: Import.
5733 * gnulib/import/isnand-nolibm.h: Import.
5734 * gnulib/import/isnand.c: Import.
5735 * gnulib/import/isnanl-nolibm.h: Import.
5736 * gnulib/import/isnanl.c: Import.
5737 * gnulib/import/itold.c: Import.
5738 * gnulib/import/m4/exponentd.m4: Import.
5739 * gnulib/import/m4/exponentl.m4: Import.
5740 * gnulib/import/m4/float_h.m4: Import.
5741 * gnulib/import/m4/fpieee.m4: Import.
5742 * gnulib/import/m4/frexp.m4: Import.
5743 * gnulib/import/m4/frexpl.m4: Import.
5744 * gnulib/import/m4/isnand.m4: Import.
5745 * gnulib/import/m4/isnanl.m4: Import.
5746 * gnulib/import/m4/math_h.m4: Import.
5747 * gnulib/import/math.c: Import.
5748 * gnulib/import/math.in.h: Import.
5750 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5753 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5754 signature_INTEL_edx comparisons.
5756 2013-06-20 Doug Evans <dje@google.com>
5759 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5760 All callers updated.
5761 (open_dwp_file): If we can't find the dwp file, search the basename
5762 in debug-file-directory.
5764 * dwarf2read.c (struct dwp_file): Fix comment.
5765 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5767 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5770 2013-06-20 Yao Qi <yao@codesourcery.com>
5772 * breakpoint.c (create_breakpoint): Fix code indentation.
5774 2013-06-20 Yao Qi <yao@codesourcery.com>
5776 * breakpoint.c (create_breakpoints_sal_default): Remove
5777 parameter 'lsal'. Update declaration.
5778 (bkpt_create_breakpoints_sal): Caller update.
5779 (tracepoint_create_breakpoints_sal): Likewise.
5781 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5782 Yao Qi <yao@codesourcery.com>
5784 * NEWS: Mention the new option '--skip-unavailable' of command
5785 -data-list-register-values.
5786 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5787 --skip-unavailable option. Adjust to use output_register.
5788 (output_register): Add new 'skip_unavailable' parameter.
5791 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5793 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5794 common/i386-gcc-cpuid.h.
5795 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5796 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5797 Copy the latest version from upstream gcc.
5798 * common/linux-btrace.c: Include i386-cpuid.h.
5799 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5801 (cpu_supports_btrace): Likewise.
5802 * go32-nat.c: Include i386-cpuid.h.
5803 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5805 2013-06-19 Doug Evans <dje@google.com>
5807 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5808 (get_section_index): Ditto.
5810 2013-06-19 Tom Tromey <tromey@redhat.com>
5812 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5815 2013-06-18 Doug Evans <dje@google.com>
5817 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5819 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5820 Move test of cu_index closer to use. Print complaint if cu_index
5823 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5825 * machoread.c (oso_vector): Delete this global.
5826 (macho_register_oso): Add new parameter "oso_vector_ptr".
5827 Use it instead of the "oso_vector" global.
5828 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5829 (macho_symfile_read): Use a local oso_vector, to be free'ed
5830 at the end of this function, in place of the old "oso_vector"
5831 global. Update various function calls accordingly. Use one
5832 single cleanup chain for the entire function.
5834 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5836 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5837 DWARF2_PER_OBJFILE by uses of DATA instead.
5839 2013-06-18 Tom Tromey <tromey@redhat.com>
5841 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5843 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5844 Special case signals other than GDB_SIGNAL_TRAP.
5845 (explains_signal_watchpoint): New function.
5846 (base_breakpoint_explains_signal): Add 'sig' argument.
5847 (initialize_breakpoint_ops): Set 'explains_signal' method for
5849 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5851 (bpstat_explains_signal): Likewise.
5852 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5854 2013-06-18 Tom Tromey <tromey@redhat.com>
5856 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5858 2013-06-18 Tom Tromey <tromey@redhat.com>
5860 * python/python.c (finish_python_initialization): Decref
5861 'pythondir' on failure path as well.
5863 2013-06-18 Tom Tromey <tromey@redhat.com>
5866 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5867 after taking bits_to_skip into account. Sign extend byte_offset.
5868 * utils.h (gdb_sign_extend): Declare.
5869 * utils.c (gdb_sign_extend): New function.
5871 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5873 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5875 2013-06-17 Pierre Muller <muller@sourceware.org>
5877 * corelow.c (core_open): Print GDB signal name instead of target
5880 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5882 * .gitignore: Add /gcore.
5884 2013-06-13 Doug Evans <dje@google.com>
5886 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5887 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5889 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5891 * stack.c (backtrace_command_1): Fix indentation.
5893 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5895 * window-nat.c (thread_rec): Add missing empty line after
5896 local variable declaration.
5898 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5900 * windows-nat.c (thread_rec): Revert format used to print
5901 error code returned by SuspendThread from %d back to %u.
5903 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5905 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5907 (get_windows_debug_event): Likewise, for all debug traces.
5909 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5911 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5914 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5915 Yao Qi <yao@codesourcery.com>
5917 * mi/mi-main.c (get_register): Remove declaration.
5918 (output_register): Declare.
5919 (mi_cmd_data_list_register_values): Remove local variable
5920 'tuple_cleanup'. Move some code into output_register.
5921 (get_register): Renamed to ...
5922 (output_register): ... this. Output the register's
5923 "number" ui_out tuple here.
5925 2013-06-07 Pedro Alves <palves@redhat.com>
5927 * darwin-nat.c: Fix formating in copyright header.
5928 * darwin-nat.h: Likewise.
5929 * gnu-nat.c: Likewise.
5930 * machoread.c: Likewise.
5932 2013-06-07 Pedro Alves <palves@redhat.com>
5935 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5936 static. Output a global target description pointer.
5937 (init_registers_${name}): Adjust to initialize a
5938 target description structure.
5940 2013-06-07 Will Newton <will.newton@linaro.org>
5942 * printcmd.c (build_address_symbolic): Call
5943 gdbarch_addr_bits_remove for text minimal symbols.
5945 2013-06-07 Will Newton <will.newton@linaro.org>
5947 * MAINTAINERS: Add myself to Write After Approval.
5949 2013-06-07 Yao Qi <yao@codesourcery.com>
5951 * tracepoint.c (start_tracing): Move code to ...
5952 (trace_reset_local_state): ... here. New.
5953 (disconnect_tracing): Don't call set_current_traceframe,
5954 set_tracepoint_num, and set_traceframe_context. Call
5955 trace_reset_local_state instead.
5956 (tfile_close): Call trace_reset_local_state.
5957 * ctf.c (ctf_close): Likewise.
5958 * remote.c (remote_close): Likewise.
5959 * tracepoint.h (trace_reset_local_state): Declare.
5961 2013-06-06 Doug Evans <dje@google.com>
5963 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5964 and fix header docs.
5966 2013-06-05 Doug Evans <dje@google.com>
5967 Keith Seitz <keiths@redhat.com>
5970 * cp-namespace.c (find_symbol_in_baseclass): Call
5971 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5972 Check result of call to lookup_symbol_static.
5973 Call lookup_static_symbol_aux unconditionally.
5974 Call check_typedef on base types before accessing them.
5975 (cp_lookup_nested_symbol): Fix comment.
5977 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5979 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5980 minimal symbols pointing to function descriptors.
5982 2013-06-05 Tom Tromey <tromey@redhat.com>
5984 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5986 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5987 Pedro Alves <palves@redhat.com>
5989 * remote.c (remote_wait_as): Restore signal handler before returning
5990 when GDB gets a notification.
5992 2013-06-04 Gary Benson <gbenson@redhat.com>
5995 * breakpoint.h (handle_solib_event): Moved function declaration
5997 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5998 (bpstat_stop_status): Pass new argument to handle_solib_event.
5999 * solib.h (update_solib_breakpoints): New function declaration.
6000 (handle_solib_event): Moved function declaration from
6002 * solib.c (update_solib_breakpoints): New function.
6003 (handle_solib_event): Moved function from breakpoint.c.
6004 Updated to call solib_ops->handle_event if not NULL.
6005 * solist.h (target_so_ops): New fields "update_breakpoints" and
6007 * infrun.c (set_stop_on_solib_events): New function.
6008 (_initialize_infrun): Use the above for "set
6009 stop-on-solib-events".
6010 (handle_inferior_event): Pass new argument to handle_solib_event.
6011 * solib-svr4.c (probe.h): New include.
6012 (svr4_free_library_list): New forward declaration.
6013 (probe_action): New enum.
6014 (probe_info): New struct.
6015 (probe_info): New static variable.
6016 (NUM_PROBES): New definition.
6017 (svr4_info): New fields "using_xfer", "probes_table" and
6019 (free_probes_table): New function.
6020 (free_solib_list): New function.
6021 (svr4_pspace_data_cleanup): Free probes table and solib list.
6022 (svr4_copy_library_list): New function.
6023 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6024 (svr4_read_so_list): New parameter "prev_lm".
6025 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6026 (svr4_current_sos): New function.
6027 (probe_and_action): New struct.
6028 (hash_probe_and_action): New function.
6029 (equal_probe_and_action): Likewise.
6030 (register_solib_event_probe): Likewise.
6031 (solib_event_probe_at): Likewise.
6032 (solib_event_probe_action): Likewise.
6033 (solist_update_full): Likewise.
6034 (solist_update_incremental): Likewise.
6035 (disable_probes_interface_cleanup): Likewise.
6036 (svr4_handle_solib_event): Likewise.
6037 (svr4_update_solib_event_breakpoint): Likewise.
6038 (svr4_update_solib_event_breakpoints): Likewise.
6039 (svr4_create_solib_event_breakpoints): Likewise.
6040 (enable_break): Free probes table before creating breakpoints.
6041 Use svr4_create_solib_event_breakpoints to create breakpoints.
6042 (svr4_solib_create_inferior_hook): Free the solib list.
6043 (_initialize_svr4_solib): Initialise
6044 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6046 2013-06-04 Gary Benson <gbenson@redhat.com>
6048 * target.h (target_ops): New field
6049 "to_augmented_libraries_svr4_read".
6050 (target_augmented_libraries_svr4_read): New macro.
6051 * target.c (update_current_target): Handle
6052 to_augmented_libraries_svr4_read.
6053 * remote.c (remote_state): New field
6054 "augmented_libraries_svr4_read".
6055 (remote_augmented_libraries_svr4_read_feature): New function.
6056 (remote_protocol_features): Add entry for
6057 "augmented-libraries-svr4-read".
6058 (remote_augmented_libraries_svr4_read): New function.
6059 (init_remote_ops): Initialize
6060 remote_ops.to_augmented_libraries_svr4_read.
6062 2013-06-04 Gary Benson <gbenson@redhat.com>
6066 2013-06-04 Gary Benson <gbenson@redhat.com>
6068 * objfiles.h (inhibit_section_map_updates): New function
6070 (resume_section_map_updates): Likewise.
6071 (resume_section_map_updates_cleanup): Likewise.
6072 * objfiles.c (objfile_pspace_info): Removed field
6073 "objfiles_changed_p". New fields "new_objfiles_available",
6074 "section_map_dirty" and "inhibit_updates".
6075 (allocate_objfile): Set new_objfiles_available.
6076 (free_objfile): Set section_map_dirty.
6077 (objfile_relocate1): Likewise.
6078 (in_plt_section): Likewise.
6079 (find_pc_section): Update the conditions under which the
6080 section map will be updated.
6081 (inhibit_section_map_updates): New function.
6082 (resume_section_map_updates): Likewise.
6083 (resume_section_map_updates_cleanup): Likewise.
6085 2013-06-04 Gary Benson <gbenson@redhat.com>
6087 * probe.h (get_probe_argument_count): New declaration.
6088 (evaluate_probe_argument): Likewise.
6089 * probe.c (get_probe_argument_count): New function.
6090 (evaluate_probe_argument): Likewise.
6091 (probe_safe_evaluate_at_pc): Use the above new functions.
6093 2013-06-04 Alan Modra <amodra@gmail.com>
6095 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6096 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6097 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6098 target mem reads on optional insns.
6099 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6100 ppc_insns_match_pattern calls.
6101 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6102 Add match for power7 thread safety insns, and new order of
6103 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6104 invocation in comment, and update rest of comment.
6105 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6106 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6107 (ppc64_standard_linkage2_target): Update insn offsets.
6108 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6109 stubs first. Update calls.
6111 2013-06-04 Yao Qi <yao@codesourcery.com>
6113 * solib.c (solib_find): Don't need dir separator if path has
6116 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6118 Revert (indirectly causes a SIGSEGV):
6119 * machoread.c (macho_symfile_read): Assign first cleanup to
6122 2013-06-03 Yao Qi <yao@codesourcery.com>
6124 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6125 mi-parse.c. Make them static.
6126 (mi_all_values): Likewise.
6127 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6128 mi_parse_print_values. Make it external.
6129 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6130 Remove the declarations.
6131 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6132 * mi/mi-parse.h (mi_parse_print_values): Declare.
6133 * mi/mi-cmd-stack.c: Include mi-parse.h.
6134 (parse_print_values): Remove
6135 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6136 of parse_print_values.
6137 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6139 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6140 Yao Qi <yao@codesourcery.com>
6142 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6143 (encode_actions): Move code to ...
6144 (all_tracepoint_actions_and_cleanup): ... here. New.
6145 (trace_dump_command): Likewise.
6147 2013-05-30 Tom Tromey <tromey@redhat.com>
6149 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6151 2013-05-30 Tom Tromey <tromey@redhat.com>
6153 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6154 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6155 'old_chain' argument. Add 'parser_result' argument.
6156 (gdb_xml_create_parser_and_cleanup): Remove old version.
6157 (gdb_xml_parse_quick): Update.
6158 (xml_process_xincludes): Update.
6159 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6162 2013-05-30 Tom Tromey <tromey@redhat.com>
6164 * probe.c (collect_probes): Check arguments for NULL before
6165 calling compile_rx_or_error.
6166 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6169 2013-05-30 Tom Tromey <tromey@redhat.com>
6171 * infrun.c (adjust_pc_after_break): Introduce an outer null
6174 2013-05-30 Tom Tromey <tromey@redhat.com>
6176 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6178 2013-05-30 Tom Tromey <tromey@redhat.com>
6180 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6181 for 'old_chain'. Do not check 'head' before processing
6184 2013-05-30 Tom Tromey <tromey@redhat.com>
6186 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6189 2013-05-30 Tom Tromey <tromey@redhat.com>
6191 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6192 inner scope. Unconditionally call do_cleanups.
6194 2013-05-30 Tom Tromey <tromey@redhat.com>
6196 * source.c (find_and_open_source): Call do_cleanups.
6198 2013-05-30 Tom Tromey <tromey@redhat.com>
6200 * linux-thread-db.c (thread_db_load_search): Unconditionally
6203 2013-05-30 Tom Tromey <tromey@redhat.com>
6205 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6206 for 'cleanup'; instead use a later one.
6208 2013-05-30 Tom Tromey <tromey@redhat.com>
6210 * python/py-breakpoint.c (bppy_get_commands): Use
6211 explicit, unconditional return.
6212 * python/py-frame.c (frapy_read_var): Likewise.
6213 * python/python.c (gdbpy_decode_line): Likewise.
6215 2013-05-30 Tom Tromey <tromey@redhat.com>
6217 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6218 do_cleanups on all return paths.
6220 2013-05-30 Tom Tromey <tromey@redhat.com>
6222 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6224 2013-05-30 Tom Tromey <tromey@redhat.com>
6226 * stabsread.c (read_struct_type): Call do_cleanups along
6229 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6231 * mips-linux-tdep.c: Adjust formatting throughout.
6233 2013-05-30 Tom Tromey <tromey@redhat.com>
6235 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6236 along all return paths.
6238 2013-05-30 Tom Tromey <tromey@redhat.com>
6240 * symfile.c (find_separate_debug_file): Call do_cleanups
6241 along all return paths.
6243 2013-05-30 Tom Tromey <tromey@redhat.com>
6245 * symtab.c (search_symbols): Introduce a null cleanup for
6248 2013-05-30 Tom Tromey <tromey@redhat.com>
6250 * python/py-value.c (valpy_binop): Call do_cleanups before
6253 2013-05-30 Tom Tromey <tromey@redhat.com>
6255 * python/py-prettyprint.c (print_children): Remove extra
6258 2013-05-30 Tom Tromey <tromey@redhat.com>
6260 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6263 2013-05-30 Tom Tromey <tromey@redhat.com>
6265 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6266 along all return paths.
6268 2013-05-30 Tom Tromey <tromey@redhat.com>
6270 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6273 2013-05-30 Tom Tromey <tromey@redhat.com>
6275 * varobj.c (c_value_of_root): Call do_cleanups along all
6278 2013-05-30 Tom Tromey <tromey@redhat.com>
6280 * tracepoint.c (trace_dump_command): Unconditionally call
6283 2013-05-30 Tom Tromey <tromey@redhat.com>
6285 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6286 do_cleanups earlier.
6288 2013-05-30 Tom Tromey <tromey@redhat.com>
6290 * machoread.c (macho_symfile_read): Assign first cleanup to
6293 2013-05-30 Tom Tromey <tromey@redhat.com>
6295 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6297 2013-05-30 Tom Tromey <tromey@redhat.com>
6299 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6301 2013-05-30 Tom Tromey <tromey@redhat.com>
6303 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6304 call discard_cleanups.
6305 (inf_ptrace_attach): Likewise.
6307 2013-05-30 Tom Tromey <tromey@redhat.com>
6309 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6311 (mips_initialize): Likewise.
6312 (common_open): Call do_cleanups.
6314 2013-05-30 Tom Tromey <tromey@redhat.com>
6316 * utils.c (internal_vproblem): Call do_cleanups.
6318 2013-05-30 Tom Tromey <tromey@redhat.com>
6320 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6322 2013-05-30 Tom Tromey <tromey@redhat.com>
6324 * cli/cli-script.c (setup_user_args): Don't return after error.
6326 2013-05-30 Tom Tromey <tromey@redhat.com>
6328 * somread.c (som_symtab_read): Call do_cleanups.
6330 2013-05-30 Tom Tromey <tromey@redhat.com>
6332 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6334 2013-05-30 Tom Tromey <tromey@redhat.com>
6336 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6337 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6338 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6339 * source.c (show_substitute_path_command): Call do_cleanups.
6340 (unset_substitute_path_command, set_substitute_path_command):
6342 * symfile.c (load_command): Call do_cleanups.
6344 2013-05-30 Tom Tromey <tromey@redhat.com>
6346 * contrib/cleanup_check.py: New file.
6347 * contrib/gcc-with-excheck: Add option parsing.
6349 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6351 * windows-nat.c (windows_delete_thread): Add missing space
6354 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6356 * inferior.c (top level): Include tilde.h.
6357 (add_inferior_command): Call tilde_expand on the value of 'exec'
6360 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6361 Yao Qi <yao@codesourcery.com>
6363 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6365 (encode_actions): Likewise.
6366 * remote.c (remote_download_tracepoint): Caller update.
6367 * tracepoint.h (encode_actions): Update declaration.
6369 2013-05-30 Pedro Alves <palves@redhat.com>
6371 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6374 2013-05-30 Yao Qi <yao@codesourcery.com>
6376 * remote.c (remote_check_symbols): Remove unused parameter
6379 (remote_start_remote, remote_new_objfile): Caller update.
6381 2013-05-30 Yao Qi <yao@codesourcery.com>
6383 * mi/mi-cmds.c (mi_cmds): Define MI command
6384 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6387 2013-05-29 Pedro Alves <palves@redhat.com>
6389 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6390 (remote_insert_watchpoint, remote_remove_watchpoint)
6391 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6392 (remote_verify_memory, compare_sections_command)
6393 (remote_search_memory): Set the general process/thread on the
6396 2013-05-29 Pedro Alves <palves@redhat.com>
6398 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6399 (_initialize_aarch64_tdep): Don't call
6400 initialize_tdesc_aarch64_without_fpu.
6401 * features/Makefile (WHICH): Remove reference to
6402 aarch64-without-fpu.
6403 * features/aarch64-without-fpu.c: Delete file.
6404 * regformats/aarch64-without-fpu.dat: Delete file.
6406 2013-05-28 Yao Qi <yao@codesourcery.com>
6408 * tracepoint.c (stringify_collection_list): Remove parameter
6410 (encode_actions): Caller update. Remove local variables.
6412 2013-05-24 Yao Qi <yao@codesourcery.com>
6414 * tracepoint.c (TFILE_PID): Remove.
6415 (tfile_open): Don't add thread and inferior.
6416 (tfile_close): Don't set 'inferior_ptid'. Don't call
6417 exit_inferior_silent.
6418 (tfile_thread_alive): Remove.
6419 (init_tfile_ops): Don't set field 'to_thread_alive' of
6422 2013-05-23 Doug Evans <dje@google.com>
6424 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6426 2013-05-23 Pedro Alves <palves@redhat.com>
6428 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6429 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6430 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6431 Only define if HAVE_SOCKETS is defined.
6432 * configure.ac: Check for sys/socket.h.
6433 * config.in, configure: Regenerate.
6435 2013-05-23 Pedro Alves <palves@redhat.com>
6437 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6438 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6439 printing uint32_t variables.
6441 2013-05-23 Pedro Alves <palves@redhat.com>
6443 * NEWS: Mention GDBserver range stepping support.
6445 2013-05-23 Yao Qi <yao@codesourcery.com>
6446 Pedro Alves <palves@redhat.com>
6448 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6450 * infcmd.c (step_once, until_next_command): Enable range stepping.
6451 * infrun.c (displaced_step_prepare): Disable range stepping.
6452 (resume): Disable range stepping if stepping over a breakpoint or
6453 we have software watchpoints. If range stepping is enabled,
6454 assert the thread is in the stepping range.
6455 (clear_proceed_status_thread): Clear may_range_step.
6456 (handle_inferior_event): Disable range stepping as soon as we know
6457 the thread that hit the event. Re-enable it whenever we're going
6458 to step with a step range.
6459 * remote.c (struct vCont_action_support) <r>: New field.
6460 (use_range_stepping): New global.
6461 (remote_vcont_probe): Handle 'r' action.
6462 (append_resumption): Append an 'r' action if the thread may range
6464 (show_range_stepping): New function.
6465 (set_range_stepping): New function.
6466 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6467 'set range-stepping' and 'show range-stepping' commands.
6468 * NEWS: Mention range stepping, the new vCont;r action, and the
6469 new "set/show range-stepping" commands.
6471 2013-05-23 Yao Qi <yao@codesourcery.com>
6472 Pedro Alves <palves@redhat.com>
6474 * remote.c (struct vCont_action_support): New struct.
6475 (struct remote_state) <support_vCont_t>: Remove field.
6476 <vCont_actions_support>: New field.
6477 (remote_vcont_probe, remote_stop_ns): Update.
6479 2013-05-23 Yao Qi <yao@codesourcery.com>
6480 Pedro Alves <palves@redhat.com>
6482 * gdbthread.h (pc_in_thread_step_range): New declaration.
6483 * thread.c (pc_in_thread_step_range): New function.
6484 * infrun.c (handle_inferior_event): Use it.
6486 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6488 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6491 2013-05-22 Keith Seitz <keiths@redhat.com>
6493 * ada-lang.c (is_known_support_routine): Add explicit free of
6494 'func_name' from find_frame_funname.
6495 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6496 for func_name from find_frame_funname.
6497 * python/py-frame.c (frapy_name): Add explicit free of
6498 'name' from find_frame_funname.
6499 * stack.c (find_frame_funname): Add comment explaining that
6500 funcp must be freed by the caller.
6501 Return copy of symbol names instead of pointers.
6502 (print_frame): Add a cleanup for 'funname' from
6504 * stack.h (find_frame_funname): Remove "const" from
6505 'funname' parameter.
6507 2013-05-22 Tom Tromey <tromey@redhat.com>
6510 * c-valprint.c (c_value_print): Use value_addr for
6511 references. Convert back to reference type with value_ref.
6513 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6515 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6516 unloaded DLL, it will be done by handle_solib_event. See
6517 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6520 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6522 * ui-out.c: Create typedef ui_out_level_p and define vector
6523 operations for that type.
6524 (struct ui_out): Use a vector instead of an array.
6525 (current_level): Return level from a vector.
6526 (push_level): Create a level in a vector.
6527 (pop_level): Delete a level in a vector.
6528 (ui_out_new): Create initial level zero level, and store in a
6530 (ui_out_destroy): Add vector cleanup.
6532 2013-05-22 Pedro Alves <palves@redhat.com>
6534 * python/python-internal.h (gdb_Py_DECREF): Tag with
6535 "ARI: editCase function".
6537 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6539 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6541 2013-05-21 Pedro Alves <palves@redhat.com>
6543 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6544 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6545 * python/py-utils.c (py_decref): Don't check for NULL before
6548 2013-05-21 Pedro Alves <palves@redhat.com>
6550 * python/py-utils.c (py_decref): Remove extra braces.
6551 (gdb_pymodule_addobject): Remove extra braces.
6552 * python-internal.h (gdb_Py_DECREF): New static inline function.
6553 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6555 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557 * breakpoints.c (detach_breakpoints): Do not
6558 detach breakpoints locations with loc_type bp_loc_other.
6560 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6562 Workaround Python 2.6.
6563 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6566 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6568 Code cleanup: constification.
6569 * solib.c (solib_ops): Make return type and ops variable type const.
6570 (set_solib_ops): Make the new_ops parameter and ops variable const.
6571 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6572 (solib_add, solib_keep_data_in_core, clear_solib)
6573 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6574 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6576 * solib.h (set_solib_ops): Make the new_ops parameter const.
6578 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6580 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6582 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6583 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6584 (SYSTEM_GDBINIT_FILES): New variables.
6585 (all): Add stamp-system-gdbinit.
6586 (stamp-system-gdbinit): New rule.
6587 (clean-system-gdbinit, install-system-gdbinit)
6588 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6589 (install-only): Add dependency on install-system-gdbinit.
6590 (uninstall): Add dependency on uninstall-system-gdbinit.
6591 (clean): Add dependency on clean-system-gdbinit.
6592 * system-gdbinit/elinos.py: New file.
6593 * system-gdbinit/wrs-linux.py: New file.
6595 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6597 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6599 2013-05-21 Hui Zhu <hui@codesourcery.com>
6601 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6602 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6603 * mi/mi-cmd-break.c (ctype.h): New include.
6604 (gdb_obstack.h): New include.
6605 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6606 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6607 (mi_cmd_dprintf_insert): New.
6608 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6609 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6611 2013-05-20 Tom Tromey <tromey@redhat.com>
6613 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6615 2013-05-20 Tom Tromey <tromey@redhat.com>
6617 * python/py-value.c (valpy_get_dynamic_type): Simplify
6618 dynamic_type assignment. Use Py_XINCREF.
6620 2013-05-20 Tom Tromey <tromey@redhat.com>
6622 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6624 2013-05-20 Tom Tromey <tromey@redhat.com>
6626 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6627 (gdbpy_selected_frame): Move object-construction code
6630 2013-05-20 Tom Tromey <tromey@redhat.com>
6632 * python/py-arch.c (gdbpy_initialize_arch): Use
6633 gdb_pymodule_addobject.
6634 * python/py-block.c (gdbpy_initialize_blocks): Use
6635 gdb_pymodule_addobject.
6636 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6637 gdb_pymodule_addobject.
6638 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6639 gdb_pymodule_addobject.
6640 * python/py-event.c (gdbpy_initialize_event_generic): Use
6641 gdb_pymodule_addobject.
6642 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6643 gdb_pymodule_addobject.
6644 * python/py-evts.c (add_new_registry): Use
6645 gdb_pymodule_addobject.
6646 (gdbpy_initialize_py_events): Likewise.
6647 * python/py-finishbreakpoint.c
6648 (gdbpy_initialize_finishbreakpoints): Use
6649 gdb_pymodule_addobject.
6650 * python/py-frame.c (gdbpy_initialize_frames): Use
6651 gdb_pymodule_addobject.
6652 * python/py-function.c (gdbpy_initialize_functions): Use
6653 gdb_pymodule_addobject.
6654 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6655 gdb_pymodule_addobject.
6656 * python/py-infthread.c (gdbpy_initialize_thread): Use
6657 gdb_pymodule_addobject.
6658 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6659 gdb_pymodule_addobject.
6660 * python/py-param.c (gdbpy_initialize_parameters): Use
6661 gdb_pymodule_addobject.
6662 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6663 gdb_pymodule_addobject.
6664 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6665 gdb_pymodule_addobject.
6666 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6667 gdb_pymodule_addobject.
6668 * python/py-type.c (gdbpy_initialize_types): Use
6669 gdb_pymodule_addobject.
6670 * python/py-utils.c (gdb_pymodule_addobject): New function.
6671 * python/py-value.c (gdbpy_initialize_values): Use
6672 gdb_pymodule_addobject.
6673 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6674 * python/python.c (_initialize_python): Use
6675 gdb_pymodule_addobject.
6677 2013-05-20 Tom Tromey <tromey@redhat.com>
6679 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6680 * python/py-param.c (get_set_value, get_show_value): Use
6682 * python/python.c (start_type_printers, apply_type_printers):
6683 Use explicit decrefs.
6685 2013-05-20 Tom Tromey <tromey@redhat.com>
6687 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6690 2013-05-20 Tom Tromey <tromey@redhat.com>
6692 * python/python.c (gdbpy_run_events): Decref the result
6693 of PyObject_CallObject.
6695 2013-05-20 Tom Tromey <tromey@redhat.com>
6697 * python/py-symtab.c (set_sal): Use
6698 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6699 (symtab_and_line_to_sal_object): Update.
6701 2013-05-20 Tom Tromey <tromey@redhat.com>
6703 * python/py-param.c (compute_enum_values): Decref 'item'.
6705 2013-05-20 Tom Tromey <tromey@redhat.com>
6707 * mi/mi-main.c: Include python-internal.h.
6708 (mi_cmd_list_features): Check gdb_python_initialized.
6709 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6710 (python_inferior_exit, python_new_objfile, add_thread_object)
6711 (delete_thread_object, py_free_inferior): Check
6712 gdb_python_initialized.
6713 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6714 gdb_python_initialized.
6715 * python/py-type.c (save_objfile_types): Check
6716 gdb_python_initialized.
6717 * python/python-internal.h (gdb_python_initialized): Declare.
6718 * python/python.c (ensure_python_env): Throw exception if
6719 Python not initialized.
6720 (before_prompt_hook, source_python_script_for_objfile)
6721 (start_type_printers, apply_type_printers,
6722 free_type_printers): Check gdb_python_initialized.
6723 * varobj.c (varobj_get_display_hint)
6724 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6725 (install_new_value_visualizer, varobj_set_visualizer)
6726 (value_get_print_value): Check gdb_python_initialized.
6728 2013-05-20 Tom Tromey <tromey@redhat.com>
6730 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6732 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6733 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6735 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6737 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6739 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6741 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6742 init function to return 'int'.
6743 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6744 Return 'int'. Check errors.
6745 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6747 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6748 Return 'int'. Check errors.
6749 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6751 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6753 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6755 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6757 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6759 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6761 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6763 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6765 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6767 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6769 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6771 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6773 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6775 * python/python-internal.h (gdbpy_initialize_auto_load,
6776 gdbpy_initialize_values, gdbpy_initialize_frames,
6777 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6778 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6779 gdbpy_initialize_blocks, gdbpy_initialize_types,
6780 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6781 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6782 gdbpy_initialize_finishbreakpoints,
6783 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6784 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6785 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6786 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6787 gdbpy_initialize_signal_event,
6788 gdbpy_initialize_breakpoint_event,
6789 gdbpy_initialize_continue_event,
6790 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6791 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6792 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6793 * python/python.c (gdb_python_initialized): New global.
6794 (gdbpy_initialize_events): Return 'int'. Check errors.
6795 (_initialize_python): Check errors. Set
6796 gdb_python_initialized.
6798 2013-05-20 Tom Tromey <tromey@redhat.com>
6800 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6801 Decref the reslut of PyObject_CallMethod.
6803 2013-05-20 Tom Tromey <tromey@redhat.com>
6805 * python/py-event.c (gdbpy_initialize_event_generic): Return
6806 early if PyType_Ready fails.
6808 2013-05-20 Tom Tromey <tromey@redhat.com>
6810 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6811 as 'default' in the switch.
6813 2013-05-20 Tom Tromey <tromey@redhat.com>
6815 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6816 get_addr_from_python calls out of TRY_CATCH.
6817 (infpy_write_memory, infpy_search_memory): Likewise.
6818 * python/py-utils.c (get_addr_from_python): Return negative
6819 value on error. Use TRY_CATCH.
6820 * python/python-internal.h (get_addr_from_python): Use
6821 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6823 2013-05-20 Tom Tromey <tromey@redhat.com>
6825 * python/py-event.c (evpy_emit_event): Decref the
6826 result of PyObject_CallFunctionObjArgs.
6828 2013-05-20 Tom Tromey <tromey@redhat.com>
6830 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6833 2013-05-20 Tom Tromey <tromey@redhat.com>
6835 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6837 2013-05-20 Tom Tromey <tromey@redhat.com>
6839 * python/py-event.h (gdbpy_initialize_event_generic): Use
6840 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6841 * python/py-evts.c (add_new_registry): Use
6842 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6843 * python/python-internal.h
6844 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6846 2013-05-20 Tom Tromey <tromey@redhat.com>
6848 * python/py-arch.c (archpy_disassemble): Update.
6849 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6850 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6851 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6852 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6854 (GDB_PY_HANDLE_EXCEPTION): Update.
6855 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6857 2013-05-20 Tom Tromey <tromey@redhat.com>
6859 * python/python-internal.h (events_object_type): Remove.
6861 2013-05-20 Tom Tromey <tromey@redhat.com>
6863 * python/py-event.h (evpy_emit_event): Use
6864 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6865 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6868 2013-05-20 Tom Tromey <tromey@redhat.com>
6870 * py-evtregistry.c (create_event_object): Decref
6871 eventregistry_object if PyList_New fails.
6873 2013-05-20 Tom Tromey <tromey@redhat.com>
6875 * py-cmd.c (gdbpy_string_to_argv): Check result of
6878 2013-05-20 Tom Tromey <tromey@redhat.com>
6880 * python/python.c (before_prompt_hook): Add cleanup to
6883 2013-05-20 Tom Tromey <tromey@redhat.com>
6885 * python/py-function.c (fnpy_init): Decref result of
6886 PyObject_GetAttrString.
6888 2013-05-20 Tom Tromey <tromey@redhat.com>
6890 * python/py-threadevent.c (get_event_thread): Use
6891 CPYCHECKER_RETURNS_BORROWED_REF.
6892 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6894 (pspace_to_pspace_object, objfile_to_objfile_object)
6895 (find_thread_object): Use it.
6897 2013-05-20 Tom Tromey <tromey@redhat.com>
6899 * python/py-arch.c (arch_object_type): Use
6900 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6901 * python/py-block.c (block_syms_iterator_object_type):
6902 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6903 * python/py-bpevent.c (breakpoint_event_object_type):
6904 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6905 * python/py-cmd.c (cmdpy_object_type): Use
6906 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6907 * python/py-continueevent.c (continue_event_object_type):
6908 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6909 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6910 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6911 * python/py-events.h (thread_event_object_type):
6912 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6913 * python/py-evtregistry.c (eventregistry_object_type): Use
6914 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6915 * python/py-exitedevent.c (exited_event_object_type):
6916 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6917 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6918 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6919 * python/py-function.c (fnpy_object_type): Use
6920 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6921 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6922 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6923 * python/py-infthread.c (thread_object_type): Use
6924 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6925 * python/py-lazy-string.c (lazy_string_object_type):
6926 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6927 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6928 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6929 * python/py-objfile.c (objfile_object_type): Use
6930 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6931 * python/py-param.c (parmpy_object_type):
6932 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6933 * python/py-progspace.c (pspace_object_type):
6934 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6935 * python/py-signalevent.c (signal_event_object_type):
6936 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6937 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6938 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6939 * python/py-type.c (type_object_type, field_object_type)
6940 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6941 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6943 (value_object_type, block_object_type, symbol_object_type)
6944 (event_object_type, stop_event_object_type, breakpoint_object_type)
6945 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6947 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6949 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6950 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6952 2013-05-20 Doug Evans <dje@google.com>
6954 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6956 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6957 reading_dwo_directly.
6958 (struct signatured_type): New member dwo_unit.
6959 (struct die_reader_specs): New member comp_dir.
6960 (create_signatured_type_table_from_index): Use malloc for
6961 all_type_units instead of objfile's obstack.
6962 (create_all_type_units): Ditto.
6963 (fill_in_sig_entry_from_dwo_entry): New function.
6964 (add_type_unit): New function.
6965 (lookup_dwo_signatured_type): New function.
6966 (lookup_dwp_signatured_type): New function.
6967 (lookup_signatured_type): New arg cu. All callers updated.
6968 (init_cu_die_reader): Initialize comp_dir.
6969 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6970 Change assert of matching type signatures to call error on mismatch.
6971 (lookup_dwo_unit): Add assert.
6972 (init_tu_and_read_dwo_dies): New function.
6973 (init_cutu_and_read_dies): Call it.
6974 (build_type_unit_groups): Handle case of no type unit groups created.
6975 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6976 (lookup_dwo_cutu): Tweak complaint.
6977 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6978 (dwarf2_per_objfile_free): Free all_type_units.
6980 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6982 * windows-nat.c (handle_unload_dll): Add missing empty line.
6984 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6986 * dwarf2read.c (prototyped_function_p): New function.
6987 (read_subroutine_type): Use it.
6989 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6991 * rs6000-aix-tdep.c: De-indent some example code provided
6994 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6996 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6997 region is ok for a hardware watchpoint using the new ptrace interface
7000 2013-05-17 Doug Evans <dje@google.com>
7002 * NEWS: Mention new maintenance commands check-symtabs, and
7003 expand-symtabs, and renamed check-psymtabs.
7004 * psymtab.c (maintenance_check_psymtabs): Renamed from
7005 maintenance_check_symtabs. Only process already-expanded symbol
7007 (_initialize_psymtab): Update.
7008 * symmisc.c (maintenance_check_symtabs): New function.
7009 (maintenance_expand_name_matcher): New function
7010 (maintenance_expand_file_matcher): New function
7011 (maintenance_expand_symtabs): New function.
7012 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7015 2013-05-17 Tom Tromey <tromey@redhat.com>
7017 * python/py-inferior.c (infpy_read_memory): Don't call
7018 PyErr_SetString if PyObject_New fails.
7019 * python/py-frame.c (frame_info_to_frame_object): Don't call
7020 PyErr_SetString if PyObject_New fails.
7022 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7024 * acinclude.m4: Add check for dlopen in libdl.
7025 * configure.ac: Ditto.
7026 * configure: Regenerate.
7028 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7030 * frame.c (frame_stash): Convert to htab.
7031 (frame_addr_hash): New function.
7032 (frame_addr_hash_eq): New function.
7033 (frame_stash_create): Convert function to create
7035 (frame_stash_add): Convert function to add an entry to a hash
7037 (frame_stash_find): Convert function to search the hash table.
7038 (frame_stash_invalidate): Convert function to empty the hash
7040 (get_frame_id): Only add to stash if a frame_id is created.
7041 (_initialize_frame): Call frame_stash_create.
7043 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7045 * configure.ac: Ensure MIG is available when building for GNU Hurd
7047 * configure: Regenerate.
7049 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7051 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7053 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7055 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7056 all cleanups are done before returning from this function.
7058 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7060 * utils.h: #include "exceptions.h".
7061 (enum errors): Remove partial declaration.
7063 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7065 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7066 * gdbarch.h, gdbarch.c: Regenerate.
7067 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7070 * rs6000-aix-tdep.h: New file.
7071 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7072 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7074 (struct field_info, struct ld_info_desc): New types.
7075 (ld_info32_desc, ld_info64_desc): New static constants.
7076 (struct ld_info): New type.
7077 (rs6000_aix_extract_ld_info): New function.
7078 (rs6000_aix_shared_library_to_xml): Likewise.
7079 (rs6000_aix_ld_info_to_xml): Likewise.
7080 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7081 (rs6000_aix_init_osabi): Add call to
7082 set_gdbarch_core_xfer_shared_libraries_aix.
7083 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7084 Remove "xml-utils.h" include.
7085 (LdInfo): Delete typedef.
7086 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7088 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7089 Adjust code accordingly.
7090 (rs6000_core_ldinfo): Delete, folded into
7091 rs6000_aix_core_xfer_shared_libraries_aix.
7092 (rs6000_xfer_shared_library): Delete.
7093 (rs6000_xfer_shared_libraries): Reimplement.
7095 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7097 * record.c (record_goto_cmdlist): New.
7098 (cmd_record_goto): Split into this ...
7099 (cmd_record_goto_begin): ... this
7100 (cmd_record_goto_end): ... and this.
7101 (_initialize_record): Change "record goto" to prefix command.
7102 Add commands for "record goto begin" and "record goto end".
7103 Add an alias for "record goto start" to "record goto begin".
7105 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7107 * linespec.c (convert_linespec_to_sals): New comment for
7108 SOURCE_FILENAME assignment.
7110 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7112 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7115 2013-05-14 Tom Tromey <tromey@redhat.com>
7117 * eval.c (parse_and_eval_long): Make 'exp' const.
7118 * value.h (parse_and_eval_long): Update.
7120 2013-05-14 Tom Tromey <tromey@redhat.com>
7122 * ui-file.c (gdb_fopen): Make arguments const.
7123 * ui-file.h (gdb_fopen): Make arguments const.
7125 2013-05-14 Tom Tromey <tromey@redhat.com>
7127 * remote.c (remote_set_trace_notes): Make arguments const.
7128 * target.c (update_current_target): Update cast.
7129 * target.h (to_set_trace_notes): Make arguments const.
7131 2013-05-14 Tom Tromey <tromey@redhat.com>
7133 * go32-nat.c (go32_terminal_info): Make 'args' const.
7134 * inferior.h (child_terminal_info): Update.
7135 * inflow.c (child_terminal_info): Make 'args' const.
7136 * target.c (default_terminal_info): Make 'args' const.
7137 (debug_to_terminal_save_ours): Likewise.
7138 * target.h (struct target_ops) <to_terminal_info>: Make argument
7141 2013-05-13 Tom Tromey <tromey@redhat.com>
7143 * gcore.c (create_gcore_bfd): Make 'filename' const.
7144 * gcore.h (create_gcore_bfd): Make 'filename' const.
7145 * record-full.c (record_full_save): Make 'recfilename' const.
7146 * target.c (target_save_record): Make 'filename' const.
7147 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7149 (target_save_record): Likewise.
7151 2013-05-13 Tom Tromey <tromey@redhat.com>
7154 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7155 ranges section has been read.
7157 2013-05-13 Tom Tromey <tromey@redhat.com>
7160 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7161 STRUCTOP_PTR>: Return a not_lval value for
7162 EVAL_AVOID_SIDE_EFFECTS.
7163 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7164 for EVAL_AVOID_SIDE_EFFECTS.
7166 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7168 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7169 floating point registers to register type before storing
7171 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7174 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7175 Tom Tromey <tromey@redhat.com>
7177 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7179 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7181 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7182 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7183 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7184 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7186 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7187 Tom Tromey <tromey@redhat.com>
7190 * configure: Rebuild.
7191 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7194 2013-05-10 Pedro Alves <palves@redhat.com>
7196 * remote.c (_initialize_remote): Fix spelling of
7197 qXfer:traceframe-info:read packet in packet config command.
7199 2013-05-10 David Taylor <dtaylor@emc.com>
7203 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7204 "QTro" at start of packet.
7206 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7208 * solib-aix.c (solib_aix_relocate_section_addresses):
7209 For the .bss section action, apply the same offset as
7212 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7214 * solib-aix.c (solib_aix_relocate_section_addresses):
7215 Remove FIXME comment.
7217 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7220 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7221 New functions, directly copied from sparc-sol-thread.c.
7222 * sparc-sol-thread.c: Delete.
7223 * configure.ac: Remove code handling sparc-solaris-thread.c.
7224 * configure: Regenerate.
7226 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7228 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7230 (backtrace_command): Add "no-filters" option parsing.
7231 (_initialize_stack): Alter help to reflect "no-filters" option.
7232 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7233 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7234 (py-frame.o): Add target
7235 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7237 * python/python.h: Add new frame filter constants, and flag enum.
7238 (apply_frame_filter): Add definition.
7239 * python/python.c (apply_frame_filter): New non-Python
7241 * python/py-utils.c (py_xdecref): New function.
7242 (make_cleanup_py_xdecref): Ditto.
7243 * python/py-objfile.c: Declare frame_filters dictionary.
7244 (objfpy_dealloc): Add frame_filters dealloc.
7245 (objfpy_new): Initialize frame_filters attribute.
7246 (objfile_to_objfile_object): Ditto.
7247 (objfpy_get_frame_filters): New function.
7248 (objfpy_set_frame_filters): New function.
7249 * python/py-progspace.c: Declare frame_filters dictionary.
7250 (pspy_dealloc): Add frame_filters dealloc.
7251 (pspy_new): Initialize frame_filters attribute.
7252 (pspacee_to_pspace_object): Ditto.
7253 (pspy_get_frame_filters): New function.
7254 (pspy_set_frame_filters): New function.
7255 * python/py-framefilter.c: New file.
7256 * python/lib/gdb/command/frame_filters.py: New file.
7257 * python/lib/gdb/frames.py: New file.
7258 * python/lib/gdb/__init__.py: Initialize global frame_filters
7260 * python/lib/gdb/FrameDecorator.py: New file.
7261 * python/lib/gdb/FrameIterator.py: New file.
7262 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7263 * mi/mi-cmds.h: Declare.
7264 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7265 --no-frame-filter logic, and Python frame filter logic.
7266 (stack_enable_frame_filters): New function.
7267 (parse_no_frame_option): Ditto.
7268 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7270 (mi_cmd_stack_list_locals): Ditto.
7271 (mi_cmd_stack_list_args): Ditto.
7272 (mi_cmd_stack_list_variables): Ditto.
7273 * NEWS: Add frame filter note.
7275 2013-05-09 Doug Evans <dje@google.com>
7277 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7278 All callers updated.
7279 (syms_from_objfile): Ditto. Make static.
7280 (symbol_file_add_with_addrs): Renamed from
7281 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7282 num_offsets. All callers updated.
7283 * symfile.h (syms_from_objfile): Delete.
7285 * symfile.c (decrement_reading_symtab): Add assert.
7286 (increment_reading_symtab): Ditto.
7288 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7290 * source.c (forward_search_command): Replace call to getc
7292 (reverse_search_command): Likewise.
7294 2013-05-08 Doug Evans <dje@google.com>
7296 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7299 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7301 * sol-thread.c (info_cb): Factorize the code a little.
7303 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7305 * sol-thread.c (info_cb): Rework the output of the "maintenance
7306 info sol-threads" command a bit.
7308 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7310 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7311 Replace ti.ti_startfunc by ti.ti_pc.
7313 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7315 * solib-aix.c (solib_aix_free_library_list): New function
7316 for the case where HAVE_LIBEXPAT is not defined.
7318 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7320 PR breakpoints/15413:
7321 * breakpoint.c (condition_completer): Simplify the code to
7322 disconsider multiple locations of breakpoints when completing the
7323 "condition" command.
7325 2013-05-07 Pierre Muller <muller@sourceware.org>
7327 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7328 instead of <sys/wait.h>.
7330 2013-05-07 Pierre Muller <muller@sourceware.org>
7332 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7333 trailing new line from warning message.
7335 2013-05-07 Pierre Muller <muller@sourceware.org>
7337 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7338 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7340 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7342 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7343 error message (ARI fix).
7345 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7347 * features/library-list-aix.dtd: Replace library-list by
7349 * rs6000-nat.c: Replace library-list by library-list-aix
7351 * solib-aix.c: Likewise.
7353 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7355 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7356 Renames TARGET_OBJECT_AIX_LIBRARIES.
7357 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7358 TARGET_OBJECT_LIBRARIES_AIX throughout.
7359 * solib-aix.c: Likwise.
7361 2013-05-07 Yao Qi <yao@codesourcery.com>
7363 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7364 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7366 2013-05-07 Yao Qi <yao@codesourcery.com>
7368 * solib-dsbt.c (enable_break): Declare.
7369 (dsbt_current_sos): Remove call to enable_break2.
7370 (enable_break2): Rename to enable_break. Set solib breakpoint
7371 on '_dl_debug_state'.
7372 (enable_break): Remove.
7374 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7376 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7377 debug state prior to replicating existing hardware watchpoints or
7380 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7382 * gcore.c (gcore_create_callback): Ignore sections with
7383 separate_debug_objfile_backlink != NULL.
7385 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7386 Andrew Jenner <andrew@codesourcery.com>
7387 Chung-Lin Tang <cltang@codesourcery.com>
7388 Julian Brown <julian@codesourcery.com>
7390 Based on the nios2-elf port from Altera Corporation.
7392 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7394 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7395 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7396 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7397 * nios2-tdep.h: New.
7398 * nios2-tdep.c: New.
7399 * nios2-linux-tdep.c: New.
7400 * features/Makefile (WHICH): Add nios2-linux.
7401 (nios2-linux-expedite): Set.
7402 * features/nios2-cpu.xml: New.
7403 * features/nios2.xml: New.
7404 * features/nios2-linux.xml: New.
7405 * features/nios2.c: New (autogenerated).
7406 * features/nios2-linux.c: New (autogenerated).
7407 * regformats/nios2-linux.dat: New (autogenerated).
7408 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7411 2013-05-06 Doug Evans <dje@google.com>
7413 * symfile.c: Whitespace cleanup.
7415 * solist.h (struct target_so_ops): New member clear_so.
7416 * solib-svr4.c (svr4_clear_so): New function.
7417 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7418 * solib.c (clear_so): Renamed from free_so_symbols.
7419 All callers updated. Call target clear_so if it exists.
7421 2013-05-06 Tom Tromey <tromey@redhat.com>
7423 * ada-lang.c (ada_value_primitive_packed_val): Don't
7425 * value.c (set_value_parent): Incref the new parent and decref
7427 (value_copy, value_primitive_field): Use set_value_parent.
7429 2013-05-06 Tom Tromey <tromey@redhat.com>
7431 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7432 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7434 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7435 * dwarf2read.c (write_constant_as_bytes)
7436 (dwarf2_fetch_constant_bytes): New functions.
7438 2013-05-06 Tom Tromey <tromey@redhat.com>
7440 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7442 (dwarf2_const_value_attr): Update.
7444 2013-05-06 Tom Tromey <tromey@redhat.com>
7446 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7447 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7448 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7451 2013-05-06 Tom Tromey <tromey@redhat.com>
7453 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7456 2013-05-06 Doug Evans <dje@google.com>
7458 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7459 * stabsread.h (process_one_symbol): Update declaration.
7460 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7461 * elfread.c (elf_symfile_relocate_probe): Ditto.
7462 * psymtab.c (relocate_psymtabs): Ditto.
7463 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7464 (objfile_relocate): Ditto.
7465 * objfiles.h (objfile_relocate): Update declaration.
7466 * symfile.c (relative_addr_info_to_section_offsets): Constify
7468 (default_symfile_offsets): Ditto.
7469 (syms_from_objfile_1): Constify offsets parameter.
7470 (syms_from_objfile): Ditto.
7471 (symbol_file_add_with_addrs_or_offsets): Ditto.
7472 (symfile_map_offsets_to_segments): Constify data parameter.
7473 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7474 delta parameters of member relocate.
7475 (struct sym_probe_fns): Constify new_offsets,
7476 delta parameters of member sym_relocate_probe.
7477 (struct sym_fns): Constify section_addr_info parameter of member
7479 (relative_addr_info_to_section_offsets): Update declaration.
7480 (default_symfile_offsets): Ditto.
7481 (syms_from_objfile): Ditto.
7482 (symfile_map_offsets_to_segments): Ditto.
7484 * symfile.c (syms_from_objfile_1): Use correct section count when
7485 objfile->sf == NULL.
7487 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7489 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7491 2013-05-06 Doug Evans <dje@google.com>
7493 * psympriv.h (struct partial_symtab): Augment comment for member
7496 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7498 Reimplement shared library support on ppc-aix...
7499 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7500 * features/library-list-aix.dtd: New file.
7501 * solib-aix.h, solib-aix.c: New file.
7502 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7503 (rs6000_find_toc_address_hook): Delete.
7504 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7505 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7506 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7508 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7509 (vmap_symtab, fixup_breakpoints): Delete.
7510 (rs6000_xfer_shared_libraries): New function.
7511 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7512 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7513 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7514 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7515 (rs6000_xfer_shared_library): New function.
7516 (find_toc_address): Delete.
7517 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7518 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7519 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7520 before creating minimal symbol. Adjust function description
7522 (scan_xcoff_symtab): Replace call to
7523 prim_record_minimal_symbol_and_info by call to
7524 record_minimal_symbol.
7525 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7526 around default_symfile_offsets.
7527 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7528 powerpc-aix targets.
7529 * config/rs6000/nm-rs6000.h: Delete.
7530 * config/powerpc/aix.mh (NAT_FILE): Delete.
7531 (NATDEPFILES): Remove xcoffsolib.o.
7532 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7533 (ALL_TARGET_OBS): Add solib-aix.o.
7534 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7535 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7536 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7537 * xcoffsolib.h, xcoffsolib.c: Delete.
7539 * solib.c (reload_shared_libraries): Remove reference to
7540 SOLIB_CREATE_INFERIOR_HOOK.
7541 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7542 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7543 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7545 * corelow.c (deprecated_core_resize_section_table): Delete.
7546 * exec.c: Remove include of xcoffsolib.h".
7547 (map_vmap, vmap): Delete.
7548 (exec_close_1): Remove references to vmap.
7549 (exec_file_attach): Remove vmap handling code, and reference
7550 to DEPRECATED_IBM6000_TARGET.
7551 (bfdsec_to_vmap): Delete.
7552 (exec_files_info): Remove block of code handling VMAP.
7553 * infcmd.c (post_create_inferior): Remove reference to
7554 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7555 * infrun.c (follow_exec): Remove reference to
7556 SOLIB_CREATE_INFERIOR_HOOK.
7557 * stack.c (print_frame): Remove reference to PC_SOLIB.
7558 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7559 (dsbt_relocate_main_executable): Likewise.
7560 * solib-frv.c (frv_current_sos): Likewise.
7562 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7564 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7565 to target_write_memory and target_read_memory.
7567 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7569 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7570 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7572 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7574 * darwin-nat.c: Replace all "%x" instances in format strings
7575 into "0x%x" throughout.
7577 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7579 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7580 gdb_assert by call to MACH_CHECK_ERROR.
7581 (darwin_attach_pid): Raise an error rather than a failed
7582 assertion when various system calls failed. Report a warning
7583 instead of raising a failed assertion when PREV_NOT is not NULL
7584 after call to mach_port_request_notification.
7585 (darwin_ptrace_me): Raise an error rather than a failed
7586 assertion when read returns nonzero.
7588 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7590 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7592 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7594 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7596 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7599 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7600 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7601 a stale cleanup. Fix double free of NAME.
7603 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7605 * windows-nat.c (windows_delete_thread): Accept an additional
7606 argument, the thread's exit code, and announce thread death when
7607 print_thread_events is non-zero and we are deleting a thread that
7608 is not the main thread.
7609 (get_windows_debug_event): Pass thread exit code to
7610 windows_delete_thread.
7612 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7614 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7615 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7616 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7617 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7618 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7619 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7620 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7621 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7622 (gdbarch_tdep): New struct.
7623 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7625 (v850e3v5_register_name): New function.
7626 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7627 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7628 code handling the struct return conventions for the RH850 ABI.
7630 (v850_eight_byte_align_p): New function.
7631 (v850_push_call_dummy): Push structs by value, not by reference
7632 for the RH850 ABI. Add support for eight byte alignment.
7633 (v850_dbtrap_breakpoint_from_pc): New function.
7634 (v850_gdbarch_init): Add ABI detection code. Register
7635 v850e3v5_register_name for the v850e3v5 architecture. Set the
7636 number of registers for v850e3v5. Register
7637 v850_dbtrap_breakpoint_from_pc as appropriate.
7638 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7640 2013-05-03 Doug Evans <dje@google.com>
7642 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7643 of bfd_count_sections.
7644 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7645 * symfile.c (default_symfile_offsets): Ditto.
7646 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7647 one entry, not bfd_count_sections entries.
7649 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7651 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7652 `save' and `restore' register groups. Don't include SPL
7653 or SPH in these groups.
7654 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7655 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7656 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7657 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7658 dwarf2_append_unwinders().
7660 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7662 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7663 ignore SIGINT and SIGTRAP in case these internal signals are
7666 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7668 * darwin-nat.c (darwin_read_write_inferior): Change types
7669 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7670 of copy_count to "mach_msg_type_number_t".
7671 (darwin_read_dyld_info): Change type of parameter
7672 rdaddr to "gdb_byte *".
7674 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7676 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7677 of &info->load_map from "char *" to "gdb_byte *".
7679 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7681 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7682 from "char *" to "gdb_byte *".
7683 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7685 2013-04-30 Doug Evans <dje@google.com>
7687 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7688 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7689 DWO stub. If DWO isn't found, just use stub.
7690 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7692 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7693 calling init_cutu_and_read_dies.
7695 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7697 * target-descriptions.c (maint_print_c_tdesc_cmd):
7698 Add case to parse structures as register types and
7701 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7703 * MAINTAINERS (Write After Approval): Add myself to the list.
7705 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7707 * sol-thread.c (rw_common): Change type of parameter "buf"
7709 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7710 rw_common to "gdb_byte *" instead of "char *".
7712 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7714 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7715 of local variable msym to const struct bound_minimal_symbol.
7716 Adjust use accordingly.
7717 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7719 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7721 * i386gnu-nat.c (CREG_OFFSET): New macro.
7722 (creg_offset): New array.
7723 (CREG_ADDR): Use creg_offset instead of reg_offset.
7725 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7727 * mep-tdep.c (mep_write_pc): Delete.
7728 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7729 Add call to set_gdbarch_pc_regnum.
7731 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7733 * common/filestuff.c: Replace #include <dirent.h> by
7734 #include "gdb_dirent.h".
7736 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7738 * common/filestuff.c: Replace #include <sys/stat.h> by
7739 #include "gdb_stat.h".
7741 2013-04-29 Pierre Muller <muller@sourceware.org>
7743 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7744 editCase function rule.
7745 (get_DW_AT_signature_type): Likewise.
7747 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7749 * m32r-tdep.c (m32r_write_pc): Delete.
7750 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7751 Add call to set_gdbarch_pc_regnum.
7753 2013-04-29 Pierre Muller <muller@sourceware.org>
7755 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7757 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7759 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7761 2013-04-28 Yao Qi <yao@codesourcery.com>
7763 * solib-dsbt.c (fetch_loadmap): Re-indent.
7764 (displacement_from_map, enable_break2): Likewise.
7765 (dsbt_relocate_section_addresses): Likewise.
7767 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7771 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7774 * dwarf2read.c (process_full_comp_unit): Always create a static
7777 2013-04-25 Hui Zhu <hui@codesourcery.com>
7779 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7780 to loc->cmd_bytecode.
7782 2013-04-24 Doug Evans <dje@google.com>
7784 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7786 2013-04-22 Keith Seitz <keiths@redhat.com>
7788 * tracepoint.c (trace_save): Call the writer's start method.
7790 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7793 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7796 2013-04-23 Tom Tromey <tromey@redhat.com>
7798 * common/filestuff.c: Check USE_WIN32API before including
7800 (HAVE_F_GETFD): New define.
7801 (mark_cloexec): Check HAVE_F_GETFD.
7802 (gdb_open_cloexec): Change 'mode' to unsigned long.
7803 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7804 (gdb_pipe_cloexec): Check HAVE_PIPE.
7805 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7808 2013-04-23 Hui Zhu <hui@codesourcery.com>
7811 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7813 2013-04-23 Hui Zhu <hui@codesourcery.com>
7816 * breakpoint.c (dprintf_print_recreate): New.
7817 (save_breakpoints): Let it not save dprintf commands.
7818 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7820 2013-04-22 Tom Tromey <tromey@redhat.com>
7823 * Makefile.in (SFILES): Add filestuff.c
7824 (COMMON_OBS): Add filestuff.o.
7825 (filestuff.o): New target.
7826 * auto-load.c (auto_load_objfile_script_1): Use
7828 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7829 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7830 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7831 * common/agent.c (gdb_connect_sync_socket): Use
7833 * common/filestuff.c: New file.
7834 * common/filestuff.h: New file.
7835 * common/linux-osdata.c (linux_common_core_of_thread)
7836 (command_from_pid, commandline_from_pid, print_source_lines)
7837 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7838 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7840 * common/linux-procfs.c (linux_proc_get_int)
7841 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7842 * config.in, configure: Rebuild.
7843 * configure.ac: Don't check for sys/socket.h. Check for
7845 * corelow.c (core_open): Use gdb_open_cloexec.
7846 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7847 * fork-child.c (fork_inferior): Call close_most_fds.
7848 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7849 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7850 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7851 Use gdb_fopen_cloexec.
7852 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7854 (linux_async_pipe): Use gdb_pipe_cloexec.
7855 * remote-fileio.c (remote_fileio_func_open): Use
7857 * remote.c (remote_file_put, remote_file_get): Use
7859 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7861 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7862 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7863 * solib.c (solib_find): Use gdb_open_cloexec.
7864 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7865 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7866 (tfile_open): Use gdb_open_cloexec.
7867 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7868 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7869 * xml-support.c (xml_fetch_content_from_file): Use
7871 * main.c (captured_main): Call notice_open_fds.
7873 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7875 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7876 'char *' to 'gdb_byte *'.
7877 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7880 2013-04-22 Yao Qi <yao@codesourcery.com>
7882 * infrun.c: Fix typo in comment.
7884 2013-04-22 Andrew Haley <aph@redhat.com>
7886 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7889 2013-04-20 Yao Qi <yao@codesourcery.com>
7891 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7892 'char *' to 'gdb_byte *'. Cast the return value of
7893 'bt_ctf_get_char_array' to 'gdb_byte *'.
7895 2013-04-19 Pedro Alves <palves@redhat.com>
7897 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7899 * configure: Regenerate.
7901 2013-04-19 Pedro Alves <palves@redhat.com>
7903 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7906 2013-04-19 Pedro Alves <palves@redhat.com>
7908 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7909 Change type of 'myaddr' parameter to gdb_byte pointer.
7910 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7911 to 'long long' pointer instead of to 'unsigned long long'.
7912 (monitor_write_memory_block, monitor_read_memory_single)
7913 (monitor_read_memory): Change type of 'myaddr' parameter to
7916 2013-04-19 Pedro Alves <palves@redhat.com>
7918 * record.c (validate_history_size): Make parameter 'setting'
7921 2013-04-19 Pedro Alves <palves@redhat.com>
7923 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7926 2013-04-19 Pedro Alves <palves@redhat.com>
7928 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7931 2013-04-19 Pedro Alves <palves@redhat.com>
7933 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7934 * ada-tasks.c (read_fat_string_value): Likewise.
7936 2013-04-19 Pedro Alves <palves@redhat.com>
7938 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7939 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7940 'offset', and adjust.
7942 2013-04-19 Pedro Alves <palves@redhat.com>
7944 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7945 (read_index_from_section): Add cast to 'char *'.
7947 2013-04-19 Pedro Alves <palves@redhat.com>
7949 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7951 2013-04-19 Pedro Alves <palves@redhat.com>
7953 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7955 2013-04-19 Pedro Alves <palves@redhat.com>
7957 * record-full.c (record_full_get_bookmark): Change local 'ret'
7958 type to char * and add cast to gdb_byte *.
7959 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7961 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7963 2013-04-19 Pedro Alves <palves@redhat.com>
7965 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7966 * python/py-prettyprint.c (print_string_repr): Change type of
7967 'output' local to char *. Add cast to gdb_byte * in
7968 LA_PRINT_STRING call.
7969 (print_children): Change type of 'output' local to char *.
7970 * python/py-value.c (valpy_string): Add cast to const char * in
7971 PyUnicode_Decode call.
7973 2013-04-19 Pedro Alves <palves@redhat.com>
7975 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7976 and change its type to 'const char *'. Adjust.
7977 (mips_send_packet): Add cast to 'char *', and remove cast to
7979 (mips_receive_packet): Remove cast to 'unsigned char *'.
7980 (mips_load_srec): Use bfd_byte.
7981 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7982 (pmon_checkset): Make 'value' parameter unsigned.
7984 2013-04-19 Pedro Alves <palves@redhat.com>
7986 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7988 2013-04-19 Pedro Alves <palves@redhat.com>
7990 * remote.c (remote_write_bytes_aux, compare_sections_command)
7992 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7993 (remote_hostio_readlink, remote_bfd_iovec_pread)
7994 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7995 binary buffer, and char when buffer is used as string.
7996 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7997 (trace_save, tfile_open, traceframe_walk_blocks)
7998 (tfile_fetch_registers): Likewise.
8000 2013-04-19 Pedro Alves <palves@redhat.com>
8002 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8003 buffer and size_t size. Adjust.
8004 * ser-base.h (ser_base_write): Adjust.
8005 * ser-go32.c (cnts): Change type to size_t.
8006 (dos_write): Change prototype -- take 'void *'
8007 buffer and size_t size. Adjust.
8008 (dos_info): Print elements of 'cnts' as unsigned long.
8009 * serial.c (serial_write): Likewise.
8010 * serial.h (serial_write): Adjust.
8011 (struct serial_ops) <write>: Change prototype -- take 'void *'
8012 buffer and size_t size. Adjust.
8014 2013-04-19 Pedro Alves <palves@redhat.com>
8016 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8018 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8020 2013-04-19 Pedro Alves <palves@redhat.com>
8022 * alpha-tdep.c (alpha_extract_return_value): Use
8023 regcache_cooked_read_unsigned to read 'v0'.
8025 2013-04-19 Pedro Alves <palves@redhat.com>
8027 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8028 parameters 'at', 'as' and 'offset' to uint32_t.
8030 2013-04-19 Pedro Alves <palves@redhat.com>
8032 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8033 'is64' to signed 'int'.
8035 2013-04-19 Pedro Alves <palves@redhat.com>
8037 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8040 2013-04-19 Pedro Alves <palves@redhat.com>
8042 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8043 'insnbuf' buffer type to unsigned int[].
8045 2013-04-19 Pedro Alves <palves@redhat.com>
8047 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8049 2013-04-19 Pedro Alves <palves@redhat.com>
8051 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8054 2013-04-19 Pedro Alves <palves@redhat.com>
8056 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8057 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8059 * mips-tdep.c (heuristic_fence_post): Change type to int.
8060 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8062 2013-04-19 Pedro Alves <palves@redhat.com>
8064 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8065 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8066 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8068 2013-04-19 Pedro Alves <palves@redhat.com>
8070 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8071 it to get a string view of the byte buffer.
8072 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8073 type to gdb_byte *. Adjust.
8074 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8075 Change local to char *.
8076 * solib-darwin.c (find_program_interpreter): Change return type to
8078 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8079 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8080 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8081 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8082 * solib-svr4.c (find_program_interpreter): Change return type to
8084 (enable_break): Change local 'interp_name' to char *.
8085 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8086 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8087 (spu_pseudo_register_write_spu): Use char for string buffer.
8089 (info_spu_event_command, info_spu_signal_command): Add casts to
8092 2013-04-19 Pedro Alves <palves@redhat.com>
8094 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8096 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8097 * ada-lang.c (ada_value_assign): Use gdb_byte.
8098 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8099 (alphanbsd_sigtramp_offset): Use gdb_byte.
8100 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8101 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8102 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8103 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8104 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8105 * arm-tdep.c (arm_stub_unwind_sniffer)
8106 (arm_displaced_init_closure): Use gdb_byte.
8107 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8108 (arm_default_thumb_le_breakpoint)
8109 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8110 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8111 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8112 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8113 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8114 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8115 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8116 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8117 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8118 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8119 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8120 (cris_store_return_value, cris_extract_return_value): Use
8122 (constraint): Change type of parameter to char * from signed
8123 char*. Use gdb_byte.
8124 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8125 of local buffer to gdb_byte *.
8126 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8127 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8128 (add_address_entry): Change type of local buffer to gdb_byte[].
8129 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8130 (frv_push_dummy_call): Use gdb_byte.
8131 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8132 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8133 (hppa_hpux_supply_save_state): Use gdb_byte.
8134 * hppa-tdep.c (hppa32_push_dummy_call)
8135 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8136 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8137 (slotN_contents, replace_slotN_contents): Change type of parameter
8139 (fetch_instruction, ia64_pseudo_register_write)
8140 (ia64_register_to_value, ia64_value_to_register)
8141 (ia64_extract_return_value, ia64_store_return_value)
8142 (ia64_push_dummy_call): Use gdb_byte.
8143 * m32c-tdep.c (m32c_return_value): Remove cast.
8144 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8145 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8147 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8148 * mn10300-tdep.c (mn10300_store_return_value)
8149 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8151 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8152 (moxie_process_record): Remove casts.
8153 * ppc-ravenscar-thread.c (supply_register_at_address)
8154 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8155 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8156 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8157 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8158 * remote.c (compare_sections_command): Use gdb_byte.
8159 * score-tdep.c (score7_free_memblock): Change type of parameter to
8161 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8162 gdb_byte *. Use gdb_byte.
8163 (sh_push_dummy_call_fpu): Use gdb_byte.
8164 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8165 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8166 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8167 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8168 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8169 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8170 (sh64_store_return_value, sh64_register_convert_to_virtual):
8171 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8172 (sh64_pseudo_register_write): Use gdb_byte.
8173 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8174 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8176 (irix_current_sos): Use gdb_byte.
8177 * solib-som.c (som_current_sos): Use gdb_byte.
8178 * sparc-ravenscar-thread.c (supply_register_at_address)
8179 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8180 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8181 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8182 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8184 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8186 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8187 * xstormy16-tdep.c (xstormy16_extract_return_value)
8188 (xstormy16_store_return_value): Change parameter type to
8189 'gdb_byte *'. Adjust.
8190 (xstormy16_push_dummy_call): Use gdb_byte.
8191 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8192 (call0_analyze_prologue, execute_code): Use gdb_byte.
8194 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8195 Pedro Alves <palves@redhat.com>
8197 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8200 2013-04-17 Doug Evans <dje@google.com>
8202 * dwarf2read.c (struct signatured_type): New member type.
8203 (struct attribute): Replace member signatured_type with signature.
8204 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8205 (read_call_site_scope): Call follow_die_ref instead of
8206 follow_die_ref_or_sig.
8207 (read_structure_type): Rewrite handling of signatured types.
8208 (read_enumeration_type): Ditto.
8209 (read_attribute_value): Update.
8210 (build_error_marker_type): New function.
8211 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8212 Don't call error for bad types, just build an error marker type.
8213 (dump_die_shallow): Update.
8214 (follow_die_sig_1): Renamed from follow_die_sig.
8215 Don't call error for bad types, instead return NULL.
8216 (follow_die_sig): New function.
8217 (get_signatured_type, get_DW_AT_signature_type): New functions.
8219 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8221 * aarch64-tdep.c (aarch64_write_pc): Removed.
8222 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8225 2013-04-17 Yao Qi <yao@codesourcery.com>
8227 * top.c (print_gdb_configuration): Print configure-time
8228 parameter on using libbabeltrace or not.
8230 2013-04-16 Pedro Alves <palves@redhat.com>
8232 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8234 2013-04-16 Pedro Alves <palves@redhat.com>
8236 * common/glibc_thread_db.h: Update from upstream glibc
8237 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8239 2013-04-16 Pedro Alves <palves@redhat.com>
8241 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8242 * common/glibc_thread_db.h: ... this new file ...
8243 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8245 2013-04-16 Will Newton <will.newton@gmail.com>
8246 Pedro Alves <palves@redhat.com>
8250 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8251 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8254 2013-04-16 Pedro Alves <palves@redhat.com>
8255 Eli Zaretskii <eliz@gnu.org>
8257 * NEWS: Mention "set foo unlimited".
8259 2013-04-15 Doug Evans <dje@google.com>
8261 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8262 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8263 (create_dwo_cu_reader): Renamed from
8264 create_dwo_debug_info_hash_table_reader.
8265 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8266 Remove support for multiple CUs in a DWO file.
8267 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8269 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8271 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8272 (create_dwo_in_dwp): Ditto.
8274 2013-04-15 Tom Tromey <tromey@redhat.com>
8276 * NEWS: Move recent entries into "since 7.6" section.
8278 2013-04-15 Tom Tromey <tromey@redhat.com>
8282 * break-catch-throw.c (struct exception_catchpoint)
8283 <exception_rx, pattern>: New fields.
8284 (fetch_probe_arguments, dtor_exception_catchpoint)
8285 (check_status_exception_catchpoint)
8286 (print_one_detail_exception_catchpoint): New functions.
8287 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8288 Compile regular expression if needed.
8289 (extract_exception_regexp): New function.
8290 (catch_exception_command_1): Use extract_exception_regexp.
8291 (compute_exception): Use fetch_probe_arguments.
8292 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8293 and check_status fields.
8294 * cp-abi.c (cplus_typename_from_type_info): New function.
8295 * cp-abi.h (cplus_typename_from_type_info): Declare.
8296 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8297 * gdb_regex.h (compile_rx_or_error): Declare.
8298 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8300 (init_gnuv3_ops): Set get_type_from_type_info field.
8301 * probe.c (compile_rx_or_error): Move...
8302 * utils.c (compile_rx_or_error): ... here.
8304 2013-04-15 Tom Tromey <tromey@redhat.com>
8308 * break-catch-throw.c (compute_exception): New function.
8309 (exception_funcs): New global.
8310 (_initialize_break_catch_throw): Create $_exception.
8311 * cp-abi.c (cplus_type_from_type_info): New function.
8312 * cp-abi.h (cplus_type_from_type_info): Declare.
8313 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8314 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8315 (gnuv3_get_type_from_type_info): New functions.
8316 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8318 2013-04-15 Tom Tromey <tromey@redhat.com>
8320 * break-catch-throw.c (struct exception_names): New.
8321 (exception_functions): Change type.
8322 (re_set_exception_catchpoint): Look for SDT probes.
8324 2013-04-15 Tom Tromey <tromey@redhat.com>
8327 * break-catch-throw.c (exception_functions): New global.
8328 (gnu_v3_exception_catchpoint_ops): Move earlier.
8329 (struct exception_catchpoint): New.
8330 (classify_exception_breakpoint): Rewrite.
8331 (re_set_exception_catchpoint): New function.
8332 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8333 Allocate a struct exception_catchpoint.
8334 (catch_exception_command_1): Update.
8335 (initialize_throw_catchpoint_ops): Set 're_set' method.
8337 2013-04-15 Tom Tromey <tromey@redhat.com>
8339 * Makefile.in (SFILES): Add break-catch-throw.c
8340 (COMMON_OBS): Add break-catch-throw.o.
8341 * break-catch-throw.c: New file.
8342 * breakpoint.c: Move exception-catching code to new file.
8343 (ep_parse_optional_if_clause): No longer static.
8344 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8346 2013-04-15 Tom Tromey <tromey@redhat.com>
8350 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8351 * c-exp.y (TYPEID): New token.
8352 (exp): Add new TYPEID productions.
8353 (ident_tokens): Add "typeid".
8354 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8355 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8356 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8357 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8358 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8360 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8361 (build_std_type_info_type, gnuv3_get_typeid_type)
8362 (gnuv3_get_typeid): New functions.
8363 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8364 new fields on ABI object.
8365 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8366 * std-operator.def (OP_TYPEID): New.
8368 2013-04-15 Tom Tromey <tromey@redhat.com>
8370 * elfread.c (elf_symtab_read): Install versioned symbol under
8371 unversioned name as well.
8373 2013-04-15 Tom Tromey <tromey@redhat.com>
8376 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8377 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8378 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8379 (gdb_demangle): New function.
8380 * cp-support.h (gdb_demangle): Declare.
8381 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8382 (dwarf2_name): Use gdb_demangle.
8383 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8384 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8386 (gnuv3_print_method_ptr): Use gdb_demangle.
8387 * jv-lang.c (java_demangle): Use gdb_demangle.
8388 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8389 * language.c (unk_lang_demangle): Use gdb_demangle.
8390 * symtab.c (symbol_find_demangled_name)
8391 (demangle_for_lookup): Use gdb_demangle.
8393 2013-04-15 Tom Tromey <tromey@redhat.com>
8397 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8399 (classify_exception_breakpoint): New function.
8400 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8401 (print_mention_exception_catchpoint)
8402 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8403 (catch_exception_command_1): Handle "rethrow" catchpoint.
8404 (catch_rethrow_command): New function.
8405 (_initialize_breakpoint): Add "catch rethrow" command.
8407 2013-04-15 Pierre Muller <muller@sourceware.org>
8409 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8410 set_gdbarch_write_pc as deprecated anymore.
8412 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8414 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8417 2013-04-13 Yao Qi <yao@codesourcery.com>
8419 * ctf.c (_initialize_ctf): Include "completer.h".
8420 Call add_target_with_completer instead of add_target.
8422 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8424 Fix GDB regression related to PR binutils/14813.
8425 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8426 * minidebug.c (lzma_close): Add return value comment.
8427 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8428 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8429 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8431 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8433 * config.in: Regenerate.
8435 2013-04-12 Tom Tromey <tromey@redhat.com>
8437 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8439 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8440 (struct die_reader_specs) <buffer>: Likewise.
8441 (die_reader_func_ftype): Make 'info_ptr' const.
8442 (struct line_header) <include_dirs, statement_program_start,
8443 statement_program_end>: Now const.
8444 (struct file_entry) <name>: Likewise.
8445 (struct partial_die_info) <sibling>: Likewise.
8446 (struct dwarf_block) <data>: Likewise.
8447 (dwarf2_read_section): Remove cast.
8448 (dwarf2_get_section_info): Make 'bufp' const.
8449 (read_index_from_section): Constify.
8450 (dw2_get_file_names_reader): Make 'info_ptr' const.
8451 (dw2_get_primary_filename_reader): Likewise.
8452 (read_comp_unit_head): Make 'info_ptr' and return type const.
8453 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8455 (read_abbrev_offset): Constify.
8456 (dwarf2_create_include_psymtab): Make 'name' const.
8457 (create_debug_types_hash_table): Update.
8458 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8459 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8461 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8462 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8463 (read_comp_units_from_section): Constify.
8464 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8465 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8467 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8468 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8469 (create_dwp_hash_table, dwarf2_ranges_read)
8470 (dwarf2_record_block_ranges): Constify.
8471 (read_die_and_children, read_die_and_siblings_1)
8472 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8474 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8475 (abbrev_table_read_table): Constify.
8476 (load_partial_dies): Make 'info_ptr' const.
8477 (read_partial_die, read_attribute_value, read_attribute): Make
8478 'info_ptr' and return type const.
8479 (read_address, read_initial_length)
8480 (read_checked_initial_length_and_offset, read_offset)
8481 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8483 (read_direct_string): Make 'buf' and return type const.
8484 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8485 (read_indirect_string): Make return type const.
8486 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8487 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8489 (read_str_index): Make return type const.
8490 (add_include_dir): Make 'include_dir' const.
8491 (add_file_name): Make 'name' const.
8492 (dwarf_decode_line_header): Constify.
8493 (psymtab_include_file_name): Make return type const.
8494 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8495 (dwarf2_start_subfile): Make 'filename' const.
8496 (dwarf2_const_value_attr): Make 'bytes' const.
8497 (read_signatured_type_reader): Make 'info_ptr' const.
8498 (decode_locdesc): Constify.
8499 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8501 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8502 'mac_end', and return type const.
8503 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8504 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8506 (per_cu_header_read_in): Constify.
8507 * symfile.h (dwarf2_get_section_info): Update.
8509 2013-04-12 Tom Tromey <tromey@redhat.com>
8511 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8513 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8515 * NEWS: Mention "show configuration", --configuration.
8516 * top.c (print_gdb_configuration): New function, displays the
8517 details about GDB configure-time parameters.
8518 (print_gdb_version): Mention "show configuration".
8519 * cli/cli-cmds.c (show_configuration): New function.
8520 (_initialize_cli_cmds): Add the "show configuration" command.
8521 * main.c (captured_main) <print_configuration>: New static var.
8522 <long_options>: Use it.
8523 If --configuration was given, call print_gdb_configuration.
8525 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8526 Pedro Alves <palves@redhat.com>
8528 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8529 (generated_files): Add gcore.
8530 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8531 HAVE_NATIVE_GCORE_HOST.
8533 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8534 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8535 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8536 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8537 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8538 Add HAVE_NATIVE_GCORE_HOST.
8539 * configure: Regenerate.
8540 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8541 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8542 AC_CONFIG_FILES for gcore.
8543 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8545 * gdb_gcore.sh: Rename to ...
8546 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8547 and GCORE_TRANSFORM_NAME substitutions.
8549 Fix parsing tabs in ${gdb_target_obs}.
8550 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8552 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8554 * remote.c (unpush_and_perror): Add output message final dot.
8556 2013-04-11 Yao Qi <yao@codesourcery.com>
8558 * tracepoint.c (tfile_interp_line): Fit parameters line and
8561 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8563 * solib.c (solib_map_sections): Remove code overwriting
8564 SO->SO_NAME with the bfd's filename.
8566 2013-04-10 Pedro Alves <palves@redhat.com>
8568 * cli/cli-decode.c (integer_unlimited_completer): New function.
8569 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8570 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8572 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8573 (is_unlimited_literal): New function.
8574 (do_set_command): Handle literal "unlimited" arguments.
8575 * frame.c (_initialize_frame) <set backtrace limit>: Document
8577 * printcmd.c (_initialize_printcmd) <set print
8578 max-symbolic-offset>: Add help text.
8579 * record-full.c (_initialize_record_full) <set record full
8580 insn-number-max>: Likewise.
8581 * record.c (_initialize_record) <set record
8582 instruction-history-size, set record function-call-history-size>:
8584 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8586 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8588 * source.c (_initialize_source) <set listsize>: Add help text.
8589 * utils.c (initialize_utils) <set height, set width>: Likewise.
8590 <set pagination>: Mention "set height unlimited".
8591 * valprint.c (_initialize_valprint) <set print elements, set print
8592 repeats>: Document "unlimited".
8594 2013-04-10 Pedro Alves <palves@redhat.com>
8596 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8597 instead of disconnect_tracing.
8598 * infcmd.c (detach_command, disconnect_command): Call
8599 query_if_trace_running. Adjust.
8600 * top.c: Include "tracepoint.h".
8601 (quit_target): Delete. Contents moved ...
8602 (quit_force): ... here. Wrap each stage of teardown in
8603 TRY_CATCH. Call disconnect_tracing before detaching.
8605 2013-04-10 Hui Zhu <hui@codesourcery.com>
8606 Yao Qi <yao@codesourcery.com>
8608 * configure.ac: Check libbabeltrace is installed.
8609 * config.in: Regenerate.
8610 * configure: Regenerate.
8611 * Makefile.in (LIBBABELTRACE): New.
8612 (CLIBS): Add LIBBABELTRACE.
8613 * ctf.c: Include "exec.h".
8614 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8615 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8616 (ctf_save_metadata_header): Define new type aliases in
8618 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8619 in metadata. Start a new faked packet for trace status.
8620 (ctf_write_status): Write trace status to CTF.
8621 (ctf_write_uploaded_tsv): Write TSV to CTF.
8622 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8623 (ctf_write_definition_end): End the faked packet.
8625 (ctx, ctf_iter, trace_dirname): New.
8626 (start_pos): New variable.
8627 (ctf_destroy, ctf_open_dir, ctf_open): New.
8628 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8630 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8631 (ctf_fetch_registers, ctf_xfer_partial): New.
8632 (ctf_get_trace_state_variable_value): New.
8633 (ctf_get_tpnum_from_frame_event): New.
8634 (ctf_get_traceframe_address): New.
8635 (ctf_trace_find, ctf_has_stack): New.
8636 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8637 (ctf_get_trace_status, ctf_read_status): New.
8638 (_initialize_ctf): New.
8639 * tracepoint.c (get_tracepoint_number): New
8640 (get_uploaded_tsv): Remove 'static'.
8641 (struct traceframe_info, trace_regblock_size): Move it to ...
8642 * tracepoint.h: ... here.
8643 (get_tracepoint_number): Declare it.
8644 (get_uploaded_tsv): Declare it.
8646 * NEWS: Mention new configure option.
8648 2013-04-10 Pedro Alves <palves@redhat.com>
8649 Hui Zhu <hui@codesourcery.com>
8651 * breakpoint.c (dprintf_re_set): New.
8652 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8655 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8657 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8658 Remove solib-svr4.o from the list.
8660 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8662 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8663 Use gdb_assert_not_reached instead of invalid boolean expression.
8665 2013-04-09 Pedro Alves <palves@redhat.com>
8667 * remote.c (unpush_and_perror): New function.
8668 (readchar, remote_serial_write): Use it.
8670 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8672 * NEWS: Mention new btrace RSP packets.
8674 2013-04-08 Tom Tromey <tromey@redhat.com>
8676 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8679 2013-04-08 Tom Tromey <tromey@redhat.com>
8681 * maint.c (print_bfd_section_info): Print the section index.
8682 * symmisc.c (dump_msymbols): Print the section index.
8684 2013-04-08 Tom Tromey <tromey@redhat.com>
8687 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8688 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8689 * breakpoint.c (resolve_sal_pc): Update.
8690 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8691 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8692 (minsym_lookup_iterator_cb): Use it.
8693 (default_read_var_value): Update.
8694 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8696 * infcmd.c (jump_command): Update.
8697 * linespec.c (minsym_found): Update.
8698 * maint.c (maintenance_translate_address): Update.
8699 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8700 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8701 * parse.c (write_exp_msymbol): Update.
8702 * printcmd.c (address_info): Update.
8703 * psymtab.c (find_pc_sect_psymbol): Update.
8704 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8706 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8707 Don't initialize SYMBOL_OBJ_SECTION.
8708 * spu-tdep.c (spu_catch_start): Update.
8709 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8710 * symmisc.c (dump_msymbols, print_symbol): Update.
8711 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8712 how fallback section is computed.
8713 (fixup_symbol_section): Update.
8714 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8716 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8717 Initialize SYMBOL_SECTION.
8718 * symtab.h (struct general_symbol_info) <section>: Update comment.
8719 <obj_section>: Remove.
8720 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8721 (SYMBOL_OBJFILE): New macro.
8723 2013-04-08 Tom Tromey <tromey@redhat.com>
8725 * coffread.c (record_minimal_symbol): Update.
8726 * dbxread.c (record_minimal_symbol): Update.
8727 * elfread.c (record_minimal_symbol): Update.
8728 * machoread.c (macho_symtab_add_minsym): Update.
8729 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8731 * minsyms.c (prim_record_minimal_symbol): Update.
8732 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8734 (prim_record_minimal_symbol_and_info): Likewise.
8735 * minsyms.h (prim_record_minimal_symbol_full)
8736 (prim_record_minimal_symbol_and_info): Update.
8737 * symtab.c (allocate_symbol, initialize_symbol)
8738 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8739 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8742 2013-04-08 Tom Tromey <tromey@redhat.com>
8745 * solib-som.c (som_solib_section_offsets): Use BFD section
8746 indices. Set offsets for all sections.
8747 * somread.c (som_symtab_read): Compute BFD section for
8748 symbol. Use prim_record_minimal_symbol_and_info.
8749 (som_symfile_read): Fix comment.
8750 (struct find_section_offset_arg): New.
8751 (find_section_offset, set_section_index): New functions.
8752 (som_symfile_offsets): Use set_section_index to compute
8755 2013-04-08 Tom Tromey <tromey@redhat.com>
8757 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8758 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8759 gdb_bfd_section_index.
8760 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8762 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8764 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8766 * objfiles.c (add_to_objfile_sections_full): New function.
8767 (add_to_objfile_sections): Use it.
8768 (build_section_table): Rewrite.
8769 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8770 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8771 (struct objfile) <sections>: Update comment.
8772 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8774 (ALL_OBJSECTIONS): Use it.
8775 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8776 * solib-frv.c (frv_relocate_main_executable): Update.
8777 * solib-target.c (solib_target_relocate_section_addresses):
8778 Use gdb_bfd_section_index.
8779 * symfile.c (build_section_addr_info_from_section_table):
8780 Use gdb_bfd_section_index.
8781 (build_section_addr_info_from_bfd, place_section): Likewise.
8782 * symtab.c (fixup_section): Update.
8783 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8785 2013-04-08 Tom Tromey <tromey@redhat.com>
8787 * minsyms.h (struct bound_minimal_symbol): New.
8788 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8789 Remove objfile argument.
8790 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8791 Return bound_minimal_symbol.
8792 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8793 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8794 Return bound_minimal_symbol.
8795 (in_gnu_ifunc_stub): Update.
8796 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8797 Remove 'objfile_p' argument.
8798 (lookup_solib_trampoline_symbol_by_pc): Update.
8799 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8800 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8801 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8802 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8803 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8804 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8805 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8806 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8807 stack.c, symtab.c, tui/tui-disasm.c: Update.
8809 2013-04-08 Tom Tromey <tromey@redhat.com>
8811 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8812 Use symbol's obstack, not an objfile.
8813 * coffread.c (process_coff_symbol): Update.
8814 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8815 * jv-lang.c (add_class_symbol): Update.
8816 * mdebugread.c (new_symbol): Update.
8817 * minsyms.c (prim_record_minimal_symbol_full)
8818 (terminate_minimal_symbol_table): Update.
8819 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8820 * stabsread.c (define_symbol, read_enum_type): Update.
8821 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8822 Handle Ada specially.
8823 (symbol_set_language): Add 'obstack' argument.
8824 (symbol_set_names): Update.
8825 (symbol_natural_name, symbol_demangled_name): Always use
8827 * symtab.h (struct general_symbol_info)
8828 <language_specific::obstack>: New field.
8829 <ada_mangled>: New field.
8830 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8831 (symbol_set_language): Update.
8833 2013-04-08 Tom Tromey <tromey@redhat.com>
8835 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8836 Take an obstack, not an objfile.
8837 (symbol_set_names): Update.
8838 * symtab.h (symbol_set_demangled_name): Update.
8840 2013-04-08 Tom Tromey <tromey@redhat.com>
8842 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8844 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8845 (read_func_scope): Call allocate_template_symbol.
8846 (new_symbol_full): Call allocate_symbol.
8847 * jit.c (finalize_symtab): Call allocate_symbol.
8848 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8849 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8850 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8851 (common_block_end): Call allocate_symbol.
8852 * symtab.c (allocate_symbol, initialize_symbol)
8853 (allocate_template_symbol): New functions.
8854 * symtab.c (allocate_symbol, initialize_symbol)
8855 (allocate_template_symbol): Declare.
8856 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8858 2013-04-08 Pedro Alves <palves@redhat.com>
8859 Keith Seitz <keiths@redhat.com>
8861 * breakpoint.c (create_breakpoint): Rename
8862 "parse_condition_and_thread" parameter to "parse_arg". Update
8863 describing comment. If !PARSE_ARG, then error out if ARG is not
8864 the empty string after extracting the location.
8865 * breakpoint.h (create_breakpoint): Rename
8866 "parse_condition_and_thread" parameter to "parse_arg".
8868 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8870 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8872 2013-04-07 Yao Qi <yao@codesourcery.com>
8874 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8875 and 'addr2' to CORE_ADDR.
8876 * target.c (update_current_target): Update.
8877 * target.h (struct target_ops) <to_trace_find>: Change parameter
8879 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8880 'addr2' to CORE_ADDR.
8881 (tfile_trace_find): Likewise.
8882 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8883 Change local variable 'addr' to type CORE_ADDR.
8884 * tracepoint.h (tfind_1): Update declaration.
8886 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8888 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8889 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8892 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8894 * main.h (windows_get_absolute_argv0): ...to here.
8896 2013-04-05 Doug Evans <dje@google.com>
8898 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8899 (read_cutu_die_from_dwo): Add comments.
8900 (read_structure_type): Update comment.
8901 (read_enumeration_type, read_namespace_type): Update comment.
8902 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8904 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8906 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8907 * Makefile.in (gdb.z): Remove.
8908 (install-only): Remove $(man1dir) and gdb.1 installation.
8911 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8913 Fix compatibility with Linux kernel 3.8.3.
8914 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8915 to more inner block. Remove parsing of NUMBER from outer block.
8916 Parse NUMBER only if KEYWORD has been identified.
8918 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8920 Fix variable name shadowing.
8921 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8922 filename to mapsfilename and update its uses.
8924 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8926 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8927 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8928 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8929 details of the problem.
8931 2013-04-04 Pedro Alves <palves@redhat.com>
8932 Hui Zhu <hui@codesourcery.com>
8934 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8935 tracepoint, reset its STEP_COUNT and call validate_actionline.
8937 2013-04-03 Doug Evans <dje@google.com>
8939 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8940 read_die_and_siblings.
8941 (read_die_and_siblings): New function.
8942 (read_cutu_die_from_dwo): Dump die if requested.
8943 (read_die_and_children): Call read_full_die_1 and
8944 read_die_and_siblings_1.
8945 (read_full_die): Dump die if requested.
8947 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8949 * dwarf2read.c (struct dwo_file): New member comp_dir.
8950 Rename member name to dwo_name. All uses updated.
8951 (hash_dwo_file): Include comp_dir in computation.
8952 (eq_dwo_file): Ditto.
8953 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8954 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8956 * psymtab.c (read_psymtabs_with_fullname): Don't call
8957 psymtab_to_fullname if the basenames are different.
8959 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8961 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8962 New entry about "fullname" presence.
8964 2013-04-03 Pedro Alves <palves@redhat.com>
8966 * NEWS: Mention x86_64/Cygwin as new native configuration.
8968 2013-04-02 Doug Evans <dje@google.com>
8970 * dwarf2read.c (read_structure_type): Fix typo in comment.
8972 2013-04-02 Pedro Alves <palves@redhat.com>
8974 * NEWS: Mention "set/show debug aarch64", "set/show debug
8975 coff-pe-read" and "set/show debug mach-o".
8977 2013-04-02 Pedro Alves <palves@redhat.com>
8979 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8981 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8983 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8984 gdb_string.h is now in common/.
8986 2013-04-02 Pedro Alves <palves@redhat.com>
8988 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8989 under "New options".
8991 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8995 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8997 2013-04-02 Pedro Alves <palves@redhat.com>
9001 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9002 (remote_serial_write): New function.
9003 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9005 2013-04-01 Jiong Wang <jiwang@tilera.com>
9007 * NEWS: Mention TILE-Gx in "New native configurations" and
9008 "New targets" sections.
9010 2013-04-01 Doug Evans <dje@google.com>
9012 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9013 (process_enumeration_scope): Simplify.
9015 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9017 (struct signatured_type): ... to here.
9018 (sig_type_ptr): New typedef.
9019 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9020 out of union 't'. All uses updated.
9021 (dw2_get_file_names_reader): Assert not called for a type unit.
9022 (dw2_get_file_names): Assert not called for a type unit or type
9024 (build_type_psymtabs_reader): Assert called for a type unit.
9025 (build_type_psymtab_dependencies): Assert called for a type unit group.
9027 * dwarf2read.c (free_dwo_file): Add comment.
9028 (dwarf2_per_objfile_free): Unref dwp bfd.
9030 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9032 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9033 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9034 (read_pe_exported_syms): Remove unused 'exportix'.
9035 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9036 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9037 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9039 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9041 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9042 (print_it_watchpoint): Remove unused 'bl'.
9043 (say_where): Remove unused 'uiout'.
9044 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9045 (bkpt_breakpoint_hit): Remove unused 'b'.
9046 (internal_bkpt_print_it): Remove unused 'uiout'.
9047 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9049 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9051 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9052 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9054 2013-03-29 Doug Evans <dje@google.com>
9056 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9057 Delete arg is_dwp. All callers updated.
9058 (open_dwp_file): New function.
9059 (open_and_init_dwp_file): Call it.
9060 (get_dwp_file): New function.
9061 (lookup_dwo_cutu): Call it.
9063 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9064 unnecessary, cleanup.
9066 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9068 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9069 (lookup_dwo_unit): New function.
9070 (init_cutu_and_read_dies): Move DWO handling to new functions.
9072 * dwarf2read.c (struct signatured_type): Tweak comment.
9073 (struct dwo_unit): Tweak comment.
9074 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9075 (create_dwo_debug_info_hash_table): Tweak comment.
9076 (dwarf2_per_cu_offset_and_type): Tweak comment.
9078 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9079 missing .debug_types section.
9081 2013-03-29 Yao Qi <yao@codesourcery.com>
9083 * corelow.c: Include "completer.h".
9084 (_initialize_corelow): Call add_target_with_completer with
9085 argument 'filename_completer'.
9086 * tracepoint.c: Likewise.
9087 * exec.c (_initialize_exec): Likewise.
9088 * target.c (add_target): Rename to ...
9089 (add_target_with_completer): ... this. Call set_cmd_completer
9090 if parameter completer is not NULL.
9092 * target.h: Include "command.h".
9093 (add_target_with_completer): Declare it.
9095 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9097 * coffread.c (is_import_fixup_symbol): New function.
9098 (record_minimal_symbol): Use is_import_fixup_symbol to
9099 detect import fixup symbols, and discard them.
9101 2013-03-28 Doug Evans <dje@google.com>
9103 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9104 types hash table until we know we need it.
9106 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9109 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9110 All callers updated.
9111 (dw2_print_stats): Print #read CUs too.
9112 (dump_die_shallow): Print signatured types better.
9114 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9115 info_or_types_section to section. All uses updated.
9116 (struct dwo_unit): Ditto.
9118 2013-03-28 Pedro Alves <palves@redhat.com>
9120 * NEWS (New options): New section.
9121 (New options): Mention set/show remote trace-status-packet.
9122 * remote.c (PACKET_qTStatus): New enumeration value.
9123 (remote_get_trace_status): Skip sending qTStatus if the packet is
9124 disabled. Use packet_ok.
9125 (_initialize_remote): Register a configuration command for
9128 2013-03-28 Doug Evans <dje@google.com>
9130 * symfile.c (find_separate_debug_file): Add comment.
9131 (terminate_after_last_dir_separator): Tweak comment.
9133 * dwarf2read.c (create_partial_symtab): Add forward decl.
9134 (create_partial_symtab): Move to be closer to other psymtab functions.
9135 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9137 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9138 (compute_symtab_includes): Remove unnecessary forward declaration.
9139 (die_needs_namespace): Add comment marking group of functions for
9140 dwarf2 name computation.
9142 * typeprint.c (_initialize_typeprint): Improve type help text.
9144 * python/python.c (finish_python_initialization): Provide suggestion
9145 for how to tell gdb to find its python files.
9147 2013-03-28 Pedro Alves <palves@redhat.com>
9151 * source.c (_initialize_source): Change back "set listsize" to an
9154 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9157 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9159 2013-03-27 Pedro Alves <palves@redhat.com>
9161 * top.c (history_size): Rename to ...
9162 (history_size_setshow_var): ... this. Add comment.
9163 (show_commands): Use readline's 'history_length' instead of
9164 computing the history length by calling history_get in a loop.
9165 (set_history_size_command): Error out for sizes over INT_MAX.
9166 Restore previous history size on invalid size.
9167 (init_history): If HISTSIZE is negative, leave the history size as
9169 (init_main): Adjust.
9171 2013-03-27 Pedro Alves <palves@redhat.com>
9173 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9174 coff_pe_read" command to "set debug coff-pe-read".
9176 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9178 * record.c (command_size_to_target_size): Fix size comparison.
9179 Change parameter type from pointer to integer to integer.
9182 2013-03-27 Pierre Muller <muller@sourceware.org>
9184 * windows-nat.c (handle_output_debug_string): Avoid typecast
9185 from integer of different size warning.
9187 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9189 * windows-nat.c (handle_output_debug_string): Add empty line
9190 after local block variable definition.
9192 2013-03-26 Pedro Alves <palves@redhat.com>
9194 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9195 (net_open): Make 'polls' local unsigned.
9197 2013-03-26 Pedro Alves <palves@redhat.com>
9199 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9200 a zuinteger command instead of uinteger.
9202 2013-03-26 Pedro Alves <palves@redhat.com>
9204 * record-full.c (record_full_insn_num): Make it unsigned.
9205 (record_full_check_insn_num, record_full_message)
9206 (record_full_registers_change, record_full_xfer_partial): Remove
9207 record_full_insn_max_num check (it's always != 0).
9208 (record_full_info, record_full_restore): Use %u as format string.
9209 (): Use %u as format string.
9210 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9211 check (it's always != 0).
9213 2013-03-26 Pedro Alves <palves@redhat.com>
9215 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9216 and "set dcache size" commands zuinteger instead of uinteger.
9218 2013-03-26 Pedro Alves <palves@redhat.com>
9220 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9221 command zuinteger instead of uinteger.
9223 2013-03-26 Pedro Alves <palves@redhat.com>
9225 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9226 zuinteger instead of uinteger.
9228 2013-03-26 Pedro Alves <palves@redhat.com>
9230 * record.c (record_insn_history_size_setshow_var)
9231 (record_call_history_size_setshow_var): New globals.
9232 (command_size_to_target_size): New function.
9233 (cmd_record_insn_history, cmd_record_call_history): Use
9234 command_size_to_target_size instead of cast.
9235 (validate_history_size, set_record_insn_history_size)
9236 (set_record_call_history_size): New functions.
9237 (_initialize_record): Install set_record_insn_history_size and
9238 set_record_call_history_size as "set" hooks of "set record
9239 instruction-history-size" and "set record
9240 function-call-history-size".
9242 2013-03-26 Pedro Alves <palves@redhat.com>
9244 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9245 use with history_max_entries use. Remove FIXME note.
9247 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9249 * record-btrace.c (record_btrace_close): Call
9250 record_btrace_auto_disable.
9252 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9254 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9256 2013-03-25 Doug Evans <dje@google.com>
9258 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9260 2013-03-25 Tom Tromey <tromey@redhat.com>
9263 * c-exp.y (exp): Add new productions for destructors after '.' and
9265 (write_destructor_name): New function.
9267 2013-03-25 Tom Tromey <tromey@redhat.com>
9270 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9271 value_struct_elt, not lookup_struct_elt_type.
9272 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9273 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9274 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9276 2013-03-25 Yao Qi <yao@codesourcery.com>
9278 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9279 instead of '_mkdir'.
9281 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9283 * windows-nat.c (windows_get_absolute_argv0): New function.
9284 * windows-nat.h: Add its prototype.
9286 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9287 Use IS_DIR_SEPARATOR instead of looking for a character inside
9288 SLASH_STRING. Include filenames.h.
9289 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9290 relocate_gdb_directory works when passed gdb_program_name.
9291 Include windows-nat.h.
9293 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9295 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9296 * remote.c (trace_error): Remove the special handling of '2'.
9297 (readchar) <SERIAL_EOF>
9298 (readchar) <SERIAL_ERROR>
9299 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9300 (remote_get_trace_status): Call throw_exception if EX is
9302 * utils.c (perror_with_name): Rename to ...
9303 (throw_perror_with_name): ... here. New parameter errcode, describe it
9304 in the function comment.
9305 (perror_with_name): New function wrapper.
9306 * utils.h (enum errors): New stub declaration.
9307 (throw_perror_with_name): New declaration.
9309 2013-03-22 Pedro Alves <palves@redhat.com>
9310 Yao Qi <yao@codesourcery.com>
9311 Mark Kettenis <kettenis@gnu.org>
9313 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9314 Don't let the user set the value to UINT_MAX directly.
9315 <var_integer>: Don't let the user set the value to INT_MAX
9318 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9320 * remote.c (remote_unpush_target): New function.
9321 (remote_open_1): Remove two pop_target calls, update one comment, add
9322 comment to target_preopen call. Replace pop_target call by
9323 remote_unpush_target call.
9324 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9325 pop_target calls by remote_unpush_target calls.
9327 2013-03-22 Pedro Alves <palves@redhat.com>
9329 * linux-nat.c (linux_child_follow_fork): Don't call
9330 linux_enable_event_reporting.
9331 (linux_handle_extended_wait): Don't call
9332 linux_enable_event_reporting.
9334 2013-03-22 Pedro Alves <palves@redhat.com>
9336 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9337 use it to rewrite the trampoline buffers with type gdb_byte[], and
9338 undefine the macro. Remove char* cast.
9340 2013-03-21 Doug Evans <dje@google.com>
9342 New commands "mt set per-command {space,time,symtab} {on,off}".
9344 * event-top.c: #include "maint.h".
9345 * main.c: #include "maint.h".
9346 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9347 timeval-utils.h, maint.h, cli/cli-setshow.h.
9348 (per_command_time, per_command_space): New static globals.
9349 (per_command_symtab): New static global.
9350 (per_command_setlist, per_command_showlist): New static globals.
9351 (struct cmd_stats): Move here from utils.c.
9352 (set_per_command_time): Renamed from set_display_time in utils.c
9353 and moved here. All callers updated.
9354 (set_per_command_space): Renamed from set_display_space in utils.c
9355 and moved here. All callers updated.
9356 (count_symtabs_and_blocks): New function.
9357 (report_command_stats): Moved here from utils.c. Add support for
9358 printing symtab stats. Only print data if enabled before command
9360 (make_command_stats_cleanup): Ditto.
9361 (sert_per_command_cmd, show_per_command_cmd): New functions.
9362 (_initialize_maint_cmds): Add new commands
9363 mt set per-command {space,time,symtab} {on,off}.
9364 * maint.h: New file.
9365 * top.c: #include "maint.h".
9366 * utils.c (reset_prompt_for_continue_wait_time): New function.
9367 (get_prompt_for_continue_wait_time): New function.
9368 * utils.h (reset_prompt_for_continue_wait_time): Declare
9369 (get_prompt_for_continue_wait_time): Declare.
9370 (make_command_stats_cleanup): Moved to maint.h.
9371 (set_display_time, set_display_space): Moved to maint.h and renamed
9372 to set_per_command_time, set_per_command_space.
9373 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9374 parse_binary_operation and made non-static. Don't call error,
9375 just return an error marker. All callers updated.
9376 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9378 2013-03-21 Tom Tromey <tromey@redhat.com>
9380 * symfile.c (alloc_section_addr_info): Update header. Don't set
9381 'num_sections' field.
9382 (build_section_addr_info_from_section_table): Set 'num_sections'.
9383 (build_section_addr_info_from_bfd): Likewise.
9384 (build_section_addr_info_from_objfile): Remove dead loop
9386 (free_section_addr_info): Unconditionally call xfree.
9387 (relative_addr_info_to_section_offsets, addrs_section_sort)
9388 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9390 (syms_from_objfile_1): Remove dead 'if' condition. Check
9392 (add_symbol_file_command): Set 'num_sections'.
9393 * symfile-mem.c (symbol_file_add_from_memory): Set
9395 * somread.c (som_symfile_offsets): Remove dead loop condition.
9396 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9397 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9399 2013-03-21 Tom Tromey <tromey@redhat.com>
9401 * tracepoint.h (decode_agent_options): Add 'trace_string'
9403 * tracepoint.c (decode_agent_options): Add 'trace_string'
9405 (validate_actionline): Update.
9406 (collect_symbol): Add 'trace_string' argument.
9407 (struct add_local_symbols_data) <trace_string>: New field.
9408 (do_collect_symbol): Update.
9409 (add_local_symbols): Add 'trace_string' argument.
9410 (encode_actions_1): Update.
9411 (trace_dump_actions): Update.
9412 * dwarf2loc.c (access_memory): Update.
9413 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9414 * ax-general.c (new_agent_expr): Update.
9415 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9416 (gen_trace_for_return_address): Add argument.
9417 (trace_kludge, trace_string_kludge): Remove.
9418 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9419 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9420 (gen_trace_for_var): Add 'trace_string' argument.
9421 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9422 (gen_printf, agent_eval_command_one): Update.
9424 2013-03-21 Tom Tromey <tromey@redhat.com>
9427 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9428 Handle FILENAME token.
9430 2013-03-21 Tom Tromey <tromey@redhat.com>
9432 * c-exp.y (YYPRINT): Define.
9433 (c_print_token): New function.
9435 2013-03-21 Tom Tromey <tromey@redhat.com>
9437 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9439 2013-03-21 Yao Qi <yao@codesourcery.com>
9441 * ctf.c: Include "gdb_stat.h".
9442 [USE_WIN32API]: New macro 'mkdir'.
9443 (ctf_start): Use permission bits macros if they are defined.
9445 2013-03-20 Keith Seitz <keiths@redhat.com>
9447 * breakpoint.h (struct breakpoint): Add comment to
9448 extra_string indicating that this member is mallod'd.
9449 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9451 2013-03-20 Pedro Alves <palves@redhat.com>
9455 * cli/cli-setshow.c (do_set_command)
9456 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9457 the result of parsing the command argument. Throw error if the
9458 value is greater than UINT_MAX. Print the invalid value with
9460 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9461 result of parsing the command argument. Throw error if the value
9462 is greater than INT_MAX, not greater or equal. Also throw error
9463 if the value is less than INT_MIN. Print the invalid value with
9465 <var_zuinteger_unlimited>: Throw error if the value is greater
9466 than INT_MAX, not greater or equal.
9467 (do_show_command) <var_integer, var_zinteger,
9468 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9470 2013-03-20 Tom Tromey <tromey@redhat.com>
9472 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9474 * dwarf2read.c (read_func_scope): Remove old FIXME.
9475 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9477 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9478 Unconditionally call via computed ops, if possible.
9479 * printcmd.c (address_info): Unconditionally call via computed ops,
9481 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9483 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9484 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9487 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9488 Tom Tromey <tromey@redhat.com>
9491 * coffread.c (coff_register_index): New global.
9492 (process_coff_symbol, coff_read_enum_type): Set
9493 SYMBOL_ACLASS_INDEX.
9494 (_initialize_coffread): Initialize new global.
9495 * dwarf2loc.c (locexpr_find_frame_base_location)
9496 (dwarf2_block_frame_base_locexpr_funcs)
9497 (loclist_find_frame_base_location)
9498 (dwarf2_block_frame_base_loclist_funcs): New.
9499 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9500 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9501 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9502 (dwarf2_block_frame_base_loclist_funcs): New.
9503 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9504 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9506 (read_func_scope): Update.
9507 (fixup_go_packaging, mark_common_block_symbol_computed)
9508 (var_decode_location, new_symbol_full, dwarf2_const_value):
9509 Set SYMBOL_ACLASS_INDEX.
9510 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9511 (_initialize_dwarf2_read): Initialize new globals.
9512 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9513 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9514 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9516 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9517 (_initialize_mdebugread): Initialize new globals.
9518 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9519 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9520 (stab_register_index, stab_regparm_index): New globals.
9521 (define_symbol, read_enum_type, common_block_end): Set
9522 SYMBOL_ACLASS_INDEX.
9523 (_initialize_stabsread): Initialize new globals.
9524 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9526 (MAX_SYMBOL_IMPLS): New define.
9527 (register_symbol_computed_impl, register_symbol_block_impl)
9528 (register_symbol_register_impl)
9529 (initialize_ordinary_address_classes): New functions.
9530 (_initialize_symtab): Call initialize_ordinary_address_classes.
9531 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9532 (struct symbol_impl): New.
9533 (SYMBOL_ACLASS_BITS): New define.
9534 (struct symbol) <aclass, ops>: Remove fields.
9535 <aclass_index>: New field.
9536 (symbol_impls): Declare.
9537 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9538 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9539 (register_symbol_computed_impl, register_symbol_block_impl)
9540 (register_symbol_register_impl): Declare.
9541 (struct symbol_computed_ops): Add location_has_loclist.
9542 (struct symbol_block_ops): New.
9543 (SYMBOL_BLOCK_OPS): New.
9544 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9546 2013-03-20 Tom Tromey <tromey@redhat.com>
9548 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9549 (print_partial_symbols, recursively_search_psymtabs): Use
9552 2013-03-20 Pierre Muller <muller@sourceware.org>
9554 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9555 addtion, subtraction, multiplication and division binary operator.
9557 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9560 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9561 * bsd-kvm.c (bsd_kvm_close): Likewise.
9562 * bsd-uthread.c (bsd_uthread_close): Likewise.
9563 * corelow.c (core_close): Likewise.
9564 (core_close_cleanup): Remove parameter quitting from a caller.
9565 * event-top.c (async_disconnect): Likewise.
9566 * exec.c (exec_close_1): Remove parameter quitting.
9567 * go32-nat.c (go32_close): Likewise.
9568 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9569 parameter quitting from a caller.
9570 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9572 (mips_linux_close): Remove parameter quitting. Remove parameter
9573 quitting from a caller.
9574 * monitor.c (monitor_close): Remove parameter quitting.
9575 * monitor.h (monitor_close): Likewise.
9576 * record-btrace.c (record_btrace_close): Likewise.
9577 * record-full.c (record_full_close): Likewise.
9578 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9579 it also from fprintf_unfiltered.
9580 * remote-mips.c (mips_close): Remove parameter quitting.
9581 (mips_detach): Remove parameter quitting from a caller.
9582 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9583 (gdbsim_close): Remove duplicate function comment. Remove parameter
9584 quitting and remove it also from printf_filtered.
9585 * remote.c (remote_close): Remove parameter quitting.
9586 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9587 * target.c (update_current_target): Remove parameter int from to_close
9589 (push_target, unpush_target, pop_target): Remove parameter quitting from
9591 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9592 Remove parameter quitting from a caller.
9593 (target_preopen): Remove parameter quitting from a caller.
9594 (target_close): Remove parameter quitting. Remove parameter quitting
9595 from a caller two times. Remove parameter quitting also from
9597 * target.h (struct target_ops): Remove parameter quitting and as int
9598 from fields to_xclose and to_close.
9599 (extern struct target_ops current_target):
9600 (target_close, pop_all_targets): Remove parameter quitting. Update the
9602 (pop_all_targets_above): Remove parameter quitting.
9603 * top.c (quit_target): Remove parameter quitting from a caller.
9604 * tracepoint.c (tfile_close): Remove parameter quitting.
9605 * windows-nat.c (windows_close): Remove parameter quitting.
9607 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9609 * windows-nat.c (handle_output_debug_string): Replace call
9610 to string_to_core_addr with call to strtoull.
9612 2013-03-20 Yao Qi <yao@codesourcery.com>
9614 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9615 and write it to CTF metadata.
9617 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9619 * windows-nat.c (handle_output_debug_string): Change type of n to
9620 SIZE_T to avoid crash on 64 bit systems.
9622 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9624 * python/python-internal.h (HAVE_SNPRINTF)
9625 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9626 about redefinition of snprintf by pyerrors.h.
9628 2013-03-15 Steve Ellcey <sellcey@mips.com>
9630 * remote-sim.c (sim_command_completer): Make char arguments const.
9632 2013-03-15 Tom Tromey <tromey@redhat.com>
9635 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9637 2013-03-14 Tom Tromey <tromey@redhat.com>
9639 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9641 (get_file_crc): Move from symfile.c.
9642 (gdb_bfd_crc): New function.
9643 * gdb_bfd.h (gdb_bfd_crc): Declare.
9644 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9645 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9646 (separate_debug_file_exists): Use gdb_bfd_crc.
9648 2013-03-14 Tom Tromey <tromey@redhat.com>
9650 * symfile.c (get_debug_link_info): Remove.
9651 (find_separate_debug_file_by_debuglink): Use
9652 bfd_get_debug_link_info.
9654 2013-03-14 Tom Tromey <tromey@redhat.com>
9656 * symtab.c (error_in_psymtab_expansion): New function.
9657 (lookup_symbol_aux_quick)
9658 (basic_lookup_transparent_type_quick): Remove "last resort"
9659 code. Use error_in_psymtab_expansion.
9661 2013-03-14 Doug Evans <dje@google.com>
9662 Jan Kratochvil <jan.kratochvil@redhat.com>
9664 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9665 any successful compare_filenames_for_search or FILENAME_CMP.
9666 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9667 * symtab.c (iterate_over_some_symtabs): Likewise.
9669 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9671 * source.c (print_source_lines_base): Make a local copy of
9674 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9675 Jan Kratochvil <jan.kratochvil@redhat.com>
9677 * source.c (print_source_lines_base): Suppress "file" for TUI.
9679 2013-03-14 Keith Seitz <keiths@redhat.com>
9680 Alan Matsuoka <alanm@redhat.com>
9684 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9686 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9689 2013-03-14 Yao Qi <yao@codesourcery.com>
9691 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9692 status to tfile if trace is stopped by command 'tstop'.
9694 2013-03-14 Yao Qi <yao@codesourcery.com>
9696 * tracepoint.c (tfile_write_status): Write trace notes and user
9697 name into tfile if they are not NULL.
9699 2013-03-14 Hui Zhu <hui@codesourcery.com>
9700 Yao Qi <yao@codesourcery.com>
9702 * Makefile.in (REMOTE_OBS): Add ctf.o.
9703 (SFILES): Add ctf.c.
9704 (HFILES_NO_SRCDIR): Add ctf.h.
9705 * ctf.c, ctf.h: New files.
9706 * tracepoint.c: Include 'ctf.h'.
9707 (collect_pseudocommand): Remove static.
9708 (trace_save_command): Parse option "-ctf".
9709 Produce different trace file writers per option.
9710 Adjust output message.
9711 (trace_save_tfile, trace_save_ctf): New.
9712 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9713 * mi/mi-main.c: Include 'ctf.h'.
9714 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9715 trace_save_tfile or trace_save_ctf.
9716 * NEWS: Mention these changes.
9718 2013-03-14 Yao Qi <yao@codesourcery.com>
9720 * tracepoint.c (trace_file_writer_xfree): New.
9721 (struct tfile_writer_data): New.
9722 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9723 (tfile_write_header, tfile_write_regblock_type): New.
9724 (tfile_write_status, tfile_write_uploaded_tsv): New.
9725 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9726 (tfile_write_raw_data, (tfile_end): New.
9727 (tfile_write_ops): New global variable.
9728 (TRACE_WRITE_R_BLOCK): New macro.
9729 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9730 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9731 (TRACE_WRITE_V_BLOCK): New macro.
9732 (trace_save): Add extra one parameter WRITER. Make it static.
9733 Use WRITER to writer trace.
9734 (tfile_trace_file_writer_new): New.
9735 (trace_save_command): Caller update.
9736 (trace_save_tfile): Write trace data in TFILE format.
9737 * tracepoint.h (struct trace_frame_write_ops): New.
9738 (struct trace_file_write_ops): New.
9739 (struct trace_file_writer): New.
9740 (trace_save): Remove its declaration.
9741 (trace_save_tfile): Declare it.
9742 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9743 instead of trace_save.
9745 2013-03-13 Pedro Alves <palves@redhat.com>
9747 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9749 2013-03-13 Pedro Alves <palves@redhat.com>
9751 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9753 * demangle.c (current_demangling_style_string): Make it const.
9754 (set_demangling_command): Assert the demangling style is known.
9755 Remove all handling of unknown styles. Set
9756 'current_demangling_style_string' to an element of the
9757 demangling_style_names array.
9758 (set_demangling_style): Delete.
9759 (_initialize_demangler): Set current_demangling_style_string to the
9760 element of the demangling_style_names array that corresponds to
9761 the default demangling style. Remove FIXME note. Don't call
9762 set_demangling_style.
9763 * gdb-demangle.h (set_demangling_style): Remove declaration.
9765 2013-03-13 Pedro Alves <palves@redhat.com>
9767 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9769 (ada_make_symbol_completion_list): Make "text0" parameter const.
9770 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9771 * breakpoint.c (condition_completer): Make "text" and "word"
9772 parameters const. Adjust.
9773 (check_tracepoint_command): Adjust to validate_actionline
9775 (catch_syscall_completer): Make "text" and "word" parameters
9777 * cli/cli-cmds.c (show_user): Make "comname" local const.
9778 (valid_command_p): Make "command" parameter const.
9779 (alias_command): Make "alias_prefix" and "command_prefix" locals
9781 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9782 (add_alias_cmd): Make "name" and "oldname" parameters const.
9783 Adjust. No longer make copy of OLDNAME.
9784 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9785 (add_setshow_cmd_full, add_setshow_enum_cmd)
9786 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9787 (add_setshow_filename_cmd, add_setshow_string_cmd)
9788 (add_setshow_string_noescape_cmd)
9789 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9790 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9791 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9792 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9793 Make "name" parameter const.
9794 (help_cmd): Rename "command" parameter to "arg". New const local
9796 (find_cmd): Make "command" parameter const.
9797 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9798 deprecated_cmd_warning prototype change.
9799 (undef_cmd_error): Make "cmdtype" parameter const.
9800 (lookup_cmd): Make "line" parameter const.
9801 (deprecated_cmd_warning): Change type of "text" parameter to
9802 pointer to const char, from pointer to pointer to char. Adjust.
9803 (lookup_cmd_composition): Make "text" parameter const.
9804 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9806 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9808 * cli/cli-script.c (validate_comname): Make "tem" local const.
9809 (define_command): New const local "tem_c". Use it in calls to
9811 (document_command): Make "tem" and "comfull" locals const.
9812 (show_user_1): Make "prefix" and "name" parameters const.
9813 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9815 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9816 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9817 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9818 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9819 (complete_on_enum, add_setshow_enum_cmd)
9820 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9821 (add_setshow_filename_cmd, add_setshow_string_cmd)
9822 (add_setshow_string_noescape_cmd)
9823 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9824 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9825 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9826 Change prototypes, constifying strings.
9827 * completer.c (noop_completer, filename_completer): Make "text"
9828 and "prefix" parameters const.
9829 (location_completer, expression_completer)
9830 (complete_line_internal): Make "text" and "prefix" parameters
9832 (command_completer, signal_completer): Make "text" and "prefix"
9834 * completer.h (noop_completer, filename_completer)
9835 (expression_completer, location_completer, command_completer)
9836 (signal_completer): Change prototypes.
9837 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9839 * cp-abi.c (cp_abi_completer): Likewise.
9840 * expression.h (parse_expression_for_completion): Change
9842 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9844 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9845 * infrun.c (handle_completer): Make "text" and "word" parameters
9847 * interps.c (interpreter_completer): Make "text" and "word"
9849 * language.h (struct language_defn)
9850 <la_make_symbol_completion_list>: Make "text" and "word"
9852 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9853 (parse_exp_in_context): Rename to ...
9854 (parse_exp_in_context_1): ... this.
9855 (parse_exp_in_context): Reimplement, with const hack from
9857 (parse_expression_for_completion): Make "string" parameter const.
9858 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9859 to pointer to const char. Adjust.
9860 (print_command_1): Make "exp" parameter const.
9861 (output_command): Rename to ...
9862 (output_command_const): ... this. Make "exp" parameter const.
9863 (output_command): Reimplement.
9864 (x_command): Adjust.
9865 (display_command): Rename "exp" parameter to "arg". New "exp"
9866 local, const version of "arg".
9867 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9868 "cmd_name" local const.
9869 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9871 (cmdpy_completer): Make "text" and "word" parameters const.
9872 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9873 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9875 * remote.c (_initialize_remote): Make "cmd_name" local const.
9876 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9877 parameters const. Adjust.
9878 (completion_list_add_fields): Make "sym_text", "text" and "word"
9880 (struct add_name_data) <sym_text, text, word>: Make fields const.
9881 (default_make_symbol_completion_list_break_on): Make "text" and
9882 "word" parameters const. Adjust locals.
9883 (default_make_symbol_completion_list)
9884 (make_symbol_completion_list, make_symbol_completion_type)
9885 (make_symbol_completion_list_fn): Make "text" and "word"
9887 (make_file_symbol_completion_list): Make "text", "word" and
9888 "srcfile" parameters const. Adjust locals.
9889 (add_filename_to_list): Make "text" and "word" parameters const.
9890 (struct add_partial_filename_data) <text, word>: Make fields
9892 (make_source_files_completion_list): Make "text" and "word"
9894 * symtab.h (default_make_symbol_completion_list_break_on)
9895 (default_make_symbol_completion_list, make_symbol_completion_list)
9896 (make_symbol_completion_type enum type_code)
9897 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9898 (make_source_files_completion_list): Change prototype.
9899 * top.c (execute_command): Adjust to pass pointer to pointer to
9900 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9902 (set_verbose): Make "cmdname" local const.
9903 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9905 (validate_actionline): Make "line" parameter a pointer to const
9907 (encode_actions_1): Make "action_exp" local const, and adjust.
9908 (encode_actions): Adjust.
9909 (replace_comma): Delete.
9910 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9911 const, and adjust. Don't frob the action string while splitting
9912 it at commas. Instead, make a copy of each split substring in
9914 (trace_dump_command): Adjust to validate_actionline prototype
9916 * tracepoint.h (decode_agent_options, decode_agent_options)
9917 (encode_actions, validate_actionline): Change prototypes.
9918 * valprint.h (output_command): Delete declaration.
9919 (output_command_const): Declare.
9920 * value.c (function_destroyer): Cast const away in xfree call.
9922 2013-03-13 Pedro Alves <palves@redhat.com>
9924 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9925 rather than casting 'const char * const *' to 'const char **'.
9926 * ada-lex.l (processInt): Make "trailer" local const. Remove
9927 'const char **' cast.
9928 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9929 locals, and use those as strtol output pointer, instead than doing
9930 invalid casts to from 'const char **' to 'char **'.
9931 (_initialize_demangle): Remove cast.
9932 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9933 locals, and use those as strtol output pointer, instead than doing
9934 invalid casts to from 'const char **' to 'char **'.
9935 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9937 * stap-probe.c (stap_parse_register_operand)
9938 (stap_parse_single_operand): Likewise.
9940 2013-03-13 Yao Qi <yao@codesourcery.com>
9942 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9943 the last matched 'V' blcok in trace frame.
9945 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9947 * NEWS: Create a new section for the next release branch.
9948 Rename the section of the current branch, now that it has
9951 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9953 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9954 * version.in: Bump version to 7.6.50.20130312-cvs.
9956 2013-03-12 Keith Seitz <keiths@redhat.com>
9958 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9959 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9960 Remove temporary copy of input string.
9961 (mi_execute_command_wrapper): Make "cmd" const.
9962 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9963 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9965 (mi_parse): Make "cmd" const.
9967 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9969 2013-03-12 Keith Seitz <keiths@redhat.com>
9971 * ada-lang.c (ada_read_renaming_var_value): Pass const
9972 pointer to expression string to parse_exp_1.
9973 (create_excep_cond_exprs): Likewise.
9974 * ax-gdb.c (agent_eval_command_one): Likewise.
9975 (maint_agent_printf_command): Likewise.
9976 Constify much of the string handling/parsing.
9977 * breakpoint.c (set_breakpoint_condition): Pass const
9978 pointer to expression string to parse_exp_1.
9979 (update_watchpoint): Likewise.
9980 (parse_cmd_to_aexpr): Constify string handling.
9981 Pass const pointer to parse_exp_1.
9982 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9983 (find_condition_and_thread): Likewise.
9985 (watch_command_1): Make "arg" const.
9986 Constify string handling.
9987 Copy the expression string instead of changing the input
9989 (update_breakpoint_location): Pass const pointer to
9991 * eval.c (parse_and_eval_address): Make "exp" const.
9992 (parse_to_comma_and_eval): Make "expp" const.
9993 (parse_and_eval): Make "exp" const.
9994 * expression.h (parse_expression): Make argument const.
9995 (parse_exp_1): Make first argument const.
9996 * findcmd.c (parse_find_args): Treat "args" as const.
9997 * linespec.c (parse_linespec): Pass const pointer to
9998 linespec_expression_to_pc.
9999 (linespec_expression_to_pc): Make "exp_ptr" const.
10000 * parse.c (parse_exp_1): Make "stringptr" const.
10001 Make a copy of the expression to pass to parse_exp_in_context until
10002 this whole interface can be constified.
10003 (parse_expression): Make "string" const.
10004 * printcmd.c (ui_printf): Treat "arg" as const.
10005 Handle const strings.
10006 * tracepoint.c (validate_actionline): Pass const pointer to
10007 all calls to parse_exp_1.
10008 (encode_actions_1): Likewise.
10009 * value.h (parse_to_comma_and_eval): Make argument const.
10010 (parse_and_eval_address): Likewise.
10011 (parse_and_eval): Likewise.
10012 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10013 (varobj_set_value): Likewise.
10014 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10015 constify string handling.
10016 Pass const pointers to parse_and_eval_address and
10017 parse_to_comman_and_eval.
10018 * cli/cli-utils.c (skip_to_space): Rename to ...
10019 (skip_to_space_const): ... this. Handle const strings.
10020 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10021 skip_to_space_const.
10022 (skip_to_space_const): Declare.
10023 * common/format.c (parse_format_string): Make "arg" const.
10024 Handle const strings.
10025 * common/format.h (parse_format_string): Make "arg" const.
10026 * gdbserver/ax.c (ax_printf): Make "format" const.
10027 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10028 of the expression string.
10030 2013-03-12 Hui Zhu <hui@codesourcery.com>
10032 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10034 2013-03-12 Yao Qi <yao@codesourcery.com>
10035 Hui Zhu <hui@codesourcery.com>
10037 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10038 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10041 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10043 * ada-lex.l (rules): Only recognize 'thread' as a
10044 delimiter when followed by numerals, as for c-exp.y.
10045 Use new rewind_to_char function to rewind the input for
10046 expression-delimiting tokens.
10047 (rewind_to_char): New function.
10049 2013-03-11 Pedro Alves <palves@redhat.com>
10050 Jan Kratochvil <jan.kratochvil@redhat.com>
10052 * configure: Regenerate.
10053 * configure.ac (check dynamic export flag): Link python test with
10056 2013-03-11 Doug Evans <dje@google.com>
10057 Keith Seitz <keiths@redhat.com>
10059 * linespec.c (find_linespec_symbols): Call find_function_symbols
10060 first, and then call lookup_prefix_sym/find_method.
10062 2013-03-11 Pedro Alves <palves@redhat.com>
10064 * charset.c (convert_between_encodings): Don't cast between
10065 different pointer to pointer types. Instead, make the 'inp' local
10066 be of the type iconv expects.
10067 (wchar_iterate): Don't cast between different pointer to pointer
10068 types. Instead, use new pointer local of the type iconv expects.
10069 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10070 Add new local of type char pointer, and use it to get a
10071 char/string view of the byte buffer, instead of casting between
10072 pointer to pointer types.
10074 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10076 * remote.c (remote_set_trace_buffer_size): Move != operator
10077 to the start of next line to fix an ARI warning.
10079 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10081 * NEWS: Add record changes.
10083 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10085 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10086 the instruction history disassembly.
10087 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10088 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10090 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10092 * Makefile.in (SFILES): Add record-btrace.c
10093 (COMMON_OBS): Add record-btrace.o
10094 * record-btrace.c: New.
10095 * objfiles.c: Include btrace.h.
10096 (free_objfile): call btrace_free_objfile.
10098 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10100 * target.c (target_call_history, target_call_history_from,
10101 target_call_history_range): New.
10102 * target.h (target_ops) <to_call_history, to_call_history_from,
10103 to_call_history_range>: New fields.
10104 (target_call_history, target_call_history_from,
10105 target_call_history_range): New declaration.
10106 * record.c (get_call_history_modifiers, cmd_record_call_history,
10107 record_call_history_size): New.
10108 (_initialize_record): Add the "record function-call-history" command.
10109 Add "set/show record function-call-history-size" commands.
10110 * record.h (record_print_flag): New.
10112 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10114 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10115 to_insn_history_range>: New fields.
10116 (target_insn_history): New.
10117 (target_insn_history_from): New.
10118 (target_insn_history_range): New.
10119 * target.c (target_insn_history): New.
10120 (target_insn_history_from): New.
10121 (target_insn_history_range): New.
10122 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10123 (record_insn_history_size): New.
10124 (get_insn_number): New.
10125 (get_context_size): New.
10127 (get_insn_history_modifiers): New.
10128 (cmd_record_insn_history): New.
10129 (_initialize_record): Add "set/show record instruction-history-size"
10130 command. Add "record instruction-history" command.
10132 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10134 * record.h (record_disconnect): New.
10135 (record_detach): New.
10136 (record_mourn_inferior): New.
10137 (record_kill): New.
10138 * record-full.c (record_disconnect, record_detach,
10139 record_mourn_inferior, record_kill): Move to...
10140 * record.c: ...here.
10142 (record_stop): New.
10143 (record_unpush): New.
10144 (cmd_record_stop): Call record_stop. Replace unpush_target
10145 call with record_unpush call.
10146 (record_disconnect, record_detach): Assert that the target
10147 is of record stratum. Call record_unpush, record_stop, and
10149 (record_mourn_inferior, record_kill): Assert that the target
10150 is of record stratum. Call record_unpush and DEBUG.
10152 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10154 * record-full.h, record-full.c (record_memory_query): Rename
10156 (record_full_memory_query): ...this. Update all users.
10157 (record_arch_list_add_reg): Rename to ...
10158 (record_full_arch_list_add_reg): ...this. Update all users.
10159 (record_arch_list_add_mem): Rename to ...
10160 (record_full_arch_list_add_mem): ...this. Update all users.
10161 (record_arch_list_add_end): Rename to ...
10162 (record_full_arch_list_add_end): ...this. Update all users.
10163 (record_gdb_operation_disable_set): Rename to ...
10164 (record_full_gdb_operation_disable_set): ...this.
10167 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10169 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10170 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10171 (RECORD_IS_REPLAY): Renamed to ...
10172 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10173 (RECORD_FILE_MAGIC): Renamed to ...
10174 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10175 (record_mem_entry): Renamed to ...
10176 (record_full_mem_entry): ... this. Updated all users.
10177 (record_reg_entry): Renamed to ...
10178 (record_full_reg_entry): ... this. Updated all users.
10179 (record_end_entry): Renamed to ...
10180 (record_full_end_entry): ... this. Updated all users.
10181 (record_type) <record_end, record_reg, record_mem>: Renamed
10183 (record_full_type) <record_full_end, record_full_reg,
10184 record_full_mem>: ... this. Updated all users.
10185 (record_entry): Renamed to ...
10186 (record_full_entry): ... this. Updated all users.
10187 (record_core_buf_entry): Renamed to ...
10188 (record_full_core_buf_entry): ... this. Updated all users.
10189 (record_core_regbuf): Renamed to ...
10190 (record_full_core_regbuf): ... this. Updated all users.
10191 (record_core_start): Renamed to ...
10192 (record_full_core_start): ... this. Updated all users.
10193 (record_core_end): Renamed to ...
10194 (record_full_core_end): ... this. Updated all users.
10195 (record_core_buf_list): Renamed to ...
10196 (record_full_core_buf_list): ... this. Updated all users.
10197 (record_first): Renamed to ...
10198 (record_full_first): ... this. Updated all users.
10199 (record_list): Renamed to ...
10200 (record_full_list): ... this. Updated all users.
10201 (record_arch_list_head): Renamed to ...
10202 (record_full_arch_list_head): ... this. Updated all users.
10203 (record_arch_list_tail): Renamed to ...
10204 (record_full_arch_list_tail): ... this. Updated all users.
10205 (record_stop_at_limit): Renamed to ...
10206 (record_full_stop_at_limit): ... this. Updated all users.
10207 (record_insn_max_num): Renamed to ...
10208 (record_full_insn_max_num): ... this. Updated all users.
10209 (record_insn_num): Renamed to ...
10210 (record_full_insn_num): ... this. Updated all users.
10211 (record_insn_count): Renamed to ...
10212 (record_full_insn_count): ... this. Updated all users.
10213 (record_ops): Renamed to ...
10214 (record_full_ops): ... this. Updated all users.
10215 (record_core_ops): Renamed to ...
10216 (record_full_core_ops): ... this. Updated all users.
10217 (set_record_cmdlist): Renamed to ...
10218 (set_record_full_cmdlist): ... this. Updated all users.
10219 (show_record_cmdlist): Renamed to ...
10220 (show_record_full_cmdlist): ... this. Updated all users.
10221 (record_cmdlist): Renamed to ...
10222 (record_full_cmdlist): ... this. Updated all users.
10223 (record_beneath_to_resume_ops): Renamed to ...
10224 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10225 (record_beneath_to_resume): Renamed to ...
10226 (record_full_beneath_to_resume): ... this. Updated all users.
10227 (record_beneath_to_wait_ops): Renamed to ...
10228 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10229 (record_beneath_to_wait): Renamed to ...
10230 (record_full_beneath_to_wait): ... this. Updated all users.
10231 (record_beneath_to_store_registers_ops): Renamed to ...
10232 (record_full_beneath_to_store_registers_ops): ... this.
10234 (record_beneath_to_store_registers): Renamed to ...
10235 (record_full_beneath_to_store_registers): ... this.
10237 (record_beneath_to_xfer_partial_ops): Renamed to ...
10238 (record_full_beneath_to_xfer_partial_ops): ... this.
10240 (record_beneath_to_xfer_partial): Renamed to ...
10241 (record_full_beneath_to_xfer_partial): ... this.
10243 (record_beneath_to_insert_breakpoint): Renamed to ...
10244 (record_full_beneath_to_insert_breakpoint): ... this.
10246 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10247 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10249 (record_beneath_to_stopped_data_address): Renamed to ...
10250 (record_full_beneath_to_stopped_data_address): ... this.
10252 (record_beneath_to_async): Renamed to ...
10253 (record_full_beneath_to_async): ... this. Updated all users.
10254 (record_goto_insn): Renamed to ...
10255 (record_full_goto_insn): ... this. Updated all users.
10256 (record_save): Renamed to ...
10257 (record_full_save): ... this. Updated all users.
10258 (record_reg_alloc): Renamed to ...
10259 (record_full_reg_alloc): ... this. Updated all users.
10260 (record_reg_release): Renamed to ...
10261 (record_full_reg_release): ... this. Updated all users.
10262 (record_mem_alloc): Renamed to ...
10263 (record_full_mem_alloc): ... this. Updated all users.
10264 (record_mem_release): Renamed to ...
10265 (record_full_mem_release): ... this. Updated all users.
10266 (record_end_alloc): Renamed to ...
10267 (record_full_end_alloc): ... this. Updated all users.
10268 (record_end_release): Renamed to ...
10269 (record_full_end_release): ... this. Updated all users.
10270 (record_entry_release): Renamed to ...
10271 (record_full_entry_release): ... this. Updated all users.
10272 (record_list_release): Renamed to ...
10273 (record_full_list_release): ... this. Updated all users.
10274 (record_list_release_following): Renamed to ...
10275 (record_full_list_release_following): ... this.
10277 (record_list_release_first): Renamed to ...
10278 (record_full_list_release_first): ... this. Updated all users.
10279 (record_arch_list_add): Renamed to ...
10280 (record_full_arch_list_add): ... this. Updated all users.
10281 (record_get_loc): Renamed to ...
10282 (record_full_get_loc): ... this. Updated all users.
10283 (record_check_insn_num): Renamed to ...
10284 (record_full_check_insn_num): ... this. Updated all users.
10285 (record_arch_list_cleanups): Renamed to ...
10286 (record_full_arch_list_cleanups): ... this. Updated all users.
10287 (record_message): Renamed to ...
10288 (record_full_message): ... this. Updated all users.
10289 (record_message_wrapper): Renamed to ...
10290 (record_full_message_wrapper): ... this. Updated all users.
10291 (record_message_wrapper_safe): Renamed to ...
10292 (record_full_message_wrapper_safe): ... this. Updated all users.
10293 (record_gdb_operation_disable): Renamed to ...
10294 (record_full_gdb_operation_disable): ... this. Updated all users.
10295 (record_hw_watchpoint): Renamed to ...
10296 (record_full_hw_watchpoint): ... this. Updated all users.
10297 (record_exec_insn): Renamed to ...
10298 (record_full_exec_insn): ... this. Updated all users.
10299 (record_restore): Renamed to ...
10300 (record_full_restore): ... this. Updated all users.
10301 (record_async_inferior_event_token): Renamed to ...
10302 (record_full_async_inferior_event_token): ... this.
10304 (record_async_inferior_event_handler): Renamed to ...
10305 (record_full_async_inferior_event_handler): ... this.
10307 (record_core_open_1): Renamed to ...
10308 (record_full_core_open_1): ... this. Updated all users.
10309 (record_open_1): Renamed to ...
10310 (record_full_open_1): ... this. Updated all users.
10311 (record_open): Renamed to ...
10312 (record_full_open): ... this. Updated all users.
10313 (record_close): Renamed to ...
10314 (record_full_close): ... this. Updated all users.
10315 (record_resume_step): Renamed to ...
10316 (record_full_resume_step): ... this. Updated all users.
10317 (record_resumed): Renamed to ...
10318 (record_full_resumed): ... this. Updated all users.
10319 (record_execution_dir): Renamed to ...
10320 (record_full_execution_dir): ... this. Updated all users.
10321 (record_resume): Renamed to ...
10322 (record_full_resume): ... this. Updated all users.
10323 (record_get_sig): Renamed to ...
10324 (record_full_get_sig): ... this. Updated all users.
10325 (record_sig_handler): Renamed to ...
10326 (record_full_sig_handler): ... this. Updated all users.
10327 (record_wait_cleanups): Renamed to ...
10328 (record_full_wait_cleanups): ... this. Updated all users.
10329 (record_wait_1): Renamed to ...
10330 (record_full_wait_1): ... this. Updated all users.
10331 (record_wait): Renamed to ...
10332 (record_full_wait): ... this. Updated all users.
10333 (record_stopped_by_watchpoint): Renamed to ...
10334 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10335 (record_disconnect): Renamed to ...
10336 (record_full_disconnect): ... this. Updated all users.
10337 (record_detach): Renamed to ...
10338 (record_full_detach): ... this. Updated all users.
10339 (record_mourn_inferior): Renamed to ...
10340 (record_full_mourn_inferior): ... this. Updated all users.
10341 (record_kill): Renamed to ...
10342 (record_full_kill): ... this. Updated all users.
10343 (record_stopped_data_address): Renamed to ...
10344 (record_full_stopped_data_address): ... this. Updated all users.
10345 (record_registers_change): Renamed to ...
10346 (record_full_registers_change): ... this. Updated all users.
10347 (record_store_registers): Renamed to ...
10348 (record_full_store_registers): ... this. Updated all users.
10349 (record_xfer_partial): Renamed to ...
10350 (record_full_xfer_partial): ... this. Updated all users.
10351 (record_breakpoint): Renamed to ...
10352 (record_full_breakpoint): ... this. Updated all users.
10353 (record_breakpoint_p): Renamed to ...
10354 (record_full_breakpoint_p): ... this. Updated all users.
10355 (record_breakpoints): Renamed to ...
10356 (record_full_breakpoints): ... this. Updated all users.
10357 (record_sync_record_breakpoints): Renamed to ...
10358 (record_full_sync_record_breakpoints): ... this.
10360 (record_init_record_breakpoints): Renamed to ...
10361 (record_full_init_record_breakpoints): ... this.
10363 (record_insert_breakpoint): Renamed to ...
10364 (record_full_insert_breakpoint): ... this. Updated all users.
10365 (record_remove_breakpoint): Renamed to ...
10366 (record_full_remove_breakpoint): ... this. Updated all users.
10367 (record_can_execute_reverse): Renamed to ...
10368 (record_full_can_execute_reverse): ... this. Updated all users.
10369 (record_get_bookmark): Renamed to ...
10370 (record_full_get_bookmark): ... this. Updated all users.
10371 (record_goto_bookmark): Renamed to ...
10372 (record_full_goto_bookmark): ... this. Updated all users.
10373 (record_async): Renamed to ...
10374 (record_full_async): ... this. Updated all users.
10375 (record_can_async_p): Renamed to ...
10376 (record_full_can_async_p): ... this. Updated all users.
10377 (record_is_async_p): Renamed to ...
10378 (record_full_is_async_p): ... this. Updated all users.
10379 (record_execution_direction): Renamed to ...
10380 (record_full_execution_direction): ... this. Updated all users.
10381 (record_info): Renamed to ...
10382 (record_full_info): ... this. Updated all users.
10383 (record_delete): Renamed to ...
10384 (record_full_delete): ... this. Updated all users.
10385 (record_is_replaying): Renamed to ...
10386 (record_full_is_replaying): ... this. Updated all users.
10387 (record_goto_entry): Renamed to ...
10388 (record_full_goto_entry): ... this. Updated all users.
10389 (record_goto_begin): Renamed to ...
10390 (record_full_goto_begin): ... this. Updated all users.
10391 (record_goto_end): Renamed to ...
10392 (record_full_goto_end): ... this. Updated all users.
10393 (record_goto): Renamed to ...
10394 (record_full_goto): ... this. Updated all users.
10395 (init_record_ops): Renamed to ...
10396 (init_record_full_ops): ... this. Updated all users.
10397 (record_core_resume): Renamed to ...
10398 (record_full_core_resume): ... this. Updated all users.
10399 (record_core_kill): Renamed to ...
10400 (record_full_core_kill): ... this. Updated all users.
10401 (record_core_fetch_registers): Renamed to ...
10402 (record_full_core_fetch_registers): ... this. Updated all users.
10403 (record_core_prepare_to_store): Renamed to ...
10404 (record_full_core_prepare_to_store): ... this. Updated all users.
10405 (record_core_store_registers): Renamed to ...
10406 (record_full_core_store_registers): ... this. Updated all users.
10407 (record_core_xfer_partial): Renamed to ...
10408 (record_full_core_xfer_partial): ... this. Updated all users.
10409 (record_core_insert_breakpoint): Renamed to ...
10410 (record_full_core_insert_breakpoint): ... this. Updated all users.
10411 (record_core_remove_breakpoint): Renamed to ...
10412 (record_full_core_remove_breakpoint): ... this. Updated all users.
10413 (record_core_has_execution): Renamed to ...
10414 (record_full_core_has_execution): ... this. Updated all users.
10415 (init_record_core_ops): Renamed to ...
10416 (init_record_full_core_ops): ... this. Updated all users.
10417 (cmd_record_restore): Renamed to ...
10418 (cmd_record_full_restore): ... this. Updated all users.
10419 (record_save_cleanups): Renamed to ...
10420 (record_full_save_cleanups): ... this. Updated all users.
10421 (cmd_record_start): Renamed to ...
10422 (cmd_record_full_start): ... this. Updated all users.
10423 (set_record_insn_max_num): Renamed to ...
10424 (set_record_full_insn_max_num): ... this. Updated all users.
10425 (set_record_command): Renamed to ...
10426 (set_record_full_command): ... this. Updated all users.
10427 (show_record_command): Renamed to ...
10428 (show_record_full_command): ... this. Updated all users.
10429 (_initialize_record): Renamed to ...
10430 (_initialize_record_full): ... this. Updated all users.
10432 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10434 * record.h: Split into this and ...
10435 * record-full.h: ... this.
10436 * record.c: Split into this and ...
10437 * record-full.c: ... this.
10438 * target.h (target_ops): Add new fields to_info_record,
10439 to_save_record, to_delete_record, to_record_is_replaying,
10440 to_goto_record_begin, to_goto_record_end, to_goto_record.
10441 (target_info_record): New.
10442 (target_save_record): New.
10443 (target_supports_delete_record): New.
10444 (target_delete_record): New.
10445 (target_record_is_replaying): New.
10446 (target_goto_record_begin): New.
10447 (target_goto_record_end): New.
10448 (target_goto_record): New.
10449 * target.c (target_info_record): New.
10450 (target_save_record): New.
10451 (target_supports_delete_record): New.
10452 (target_delete_record): New.
10453 (target_record_is_replaying): New.
10454 (target_goto_record_begin): New.
10455 (target_goto_record_end): New.
10456 (target_goto_record): New.
10457 * record.h: Declare struct cmd_list_element.
10458 (record_cmdlist): New declaration.
10459 (set_record_cmdlist): New declaration.
10460 (show_record_cmdlist): New declaration.
10461 (info_record_cmdlist): New declaration.
10462 (cmd_record_goto): New declaration.
10463 * record.c: Remove unnecessary includes.
10464 Include inferior.h.
10465 (cmd_record_goto): Remove declaration.
10466 (record_cmdlist): Now extern. Initialize.
10467 (set_record_cmdlist): Now extern. Initialize.
10468 (show_record_cmdlist): Now extern. Initialize.
10469 (info_record_cmdlist): Now extern. Initialize.
10470 (find_record_target): New.
10471 (require_record_target): New.
10472 (cmd_record_start): Update.
10473 (cmd_record_delete): Remove target-specific code.
10474 Call target_delete_record.
10475 (cmd_record_stop): Unpush any record target.
10476 (set_record_insn_max_num): Move to record-full.c
10477 (set_record_command): Add comment.
10478 (show_record_command): Add comment.
10479 (info_record_command): Update comment.
10480 Remove target-specific code.
10481 Call the record target's to_info_record.
10482 (cmd_record_start): New.
10483 (cmd_record_goto): Now extern.
10484 Remove target-specific code.
10485 Call target_goto_begin, target_goto_end, or target_goto.
10486 (_initialize_record): Move record target ops initialization to
10488 Change "record" command help text.
10489 Move "record restore", "record set", and "record show" commands to
10491 * Makefile.in (SFILES): Add record-full.c.
10492 (HFILES_NO_SRCDIR): Add record-full.h.
10493 (COMMON_OBS): Add record-full.o.
10494 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10495 * arm-tdep.c: Include record-full.h.
10496 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10497 * i386-tdep.c: Include record-full.h.
10498 * infrun.c: Include record-full.h.
10499 * linux-record.c: Include record-full.h.
10500 * moxie-tdep.c: Include record-full.h.
10501 * record-full.c: Include record-full.h.
10502 Change module comment.
10503 (set_record_full_cmdlist): New.
10504 (show_record_full_cmdlist): New.
10505 (record_full_cmdlist): New.
10506 (record_goto_insn): New declaration.
10507 (record_save): New declaration.
10508 (record_check_insn_num): Change query string.
10509 (record_info): New.
10510 (record_delete): New.
10511 (record_is_replaying): New.
10512 (record_goto_entry): New.
10513 (record_goto_begin): New.
10514 (record_goto_end): New.
10515 (record_goto): New.
10516 (init_record_ops): Update.
10517 (init_record_core_ops): Update.
10518 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10519 (cmd_record_start): New.
10520 (set_record_insn_max_num): Moved from record.c
10521 (set_record_full_command): New.
10522 (show_record_full_command): New.
10523 (_initialize_record_full): New.
10525 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10527 * target.h (add_deprecated_target_alias): New.
10528 * target.c (add_deprecated_target_alias): New.
10530 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10532 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10534 (linux_supports_btrace): Add kernel and
10536 (kernel_supports_btrace): New function.
10537 (cpu_supports_btrace): New function.
10538 (intel_supports_btrace): New function.
10540 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10542 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10543 * remote.c: Include btrace.h.
10544 (struct btrace_target_info): New struct.
10545 (remote_supports_btrace): New function.
10546 (send_Qbtrace): New function.
10547 (remote_enable_btrace): New function.
10548 (remote_disable_btrace): New function.
10549 (remote_teardown_btrace): New function.
10550 (remote_read_btrace): New function.
10551 (init_remote_ops): Add btrace ops.
10552 (enum <unnamed>): Add btrace packets.
10553 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10554 (_initialize_remote): Add packet configuration for branch tracing.
10556 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10558 * features/btrace.dtd: New file.
10559 * Makefile.in (XMLFILES): Add btrace.dtd.
10560 * btrace.h (parse_xml_btrace): New declaration.
10561 * btrace.c: Include xml-support.h.
10562 (parse_xml_btrace): New function.
10563 (parse_xml_btrace_block): New function.
10564 (block_attributes): New struct.
10565 (btrace_attributes): New struct.
10566 (btrace_children): New struct.
10567 (btrace_elements): New struct.
10569 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10571 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10572 (amd64_linux_enable_btrace): New.
10573 (amd64_linux_disable_btrace): New.
10574 (amd64_linux_teardown_btrace): New.
10575 (_initialize_amd64_linux_nat): Initialize btrace ops.
10576 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10577 (i386_linux_enable_btrace): New.
10578 (i386_linux_disable_btrace): New.
10579 (i386_linux_teardown_btrace): New.
10580 (_initialize_i386_linux_nat): Initialize btrace ops.
10581 * config/i386/linux.mh: Add linux-btrace.o.
10582 * config/i386/linux64.mh: Add linux-btrace.o.
10584 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10586 * common/linux_btrace.h: New file.
10587 * common/linux_btrace.c: New file.
10588 * Makefile.in (SFILES): Add btrace.c.
10589 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10590 (COMMON_OBS): Add btrace.o.
10591 (linux-btrace.o): New rule.
10593 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10595 * target.h: Include btrace.h.
10596 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10597 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10598 * target.c (target_supports_btrace): New function.
10599 (target_enable_btrace): New function.
10600 (target_disable_btrace): New function.
10601 (target_teardown_btrace): New function.
10602 (target_read_btrace): New function.
10603 * btrace.h: New file.
10604 * btrace.c: New file.
10605 * Makefile.in: Add btrace.c.
10606 * gdbthread.h: Include btrace.h.
10607 (struct thread_info): Add btrace field.
10608 * thread.c: Include btrace.h.
10609 (clear_thread_inferior_resources): Call target_teardown_btrace.
10610 * common/btrace-common.h: New file.
10612 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10614 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10615 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10616 kill_status to outer block.
10618 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10620 Fix entry-values if the callee called a noreturn function.
10621 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10622 get_frame_address_in_block. Add new comment.
10624 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10626 Fix entry-values in C++ across CUs.
10627 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10628 lookup_minimal_symbol. Add a comment.
10630 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10631 DW_AT_linkage_name.
10633 2013-03-08 Yao Qi <yao@codesourcery.com>
10635 * tracepoint.c (_initialize_tracepoint): Indent the code.
10637 2013-03-08 Pedro Alves <palves@redhat.com>
10639 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10640 (parse_find_args, find_command): Change type of pattern buffer
10641 locals to 'gdb_byte *'.
10643 2013-03-08 Stan Shebs <stan@codesourcery.com>
10644 Hafiz Abid Qadeer <abidh@codesourcery.com>
10646 * NEWS: Mention set and show trace-buffer-size commands.
10647 Mention new packet.
10648 * target.h (struct target_ops): New method
10649 to_set_trace_buffer_size.
10650 (target_set_trace_buffer_size): New macro.
10651 * target.c (update_current_target): Set up new method.
10652 * tracepoint.c (trace_buffer_size): New global.
10653 (start_tracing): Send it to the target.
10654 (set_trace_buffer_size): New function.
10655 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10656 * remote.c (remote_set_trace_buffer_size): New function.
10657 (_initialize_remote): Use it.
10658 (QTBuffer:size) New remote command.
10659 (PACKET_QTBuffer_size): New enum.
10660 (remote_protocol_features): Add an entry for
10661 PACKET_QTBuffer_size.
10663 2013-03-08 Tom Tromey <tromey@redhat.com>
10665 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10668 2013-03-07 Pedro Alves <palves@redhat.com>
10670 * target.c (target_read_stralloc, target_fileio_read_alloc):
10671 *Cast pointer to 'gdb_byte *' in target call.
10673 2013-03-07 Pedro Alves <palves@redhat.com>
10675 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10678 2013-03-07 Keith Seitz <keiths@redhat.com>
10680 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10681 (trace_pass_command): Likewise.
10682 * cli/cli-cmds.c: Include cli/cli-utils.h.
10683 (source_command): Use skip-spaces.
10684 (disassemble_command): Likewise.
10685 * findcmd.c: Include cli/cli-utils.h.
10686 (parse_find_args): Use skip_spaces.
10687 * go32-nat.c: Include cli/cli-utils.h.
10688 (go32_sldt): Use skip_spaces.
10689 (go32_sgdt): Likewise.
10690 (go32_sidt): Likewise.
10691 (go32_pde): Likewise.
10692 (go32_pte): Likewise.
10693 (go32_pte_for_address): Likewise.
10694 * infcmd.c: Include cli/cli-utils.h.
10695 (registers_info): Use skip_spaces.
10696 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10697 (linux_info_proc): Likewise.
10698 * linux-thread-db.c: Include cli/cli-utils.h.
10699 (info_auto_load_libthread_db): Use skip_spaces_const.
10700 * m32r-rom.c: Include cli/cli-utils.h.
10701 (m32r_upload_command): Use skip_spaces.
10702 * maint.c: Include cli/cli-utils.h.
10703 (maintenance_translate_address): Use skip_spaces.
10704 * mi/mi-parse.c: Include cli/cli-utils.h.
10705 (mi_parse_argv): Use skip_spaces.
10706 (mi_parse): Likewise.
10707 * minsyms.c: Include cli/cli-utils.h.
10708 (msymbol_hash_iw): Use skip_spaces_const.
10709 * objc-lang.c: Include cli/cli-utils.h.
10710 (parse_selector): Use skip_spaces.
10711 (parse_method): Likewise.
10712 * python/python.c: Include cli/cli-utils.h.
10713 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10714 (python_command)[HAVE_PYTHON]: Likewise.
10715 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10716 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10717 (m32r_load): Use skip_spaces.
10718 * serial.c: Include cli/cli-utils.h.
10719 (serial_open): Use skip_spaces_const.
10720 * stack.c: Include cli/cli-utils.h.
10721 (parse_frame_specification_1): Use skip_spaces_const.
10722 * symfile.c: Include cli/cli-utils.h.
10723 (set_ext_lang_command): Use skip_spaces.
10724 * symtab.c: Include cli/cli-utils.h.
10725 (rbreak_command): Use skip_spaces.
10726 * thread.c (thread_name_command): Use skip_spaces.
10727 * tracepoint.c (validate_actionline): Use skip_spaces.
10728 (encode_actions_1): Likewise.
10729 (trace_find_range_command): Likewise.
10730 (trace_find_outside_command): Likewise.
10731 (trace_dump_actions): Likewise.
10733 2013-03-07 Pedro Alves <palves@redhat.com>
10735 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10736 * expprint.c (print_subexp_standard): Likewise.
10737 * utils.c (host_char_to_target): Likewise.
10738 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10739 * varobj.c (value_get_print_value): Change type of local to char*.
10740 Cast it gdb_byte * in call to language printer.
10742 2013-03-07 Pedro Alves <palves@redhat.com>
10744 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10746 (make_wchar_iterator): Remove cast to char*.
10747 (wchar_iterate): Change type of local.
10749 2013-03-07 Pedro Alves <palves@redhat.com>
10751 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10752 for 'regcache->register_status'.
10754 2013-03-07 Pedro Alves <palves@redhat.com>
10756 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10759 2013-03-07 Pedro Alves <palves@redhat.com>
10761 * stap-probe.c (handle_stap_probe): Add cast to char*.
10763 2013-03-07 Pedro Alves <palves@redhat.com>
10765 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10766 RECORD_MSGRCV>: Pass a signed variable to
10767 regcache_raw_read_signed, instead of an unsigned one.
10769 2013-03-07 Pedro Alves <palves@redhat.com>
10771 * remote-notif.c (notif_debug): Change type to int.
10772 * remote-notif.h (notif_debug): Likewise.
10774 2013-03-07 Pedro Alves <palves@redhat.com>
10776 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10778 2013-03-07 Pedro Alves <palves@redhat.com>
10780 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10781 * remote.h (hex2bin, bin2hex): ... here.
10782 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10784 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10786 * utils.c (initialize_utils): Improve doc strings of "set/show
10787 width", "set/show height", and "set/show pagination".
10789 2013-03-06 Keith Seitz <keiths@redhat.com>
10791 * ax-gdb.c (gen_printf): Make FORMAT const.
10792 * ax-gdb.h (gen_printf): Likewise.
10793 * ax-general.c (ax_string): Make STR const.
10794 * ax.h (ax_string): Likewise.
10796 2013-03-06 Doug Evans <dje@google.com>
10798 * elfread.c (elf_symfile_read): Move debugging printf to more
10801 2013-03-06 Pedro Alves <palves@redhat.com>
10803 * python/py-utils.c (target_string_to_unicode): Delete function.
10804 * python/python-internal.h (target_string_to_unicode): Delete
10807 2013-03-06 Pierre Muller <muller@sourceware.org>
10809 * linespec.c (get_current_search_block): ARI fix, use (void)
10810 for empty parameter list.
10812 2013-03-05 Doug Evans <dje@google.com>
10814 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10815 of old ada_lookup_symbol_list. In !full_search case, don't
10816 search superblocks.
10817 (ada_lookup_symbol_list): Delete arg full_search, all callers
10818 updated. Call ada_lookup_symbol_list_worker.
10819 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10820 * ada-lang.h (ada_lookup_symbol_list): Update.
10821 * language.h (language_defn): Update comment for
10822 la_iterate_over_symbols.
10823 * linespec.c (iterate_over_file_blocks): New function.
10824 (iterate_over_all_matching_symtabs): Call it.
10825 (lookup_prefix_sym): Ditto.
10826 (get_current_search_block): New function.
10827 (get_search_block): Delete.
10828 (find_label_symbols): Call get_current_search_block.
10829 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10830 * symtab.c (iterate_over_symbols): Don't search superblocks.
10832 2013-03-05 Yao Qi <yao@codesourcery.com>
10834 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10835 parameter VAR's type from "unsigned int" to "int".
10836 * command.h (var_zuinteger_unlimited): Update its comments.
10837 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10839 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10841 * NEWS: Mention new target x86_64-*-cygwin*.
10843 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10845 * configure.host: Add x86_64-*-cygwin* as host.
10846 * configure.tgt: Add x86_64-*-cygwin* as target.
10847 * config/i386/cygwin64.mh: New file.
10849 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10851 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10853 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10855 * linespec.c (struct linespec_canonical_name): New.
10856 (struct linespec_state): Change canonical_names type to it.
10857 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10858 xrealloc element size. Initialize the different CANONICAL fields.
10859 (canonical_to_fullform): New.
10860 (filter_results): Use it. Add variables canonical, fullform and
10862 (struct decode_line_2_item, decode_line_2_compare_items): New.
10863 (decode_line_2): Remove variables iter and item_names, add variables
10864 items and items_count. Modify the code for these new variables.
10866 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10868 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10869 calling do_cleanup.
10871 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10873 * tracepoint.c (build_traceframe_info): Add code for byte order.
10875 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10877 * v850-tdep.c: (v850e2_register_name): Revise system register
10878 names to match current V850E2M architecture specifications.
10879 Update register number enum comments too.
10881 2013-03-01 Jiong Wang <jiwang@tilera.com>
10882 Pedro Alves <palves@redhat.com>
10884 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10886 (tilegx_skip_prologue): Limit prologue analysis to section end.
10888 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10890 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10893 2013-03-01 Pedro Alves <palves@redhat.com>
10895 Use gdb_byte for bytes from the program being debugged.
10897 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10898 Change type of local 'buf' to gdb_byte.
10899 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10900 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10901 * cris-tdep.c (cris_sigcontext_addr)
10902 (cris_sigtramp_frame_unwind_cache): Likewise.
10903 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10904 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10906 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10907 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10908 (hppa32_hpux_search_dummy_call_sequence)
10909 (hppa_hpux_supply_save_state): Likewise.
10910 * hppa-linux-tdep.c (insns_match_pattern)
10911 (hppa_linux_find_global_pointer): Likewise.
10912 * hppa-tdep.c (hppa_in_function_epilogue_p)
10913 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10914 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10915 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10916 (i386fbsd_collect_uthread): Likewise.
10917 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10918 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10919 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10920 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10921 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10922 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10923 (ia64_libunwind_frame_prev_register)
10924 (ia64_libunwind_sigtramp_frame_this_id)
10925 (ia64_find_global_pointer_from_dynamic_section)
10926 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10927 (ia64_unwind_pc): Likewise.
10928 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10929 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10930 (m68hc11_extract_return_value): Likewise.
10931 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10932 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10933 (mep_get_insn, mep_push_dummy_call): Likewise.
10934 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10935 (mips_linux_in_dynsym_stub): Likewise.
10936 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10937 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10938 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10940 * remote-mips.c (mips_set_register): Likewise.
10941 * remote-sim.c (gdbsim_fetch_register): Likewise.
10942 * score-tdep.c (score7_fetch_inst): Change type of parameter
10943 'memblock' and local 'buf' to gdb_byte.
10944 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10945 Change type of local 'buf' to gdb_byte. Adjust.
10946 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10948 (score7_analyze_prologue): Change type of 'memblock' and
10949 'memblock_ptr' locals to gdb_byte*.
10950 * sh64-tdep.c (sh64_extract_return_value)
10951 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10952 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10953 * solib-pa64.c (pa64_solib_create_inferior_hook)
10954 (pa64_open_symbol_file_object): Remove local 'buf'.
10955 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10956 (som_open_symbol_file_object): Likewise.
10957 * solib-spu.c (spu_current_sos): Likewise.
10958 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10959 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10960 (spu_store_registers): Likewise.
10961 * target.c (debug_print_register): Likewise.
10962 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10963 * xstormy16-tdep.c (xstormy16_store_return_value)
10964 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10965 (xstormy16_find_jmp_table_entry): Likewise.
10967 2013-03-01 Jiong Wang <jiwang@tilera.com>
10969 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10970 (tilegx_gdbarch_init): Install it.
10972 2013-02-28 Tom Tromey <tromey@redhat.com>
10974 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10977 2013-02-28 Doug Evans <dje@google.com>
10979 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10980 * python/python.c (gdbpy_find_pc_line): Ditto.
10982 2013-02-28 Tom Tromey <tromey@redhat.com>
10984 * contrib/excheck.py: New file.
10985 * contrib/exsummary.py: New file.
10986 * contrib/gcc-with-excheck: New file.
10988 2013-02-28 Tom Tromey <tromey@redhat.com>
10990 * python/python.c (gdbpy_print_stack): Call begin_line and
10991 fprintf_filtered inside TRY_CATCH.
10993 2013-02-28 Tom Tromey <tromey@redhat.com>
10995 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10998 2013-02-28 Tom Tromey <tromey@redhat.com>
11000 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11001 frame_object_to_frame_info inside TRY_CATCH.
11003 2013-02-28 Tom Tromey <tromey@redhat.com>
11005 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11008 2013-02-28 Tom Tromey <tromey@redhat.com>
11010 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11012 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11014 * windows-nat.c: Throughout, fix format strings and casts of
11015 printf-like functions to avoid type related warnings on all
11017 (handle_output_debug_string): Fetch context information address
11018 from debug string using string_to_core_addr.
11020 2013-02-27 Jiong Wang <jiwang@tilera.com>
11022 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11023 * regformats/reg-tilegx32.dat: New.
11025 2013-02-27 Jiong Wang <jiwang@tilera.com>
11027 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11029 2013-02-27 Jiong Wang <jiwang@tilera.com>
11031 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11033 2013-02-27 Yao Qi <yao@codesourcery.com>
11034 Pedro Alves <palves@redhat.com>
11036 * tracepoint.c (tfile_trace_find): For tfind
11037 pc/tp/range/outside, look for the next trace frame instead of
11038 always starting from frame 0.
11040 2013-02-26 Anthony Green <green@moxielogic.com>
11042 * configure.tgt: Add support for moxie-*-rtems* target.
11044 2013-02-25 Pedro Alves <palves@redhat.com>
11046 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11049 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11051 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11052 if $fp is used as the virtual frame pointer.
11054 2013-02-23 Alan Modra <amodra@gmail.com>
11056 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11058 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11059 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11060 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11061 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11063 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11066 * elfread.c (build_id_bfd_get): Make the return type const.
11067 (build_id_verify): Make the check parameter const.
11068 (build_id_to_debug_filename): Make the build_id parameter and variable
11070 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11072 2013-02-21 Alan Modra <amodra@gmail.com>
11074 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11076 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11078 Add a new method 'disassemble' to gdb.Architecture class.
11079 * python/py-arch.c (archpy_disassmble): Implementation of the
11080 new method gdb.Architecture.disassemble.
11081 (arch_object_methods): Add entry for the new method.
11083 2013-02-20 Jiong Wang <jiwang@tilera.com>
11085 * MAINTAINERS (Write After Approval): Add myself to the list.
11087 2013-02-19 Pedro Alves <palves@redhat.com>
11089 Garbage collect 'struct monitor_ops'::load_routine.
11091 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11092 * monitor.c (monitor_load): No longer call
11093 current_monitor->load_routine.
11094 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11095 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11096 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11098 2013-02-19 Pedro Alves <palves@redhat.com>
11102 Harmonize with generic_load.
11104 * monitor.c: Include "readline/readline.h".
11105 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11106 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11107 long/strtol for the 'load_offset' local. Error out if no argument
11108 is given or if too many arguments are given. Tilde expand the
11109 passed in file name.
11111 2013-02-19 Kai Tietz <ktietz@redhat.com>
11114 * symfile.c (load_section_data): Change type of load_offset
11116 (generic_load): User strtoulst instead of strtoul for conversion
11119 2013-02-19 Jiong Wang <jiwang@tilera.com>
11121 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11122 for return address, "lr" register, saved on stack.
11123 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11124 after we invoke tilegx_analyze_prologue.
11126 2013-02-19 Jiong Wang <jiwang@tilera.com>
11128 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11130 2013-02-19 Jiong Wang <jiwang@tilera.com>
11132 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11134 2013-02-19 Jiong Wang <jiwang@tilera.com>
11136 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11137 (tilegx_write_pc): New function.
11138 (tilegx_cannot_reference_register): Return zero if REGNO
11139 is TILEGX_FAULTNUM_REGNUM.
11140 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11141 (tilegx_register_name): Add handling of "faultnum" register.
11142 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11143 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11144 handling of TILEGX_FAULTNUM_REGNUM.
11145 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11147 2013-02-19 Jiong Wang <jiwang@tilera.com>
11149 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11150 should be aligned to 64bit.
11152 2013-02-19 Kai Tietz <ktietz@redhat.com>
11154 * windows-nat.c (windows_xfer_memory): Fix debug-output
11157 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11159 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11160 Don't check DSP register number if HAVE_DSP is not set.
11162 2013-02-19 Alan Modra <amodra@gmail.com>
11164 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11165 throughout file instead.
11166 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11167 Don't xmalloc return value.
11168 (build_id_verify): Similarly. Don't xfree.
11169 (build_id_to_debug_filename): Update.
11170 (find_separate_debug_file_by_buildid): Update, don't xfree.
11172 2013-02-18 Tom Tromey <tromey@redhat.com>
11175 * dwarf2read.c (read_subrange_type): Use result of
11178 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11180 * frame.c: Remove one extra white space after #include
11183 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11185 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11187 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11189 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11190 and dir commands into an if block.
11192 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11194 * python/py-breakpoint (struct pybp_code): Use int instead of
11197 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11198 Hafiz Abid Qadeer <abidh@codesourcery.com>
11200 * NEWS: Mention new field "trace-file".
11201 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11202 (tfile_open): Record the trace file's filename in the trace
11204 (tfile_files_info): Mention the name of the trace file.
11205 Check the "filename" field explicitely.
11206 (trace_status_command): Explicitely check "filename" field.
11207 (trace_find_command): Ditto.
11208 (trace_find_pc_command): Ditto.
11209 (trace_find_tracepoint_command): Ditto.
11210 (trace_find_line_command): Ditto.
11211 (trace_find_range_command): Ditto.
11212 (trace_find_outside_command): Ditto.
11213 * tracepoint.h (struct trace_status) <from_file>: Rename it
11214 to "filename" and make it hold the trace file's filename
11215 instead of a boolean.
11216 * remote.c (remote_get_trace_status): Initialize "filename"
11217 field with NULL instead of 0.
11219 2013-02-15 Yao Qi <yao@codesourcery.com>
11221 * remote.c: Fix a typo.
11223 2013-02-14 Pierre Muller <muller@sourceware.org>
11225 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11227 2013-02-14 Pedro Alves <palves@redhat.com>
11229 * utils.c (savestring): Don't #undef it. Move function to
11230 common/common-utils.c.
11231 * common/common-utils.c: Include gdb_string.h.
11232 (savestring): Move here from utils.c.
11233 * common/common-utils.h (savestring): Declare.
11235 2013-02-14 Pedro Alves <palves@redhat.com>
11237 * utils.c (savestring): Rename parameter 'size' to 'len'.
11239 2013-02-14 Pedro Alves <palves@redhat.com>
11240 Yufeng Zhang <yufeng.zhang@arm.com>
11242 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11243 (aarch64_inferior_data, struct aarch64_inferior_data):
11245 (struct aarch64_process_info): New.
11246 (aarch64_process_list): New global.
11247 (aarch64_find_process_pid, aarch64_add_process)
11248 (aarch64_process_info_get): New functions.
11249 (aarch64_inferior_data_get): Delete.
11250 (aarch64_process_info_get): New function.
11251 (aarch64_forget_process): New function.
11252 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11253 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11254 aarch64_get_debug_reg_state.
11255 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11256 instead of linux_nat_iterate_watchpoint_lwps.
11257 (aarch64_linux_new_fork): New function.
11258 (aarch64_linux_child_post_startup_inferior): Use
11259 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11260 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11261 (aarch64_linux_remove_hw_breakpoint)
11262 (aarch64_handle_aligned_watchpoint)
11263 (aarch64_handle_unaligned_watchpoint)
11264 (aarch64_linux_insert_watchpoint)
11265 (aarch64_linux_remove_watchpoint)
11266 (aarch64_linux_stopped_data_address): Adjust to pass the current
11267 process id to aarch64_debug_reg_state.
11268 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11269 linux_nat_new_fork hook, and aarch64_forget_process as
11270 linux_nat_forget_process hook; remove the call to
11271 register_inferior_data_with_cleanup.
11273 2013-02-14 Pedro Alves <palves@redhat.com>
11275 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11276 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11279 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11280 Hafiz Abid Qadeer <abidh@codesourcery.com>
11282 * tracepoint.h (validate_trace_state_variable_name): Declare.
11283 * tracepoint.c (validate_trace_state_variable_name): New.
11284 (trace_variable_command): Parse the trace state variable's name
11285 without using parse_expression. Do several validations.
11286 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11287 trace state variable's name with parse_expression. Validate it.
11289 2013-02-14 Yao Qi <yao@codesourcery.com>
11291 * infcmd.c (breakpoint_proceeded): Remove it.
11293 2013-02-14 Yao Qi <yao@codesourcery.com>
11295 * tracepoint.c (end_actions_pseudocommand): Make it static.
11296 (while_stepping_pseudocommand): Likewise.
11297 * tracepoint.h (end_actions_pseudocommand): Remove the
11299 (while_stepping_pseudocommand): Likewise.
11301 2013-02-14 Yao Qi <yao@codesourcery.com>
11303 * cli/cli-decode.c (help_cmd): Remove the declaration of
11305 (help_all): Likewise.
11307 2013-02-13 Pedro Alves <palves@redhat.com>
11309 * amd64-linux-nat.c (update_debug_registers_callback):
11311 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11313 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11314 i386_debug_reg_state.
11315 (amd64_linux_new_fork): New function.
11316 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11317 linux_nat_new_fork hook, and i386_forget_process as
11318 linux_nat_forget_process hook.
11319 * i386-linux-nat.c (update_debug_registers_callback):
11321 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11323 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11324 i386_debug_reg_state.
11325 (i386_linux_new_fork): New function.
11326 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11327 linux_nat_new_fork hook, and i386_forget_process as
11328 linux_nat_forget_process hook.
11329 * i386-nat.c (i386_init_dregs): Delete.
11330 (i386_inferior_data, struct i386_inferior_data):
11332 (struct i386_process_info): New.
11333 (i386_process_list): New global.
11334 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11336 (i386_inferior_data_get): Delete.
11337 (i386_process_info_get): New function.
11338 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11339 (i386_forget_process): New function.
11340 (i386_cleanup_dregs): Rewrite.
11341 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11342 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11343 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11344 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11345 to i386_debug_reg_state.
11346 (i386_use_watchpoints): Don't register inferior data.
11347 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11349 (i386_forget_process): Declare.
11350 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11351 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11352 New static globals.
11353 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11354 (add_initial_lwp): New, factored out from ...
11355 (add_lwp): ... this. Don't check the number of lwps before
11356 calling linux_nat_new_thread.
11357 (linux_nat_iterate_watchpoint_lwps): Delete.
11358 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11359 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11361 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11363 (linux_nat_kill, linux_nat_mourn_inferior): Call
11364 linux_nat_forget_process.
11365 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11366 (linux_nat_forget_process): New functions.
11367 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11369 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11370 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11372 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11373 (linux_nat_forget_process): New declarations.
11375 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11376 (amd64fbsd_mourn_inferior): New function.
11377 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11378 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11380 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11382 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11385 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11387 * aarch64-linux-nat.c (debug_reg_change_callback)
11388 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11391 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11393 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11396 2013-02-13 Pedro Alves <palves@redhat.com>
11397 Hafiz Abid Qadeer <abidh@codesourcery.com>
11399 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11401 2013-02-12 Tom Tromey <tromey@redhat.com>
11404 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11406 (classify_inner_name): Remove 'first_name' argument, add
11407 'context'. Remove unused variable.
11408 (yylex): Explicitly maintain the context type. Exit loop earlier
11409 if NAME result is seen.
11411 2013-02-12 Pedro Alves <palves@redhat.com>
11413 * amd64-darwin-tdep.c: Add (C) after Copyright.
11414 * cli/cli-cmds.h: Ditto.
11415 * cli/cli-decode.c: Ditto.
11416 * cli/cli-decode.h: Ditto.
11417 * cli/cli-dump.c: Ditto.
11418 * cli/cli-dump.h: Ditto.
11419 * cli/cli-interp.c: Ditto.
11420 * cli/cli-logging.c: Ditto.
11421 * cli/cli-script.c: Ditto.
11422 * cli/cli-script.h: Ditto.
11423 * cli/cli-setshow.c: Ditto.
11424 * cli/cli-setshow.h: Ditto.
11425 * cli/cli-utils.c: Ditto.
11426 * cli/cli-utils.h: Ditto.
11427 * config/alpha/nm-osf3.h: Ditto.
11428 * config/djgpp/djconfig.sh: Ditto.
11429 * config/i386/nm-fbsd.h: Ditto.
11430 * config/i386/nm-i386gnu.h: Ditto.
11431 * config/nm-linux.h: Ditto.
11432 * config/nm-nto.h: Ditto.
11433 * config/rs6000/nm-rs6000.h: Ditto.
11434 * config/sparc/nm-sol2.h: Ditto.
11435 * darwin-nat-info.c: Ditto.
11438 * gdb-demangle.h: Ditto.
11439 * i386-darwin-nat.c: Ditto.
11440 * i386-darwin-tdep.c: Ditto.
11441 * linux-fork.h: Ditto.
11442 * m32c-tdep.c: Ditto.
11443 * microblaze-linux-tdep.c: Ditto.
11444 * microblaze-rom.c: Ditto.
11445 * microblaze-tdep.c: Ditto.
11446 * microblaze-tdep.h: Ditto.
11447 * mips-linux-tdep.h: Ditto.
11448 * ppc-ravenscar-thread.c: Ditto.
11449 * ppc-ravenscar-thread.h: Ditto.
11450 * prologue-value.c: Ditto.
11451 * prologue-value.h: Ditto.
11452 * ravenscar-thread.c: Ditto.
11453 * ravenscar-thread.h: Ditto.
11454 * sparc-ravenscar-thread.c: Ditto.
11455 * sparc-ravenscar-thread.h: Ditto.
11456 * tilegx-linux-tdep.c: Ditto.
11457 * unwind_stop_reasons.def: Ditto.
11458 * windows-nat.h: Ditto.
11459 * xtensa-linux-tdep.c: Ditto.
11460 * xtensa-xtregs.c: Ditto.
11461 * regformats/regdat.sh: Ditto.
11462 * regformats/regdef.h: Ditto.
11464 2013-02-12 Pedro Alves <palves@redhat.com>
11466 * break-catch-sig.c: Update copyright years.
11468 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11470 Add support for a destructor for ui_out data and use it to
11471 provide a ui_out destructor.
11472 * ui-out.h: Declare the new ui_out destructor.
11473 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11474 * ui-out.c (default_data_destroy): Add a default data destructor
11475 which does nothing.
11476 (default_ui_out_impl): Set the new data_destroy field to
11477 default_data_destroy
11478 (uo_data_destroy): Local function which invokes the data
11479 destructor if present.
11480 (clear_table): Local function which clears the table data of a
11482 (ui_out_destroy): Public function which frees a ui_out object.
11483 (ui_out_table_end): Use the new clear_table function.
11484 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11486 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11489 2013-02-11 Doug Evans <dje@google.com>
11491 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11492 (printf_decfloat): New function. Broken out from ui_printf.
11493 Remove unnecessary code to shift the entire format string down.
11494 (printf_pointer): New function.
11495 (ui_printf): Code to print C strings, wide C strings, decfloats,
11496 and pointers moved to separate functions.
11498 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11500 * valops.c (value_assign): Handling bitfield offset in
11501 `lval_internalvar_component' case.
11503 2013-02-08 Doug Evans <dje@google.com>
11505 * common/format.c (parse_format_string): Fix whitespace.
11507 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11509 * stack.c (return_command): Work around uninitialized variable
11512 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11514 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11515 number of the registers from 36 to 34.
11517 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11519 * NEWS: Mention new AArch64 native and target support.
11521 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11523 * MAINTAINERS (Write After Approval): Add myself.
11525 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11526 Marcus Shawcroft <marcus.shawcroft@arm.com>
11527 Nigel Stephens <nigel.stephens@arm.com>
11528 Yufeng Zhang <yufeng.zhang@arm.com>
11530 * aarch64-linux-nat.c: New file.
11531 * config/aarch64/linux.mh: New file.
11532 * configure.host: Add AArch64.
11533 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11535 2013-02-07 Doug Evans <dje@google.com>
11537 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11538 disassemble command.
11540 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11542 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11543 set_gdbarch_fetch_tls_load_module_address.
11545 2013-02-06 David S. Miller <davem@davemloft.net>
11547 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11548 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11549 * value.c (struct_return_convention): New function.
11550 (using_struct_return): Implement in terms of struct_return_convention.
11551 * value.h (struct_return_convention): Declare.
11552 * stack.c (return_command): Allow successful overriding of the return
11553 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11555 2013-02-06 Tom Tromey <tromey@redhat.com>
11557 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11558 outside of TRY_CATCH.
11560 2013-02-06 Yao Qi <yao@codesourcery.com>
11562 * mi/mi-interp.c: Include "tracepoint.h".
11563 (mi_tsv_modified): Declare.
11564 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11565 (mi_interpreter_init): Call observer_attach_tsv_modified.
11566 (mi_tsv_modified): New.
11567 (mi_tsv_created, mi_tsv_deleted): Update.
11568 * tracepoint.c (trace_variable_command): Call
11569 observer_notify_tsv_modified if the initial value of tsv is
11571 (delete_trace_state_variable): Call
11572 observer_notify_tsv_deleted earlier.
11573 (trace_variable_command): Caller update.
11574 (create_tsv_from_upload): Likewise.
11575 * observer.sh: Declare "struct trace_state_variable".
11577 * NEWS: Mention the new MI notification "=tsv-modified".
11579 2013-02-05 Doug Evans <dje@google.com>
11581 * completer.c (location_completer): Fix typo in comment.
11583 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11585 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11588 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11590 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11591 Refactor if statement to avoid trailing || operator.
11593 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11595 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11597 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11599 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11600 * configure.host: Add powerpc*-*-freebsd* target.
11601 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11602 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11603 * config/powerpc/fbsd.mh: New file.
11605 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11606 Denys Vlasenko <dvlasenk@redhat.com>
11607 Pedro Alves <palves@redhat.com>
11609 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11610 (struct elf_internal_linux_prpsinfo): Forward declare.
11611 * gdbarch.h, gdbarch.c: Regenerate.
11612 * linux-tdep.c: Include `cli/cli-utils.h'.
11613 (linux_fill_prpsinfo): New function.
11614 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11615 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11616 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11617 depending on gdbarch pointer bitness.
11618 * ppc-linux-tdep.c: Include elf-bfd.h.
11619 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11622 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11623 Marcus Shawcroft <marcus.shawcroft@arm.com>
11624 Nigel Stephens <nigel.stephens@arm.com>
11625 Yufeng Zhang <yufeng.zhang@arm.com>
11627 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11629 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11630 Marcus Shawcroft <marcus.shawcroft@arm.com>
11631 Nigel Stephens <nigel.stephens@arm.com>
11632 Yufeng Zhang <yufeng.zhang@arm.com>
11634 * aarch64-newlib-tdep.c: New file.
11635 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11637 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11638 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11639 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11640 * osabi.c (gdb_osabi_names): Add "Newlib".
11642 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11643 Marcus Shawcroft <marcus.shawcroft@arm.com>
11644 Nigel Stephens <nigel.stephens@arm.com>
11645 Yufeng Zhang <yufeng.zhang@arm.com>
11647 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11648 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11649 * aarch64-linux-tdep.c: New file.
11650 * aarch64-linux-tdep.h: New file.
11651 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11652 * configure.tgt: Add aarch64-none-linux-gnu.
11654 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11655 Marcus Shawcroft <marcus.shawcroft@arm.com>
11656 Nigel Stephens <nigel.stephens@arm.com>
11657 Yufeng Zhang <yufeng.zhang@arm.com>
11659 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11660 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11661 (ALLDEPFILES): Add aarch64-tdep.c.
11662 * aarch64-tdep.c: New file.
11663 * aarch64-tdep.h: New file.
11664 * configure.tgt: Add AArch64.
11665 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11666 (aarch64-expedite): New definition.
11667 * features/aarch64-core.xml: New file.
11668 * features/aarch64-fpu.xml: New file.
11669 * features/aarch64-without-fpu.c: New file (generated).
11670 * features/aarch64-without-fpu.xml: New file.
11671 * features/aarch64.c: New file (generated).
11672 * features/aarch64.xml: New file.
11673 * regformats/aarch64-without-fpu.dat: New file (generated).
11674 * regformats/aarch64.dat: New file (generated).
11676 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11678 * contrib/expect-read1.c: New file.
11679 * contrib/expect-read1.sh: New file.
11681 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11683 * dwarf2read.c (file_file_name): New function with code from
11685 (file_full_name): Move most of the code to file_file_name.
11686 (macro_start_file): Rename variable full_name to file_name and use
11687 file_file_name for it. Add comp_dir parameter to new_macro_table.
11688 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11689 macro_source_file->filename access by macro_source_fullname call.
11690 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11692 * macrotab.c (struct macro_table): New field comp_dir.
11693 (macro_include): New variables link_fullname and source_fullname.
11694 Replace any macro_source_file->filename access by macro_source_fullname
11696 (macro_lookup_inclusion): Remove the partial filenames checking code.
11697 (check_for_redefinition): New variables source_fullname and
11698 found_key_fullname. Replace any macro_source_file->filename access by
11699 macro_source_fullname call.
11700 (macro_undef): New variables source_fullname and key_fullname. Replace
11701 any macro_source_file->filename access by macro_source_fullname call.
11702 (macro_lookup_definition): New variables retval and source_fullname.
11703 Replace any macro_source_file->filename access by macro_source_fullname
11705 (foreach_macro): New variable key_fullname. Replace any
11706 macro_source_file->filename access by macro_source_fullname call.
11707 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11708 macro_source_file->filename access by macro_source_fullname call.
11709 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11710 (macro_source_fullname): New function.
11711 * macrotab.h (struct macro_source_file): Extent the filename field
11713 (new_macro_table): New parameter comp_dir, add a comment for it.
11714 (macro_source_fullname): new declaration.
11716 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11718 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11719 this_real_name to outer block. Use it also for
11720 compare_filenames_for_search.
11721 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11722 with dw2_get_real_path for file_matcher, considering also
11723 BASENAMES_MAY_DIFFER.
11724 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11726 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11728 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11729 to the file_matcher parameter. Pass 0 to it.
11730 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11731 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11732 NULL psymtab_to_fullname result.
11733 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11734 an expected filename instead.
11735 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11736 file_matcher parameter. Call also psymtab_to_fullname, after newly
11737 considering BASENAMES_MAY_DIFFER.
11738 * source.c (rewrite_source_path): Remove static.
11739 * source.h (rewrite_source_path): New declaration.
11740 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11741 the expand_symtabs_matching field. Comment it.
11742 * symtab.c (file_matches): New function comment. Add parameter
11743 basenames, implement it.
11744 (search_symbols_file_matches): Add basenames parameter. Update the
11745 file_matches caller.
11746 (search_symbols): Match FILES also against symtab_to_fullname.
11747 Optimize it for BASENAMES_MAY_DIFFER.
11749 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11751 * source.c (print_source_lines_base): Print for TUI also "fullname".
11752 * tui/tui-data.c (init_content_element): Change tui_locator_element
11753 field to full_name.
11754 * tui/tui-data.h (struct tui_locator_element): Likewise.
11755 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11756 tui_update_locator_filename calls to tui_update_locator_fullname.
11757 Replace symtab->filename refererence by symtab_to_fullname call.
11758 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11759 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11760 field to full_name. Replace symtab->filename refererence by
11761 symtab_to_fullname call.
11762 (tui_show_symtab_source): Rename parameter to fullname. Change
11763 tui_locator_element field to full_name.
11764 * tui/tui-stack.c: Include source.h.
11765 (tui_set_locator_filename): Rename the declaration to ...
11766 (tui_set_locator_fullname): ... here. Rename its parameter to
11767 fullname, updates its comment.
11768 (tui_set_locator_info): Rename its parameter to fullname.
11769 (tui_set_locator_filename): Rename the definition to ...
11770 (tui_set_locator_fullname): ... here. Rename its parameter to
11771 fullname, updates its comment. Change tui_locator_element field to
11773 (tui_set_locator_info): Rename its parameter to fullname.
11774 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11775 (tui_update_locator_filename): Rename to ...
11776 (tui_update_locator_fullname): ... here. Rename callee to
11777 tui_set_locator_fullname.
11778 (tui_show_frame_info): Replace symtab->filename refererence by
11779 symtab_to_fullname call.
11780 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11781 (tui_update_locator_fullname): ... here.
11782 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11783 tui_update_locator_fullname. Replace symtab->filename refererence by
11784 symtab_to_fullname call.
11785 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11786 Rename the callee to tui_update_locator_fullname.
11787 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11789 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11791 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11792 by symtab_to_filename_for_display calls.
11793 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11794 (clear_command): New variable sal_fullname, initialize it. Replace
11795 compare_filenames_for_search by filename_cmp with sal_fullname.
11796 (say_where, update_static_tracepoint): Replace symtab->filename
11797 refererences by symtab_to_filename_for_display calls.
11798 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11800 * dwarf2read.c: Include source.h.
11801 (fixup_go_packaging): Replace symtab->filename refererences by
11802 symtab_to_filename_for_display calls.
11803 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11804 Replace symtab->filename refererences by symtab_to_filename_for_display
11806 (create_sals_line_offset, convert_linespec_to_sals): New variable
11807 fullname, initialize it, replace symtab->filename reference by the
11809 * linux-fork.c: Include source.h.
11810 (info_checkpoints_command): Replace symtab->filename refererences by
11811 symtab_to_filename_for_display calls.
11812 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11813 by symtab_to_filename_for_display calls.
11814 * mdebugread.c: Include source.h.
11815 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11816 symtab_to_filename_for_display calls.
11817 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11818 (mi_cmd_file_list_exec_source_files): Likewise.
11819 * printcmd.c: Include source.h.
11820 (build_address_symbolic): Replace symtab->filename refererences by
11821 symtab_to_filename_for_display calls.
11822 * psymtab.c (partial_map_symtabs_matching_filename)
11823 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11824 with psymtab_to_fullname.
11825 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11826 by symtab_to_filename_for_display calls.
11827 (stpy_get_filename): New variable filename, initialize it, use instead
11828 of symtab->filename refererences.
11829 (salpy_str): Make variable filename const char *. Replace
11830 symtab->filename refererences by symtab_to_filename_for_display calls.
11831 * skip.c: Include source.h and filenames.h.
11832 (skip_file_command): Remove const from the symtab variable. Replace
11833 symtab->filename refererences by symtab_to_fullname call.
11834 (function_name_is_marked_for_skip): New variables searched_for_fullname
11835 and fullname. Use them to search also with symtab's fullname.
11836 * source.c (find_source_lines): Replace symtab->filename refererences
11837 by symtab_to_filename_for_display calls.
11838 (print_source_lines_base): New variable filename, use it instead of
11839 symtab->filename. Replace symtab->filename refererences by
11840 symtab_to_filename_for_display calls.
11841 (line_info, forward_search_command): Replace symtab->filename
11842 refererences by symtab_to_filename_for_display calls.
11843 (reverse_search_command): Replace symtab->filename refererences by
11844 symtab_to_filename_for_display calls. New variable filename for it.
11845 * stack.c (frame_info): Likewise.
11846 * symmisc.c: Include source.h.
11847 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11848 (maintenance_info_symtabs): Replace symtab->filename refererences by
11849 symtab_to_filename_for_display calls.
11850 * symtab.c (iterate_over_some_symtabs): Call
11851 compare_filenames_for_search also with symtab_to_fullname.
11852 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11853 symtab->filename refererences by symtab_to_filename_for_display calls.
11854 (find_line_symtab): Replace symtab->filename refererences by
11855 symtab_to_filename_for_display calls.
11856 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11857 (print_symbol_info): Make the last parameter const char *. New
11858 variable s_filename. Use it in the function.
11859 (symtab_symbol_info): Make the last_filename variable const char *.
11860 Replace symtab->filename refererences by symtab_to_filename_for_display
11862 (rbreak_command): New variable fullname. Use it. Replace
11863 symtab->filename refererence by symtab_to_filename_for_display call.
11864 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11865 (print_one_static_tracepoint_marker): Replace symtab->filename
11866 refererences by symtab_to_filename_for_display calls.
11867 * tui/tui-source.c (tui_set_source_content): New variables filename and
11868 s_filename. Replace symtab->filename refererences by this variable.
11869 Replace other symtab->filename refererences by
11870 symtab_to_filename_for_display calls.
11872 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11873 Jan Kratochvil <jan.kratochvil@redhat.com>
11875 Add a new variable that controls a way in which filenames are
11877 * NEWS (set filename-display): New entry.
11878 * source.c (filename_display_basename, filename_display_relative)
11879 (filename_display_absolute, filename_display_kind_names)
11880 (filename_display_string, show_filename_display_string)
11881 (symtab_to_filename_for_display): New.
11882 (_initialize_source): Added initialization of 'filename-display'
11884 * source.h (symtab_to_filename_for_display): Added declaration.
11885 * stack.c (print_frame): Added new variable and calling of a new
11886 function and condition with this variable. Changed third argument of
11887 calling of a function.
11889 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11891 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11892 Rename field reference filename to fullname.
11893 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11894 fullname. New comment for it.
11895 * tui/tui-source.c (tui_set_source_content): Rename field reference
11896 filename to fullname. Initialize field by symtab_to_fullname now.
11897 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11898 reference filename to fullname. Use symtab_to_fullname during
11901 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11904 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11905 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11906 filename to fullname. Rename variable this_name to this_fullname.
11907 Lowercase FILENAME_CMP call.
11908 (dw2_find_symbol_file): New comment for the returned string.
11909 (dwarf2_gdb_index_functions): Rename the function to
11910 dw2_expand_symtabs_with_fullname.
11911 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11912 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11914 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11915 * symfile.h (struct quick_symbol_functions): Rename field
11916 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11917 parameter filename to fullname. Document returned string meaning for
11919 * symtab.c (find_line_symtab): Rename the called function to
11920 expand_symtabs_with_fullname.
11922 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11925 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11926 call of filename_cmp with compare_filenames_for_search.
11927 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11928 is_abs, unify the call of FILENAME_CMP with
11929 compare_filenames_for_search. New gdb_asserts for real_path and name.
11930 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11931 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11932 * symfile.h (struct quick_symbol_functions): Extend the comment for
11933 map_symtabs_matching_filename.
11934 * symtab.c (compare_filenames_for_search): Remove the function comment
11935 relative path requirement. Handle absolute filenames, with a comment.
11936 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11937 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11938 real_path and name. Unify the call of compare_filenames_for_search
11940 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11942 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11945 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11946 source_file references by symtab field references. Remove variables
11948 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11949 (clear_command, say_where): Replace bp_location field source_file
11950 references by symtab field references.
11951 (bp_location_dtor): Remove the source_file reference.
11952 (update_static_tracepoint): Replace bp_location field source_file
11953 references by symtab field references.
11954 (breakpoint_free_objfile): New function.
11955 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11956 Replace the field source_file by field symtab, extend its comment.
11957 (breakpoint_free_objfile): New declaration.
11958 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11959 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11960 field source_file references by symtab field references.
11962 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11964 Replace xfullpath calls by gdb_realpath calls.
11965 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11967 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11968 Remove it from the iterate_over_some_symtabs call.
11969 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11970 Remove it from the dw2_map_expand_apply calls, remove a block handling
11972 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11973 Remove it from the iterate_over_some_symtabs call.
11974 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11975 Remove it from the partial_map_expand_apply calls, remove a block
11976 handling it. Drop gdb_realpath call and cleanups from the real_path
11978 * source.c (openp): Drop the comment part about xfullpath. Replace
11979 xfullpath calls by gdb_realpath calls.
11980 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11981 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11982 from method map_symtabs_matching_filename and its comment.
11983 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11985 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11986 remove it also from the function comment, remove a block handling it.
11987 Drop gdb_realpath call and cleanups from the real_path handling.
11988 (iterate_over_symtabs): Drop variable full_path and its use.
11989 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11990 * utils.c (xfullpath): Remove.
11991 * utils.h (xfullpath): Remove.
11993 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11995 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11996 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11997 (ALLDEPFILES): Add ppc64-tdep.c.
11998 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11999 ppc64-tdep.o to gdb_target_obs.
12000 * ppc64-tdep.h: New file.
12001 * ppc64-tdep.c: New file.
12002 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12003 ppc-linux-tdep.c to here.
12004 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12005 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12006 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12007 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12008 from ppc-linux-tdep.c to here.
12009 (ppc64_convert_from_func_ptr_addr): Rename from
12010 ppc64_linux_convert_from_func_ptr_addr to
12011 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12014 (read_insn): Move from ppc-linux-tdep.c to here.
12015 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12016 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12017 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12018 Removed above functions.
12019 (ppc_linux_init_abi): Adjust.
12021 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12023 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12025 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12027 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12029 2013-02-01 Pedro Alves <palves@redhat.com>
12031 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12032 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12034 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12036 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12037 files with no separate debug info.
12038 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12039 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12040 only for files with no separate debug info.
12042 2013-01-31 Tom Tromey <tromey@redhat.com>
12044 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12046 (struct jit_program_space_data): Rename from jit_inferior_data.
12048 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12049 Change return type. Attach data to program space.
12050 (jit_program_space_data_cleanup): Rename from
12051 jit_inferior_data_cleanup; change argument type.
12052 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12054 (jit_register_code): Update.
12055 (jit_update_inferior_cache): Remove.
12056 (jit_breakpoint_deleted): Get jit data from the location's program
12058 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12059 'ps_data', change type.
12060 (jit_inferior_init, jit_breakpoint_re_set_internal)
12061 (jit_event_handler): Update.
12062 (free_objfile_data): Get data from objfile's program space.
12063 (_initialize_jit): Update.
12065 2013-01-31 Tom Tromey <tromey@redhat.com>
12068 * jit.c (struct jit_inferior_data) <cached_code_address,
12069 jit_breakpoint>: New fields.
12070 (jit_breakpoint_re_set_internal): Fix logging. Only create
12071 breakpoint if cached address has changed.
12072 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12074 (_initialize_jit): Register breakpoint deleted observer.
12076 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12078 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12079 (save_infcall_suspend_state): Ifdef out unused inf.
12080 (restore_infcall_suspend_state): Ifdef out unused inf.
12081 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12082 (jit_frame_sniffer): Remove unused inf_data.
12084 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12086 * c-exp.y (classify_inner_name): Remove unused type.
12087 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12088 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12090 (c_get_string): Remove unused kind.
12091 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12093 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12095 * charset.c (intermediate_encoding): Remove unused i.
12096 * completer.c (signal_completer): Remove unused i.
12097 * continuations.c (discard_my_continuations_1): Remove unused
12099 * corelow.c (core_close): Remove unuseD name.
12100 (get_core_siginfo): Remove unused pid.
12101 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12103 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12104 (loclist_describe_location): Remove unused first.
12105 * event-top.c (command_line_handler): Remove unused got_eof.
12106 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12107 (resize_section_table): Remove unused old_value.
12108 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12109 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12110 * i386-tdep.c (i386_process_record): Remove unused rex.
12111 * infcmd.c (get_return_value): Remove unused uiout.
12112 * jv-lang.c (type_from_class): Remove unused is_array.
12113 * jv-valprint.c (java_val_print): Remove unused i.
12114 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12115 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12116 * m2-typeprint.c (m2_print_type): Remove unused code.
12117 * macroexp.c (get_character_constant): Remove unused body_start.
12118 (macro_stringify): Remove unused result.
12119 * objc-lang.c (find_methods): Remove unused gdbarch.
12120 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12121 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12122 * stack.c (print_frame_args): Remove unused summary.
12123 * thread.c (thread_apply_command): Remove unused p.
12124 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12125 * valops.c (search_struct_method): Remove unused skip.
12126 * valprint.c (generic_val_print): Remove unused byte_order.
12127 * varobj.c (varobj_update): Remove unused changed.
12128 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12129 (alias_command): Remove unused c.
12130 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12131 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12133 (mi_cmd_data_write_memory): Remove unused word_format.
12134 (mi_cmd_data_write_memory_bytes): Remove unused r.
12135 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12137 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12138 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12141 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12143 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12144 * symtab.c (iterate_over_symtabs): Remove unused s.
12145 (find_pc_sect_symtab): Remove unused pspAce.
12146 (find_pc_sect_line): Remove unused alt_symtab.
12147 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12148 (completion_list_add_name): Remove unused newsize.
12150 2013-01-31 Tom Tromey <tromey@redhat.com>
12153 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12156 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12158 * target.c (target_read_string): Remove unused origlen.
12160 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12162 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12163 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12164 * ax-general.c (ax_print): Remove unused is_float.
12165 * blockframe.c (block_innermost_frame): Remove unused start, end.
12166 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12168 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12170 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12171 (svr4_read_so_list): Remove unused lmo.
12172 * solib-target.c (solib_target_relocate_section_addresses): Remove
12175 2013-01-30 Tom Tromey <tromey@redhat.com>
12177 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12179 2013-01-30 Tom Tromey <tromey@redhat.com>
12181 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12182 * utils.c (gnu_debuglink_crc32): Remove.
12183 * utils.h (gnu_debuglink_crc32): Don't declare.
12185 2013-01-30 Tom Tromey <tromey@redhat.com>
12187 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12188 (read_structure_type, read_enumeration_type): Remove cast.
12190 2013-01-30 Tom Tromey <tromey@redhat.com>
12192 * dwarf2read.c (read_namespace_type): Remove cast.
12193 (read_typedef): Likewise.
12195 2013-01-29 Tom Tromey <tromey@redhat.com>
12197 * dwarf2read.c (free_dwo_file): Remove assert.
12199 2013-01-29 Tom Tromey <tromey@redhat.com>
12201 * value.c (deprecated_set_value_modifiable): Remove.
12202 * value.h (deprecated_set_value_modifiable): Remove.
12204 2013-01-28 Doug Evans <dje@google.com>
12206 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12207 to addresses from dwo files.
12209 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12211 * valops.c (find_overload_match): Remove unused argument 'lax'.
12212 * value.h: Remove unused argument 'lax' from the declaration of
12213 find_overload_match.
12214 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12215 to find_overload_match.
12216 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12217 argument to find_overload_match.
12219 2013-01-25 Tom Tromey <tromey@redhat.com>
12221 * dwarf2read.c (processing_has_namespace_info): Remove.
12222 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12223 (process_die, read_func_scope, dwarf2_start_symtab)
12224 (new_symbol_full): Update.
12226 2013-01-25 Tom Tromey <tromey@redhat.com>
12228 * cp-namespace.c (cp_set_block_scope): Remove.
12229 * cp-support.h (cp_set_block_scope): Remove.
12230 * dbxread.c: Include block.h.
12231 (cp_set_block_scope): New function.
12232 (process_one_symbol): Update.
12233 * dwarf2read.c (read_func_scope): Use block_set_scope.
12235 2013-01-25 Pedro Alves <palves@redhat.com>
12237 * remote.c (add_current_inferior_and_thread): Tweak comment.
12239 2013-01-25 Tom Tromey <tromey@redhat.com>
12241 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12242 (cp_add_using_directive): Add 'copy_names' argument.
12243 * cp-support.h (cp_add_using_directive): Update.
12244 (struct using_direct) <import_src, import_dest, alias,
12245 declaration>: Now const.
12246 * dwarf2read.c (read_import_statement): Use obconcat.
12247 Don't copy names passed to cp_add_using_directive.
12249 2013-01-25 Tom Tromey <tromey@redhat.com>
12251 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12253 2013-01-25 Pedro Alves <palves@redhat.com>
12255 * remote.c (stop_reply_extract_thread): New.
12256 (add_current_inferior_and_thread): New parameter 'wait_status'.
12258 (remote_start_remote): Pass wait status to
12259 add_current_inferior_and_thread.
12260 (extended_remote_run): Update comment.
12261 (extended_remote_create_inferior_1): Pass wait status to
12262 add_current_inferior_and_thread.
12264 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12265 Ulrich Weigand <uweigand@de.ibm.com>
12267 * valarith.c (value_vector_widen): New function for replicating a
12268 scalar into a vector.
12269 (value_binop): Use value_vector_widen to widen scalar to vector
12270 rather than casting, this better matches gcc C behaviour.
12271 * valops.c (value_casst): Update logic for casting between vector
12272 types, and for casting from scalar to vector, try to match gcc C
12274 * value.h (value_vector_widen): Declare.
12275 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12276 function, handle special case for casting scalar to vector.
12277 (opencl_relop): Use opencl_value_cast.
12278 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12279 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12280 in order to use opencl_value_cast.
12282 2013-01-25 Yao Qi <yao@codesourcery.com>
12284 * event-loop.c: Include "queue.h".
12285 (gdb_event_p): New typedef.
12286 (DECLARE_QUEUE_P): Use.
12287 (DEFINE_QUEUE_P): Use.
12288 (async_queue_event): Remove.
12289 (gdb_event_xfree): New.
12290 (initialize_event_loop): New.
12291 (process_event): Use QUEUE macros.
12292 (event_queue): Remove.
12293 (gdb_wait_for_event): Caller update.
12294 (check_async_event_handlers): Likewise.
12295 (poll_timers): Likewise.
12296 * event-loop.h (initialize_event_loop): Declare.
12297 * event-loop.c (gdb_event_xfree): New.
12298 * top.c (gdb_init): Call initialize_event_loop.
12300 2013-01-25 Yao Qi <yao@codesourcery.com>
12302 * event-loop.c (async_queue_event): Remove one parameter
12303 'position'. Remove code handling 'position' == TAIL.
12304 (gdb_wait_for_event): Caller update.
12305 (check_async_event_handlers): Caller update.
12306 (poll_timers): Caller update.
12307 * event-loop.h (enum queue_position): Remove.
12309 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12311 * MAINTAINERS: Update my email.
12313 2013-01-25 Yao Qi <yao@codesourcery.com>
12315 * main.c (print_gdb_help): Remove "--epoch" from the help
12318 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12320 * symtab.c (skip_prologue_using_sal): Consider a file
12321 change the same as an increased line number
12323 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12325 * MAINTAINERS (Write After Approval): Add myself to the list.
12327 2013-01-24 Tom Tromey <tromey@redhat.com>
12329 * ada-lang.h (ada_decode_symbol): Make return type const.
12330 * ada-lang.c (ada_decode_symbol): Likewise.
12332 2013-01-23 Doug Evans <dje@google.com>
12334 * linespec.c (find_linespec_symbols): Make static.
12336 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12338 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12339 type on float conversion for complex type.
12341 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12343 Add a new class gdb.Architecture which exposes GDB's
12344 internal representation of architecture via GDB Python API.
12345 * Makefile.in: Add entries corresponding to the new file
12347 * NEWS (Python Scripting): Add entries for the new class
12348 gdb.Architecture and the new method gdb.Frame.architecture.
12349 * python/py-arch.c: Implement gdb.Architecture class.
12350 * python/py-frame.c (frapy_arch): Implement the method
12351 gdb.Frame.architecture().
12352 (frame_object_methods): Add 'architecture' to the method table.
12353 * python/python-internal.h: Add declarations of new utility
12355 * python/python.c (_initialize_python): Initialize
12356 gdb.Architecture class.
12358 2013-01-23 Doug Evans <dje@google.com>
12360 Work around binutils/15021.
12361 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12362 type_unit_group out of union s. All uses updated.
12363 (read_index_from_section): Watch for index version 8.
12364 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12365 an imported symtab.
12366 (write_psymtabs_to_index): Increment version number to 8.
12368 2013-01-22 Pedro Alves <palves@redhat.com>
12370 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12373 2013-01-22 Pedro Alves <palves@redhat.com>
12375 * annotate.c (annotate_breakpoints_changed): Rename to ...
12376 (annotate_breakpoints_invalid): ... this. Make static.
12377 (breakpoint_changed): Adjust.
12378 (_initialize_annotate): Always install the observers. Install a
12379 "breakpoint_created" observer.
12380 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12381 * breakpoint.c (set_breakpoint_condition)
12382 (breakpoint_set_commands, do_map_commands_command)
12383 (init_raw_breakpoint, clear_command, set_ignore_count)
12384 (enable_breakpoint_disp): No longer call
12385 annotate_breakpoints_changed.
12387 2013-01-22 Pedro Alves <palves@redhat.com>
12389 * annotate.c: Include "inferior.h".
12390 (frames_invalid_emitted)
12391 (breakpoints_invalid_emitted): New globals.
12392 (async_background_execution_p): New function.
12393 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12394 emitting the annotation if it has already been emitted.
12395 (annotate_display_prompt): New function.
12396 * annotate.h (annotate_display_prompt): New declaration.
12397 * event-top.c: Include annotate.h.
12398 (display_gdb_prompt): Call annotate_display_prompt.
12400 2013-01-22 Pedro Alves <palves@redhat.com>
12402 * annotate.c (ignore_count_changed): Delete.
12403 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12404 (annotate_ignore_count_change): Delete.
12405 (annotate_stopped): Don't emit a delayed breakpoints-changed
12407 * annotate.h (annotate_ignore_count_change): Delete.
12408 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12409 annotate_ignore_count_change.
12411 2013-01-22 Tom Tromey <tromey@redhat.com>
12413 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12414 require_rvalue for a register location.
12416 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12418 * breakpoint.c (print_one_breakpoint_location): Add MI
12419 field 'thread-groups' when printing a breakpoint.
12420 (output_thread_groups): New function.
12422 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12424 * python/lib/gdb/commands/explore.py
12425 (CompoundExplorer.explore_expr): Correct the name of a method
12427 (ExploreTypeCommand.invoke): Add a missing 'return'.
12429 2013-01-21 Tom Tromey <tromey@redhat.com>
12431 * gdb_obstack.h (obconcat): Move declaration here, from...
12432 * symfile.h (obconcat): ... here.
12433 * gdb_obstack.c: New file.
12434 (obconcat): Move from...
12435 * symfile.c (obconcat): ... here.
12436 * Makefile.in (SFILES): Add gdb_obstack.c.
12437 (COMMON_OBS): Add gdb_obstack.o.
12439 2013-01-21 Tom Tromey <tromey@redhat.com>
12441 * symfile.h (obsavestring): Don't declare.
12442 * symfile.c (obsavestring): Remove.
12443 * ada-exp.y: Use obstack_copy0, not obsavestring.
12444 * ada-lang.c: Use obstack_copy0, not obsavestring.
12445 * coffread.c: Use obstack_copy0, not obsavestring.
12446 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12447 * dbxread.c: Use obstack_copy0, not obsavestring.
12448 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12449 * jit.c: Use obstack_copy0, not obsavestring.
12450 * mdebugread.c: Use obstack_copy0, not obsavestring.
12451 * psymtab.c: Use obstack_copy0, not obsavestring.
12452 * stabsread.c: Use obstack_copy0, not obsavestring.
12453 * xcoffread.c: Use obstack_copy0, not obsavestring.
12455 2013-01-21 Tom Tromey <tromey@redhat.com>
12457 * dwarf2read.c (fixup_go_packaging): Save package name
12458 on objfile obstack.
12459 * gdbtypes.c (init_type): Don't copy name.
12461 2013-01-21 Tom Tromey <tromey@redhat.com>
12463 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12465 (struct attribute) <u.str>: Now const.
12466 (struct fnfieldlist) <name>: Now const.
12467 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12468 (partial_die_parent_scope): Make return type const.
12469 (partial_die_full_name, add_partial_symbol): Update.
12470 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12472 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12473 (read_file_scope, read_func_scope, dwarf2_add_field)
12474 (dwarf2_add_member_fn, read_structure_type)
12475 (process_enumeration_scope, read_array_type, read_module_type)
12476 (read_base_type, read_subrange_type): Update.
12477 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12478 (new_symbol_full, guess_full_die_structure_name): Update.
12479 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12480 (dwarf2_name): Return const type.
12481 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12484 2013-01-21 Tom Tromey <tromey@redhat.com>
12486 * gdbtypes.c (init_type): Make 'name' const.
12487 * gdbtypes.h (init_type): Update.
12489 2013-01-21 Tom Tromey <tromey@redhat.com>
12491 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12492 (start_symtab): Make 'name' and 'dirname' const. Use
12493 set_last_source_file.
12494 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12495 (last_source_file): Define. Now static.
12496 (set_last_source_file, get_last_source_file): New functions.
12497 * buildsym.h (last_source_file): Don't declare.
12498 (start_symtab): Update.
12499 (set_last_source_file, get_last_source_file): Declare.
12500 * coffread.c (complete_symtab): Use set_last_source_file.
12501 (coff_end_symtab): Likewise.
12502 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12503 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12504 set_last_source_file.
12505 (process_one_symbol): Use get_last_source_file.
12506 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12507 (psymtab_to_symtab_1): Use get_last_source_file.
12508 * xcoffread.c (process_linenos): Use get_last_source_file.
12509 (complete_symtab): Use set_last_source_file.
12510 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12511 (scan_xcoff_symtab): Use set_last_source_file.
12513 2013-01-21 Tom Tromey <tromey@redhat.com>
12515 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12516 (symbol_set_names): Remove casts. Handle field const-ness.
12518 2013-01-21 Tom Tromey <tromey@redhat.com>
12520 * dwarf2read.c (new_symbol_full): Remove cast.
12521 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12522 * symtab.h (symbol_set_demangled_name): Update.
12524 2013-01-21 Tom Tromey <tromey@redhat.com>
12526 * main.c (captured_main): Call bfd_init.
12528 2013-01-21 Tom Tromey <tromey@redhat.com>
12530 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12531 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12532 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12535 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12537 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12539 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12541 Fix gdb.fortran/common-block.exp crash in PIE mode.
12542 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12544 * f-valprint.c (info_common_command_for_block): Expect
12545 LOC_COMMON_BLOCK in gdb_assert.
12546 * symtab.h (struct general_symbol_info): Update comment for the
12547 common_block member.
12548 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12549 (enum address_class): New member LOC_COMMON_BLOCK.
12551 2013-01-18 David Blaikie <dblaikie@gmail.com>
12553 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12555 2013-01-18 Tom Tromey <tromey@redhat.com>
12558 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12559 Call require_rvalue.
12561 2013-01-18 Yao Qi <yao@codesourcery.com>
12563 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12564 (dbx_read_symtab): New declaration.
12565 (dbx_psymtab_to_symtab): Delete.
12566 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12567 Rename parameter PST to SELF. Exchanged two parameters.
12568 (start_psymtab): Caller update.
12569 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12570 (dwarf2_read_symtab): New declaration.
12571 (dwarf2_psymtab_to_symtab): Delete.
12572 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12573 Rename parameter PST to SELF. Exchanged two parameters.
12574 (create_partial_symtab): Caller update.
12575 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12576 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12577 Rename parameter PST to SELF. Exchanged two parameters.
12578 (parse_partial_symbols, new_psymtab): Caller update.
12579 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12581 * psymtab.c (psymtab_to_symtab): Caller update.
12582 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12583 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12584 Rename parameter PST to SELF. Exchanged two parameters.
12585 (xcoff_start_psymtab): Caller update.
12587 2013-01-18 Yao Qi <yao@codesourcery.com>
12589 * infrun.c (proceed): Rename local variable 'oneproc' to
12592 2013-01-17 Doug Evans <dje@google.com>
12594 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12595 (dw2_build_type_unit_groups): Delete. All uses updated.
12597 * symtab.h (struct symbol_search): Add comment.
12599 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12601 * symtab.c (compare_filenames_for_search): New comment for
12604 2013-01-17 Tom Tromey <tromey@redhat.com>
12606 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12608 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12610 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12611 initialize it by existing make_cleanup. Call new do_cleanups.
12613 2013-01-17 Tom Tromey <tromey@redhat.com>
12615 * cp-abi.c (cp_abi_completer): New function.
12616 (_initialize_cp_abi): Set completer for "set cp-abi".
12618 2013-01-17 Tom Tromey <tromey@redhat.com>
12620 * mem-break.c: Remove obsolete comment.
12621 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12623 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12625 * jit.c (jit_reader_load_command): Interpret the jit reader name
12626 as an absolute path if it begins with a forward slash.
12628 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12632 * jit.c (finalize_symtab): Ensure that only the global block has a
12635 2013-01-17 Pedro Alves <palves@redhat.com>
12637 * acinclude.m4: Include ../config/plugins.m4,
12638 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12639 * Makefile.in (aclocal_m4_deps): Update.
12640 * aclocal.m4: Renegerate.
12642 2013-01-16 Doug Evans <dje@google.com>
12644 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12646 2013-01-16 Pedro Alves <palves@redhat.com>
12647 Tom Tromey <tromey@redhat.com>
12650 * NEWS: Add "catch signal".
12651 * breakpoint.c (base_breakpoint_ops): No longer static.
12652 (bpstat_explains_signal): New function.
12653 (init_catchpoint): No longer static.
12654 (base_breakpoint_explains_signal): New function.
12655 (base_breakpoint_ops): Initialize new field.
12656 * breakpoint.h (enum bpstat_signal_value): New.
12657 (struct breakpoint_ops) <explains_signal>: New field.
12658 (bpstat_explains_signal): Remove macro, declare as function.
12659 (base_breakpoint_ops, init_catchpoint): Declare.
12660 * break-catch-sig.c: New file.
12661 * inferior.h (signal_catch_update): Declare.
12662 * infrun.c (signal_catch): New global.
12663 (handle_syscall_event): Update for change to
12664 bpstat_explains_signal.
12665 (handle_inferior_event): Likewise. Always handle random signals
12667 (signal_cache_update): Check signal_catch.
12668 (signal_catch_update): New function.
12669 (_initialize_infrun): Initialize signal_catch.
12670 * Makefile.in (SFILES): Add break-catch-sig.c.
12671 (COMMON_OBS): Add break-catch-sig.o.
12673 2013-01-16 Tom Tromey <tromey@redhat.com>
12675 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12676 (print_one_catch_solib, print_one_catch_syscall)
12677 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12680 2013-01-16 Yao Qi <yao@codesourcery.com>
12682 * printcmd.c (current_display_number): Make it static.
12684 2013-01-16 Yao Qi <yao@codesourcery.com>
12686 * infcmd.c (step_once): Don't check '!single_inst' as it was
12689 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12691 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12693 2013-01-14 Tom Tromey <tromey@redhat.com>
12695 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12697 * command.h (add_setshow_string_noescape_cmd): Update.
12698 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12699 (complete_set_gnutarget): New function.
12700 (_initialize_core): Set the "set gnutarget" completer.
12702 2013-01-14 Tom Tromey <tromey@redhat.com>
12705 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12706 (c_type_print_modifier): Likewise.
12707 * dwarf2read.c (read_tag_restrict_type): New function.
12708 (read_type_die_1): Handle DW_TAG_restrict_type.
12709 * gdbtypes.c (make_restrict_type): New function.
12710 (recursive_dump_type): Handle TYPE_RESTRICT.
12711 * gdbtypes.h (enum type_flag_values): Renumber.
12712 (enum type_instance_flag_value): Add
12713 TYPE_INSTANCE_FLAG_RESTRICT.
12714 (TYPE_RESTRICT): New macro.
12715 (make_restrict_type): Declare.
12717 2013-01-14 Tom Tromey <tromey@redhat.com>
12720 * psymtab.c (struct psymtab_state): New.
12721 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12723 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12724 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12726 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12727 Pedro Alves <palves@redhat.com>
12731 * remote.c (remote_threads_info): Make a copy of the reply from
12732 qfThreadInfo and use that instead of rs->buf.
12734 2013-01-14 Yao Qi <yao@codesourcery.com>
12736 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12737 (dbx_psymtab_to_symtab): Likewise.
12738 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12739 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12740 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12742 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12744 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12745 make_cleanup_restore_current_language. Call set_language. Move
12746 OLD_CHAIN and INNER_CHAIN cleanups.
12747 * utils.c (do_restore_current_language)
12748 (make_cleanup_restore_current_language): New functions.
12749 * utils.h (make_cleanup_restore_current_language): New declaration.
12751 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12753 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12754 non-existing files.
12756 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12757 non-existing files if FILENAME is already absolute.
12759 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12761 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12762 fputs_filtered. Append trailing newline.
12764 2013-01-11 Yao Qi <yao@codesourcery.com>
12765 Stan Shebs <stan@codesourcery.com>
12767 * psymtab.c (init_psymbol_list): Clarify the comment.
12769 2013-01-11 Yao Qi <yao@codesourcery.com>
12771 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12772 (update_dprintf_command_list): Assert that 'printf_line' is
12773 non-null. Remove condition check.
12775 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12778 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12780 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12782 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12784 2013-01-09 Anthony Green <green@moxielogic.com>
12786 * cp-abi.c (cplus_print_vtable): Don't return value from void
12788 * ada-lang.c (re_set_catch_assert): Ditto.
12790 2013-01-09 Doug Evans <dje@google.com>
12792 * symfile.h (quick_symbol_functions): Delete member
12793 pre_expand_symtabs_matching. All uses removed.
12794 * dwarf2read.c (dw2_lookup_symbol): Implement.
12795 (dw2_do_expand_symtabs_matching): Delete.
12796 (dw2_pre_expand_symtabs_matching): Delete.
12797 (struct dw2_symtab_iterator): New type.
12798 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12799 (dw2_expand_symtabs_for_function): Rewrite.
12800 (dwarf2_gdb_index_functions): Update.
12801 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12802 (psym_functions): Update.
12804 2013-01-09 Tom Tromey <tromey@redhat.com>
12806 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12807 * configure: Rebuild.
12808 * configure.ac: Add somread.o to the build if BFD has SOM
12810 * somread.c: Include som/aout.h, not syms.h.
12811 (som_symtab_read): Use som_external_symbol_dictionary_record.
12812 Unpack records manually.
12813 (_initialize_somread): Declare.
12815 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12817 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12818 Cast return_address to 64bits.
12820 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12822 * printcmd.c: Remove define of function output_command.
12823 * tracepoint.c: Remove extern of function output_command.
12824 * valprint.h: (output_command): New extern.
12826 2013-01-07 Tom Tromey <tromey@redhat.com>
12828 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12830 (objc_language_defn): Use c_printchar, c_printstr,
12833 2013-01-07 Tom Tromey <tromey@redhat.com>
12837 * ada-valprint.c (printstr, print_field_values): Remove
12839 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12841 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12843 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12844 * main.c (captured_main): Remove "epoch" argument.
12845 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12846 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12847 * p-valprint.c (pascal_object_print_value_fields): Remove
12849 * printcmd.c (print_command_1): Remove 'inspect' argument.
12850 (print_command, call_command): Update.
12851 (inspect_command): Remove.
12852 (_initialize_printcmd): Make "inspect" an alias for "print".
12853 * top.c (epoch_interface): Remove.
12854 * top.h (epoch_interface): Remove.
12855 * valprint.c (user_print_options): Update.
12856 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12857 * valprint.h (struct value_print_options) <inspect_it>: Remove
12860 2013-01-04 Tom Tromey <tromey@redhat.com>
12862 * valprint.h (read_string): Add 'extern'.
12864 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12866 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12867 used to decide whether to define darwin_read_dyld_info or not.
12869 2013-01-03 Pierre Muller <muller@sourceware.org>
12871 * main.c (relocate_gdb_directory): Avoid calling stat function
12874 2013-01-03 Yao Qi <yao@codesourcery.com>
12876 * psymtab.c (fixup_psymbol_section): Update declaration.
12877 (fixup_psymbol_section): Remove code returning value.
12879 2013-01-03 Yao Qi <yao@codesourcery.com>
12881 * symtab.h: Remove some out of date comments.
12882 (enum exception_event_kind): Move it ...
12883 * breakpoint.c: ... here.
12885 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12888 * darwin-nat.c (darwin_read_dyld_info): Only build if
12889 TASK_DYLD_INFO_COUNT is defined.
12890 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12891 TASK_DYLD_INFO_COUNT is defined.
12893 2013-01-02 Tom Tromey <tromey@redhat.com>
12895 * symfile.h (struct ecoff_debug_hack): Remove.
12896 * objfiles.c: Don't include mdebugread.h.
12898 2013-01-02 Tom Tromey <tromey@redhat.com>
12900 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12901 * configure.ac: Check for Mach-O support in BFD. Update
12903 * configure: Rebuild.
12905 2013-01-02 Tom Tromey <tromey@redhat.com>
12907 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12908 * configure.ac: Use GDB_AC_CHECK_BFD.
12909 * configure: Rebuild.
12911 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12913 * MAINTAINERS: Update my email.
12915 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12917 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12919 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12921 * rs6000-nat.c (bss_data_overlap): New function.
12922 (vmap_symtab): Use it to adjust the .bss section's offset.
12924 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12926 Update year range in copyright notice of all files.
12928 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12930 * top.c (print_gdb_version): Update copyright year.
12932 For older changes see ChangeLog-2012.
12938 version-control: never