1 2013-12-03 Joel Brobecker <brobecker@adacore.com>
3 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
4 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
5 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
6 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
7 field to output of "-list-features".
9 * NEWS: Add entry for new -info-gdb-mi-command.
11 2013-12-02 Doug Evans <dje@google.com>
12 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * objfiles.c (allocate_objfile): Save original_name as an absolute
16 * objfiles.h (struct objfile): Expand comment on original_name.
17 * source.c (openp): Call gdb_abspath.
18 * utils.c (gdb_abspath): New function.
19 * utils.h (gdb_abspath): Declare.
21 2013-12-02 Pedro Alves <palves@redhat.com>
23 * dcache.c (dcache_read_line): Use target_read_raw_memory.
24 * target.c (target_read_raw_memory): New function.
25 (target_read_stack, target_write_memory, target_write_raw_memory):
27 (target_read_code): Add comment.
28 * target.h (target_read_raw_memory): Declare.
30 2013-12-02 Pedro Alves <palves@redhat.com>
32 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
35 2013-12-02 Pedro Alves <pedro@codesourcery.com>
36 Maciej W. Rozycki <macro@codesourcery.com>
38 * remote.c (putpkt_for_catch_errors): Remove function.
39 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
42 2013-12-02 Pedro Alves <palves@redhat.com>
45 * remote-notif.c (handle_notification): Return early if no
46 notification is found.
48 2013-12-02 Joel Brobecker <brobecker@adacore.com>
50 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
53 2013-12-02 Joel Brobecker <brobecker@adacore.com>
55 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
57 2013-12-02 Joel Brobecker <brobecker@adacore.com>
59 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
60 * ctf.c (ctf_start): Remove obsolete comment.
62 2013-12-02 Joel Brobecker <brobecker@adacore.com>
64 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
66 2013-11-30 Doug Evans <xdje42@gmail.com>
68 * auto-load.h (script_language): New members name, auto_load_enabled.
69 Add missing comments on struct members.
70 (auto_load_objfile_script): Delete.
71 * auto-load.c: #include "cli/cli-cmds.h".
72 (auto_load_gdb_scripts_enabled): New function.
73 (script_language_gdb): Update, add new members.
74 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
75 and call to maybe_add_script moved to caller.
76 (auto_load_objfile_script_1): Auto-load safe-checking and
77 call to maybe_add_script moved here.
78 (auto_load_objfile_script): Make static. Early exit if support for
79 scripting language hasn't been compiled in, or auto-loading has been
81 (source_section_scripts): Argument "source_name" renamed to
82 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
83 with section_name. Skip loading script if support for scripting
84 language hasn't been compiled in, or auto-loading has been disabled.
85 Call language->source_script_for_objfile instead of calling
86 source_python_script_for_objfile directly.
87 (load_auto_scripts_for_objfile): Update.
88 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
89 (gdbpy_load_auto_script_for_objfile): Delete.
90 (auto_load_python_scripts_enabled): New function.
91 (script_language_python): Update, add new members.
92 (gdbpy_script_language_defn): New function.
93 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
94 (gdbpy_script_language_defn): Declare.
96 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
97 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
98 (source_section_scripts): Moved here from py-auto-load.c.
99 (auto_load_section_scripts): Ditto.
100 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
101 auto-load.c, renamed AUTO_SECTION_NAME.
102 (source_section_scripts, auto_load_section_scripts): Moved to
105 2013-11-30 Yao Qi <yao@codesourcery.com>
107 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
109 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
111 * gdbarch.sh: Remove include of "gdb_string.h", replace by
114 2013-11-29 Doug Evans <xdje42@gmail.com>
116 * python/py-auto-load.c (source_section_scripts): Move comment to
117 more relevant location.
120 * python/py-breakpoint.c: Remove trailing whitespace.
121 * python/py-cmd.c: Ditto.
122 * python/py-evts.c: Ditto.
123 * python/py-finishbreakpoint.c: Ditto.
124 * python/py-frame.c: Ditto.
125 * python/py-function.c: Ditto.
126 * python/py-inferior.c: Ditto.
127 * python/py-infthread.c: Ditto.
128 * python/py-param.c: Ditto.
129 * python/py-prettyprint.c: Ditto.
130 * python/py-symbol.c: Ditto.
131 * python/py-type.c: Ditto.
132 * python/py-utils.c: Ditto.
133 * python/py-value.c: Ditto.
134 * python/python-internal.h: Ditto.
135 * python/python.c: Ditto.
137 2013-11-29 Pedro Alves <palves@redhat.com>
139 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
141 2013-11-29 Pedro Alves <palves@redhat.com>
143 * breakpoint.c (build_target_condition_list): Release previous
145 (build_target_command_list): Release previous commands.
146 (bp_location_dtor): Release target conditions and commands.
147 * remote.c (remote_add_target_side_condition): Don't release
149 (remote_add_target_side_commands): Don't release commands.
151 2013-11-29 Yao Qi <yao@codesourcery.com>
152 Pedro Alves <palves@redhat.com>
154 * dcache.c (dcache_read_line): Use current_target.beneath
155 instead of ¤t_target.
156 * target.c (memory_xfer_partial_1): Factor code out to ...
157 (raw_memory_xfer_partial): ... it. New function.
158 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
159 is TARGET_OBJECT_RAW_MEMORY.
161 2013-11-28 Doug Evans <xdje42@gmail.com>
163 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
164 breakpoint_object. All uses updated.
165 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
166 breakpoint_object. All uses updated.
167 * python.c (*): All uses of breakpoint_object updated.
168 * python.h (*): All uses of breakpoint_object updated.
169 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
170 * python/py-finishbreakpoint.c (*): Ditto.
172 2013-11-28 Doug Evans <xdje42@gmail.com>
174 * configure.ac: Add comments delineating libpython and libmcheck.
175 * configure: Regenerate.
177 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
178 Pedro Alves <palves@redhat.com>
180 * valprint.c (value_check_printable): If the value is entirely
181 unavailable, print a single "<unavailable>" instead of printing
184 2013-11-28 Pedro Alves <palves@redhat.com>
186 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
187 Add "set debug frame" output.
188 (frame_stop_reason_symbol_string): New function.
190 2013-11-28 Pedro Alves <palves@redhat.com>
192 * frame-unwind.c (default_frame_unwind_stop_reason): Return
193 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
194 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
196 2013-11-28 Pedro Alves <palves@redhat.com>
198 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
199 set the unwind stop reason to UNWIND_OUTERMOST, not
200 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
202 2013-11-28 Pedro Alves <palves@redhat.com>
204 * frame.c (frame_unwind_register): Say the register was "not
205 saved" instead of "optimized out".
207 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
210 * configure: Rebuild.
211 * configure.ac: Tighten cygwin detection check.
213 2013-11-27 Pedro Alves <palves@redhat.com>
215 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
216 register in the previous frame's arch.
218 2013-11-27 Pedro Alves <palves@redhat.com>
220 * frame-unwind.c (frame_unwind_got_optimized): Return
221 an lval_register value instead of a not_lval value.
223 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
225 * frame.c: Include "valprint.h".
226 (frame_unwind_register_value): Use value_optimized_out.
227 * value.c (value_fetch_lazy): Likewise.
229 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
231 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
233 2013-11-26 Tom Tromey <tromey@redhat.com>
235 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
238 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
240 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
241 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
242 (HAS_MPX): New macro.
243 (HAS_AVX): New macro.
244 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
246 2013-11-25 Keith Seitz <keiths@redhat.com>
249 * c-exp.y (classify_inner_name): If no matching symbol was
250 found, try looking up the token as a base class.
251 Likewise if a constructor was found.
252 * cp-namespace.c (find_type_baseclass_by_name): New function.
253 * cp-support.h (find_type_baseclass_by_name): Declare.
254 * valops.c (value_struct_elt_for_reference): If we get
255 a non-static field, try to get a value based on the
256 current instance, if any.
258 2013-11-24 Yao Qi <yao@codesourcery.com>
260 * disasm.c (dis_asm_read_memory): Call target_read_code
261 instead of target_read_memory.
263 2013-11-24 Yao Qi <yao@codesourcery.com>
265 * NEWS: Add note on new "set code-cache" option.
266 * target-dcache.c (code_cache_enabled_1): New variable.
267 (code_cache_enabled): New variable.
268 (show_code_cache, set_code_cache): New function.
269 (code_cache_enabled_p): New function.
270 (_initialize_target_dcache): Register command.
271 * target-dcache.h (code_cache_enabled_p): Declare.
272 * target.c (memory_xfer_partial_1):Handle
273 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
274 (target_read_code): New function.
275 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
277 (target_read_code): Declare.
279 2013-11-24 Yao Qi <yao@codesourcery.com>
281 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
282 (stack_cache_enabled_1): ... this. New variable.
283 (stack_cache_enabled_p): Rename to ...
284 (stack_cache_enabled): ... this. New variable.
285 (set_stack_cache_enabled_p): Rename to ...
286 (set_stack_cache): ... this. Update caller.
287 (show_stack_cache_enabled_p): Rename to ...
288 (show_stack_cache): ... this. Update caller.
289 (stack_cache_enabled): Rename to ...
290 (stack_cache_enabled_p): ... this. Update caller.
291 (_initialize_target_dcache): Replace "data cache" with
292 "target memory cache".
293 * target-dcache.h (stack_cache_enabled): Remove declaration.
294 (stack_cache_enabled_p): Add declaration.
296 2013-11-23 Doug Evans <xdje42@gmail.com>
298 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
301 2013-11-23 Doug Evans <xdje42@gmail.com>
303 * python/py-frame.c (frapy_block): Fix error message text.
305 2013-11-23 Doug Evans <xdje42@gmail.com>
307 * cli/cli-script.c (multi_line_command_p): New function.
308 (recurse_read_control_structure, read_command_lines_1): Call it.
309 (execute_control_command): Consistently have a blank line between
312 2013-11-22 Sterling Augustine <saugustine@google.com>
315 * valprint.c (read_string): Set new variable fetchlen based on
316 fetchlimit and size. Use it in call to partial_memory_read.
319 2013-11-22 Tom Tromey <tromey@redhat.com>
322 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
323 the return address column is unspecified.
325 2013-11-22 Tom Tromey <tromey@redhat.com>
326 Pedro Alves <palves@redhat.com>
329 * value.c (value_fetch_lazy): Internal error if
330 get_frame_register_value returns the same register.
332 2013-11-22 Pedro Alves <palves@redhat.com>
333 Tom Tromey <tromey@redhat.com>
335 * frame.c (frame_stash_add): Now returns whether a frame with the
336 same ID was already known.
337 (compute_frame_id): New function, factored out from get_frame_id.
338 (get_frame_id): No longer lazilly compute the frame id here.
339 (get_prev_frame_if_no_cycle): New function. Detects wider stack
341 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
342 and checking for stack cycles here.
344 2013-11-22 Pedro Alves <palves@redhat.com>
347 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
348 this frame and the new previous frame, not between this frame and
351 2013-11-22 Pedro Alves <palves@redhat.com>
354 * dwarf2-frame.c (struct dwarf2_frame_cache)
355 <checked_tailcall_bottom, entry_cfa_sp_offset,
356 entry_cfa_sp_offset_p>: New fields.
357 (dwarf2_frame_cache): Adjust to use the new cache fields instead
358 of locals. Don't call dwarf2_tailcall_sniffer_first here.
359 (dwarf2_frame_prev_register): Call it here, but only once.
361 2013-11-21 Doug Evans <xdje42@gmail.com>
363 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
364 (type_equality_entry): Move here from python/py-type.c.
365 (type_equality_entry_d): Ditto.
366 (compare_maybe_null_strings, check_types_equal): Ditto.
367 (check_types_worklist, types_deeply_equal): Ditto.
368 * gdbtypes.h (types_deeply_equal): Declare.
369 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
370 (typy_richcompare): Update.
372 2013-11-20 Joel Brobecker <brobecker@adacore.com>
374 * python/py-value.c (is_intlike): Delete.
375 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
376 by use of is_integral_type.
377 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
378 by use of is_integral_type and check for TYPE_CODE_PTR.
380 2013-11-20 Tom Tromey <tromey@redhat.com>
382 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
384 * gnulib/aclocal.m4: Update.
385 * gnulib/config.in: Update.
386 * gnulib/configure: Update.
387 * gnulib/import/Makefile.am: Update.
388 * gnulib/import/Makefile.in: Update.
389 * gnulib/import/errno.in.h: Remove.
390 * gnulib/import/intprops.h: Remove.
391 * gnulib/import/m4/errno_h.m4: Remove.
392 * gnulib/import/m4/gnulib-cache.m4: Update.
393 * gnulib/import/m4/gnulib-comp.m4: Update.
394 * gnulib/import/m4/strerror.m4: Remove.
395 * gnulib/import/m4/sys_socket_h.m4: Remove.
396 * gnulib/import/strerror-override.c: Remove.
397 * gnulib/import/strerror-override.h: Remove.
398 * gnulib/import/strerror.c: Remove.
399 * gnulib/update-gnulib.sh: Update.
401 2013-11-20 Yao Qi <yao@codesourcery.com>
403 * target-dcache.c (target_dcache_get_or_init): Call
404 set_address_space_data if 'dcache' is NULL.
406 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
408 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
410 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
412 * python/lib/gdb/command/bound_register.py: New file.
413 * data-directory/Makefile.in: Copy bond_register.py to the right path
414 to be initialized at gdb startup.
416 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
418 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
420 (amd64_linux_read_description): Add initialization for MPX and
422 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
423 (amd64_linux_gregset_reg_offset): Add MPX registers.
424 (amd64_linux_core_read_description): Add initialization for MPX
426 (_initialize_amd64_linux_tdep): Initialize MPX targets.
427 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
428 register on the list.
429 (tdesc_amd64_mpx_linux) Add new target for MPX.
430 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
431 (amd64_mpx_names): MPX register names.
432 (amd64_init_abi): Add MPX register while initializing the ABI.
433 (_initialize_amd64_tdep): Initialize MPX targets.
434 * amd64-tdep.h (amd64_regnum): Add MPX registers.
435 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
437 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
439 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
440 registers on the range of registers to be read from
442 (i386_linux_read_description): Add case for MPX.
443 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
444 (i386_linux_gregset_reg_offset): Add MPX registers.
445 (i386_linux_core_read_description): Initialize also MPX.
446 (_initialize_i386_linux_tdep): Add mpx initialization.
447 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
449 (i386_regnum): Add MPX registers.
450 (I386_MPX_NUM_REGS): New macro.
451 (i386_bnd_regnum_p): New function.
452 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
453 number of registers to be the number of BNDSTATUS.
454 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
455 * i386-tdep.c: Include features/i386/i386-mpx.c.
456 (i386_mpx_names): Add MPX register names array.
457 (i386_bnd_names): Add bnd pseudo register names array.
458 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
460 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
461 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
463 (i386_bnd_type): New function.
464 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
466 (i386_pseudo_register_read_into_value): Add bnd case.
467 (i386_pseudo_register_write): Add bnd pseudo registers.
468 (i386_register_reggroup_p): Add MPX register to the group all.
469 (i386_validate_tdesc_p): Add MPX to the target description
471 (i386_pseudo_register_name): Add bnd pseudo registers.
472 (i386_gdbarch_init): Add MPX for architecture initialization.
473 (_initia_initialize_i386_tdep): Add mpx initialization.
474 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
476 (XSAVE_MPX_ADDR): New macro.
477 (i387_supply_xsave): Add MPX case.
478 (i387_collect_xsave): Add MPX case.
479 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
480 (I387_BNDCFGU_REGNUM): New macro.
481 (I387_NUM_MPX_REGS): New macro.
482 (I387_NUM_BND_REGS): New macro.
483 (I387_NUM_MPX_CTRL_REGS): New macro.
484 (I387_MPXEND_REGNUM): New macro.
485 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
486 (I386_XSTATE_BNDCFG): Likewise.
487 (I386_XSTATE_MPX_MASK): Likewise.
488 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
489 (I386_XSTATE_BNDREGS_SIZE): New macro.
490 (I386_XSTATE_BNDCFG_SIZE): Likewise.
491 (I386_XSTATE_SIZE): Adapt for MPX.
492 (I386_XSTATE_MAX_SIZE): Likewise.
494 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
496 * features/i386/Makefile: Adapts for using MPX registers.
497 * features/i386/32bit-mpx.xml: New file.
498 * features/i386/64bit-mpx.xml: Likewise.
499 * features/i386/amd64-mpx-linux.c: Likewise.
500 * features/i386/amd64-mpx-linux.xml: Likewise.
501 * features/i386/amd64-mpx.c: Likewise.
502 * features/i386/amd64-mpx.xml: Likewise.
503 * features/i386/i386-mpx-linux.c: Likewise.
504 * features/i386/i386-mpx-linux.xml: Likewise.
505 * features/i386/i386-mpx.c: Likewise.
506 * features/i386/i386-mpx.xml: Likewise.
507 * regformats/i386/amd64-mpx-linux.dat: New file.
508 * regformats/i386/amd64-mpx.dat: Likewise.
509 * regformats/i386/i386-mpx-linux.dat: Likewise.
510 * regformats/i386/i386-mpx.dat: Likewise.
512 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
514 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
515 Modified logic of creating a bitfield to be in sync with
518 2013-11-20 Will Newton <will.newton@linaro.org>
520 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
523 2013-11-20 Yao Qi <yao@codesourcery.com>
525 * progspace.h (struct address_space_data): Declare.
526 * target-dcache.c: Include "progspace.h".
527 (target_dache): Remove.
528 (target_dcache_aspace_key): New.
529 (target_dcache_cleanup): New function.
530 (target_dcache_init_p): Get data through
531 target_dcache_aspace_key.
532 (target_dcache_invalidate): Likewise.
533 (target_dcache_get): Likewise.
534 (target_dcache_get_or_init): Likewise.
535 (_initialize_target_dcache): Initialize
536 target_dcache_aspace_key.
538 2013-11-20 Yao Qi <yao@codesourcery.com>
540 * progspace.c (struct address_space): Update comments.
541 <REGISTRY_FIELDS>: New fields.
542 DEFINE_REGISTRY for address_space.
543 (new_address_space): Call address_space_alloc_data.
544 (free_address_space): Call address_space_free_data.
545 * progspace.h: Use DECLARE_REGISTRY.
547 2013-11-20 Yao Qi <yao@codesourcery.com>
549 * Makefile.in (SFILES):Add target-dcache.c.
550 (HFILES_NO_SRCDIR): Add target-dcache.h.
551 (COMMON_OBS): Add target-dcache.o.
552 * dcache.c: Remove inclusion to "target.h". Include
554 * memattr.c: Include "target-dcache.h".
556 * tracepoint.c: Likewise.
557 * target.c: (stack_cache_enabled_p_1): Move to
559 (stack_cache_enabled_p): Likewise.
560 (set_stack_cache_enabled_p): Likewise.
561 (show_stack_cache_enabled_p): Likewise.
562 (target_dcache, target_dcache_init_p): Likewise.
563 (target_dcache_invalidate): Likewise.
564 (target_dcache_get, target_dcache_get_or_init): Likewise.
565 (memory_xfer_partial_1): Call function stack_cache_enabled.
566 (initialize_target): Move code to target-dcache.c.
567 * target.h (target_dcache_invalidate): Move to
569 (target_dcache_get): Likewise.
570 * target-dcache.c: New.
571 * target-dcache.h: New.
573 2013-11-20 Yao Qi <yao@codesourcery.com>
575 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
578 2013-11-20 Yao Qi <yao@codesourcery.com>
580 * dcache.c (last_cache): Remove.
581 (dcache_free, dcache_init): Update.
583 (dcache_print_line): Add parameter 'dcache'. Replace
584 'target_dcache' with 'dcache'.
585 (dcache_info): Move code to dcache_info_1. Call
587 (dcache_info_1): New function.
588 (set_dcache_size): Call target_dcache_invalidate.
589 (set_dcache_line_size): Call target_dcache_invalidate.
590 * target.c (target_dcache_init_p): New function.
591 (target_dcache_invalidate): Check target_dcache_init_p first.
592 (target_dcache_get, target_dcache_get_or_init): New function.
593 (memory_xfer_partial_1): Adjust.
594 (initialize_target): Don't initialize 'target_dcache'.
595 * target.h (struct dcache_struct): Declare.
596 (target_dcache_get): Declare.
598 2013-11-19 Yao Qi <yao@codesourcery.com>
600 * varobj.c (varobj_get_type): Fix typo.
602 2013-11-19 Joel Brobecker <brobecker@adacore.com>
604 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
606 2013-11-19 Joel Brobecker <brobecker@adacore.com>
608 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
611 2013-11-18 Tom Tromey <tromey@redhat.com>
613 * common/gdb_stat.h: Remove.
614 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
615 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
616 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
617 * corefile.c: Use sys/stat.h, not gdb_stat.h.
618 * ctf.c: Use sys/stat.h, not gdb_stat.h.
619 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
620 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
621 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
622 * exec.c: Use sys/stat.h, not gdb_stat.h.
623 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
624 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
625 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
626 * jit.c: Use sys/stat.h, not gdb_stat.h.
627 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
628 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
629 * main.c: Use sys/stat.h, not gdb_stat.h.
630 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
631 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
632 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
633 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
634 * procfs.c: Use sys/stat.h, not gdb_stat.h.
635 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
636 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
637 * remote.c: Use sys/stat.h, not gdb_stat.h.
638 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
639 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
640 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
641 * source.c: Use sys/stat.h, not gdb_stat.h.
642 * symfile.c: Use sys/stat.h, not gdb_stat.h.
643 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
644 * symtab.c: Use sys/stat.h, not gdb_stat.h.
645 * top.c: Use sys/stat.h, not gdb_stat.h.
646 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
648 2013-11-18 Tom Tromey <tromey@redhat.com>
650 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
652 * gnulib/aclocal.m4: Update.
653 * gnulib/config.in: Update.
654 * gnulib/configure: Update.
655 * gnulib/import/Makefile.am: Update.
656 * gnulib/import/Makefile.in: Update.
657 * gnulib/import/m4/gnulib-cache.m4: Update.
658 * gnulib/import/m4/gnulib-comp.m4: Update.
659 * gnulib/import/m4/sys_stat_h.m4: New.
660 * gnulib/import/m4/time_h.m4: New.
661 * gnulib/import/sys_stat.in.h: New.
662 * gnulib/import/time.in.h: New.
664 2013-11-18 Tom Tromey <tromey@redhat.com>
666 * configure: Rebuild.
667 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
669 2013-11-18 Tom Tromey <tromey@redhat.com>
671 * configure: Rebuild.
672 * configure.ac: Don't check for unistd.h.
674 2013-11-18 Tom Tromey <tromey@redhat.com>
676 * configure: Rebuild.
677 * configure.ac: Don't check for stdlib.h
678 * defs.h: Include stdlib.h unconditionally.
680 2013-11-18 Tom Tromey <tromey@redhat.com>
682 * config.in: Rebuild.
683 * configure: Rebuild.
684 * configure.ac: Don't check for stddef.h.
685 * defs.h: Unconditionally include stddef.h. Remove duplicate
688 2013-11-18 Tom Tromey <tromey@redhat.com>
690 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
691 * common/gdb_dirent.h: Remove.
692 * common/filestuff.c: Use dirent.h.
693 * common/linux-osdata.c: Use dirent.h.
695 * config.in: Rebuild.
696 * configure: Rebuild.
697 * configure.ac: Don't use AC_HEADER_DIRENT.
698 * linux-fork.c: Use dirent.h
699 * linux-nat.c: Use dirent.h.
700 * nto-procfs.c: Use dirent.h.
701 * procfs.c: Use dirent.h.
703 2013-11-18 Tom Tromey <tromey@redhat.com>
705 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
706 * gnulib/aclocal.m4: Update.
707 * gnulib/config.in: Update.
708 * gnulib/configure: Update.
709 * gnulib/import/Makefile.am: Update.
710 * gnulib/import/Makefile.in: Update.
711 * gnulib/import/dirent.in.h: New.
712 * gnulib/import/m4/dirent_h.m4: New.
713 * gnulib/import/m4/gnulib-cache.m4: Update.
714 * gnulib/import/m4/gnulib-comp.m4: Update.
716 2013-11-18 Tom Tromey <tromey@redhat.com>
718 * configure: Rebuild.
719 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
722 2013-11-18 Tom Tromey <tromey@redhat.com>
724 * common/gdb_string.h: Remove.
725 * aarch64-tdep.c: Use string.h, not gdb_string.h.
726 * ada-exp.y: Use string.h, not gdb_string.h.
727 * ada-lang.c: Use string.h, not gdb_string.h.
728 * ada-lex.l: Use string.h, not gdb_string.h.
729 * ada-typeprint.c: Use string.h, not gdb_string.h.
730 * ada-valprint.c: Use string.h, not gdb_string.h.
731 * aix-thread.c: Use string.h, not gdb_string.h.
732 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
733 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
734 * alpha-nat.c: Use string.h, not gdb_string.h.
735 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
736 * alpha-tdep.c: Use string.h, not gdb_string.h.
737 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
738 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
739 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
740 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
741 * amd64-nat.c: Use string.h, not gdb_string.h.
742 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
743 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
744 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
745 * arch-utils.c: Use string.h, not gdb_string.h.
746 * arm-linux-nat.c: Use string.h, not gdb_string.h.
747 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
748 * arm-tdep.c: Use string.h, not gdb_string.h.
749 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
750 * armbsd-tdep.c: Use string.h, not gdb_string.h.
751 * armnbsd-nat.c: Use string.h, not gdb_string.h.
752 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
753 * armobsd-tdep.c: Use string.h, not gdb_string.h.
754 * avr-tdep.c: Use string.h, not gdb_string.h.
755 * ax-gdb.c: Use string.h, not gdb_string.h.
756 * ax-general.c: Use string.h, not gdb_string.h.
757 * bcache.c: Use string.h, not gdb_string.h.
758 * bfin-tdep.c: Use string.h, not gdb_string.h.
759 * breakpoint.c: Use string.h, not gdb_string.h.
760 * build-id.c: Use string.h, not gdb_string.h.
761 * buildsym.c: Use string.h, not gdb_string.h.
762 * c-exp.y: Use string.h, not gdb_string.h.
763 * c-lang.c: Use string.h, not gdb_string.h.
764 * c-typeprint.c: Use string.h, not gdb_string.h.
765 * c-valprint.c: Use string.h, not gdb_string.h.
766 * charset.c: Use string.h, not gdb_string.h.
767 * cli-out.c: Use string.h, not gdb_string.h.
768 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
769 * cli/cli-decode.c: Use string.h, not gdb_string.h.
770 * cli/cli-dump.c: Use string.h, not gdb_string.h.
771 * cli/cli-interp.c: Use string.h, not gdb_string.h.
772 * cli/cli-logging.c: Use string.h, not gdb_string.h.
773 * cli/cli-script.c: Use string.h, not gdb_string.h.
774 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
775 * cli/cli-utils.c: Use string.h, not gdb_string.h.
776 * coffread.c: Use string.h, not gdb_string.h.
777 * common/common-utils.c: Use string.h, not gdb_string.h.
778 * common/filestuff.c: Use string.h, not gdb_string.h.
779 * common/linux-procfs.c: Use string.h, not gdb_string.h.
780 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
781 * common/signals.c: Use string.h, not gdb_string.h.
782 * common/vec.h: Use string.h, not gdb_string.h.
783 * core-regset.c: Use string.h, not gdb_string.h.
784 * corefile.c: Use string.h, not gdb_string.h.
785 * corelow.c: Use string.h, not gdb_string.h.
786 * cp-abi.c: Use string.h, not gdb_string.h.
787 * cp-support.c: Use string.h, not gdb_string.h.
788 * cp-valprint.c: Use string.h, not gdb_string.h.
789 * cris-tdep.c: Use string.h, not gdb_string.h.
790 * d-lang.c: Use string.h, not gdb_string.h.
791 * dbxread.c: Use string.h, not gdb_string.h.
792 * dcache.c: Use string.h, not gdb_string.h.
793 * demangle.c: Use string.h, not gdb_string.h.
794 * dicos-tdep.c: Use string.h, not gdb_string.h.
795 * disasm.c: Use string.h, not gdb_string.h.
796 * doublest.c: Use string.h, not gdb_string.h.
797 * dsrec.c: Use string.h, not gdb_string.h.
798 * dummy-frame.c: Use string.h, not gdb_string.h.
799 * dwarf2-frame.c: Use string.h, not gdb_string.h.
800 * dwarf2loc.c: Use string.h, not gdb_string.h.
801 * dwarf2read.c: Use string.h, not gdb_string.h.
802 * elfread.c: Use string.h, not gdb_string.h.
803 * environ.c: Use string.h, not gdb_string.h.
804 * eval.c: Use string.h, not gdb_string.h.
805 * event-loop.c: Use string.h, not gdb_string.h.
806 * exceptions.c: Use string.h, not gdb_string.h.
807 * exec.c: Use string.h, not gdb_string.h.
808 * expprint.c: Use string.h, not gdb_string.h.
809 * f-exp.y: Use string.h, not gdb_string.h.
810 * f-lang.c: Use string.h, not gdb_string.h.
811 * f-typeprint.c: Use string.h, not gdb_string.h.
812 * f-valprint.c: Use string.h, not gdb_string.h.
813 * fbsd-nat.c: Use string.h, not gdb_string.h.
814 * findcmd.c: Use string.h, not gdb_string.h.
815 * findvar.c: Use string.h, not gdb_string.h.
816 * fork-child.c: Use string.h, not gdb_string.h.
817 * frame.c: Use string.h, not gdb_string.h.
818 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
819 * frv-tdep.c: Use string.h, not gdb_string.h.
820 * gdb.c: Use string.h, not gdb_string.h.
821 * gdb_bfd.c: Use string.h, not gdb_string.h.
822 * gdbarch.c: Use string.h, not gdb_string.h.
823 * gdbtypes.c: Use string.h, not gdb_string.h.
824 * gnu-nat.c: Use string.h, not gdb_string.h.
825 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
826 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
827 * go-exp.y: Use string.h, not gdb_string.h.
828 * go-lang.c: Use string.h, not gdb_string.h.
829 * go32-nat.c: Use string.h, not gdb_string.h.
830 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
831 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
832 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
833 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
834 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
835 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
836 * i386-linux-nat.c: Use string.h, not gdb_string.h.
837 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
838 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
839 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
840 * i386-tdep.c: Use string.h, not gdb_string.h.
841 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
842 * i386gnu-nat.c: Use string.h, not gdb_string.h.
843 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
844 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
845 * i387-tdep.c: Use string.h, not gdb_string.h.
846 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
847 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
848 * inf-child.c: Use string.h, not gdb_string.h.
849 * inf-ptrace.c: Use string.h, not gdb_string.h.
850 * inf-ttrace.c: Use string.h, not gdb_string.h.
851 * infcall.c: Use string.h, not gdb_string.h.
852 * infcmd.c: Use string.h, not gdb_string.h.
853 * inflow.c: Use string.h, not gdb_string.h.
854 * infrun.c: Use string.h, not gdb_string.h.
855 * interps.c: Use string.h, not gdb_string.h.
856 * iq2000-tdep.c: Use string.h, not gdb_string.h.
857 * irix5-nat.c: Use string.h, not gdb_string.h.
858 * jv-exp.y: Use string.h, not gdb_string.h.
859 * jv-lang.c: Use string.h, not gdb_string.h.
860 * jv-typeprint.c: Use string.h, not gdb_string.h.
861 * jv-valprint.c: Use string.h, not gdb_string.h.
862 * language.c: Use string.h, not gdb_string.h.
863 * linux-fork.c: Use string.h, not gdb_string.h.
864 * linux-nat.c: Use string.h, not gdb_string.h.
865 * lm32-tdep.c: Use string.h, not gdb_string.h.
866 * m2-exp.y: Use string.h, not gdb_string.h.
867 * m2-typeprint.c: Use string.h, not gdb_string.h.
868 * m32c-tdep.c: Use string.h, not gdb_string.h.
869 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
870 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
871 * m32r-rom.c: Use string.h, not gdb_string.h.
872 * m32r-tdep.c: Use string.h, not gdb_string.h.
873 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
874 * m68k-tdep.c: Use string.h, not gdb_string.h.
875 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
876 * m68klinux-nat.c: Use string.h, not gdb_string.h.
877 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
878 * m88k-tdep.c: Use string.h, not gdb_string.h.
879 * macrocmd.c: Use string.h, not gdb_string.h.
880 * main.c: Use string.h, not gdb_string.h.
881 * mdebugread.c: Use string.h, not gdb_string.h.
882 * mem-break.c: Use string.h, not gdb_string.h.
883 * memattr.c: Use string.h, not gdb_string.h.
884 * memory-map.c: Use string.h, not gdb_string.h.
885 * mep-tdep.c: Use string.h, not gdb_string.h.
886 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
887 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
888 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
889 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
890 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
891 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
892 * mi/mi-console.c: Use string.h, not gdb_string.h.
893 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
894 * mi/mi-interp.c: Use string.h, not gdb_string.h.
895 * mi/mi-main.c: Use string.h, not gdb_string.h.
896 * mi/mi-parse.c: Use string.h, not gdb_string.h.
897 * microblaze-rom.c: Use string.h, not gdb_string.h.
898 * microblaze-tdep.c: Use string.h, not gdb_string.h.
899 * mingw-hdep.c: Use string.h, not gdb_string.h.
900 * minidebug.c: Use string.h, not gdb_string.h.
901 * minsyms.c: Use string.h, not gdb_string.h.
902 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
903 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
904 * mips-tdep.c: Use string.h, not gdb_string.h.
905 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
906 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
907 * mipsread.c: Use string.h, not gdb_string.h.
908 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
909 * mn10300-tdep.c: Use string.h, not gdb_string.h.
910 * monitor.c: Use string.h, not gdb_string.h.
911 * moxie-tdep.c: Use string.h, not gdb_string.h.
912 * mt-tdep.c: Use string.h, not gdb_string.h.
913 * nbsd-tdep.c: Use string.h, not gdb_string.h.
914 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
915 * nto-procfs.c: Use string.h, not gdb_string.h.
916 * nto-tdep.c: Use string.h, not gdb_string.h.
917 * objc-lang.c: Use string.h, not gdb_string.h.
918 * objfiles.c: Use string.h, not gdb_string.h.
919 * opencl-lang.c: Use string.h, not gdb_string.h.
920 * osabi.c: Use string.h, not gdb_string.h.
921 * osdata.c: Use string.h, not gdb_string.h.
922 * p-exp.y: Use string.h, not gdb_string.h.
923 * p-lang.c: Use string.h, not gdb_string.h.
924 * p-typeprint.c: Use string.h, not gdb_string.h.
925 * parse.c: Use string.h, not gdb_string.h.
926 * posix-hdep.c: Use string.h, not gdb_string.h.
927 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
928 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
929 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
930 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
931 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
932 * printcmd.c: Use string.h, not gdb_string.h.
933 * procfs.c: Use string.h, not gdb_string.h.
934 * prologue-value.c: Use string.h, not gdb_string.h.
935 * python/py-auto-load.c: Use string.h, not gdb_string.h.
936 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
937 * ravenscar-thread.c: Use string.h, not gdb_string.h.
938 * regcache.c: Use string.h, not gdb_string.h.
939 * registry.c: Use string.h, not gdb_string.h.
940 * remote-fileio.c: Use string.h, not gdb_string.h.
941 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
942 * remote-mips.c: Use string.h, not gdb_string.h.
943 * remote-sim.c: Use string.h, not gdb_string.h.
944 * remote.c: Use string.h, not gdb_string.h.
945 * reverse.c: Use string.h, not gdb_string.h.
946 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
947 * ser-base.c: Use string.h, not gdb_string.h.
948 * ser-go32.c: Use string.h, not gdb_string.h.
949 * ser-mingw.c: Use string.h, not gdb_string.h.
950 * ser-pipe.c: Use string.h, not gdb_string.h.
951 * ser-tcp.c: Use string.h, not gdb_string.h.
952 * ser-unix.c: Use string.h, not gdb_string.h.
953 * serial.c: Use string.h, not gdb_string.h.
954 * sh-tdep.c: Use string.h, not gdb_string.h.
955 * sh64-tdep.c: Use string.h, not gdb_string.h.
956 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
957 * skip.c: Use string.h, not gdb_string.h.
958 * sol-thread.c: Use string.h, not gdb_string.h.
959 * solib-dsbt.c: Use string.h, not gdb_string.h.
960 * solib-frv.c: Use string.h, not gdb_string.h.
961 * solib-osf.c: Use string.h, not gdb_string.h.
962 * solib-spu.c: Use string.h, not gdb_string.h.
963 * solib-target.c: Use string.h, not gdb_string.h.
964 * solib.c: Use string.h, not gdb_string.h.
965 * somread.c: Use string.h, not gdb_string.h.
966 * source.c: Use string.h, not gdb_string.h.
967 * sparc-nat.c: Use string.h, not gdb_string.h.
968 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
969 * sparc-tdep.c: Use string.h, not gdb_string.h.
970 * sparc64-tdep.c: Use string.h, not gdb_string.h.
971 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
972 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
973 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
974 * spu-linux-nat.c: Use string.h, not gdb_string.h.
975 * spu-multiarch.c: Use string.h, not gdb_string.h.
976 * spu-tdep.c: Use string.h, not gdb_string.h.
977 * stabsread.c: Use string.h, not gdb_string.h.
978 * stack.c: Use string.h, not gdb_string.h.
979 * std-regs.c: Use string.h, not gdb_string.h.
980 * symfile.c: Use string.h, not gdb_string.h.
981 * symmisc.c: Use string.h, not gdb_string.h.
982 * symtab.c: Use string.h, not gdb_string.h.
983 * target.c: Use string.h, not gdb_string.h.
984 * thread.c: Use string.h, not gdb_string.h.
985 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
986 * tilegx-tdep.c: Use string.h, not gdb_string.h.
987 * top.c: Use string.h, not gdb_string.h.
988 * tracepoint.c: Use string.h, not gdb_string.h.
989 * tui/tui-command.c: Use string.h, not gdb_string.h.
990 * tui/tui-data.c: Use string.h, not gdb_string.h.
991 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
992 * tui/tui-file.c: Use string.h, not gdb_string.h.
993 * tui/tui-layout.c: Use string.h, not gdb_string.h.
994 * tui/tui-out.c: Use string.h, not gdb_string.h.
995 * tui/tui-regs.c: Use string.h, not gdb_string.h.
996 * tui/tui-source.c: Use string.h, not gdb_string.h.
997 * tui/tui-stack.c: Use string.h, not gdb_string.h.
998 * tui/tui-win.c: Use string.h, not gdb_string.h.
999 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1000 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1001 * typeprint.c: Use string.h, not gdb_string.h.
1002 * ui-file.c: Use string.h, not gdb_string.h.
1003 * ui-out.c: Use string.h, not gdb_string.h.
1004 * user-regs.c: Use string.h, not gdb_string.h.
1005 * utils.c: Use string.h, not gdb_string.h.
1006 * v850-tdep.c: Use string.h, not gdb_string.h.
1007 * valarith.c: Use string.h, not gdb_string.h.
1008 * valops.c: Use string.h, not gdb_string.h.
1009 * valprint.c: Use string.h, not gdb_string.h.
1010 * value.c: Use string.h, not gdb_string.h.
1011 * varobj.c: Use string.h, not gdb_string.h.
1012 * vax-tdep.c: Use string.h, not gdb_string.h.
1013 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1014 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1015 * windows-nat.c: Use string.h, not gdb_string.h.
1016 * xcoffread.c: Use string.h, not gdb_string.h.
1017 * xml-support.c: Use string.h, not gdb_string.h.
1018 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1019 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1021 2013-11-18 Tom Tromey <tromey@redhat.com>
1023 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1025 * gnulib/aclocal.m4: Update.
1026 * gnulib/config.in: Update.
1027 * gnulib/configure: Update.
1028 * gnulib/import/Makefile.am: Update.
1029 * gnulib/import/Makefile.in: Update.
1030 * gnulib/import/errno.in.h: New.
1031 * gnulib/import/intprops.h: New.
1032 * gnulib/import/m4/errno_h.m4: New.
1033 * gnulib/import/m4/gnulib-cache.m4: Update.
1034 * gnulib/import/m4/gnulib-comp.m4: Update.
1035 * gnulib/import/m4/strerror.m4: New.
1036 * gnulib/import/m4/strstr.m4: New.
1037 * gnulib/import/m4/sys_socket_h.m4: New.
1038 * gnulib/import/strerror-override.c: New.
1039 * gnulib/import/strerror-override.h: New.
1040 * gnulib/import/strerror.c: New.
1041 * gnulib/import/strstr.c: New.
1043 2013-11-18 Tom Tromey <tromey@redhat.com>
1045 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1048 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1050 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1051 * sparc-tdep.h: And its prototype.
1053 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1055 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1057 2013-11-18 Pedro Alves <palves@redhat.com>
1059 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1062 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1064 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1065 to -list-features output.
1067 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1069 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1070 <read_addr_from_reg>: Renames "read_reg".
1071 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1073 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1074 Use read_addr_from_reg in place of read_reg.
1075 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1076 in place of read_reg.
1077 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1078 dwarf_expr_read_reg.
1079 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1080 with dwarf_expr_read_addr_from_reg.
1081 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1082 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1083 needs_frame_read_addr_from_reg.
1085 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1087 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1089 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1091 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1094 2013-11-15 Tom Tromey <tromey@redhat.com>
1097 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1098 (classify_name): Likewise. Prefer a field of "this" over a
1100 (classify_inner_name, yylex): Update.
1102 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1104 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1105 Extend the documentation a bit.
1106 <get_reg_value>: New field.
1107 * dwarf2loc.c (dwarf_expr_get_reg_value)
1108 (needs_frame_get_reg_value): New functions.
1109 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1111 * dwarf2-frame.c (get_reg_value): New function.
1112 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1113 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1114 Use new callback to compute result_val.
1116 2013-11-15 Alan Modra <amodra@gmail.com>
1118 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1119 (ppc64_desc_entry_point): ..this. Update comments here and at
1121 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1122 ppc64_standard_linkage3): Update comments.
1123 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1124 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1126 (ppc64_standard_linkage4_target): New function.
1127 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1128 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1129 nop match. Fix comment wrap.
1131 2013-11-14 Pedro Alves <palves@redhat.com>
1133 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1134 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1136 2013-11-14 Pedro Alves <palves@redhat.com>
1138 * infrun.c (struct execution_control_state)
1139 <stepped_after_stopped_by_watchpoint>: New field.
1140 (get_inferior_stop_soon): New function.
1141 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1142 moved to struct execution_control_state -- adjust. Use
1143 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1145 (handle_signal_stop): New function, factored out from
1146 handle_inferior_event.
1148 2013-11-14 Pedro Alves <palves@redhat.com>
1150 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1152 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1154 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1155 Adjust to return a boolean.
1156 * breakpoint.h (enum bpstat_signal_value): Delete.
1157 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1158 (bpstat_explains_signal): Likewise.
1159 * infrun.c (handle_inferior_event) <random signal checks>:
1160 bpstat_explains_signal now returns a boolean - adjust. No longer
1161 consider hiding signals.
1163 2013-11-14 Pedro Alves <palves@redhat.com>
1165 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1166 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1167 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1169 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1170 instead of BPSTAT_SIGNAL_HIDE.
1171 * infrun.c (handle_inferior_event): Rework random signal checks.
1173 2013-11-14 Pedro Alves <palves@redhat.com>
1175 * infrun.c (struct execution_control_state): Remove
1176 'random_signal' field.
1177 (handle_syscall_event): Use bpstat_causes_stop instead of
1178 bpstat_explains_signal. Don't set ecs->random_signal.
1179 (handle_inferior_event): New 'random_signal' local.
1180 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1181 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1182 bpstat_explains_signal. Don't set ecs->random_signal.
1183 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1186 2013-11-14 Pedro Alves <palves@redhat.com>
1188 * infrun.c (handle_inferior_event): Move comment from the
1189 function's body to the function's description, adjusted.
1191 2013-11-14 Pedro Alves <palves@redhat.com>
1193 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1194 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1195 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1198 2013-11-14 Tom Tromey <tromey@redhat.com>
1200 * python/py-linetable.c (ltpy_has_line)
1201 (ltpy_get_all_source_lines): Fix loop termination condition.
1203 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1205 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1206 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1207 PARSE->LANGUAGE during command execution, if set.
1208 * mi/mi-parse.c: Add "language.h" #include.
1209 (mi_parse): Add parsing of "--language" command option.
1211 * NEWS: Add entry mentioning the new "--language" command option.
1213 2013-11-14 Pedro Alves <palves@redhat.com>
1214 Joel Brobecker <brobecker@adacore.com>
1216 * cli/cli-utils.h (extract_arg_const): Add declaration.
1217 * cli/cli-utils.c (extract_arg_const): New function.
1218 (extract_arg): Reimplement using extract_arg_const.
1220 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1222 * language.h: Add "symtab.h" #include.
1224 2013-11-13 Doug Evans <xdje42@gmail.com>
1226 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1227 specific breakpoints, don't evaluate breakpoint condition if
1230 2013-11-13 Keith Seitz <keiths@redhat.com>
1234 * cp-support.c (insepct_type): Add support for substituting
1235 namespace aliases, too.
1236 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1237 for DW_TAG_imported_declaration.
1238 (add_partial_symbol): Likewise.
1239 (process_die): Handle namespace aliases with
1240 read_namespace_alias.
1241 (die_needs_namespace): Add DW_TAG_imported_declaration.
1242 (read_namespace_alias): New function.
1243 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1244 (new_symbol_full): Handle DW_TAG_imported_declaration.
1246 2013-11-13 Keith Seitz <keiths@redhat.com>
1248 * p-exp.y (uptok): Make first parameter const.
1249 (yylex): Make `tokstart' and `tokptr' const.
1250 Don't copy the lexer input to a temporary buffer.
1252 Remove const workaround for parse_escape.
1253 Create a temporary buffer for a convenience variable instead
1254 of doing in-place modification of the input.
1255 If a match is found with a different case from the input,
1256 do not change the input at all.
1257 Use `tmp' to construct the resultant stoken instead of
1260 2013-11-13 Doug Evans <xdje42@gmail.com>
1262 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1264 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1266 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1267 entry with "ada-exceptions".
1269 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1271 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1272 after re-initialization of OBJFILE's obstack.
1274 2013-11-12 Doug Evans <xdje42@gmail.com>
1276 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1277 bs->stop != 0 on entry. Update function comment. Simplify early
1278 exit for frame mismatch. Reindent rest of function.
1280 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1282 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1285 2013-11-12 Doug Evans <dje@google.com>
1287 Work around gold/15646.
1288 * dwarf2read.c (read_index_from_section): Update comment.
1289 (struct dw2_symtab_iterator): New member global_seen.
1290 (dw2_symtab_iter_init): Initialize it.
1291 (dw2_symtab_iter_next): Skip duplicate global symbols.
1292 (dw2_expand_symtabs_matching): Ditto.
1294 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1296 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1297 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1299 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1300 (mi_cmd_info_ada_exceptions): New function.
1301 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1303 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1305 * ada-lang.h: #include "vec.h".
1306 (struct ada_exc_info): New.
1307 (ada_exc_info): New typedef.
1308 (DEF_VEC_O(ada_exc_info)): New vector.
1309 (ada_exceptions_list): Add declaration.
1310 * ada-lang.c (ada_is_exception_sym)
1311 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1312 (sort_remove_dups_ada_exceptions_list)
1313 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1314 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1315 (ada_exceptions_list_1, ada_exceptions_list)
1316 (info_exceptions_command): New function.
1317 (_initialize_ada_language): Add "info exception" command.
1319 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1322 * NEWS: Add linetable feature.
1323 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1324 * python/py-linetable.c: New file.
1325 * python/py-symtab.c (stpy_get_linetable): New function.
1326 * python/python-internal.h (symtab_to_linetable_object): Declare.
1327 (gdbpy_initialize_linetable): Ditto.
1328 * python/python.c (_initialize_python): Call
1329 gdbpy_initialize_linetable.
1331 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1333 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1334 the documentation of fields "except_string" and "condition".
1335 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1336 CONDITION on the heap before passing it to
1337 create_ada_exception_catchpoint.
1338 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1341 2013-11-11 Tom Tromey <tromey@redhat.com>
1343 * config.in, configure: Rebuild.
1344 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1346 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1348 * remote-sim.c (gdbsim_detach): Break declaration into
1349 shorter lines. No code change.
1351 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1353 * remote-sim.c (gdbsim_detach): Fix prototype.
1355 2013-11-08 Doug Evans <dje@google.com>
1357 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1358 (create_debug_types_hash_table): Only print debugging messages for
1359 each TU if dwarf2-read >= 2.
1360 (process_queue): Ditto.
1361 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1364 2013-11-08 Tom Tromey <tromey@redhat.com>
1366 * configure: Rebuild.
1367 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1369 2013-11-08 Tom Tromey <tromey@redhat.com>
1371 * configure, config.in: Rebuild.
1372 * configure.ac: Remove unused configury.
1374 2013-11-08 Tom Tromey <tromey@redhat.com>
1376 * m32c-tdep.c: Use gdb_string.h.
1378 2013-11-08 Tom Tromey <tromey@redhat.com>
1380 * configure, config.in: Rebuild.
1381 * configure.ac: Remove all link.h-related checks.
1383 2013-11-08 Tom Tromey <tromey@redhat.com>
1385 * acinclude.m4: Include common.m4.
1386 * common/common.m4: New file.
1387 * configure, config.in: Rebuild.
1388 * configure.ac: Use GDB_AC_COMMON.
1390 2013-11-08 Doug Evans <dje@google.com>
1392 * NEWS: Mention that "set debug symtab-create" now accepts a
1394 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1395 to set the symtab's primary flag.
1396 * jit.c (finalize_symtab): Ditto.
1397 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1398 * symfile.c (allocate_symtab): Only print debugging messages for
1399 symtab_create_debug levels 2 and higher.
1400 * symtab.c (symtab_create_debug): Change type to unsigned int.
1401 (set_symtab_primary): New function.
1402 (_initialize_symtab): Change "set debug symtab-create" to a
1404 * symtab.h (set_symtab_primary): Declare.
1405 (symtab_create_debug): Update decl.
1407 2013-11-08 Tom Tromey <tromey@redhat.com>
1409 * aix-thread.c (aix_thread_detach): Update.
1410 * corelow.c (core_detach): Update.
1411 * darwin-nat.c (darwin_detach): Update.
1412 * dec-thread.c (dec_thread_detach): Update.
1413 * gnu-nat.c (gnu_detach): Update.
1414 * go32-nat.c (go32_detach): Update.
1415 * inf-ptrace.c (inf_ptrace_detach): Update.
1416 * inf-ttrace.c (inf_ttrace_detach): Update.
1417 * linux-fork.c (linux_fork_detach): Update.
1418 * linux-fork.h (linux_fork_detach): Update.
1419 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1420 local for const-correctness.
1421 * linux-thread-db.c (thread_db_detach): Update.
1422 * monitor.c (monitor_detach): Update.
1423 * nto-procfs.c (procfs_detach): Update.
1424 * procfs.c (procfs_detach): Update.
1425 * record.c (record_detach): Update.
1426 * record.h (record_detach): Update.
1427 * remote-m32r-sdi.c (m32r_detach): Update.
1428 * remote-mips.c (mips_detach): Update.
1429 * remote-sim.c (gdbsim_detach): Update.
1430 * remote.c (remote_detach_1, remote_detach)
1431 (extended_remote_detach): Update.
1432 * sol-thread.c (sol_thread_detach): Update.
1433 * target.c (target_detach): Make "args" const.
1434 (init_dummy_target): Update.
1435 * target.h (struct target_ops) <to_detach>: Make argument const.
1436 (target_detach): Likewise.
1437 * windows-nat.c (windows_detach): Update.
1439 2013-11-07 Doug Evans <dje@google.com>
1442 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1443 and align fields for PT_GNU_RELRO segments.
1445 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1448 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1450 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1452 * NEWS: Document Python temporary breakpoint support.
1453 * python/py-breakpoint.c (bppy_get_temporary): New function.
1454 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1455 to temporary if True.
1457 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1459 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1460 removed to allow analyzing unconditional branch instructions
1461 with PC-relative offsets of zero.
1463 2013-11-07 Yao Qi <yao@codesourcery.com>
1465 * mi/mi-cmd-var.c: Include "language.h".
1466 (mi_cmd_var_info_expression): Get language name from
1468 * varobj.c (varobj_language_string): Remove.
1469 (variable_language): Remove declaration.
1470 (languages): Remove.
1471 (varobj_get_language): Change the type of return value.
1472 (variable_language): Remove.
1473 * varobj.h (enum varobj_languages): Remove.
1474 (varobj_language_string): Remove declaration.
1475 (varobj_get_language): Update declaration.
1477 2013-11-07 Yao Qi <yao@codesourcery.com>
1479 * language.h (struct language_defn) <la_natural_name>: New
1481 * ada-lang.c (ada_language_defn): Initialize field
1483 * c-lang.c (c_language_defn): Likewise.
1484 (cplus_language_defn, asm_language_defn): Likewise.
1485 * d-lang.c (d_language_defn): Likewise.
1486 * f-lang.c (f_language_defn): Likewise.
1487 * go-lang.c (go_language_defn): Likewise.
1488 * jv-lang.c (java_language_defn): Likewise.
1489 * language.c (unknown_language_defn ): Likewise.
1490 (auto_language_defn): Likewise.
1491 * m2-lang.c (m2_language_defn): Likewise.
1492 * objc-lang.c (objc_language_defn): Likewise.
1493 * opencl-lang.c (opencl_language_defn): Likewise.
1494 * p-lang.c (pascal_language_defn): Likewise.
1496 2013-11-07 Yao Qi <yao@codesourcery.com>
1498 * language.c (language_str): Return const char *.
1499 (add_language): Add const to 'language_names'
1500 * language.h (struct language_defn) <la_name>: Add const.
1501 (language_str: Update declaration.
1503 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1505 * s390-linux-nat.c (s390_read_description): Consider the TE field
1506 in the HWCAP for determining 'have_regset_tdb'.
1508 2013-11-06 Will Newton <will.newton@linaro.org>
1511 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1512 values. (read_partial_die): Likewise.
1514 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1517 * top.c (command_line_input): Unify interactivity tests to use
1518 input_from_terminal_p.
1519 * event-top.c (command_line_handler): Likewise.
1521 2013-11-06 Yao Qi <yao@codesourcery.com>
1523 * Makefile.in (check-perf): New target.
1525 2013-11-05 Will Newton <will.newton@linaro.org>
1528 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1529 (arm_print_float_info): Likewise.
1531 2013-11-04 Anton Blanchard <anton@samba.org>
1533 * target.c (memory_xfer_partial): Cap write to 4KB.
1535 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1537 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1538 probe scan even when the arch provides no get_longjmp_target.
1540 2013-10-31 Pedro Alves <palves@redhat.com>
1542 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1543 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1544 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1545 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1546 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1547 <bpstat handling>: If the bpstat chain wants the signal to be
1548 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1551 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1553 * breakpoint.c (update_watchpoint): Update error message and add
1554 an additional error message.
1556 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1558 * s390-tdep.h: Rename to...
1559 * s390-linux-tdep.h: ...here.
1560 * s390-tdep.c: Rename to...
1561 * s390-linux-tdep.c: ...here. Adjust #include.
1562 * s390-nat.c: Rename to...
1563 * s390-linux-nat.c: ...here. Adjust #include.
1564 * config/s390/s390.mh: Rename to...
1565 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1567 * configure.host: Reflect host rename "s390" -> "linux".
1568 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1569 * Makefile.in (ALL_TARGET_OBS): Likewise.
1570 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1572 (ALLDEPFILES): Reflect rename of .c files.
1574 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576 * s390-nat.c: Whitespace cleanup.
1577 * s390-tdep.c: Likewise.
1578 * s390-tdep.h: Remove empty line at end of file.
1580 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1582 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1585 2013-10-29 Tom Tromey <tromey@redhat.com>
1587 * utils.c (reg): Move undefinition...
1588 * gdb_curses.h: ... here. Update comment to mention AIX.
1590 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1592 * exec.h (add_target_sections_of_objfile): New declaration.
1593 * exec.c (add_target_sections_of_objfile): New function.
1594 * symfile.c (add_symbol_file_command): Update current target sections.
1595 (remove_symbol_file_command): New command.
1596 (symfile_free_objfile): New function.
1597 (_initialize_symfile): Register observer for free_objfile events.
1598 * NEWS: Add description of the remove-symbol-file command.
1599 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1600 * objfiles.c (free_objfile): Notify free_objfile.
1601 (is_addr_in_objfile): New function.
1602 * objfiles.h (is_addr_in_objfile): New declaration.
1603 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1604 events instead of solib_unloaded events.
1605 (_initialize_printcmd): Register observer for free_objfile instead
1606 of solib_unloaded notifications.
1607 * solib.c (remove_user_added_objfile): New function.
1608 (_initialize_symfile): Add remove-symbol-file.
1610 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1612 * infcmd.c (default_print_one_register_info): Use val_print to
1613 print all values even optimized out or unavailable ones. Don't
1614 try to print a raw form of optimized out or unavailable values.
1616 2013-10-29 Yao Qi <yao@codesourcery.com>
1618 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1619 parameter 'arg' instead of from program_space_data.
1620 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1621 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1622 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1623 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1624 * inflow.c (inflow_inferior_data_cleanup): Get data from
1625 parameter 'arg' instead of inferior_data.
1626 * registry.h: Add comments.
1628 2013-10-28 Pedro Alves <palves@redhat.com>
1630 * breakpoint.c (watchpoints_triggered)
1631 <!target_stopped_data_address>: Hardcode return 1.
1633 2013-10-28 Pedro Alves <palves@redhat.com>
1635 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1638 2013-10-28 Pedro Alves <palves@redhat.com>
1640 * infrun.c (process_event_stop_test): New function, factored out
1641 from handle_inferior_event.
1642 (handle_inferior_event): 'process_event_stop_test' is now a
1643 function instead of a goto label -- adjust.
1645 2013-10-28 Pedro Alves <palves@redhat.com>
1647 * infrun.c (handle_inferior_event): Move process_event_stop_test
1648 goto label to the else branch of the ecs->random_signal check,
1649 along with FRAME and GDBARCH re-fetching.
1651 2013-10-28 Pedro Alves <palves@redhat.com>
1653 * infrun.c (switch_back_to_stepped_thread): New function, factored
1654 out from handle_inferior_event.
1655 (handle_inferior_event): Adjust to call
1656 switch_back_to_stepped_thread. Call it also at the tail of the
1657 random signal handling, and return, instead of also handling
1658 random signals just before the stepping tests.
1660 2013-10-28 Pedro Alves <palves@redhat.com>
1662 * infrun.c (clear_stop_func): Delete.
1663 (handle_inferior_event): Don't call clear_stop_func and don't
1664 clear 'ecs->random_signal'.
1666 2013-10-27 Yao Qi <yao@codesourcery.com>
1668 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1669 (varobj_create, varobj_get_path_expr): Update.
1670 (varobj_value_has_mutated, varobj_update): Likewise.
1671 (create_child_with_value, new_root_variable): Likewise.
1672 (number_of_children, name_of_variable): Likewise.
1673 (value_of_child, my_value_of_variable): Likewise.
1674 (varobj_value_is_changeable_p): Likewise.
1676 2013-10-25 Yao Qi <yao@codesourcery.com>
1678 * language.h (struct lang_varobj_ops): Declare.
1679 (struct language_defn) <la_varobj_ops>: New field.
1680 * ada-lang.c: Include "varobj.h"
1681 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1683 * c-lang.c: Include "varobj.h"
1684 (c_language_defn): Initialize field 'la_varobj_ops' with
1686 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1688 (asm_language_defn): Initialize field 'la_varobj_ops' with
1690 (minimal_language_defn): Likewise.
1691 * d-lang.c (d_language_defn): Likewise.
1692 * f-lang.c (f_language_defn): Likewise.
1693 * go-lang.c (go_language_defn): Likewise.
1694 * m2-lang.c (m2_language_defn): Likewise.
1695 * objc-lang.c (objc_language_defn): Likewise.
1696 * opencl-lang.c (opencl_language_defn): Likewise.
1697 * p-lang.c (pascal_language_defn): Likewise.
1698 * language.c (unknown_language_defn): Likewise.
1699 (auto_language_defn): Likewise.
1700 (local_language_defn): Likewise.
1701 * jv-lang.c (java_language_defn): Initialize field
1702 'la_varobj_ops' with java_varobj_ops.
1703 * varobj.c (varobj_create): Update.
1704 * varobj.h (default_varobj_ops): Define macro.
1706 2013-10-25 Pedro Alves <palves@redhat.com>
1708 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1710 (cp_print_static_field): If the value is entirely optimized out,
1711 print <optimized out> here.
1712 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1714 * p-valprint.c (pascal_object_print_static_field): If the value is
1715 entirely optimized out, print <optimized out> here.
1716 * valops.c (do_search_struct_field)
1717 (value_struct_elt_for_reference): No longer handle a NULL static
1719 * value.c (value_static_field): Return an optimized out value
1722 2013-10-25 Yao Qi <yao@codesourcery.com>
1724 * remote.c (remote_traceframe_info): Return early if
1725 traceframe is not selected.
1727 2013-10-25 Yao Qi <yao@codesourcery.com>
1729 * tracepoint.c (traceframe_fun): Remove.
1730 (traceframe_sal): Remove.
1731 (set_traceframe_context): Add local variables.
1733 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1735 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1738 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1740 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1741 failure from register information collection.
1743 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1745 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1747 (linux_corefile_thread_callback): Update accordingly.
1748 (linux_make_corefile_notes): Likewise.
1750 2013-10-24 Pedro Alves <palves@redhat.com>
1752 * NEWS (New options): Mention set/show startup-with-shell.
1753 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1755 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1756 startup-with-shell'.
1757 (show_startup_with_shell): New function.
1758 (_initialize_fork_child): Register the set/show startup-with-shell
1760 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1761 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1762 * procfs.c (procfs_init_inferior): Remove comment.
1763 * infcmd.c (startup_with_shell): New global.
1764 * inferior.h (startup_with_shell): Declare global.
1765 (STARTUP_WITH_SHELL): Delete.
1766 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1768 2013-10-23 Pedro Alves <palves@redhat.com>
1770 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1771 * common/signals.c: Include "gdb_assert.h".
1772 (signals): New field 'symbol'.
1773 (SET): Use the 'symbol' parameter.
1774 (gdb_signal_to_symbol_string): New function.
1775 * infrun.c (handle_inferior_event) <random signal>: In debug
1776 output, print the random signal enum as string in addition to its
1778 * target/waitstatus.c (target_waitstatus_to_string): Print the
1779 signal's enum value as string instead of the (POSIX) signal name.
1781 2013-10-23 Gary Benson <gbenson@redhat.com>
1784 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1785 from 32 to 18. Adjusted fscanf format string accordingly.
1786 (Avoids leaving cmd unterminated.)
1787 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1788 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1789 that local_address and remote_address will not overflow.
1790 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1791 leaving dependencies unterminated. Parse size as "%u" to match
1794 2013-10-22 Pedro Alves <palves@redhat.com>
1796 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1797 set ecs->random signal.
1799 2013-10-22 Pedro Alves <palves@redhat.com>
1801 * infrun.c (keep_going): Update comments.
1803 2013-10-22 Pedro Alves <palves@redhat.com>
1805 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1806 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1808 2013-10-22 Pedro Alves <palves@redhat.com>
1810 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1812 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1813 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1814 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1815 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1816 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1817 (GDB_SIGNAL_LAST): Change description string.
1818 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1819 Adjust to signal renaming.
1820 * darwin-nat.c (darwin_decode_message): Likewise.
1822 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1824 * MAINTAINERS (Write After Approval): Add myself to the list.
1826 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1828 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1829 forced off, downgrade them to software watchpoints if possible,
1830 and error out if not possible.
1831 (watch_command_1): Move watchpoint type selection closer to
1832 watchpoint creation, and extend the comments.
1834 2013-10-18 Pedro Alves <palves@redhat.com>
1837 * infrun.c (handle_inferior_event): Keep going if we got a random
1838 signal we should not stop for, instead of falling through to the
1841 2013-10-18 Yao Qi <yao@codesourcery.com>
1843 * c-varobj.c (cplus_number_of_children): Fix indentation.
1845 2013-10-17 Tom Tromey <tromey@redhat.com>
1848 * printcmd.c (printcmd): Call gdb_flush.
1850 2013-10-17 Tom Tromey <tromey@redhat.com>
1852 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1853 (elf_locate_sections): Update.
1855 2013-10-17 Yao Qi <yao@codesourcery.com>
1857 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1858 * ada-varobj.c: Remove the include of ada-varobj.h.
1859 (ada_varobj_get_number_of_children): Declare.
1860 (ada_varobj_get_name_of_child): Make it static.
1861 (ada_varobj_get_path_expr_of_child): Likewise.
1862 (ada_varobj_get_value_of_child): Likewise.
1863 (ada_varobj_get_type_of_child): Likewise.
1864 (ada_varobj_get_value_of_array_variable): Likewise.
1865 * ada-varobj.h: Remove.
1867 2013-10-17 Yao Qi <yao@codesourcery.com>
1869 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1870 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1871 * ada-varobj.c: Include "varobj.h".
1872 (ada_number_of_children): New. Moved from varobj.c.
1873 (ada_name_of_variable, ada_name_of_child): Likewise.
1874 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1875 (ada_type_of_child, ada_value_of_variable): Likewise.
1876 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1877 (ada_varobj_ops): New.
1878 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1879 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1880 * gdbtypes.h (get_target_type): Declare.
1881 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1883 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1884 (ANONYMOUS_UNION_NAME): Likewise.
1885 (get_type, get_value_type, get_target_type): Remove declarations.
1886 (value_get_print_value, varobj_value_get_print_value): Likewise.
1887 (c_number_of_children, c_name_of_variable): Likewise.
1888 (c_name_of_child, c_path_expr_of_child): Likewise.
1889 (c_value_of_child, c_type_of_child): Likewise.
1890 (c_value_of_variable, cplus_number_of_children): Likewise.
1891 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1892 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1893 (cplus_value_of_child, cplus_type_of_child): Likewise.
1894 (cplus_value_of_variable, java_number_of_children): Likewise.
1895 (java_name_of_variable, java_name_of_child): Likewise.
1896 (java_path_expr_of_child, java_value_of_child): Likewise.
1897 (java_type_of_child, java_value_of_variable): Likewise.
1898 (ada_number_of_children, ada_name_of_variable): Likewise.
1899 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1900 (ada_value_of_child, ada_type_of_child): Likewise.
1901 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1902 (ada_value_has_mutated): Likewise.
1903 (struct language_specific): Move it to varobj.h.
1904 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1905 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1907 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1909 (is_anonymous_child): Move it to c-varobj.c and rename to
1910 varobj_is_anonymous_child. Caller update.
1911 (get_type): Move it to c-varobj.c.
1912 (get_value_type): Rename it varobj_get_value_type. Make it
1914 (get_target_type): Move it gdbtypes.c.
1915 (varobj_formatted_print_options): New function.
1916 (value_get_print_value): Rename it to
1917 varobj_value_get_print_value and make it extern.
1918 (varobj_value_is_changeable_p): Make it extern.
1919 (adjust_value_for_child_access): Move it to c-varobj.c.
1920 (default_value_is_changeable_p): Rename it to
1921 varobj_default_value_is_changeable_p. Make it extern.
1922 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1923 (c_name_of_child, c_path_expr_of_child): Likewise.
1924 (c_value_of_child, c_type_of_child): Likewise.
1925 (c_value_of_variable, cplus_number_of_children): Likewise.
1926 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1927 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1928 (cplus_value_of_child, cplus_type_of_child): Likewise.
1929 (cplus_value_of_variable): Likewise.
1930 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1931 (java_name_of_child, java_path_expr_of_child): Likewise.
1932 (java_value_of_child, java_type_of_child): Likewise.
1933 (java_value_of_variable): Likewise.
1934 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1935 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1936 (ada_value_of_child, ada_type_of_child): Likewise.
1937 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1938 (ada_value_has_mutated): Likewise.
1939 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1940 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1941 (c_varobj_ops, cplus_varobj_ops): Declare.
1942 (java_varobj_ops, ada_varobj_ops): Declare.
1943 (varobj_default_value_is_changeable_p): Declare.
1944 (varobj_value_is_changeable_p): Declare.
1945 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1946 (varobj_get_path_expr_parent): Declare.
1947 (varobj_value_get_print_value): Declare.
1948 (varobj_formatted_print_options): Declare.
1949 (varobj_restrict_range): Declare.
1951 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1953 * target/waitstatus.h (target_waitkind): Remove spurious
1954 character from the comments.
1956 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1958 * gdbarch.sh (get_longjmp_target): Add method documentation.
1959 * gdbarch.h: Regenerate.
1961 2013-10-16 Tom Tromey <tromey@redhat.com>
1963 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1966 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1968 * gcore.in: Call GDB using the full path to the gcore script.
1969 Error out if the GDB binary is not found.
1971 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1974 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1977 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1980 * target.c (target_disable_btrace): Fix invalid return value for
1982 (target_teardown_btrace): Likewise.
1984 2013-10-14 Yao Qi <yao@codesourcery.com>
1986 * varobj.c (struct varobj): Move most of the fields to
1988 (struct varobj_dynamic): New struct.
1989 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1990 (varobj_has_more): Likewise.
1991 (dynamic_varobj_has_child_method): Likewise.
1992 (update_dynamic_varobj_children): Likewise.
1993 (varobj_get_num_children): Likewise.
1994 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1995 (install_new_value_visualizer): Likewise.
1996 (install_new_value_visualizer, install_new_value): Likewise.
1997 (varobj_update, new_variable, free_variable): Likewise.
1998 (my_value_of_variable, value_get_print_value): Likewise.
1999 (install_visualizer): Change the type of parameter 'var' to
2000 'struct varobjd_dynamic *'. Callers update.
2001 * varobj.h (struct varobj): Moved from varobj.c.
2002 (struct varobj) <dynamic>: New field.
2004 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2006 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2007 as the preferred name of r30.
2008 * nios2-linux-tdep.c (reg_offsets): Likewise.
2009 * features/nios2-cpu.xml: Likewise.
2010 * features/nios2-linux.c: Regenerated.
2011 * features/nios2.c: Regenerated.
2012 * regformats/nios2-linux.dat: Regenerated.
2014 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Canonicalize directories for EXEC_FILENAME.
2017 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2019 * utils.c (gdb_realpath_keepfile): New function.
2020 * utils.h (gdb_realpath_keepfile): New declaration.
2022 2013-10-11 Doug Evans <dje@google.com>
2024 * Makefile.in (GDBFLAGS): New variable.
2027 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2029 * NEWS: Add entry documenting the new "-catch-assert" and
2030 "-catch-exception" GDB/MI commands.
2032 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2034 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2036 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2037 "enabled". Set B->ENABLE_STATE accordingly.
2038 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2040 (create_ada_exception_catchpoint): Add declaration.
2041 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2042 (create_ada_exception_catchpoint): Make non-static. Add new
2043 parameter "disabled". Use it in call to
2044 init_ada_exception_breakpoint.
2045 (catch_ada_exception_command): Add parameter "enabled" in call
2046 to create_ada_exception_catchpoint.
2047 (catch_assert_command): Likewise.
2049 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2051 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2052 "catch-exception" commands.
2053 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2054 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2056 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2058 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2059 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2060 of all its enumerates with "ada_". Update the rest of this
2063 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2065 * ada-lang.c (ada_decode_exception_location): Delete.
2066 (create_ada_exception_catchpoint): Remove arguments "sal",
2067 "addr_string" and "ops". Add argument "ex_kind" instead.
2068 Adjust implementation accordingly, calling ada_exception_sal
2069 to get the entities it no longer gets passed as arguments.
2070 Document the function's arguments.
2071 (catch_ada_exception_command): Use catch_ada_exception_command_split
2072 instead of ada_decode_exception_location, and update call to
2073 create_ada_exception_catchpoint.
2074 (catch_ada_assert_command_split): Renames
2075 ada_decode_assert_location. Remove parameters "addr_string" and
2076 "ops", and now returns void. Adjust implementation accordingly.
2077 Update the function documentation.
2078 (catch_assert_command): Use catch_ada_assert_command_split
2079 instead of ada_decode_assert_location. Update call to
2080 create_ada_exception_catchpoint.
2082 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2084 * utils.h (perror_warning_with_name): Add declaration.
2085 * utils.c (perror_warning_with_name): New function.
2086 * cli/cli-cmds.c (source_script_with_search): Add call to
2087 perror_warning_with_name if from_tty is nul.
2089 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2091 * utils.c (perror_string): New function, extracted out of
2092 throw_perror_with_name.
2093 (throw_perror_with_name): Rework to use perror_string.
2095 2013-10-11 Yao Qi <yao@codesourcery.com>
2097 * remote.c (discard_pending_stop_replies_in_queue): Update
2099 (struct stop_reply) <rs>: New field.
2100 (remove_stop_reply_of_remote_state): New function.
2101 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2102 Callers update. Pass remove_stop_reply_of_remote_state to
2104 (remote_parse_stop_reply): Initialize field 'rs'.
2106 2013-10-10 Will Newton <will.newton@linaro.org>
2108 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2111 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2113 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2114 serial_baud_show_cmd.
2115 (_initialize_cli_cmds): Delete the code creating the
2116 "set/show remotebaud" commands.
2117 * serial.c (baud_rate): Move here from top.c.
2118 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2119 (_initialize_serial): Create "set/show serial baud" commands.
2120 Add "set/show remotebaud" command aliases.
2121 * top.c (baud_rate): Moved to serial.c.
2122 * NEWS: Document the new "set/show serial baud" commands,
2123 replacing "set/show remotebaud".
2125 2013-10-09 Pedro Alves <palves@redhat.com>
2127 * breakpoint.c (insert_bp_location): Use memory_error_message to
2128 build the memory error string.
2129 * c-lang.c: Include "gdbcore.h".
2130 (c_get_string): Use memory_error to throw error.
2131 (target_xfer_memory_error): Delete.
2132 (memory_error_message): New, factored out from
2133 target_xfer_memory_error.
2134 (memory_error): Change parameter type to target_xfer_error.
2136 (read_memory): Use memory_error instead of
2137 target_xfer_memory_error.
2138 * gdbcore.h: Include "target.h".
2139 (memory_error): Change parameter type to target_xfer_error.
2140 (memory_error_message): Declare function.
2141 * target.c (target_read_memory, target_read_stack)
2142 (target_write_memory, target_write_raw_memory): Return
2143 TARGET_XFER_E_IO on error. Adjust comments.
2144 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2146 * target.h (target_read, target_insert_breakpoint)
2147 (target_remove_breakpoint): Adjust comments.
2148 * valprint.c (partial_memory_read): Rename parameter, and adjust
2150 (val_print_string): Use memory_error_message to build the memory
2153 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2156 result variable. Rename variable fopen_e_ever_failed to
2157 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2159 2013-10-09 Pedro Alves <palves@redhat.com>
2161 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2162 (monitor_write_memory_longlongs, monitor_write_memory_block):
2163 Constify 'myaddr' parameter.
2164 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2166 (monitor_xfer_partial): New function.
2167 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2168 hook. Install a to_xfer_partial hook.
2170 2013-10-09 Tom Tromey <tromey@redhat.com>
2172 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2173 bfd_get_alt_debug_link_info.
2175 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 New flag OBJF_NOT_FILENAME.
2178 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2179 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2181 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2182 symbol_file_add_from_bfd.
2183 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2185 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2187 * objfiles.h (OBJF_NOT_FILENAME): New.
2189 2013-10-08 Tom Tromey <tromey@redhat.com>
2191 * Makefile.in (SFILES): Add build-id.c.
2192 (HFILES_NO_SRCDIR): Add build-id.h.
2193 * build-id.c: New file, largely from elfread.c. Modified
2195 * build-id.h: New file.
2196 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2197 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2198 Search for dwz file using build-id.
2199 * elfread.c (build_id_bfd_get, build_id_verify)
2200 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2202 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2204 * ada-lang.c (compare_names_with_case): Renamed from
2205 compare_names, adding a new parameter "casing" and its handling.
2206 New function documentation.
2207 (compare_names): New function, implemented using
2208 compare_names_with_case.
2210 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2212 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2214 2013-10-07 Tom Tromey <tromey@redhat.com>
2216 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2217 demangled_names_hash.
2218 (free_objfile): Don't delete the demangled_names_hash.
2219 * objfiles.h (struct objfile_per_bfd_storage)
2220 <demangled_names_hash>: New field.
2221 (struct objfile) <demangled_names_hash>: Move to
2222 objfile_per_bfd_storage.
2223 * symfile.c (reread_symbols): Don't delete the
2224 demangled_names_hash.
2225 * symtab.c (create_demangled_names_hash): Update.
2226 (symbol_set_names): Update.
2228 2013-10-07 Tom Tromey <tromey@redhat.com>
2230 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2231 needs_relocations>: New fields.
2232 (gdb_bfd_requires_relocations): New function.
2233 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2234 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2235 the BFD needs relocations applied.
2237 2013-10-07 Pedro Alves <palves@redhat.com>
2239 PR breakpoints/11568
2240 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2241 the thread list" instead of "gone".
2243 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2245 * NEWS: Mention new convenience variable $_exitsignal.
2246 * corelow.c (core_open): Reset exit convenience variables. Set
2247 $_exitsignal to the uncaught signal which generated the corefile.
2248 * infrun.c (handle_inferior_event): Reset exit convenience
2249 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2250 (clear_exit_convenience_vars): New function.
2251 * inferior.h (clear_exit_convenience_vars): New prototype.
2253 2013-10-06 Yao Qi <yao@codesourcery.com>
2255 * varobj.h: Add comments to enum varobj_languages.
2257 2013-10-04 Doug Evans <dje@google.com>
2259 Add support for DWP file format version 2.
2260 * NEWS: Mention support for DWP file format version 2.
2261 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2262 union of asection, containing_section. New fields virtual_offset
2263 and is_virtual. Change type of readin filed from int to char.
2264 (dwo_sections, dwo_file): Tweak comments.
2265 (dwp_v2_section_ids): New enum.
2266 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2268 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2270 (virtual_v2_dwo_sections): New struct.
2271 (dwp_hash_table): New fields version, nr_columns. Change type of
2272 section_pool field to a union.
2273 (dwp_file): New field version.
2274 (dwarf2_has_info): Check for virtual sections.
2275 (get_containing_section): New function.
2276 (get_section_bfd_owner, get_section_bfd_section): Call it.
2277 (dwarf2_locate_sections): Update.
2278 (dwarf2_section_empty_p): Update.
2279 (dwarf2_read_section): Handle virtual sections.
2280 (locate_dwz_sections): Update.
2281 (create_dwp_hash_table): Document and handle V2 format.
2282 (locate_v1_virtual_dwo_sections): Renamed from
2283 locate_virtual_dwo_sections and update. All callers updated.
2284 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2285 Delete arg htab. Rename arg section_index to unit_index.
2286 All callers updated.
2287 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2289 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2290 (lookup_dwo_unit_in_dwp): Add V2 support.
2291 (dwarf2_locate_dwo_sections): Update.
2292 (dwarf2_locate_common_dwp_sections): Renamed from
2293 dwarf2_locate_dwp_sections and update. All callers updated.
2294 (dwarf2_locate_v2_dwp_sections): New function.
2295 (open_and_init_dwp_file): Add V2 support.
2296 (read_str_index): New locals str_section, str_offsets_section.
2298 2013-10-04 Pedro Alves <palves@redhat.com>
2300 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2301 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2302 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2303 describing comments with references to ptid.h.
2304 * common/ptid.h: Remove intro description of constructors,
2305 accessors and predicates.
2306 (struct ptid): Reformat.
2307 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2308 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2309 describing comments.
2311 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2313 * aix-thread.c (sync_threadlists): Add missing ')' in call
2316 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2318 * procfs.c (procfs_init_inferior): Fix typo causing the build
2321 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2323 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2325 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2327 * mi/mi-main.c (run_one_inferior): Add function description.
2328 Make ARG a pointer to an integer whose value determines whether
2329 we should "run" or "start" the program.
2330 (mi_cmd_exec_run): Add handling of the "--start" option.
2331 Reject all other command-line options.
2332 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2334 2013-10-04 Yao Qi <yao@codesourcery.com>
2336 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2337 (struct notif_client) <pending_event>: Moved
2338 to struct remote_notif_state.
2340 (struct remote_notif_state) <pending_event>: New field.
2341 (notif_event_xfree): Declare.
2342 * remote-notif.c (handle_notification): Adjust.
2343 (notif_event_xfree): New function.
2344 (do_notif_event_xfree): Call notif_event_xfree.
2345 (remote_notif_state_xfree): Call notif_event_xfree to free
2346 each element in field pending_event.
2347 * remote.c (discard_pending_stop_replies): Remove declaration.
2348 (discard_pending_stop_replies_in_queue): Declare.
2349 (remote_close): Call discard_pending_stop_replies_in_queue
2350 instead of discard_pending_stop_replies.
2351 (remote_start_remote): Adjust.
2352 (stop_reply_xfree): Call notif_event_xfree.
2353 (notif_client_stop): Adjust initialization.
2354 (remote_notif_remove_all): Rename it to ...
2355 (remove_stop_reply_for_inferior): ... this. Update comments.
2356 Don't check INF is NULL.
2357 (discard_pending_stop_replies): Return early if notif_state is
2358 NULL. Adjust. Don't check INF is NULL.
2359 (remote_notif_get_pending_events): Adjust.
2360 (discard_pending_stop_replies_in_queue): New function.
2361 (remote_wait_ns): Likewise.
2363 2013-10-04 Yao Qi <yao@codesourcery.com>
2365 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2366 (notif_queue): Remove.
2367 (remote_notif_process): Add one parameter 'notif_queue'.
2368 Update comments. Callers update.
2369 (remote_async_get_pending_events_token): Remove.
2370 (remote_notif_register_async_event_handler): Remove.
2371 (remote_notif_unregister_async_event_handler): Remove.
2372 (handle_notification): Add parameter 'notif_queue'. Update
2373 comments. Callers update.
2374 (notif_xfree): Remove.
2375 (remote_notif_state_allocate): New function.
2376 (remote_notif_state_xfree): New function.
2377 (_initialize_notif): Remove code to allocate queue.
2378 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2379 (struct remote_notif_state): New.
2380 (handle_notification): Update declaration.
2381 (remote_notif_process): Likewise.
2382 (remote_notif_register_async_event_handler): Remove.
2383 (remote_notif_unregister_async_event_handler): Remove.
2384 (remote_notif_state_allocate): Declare.
2385 (remote_notif_state_xfree): Declare.
2386 * remote.c (struct remote_state) <notif_state>: New field.
2387 (remote_close): Don't call
2388 remote_notif_unregister_async_event_handler. Call
2389 remote_notif_state_xfree.
2390 (remote_open_1): Don't call
2391 remote_notif_register_async_event_handler. Call
2392 remote_notif_state_allocate.
2394 2013-10-04 Yao Qi <yao@codesourcery.com>
2396 * varobj.c (create_child_with_value): Remove 'const' from the
2397 type of parameter 'name'.
2398 (varobj_add_child): Likewise.
2399 (install_dynamic_child): Remove 'const' from the type of
2401 (varobj_add_child): Likewise.
2402 (create_child_with_value): Likewise. Update comments. Don't
2404 (update_dynamic_varobj_children): Duplicate 'name'
2405 and pass it to install_dynamic_child.
2407 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2409 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2410 conversion logic to occur after PyLong_Check. Comment on order
2411 change significance.
2412 * python/py-arch.c (archpy_disassemble): Comment on order of
2413 conversion for integers and longs.
2415 2013-10-03 Pedro Alves <palves@redhat.com>
2417 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2418 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2419 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2420 PTRACE_O_TRACEFORK is not supported.
2421 (linux_test_for_tracesysgood): New function.
2422 (linux_test_for_tracefork): New function, factored out from
2423 linux_check_ptrace_features, and also don't kill child_pid here.
2425 2013-10-03 Tristan Gingold <gingold@adacore.com>
2427 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2428 Remove verbose error reporting. Use detected state to
2429 thread_set_state call.
2430 (i386_darwin_dr_get): Fix return type. Remove verbose error
2432 Remove trailing spaces.
2434 2013-10-02 Pedro Alves <palves@redhat.com>
2436 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2437 val_print_optimized_out.
2438 * jv-valprint.c (java_print_value_fields): Likewise.
2439 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2440 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2441 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2442 new optimized out value.
2443 * findvar.c (address_from_register): Likewise.
2444 * frame.c (put_frame_register): Tweak error string to say the
2445 register was not saved, rather than optimized out.
2446 * infcmd.c (default_print_one_register_info): Adjust call to
2447 val_print_optimized_out. Use value_of_register instead of
2448 get_frame_register_value.
2449 * mi/mi-main.c (output_register): Use value_of_register instead of
2450 get_frame_register_value.
2451 * valprint.c (valprint_check_validity): Likewise.
2452 (val_print_optimized_out): New value parameter. If the value is
2453 lval_register, print <not saved> instead.
2454 (value_check_printable, val_print_scalar_formatted): Adjust calls
2455 to val_print_optimized_out.
2456 * valprint.h (val_print_optimized_out): New value parameter.
2457 * value.c (struct value) <optimized_out>: Extend comment.
2458 (error_value_optimized_out): New function.
2459 (require_not_optimized_out): Use it. Use a different string for
2460 lval_register values.
2461 * value.h (error_value_optimized_out): New declaration.
2462 * NEWS: Mention <not saved>.
2464 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2466 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2467 strcmp to compare two symtab filenames.
2469 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2471 * symtab.c (search_symbols_equal): Delete.
2472 (sort_search_symbols_remove_dups): Replace call to
2473 search_symbols_equal by call to compare_search_syms,
2474 adjusting as necessary.
2476 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2479 * python/python.c: Document gdb.execute command in Python help.
2481 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2483 * python/py-frame.c (frame_info_to_frame_object): Use
2484 gdbpy_convert_exception. Clean up Python object on failure.
2486 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2488 * python/lib/gdb/command/frame_filters.py
2489 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2490 (ShowFrameFilterPriority.invoke): Ditto.
2492 2013-10-01 Keith Seitz <keiths@redhat.com>
2494 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2495 (parse_linespec): Make 'argptr' const.
2496 Remove temporary cast of 'argptr' to const char **.
2497 (decode_line_full): Pass const pointer to parse_linespec.
2498 (decode_line_1): Likewise.
2499 (decode_objc): Make local variable 'new_argptr' const.
2500 (find_function_symbols): Remove temporary cast to char *
2502 * objc-lang.c (find_imps): Make argument 'method' const.
2504 * objc-lang.h (find_imps): Likewise.
2506 2013-10-01 Keith Seitz <keiths@redhat.com>
2508 * completer.c (skip_quoted_chars): Make all arguments const.
2510 (skip_quoted): Likewise.
2511 * completer.h (skip_quoted_chars): Likewise.
2512 (skip_quoted): Likewise.
2513 * defs.h (skip_quoted): Remove duplicate declaration.
2514 * jv-exp.y: Include completer.h.
2515 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2516 * p-exp.y: Include completer.h.
2518 2013-10-01 Keith Seitz <keiths@redhat.com>
2520 * c-exp.y (parse_number): Make first argument const.
2521 Make a copy of the input to manipulate.
2522 (c_parse_escape): Make first argument const.
2523 Make local variable 'tokptr' const.
2524 (parse_string_or_char): Make first two arguments const.
2525 (macro_original_text): Make const.
2526 (lex_one_token): Make local variable 'tokstart' const.
2527 Likewise for local variables named 'p'.
2528 Cast away const for struct stoken (temporary).
2529 * c-lang.h (c_parse_escpae): Make first argument const.
2530 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2532 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2534 * f-exp.y (parse_number): Make first argument const.
2535 (match_string_literal): Make local variable 'tokstart'
2537 (yylex): Make local variable 'p' const.
2538 Cast away const for struct stoken (temporary).
2539 * go-exp.y (parse_number): Make first argument const.
2540 (parse_string_or_char): Likewise.
2541 Make local variable 'tokstart' const.
2542 (lex_one_token): Likewise for numerous locals called 'p'.
2543 Cast away const for struct stoken (temporary).
2544 * jv-exp.y (parse_number): Make first argument const.
2545 Make local variables 'tokstart' and 'tokptr' const.
2546 Cast away const for call to skip_quoted (temporary).
2547 (yylex): Make local variable 'p' const.
2548 Cast away const for struct stoken (temporary).
2549 * m2-exp.y (parse_number): Make local variable 'p' const.
2550 (yylex): Likewise for 'tokstart'.
2551 Cast away const for struct stoken (temporary).
2552 Make local variable 'p' const.
2553 * macroexp.c (get_character_constant): Pass a const string
2555 (get_string_literal): Likewise.
2556 (macro_expand_next): Make first argument const.
2557 Cast away const for init_shared_buffer.
2558 * macroexp.h (macro_expand_next): Make first argument const.
2559 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2560 Pass a const string to c_parse_escape.
2561 Make local variables 'p' and 'namestart' const.
2562 * parse.c (lexptr): Make const.
2563 (prev_lexptr): Likewise.
2564 (find_template_name_end): Return const.
2565 Make argument const, too.
2566 (parse_exp_in_context): Make first argument const.
2567 Remove the entire const_hack.
2568 (parse_exp_in_context_1): Make first argument const.
2569 * parser-defs.h (find_template_name_end): Return const.
2570 Make argument const, too.
2571 (lexptr): Make const.
2572 (prev_lexptr): Likewise.
2573 * utils.c (parse_escape): Make second argument const.
2574 * utils.h (parse_escape): Likewise.
2576 2013-10-01 Keith Seitz <keiths@redhat.com>
2578 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2580 (block_lookup): Make 'raw_name' and 'name' const.
2581 * ada-lex.l (processString): Update for struct stoken.ptr.
2582 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2583 (operator_stoken): Likewise.
2584 (lex_one_token): Remove temporary cast to char * for
2586 * f-exp.y (yylex): Likewise.
2587 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2588 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2589 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2591 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2592 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2593 * linespec.c (struct ls_parser): Make 'stream' const.
2594 (find_parameter_list_end): Make argument 'input' and local
2596 (linespec_lexer_lex_string): Make local variables 'start' and
2598 Use skip_spaces_const instead of skip_spaces.
2599 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2601 (parse_linespec): Temporarily cast 'argptr' to const for
2602 'parser->lexer.stream'.
2603 * m2-exp.y (yylex): Remove temporary cast to char * for
2605 * objc-lang.c (add_msglist): Make local variable 'p' const.
2606 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2607 (exp : STRING): Make 'sp' const.
2608 (parse_number): Make argument 'p' const.
2609 * parser-defs.h (struct stoken): Make 'ptr' const.
2611 2013-10-01 Doug Evans <dje@google.com>
2613 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2615 2013-10-01 Yao Qi <yao@codesourcery.com>
2617 * varobj.c (c_value_of_root): Remove declaration.
2618 (cplus_value_of_root, java_value_of_root): Likewise.
2619 (ada_value_of_root): Likewise.
2620 (struct language_specific) <value_of_root>: Remove.
2621 (languages): Update initialization.
2622 (check_scope): Move earlier.
2623 (c_value_of_root): Move earlier and rename to ...
2624 (value_of_root_1): ... this.
2625 (value_of_root): Caller update.
2626 (cplus_value_of_root, java_value_of_root): Remove.
2627 (ada_value_of_root): Remove.
2629 2013-10-01 Yao Qi <yao@codesourcery.com>
2631 * varobj.c (varobj_format_string): Remove "unknown".
2632 (languages): Remove the first element.
2633 * varobj.h (enum varobj_languages): Remove vlang_c.
2635 2013-10-01 Yao Qi <yao@codesourcery.com>
2637 * varobj.c (struct language_specific) <language>: Remove.
2638 (languages): Update the initialization.
2640 2013-10-01 Yao Qi <yao@codesourcery.com>
2642 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2643 "solib-target.h". Include "windows-tdep.h".
2644 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2645 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2646 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2647 windows-tdep.o to gdb_target_obs.
2649 2013-10-01 Yao Qi <yao@codesourcery.com>
2651 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2653 (amd64_windows_init_abi): Don't call set_solib_ops and
2654 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2655 windows_init_abi instead.
2656 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2658 (i386_cygwin_init_abi): Don't call set_solib_ops,
2659 set_gdbarch_has_dos_based_file_system and
2660 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2661 windows_init_abi instead.
2662 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2663 (windows_init_abi): New function.
2664 (windows_iterate_over_objfiles_in_search_order): Make it
2666 * windows-tdep.h (windows_init_abi): Declare.
2667 (windows_iterate_over_objfiles_in_search_order): Remove
2670 2013-10-01 Jerome Guitton <guitton@adacore.com>
2672 Checked in by Joel Brobecker <brobecker@adacore.com>
2673 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2674 incomplete dictionnary instead of None in case of missing
2675 environment variables.
2676 (elinos_init): in case of an incomplete environment, best
2677 effort to load system libraries instead of abort.
2679 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2681 * ada-lang.c (ada_has_this_exception_support): Ignore
2682 mst_solib_trampoline minimal symbols.
2684 2013-09-30 Tristan Gingold <gingold@adacore.com>
2686 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2687 hardware watchpoint.
2688 (i386_darwin_dr_set): Support 32 and 64 bit states.
2689 (i386_darwin_dr_get): Likewise.
2690 (i386_darwin_dr_set_control): Make static.
2691 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2692 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2694 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2696 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2697 Replace TIDGET with ptid_get_lwp.
2698 Replace GET_LWP with ptid_get_lwp.
2699 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2700 Replace BUILD_THREAD with ptid_build.
2701 Replace BUILD_LWP with ptid_build.
2702 Replace PIDGET with ptid_get_pid.
2703 Replace TIDGET with ptid_get_lwp.
2704 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2705 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2706 Replace TIDGET with ptid_get_lwp.
2707 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2708 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2709 Replace TIDGET with ptid_get_lwp.
2710 Replace GET_LWP with ptid_get_lwp.
2711 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2713 * breakpoint.c: Likewise.
2714 * common/ptid.c (ptid_is_pid): Condense check for
2715 null_ptid and minus_one_ptid.
2716 (ptid_lwp_p): New function.
2717 (ptid_tid_p): New function.
2718 * common/ptid.h: Update comments for accessors.
2719 (ptid_lwp_p): New prototype.
2720 (ptid_tid_p): New prototype.
2721 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2722 * gcore.c: Replace PIDGET with ptid_get_pid.
2723 * gdbthread.h: Likewise.
2724 * gnu-nat.c: Likewise.
2725 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2726 Replace TIDGET with ptid_get_lwp.
2727 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2728 * hppanbsd-nat.c: Likewise.
2729 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2730 Replace TIDGET with ptid_get_lwp.
2731 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2732 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2733 * infcmd.c: Likewise.
2734 * inferior.h: Likewise.
2735 * inflow.c: Likewise.
2736 * infrun.c: Likewise.
2737 * linux-fork.c: Likewise.
2738 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2739 Replace GET_PID with ptid_get_pid.
2740 Replace is_lwp with ptid_lwp_p.
2741 Replace GET_LWP with ptid_get_lwp.
2742 Replace BUILD_LWP with ptid_build.
2744 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2746 * common/linux-btrace.c: Move sys/syscall.h out of the
2747 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2748 Also check for SYS_perf_event_open before attempting to buid.
2750 2013-09-27 Doug Evans <dje@google.com>
2752 * dwarf2read.c (dwarf2_section_info): Add comment.
2753 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2755 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2756 (dwarf2_read_section): Delete unused local "header". Add section
2757 name to error message.
2758 (create_dwo_in_dwp): Tweak comment.
2759 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2761 * dwarf2read.c (die_reader_specs): Tweak comment.
2762 (get_section_bfd_owner, get_section_bfd_section): New functions.
2763 (get_section_name, get_section_file_name): New functions.
2764 (get_section_id, get_section_flags): New functions.
2765 (*): Use new functions to access section fields.
2767 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2768 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2769 arg "htab". All callers updated.
2770 (create_debug_types_hash_table): Remove redundant copy of
2772 (create_dwo_in_dwp): Tweak comments.
2773 (read_str_index): Tweak comment. Record dwarf form name in static
2776 2013-09-27 Pedro Alves <palves@redhat.com>
2778 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2779 (remote_filename_p): Add comment.
2780 * remote.c (remote_filename_p): Adjust to use
2781 REMOTE_SYSROOT_PREFIX.
2782 * solib.c (solib_find): When deciding whether we need to add a
2783 directory separator, check whether the sysroot is "remote:"
2784 instead of checking whether the patch has a drive spec. Add
2787 2013-09-27 Pedro Alves <palves@redhat.com>
2789 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2791 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2794 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2796 Fix set debug frame output.
2797 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2798 SENTINEL_FRAME entry lower to match enum frame_type order.
2800 2013-09-26 Pierre Muller <muller@sourceware.org>
2802 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2803 AMD64_R15_REGNUM when a register index is expected.
2804 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2805 Substitute in array.
2806 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2807 (amd64_push_arguments): Substitute in integer_regnum array.
2809 2013-09-25 Doug Evans <dje@google.com>
2811 * objfiles.c (allocate_objfile): Move comment to better place.
2813 New option "set debug symfile on".
2814 * NEWS: Mention "set debug symfile".
2815 * Makefile.in (SFILES): Add symfile-debug.c.
2816 (COMMON_OBS): Add symfile-debug.o.
2817 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2818 objfile's symbol functions.
2819 * objfiles.h (objfile_set_sym_fns): Declare.
2820 * symfile-debug.c: New file.
2821 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2822 objfile's symbol functions.
2823 (reread_symbols): Ditto.
2825 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2827 (add_symtab_fns): Update prototype.
2828 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2829 (registered_sym_fns): ... this.
2830 (symtab_fns): Update.
2831 (add_symtab_fns): New arg "flavour". All callers updated.
2832 (find_sym_fns): Rewrite to use new sym_fns registry.
2834 * symfile.h (struct sym_fns): Add "objfile" argument to
2835 sym_read_linetable. All uses updated.
2837 * symtab.c (domain_name, search_domain_name): New functions.
2838 * symtab.h (domain_name, search_domain_name): Declare.
2840 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2841 map_matching_symbols so objfile is first. All uses updated.
2842 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2843 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2845 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2851 2013-09-24 Doug Evans <dje@google.com>
2853 * objfiles.c (free_objfile): Move comment.
2855 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2857 * ada-exp.y (string_to_operator): Delete.
2858 (dummy_string_to_ada_operator): Delete.
2860 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2863 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2865 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2866 call_dummy_integer_regs, and classify.
2867 * amd64-tdep.h (amd64_classify): Add declaration.
2868 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2869 (amd64_reg_class): Delete, moved to i386-tdep.h.
2870 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2871 Replace call to amd64_classify by call to tdep->classify.
2872 (amd64_push_arguments): Get the list of registers to use for
2873 passing integer parameters from the gdbarch tdep structure,
2874 rather than using a hardcoded one. Replace calls to amd64_classify
2875 by calls to tdep->classify.
2876 (amd64_push_dummy_call): Get the register number used for
2877 the "hidden" argument from tdep->call_dummy_integer_regs.
2878 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2879 and tdep->call_dummy_integer_regs. Set tdep->classify.
2881 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2884 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2885 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2886 where tdep->memory_args_by_pointer is non-zero.
2888 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2891 * i386-tdep.h (struct gdbarch_tdep): Add new field
2892 integer_param_regs_saved_in_caller_frame.
2893 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2894 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2896 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2898 * amd64-windows-tdep.c: #include "value.h"
2899 (amd64_windows_classify): Delete.
2900 (amd64_windows_passed_by_integer_register)
2901 (amd64_windows_passed_by_xmm_register)
2902 (amd64_windows_passed_by_pointer)
2903 (amd64_windows_adjust_args_passed_by_pointer)
2904 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2905 (amd64_windows_push_dummy_call): New functions.
2906 (amd64_windows_init_abi): Remove setting of
2907 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2908 tdep->classify, tdep->memory_args_by_pointer and
2909 tdep->integer_param_regs_saved_in_caller_frame.
2910 Add call to set_gdbarch_push_dummy_call.
2912 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2915 objfile->original_name.
2917 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 Pass down original filename for objfile.
2920 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2921 * elfread.c (elf_symfile_read): Likewise.
2922 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2923 longer set ORIGINAL_NAME.
2924 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2925 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2926 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2927 symbol_file_add_from_bfd call.
2928 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2929 (macho_check_dsym): Add parameter filenamep. Change function comment.
2931 (macho_symfile_read): New variable dsym_filename. Update
2932 macho_check_dsym call. Use it for symbol_file_add_separate.
2933 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2934 it. Use it for objfile->original_name.
2935 (objfile_name): Return OBFD's filename, if available.
2936 * objfiles.h (allocate_objfile): Add new parameter name.
2937 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2938 * symfile-mem.c (symbol_file_add_from_memory): Update
2939 symbol_file_add_from_bfd call.
2940 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2942 (symbol_file_add_with_addrs): New parameter name, add function comment
2943 for it. Remove variable name. Update allocate_objfile call.
2944 (symbol_file_add_separate): New parameter name, add function comment
2945 for it. Update symbol_file_add_with_addrs call.
2946 (symbol_file_add_from_bfd): New parameter name. Update
2947 symbol_file_add_with_addrs call.
2948 (symbol_file_add): Update symbol_file_add_from_bfd call.
2949 (reread_symbols): New variable original_name. Save
2950 objfile->original_name by it.
2951 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2954 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2956 Code cleanup: Add objfile_name accessor function.
2957 * ada-lang.c (is_known_support_routine): Use objfile_name.
2958 * auto-load.c (source_gdb_script_for_objfile)
2959 (auto_load_objfile_script): Likewise.
2960 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2961 * dbxread.c (dbx_symfile_read): Likewise.
2962 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2963 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2964 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2965 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2966 (lookup_dwp_signatured_type, lookup_dwo_unit)
2967 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2968 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2969 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2970 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2971 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2972 (read_subrange_type, load_partial_dies, read_partial_die)
2973 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2974 (die_containing_type, build_error_marker_type, lookup_die_type)
2975 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2976 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2977 (get_DW_AT_signature_type, write_psymtabs_to_index)
2978 (save_gdb_index_command): Likewise.
2979 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2981 * expprint.c (dump_subexp_body_standard): Likewise.
2982 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2983 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2985 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2986 obj_name, use objfile_name for it, use the variable.
2987 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2989 * machoread.c (macho_symtab_read, macho_check_dsym)
2990 (macho_symfile_relocate): Likewise.
2991 * maint.c (maintenance_translate_address): Likewise.
2992 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2993 * minsyms.c (install_minimal_symbols): Likewise.
2994 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2996 (filter_overlapping_sections): Use objfile_name.
2997 (objfile_name): New function.
2998 * objfiles.h (struct objfile): Rename field name to original_name.
2999 (objfile_name): New prototype.
3000 * printcmd.c (sym_info, address_info): Use objfile_name.
3001 * probe.c (parse_probes, collect_probes, compare_probes)
3002 (info_probes_for_ops): Likewise.
3003 * progspace.c (clone_program_space): Likewise.
3004 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3005 (maintenance_info_psymtabs): Likewise.
3006 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3007 (source_section_scripts): Likewise.
3008 * python/py-objfile.c (objfpy_get_filename): Likewise.
3009 * python/py-progspace.c (pspy_get_filename): Likewise.
3010 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3011 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3012 * solib.c (solib_read_symbols): Likewise.
3013 * stabsread.c (scan_file_globals): Likewise.
3014 * stap-probe.c (handle_stap_probe): Likewise.
3015 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3016 (find_separate_debug_file_by_debuglink): Likewise.
3017 (reread_symbols): Likewise. Use the objfile field name renamed to
3019 (allocate_symtab): Use objfile_name.
3020 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3021 (dump_objfile, dump_msymbols, dump_symtab_1)
3022 (maintenance_print_msymbols, maintenance_print_objfiles)
3023 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3024 * target.c (target_translate_tls_address, target_info): Likewise.
3025 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3028 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3031 * probe.c (parse_probes): Rename variable objfile_name to
3034 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3036 Remove solib-sunos.c.
3037 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3038 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3039 * objfiles.c (rt_common_objfile): Remove.
3040 (free_objfile): Remove rt_common_objfile comparison.
3041 * objfiles.h (rt_common_objfile): Remove.
3042 * solib-sunos.c: Remove.
3043 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3045 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3047 Remove a.out NetBSD and OpenBSD hosts.
3048 * NEWS (Removed native configurations): New.
3049 * config/arm/nbsdaout.mh: Remove.
3050 * config/i386/nbsdaout.mh: Remove.
3051 * config/i386/obsdaout.mh: Remove.
3052 * config/m68k/nbsdaout.mh: Remove.
3053 * config/sparc/nbsdaout.mh: Remove.
3054 * config/vax/nbsdaout.mh: Remove.
3055 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3056 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3057 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3059 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3060 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3061 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3063 2013-09-23 Tom Tromey <tromey@redhat.com>
3065 * linespec.c (struct minsym_and_objfile): Remove.
3066 (minsym_and_objfile_d): Remove.
3067 (struct linespec, struct collect_info, linespec_parse_basic)
3068 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3069 (compare_msymbols, find_method, find_function_symbols)
3070 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3071 (add_minsym, search_minsyms_for_name): Update.
3073 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3075 * regcache.c: Add include of valprint.h.
3076 (dump_endian_bytes): Delete.
3077 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3079 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3081 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3083 2013-09-19 Pedro Alves <palves@redhat.com>
3085 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3088 2013-09-19 Pedro Alves <palves@redhat.com>
3089 Thomas Schwinge <thomas@codesourcery.com>
3090 Yue Lu <hacklu.newborn@gmail.com>
3092 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3093 Take a gdb_byte pointer instead of a char pointer.
3095 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3096 gnu_xfer_partial helper.
3097 (gnu_xfer_partial): New function.
3098 (gnu_target): Don't install a deprecated_xfer_memory hook.
3099 Install a to_xfer_partial hook.
3101 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 * main.c (captured_main): Replace catch_command_errors by
3105 catch_command_errors_const. Twice.
3106 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3107 (symbol_file_add): Make name parameter const.
3108 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3109 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3110 variable name. Change their usage accordingly.
3111 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3113 (symbol_file_add_main): Make args parameter const.
3115 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3116 Ulrich Weigand <uweigand@de.ibm.com>
3118 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3120 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3122 2013-09-18 Pedro Alves <palves@redhat.com>
3123 Yue Lu <hacklu.newborn@gmail.com>
3125 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3126 (gnu_create_inferior)
3127 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3128 (set_sig_thread_cmd): Use the lwpid field of ptids to
3129 store/extract thread ids instead of the tid field.
3130 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3132 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3134 * infcmd.c (default_print_one_register_info): Add detection of
3135 optimized out values.
3136 (default_print_registers_info): Switch to using
3137 get_frame_register_value.
3139 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3141 * infrun.c (handle_inferior_event): Check if we know the
3142 function start address before setting a resume breakpoint.
3144 2013-09-18 Pedro Alves <palves@redhat.com>
3146 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3147 minus_one_ptid instead of looking at the ptid's tid field and
3148 comparing that to -1.
3150 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3152 * main.h (get_gdb_program_name): Remove extra whitespace.
3154 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3156 * main.h (get_gdb_program_name): Add declaration.
3157 * main.c (get_gdb_program_name): Add definition.
3159 2013-09-17 Doug Evans <dje@google.com>
3161 * dwarf2read.c: Move definitions of complaint functions to after
3162 forward declarations of local functions.
3164 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3165 Pedro Alves <palves@redhat.com>
3168 * breakpoint.c (remove_threaded_breakpoints): New function.
3169 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3170 as thread_exit observer.
3172 2013-09-17 Pedro Alves <palves@redhat.com>
3175 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3176 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3177 * corelow.c (core_open):
3178 * frame.h (print_stack_frame, print_frame_info): New
3179 'set_current_sal' parameter.
3180 * infcmd.c (finish_command, kill_command): Adjust call to
3182 * inferior.c (inferior_command): Likewise.
3183 * infrun.c (normal_stop): Likewise.
3184 * linux-fork.c (linux_fork_context): Likewise.
3185 * record-full.c (record_full_goto_entry, record_full_restore):
3187 * remote-mips.c (common_open): Likewise.
3188 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3190 (print_frame_info): New 'set_current_sal' parameter. Set the last
3191 displayed sal depending on the new paremeter instead of looking at
3193 (backtrace_command_1, select_and_print_frame, frame_command)
3194 (current_frame_command, up_command, down_command): Adjust call to
3196 * thread.c (print_thread_info, restore_selected_frame)
3197 (do_captured_thread_select): Adjust call to print_stack_frame.
3198 * tracepoint.c (tfind_1): Likewise.
3199 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3200 (mi_cmd_stack_info_frame): Likewise.
3201 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3202 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3204 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3206 * value.c (isvoid_internal_fn): Replace "parameter" with
3209 2013-09-16 Stan Shebs <stan@codesourcery.com>
3211 * README: Update references to writing code for GDB.
3212 * configure.ac (build_warnings): Remove obsolete comment.
3213 * configure: Regenerate.
3214 * gdbarch.sh: Remove references to gdbint.texinfo.
3215 * gdbarch.h: Regenerate.
3216 * gdbtypes.c (objfile_type): Remove comments referencing internals
3219 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3221 * NEWS: Mention new convenience function $_isvoid.
3222 * value.c (isvoid_internal_fn): New function.
3223 (_initialize_values): Add new convenience function $_isvoid.
3225 2013-09-16 Pierre Muller <muller@sourceware.org>
3227 * arm-linux-tdep.c: Add "elf/common.h" header.
3228 Remove AT_HWCAP macro definintion as it is provided in
3230 * s390-tdep.c: Remove system header <elf.h>
3231 Add "elf/common.h" header for AT_HWCAP definition.
3232 (s390_core_read_description): Use correct CORE_ADDR
3233 for hwcap local variable used as third parameter
3234 of function target_auxv_search.
3236 2013-09-14 Pierre Muller <muller@sourceware.org>
3237 Tom Tromey <tromey@redhat.com>
3238 Pedro Alves <palves@redhat.com>
3240 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3241 mode if operating system doesn't know O_CLOEXEC.
3243 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3249 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251 * NEWS: Mention TDB support.
3252 * features/s390-tdb.xml: New file.
3253 * features/s390-te-linux64.xml: New file.
3254 * features/s390x-te-linux64.xml: New file.
3255 * features/Makefile (WHICH): Add new tdescs above.
3256 (s390-te-linux64-expedite): Set.
3257 (s390x-te-linux64-expedite): Set.
3258 * features/s390-te-linux64.c: New file (generated).
3259 * features/s390x-te-linux64.c: New file (generated).
3260 * regformats/s390-te-linux64.dat: New file (generated).
3261 * regformats/s390x-te-linux64.dat: New file (generated).
3262 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3263 (HWCAP_S390_TE): Likewise.
3264 (S390_TDB_DWORD0_REGNUM): Likewise.
3265 (S390_TDB_DWORD0_REGNUM): Likewise.
3266 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3267 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3268 (S390_TDB_ATIA_REGNUM): Likewise.
3269 (S390_TDB_R0_REGNUM): Likewise.
3270 (S390_TDB_R1_REGNUM): Likewise.
3271 (S390_TDB_R2_REGNUM): Likewise.
3272 (S390_TDB_R3_REGNUM): Likewise.
3273 (S390_TDB_R4_REGNUM): Likewise.
3274 (S390_TDB_R5_REGNUM): Likewise.
3275 (S390_TDB_R6_REGNUM): Likewise.
3276 (S390_TDB_R7_REGNUM): Likewise.
3277 (S390_TDB_R8_REGNUM): Likewise.
3278 (S390_TDB_R9_REGNUM): Likewise.
3279 (S390_TDB_R10_REGNUM): Likewise.
3280 (S390_TDB_R11_REGNUM): Likewise.
3281 (S390_TDB_R12_REGNUM): Likewise.
3282 (S390_TDB_R13_REGNUM): Likewise.
3283 (S390_TDB_R14_REGNUM): Likewise.
3284 (S390_TDB_R15_REGNUM): Likewise.
3285 (S390_NUM_REGS): Increase.
3286 (S390_IS_TDBREGSET_REGNUM): New macro.
3287 (s390_regmap_tdb): Declare.
3288 (s390_sizeof_tdbregset): Define.
3289 (tdesc_s390_te_linux64): Declare.
3290 (tdesc_s390x_te_linux64): Likewise.
3291 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3292 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3293 (s390_regmap_tdb): New regmap.
3294 (s390_supply_tdb_regset): New function.
3295 (s390_tdb_regset): New regset.
3296 (s390_linux64v2_regset_sections): Add TDB regset to list.
3297 (s390x_linux64v2_regset_sections): Likewise.
3298 (s390_regset_from_core_section): Recognize TDB core note section.
3299 (s390_core_read_description): If HWCAP indicates TE support,
3300 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3301 (s390_gdbarch_init): Handle TDB regset.
3302 (_initialize_s390_tdep): Initialize new tdescs.
3303 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3304 (have_regset_tdb): New variable.
3305 (s390_native_supply): Support register invalidation.
3306 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3307 (check_regset): Treat ENODATA as "regset exists".
3308 (s390_linux_fetch_inferior_registers): Add TDB.
3309 (s390_read_description): Check for TDB existence and select
3311 * gdbserver/Makefile.in (clean): Add removal of new makefile
3313 (s390-te-linux64.c): New makefile target.
3314 (s390x-te-linux64.c): Likewise.
3315 * gdbserver/configure.srv (srv_regobj): Append new objects
3316 s390-te-linux64.o and s390x-te-linux64.o.
3317 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3318 s390x-te-linux64.xml, and s390-tdb.xml.
3319 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3321 (tdesc_s390_te_linux64): Likewise.
3322 (init_registers_s390x_te_linux64): Likewise.
3323 (tdesc_s390x_te_linux64): Likewise.
3324 (s390_check_regset): Treat ENODATA as "regset exists".
3325 (s390_arch_setup): Add TDB regset support.
3326 (initialize_low_arch): Initialize registers for new tdescs.
3328 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3330 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3331 (S390_IS_FPREGSET_REGNUM): New macro.
3332 * s390-tdep.c (s390_dwarf_regmap): Make const.
3333 (regnum_is_gpr_full): New function for replacing repeated code.
3334 (s390_pseudo_register_name): Use it.
3335 (s390_pseudo_register_type): Likewise.
3336 (s390_pseudo_register_read): Likewise.
3337 (s390_pseudo_register_write): Likewise.
3338 (s390_unwind_pseudo_register): Likewise.
3339 (s390_regmap_gregset): New format for regmap.
3340 (s390x_regmap_gregset): Likewise.
3341 (s390_regmap_fpregset): Likewise.
3342 (s390_regmap_upper): Likewise.
3343 (s390_regmap_last_break): Likewise.
3344 (s390_regmap_system_call): Likewise.
3345 (s390_supply_regset): Adjust to new regmap format.
3346 (s390_collect_regset): Likewise.
3347 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3348 (s390_native_collect): Likewise.
3349 (supply_gregset): Likewise.
3350 (fill_gregset): Likewise.
3351 (supply_fpregset): Likewise.
3352 (fill_fpregset): Likewise.
3353 (fetch_regset): Likewise.
3354 (store_regset): Likewise.
3355 (s390_linux_fetch_inferior_registers): Likewise.
3356 (s390_linux_fetch_inferior_registers): Likewise.
3358 2013-09-12 Andrew Pinski <apinski@cavium.com>
3360 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3362 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3364 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3366 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3368 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3370 2013-09-06 Pedro Alves <palves@redhat.com>
3372 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3373 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3374 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3375 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3376 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3379 2013-09-06 Pedro Alves <palves@redhat.com>
3381 * remote-sim.c (dump_mem): Constify buf parameter.
3382 gdbsim_xfer_inferior_memory): Rename to ...
3383 (gdbsim_xfer_memory): ... this. Adjust interface as
3384 target_xfer_partial helper.
3385 (gdbsim_xfer_partial): New function.
3386 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3387 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3389 2013-09-06 Pedro Alves <palves@redhat.com>
3391 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3392 host_address_to_string, and send debug output to gdb_stdlog.
3394 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3396 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3397 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3398 gdb_target_obs for cris target.
3399 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3400 (cris_gdbarch_init): Move calls to
3401 set_gdbarch_fetch_tls_load_module_address and
3402 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3403 Add call to gdbarch_init_osabi.
3404 * cris-linux-tdep.c: New file.
3405 * cris-tdep.h: New file.
3407 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3409 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3410 to deprecated_init_ui_hook.
3412 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3414 * cli/cli-interp.c (_initialize_cli_interp): Add a
3415 command_loop_proc to interp_procs.
3416 * event-top.c (cli_command_loop): Change signature to match
3417 interp_command_loop_ftype.
3418 * event-top.h (cli_command_loop): Same.
3419 * interps.c (interp_new): Require every interpreter to have a
3421 (current_interp_command_loop): Just call the command_loop_proc on
3422 the current interpreter.
3423 * tui/tui-interp.c (_initialize_tui_interp): Add a
3424 command_loop_proc to interp_procs.
3426 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3428 * cris-tdep.c (cris_gdbarch_init): Add call to
3429 get_gdbarch_fetch_tls_load_module_address.
3431 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3433 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3434 (cris_elf_gregset_t): Rename from elf_gregset_t.
3435 (crisv32_elf_gregset_t): Adjust.
3436 (cris_supply_gregset, fetch_core_registers): Adjust.
3438 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3440 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3442 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3444 * defs.h (deprecated_command_loop_hook): Remove, including
3445 references in comments.
3446 * interps.c (current_interp_command_loop): No longer use
3447 deprecated_command_loop_hook.
3448 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3450 * top.c (deprecated_command_loop_hook): Remove.
3452 2013-09-05 Pedro Alves <palves@redhat.com>
3454 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3455 local is now int instead of ULONGEST. Print it with %d
3456 instead of paddress.
3458 2013-09-05 Tristan Gingold <gingold@adacore.com>
3460 * MAINTAINERS: Remove avr maintainership.
3462 2013-09-05 Pedro Alves <palves@redhat.com>
3464 * findvar.c (value_of_register): Rework in terms of
3465 value_of_register_lazy.
3467 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3469 * symfile.c (add_symbol_file_command): Remove trailing
3470 whitespaces and blank line after comment.
3472 2013-09-05 Pedro Alves <palves@redhat.com>
3474 * tui/tui-regs.c (tui_register_format): Don't look at the
3475 register's name here. Return string representing register
3476 value instead of storing it in the data element.
3477 (tui_get_register): Compare register string representations
3478 instead of register value states and contents.
3480 2013-09-05 Pedro Alves <palves@redhat.com>
3483 * tui/tui-regs.c (tui_show_registers): Show registers of the
3484 selected frame, not the current frame.
3486 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3488 * MAINTAINERS (Write After Approval): Add myself to the list.
3490 2013-09-04 Doug Evans <dje@google.com>
3492 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3493 (queue_and_load_dwo_tu): New function.
3494 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3495 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3496 Make dependent_cu optional.
3497 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3498 and an older .gdb_index is in use, queue and load all its TUs too.
3500 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3502 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3503 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3504 variable search_flags.
3505 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3506 (OPF_RETURN_REALPATH): ... here.
3507 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3508 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3510 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3512 * solib.c (solib_find): Likewise. Four times.
3513 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3514 in the function comment and for the realpath_fptr variable.
3515 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3516 (find_and_open_source): Likewise. Twice.
3517 * symfile.c (symfile_bfd_open): Likewise, also twice.
3519 2013-09-04 Doug Evans <dje@google.com>
3521 * progspace.c (save_current_space_and_thread): Remove unnecessary
3522 call to save_current_inferior.
3524 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3526 * sh64-tdep.c (sh64_do_register): Return after printing message
3527 about unavailable register contents.
3529 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3530 Pedro Alves <palves@redhat.com>
3532 * symfile.c (add_symbol_file_command): Error out on unknown
3533 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3534 options and collapse into single conditional branch.
3536 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3538 * inf-child.c (inf_child_follow_fork): New parameter
3540 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3541 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3542 * inferior.h (detach_fork): Remove.
3543 * infrun.c (detach_fork): Adjust comment and make it
3545 (follow_fork): Pass detach_fork parameter to
3547 * linux-nat.c (linux_child_follow_fork): New parameter
3549 * target.c (target_follow_fork): New parameter detach_fork.
3550 Pass detach_fork as parameter and print its value.
3551 * target.h (struct target_ops) <to_follow_fork>: New int
3553 (target_follow_fork): New parameter detach_fork.
3555 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3557 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3558 Replace sec->bfd by sec->the_bfd_section->owner.
3560 2013-09-03 Yao Qi <yao@codesourcery.com>
3562 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3563 from linux_has_shared_address_space.
3564 (linux_has_shared_address_space): Call linux_is_uclinux.
3565 * linux-tdep.h (linux_is_uclinux): Declare.
3566 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3569 2013-09-03 Yao Qi <yao@codesourcery.com>
3571 * config/djgpp/fnchange.lst: Remove entry of
3572 i386-interix-nat.c and i386-interix-tdep.c.
3573 * configure.ac: Remove '*-*-interix*'.
3574 * configure: Re-generated.
3575 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3576 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3578 * osabi.c (gdb_osabi_names): Remove "Interix".
3580 2013-09-03 Yao Qi <yao@codesourcery.com>
3582 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3584 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3586 * record.h (record_print_flag) <record_print_src_line,
3587 record_print_insn_range>: Rename into ...
3588 (record_print_flag) <record_print_src_line,
3589 record_print_insn_range>: ... this. Update all users.
3591 2013-09-02 Pierre Muller <muller@sourceware.org>
3593 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3596 2013-09-02 Pierre Muller <muller@sourceware.org>
3598 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3599 by use of plongest function.
3601 2013-09-02 Tristan Gingold <gingold@adacore.com>
3603 * NEWS: Add entry mentioning support for native Windows x64
3606 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3607 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3608 (struct amd64_windows_frame_cache): New struct.
3609 (amd64_windows_w2gdb_regnum): New global.
3610 (pc_in_range, amd64_windows_frame_decode_epilogue)
3611 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3612 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3613 (amd64_windows_frame_this_id): New functions.
3614 (amd64_windows_frame_unwind): New static global.
3615 (amd64_windows_skip_prologue): New function.
3616 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3617 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3618 with amd64_windows_skip_prologue.
3620 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3624 2013-08-30 Pedro Alves <palves@redhat.com>
3626 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3629 2013-08-30 Pedro Alves <palves@redhat.com>
3631 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3634 2013-08-30 Pedro Alves <palves@redhat.com>
3636 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3637 Adjust arguments to print_stack_frame.
3639 2013-08-30 Pedro Alves <palves@redhat.com>
3641 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3643 2013-08-30 Pedro Alves <palves@redhat.com>
3645 * frame.h (show_and_print_stack_frame): Delete declaration.
3647 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3650 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3651 (archpy_name): Check for valid architecture.
3652 (archpy_disassemble): Ditto.
3654 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3656 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3657 instead of "long long" in call to ptrace64.
3659 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3661 * mi/mi-interp.c (mi_command_loop): Change signature to match
3662 interp_command_loop_ftype.
3663 (mi1_command_loop): Remove.
3664 (mi2_command_loop): Remove.
3665 (mi3_command_loop): Remove.
3666 (mi_interpreter_resume): Remove setting of
3667 deprecated_command_loop_hook.
3668 (_initialize_mi_interp): Set mi_command_loop as the command loop
3671 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3673 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3676 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3678 * value.c (allocate_value_contents): Make static.
3679 * value.h (allocate_value_contents): Remove prototype.
3681 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3683 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3684 of assembling value via allocate_value_lazy and attribute setter.
3685 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3686 assembling value via allocate_value_lazy and attribute setter.
3687 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3688 assembling value via allocate_value_lazy and attribute setter.
3690 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3692 * value.c (value_from_contents_and_address): Replace allocate_value and
3693 memcpy with value_from_contents.
3695 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3697 * python/py-framefilter.c (py_print_frame): Remove usage of
3698 PyString_AsString. Use python_string_to_host_string instead.
3699 Refactor function to work with a string as a new allocation
3700 instead of a pointer.
3701 (py_print_frame): Ditto.
3702 * python/lib/gdb/frames.py (return_list): Cain iterators together
3703 instead of adding them as a list.
3704 (_sort_list): Call return_list, and remove duplicate code.
3705 (execute_frame_filters): Convert iterator to a list with list().
3706 * python/lib/gdb/command/frame_filters.py
3707 (SetFrameFilterPriority._set_filter_priority): Convert priority
3708 attribute to an integer.
3709 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3710 wrapper function __next__.
3711 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3714 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3717 * python/py-framefilter.c (apply_frame_filter): Check
3718 gdb_python_initialized. Exit if the Python frame-filter code
3719 cannot be initialized.
3721 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3724 * top.c (print_gdb_version): Remove erroneous newline after help
3727 2013-08-29 Yao Qi <yao@codesourcery.com>
3729 * varobj.c (install_dynamic_child): Remove trailing space.
3730 Add one blank line after variable declaration.
3732 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3735 * corefile.c (get_exec_file): Use exec_filename.
3736 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3737 * exec.c (exec_close): Free EXEC_FILENAME.
3738 (exec_file_attach): New variable canonical_pathname. Use
3739 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3741 * exec.h (exec_filename): New.
3742 * inferior.c (print_inferior, inferior_command): Use
3743 PSPACE_EXEC_FILENAME.
3744 * mi/mi-main.c (print_one_inferior): Likewise.
3745 * progspace.c (clone_program_space, print_program_space): Likewise.
3746 * progspace.h (struct program_space): New field pspace_exec_filename.
3747 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3748 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3750 2013-08-28 Will Newton <will.newton@linaro.org>
3752 * common/linux-ptrace.c: Include stdint.h unconditionally.
3754 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3757 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3759 2013-08-28 Yao Qi <yao@codesourcery.com>
3760 Pedro Alves <palves@redhat.com>
3762 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3763 instead of stdio_fileopen.
3764 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3765 .Call stderr_fileopen instead of stdio_fileopen.
3766 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3767 [__MINGW32__] (stderr_file_fputs): New function.
3768 (stderr_fileopen): New function.
3769 * ui-file.h (stderr_fileopen): Declare.
3771 2013-08-27 Doug Evans <dje@google.com>
3773 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3774 (struct dwarf2_per_cu_data): Ditto.
3775 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3776 (process_imported_unit_die): Ditto.
3777 (follow_die_sig_1): Simplify assert.
3779 2013-08-27 Pedro Alves <palves@redhat.com>
3781 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3782 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3783 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3784 windows_xfer_memory directly.
3785 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3787 2013-08-27 Pedro Alves <palves@redhat.com>
3789 * darwin-nat.c (darwin_xfer_memory): Delete.
3790 (_initialize_darwin_inferior): Don't install a
3791 deprecated_xfer_memory method.
3793 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3794 Yao Qi <yao@codesourcery.com>
3796 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3797 (parse_no_frames_option): Remove.
3798 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3799 (mi_cmd_stack_list_args): Adjust.
3800 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3801 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3802 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3804 (list_args_or_locals): New parameter 'skip_unavailable'.
3806 * valprint.c (scalar_type_p): Rename to ...
3807 (val_print_scalar_type_p): ... this. Make extern.
3808 (val_print, value_check_printable): Adjust.
3809 * valprint.h (val_print_scalar_type_p): Declare.
3810 * value.c (value_entirely_unavailable): New function.
3811 * value.h (value_entirely_unavailable): Declare.
3813 * NEWS: Mention the new option "--skip-unavailable" to MI
3814 commands '-stack-list-locals', '-stack-list-arguments' and
3815 '-stack-list-variables'.
3817 2013-08-27 Yao Qi <yao@codesourcery.com>
3819 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3820 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3822 * mi/mi-getopt.c (mi_getopt): Remove.
3823 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3825 (mi_getopt): Call mi_getopt_1.
3826 (mi_getopt_silent): New.
3827 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3829 2013-08-26 Doug Evans <dje@google.com>
3832 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3833 .gdb_index is in use.
3834 * symfile.c (reread_symbols): Reset objfile->sf.
3836 * NEWS: Document "mt print objfiles" now takes optional regexp.
3837 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3838 regexp of objfiles to print.
3839 (_initialize_symmisc): Update doc string for "mt print objfiles".
3841 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3842 missing debug info checks.
3844 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3845 Ulrich Weigand <uweigand@de.ibm.com>
3847 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3848 line tables generated by XLC compiled binaries.
3850 2013-08-23 Doug Evans <dje@google.com>
3852 * symmisc.c (dump_symtab): Delete prototype.
3853 (dump_msymbols, dump_objfile): Ditto.
3854 (maintenance_info_symtabs): Mark as dont_repeat.
3855 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3857 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3858 debugging printf to better location.
3860 2013-08-23 Pedro Alves <palves@redhat.com>
3862 * target.c (target_read_live_memory): Change type of 'ret' local
3865 2013-08-23 Pedro Alves <palves@redhat.com>
3867 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3868 (remote_read_bytes): Change return type to LONGEST, and adjust to
3869 return a target_xfer_error on error.
3870 (remote_xfer_memory): Delete.
3871 (remote_flash_write): Change type of 'ret' local to LONGEST.
3872 (remote_xfer_partial, remote_xfer_partial): Adjust.
3873 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3875 2013-08-23 Pierre Muller <muller@sourceware.org>
3877 ARI fix: Push # directives to start of line.
3878 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3880 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3883 * breakpoint.c (enable_command, disable_command): Iterate over
3884 all specified breakpoint locations.
3886 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3888 * common/linux-ptrace.c (linux_fork_to_function): Push #
3889 directives to the start of the line.
3890 (linux_check_ptrace_features): Fix warning message to use
3893 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3895 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3896 nat/linux-waitpid.h.
3897 (linux-waitpid.o): New object file rule.
3898 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3899 (current_ptrace_options): Moved from linux-nat.c.
3900 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3902 (linux_fork_to_function): New function.
3903 (linux_grandchild_function): Likewise.
3904 (linux_child_function): Likewise.
3905 (linux_check_ptrace_features): New function, heavily
3906 based on linux-nat.c:linux_test_for_tracefork.
3907 (linux_enable_event_reporting): New function.
3908 (ptrace_supports_feature): Likewise.
3909 (linux_supports_tracefork): Likewise.
3910 (linux_supports_traceclone): Likewise.
3911 (linux_supports_tracevforkdone): Likewise.
3912 (linux_supports_tracesysgood): Likewise.
3913 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3914 gdbserver/linux-low.c.
3915 (linux_enable_event_reporting): New declaration.
3916 (linux_supports_tracefork): Likewise.
3917 (linux_supports_traceclone): Likewise.
3918 (linux_supports_tracevforkdone): Likewise.
3919 (linux_supports_tracesysgood): Likewise.
3920 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3921 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3922 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3923 * config/arm/linux.mh (NATDEPFILES): Likewise.
3924 * config/i386/linux.mh (NATDEPFILES): Likewise.
3925 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3926 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3927 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3928 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3929 * config/mips/linux.mh (NATDEPFILES): Likewise.
3930 * config/pa/linux.mh (NATDEPFILES): Likewise..
3931 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3932 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3933 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3934 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3935 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3936 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3937 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3938 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3939 ptrace's 4th argument's types.
3940 Check the type of PTRACE_TYPE_ARG4.
3941 * configure: Regenerate.
3942 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3943 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3944 (linux_supports_tracefork_flag): Remove.
3945 (linux_supports_tracesysgood_flag): Likewise.
3946 (linux_supports_tracevforkdone_flag): Likewise.
3947 (current_ptrace_options): Moved to
3948 common/linux-ptrace.c.
3949 (linux_tracefork_child): Remove.
3950 (my_waitpid): Remove.
3951 (linux_test_for_tracefork): Renamed to
3952 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3953 (linux_test_for_tracesysgood): Remove.
3954 (linux_supports_tracesysgood): Remove.
3955 (linux_supports_tracefork): Remove.
3956 (linux_supports_tracevforkdone): Remove.
3957 (linux_enable_tracesysgood): Remove.
3958 (linux_enable_event_reporting): Remove.
3959 (linux_init_ptrace): New function.
3960 (linux_child_post_attach): Call linux_init_ptrace.
3961 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3962 (linux_child_follow_fork): Call linux_supports_tracefork
3963 and linux_supports_tracevforkdone.
3964 (linux_child_insert_fork_catchpoint): Call
3965 linux_supports_tracefork.
3966 (linux_child_insert_vfork_catchpoint): Likewise.
3967 (linux_child_set_syscall_catchpoint): Call
3968 linux_supports_tracesysgood.
3969 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3970 * nat/linux-nat.h: New file.
3971 * nat/linux-waitpid.c: New file.
3972 * nat/linux-waitpid.h: New file.
3974 2013-08-22 Samuel Bronson <naesten@gmail.com>
3976 ARM Linux support for `catch syscall'.
3977 * syscalls/arm-linux.py: New file.
3978 * syscalls/arm-linux.xml: Likewise.
3979 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3980 (arm_linux_init_abi): Register the new function and syscall xml file.
3981 * data-directory/Makefile.in: Install the new syscall xml file.
3982 * NEWS: Brag about this.
3984 2013-08-22 Pedro Alves <palves@redhat.com>
3987 * corefile.c (target_xfer_memory_error): New function.
3988 (memory_error): Defer EIO to target_memory_error.
3989 (read_memory): Use target_xfer_partial, and handle finer-grained
3991 * target.c (target_xfer_error_to_string): New function.
3992 (memory_xfer_partial_1): If memory is known to be
3993 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3994 (target_xfer_partial): Make extern.
3995 * target.h (enum target_xfer_error): New enum.
3996 (target_xfer_error_to_string): Declare function.
3997 (target_xfer_partial): Declare function.
3998 (struct target_ops) <xfer_partial>: Adjust describing comment.
4000 2013-08-22 Alan Modra <amodra@gmail.com>
4002 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4003 * configure.tgt: Likewise as targets.
4005 2013-08-20 Doug Evans <dje@google.com>
4007 * buildsym.c (subfile_stack): Move here from buildsym.h.
4008 (pending_macros): Ditto.
4009 (get_macro_table): New function.
4010 (buildsym_init): Initialize subfile_stack.
4011 * coffread.c (type_vector,type_vector_length): Moved here from
4013 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4014 (coff_symtab_read): Use it.
4015 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4016 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4017 with call to get_macro_table.
4018 * stabsread.c (type_vector,type_vector_length): Moved here from
4020 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4021 * buildsym.h (get_macro_table): Declare.
4023 2013-08-20 Tom Tromey <tromey@redhat.com>
4025 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4027 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4029 2013-08-20 Doug Evans <dje@google.com>
4031 * blockframe.c: Remove #include "psymtab.h".
4032 * cp-support.c: Ditto.
4036 2013-08-20 Tom Tromey <tromey@redhat.com>
4039 * exceptions.h (return_mask): Now an enum.
4040 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4043 2013-08-20 Tom Tromey <tromey@redhat.com>
4045 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4047 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4048 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4049 * jit.c (jit_object_close_impl): Update.
4050 * jv-lang.c (get_dynamics_objfile): Update.
4051 * linespec.c (add_minsym): Use get_dynamics_objfile.
4052 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4053 (allocate_objfile): Don't initialize 'gdbarch' field.
4054 (get_objfile_arch): Update.
4055 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4057 (struct objfile) <gdbarch>: ... here. Remove.
4058 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4060 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4062 2013-08-20 Alan Modra <amodra@gmail.com>
4064 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4065 for IBM long double nan and inf.
4066 (floatformat_is_negative, floatformat_classify,
4067 floatformat_mantissa): Similarly.
4068 (floatformat_ieee_single, floatformat_ieee_double,
4069 floatformat_ieee_quad, floatformat_arm_ext,
4070 floatformat_ia64_spill): Delete unused vars.
4071 (_initialize_doublest): Delete unused function.
4072 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4073 little-endian variants of floatformat_ibm_long_double.
4075 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4077 * Makefile.in (SFILES): Remove common/target-common.c and
4078 add target/waitstatus.c.
4079 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4080 target/resume.h, target/wait.h and target/waitstatus.h.
4081 (COMMON_OBS): Remove target-common.o and add
4083 (target-common.o): Remove.
4084 (waitstatus.o): New target object file.
4085 * common/target-common.c: Move contents to
4086 target/waitstatus.c and remove.
4087 * common/target-common.h: Move contents to other files and
4089 (enum resume_kind: Move to target/resume.h.
4090 (TARGET_WNOHANG): Move to target/wait.h.
4091 (enum target_waitkind): Move to target/waitstatus.h.
4092 (struct target_waitstatus): Likewise.
4093 * target.h: Do not include target-common.h and
4094 include target/resume.h, target/wait.h and
4095 target/waitstatus.h.
4096 * target/resume.h: New file.
4097 * target/wait.h: New file.
4098 * target/waitstatus.h: New file.
4099 * target/waitstatus.c: New file.
4101 2013-08-19 Pedro Alves <palves@redhat.com>
4103 * linux-nat.c (linux_test_for_tracefork)
4104 (linux_test_for_tracesysgood, linux_child_follow_fork)
4105 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4106 (linux_nat_wait_1): Extend comment.
4107 (linux_async_pipe): Add comment.
4109 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4111 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4112 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4113 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4114 Update to account for fact that PC is now a pseudo-register.
4115 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4116 cases for RL78_PC_REGNUM.
4118 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4121 * top.c (quit_force): Skip writing history file
4122 if input is not from terminal.
4124 2013-08-14 Tom Tromey <tromey@redhat.com>
4126 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4127 resultthreadlist>: New fields.
4128 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4129 (remote_get_threadlist, remote_threadlist_iterator): Use
4130 new fields. Remove static variables.
4132 2013-08-14 Tom Tromey <tromey@redhat.com>
4134 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4135 remote_watch_data_address>: New fields.
4136 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4137 (process_stop_reply, remote_wait_as)
4138 (remote_check_watch_resources, remote_stopped_data_address): Update.
4140 2013-08-14 Tom Tromey <tromey@redhat.com>
4142 * remote.c (struct remote_state) <async_client_callback,
4143 async_client_context>: New fields.
4144 (async_client_callback, async_client_context): Remove.
4145 (remote_async_serial_handler, remote_async): Update.
4147 2013-08-14 Tom Tromey <tromey@redhat.com>
4149 * remote.c (sizeof_pkt): Remove.
4150 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4152 2013-08-14 Tom Tromey <tromey@redhat.com>
4154 * remote.c (struct remote_state) <use_threadinfo_query,
4155 use_threadextra_query>: New fields.
4156 (remote_threads_info, remote_threads_extra_info)
4157 (remote_open_1): Update.
4159 2013-08-14 Tom Tromey <tromey@redhat.com>
4161 * remote.c (struct remote_state) <finished_object,
4162 finished_annex, finished_offset>: New fields.
4163 (remote_read_qxfer): Use remote_state fields; remove static
4166 2013-08-14 Tom Tromey <tromey@redhat.com>
4168 * remote.c (struct remote_state) <last_sent_step>:
4170 (last_sent_step): Remove.
4171 (remote_resume, remote_wait_as): Update.
4173 2013-08-14 Tom Tromey <tromey@redhat.com>
4175 * remote.c (struct remote_state) <last_sent_signal>:
4177 (last_sent_signal): Remove.
4178 (new_remote_state, remote_resume, remote_wait_as): Update.
4180 2013-08-14 Tom Tromey <tromey@redhat.com>
4182 * remote.c (struct remote_state) <last_program_signals_packet>:
4184 (last_program_signals_packet): Remove.
4185 (remote_program_signals, remote_open_1): Update.
4187 2013-08-14 Tom Tromey <tromey@redhat.com>
4189 * remote.c (struct remote_state) <last_pass_packet>:
4191 (last_pass_packet): Remove.
4192 (remote_pass_signals, remote_open_1): Update.
4194 2013-08-14 Tom Tromey <tromey@redhat.com>
4196 * remote.c (struct remote_state) <remote_traceframe_number>:
4198 (remote_traceframe_number): Remove.
4199 (new_remote_state, remote_open_1, set_remote_traceframe)
4200 (remote_trace_find): Update.
4202 2013-08-14 Tom Tromey <tromey@redhat.com>
4204 * remote.c (struct remote_state) <general_thread, continue_thread>:
4206 (general_thread, continue_thread): Remove.
4207 (record_currthread, set_thread, set_general_process)
4208 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4209 (extended_remote_mourn_1): Update.
4211 2013-08-14 Tom Tromey <tromey@redhat.com>
4213 * remote.c (struct remote_state) <remote_desc>: New field.
4214 (remote_desc): Remove.
4215 (remote_threads_info, remote_threads_extra_info, remote_close)
4216 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4217 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4218 (remote_hostio_send_command, remote_file_put, remote_file_get)
4219 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4220 (remote_async, remote_new_objfile, set_range_stepping): Update.
4222 2013-08-14 Tom Tromey <tromey@redhat.com>
4224 * remote.c (remote_state): Now a pointer.
4225 (get_remote_state_raw): Update.
4226 (new_remote_state): New function.
4227 (_initialize_remote): Use new_remote_state.
4229 2013-08-14 Tom Tromey <tromey@redhat.com>
4231 * remote.c (remote_protocol_features): Now const.
4233 2013-08-14 Tom Tromey <tromey@redhat.com>
4235 * remote.c (crc32_table, crc32): Remove.
4236 (remote_verify_memory): Use xcrc32.
4238 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4240 * value.h (create_internalvar_type_lazy): Adjust prototype
4243 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4245 * common/format.c (parse_format_string): Don't allow '#' flag for
4246 pointer arguments in format string.
4248 2013-08-13 Pierre Muller <muller@sourceware.org>
4250 * utils.c (init_page_info): Only call tgetnum function
4251 if rl_get_screen_size did not return useful values.
4253 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4255 PR breakpoints/15117
4256 * linespec.c (linespec_parse_basic): Check for convenience
4257 variable or history value while parsing.
4259 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4261 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4263 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4264 different signals between the generic Linux kernel implementation
4266 (avr_linux_gdb_signal_from_target): Delete.
4267 (avr_linux_gdb_signal_to_target): Delete.
4268 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4270 2013-08-09 Doug Evans <dje@google.com>
4272 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4275 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4277 * linux-tdep.c: Define enum with generic signal numbers.
4278 (linux_gdb_signal_from_target): New function.
4279 (linux_gdb_signal_to_target): Likewise.
4280 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4281 methods to the functions above.
4282 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4283 (linux_gdb_signal_to_target): Likewise.
4284 * alpha-linux-tdep.c: Define new enum with signals different
4285 from generic Linux kernel.
4286 (alpha_linux_gdb_signal_from_target): New function.
4287 (alpha_linux_gdb_signal_to_target): Likewise.
4288 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4289 with the functions mentioned above.
4290 * avr-tdep.c: Define enum with differences between Linux kernel
4292 (avr_linux_gdb_signal_from_target): New function.
4293 (avr_linux_gdb_signal_to_target): Likewise.
4294 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4295 the functions mentioned above.
4296 * sparc-linux-tdep.c: Define enum with differences between SPARC
4297 and generic Linux kernel signal numbers.
4298 (sparc32_linux_gdb_signal_from_target): New function.
4299 (sparc32_linux_gdb_signal_to_target): Likewise.
4300 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4301 to the functions defined above.
4302 * xtensa-linux-tdep.c: Define enum with differences between
4303 Xtensa and Linux kernel generic signals.
4304 (xtensa_linux_gdb_signal_from_target): New function.
4305 (xtensa_linux_gdb_signal_to_target): Likewise.
4306 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4307 to the functions defined above.
4308 * mips-linux-tdep.c: Define enum with differences between
4309 signals in MIPS and Linux kernel generic ones.
4310 (mips_gdb_signal_to_target): New function.
4311 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4312 only different signals from the Linux kernel generic.
4313 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4314 the functions defined above.
4315 * mips-linux-tdep.h (enum mips_signals): Remove.
4317 2013-08-09 Pedro Alves <palves@redhat.com>
4319 * avr-tdep.c (XMALLOC): Delete macro.
4320 * cli/cli-dump.c (XMALLOC): Delete macro.
4322 2013-08-09 Pedro Alves <palves@redhat.com>
4324 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4325 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4326 (fopen_with_cleanup, add_dump_command): Make static.
4327 * cli/cli-dump.h: Delete file.
4328 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4331 2013-08-09 Pedro Alves <palves@redhat.com>
4333 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4336 2013-08-09 Pedro Alves <palves@redhat.com>
4338 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4341 2013-08-09 Pedro Alves <palves@redhat.com>
4343 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4344 (gcore_command): Use tilde_expand here, and when showing the
4345 filename to the user, show the expanded version.
4347 2013-08-09 Yao Qi <yao@codesourcery.com>
4349 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4352 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4354 * gcore.c (create_gcore_bfd): Use tilde_expand.
4356 2013-08-08 Yao Qi <yao@codesourcery.com>
4358 * frame.h (read_frame_local): Declare.
4359 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4361 * stack.c (read_frame_local): New.
4363 2013-08-08 Yao Qi <yao@codesourcery.com>
4365 * mi/mi-cmd-stack.c: Update comments to function
4366 list_args_or_locals.
4368 2013-08-07 Tom Tromey <tromey@redhat.com>
4371 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4372 (process_psymtab_comp_unit_reader): Use it.
4373 (process_psymtab_comp_unit): Update. Add "pretend_language"
4375 (dwarf2_build_psymtabs_hard): Update.
4376 (scan_partial_symbols): Pass CU's language to
4377 process_psymtab_comp_unit.
4379 2013-08-07 Tom Tromey <tromey@redhat.com>
4381 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4382 (dwarf2_gdb_index_functions): Update.
4383 * psymtab.c (find_symbol_file_from_partial): Remove.
4384 (psym_functions): Update.
4385 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4388 2013-08-07 Tom Tromey <tromey@redhat.com>
4390 * symfile.c (set_initial_language): Look up "main" symbol
4391 and use its language.
4392 * symtab.c (find_main_filename): Remove.
4393 * symtab.h (find_main_filename): Remove.
4395 2013-08-07 Tom Tromey <tromey@redhat.com>
4397 * dwarf2read.c (recursively_compute_inclusions): Add
4398 "immediate_parent" argument. Set symtab's "user" field
4400 (compute_symtab_includes): Update.
4402 2013-08-07 Tom Tromey <tromey@redhat.com>
4404 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4405 when adding label symbols.
4407 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4408 Ulrich Weigand <uweigand@de.ibm.com>
4410 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4411 * configure.host (powerpc64-*-aix*): Likewise.
4413 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4414 Ulrich Weigand <uweigand@de.ibm.com>
4416 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4418 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4419 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4420 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4421 * configure.ac: Check for ptrace64.
4422 * configure, config.in: Regenerate.
4424 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4425 Ulrich Weigand <uweigand@de.ibm.com>
4427 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4428 Call ptrace64 instead of ptrace if defined.
4429 Add macro addr_ptr to take care of ptrace address argument.
4430 (pdc_read_regs): Likewise.
4431 (pdc_write_regs): Likewise.
4432 (aix_thread_resume): Likewise.
4433 (fetch_regs_kernel_thread): Likewise.
4434 (store_regs_kernel_thread): Likewise.
4436 2013-08-07 Anton Blanchard <anton@samba.org>
4438 * MAINTAINERS: Add myself to Write After Approval.
4440 2013-08-05 Tom Tromey <tromey@redhat.com>
4442 * aix-thread.c (_initialize_aix_thread): Use
4443 complete_target_initialization.
4444 * bsd-uthread.c (_initialize_bsd_uthread): Use
4445 complete_target_initialization.
4446 * dec-thread.c (_initialize_dec_thread): Use
4447 complete_target_initialization.
4448 * ravenscar-thread.c (_initialize_ravenscar): Use
4449 complete_target_initialization.
4450 * sol-thread.c (_initialize_sol_thread): Use
4451 complete_target_initialization.
4452 * spu-multiarch.c (_initialize_spu_multiarch): Use
4453 complete_target_initialization.
4455 2013-08-05 Tom Tromey <tromey@redhat.com>
4457 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4458 * ada-lang.c (ada_lookup_simple_minsym): Return
4459 bound_minimal_symbol.
4460 * ada-lang.h (ada_lookup_simple_minsym): Update.
4461 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4462 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4463 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4464 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4465 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4466 * minsyms.c (msymbol_objfile): Remove.
4467 (lookup_minimal_symbol_internal): New function, from
4468 lookup_minimal_symbol.
4469 (lookup_minimal_symbol): Rewrite using
4470 lookup_minimal_symbol_internal.
4471 (lookup_bound_minimal_symbol): New function.
4472 * minsyms.h (msymbol_objfile): Remove.
4473 (lookup_bound_minimal_symbol): Declare.
4474 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4475 * parse.c (write_exp_msymbol): Change parameter to a
4476 bound_minimal_symbol.
4477 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4478 * parser-defs.h (write_exp_msymbol): Update.
4479 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4480 * symfile.c (simple_read_overlay_table): Use
4481 lookup_bound_minimal_symbol.
4482 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4483 (search_symbols): Likewise.
4484 (print_msymbol_info): Take a bound_minimal_symbol argument.
4485 (symtab_symbol_info, rbreak_command): Update.
4486 * symtab.h (struct symbol_search) <msymbol>: Change type
4487 to bound_minimal_symbol.
4488 * valops.c (find_function_in_inferior): Use
4489 lookup_bound_minimal_symbol.
4490 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4492 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4497 (async_cleanup_sigint_signal_handler): ... this.
4498 (initialize_sigint_signal_handler): Remove declaration.
4499 (handle_remote_sigint): Rename the declaration to ...
4500 (async_handle_remote_sigint): ... this.
4501 (handle_remote_sigint_twice): Rename the declaration to ...
4502 (async_handle_remote_sigint_twice): ... this.
4503 (async_remote_interrupt, async_remote_interrupt_twice)
4504 (remote_interrupt): Remove the declarations.
4505 (remote_interrupt_twice): Rename the declaration ...
4506 (sync_remote_interrupt_twice): ... this.
4507 (sigint_remote_twice_token): Rename the variable to ...
4508 (async_sigint_remote_twice_token): ... this.
4509 (sigint_remote_token): Rename the variable to ...
4510 (async_sigint_remote_token): ... this.
4511 (initialize_sigint_signal_handler): Rename the function to ...
4512 (async_initialize_sigint_signal_handler): ... this. Update the name
4514 (handle_remote_sigint): Rename the function to ...
4515 (async_handle_remote_sigint): ... this. Update the names inside.
4516 (handle_remote_sigint_twice): Rename the function to ...
4517 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4518 (cleanup_sigint_signal_handler): Rename the function to ...
4519 (async_cleanup_sigint_signal_handler): ... this.
4520 (remote_interrupt): Rename the function to ...
4521 (sync_remote_interrupt): this. Update the names inside.
4522 (remote_interrupt_twice): Rename the function to ...
4523 (sync_remote_interrupt_twice): this. Update the names inside.
4524 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4525 (_initialize_remote): Update the names inside.
4527 2013-08-02 Tom Tromey <tromey@redhat.com>
4530 * breakpoint.c (update_watchpoint, watchpoint_check)
4531 (watch_command_1): Update.
4532 * eval.c (fetch_subexp_value): Add "preserve_errors"
4534 * ppc-linux-nat.c (check_condition): Update.
4535 * value.h (fetch_subexp_value): Update.
4537 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4539 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4542 2013-08-01 Doug Evans <dje@google.com>
4545 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4546 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4547 Add assert of sig_entry->dwo_unit == NULL.
4548 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4549 had already been read.
4550 (read_signatured_type): Set per_cu.tu_read.
4553 * valops.c (value_struct_elt): Add missing call to check_typedef.
4554 (value_find_oload_method_list): Ditto.
4556 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4557 effectively, struct symbol_search **.
4558 (make_cleanup_free_search_symbols): Change arg to struct
4559 symbol_search **. All callers updated.
4560 (compare_search_syms): Compare symtab file name and block as well.
4561 (search_symbols_equal): New function.
4562 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4563 New args new_head, new_tail. Result is now void. Remove dups after
4564 sorting the symbols.
4565 (search_symbols): Sort all found symbols once, after all have been
4566 found, and remove duplicates. Simplify cleanup tracking of result.
4567 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4569 Further workarounds for binutils/15021.
4570 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4571 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4572 Watch for duplicate symtabs coming from type units.
4573 (compute_symtab_includes): Update call to
4574 recursively_compute_inclusions. Build vector of included symtabs
4576 * symtab.h (symtab_ptr): New typedef.
4577 (DEF_VEC_P (symtab_ptr)): New VEC type.
4578 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4581 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4583 * cli/cli-script.c (script_from_file): Remove use of
4585 * main.c (captured_main): Remove use of error_pre_print and
4587 * utils.c (error_pre_print, quit_pre_print): Remove.
4588 * utils.h (error_pre_print, quit_pre_print): Likewise.
4590 2013-08-01 Yao Qi <yao@codesourcery.com>
4592 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4594 (mi_cmd_stack_list_variables): Likewise.
4596 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4598 * exceptions.c (deprecated_throw_reason): Remove.
4599 * exceptions.h (deprecated_throw_reason): Remove.
4601 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4603 * remote-mips.c (mips_error): Replace use of
4604 deprecated_throw_reason with throw_verror. Use the error message
4605 passed to mips_error as the error message for throw_verror.
4607 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4609 * monitor.c (monitor_interrupt_query): Replace use of
4610 deprecated_throw_reason with quit.
4611 * nto-procfs.c (interrupt_query): Likewise.
4612 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4613 * remote-mips.c (mips_kill): Likewise.
4614 * remote.c (interrupt_query): Likewise.
4616 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4618 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4621 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4622 Yao Qi <yao@codesourcery.com>
4624 * tracepoint.c (trace_dump_command): Select the current frame.
4626 2013-07-30 Doug Evans <dje@google.com>
4628 * dwarf2read.c (process_queue): Add type signature to debug output.
4630 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4632 * value.c (value_fetch_lazy): Mark optimized out values as such
4633 rather than raising an error.
4635 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4637 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4638 before checking which bits of the parent, not the child, value are
4641 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4644 * top.c: Include "filenames.h".
4645 (set_history_filename): New function.
4646 (init_main): Install it as set hook of the "set history filename"
4649 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4651 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4652 attribute parameter.
4653 (dwarf2_const_value_data): Constify struct attribute parameter.
4654 (dwarf2_const_value): Constify struct attribute parameter.
4655 (dwarf2_const_value_attr): Constify struct attribute parameter.
4656 (lookup_die_type): Constify struct attribute parameter.
4657 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4658 (follow_die_ref_or_sig): Constify struct attribute parameter.
4659 (follow_die_ref): Constify struct attribute parameter.
4660 (follow_die_sig): Constify struct attribute parameter.
4661 (get_DW_AT_signature_type): Constify struct attribute parameter.
4662 (get_type_unit_group): Constify struct attribute parameter.
4663 (fill_in_loclist_baton): Constify struct attribute parameter.
4664 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4665 (type_unit_group): Constify struct attribute parameter.
4667 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4669 * dwarf2read.c (attr_form_is_block): Make argument const.
4670 (attr_form_is_section_offset): Make argument const.
4671 (attr_form_is_constant): Make argument const.
4672 (attr_form_is_ref): Make argument const.
4674 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4676 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4678 (attr_form_is_ref): Moved below attr_form_is_constant.
4680 2013-07-29 Doug Evans <dje@google.com>
4682 * main.c (captured_command_loop): Tweak comment.
4684 * target.c (target_async_permitted_1): Fix comment.
4686 * symtab.c (iterate_over_some_symtabs): Add comment.
4688 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4690 2013-07-27 Yao Qi <yao@codesourcery.com>
4692 * NEWS: Mention that GDBserver now supports hardware
4693 watchpoints on the MIPS GNU/Linux target.
4695 2013-07-27 Yao Qi <yao@codesourcery.com>
4697 * Makefile.in (HFILES_NO_SRCDIR): Add
4698 common/mips-linux-watch.h.
4699 (mips-linux-watch.o): New rule.
4700 * common/mips-linux-watch.c: New.
4701 * common/mips-linux-watch.h: New.
4702 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4703 * mips-linux-nat.c: Include mips-linux-watch.h.
4704 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4705 to common/mips-linux-watch.h.
4706 (MAX_DEBUG_REGISTER): Likewise.
4707 (enum pt_watch_style): Likewise.
4708 (struct mips32_watch_regs): Likewise.
4709 (struct mips64_watch_regs): Likewise.
4710 (struct pt_watch_regs): Likewise.
4711 (struct mips_watchpoint): Likewise.
4712 (mips_linux_watch_get_irw_mask): Move to
4713 common/mips-linux-watch.c.
4714 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4715 (mips_linux_watch_get_watchlo): Likewise.
4716 (mips_linux_watch_set_watchlo): Likewise.
4717 (mips_linux_watch_get_watchhi): Likewise.
4718 (mips_linux_watch_set_watchhi): Likewise.
4719 (mips_linux_read_watch_registers): Likewise.
4720 (mips_linux_watch_type_to_irw): Likewise.
4721 (mips_linux_stopped_data_address, fill_mask): Likewise.
4722 (mips_linux_watch_try_one_watch): Likewise.
4723 (mips_linux_watch_populate_regs): Likewise.
4725 2013-07-27 Yao Qi <yao@codesourcery.com>
4727 * mips-linux-nat.c (get_irw_mask): Rename to ...
4728 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4729 'set' to 'n'. Update function comment. All callers changed.
4730 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4731 function comment. All callers changed.
4732 (get_num_valid): Rename to ...
4733 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4734 'set' to 'n'. Update function comment. All callers changed.
4735 (get_watchlo): Rename to ...
4736 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4737 'set' to 'n'. Update function comment. All callers changed.
4738 (set_watchlo): Rename to ...
4739 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4740 'set' to 'n'. Update function comment. All callers changed.
4741 (get_watchhi): Rename to ...
4742 (mips_linux_watch_get_watchhi): ... this. Update function
4743 comment. All callers changed.
4744 (set_watchhi): Rename to ...
4745 (mips_linux_watch_set_watchhi): ... this. Update function
4746 comment. All callers changed.
4747 (mips_linux_read_watch_registers): Update function comment.
4748 Add new parameters 'lwpid', 'watch_readback', and
4749 'watch_readback_valid'. Update.
4750 (type_to_irw): Rename to ...
4751 (mips_linux_watch_type_to_irw): ... this. Update function
4752 comment. All callers changed.
4753 (fill_mask): Update function comment.
4754 (try_one_watch): Rename to ...
4755 (mips_linux_watch_try_one_watch): ... this. Change the type
4756 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4757 (populate_regs_from_watches): Rename to ...
4758 (mips_linux_watch_populate_regs): ... this. Add parameter
4759 'current_watches'. All callers changed.
4761 2013-07-27 Yao Qi <yao@codesourcery.com>
4763 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4765 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4766 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4767 (struct pt_watch_regs): Likewise.
4768 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4769 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4770 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4771 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4772 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4774 2013-07-27 Yao Qi <yao@codesourcery.com>
4776 * breakpoint.h: Include break-common.h.
4777 (enum target_hw_bp_type): Move to ...
4778 * common/break-common.h: ... here. New.
4780 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4782 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4783 process group regardless of having tty on stdin.
4785 2013-07-25 Doug Evans <dje@google.com>
4787 * linux-fork.h (detach_fork): Delete.
4789 2013-07-25 Tom Tromey <tromey@redhat.com>
4791 PR remote/15256, PR remote/15266:
4792 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4793 * monitor.c (monitor_detach): Use unpush_target.
4794 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4795 * remote-mips.c (mips_detach): Use unpush_target. Don't
4797 * remote-sim.c (gdbsim_detach): Use unpush_target.
4798 * target.c (pop_target): Remove.
4799 (pop_all_targets_above): Don't call target_close.
4800 (target_close): Assert that the target is unpushed.
4801 * target.h (pop_target): Don't declare.
4802 * tracepoint.c (tfile_open): Use unpush_target.
4804 2013-07-25 Tom Tromey <tromey@redhat.com>
4806 * linux-thread-db.c (init_thread_db_ops): Call
4807 complete_target_initialization.
4808 (_initialize_thread_db): Don't call add_target.
4809 * target.c (complete_target_initialization): New function.
4810 (add_target_with_completer): Call it.
4811 * target.h (complete_target_initialization): Declare.
4813 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4815 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4816 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4817 (HPPANBSD_SIZEOF_GREGS): New define.
4818 (hppaobsd_supply_gregset): Handle additional registers.
4819 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4820 we provide more registers now.
4821 (hppabsd_supply_gregset): Supply additional registers.
4822 (hppabsd_collect_gregset): Collect additional registers.
4824 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4826 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4827 (hppabsd_dwarf2_frame_init_reg): New function.
4828 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4830 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4832 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4833 'z' format code. Remove error for optimized out values, standard
4834 code will handle these fine.
4836 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4838 * NEWS: Mention new 'z' formatter.
4839 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4840 (_initialize_printcmd): Mention 'z' formatter in help text of the
4843 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4845 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4848 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4850 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4851 interface can evaluate arguments. Fallback to the old mode if it
4853 (create_exception_master_breakpoint): Likewise.
4854 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4855 (struct sym_probe_fns elf_probe_fns): Export function above to the
4857 * probe.c (can_evaluate_probe_arguments): New function.
4858 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4860 (can_evaluate_probe_arguments): New function prototype.
4861 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4862 probe interface can evaluate arguments. Fallback to the old mode
4864 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4865 interface can evaluate arguments. Warning the user if it cannot.
4866 (stap_can_evaluate_probe_arguments): New function.
4867 (struct probe_ops stap_probe_ops): Export function above to the
4869 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4870 New function pointer.
4872 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4874 * Makefile.in (SFILES): Add common/target-common.c.
4875 Add common/target-common.h to headers.
4876 (COMMON_OBS): Add target-common.o.
4877 (target-common.o): New target.
4878 * linux-nat.h (resume_kind): Move to common/target-common.h.
4879 * target.c (target_waitstatus_to_string): Move to
4880 common/target-common.c.
4881 * target.h: Include target-common.h.
4882 (target_waitkind): Move to common/target-common.h.
4883 (target_waitstatus): Likewise.
4884 (TARGET_WNOHANG): Likewise.
4885 * common/target-common.c: New file.
4886 * common/target-common.h: New file.
4888 2013-07-24 Doug Evans <dje@google.com>
4890 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4893 2013-07-23 Yao Qi <yao@codesourcery.com>
4895 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4896 parameter 'gdbarch'.
4897 (i386_stack_tramp_frame_sniffer): Caller update.
4898 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4899 parameter 'gdbarch' and 'target'.
4900 (i386_linux_core_read_description): Caller update.
4901 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4903 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4906 2013-07-23 Tom Tromey <tromey@redhat.com>
4908 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4911 2013-07-22 Doug Evans <dje@google.com>
4913 * exec.h (remove_target_sections): Delete arg abfd.
4914 * exec.c (exec_close): Update call to remove_target_sections.
4915 (remove_target_sections): Delete arg abfd.
4916 * solib.c (update_solib_list): Ditto.
4917 (reload_shared_libraries_1): Ditto.
4918 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4919 * target.h (struct target_section): Rename key to owner.
4922 2013-07-22 Tom Tromey <tromey@redhat.com>
4924 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4926 2013-07-22 Tom Tromey <tromey@redhat.com>
4928 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4929 Simplify cleanup handling.
4931 2013-07-22 Tom Tromey <tromey@redhat.com>
4933 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4934 on all return paths.
4936 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4938 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4939 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4940 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4942 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4944 * top.c (print_gdb_version): Add help, apropos description and
4945 url to online documentation.
4947 2013-07-19 Hui Zhu <hui@codesourcery.com>
4950 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4952 2013-07-19 Yao Qi <yao@codesourcery.com>
4954 * target.c (update_current_target): Change the default action
4955 of 'to_traceframe_info' from tcomplain to return_zero.
4956 * target.h (struct target_ops) <to_traceframe_info>: Add more
4958 * valops.c (read_value_memory): Call
4959 traceframe_available_memory unconditionally.
4961 2013-07-18 Yao Qi <yao@codesourcery.com>
4963 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4964 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4965 symbol without prefix. If found, set its type to
4966 'mst_solib_trampoline'.
4968 2013-07-17 Doug Evans <dje@google.com>
4970 * NEWS: Mention "set print raw frame-arguments".
4971 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4972 * stack.c (print_raw_frame_arguments): New static global.
4973 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4974 (_initialize_stack): New command "set/show print raw frame-arguments".
4975 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4976 (set_print_raw, show_print_raw): New functions.
4977 (_initialize_valprint): New prefix command "set/show print raw".
4978 * valprint.h (value_print_options): Improve comments.
4980 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4981 of all *list variables.
4983 * gdbcmd.h (togglelist): Delete.
4984 * cli/cli-cmds.c (togglelist): Delete.
4985 (init_cmd_lists): Update.
4986 * cli/cli-cmds.h (togglelist): Delete.
4988 2013-07-17 Tom Tromey <tromey@redhat.com>
4990 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4993 2013-07-16 Doug Evans <dje@google.com>
4995 * nto-tdep.c (nto_relocate_section_addresses): Update,
4996 target_section.bfd deleted.
4997 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4998 * s390-tdep.c (s390_load): Ditto.
4999 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5001 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5003 * common/format.c (parse_format_string): Add checks for NULL
5004 character before calling strchr.
5006 2013-07-16 Doug Evans <dje@google.com>
5008 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5009 temp_pathname argument.
5010 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5011 when opening the file fails.
5013 * target.h (struct target_section): Delete member bfd.
5014 All users updated to use the_bfd_section->owner instead.
5015 * exec.c (add_to_section_table): Assert bfd is expected value.
5016 Remove initialization of target_section.bfd.
5017 (remove_target_sections): Update.
5018 (section_table_available_memory): Update.
5019 (section_table_xfer_memory_partial): Update.
5020 (print_section_info): Update.
5021 (exec_set_section_address): Update.
5022 * record-full.c (record_full_core_xfer_partial): Update.
5023 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5024 * solib-target.c (solib_target_relocate_section_addresses): Update.
5025 * symfile.c (build_section_addr_info_from_section_table): Update.
5026 * target.c (memory_xfer_live_readonly_partial): Update.
5027 (memory_xfer_partial_1): Update.
5029 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5031 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5032 now available for embedded (BookE) and server (BookS) processors,
5033 correct mentions of 'booke' and adjust comments accordingly in order to
5034 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5035 (have_ptrace_booke_interface): Rename function and variable
5036 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5037 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5038 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5039 'hwdebug_point_cmp'. Update all uses.
5040 (booke_find_thread_points_by_tid): Rename function
5041 'booke_find_thread_points_by_tid' to
5042 'hwdebug_find_thread_points_by_tid'. Update all uses.
5043 (booke_insert_point): Rename function 'booke_insert_point' to
5044 'hwdebug_insert_point'. Update all uses.
5045 (booke_remove_point): Rename function 'booke_remove_point' to
5046 'hwdebug_remove_point'. Update all uses.
5048 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5050 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5051 numbers with enum values.
5053 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5056 * thread.c (thread_apply_all_command): Check for valid threads
5058 (thread_array_cleanup): New struct.
5059 (set_thread_refcount): New function.
5061 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5063 * infcmd.c (default_print_one_register_info): Reuse function
5066 2013-07-10 Tom Tromey <tromey@redhat.com>
5068 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5069 (ada-exp.o): New target.
5071 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5073 * mt-tdep.c (mt_registers_info): Call
5074 get_no_prettyformat_print_options instead of
5075 get_raw_print_options (regression by last patch from Doug
5078 2013-07-09 Pedro Alves <palves@redhat.com>
5080 Checked in by Joel Brobecker <brobecker@adacore.com>.
5081 * ada-lang.c (coerce_unspec_val_to_type): Use
5082 value_optimized_out_const.
5083 * value.c (value_optimized_out_const): New function.
5084 * value.h (value_optimized_out_const): New declaration.
5086 2013-07-09 Doug Evans <dje@google.com>
5088 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5089 Enum values rename as well. All uses updated.
5090 * valprint.h (value_print_options): Rename member pretty to
5091 pretty format. Rename member prettyprint_arrays to
5092 prettyformat_arrays. Rename member prettyprint_structs to
5093 prettyformat_structs. All uses updated.
5094 (get_no_prettyformat_print_options): Renamed from
5095 get_raw_print_options.
5096 * valprint.c (get_no_prettyformat_print_options): Renamed from
5097 get_raw_print_options. All callers updated.
5098 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5099 All callers updated.
5100 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5101 All callers updated.
5102 (_initialize_valprint): Improve help text for "set print pretty" and
5105 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5107 * value.c (value_bits_valid): Revert previous change, and change
5108 by Pedro on 2013-07-04, due to regressions in
5109 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5111 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5112 Pedro Alves <palves@redhat.com>
5114 * value.c (value_bits_valid): If the value is not lval_computed
5115 or has no check validity handler then the answer is the
5116 optimized_out flag, otherwise defer to the handler.
5118 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5120 * top.c (print_gdb_configuration): Explain in output of
5121 --configuration what does "relocatable" mean.
5123 * main.c (print_gdb_help): Regroup options in the --help text.
5124 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5125 the relevant discussions.
5127 2013-07-06 Yao Qi <yao@codesourcery.com>
5129 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5130 Remove parameter 'lsal'.
5131 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5132 to inner block. Caller update.
5133 (base_breakpoint_create_breakpoints_sal): Update.
5134 (bkpt_create_breakpoints_sal): Likewise.
5135 (tracepoint_create_breakpoints_sal): Likewise.
5136 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5137 element 0 of vector 'canonical->sals'.
5139 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5141 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5142 register number instead of the pseudo register one.
5143 (rs6000_dwarf2_reg_to_regnum): Likewise.
5145 2013-07-04 Pedro Alves <palves@redhat.com>
5147 * findvar.c (value_of_register): Use allocate_optimized_out_value
5148 if the register has been optimized out, instead of
5149 set_value_optimized_out.
5150 * frame-unwind.c (frame_unwind_got_optimized): Use
5151 allocate_optimized_out_value.
5153 2013-07-04 Pedro Alves <palves@redhat.com>
5155 * value.c (value_bits_valid): If the value is not lval_computed,
5156 or doesn't have a check_validity hook, assume the value is entirely
5159 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5161 * stack.c (read_frame_arg): No longer fetch lazy values.
5162 * value.c (value_optimized_out): If the value is not already
5163 marked optimized out, and is lazy then fetch it.
5164 (value_primitive_field): Move optimized out check to later in the
5165 function, after we have loaded any lazy values.
5166 (value_fetch_lazy): Use optimized out flag directly rather than
5167 calling optimized_out method.
5169 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5171 * valops.c: Don't include "user-regs.h".
5172 (value_fetch_lazy): Moved to value.c.
5173 * value.c: Include "user-regs.h".
5174 (value_fetch_lazy): Moved from valops.c.
5176 2013-07-04 Yao Qi <yao@codesourcery.com>
5179 2013-06-27 Yao Qi <yao@codesourcery.com>
5181 * common/create-version.sh: Update comments. Handle the case
5182 that TARGET_ALIAS is empty.
5184 2013-07-03 Pedro Alves <palves@redhat.com>
5186 * Makefile.in (config.status): Depend on development.sh.
5187 (aclocal_m4_deps): Add libmcheck.m4.
5188 * acinclude.m4: Include libmcheck.m4.
5189 * configure.ac: Source development.sh instead of setting
5190 'development' here. --enable-libmcheck/--disable-libmcheck code
5191 factored out to GDB_AC_LIBMCHECK. Run it.
5192 * development.sh: New file.
5193 * libmcheck.m4: New file.
5194 * configure: Regenerate.
5196 2013-07-02 Tom Tromey <tromey@redhat.com>
5198 * contrib/ari/update-web-ari.sh: Update for version.in change.
5200 2013-07-02 Tom Tromey <tromey@redhat.com>
5202 * common/ptid.h: Comment fixes.
5204 2013-07-01 Tom Tromey <tromey@redhat.com>
5206 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5207 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5208 (dwarf2_read_index, create_all_comp_units): Update.
5210 2013-07-01 Tom Tromey <tromey@redhat.com>
5212 * configure.ac (build_warnings): Add -Wold-style-definition.
5213 * configure: Rebuild.
5214 * machoread.c (_initialize_machoread): Use "(void)".
5215 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5218 2013-07-01 Tom Tromey <tromey@redhat.com>
5220 * configure.ac (build_warnings): Add -Wold-style-declaration.
5221 * configure: Rebuild.
5222 * dsrec.c (make_srec): Use "static const", not "const static".
5223 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5225 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5226 Use "static const", not "const static".
5227 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5229 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5231 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5233 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5235 (v850_dbtrap_breakpoint_from_pc): Likewise.
5236 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5239 2013-07-01 Tom Tromey <tromey@redhat.com>
5241 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5242 * configure: Rebuild.
5244 2013-07-01 Pedro Alves <palves@redhat.com>
5246 * defs.h: Include "pathmax.h".
5247 * utils.c: Don't include sys/param.h.
5248 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5249 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5250 instead of MAXPATHLEN.
5251 * solib-sunos.c: Don't include sys/param.h.
5252 * xcoffread.c: Don't include sys/param.h.
5253 * bsd-kvm.c: Don't include sys/param.h.
5254 * darwin-nat.c: Don't include sys/param.h.
5255 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5256 * darwin-nat-info.c: Don't include sys/param.h.
5257 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5259 * i386obsd-nat.c: Don't include sys/param.h.
5260 * inf-child.c: Don't include sys/param.h.
5261 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5262 * linux-fork.c: Don't include sys/param.h.
5263 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5264 * linux-nat.c: Don't include sys/param.h.
5265 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5266 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5267 * m68klinux-nat.c: Don't include sys/param.h.
5268 * nbsd-nat.c: Don't include sys/param.h.
5269 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5270 * ppc-linux-nat.c: Don't include sys/param.h.
5271 * rs6000-nat.c: Don't include sys/param.h.
5272 * spu-linux-nat.c. Don't include sys/param.h.
5273 * windows-nat.c: Don't include sys/param.h.
5274 * xtensa-linux-nat.c: Don't include sys/param.h.
5275 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5277 2013-07-01 Pedro Alves <palves@redhat.com>
5279 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5280 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5281 * gnulib/aclocal.m4: Regenerate.
5282 * gnulib/config.in: Regenerate.
5283 * gnulib/configure: Regenerate.
5284 * gnulib/import/pathmax.h: New file.
5285 * gnulib/import/Makefile.am: Regenerate.
5286 * gnulib/import/Makefile.in: Regenerate.
5287 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5288 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5289 * gnulib/import/m4/pathmax.m4: New file.
5291 2013-07-01 Pedro Alves <palves@redhat.com>
5293 * configure.ac (GDBINIT): Define, depending on host.
5294 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5295 * top.c (PATH_MAX): Delete fallback definition.
5296 (GDBINIT_FILENAME): Delete.
5297 (gdbinit): Reimplement as const char array set to the GDBINIT
5299 * top.h (gdbinit): Make const.
5300 * configure, config.in: Regenerate.
5302 2013-07-01 Pedro Alves <palves@redhat.com>
5304 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5305 * cli/cli-cmds.h (source_script): Likewise.
5306 * exceptions.c (catch_command_errors_const): New function.
5307 * exceptions.h (catch_command_errors_const): Declare.
5308 * main.c (get_init_files): Make parameters const, and adjust.
5309 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5310 'local_gdbinit' locals const. Adjust to use
5311 catch_command_errors_const.
5312 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5313 'local_gdbinit' locals const.
5315 2013-07-01 Pedro Alves <palves@redhat.com>
5317 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5318 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5319 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5322 2013-07-01 Pedro Alves <palves@redhat.com>
5324 Import the "unistd" gnulib module.
5325 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5326 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5327 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5328 import/m4/unistd_h.m4.
5329 * gnulib/aclocal.m4: Renenerate.
5330 * gnulib/config.in: Renenerate.
5331 * gnulib/configure: Renenerate.
5332 * gnulib/import/Makefile.am: Renenerate.
5333 * gnulib/import/Makefile.in: Renenerate.
5334 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5335 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5336 * gnulib/import/m4/off_t.m4: New file.
5337 * gnulib/import/m4/ssize_t.m4: New file.
5338 * gnulib/import/m4/sys_types_h.m4: New file.
5339 * gnulib/import/m4/unistd_h.m4: New file.
5340 * gnulib/import/sys_types.in.h: New file.
5341 * gnulib/import/unistd.c: New file.
5342 * gnulib/import/unistd.in.h: New file.
5344 2013-07-01 Pedro Alves <palves@redhat.com>
5346 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5347 defined instead of checking HAVE_UNISTD_H.
5349 2013-07-01 Pedro Alves <palves@redhat.com>
5351 Reimport gnulib from scratch.
5352 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5353 import/m4/onceonly.m4.
5354 * gnulib/aclocal.m4: Renegerate.
5355 * gnulib/config.in: Renegerate.
5356 * gnulib/configure: Renegerate.
5357 * gnulib/import/Makefile.in: Renegerate.
5358 * gnulib/import/extra/update-copyright: Renegerate.
5359 * gnulib/import/m4/onceonly.m4: Delete.
5361 2013-07-01 Pedro Alves <palves@redhat.com>
5363 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5365 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5368 * remote.c (async_remote_interrupt_twice): Make it static.
5369 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5371 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5373 * ia64-linux-tdep.c: Include <ctype.h>.
5374 (ia64_linux_stap_is_single_operand): New function.
5375 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5377 2013-06-28 Tom Tromey <tromey@redhat.com>
5379 * Makefile.in (version.c): Use version.in, not
5381 * common/create-version.sh: Likewise.
5382 * common/version.in: Move...
5383 * version.in: ...here.
5385 2013-06-28 Pedro Alves <palves@redhat.com>
5387 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5389 * utils.h (pagination_enabled): Declare.
5391 2013-06-28 Pedro Alves <palves@redhat.com>
5393 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5394 Move higher up in file.
5396 2013-06-28 Tom Tromey <tromey@redhat.com>
5398 * tracepoint.c (deprecated_readline_begin_hook)
5399 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5402 2013-06-28 Pedro Alves <palves@redhat.com>
5405 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5406 checking if they're available.
5407 * value.c (value_available_contents_eq): Change comment.
5408 * value.h (value_available_contents_eq): Expand comment.
5410 2013-06-27 Tom Tromey <tromey@redhat.com>
5412 * target.c (find_run_target): Remove.
5413 * target.h (find_run_target): Remove.
5415 2013-06-27 Tom Tromey <tromey@redhat.com>
5417 * corelow.c (core_gdbarch): Now static.
5419 2013-06-27 Tom Tromey <tromey@redhat.com>
5421 * target.c (target_struct_index): Remove.
5423 2013-06-27 Pedro Alves <palves@redhat.com>
5425 * infrun.c: Remove comment describing the 'stepping over runtime
5426 loader dynamic symbol resolution code' mechanism; moved to
5429 2013-06-27 Pedro Alves <palves@redhat.com>
5431 * exceptions.c (catch_command_errors): Remove spurious space.
5432 * exceptions.h (catch_command_errors): Second parameter is "arg",
5435 2013-06-27 Yao Qi <yao@codesourcery.com>
5437 * common/create-version.sh: Update comments. Handle the case
5438 that TARGET_ALIAS is empty.
5440 2013-06-26 Pedro Alves <palves@redhat.com>
5442 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5445 2013-06-26 Pedro Alves <palves@redhat.com>
5447 * infrun.c: Update comments on stepping over runtime loader
5448 dynamic symbol resolution code.
5450 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5452 * ax-gdb.h (union exp_element): Forward declare.
5453 * parser-defs.h: Include expression.h.
5455 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5457 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5459 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5461 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5463 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5465 Fix trace-status to output proper start-time and stop-time.
5466 * tracepoint.c (trace_status_command): Fix type of printf arg to
5467 prevent improper type conversion.
5468 (trace_status_mi): Likewise.
5470 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5472 * mips-tdep.c (mips_next_pc): Fix a typo.
5474 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5476 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5478 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5479 Yao Qi <yao@codesourcery.com>
5481 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5482 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5483 * mi/mi-main.c (print_variable_or_computed): New function.
5484 (mi_cmd_trace_frame_collected): New function.
5485 * tracepoint.c (find_trace_state_variable_by_number): New.
5486 (struct traceframe_info): Move to tracepoint.h
5487 (struct collection_list): Likewise.
5488 (do_collect_symbol): Include locals and arguments in the
5489 collected variables list.
5490 (clear_collection_list): Clear wholly collected variables list
5491 and computed variables list.
5492 (append_exp): New function.
5493 (encode_actions_1): Include variables in the wholly
5494 collected variables list. Include memory ranges and
5495 full-fledged expressions in the computed expressions list.
5496 (encode_actions): Move some code to ...
5497 Return the cleanup chain.
5498 (encode_actions_rsp): ... here. New function.
5499 (get_traceframe_location, get_traceframe_info): Remove static.
5500 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5501 (struct collection_list): Moved from tracepoint.c. Add two
5502 new fields 'wholly_collected' and 'computed'.
5503 (find_trace_state_variable_by_number): Declare.
5504 (encode_actions): Adjust declaration.
5505 (encode_actions_rsp): Declare.
5506 (get_traceframe_info, get_traceframe_location): Declare.
5508 * NEWS: Mention new MI command -trace-frame-collected.
5510 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5511 Yao Qi <yao@codesourcery.com>
5513 * ctf.c (ctf_traceframe_info): Push trace state variables
5514 present in the trace data into the traceframe info object.
5515 * breakpoint.c (DEF_VEC_I): Remove.
5516 * common/filestuff.c (DEF_VEC_I): Likewise.
5517 * dwarf2loc.c (DEF_VEC_I): Likewise.
5518 * mi/mi-main.c (DEF_VEC_I): Likewise.
5519 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5520 * features/traceframe-info.dtd: Add tvar element and its
5522 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5523 (build_traceframe_info): Push trace state variables present in
5524 the trace data into the traceframe info object.
5525 (traceframe_info_start_tvar): New function.
5526 (tvar_attributes): New.
5527 (traceframe_info_children): Add "tvar" element.
5528 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5530 * NEWS: Mention the change in GDB and GDBserver.
5532 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5533 Yao Qi <yao@codesourcery.com>
5535 * tracepoint.c (trace_dump_command): Move code to ...
5536 (get_traceframe_location): ... here. New.
5538 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5539 Yao Qi <yao@codesourcery.com>
5541 * tracepoint.c (trace_dump_command): GDB emits an error
5542 instead of a warning when a traceframe is not selected.
5544 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5545 Yao Qi <yao@codesourcery.com>
5547 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5548 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5550 (do_clear_collection_list, init_collection_list): New.
5551 (encode_actions): Add local variables 'tracepoint_list' and
5552 'stepping_list'. Call init_collection_list and make cleanup
5553 which calls do_clear_collection_list. Don't call
5554 clear_collection_list.
5555 (_initialize_tracepoint): Delete references to
5556 'tracepoint_list' and 'stepping_list'.
5558 2013-06-25 Tom Tromey <tromey@redhat.com>
5560 * common/create-version.sh (date): Use "$", not "$$" in sed
5563 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5565 * NEWS (New targets): Add entry for TI MSP430.
5567 2013-06-25 Yao Qi <yao@codesourcery.com>
5569 * remote.c (remote_start_remote): Move code to upload tsv
5572 2013-06-25 Yao Qi <yao@codesourcery.com>
5573 Hui Zhu <hui@codesourcery.com>
5574 Pedro Alves <palves@redhat.com>
5576 PR breakpoints/15075
5577 PR breakpoints/15434
5578 * breakpoint.c (bpstat_stop_status): Call
5579 b->ops->after_condition_true.
5580 (update_dprintf_command_list): Don't append "continue" command
5581 to the command list of dprintf breakpoint.
5582 (base_breakpoint_after_condition_true): New function.
5583 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5584 (dprintf_after_condition_true): New function.
5585 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5586 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5588 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5590 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5591 (ALLDEPFILES): Add msp430-tdep.c.
5592 * configure.tgt (msp430*-*-elf): New target.
5593 * msp430-tdep.c: New file.
5595 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5597 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5598 microMIPS synthetic symbols.
5600 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5602 * objfiles.h (pc_in_section): New prototype.
5603 (in_plt_section): Remove name argument, replace prototype with
5604 static inline function.
5605 * mips-tdep.h: Include "objfiles.h".
5606 (in_mips_stubs_section): New function.
5607 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5608 in_solib_call_trampoline member.
5609 (hppa_in_solib_call_trampoline): Remove name argument.
5610 * objfiles.c (pc_in_section): New function.
5611 (in_plt_section): Remove function.
5612 * mips-linux-tdep.c: Include "objfiles.h".
5613 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5614 name argument. Return 1 rather than the low 16-bit halfword of
5615 any instruction examined.
5616 (mips_linux_in_dynsym_resolve_code): Update
5617 mips_linux_in_dynsym_stub call accordingly.
5618 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5619 rather than an equivalent hand-coded sequence.
5620 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5621 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5622 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5623 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5625 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5626 on call to tdep->in_solib_call_trampoline.
5627 (hppa_in_solib_call_trampoline): Remove name argument, update
5628 according to in_plt_section change.
5629 (hppa_skip_trampoline_code): Update according to in_plt_section
5631 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5632 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5634 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5635 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5636 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5637 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5638 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5639 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5640 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5641 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5642 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5643 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5644 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5645 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5646 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5648 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5650 * common/create-version.sh: Fix expansion of $host_alias
5651 and $target_alias in generation of HOST_NAME and TARGET_NAME
5654 2013-06-24 Tom Tromey <tromey@redhat.com>
5656 * common/create-version.sh: New file.
5657 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5659 (HFILES_NO_SRCDIR): Use common/version.h.
5660 * version.in: Move to ...
5661 * common/version.in: ... here. Replace date with "DATE".
5662 * version.h: Move to ...
5663 * common/version.h: ... here.
5665 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5667 * gdb/gnulib/Makefile.in: Update date in copyright header.
5668 * gdb/gnulib/configure.ac: Ditto.
5669 * gdb/gnulib/update-gnulib.sh: Ditto.
5671 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5673 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5674 "gdb/gnulib/import".
5676 2013-06-21 Will Newton <will.newton@linaro.org>
5678 * doublest.c (ldfrexp): Remove function.
5679 (convert_doublest_to_floatformat): Call frexpl instead of
5682 2013-06-21 Will Newton <will.newton@linaro.org>
5684 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5685 * gnulib/aclocal.m4: Regenerate.
5686 * gnulib/config.in: Regenerate.
5687 * gnulib/configure: Regenerate.
5688 * gnulib/import/Makefile.am: Update.
5689 * gnulib/import/Makefile.in: Update.
5690 * gnulib/import/m4/gnulib-cache.m4: Update.
5691 * gnulib/import/m4/gnulib-comp.m4: Update.
5692 * gnulib/import/float+.h: Import.
5693 * gnulib/import/float.c: Import.
5694 * gnulib/import/float.in.h: Import.
5695 * gnulib/import/fpucw.h: Import.
5696 * gnulib/import/frexp.c: Import.
5697 * gnulib/import/frexpl.c: Import.
5698 * gnulib/import/isnan.c: Import.
5699 * gnulib/import/isnand-nolibm.h: Import.
5700 * gnulib/import/isnand.c: Import.
5701 * gnulib/import/isnanl-nolibm.h: Import.
5702 * gnulib/import/isnanl.c: Import.
5703 * gnulib/import/itold.c: Import.
5704 * gnulib/import/m4/exponentd.m4: Import.
5705 * gnulib/import/m4/exponentl.m4: Import.
5706 * gnulib/import/m4/float_h.m4: Import.
5707 * gnulib/import/m4/fpieee.m4: Import.
5708 * gnulib/import/m4/frexp.m4: Import.
5709 * gnulib/import/m4/frexpl.m4: Import.
5710 * gnulib/import/m4/isnand.m4: Import.
5711 * gnulib/import/m4/isnanl.m4: Import.
5712 * gnulib/import/m4/math_h.m4: Import.
5713 * gnulib/import/math.c: Import.
5714 * gnulib/import/math.in.h: Import.
5716 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5719 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5720 signature_INTEL_edx comparisons.
5722 2013-06-20 Doug Evans <dje@google.com>
5725 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5726 All callers updated.
5727 (open_dwp_file): If we can't find the dwp file, search the basename
5728 in debug-file-directory.
5730 * dwarf2read.c (struct dwp_file): Fix comment.
5731 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5733 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5736 2013-06-20 Yao Qi <yao@codesourcery.com>
5738 * breakpoint.c (create_breakpoint): Fix code indentation.
5740 2013-06-20 Yao Qi <yao@codesourcery.com>
5742 * breakpoint.c (create_breakpoints_sal_default): Remove
5743 parameter 'lsal'. Update declaration.
5744 (bkpt_create_breakpoints_sal): Caller update.
5745 (tracepoint_create_breakpoints_sal): Likewise.
5747 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5748 Yao Qi <yao@codesourcery.com>
5750 * NEWS: Mention the new option '--skip-unavailable' of command
5751 -data-list-register-values.
5752 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5753 --skip-unavailable option. Adjust to use output_register.
5754 (output_register): Add new 'skip_unavailable' parameter.
5757 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5759 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5760 common/i386-gcc-cpuid.h.
5761 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5762 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5763 Copy the latest version from upstream gcc.
5764 * common/linux-btrace.c: Include i386-cpuid.h.
5765 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5767 (cpu_supports_btrace): Likewise.
5768 * go32-nat.c: Include i386-cpuid.h.
5769 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5771 2013-06-19 Doug Evans <dje@google.com>
5773 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5774 (get_section_index): Ditto.
5776 2013-06-19 Tom Tromey <tromey@redhat.com>
5778 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5781 2013-06-18 Doug Evans <dje@google.com>
5783 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5785 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5786 Move test of cu_index closer to use. Print complaint if cu_index
5789 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5791 * machoread.c (oso_vector): Delete this global.
5792 (macho_register_oso): Add new parameter "oso_vector_ptr".
5793 Use it instead of the "oso_vector" global.
5794 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5795 (macho_symfile_read): Use a local oso_vector, to be free'ed
5796 at the end of this function, in place of the old "oso_vector"
5797 global. Update various function calls accordingly. Use one
5798 single cleanup chain for the entire function.
5800 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5802 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5803 DWARF2_PER_OBJFILE by uses of DATA instead.
5805 2013-06-18 Tom Tromey <tromey@redhat.com>
5807 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5809 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5810 Special case signals other than GDB_SIGNAL_TRAP.
5811 (explains_signal_watchpoint): New function.
5812 (base_breakpoint_explains_signal): Add 'sig' argument.
5813 (initialize_breakpoint_ops): Set 'explains_signal' method for
5815 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5817 (bpstat_explains_signal): Likewise.
5818 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5820 2013-06-18 Tom Tromey <tromey@redhat.com>
5822 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5824 2013-06-18 Tom Tromey <tromey@redhat.com>
5826 * python/python.c (finish_python_initialization): Decref
5827 'pythondir' on failure path as well.
5829 2013-06-18 Tom Tromey <tromey@redhat.com>
5832 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5833 after taking bits_to_skip into account. Sign extend byte_offset.
5834 * utils.h (gdb_sign_extend): Declare.
5835 * utils.c (gdb_sign_extend): New function.
5837 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5839 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5841 2013-06-17 Pierre Muller <muller@sourceware.org>
5843 * corelow.c (core_open): Print GDB signal name instead of target
5846 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5848 * .gitignore: Add /gcore.
5850 2013-06-13 Doug Evans <dje@google.com>
5852 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5853 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5855 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5857 * stack.c (backtrace_command_1): Fix indentation.
5859 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5861 * window-nat.c (thread_rec): Add missing empty line after
5862 local variable declaration.
5864 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5866 * windows-nat.c (thread_rec): Revert format used to print
5867 error code returned by SuspendThread from %d back to %u.
5869 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5871 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5873 (get_windows_debug_event): Likewise, for all debug traces.
5875 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5877 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5880 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5881 Yao Qi <yao@codesourcery.com>
5883 * mi/mi-main.c (get_register): Remove declaration.
5884 (output_register): Declare.
5885 (mi_cmd_data_list_register_values): Remove local variable
5886 'tuple_cleanup'. Move some code into output_register.
5887 (get_register): Renamed to ...
5888 (output_register): ... this. Output the register's
5889 "number" ui_out tuple here.
5891 2013-06-07 Pedro Alves <palves@redhat.com>
5893 * darwin-nat.c: Fix formating in copyright header.
5894 * darwin-nat.h: Likewise.
5895 * gnu-nat.c: Likewise.
5896 * machoread.c: Likewise.
5898 2013-06-07 Pedro Alves <palves@redhat.com>
5901 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5902 static. Output a global target description pointer.
5903 (init_registers_${name}): Adjust to initialize a
5904 target description structure.
5906 2013-06-07 Will Newton <will.newton@linaro.org>
5908 * printcmd.c (build_address_symbolic): Call
5909 gdbarch_addr_bits_remove for text minimal symbols.
5911 2013-06-07 Will Newton <will.newton@linaro.org>
5913 * MAINTAINERS: Add myself to Write After Approval.
5915 2013-06-07 Yao Qi <yao@codesourcery.com>
5917 * tracepoint.c (start_tracing): Move code to ...
5918 (trace_reset_local_state): ... here. New.
5919 (disconnect_tracing): Don't call set_current_traceframe,
5920 set_tracepoint_num, and set_traceframe_context. Call
5921 trace_reset_local_state instead.
5922 (tfile_close): Call trace_reset_local_state.
5923 * ctf.c (ctf_close): Likewise.
5924 * remote.c (remote_close): Likewise.
5925 * tracepoint.h (trace_reset_local_state): Declare.
5927 2013-06-06 Doug Evans <dje@google.com>
5929 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5930 and fix header docs.
5932 2013-06-05 Doug Evans <dje@google.com>
5933 Keith Seitz <keiths@redhat.com>
5936 * cp-namespace.c (find_symbol_in_baseclass): Call
5937 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5938 Check result of call to lookup_symbol_static.
5939 Call lookup_static_symbol_aux unconditionally.
5940 Call check_typedef on base types before accessing them.
5941 (cp_lookup_nested_symbol): Fix comment.
5943 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5945 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5946 minimal symbols pointing to function descriptors.
5948 2013-06-05 Tom Tromey <tromey@redhat.com>
5950 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5952 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5953 Pedro Alves <palves@redhat.com>
5955 * remote.c (remote_wait_as): Restore signal handler before returning
5956 when GDB gets a notification.
5958 2013-06-04 Gary Benson <gbenson@redhat.com>
5961 * breakpoint.h (handle_solib_event): Moved function declaration
5963 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5964 (bpstat_stop_status): Pass new argument to handle_solib_event.
5965 * solib.h (update_solib_breakpoints): New function declaration.
5966 (handle_solib_event): Moved function declaration from
5968 * solib.c (update_solib_breakpoints): New function.
5969 (handle_solib_event): Moved function from breakpoint.c.
5970 Updated to call solib_ops->handle_event if not NULL.
5971 * solist.h (target_so_ops): New fields "update_breakpoints" and
5973 * infrun.c (set_stop_on_solib_events): New function.
5974 (_initialize_infrun): Use the above for "set
5975 stop-on-solib-events".
5976 (handle_inferior_event): Pass new argument to handle_solib_event.
5977 * solib-svr4.c (probe.h): New include.
5978 (svr4_free_library_list): New forward declaration.
5979 (probe_action): New enum.
5980 (probe_info): New struct.
5981 (probe_info): New static variable.
5982 (NUM_PROBES): New definition.
5983 (svr4_info): New fields "using_xfer", "probes_table" and
5985 (free_probes_table): New function.
5986 (free_solib_list): New function.
5987 (svr4_pspace_data_cleanup): Free probes table and solib list.
5988 (svr4_copy_library_list): New function.
5989 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5990 (svr4_read_so_list): New parameter "prev_lm".
5991 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5992 (svr4_current_sos): New function.
5993 (probe_and_action): New struct.
5994 (hash_probe_and_action): New function.
5995 (equal_probe_and_action): Likewise.
5996 (register_solib_event_probe): Likewise.
5997 (solib_event_probe_at): Likewise.
5998 (solib_event_probe_action): Likewise.
5999 (solist_update_full): Likewise.
6000 (solist_update_incremental): Likewise.
6001 (disable_probes_interface_cleanup): Likewise.
6002 (svr4_handle_solib_event): Likewise.
6003 (svr4_update_solib_event_breakpoint): Likewise.
6004 (svr4_update_solib_event_breakpoints): Likewise.
6005 (svr4_create_solib_event_breakpoints): Likewise.
6006 (enable_break): Free probes table before creating breakpoints.
6007 Use svr4_create_solib_event_breakpoints to create breakpoints.
6008 (svr4_solib_create_inferior_hook): Free the solib list.
6009 (_initialize_svr4_solib): Initialise
6010 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6012 2013-06-04 Gary Benson <gbenson@redhat.com>
6014 * target.h (target_ops): New field
6015 "to_augmented_libraries_svr4_read".
6016 (target_augmented_libraries_svr4_read): New macro.
6017 * target.c (update_current_target): Handle
6018 to_augmented_libraries_svr4_read.
6019 * remote.c (remote_state): New field
6020 "augmented_libraries_svr4_read".
6021 (remote_augmented_libraries_svr4_read_feature): New function.
6022 (remote_protocol_features): Add entry for
6023 "augmented-libraries-svr4-read".
6024 (remote_augmented_libraries_svr4_read): New function.
6025 (init_remote_ops): Initialize
6026 remote_ops.to_augmented_libraries_svr4_read.
6028 2013-06-04 Gary Benson <gbenson@redhat.com>
6032 2013-06-04 Gary Benson <gbenson@redhat.com>
6034 * objfiles.h (inhibit_section_map_updates): New function
6036 (resume_section_map_updates): Likewise.
6037 (resume_section_map_updates_cleanup): Likewise.
6038 * objfiles.c (objfile_pspace_info): Removed field
6039 "objfiles_changed_p". New fields "new_objfiles_available",
6040 "section_map_dirty" and "inhibit_updates".
6041 (allocate_objfile): Set new_objfiles_available.
6042 (free_objfile): Set section_map_dirty.
6043 (objfile_relocate1): Likewise.
6044 (in_plt_section): Likewise.
6045 (find_pc_section): Update the conditions under which the
6046 section map will be updated.
6047 (inhibit_section_map_updates): New function.
6048 (resume_section_map_updates): Likewise.
6049 (resume_section_map_updates_cleanup): Likewise.
6051 2013-06-04 Gary Benson <gbenson@redhat.com>
6053 * probe.h (get_probe_argument_count): New declaration.
6054 (evaluate_probe_argument): Likewise.
6055 * probe.c (get_probe_argument_count): New function.
6056 (evaluate_probe_argument): Likewise.
6057 (probe_safe_evaluate_at_pc): Use the above new functions.
6059 2013-06-04 Alan Modra <amodra@gmail.com>
6061 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6062 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6063 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6064 target mem reads on optional insns.
6065 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6066 ppc_insns_match_pattern calls.
6067 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6068 Add match for power7 thread safety insns, and new order of
6069 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6070 invocation in comment, and update rest of comment.
6071 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6072 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6073 (ppc64_standard_linkage2_target): Update insn offsets.
6074 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6075 stubs first. Update calls.
6077 2013-06-04 Yao Qi <yao@codesourcery.com>
6079 * solib.c (solib_find): Don't need dir separator if path has
6082 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6084 Revert (indirectly causes a SIGSEGV):
6085 * machoread.c (macho_symfile_read): Assign first cleanup to
6088 2013-06-03 Yao Qi <yao@codesourcery.com>
6090 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6091 mi-parse.c. Make them static.
6092 (mi_all_values): Likewise.
6093 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6094 mi_parse_print_values. Make it external.
6095 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6096 Remove the declarations.
6097 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6098 * mi/mi-parse.h (mi_parse_print_values): Declare.
6099 * mi/mi-cmd-stack.c: Include mi-parse.h.
6100 (parse_print_values): Remove
6101 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6102 of parse_print_values.
6103 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6105 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6106 Yao Qi <yao@codesourcery.com>
6108 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6109 (encode_actions): Move code to ...
6110 (all_tracepoint_actions_and_cleanup): ... here. New.
6111 (trace_dump_command): Likewise.
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6115 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6117 2013-05-30 Tom Tromey <tromey@redhat.com>
6119 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6120 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6121 'old_chain' argument. Add 'parser_result' argument.
6122 (gdb_xml_create_parser_and_cleanup): Remove old version.
6123 (gdb_xml_parse_quick): Update.
6124 (xml_process_xincludes): Update.
6125 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6128 2013-05-30 Tom Tromey <tromey@redhat.com>
6130 * probe.c (collect_probes): Check arguments for NULL before
6131 calling compile_rx_or_error.
6132 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6135 2013-05-30 Tom Tromey <tromey@redhat.com>
6137 * infrun.c (adjust_pc_after_break): Introduce an outer null
6140 2013-05-30 Tom Tromey <tromey@redhat.com>
6142 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6144 2013-05-30 Tom Tromey <tromey@redhat.com>
6146 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6147 for 'old_chain'. Do not check 'head' before processing
6150 2013-05-30 Tom Tromey <tromey@redhat.com>
6152 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6155 2013-05-30 Tom Tromey <tromey@redhat.com>
6157 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6158 inner scope. Unconditionally call do_cleanups.
6160 2013-05-30 Tom Tromey <tromey@redhat.com>
6162 * source.c (find_and_open_source): Call do_cleanups.
6164 2013-05-30 Tom Tromey <tromey@redhat.com>
6166 * linux-thread-db.c (thread_db_load_search): Unconditionally
6169 2013-05-30 Tom Tromey <tromey@redhat.com>
6171 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6172 for 'cleanup'; instead use a later one.
6174 2013-05-30 Tom Tromey <tromey@redhat.com>
6176 * python/py-breakpoint.c (bppy_get_commands): Use
6177 explicit, unconditional return.
6178 * python/py-frame.c (frapy_read_var): Likewise.
6179 * python/python.c (gdbpy_decode_line): Likewise.
6181 2013-05-30 Tom Tromey <tromey@redhat.com>
6183 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6184 do_cleanups on all return paths.
6186 2013-05-30 Tom Tromey <tromey@redhat.com>
6188 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6190 2013-05-30 Tom Tromey <tromey@redhat.com>
6192 * stabsread.c (read_struct_type): Call do_cleanups along
6195 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6197 * mips-linux-tdep.c: Adjust formatting throughout.
6199 2013-05-30 Tom Tromey <tromey@redhat.com>
6201 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6202 along all return paths.
6204 2013-05-30 Tom Tromey <tromey@redhat.com>
6206 * symfile.c (find_separate_debug_file): Call do_cleanups
6207 along all return paths.
6209 2013-05-30 Tom Tromey <tromey@redhat.com>
6211 * symtab.c (search_symbols): Introduce a null cleanup for
6214 2013-05-30 Tom Tromey <tromey@redhat.com>
6216 * python/py-value.c (valpy_binop): Call do_cleanups before
6219 2013-05-30 Tom Tromey <tromey@redhat.com>
6221 * python/py-prettyprint.c (print_children): Remove extra
6224 2013-05-30 Tom Tromey <tromey@redhat.com>
6226 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6229 2013-05-30 Tom Tromey <tromey@redhat.com>
6231 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6232 along all return paths.
6234 2013-05-30 Tom Tromey <tromey@redhat.com>
6236 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6239 2013-05-30 Tom Tromey <tromey@redhat.com>
6241 * varobj.c (c_value_of_root): Call do_cleanups along all
6244 2013-05-30 Tom Tromey <tromey@redhat.com>
6246 * tracepoint.c (trace_dump_command): Unconditionally call
6249 2013-05-30 Tom Tromey <tromey@redhat.com>
6251 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6252 do_cleanups earlier.
6254 2013-05-30 Tom Tromey <tromey@redhat.com>
6256 * machoread.c (macho_symfile_read): Assign first cleanup to
6259 2013-05-30 Tom Tromey <tromey@redhat.com>
6261 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6263 2013-05-30 Tom Tromey <tromey@redhat.com>
6265 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6267 2013-05-30 Tom Tromey <tromey@redhat.com>
6269 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6270 call discard_cleanups.
6271 (inf_ptrace_attach): Likewise.
6273 2013-05-30 Tom Tromey <tromey@redhat.com>
6275 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6277 (mips_initialize): Likewise.
6278 (common_open): Call do_cleanups.
6280 2013-05-30 Tom Tromey <tromey@redhat.com>
6282 * utils.c (internal_vproblem): Call do_cleanups.
6284 2013-05-30 Tom Tromey <tromey@redhat.com>
6286 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6288 2013-05-30 Tom Tromey <tromey@redhat.com>
6290 * cli/cli-script.c (setup_user_args): Don't return after error.
6292 2013-05-30 Tom Tromey <tromey@redhat.com>
6294 * somread.c (som_symtab_read): Call do_cleanups.
6296 2013-05-30 Tom Tromey <tromey@redhat.com>
6298 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6300 2013-05-30 Tom Tromey <tromey@redhat.com>
6302 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6303 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6304 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6305 * source.c (show_substitute_path_command): Call do_cleanups.
6306 (unset_substitute_path_command, set_substitute_path_command):
6308 * symfile.c (load_command): Call do_cleanups.
6310 2013-05-30 Tom Tromey <tromey@redhat.com>
6312 * contrib/cleanup_check.py: New file.
6313 * contrib/gcc-with-excheck: Add option parsing.
6315 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6317 * windows-nat.c (windows_delete_thread): Add missing space
6320 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6322 * inferior.c (top level): Include tilde.h.
6323 (add_inferior_command): Call tilde_expand on the value of 'exec'
6326 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6327 Yao Qi <yao@codesourcery.com>
6329 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6331 (encode_actions): Likewise.
6332 * remote.c (remote_download_tracepoint): Caller update.
6333 * tracepoint.h (encode_actions): Update declaration.
6335 2013-05-30 Pedro Alves <palves@redhat.com>
6337 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6340 2013-05-30 Yao Qi <yao@codesourcery.com>
6342 * remote.c (remote_check_symbols): Remove unused parameter
6345 (remote_start_remote, remote_new_objfile): Caller update.
6347 2013-05-30 Yao Qi <yao@codesourcery.com>
6349 * mi/mi-cmds.c (mi_cmds): Define MI command
6350 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6353 2013-05-29 Pedro Alves <palves@redhat.com>
6355 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6356 (remote_insert_watchpoint, remote_remove_watchpoint)
6357 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6358 (remote_verify_memory, compare_sections_command)
6359 (remote_search_memory): Set the general process/thread on the
6362 2013-05-29 Pedro Alves <palves@redhat.com>
6364 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6365 (_initialize_aarch64_tdep): Don't call
6366 initialize_tdesc_aarch64_without_fpu.
6367 * features/Makefile (WHICH): Remove reference to
6368 aarch64-without-fpu.
6369 * features/aarch64-without-fpu.c: Delete file.
6370 * regformats/aarch64-without-fpu.dat: Delete file.
6372 2013-05-28 Yao Qi <yao@codesourcery.com>
6374 * tracepoint.c (stringify_collection_list): Remove parameter
6376 (encode_actions): Caller update. Remove local variables.
6378 2013-05-24 Yao Qi <yao@codesourcery.com>
6380 * tracepoint.c (TFILE_PID): Remove.
6381 (tfile_open): Don't add thread and inferior.
6382 (tfile_close): Don't set 'inferior_ptid'. Don't call
6383 exit_inferior_silent.
6384 (tfile_thread_alive): Remove.
6385 (init_tfile_ops): Don't set field 'to_thread_alive' of
6388 2013-05-23 Doug Evans <dje@google.com>
6390 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6392 2013-05-23 Pedro Alves <palves@redhat.com>
6394 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6395 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6396 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6397 Only define if HAVE_SOCKETS is defined.
6398 * configure.ac: Check for sys/socket.h.
6399 * config.in, configure: Regenerate.
6401 2013-05-23 Pedro Alves <palves@redhat.com>
6403 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6404 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6405 printing uint32_t variables.
6407 2013-05-23 Pedro Alves <palves@redhat.com>
6409 * NEWS: Mention GDBserver range stepping support.
6411 2013-05-23 Yao Qi <yao@codesourcery.com>
6412 Pedro Alves <palves@redhat.com>
6414 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6416 * infcmd.c (step_once, until_next_command): Enable range stepping.
6417 * infrun.c (displaced_step_prepare): Disable range stepping.
6418 (resume): Disable range stepping if stepping over a breakpoint or
6419 we have software watchpoints. If range stepping is enabled,
6420 assert the thread is in the stepping range.
6421 (clear_proceed_status_thread): Clear may_range_step.
6422 (handle_inferior_event): Disable range stepping as soon as we know
6423 the thread that hit the event. Re-enable it whenever we're going
6424 to step with a step range.
6425 * remote.c (struct vCont_action_support) <r>: New field.
6426 (use_range_stepping): New global.
6427 (remote_vcont_probe): Handle 'r' action.
6428 (append_resumption): Append an 'r' action if the thread may range
6430 (show_range_stepping): New function.
6431 (set_range_stepping): New function.
6432 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6433 'set range-stepping' and 'show range-stepping' commands.
6434 * NEWS: Mention range stepping, the new vCont;r action, and the
6435 new "set/show range-stepping" commands.
6437 2013-05-23 Yao Qi <yao@codesourcery.com>
6438 Pedro Alves <palves@redhat.com>
6440 * remote.c (struct vCont_action_support): New struct.
6441 (struct remote_state) <support_vCont_t>: Remove field.
6442 <vCont_actions_support>: New field.
6443 (remote_vcont_probe, remote_stop_ns): Update.
6445 2013-05-23 Yao Qi <yao@codesourcery.com>
6446 Pedro Alves <palves@redhat.com>
6448 * gdbthread.h (pc_in_thread_step_range): New declaration.
6449 * thread.c (pc_in_thread_step_range): New function.
6450 * infrun.c (handle_inferior_event): Use it.
6452 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6454 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6457 2013-05-22 Keith Seitz <keiths@redhat.com>
6459 * ada-lang.c (is_known_support_routine): Add explicit free of
6460 'func_name' from find_frame_funname.
6461 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6462 for func_name from find_frame_funname.
6463 * python/py-frame.c (frapy_name): Add explicit free of
6464 'name' from find_frame_funname.
6465 * stack.c (find_frame_funname): Add comment explaining that
6466 funcp must be freed by the caller.
6467 Return copy of symbol names instead of pointers.
6468 (print_frame): Add a cleanup for 'funname' from
6470 * stack.h (find_frame_funname): Remove "const" from
6471 'funname' parameter.
6473 2013-05-22 Tom Tromey <tromey@redhat.com>
6476 * c-valprint.c (c_value_print): Use value_addr for
6477 references. Convert back to reference type with value_ref.
6479 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6481 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6482 unloaded DLL, it will be done by handle_solib_event. See
6483 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6486 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6488 * ui-out.c: Create typedef ui_out_level_p and define vector
6489 operations for that type.
6490 (struct ui_out): Use a vector instead of an array.
6491 (current_level): Return level from a vector.
6492 (push_level): Create a level in a vector.
6493 (pop_level): Delete a level in a vector.
6494 (ui_out_new): Create initial level zero level, and store in a
6496 (ui_out_destroy): Add vector cleanup.
6498 2013-05-22 Pedro Alves <palves@redhat.com>
6500 * python/python-internal.h (gdb_Py_DECREF): Tag with
6501 "ARI: editCase function".
6503 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6505 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6507 2013-05-21 Pedro Alves <palves@redhat.com>
6509 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6510 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6511 * python/py-utils.c (py_decref): Don't check for NULL before
6514 2013-05-21 Pedro Alves <palves@redhat.com>
6516 * python/py-utils.c (py_decref): Remove extra braces.
6517 (gdb_pymodule_addobject): Remove extra braces.
6518 * python-internal.h (gdb_Py_DECREF): New static inline function.
6519 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6521 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523 * breakpoints.c (detach_breakpoints): Do not
6524 detach breakpoints locations with loc_type bp_loc_other.
6526 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6528 Workaround Python 2.6.
6529 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6532 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6534 Code cleanup: constification.
6535 * solib.c (solib_ops): Make return type and ops variable type const.
6536 (set_solib_ops): Make the new_ops parameter and ops variable const.
6537 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6538 (solib_add, solib_keep_data_in_core, clear_solib)
6539 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6540 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6542 * solib.h (set_solib_ops): Make the new_ops parameter const.
6544 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6546 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6548 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6549 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6550 (SYSTEM_GDBINIT_FILES): New variables.
6551 (all): Add stamp-system-gdbinit.
6552 (stamp-system-gdbinit): New rule.
6553 (clean-system-gdbinit, install-system-gdbinit)
6554 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6555 (install-only): Add dependency on install-system-gdbinit.
6556 (uninstall): Add dependency on uninstall-system-gdbinit.
6557 (clean): Add dependency on clean-system-gdbinit.
6558 * system-gdbinit/elinos.py: New file.
6559 * system-gdbinit/wrs-linux.py: New file.
6561 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6563 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6565 2013-05-21 Hui Zhu <hui@codesourcery.com>
6567 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6568 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6569 * mi/mi-cmd-break.c (ctype.h): New include.
6570 (gdb_obstack.h): New include.
6571 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6572 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6573 (mi_cmd_dprintf_insert): New.
6574 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6575 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6577 2013-05-20 Tom Tromey <tromey@redhat.com>
6579 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6581 2013-05-20 Tom Tromey <tromey@redhat.com>
6583 * python/py-value.c (valpy_get_dynamic_type): Simplify
6584 dynamic_type assignment. Use Py_XINCREF.
6586 2013-05-20 Tom Tromey <tromey@redhat.com>
6588 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6590 2013-05-20 Tom Tromey <tromey@redhat.com>
6592 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6593 (gdbpy_selected_frame): Move object-construction code
6596 2013-05-20 Tom Tromey <tromey@redhat.com>
6598 * python/py-arch.c (gdbpy_initialize_arch): Use
6599 gdb_pymodule_addobject.
6600 * python/py-block.c (gdbpy_initialize_blocks): Use
6601 gdb_pymodule_addobject.
6602 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6603 gdb_pymodule_addobject.
6604 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6605 gdb_pymodule_addobject.
6606 * python/py-event.c (gdbpy_initialize_event_generic): Use
6607 gdb_pymodule_addobject.
6608 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6609 gdb_pymodule_addobject.
6610 * python/py-evts.c (add_new_registry): Use
6611 gdb_pymodule_addobject.
6612 (gdbpy_initialize_py_events): Likewise.
6613 * python/py-finishbreakpoint.c
6614 (gdbpy_initialize_finishbreakpoints): Use
6615 gdb_pymodule_addobject.
6616 * python/py-frame.c (gdbpy_initialize_frames): Use
6617 gdb_pymodule_addobject.
6618 * python/py-function.c (gdbpy_initialize_functions): Use
6619 gdb_pymodule_addobject.
6620 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6621 gdb_pymodule_addobject.
6622 * python/py-infthread.c (gdbpy_initialize_thread): Use
6623 gdb_pymodule_addobject.
6624 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6625 gdb_pymodule_addobject.
6626 * python/py-param.c (gdbpy_initialize_parameters): Use
6627 gdb_pymodule_addobject.
6628 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6629 gdb_pymodule_addobject.
6630 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6631 gdb_pymodule_addobject.
6632 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6633 gdb_pymodule_addobject.
6634 * python/py-type.c (gdbpy_initialize_types): Use
6635 gdb_pymodule_addobject.
6636 * python/py-utils.c (gdb_pymodule_addobject): New function.
6637 * python/py-value.c (gdbpy_initialize_values): Use
6638 gdb_pymodule_addobject.
6639 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6640 * python/python.c (_initialize_python): Use
6641 gdb_pymodule_addobject.
6643 2013-05-20 Tom Tromey <tromey@redhat.com>
6645 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6646 * python/py-param.c (get_set_value, get_show_value): Use
6648 * python/python.c (start_type_printers, apply_type_printers):
6649 Use explicit decrefs.
6651 2013-05-20 Tom Tromey <tromey@redhat.com>
6653 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6656 2013-05-20 Tom Tromey <tromey@redhat.com>
6658 * python/python.c (gdbpy_run_events): Decref the result
6659 of PyObject_CallObject.
6661 2013-05-20 Tom Tromey <tromey@redhat.com>
6663 * python/py-symtab.c (set_sal): Use
6664 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6665 (symtab_and_line_to_sal_object): Update.
6667 2013-05-20 Tom Tromey <tromey@redhat.com>
6669 * python/py-param.c (compute_enum_values): Decref 'item'.
6671 2013-05-20 Tom Tromey <tromey@redhat.com>
6673 * mi/mi-main.c: Include python-internal.h.
6674 (mi_cmd_list_features): Check gdb_python_initialized.
6675 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6676 (python_inferior_exit, python_new_objfile, add_thread_object)
6677 (delete_thread_object, py_free_inferior): Check
6678 gdb_python_initialized.
6679 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6680 gdb_python_initialized.
6681 * python/py-type.c (save_objfile_types): Check
6682 gdb_python_initialized.
6683 * python/python-internal.h (gdb_python_initialized): Declare.
6684 * python/python.c (ensure_python_env): Throw exception if
6685 Python not initialized.
6686 (before_prompt_hook, source_python_script_for_objfile)
6687 (start_type_printers, apply_type_printers,
6688 free_type_printers): Check gdb_python_initialized.
6689 * varobj.c (varobj_get_display_hint)
6690 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6691 (install_new_value_visualizer, varobj_set_visualizer)
6692 (value_get_print_value): Check gdb_python_initialized.
6694 2013-05-20 Tom Tromey <tromey@redhat.com>
6696 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6698 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6699 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6701 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6703 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6705 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6707 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6708 init function to return 'int'.
6709 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6710 Return 'int'. Check errors.
6711 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6713 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6714 Return 'int'. Check errors.
6715 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6717 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6719 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6721 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6723 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6725 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6727 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6729 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6731 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6733 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6735 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6737 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6739 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6741 * python/python-internal.h (gdbpy_initialize_auto_load,
6742 gdbpy_initialize_values, gdbpy_initialize_frames,
6743 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6744 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6745 gdbpy_initialize_blocks, gdbpy_initialize_types,
6746 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6747 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6748 gdbpy_initialize_finishbreakpoints,
6749 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6750 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6751 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6752 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6753 gdbpy_initialize_signal_event,
6754 gdbpy_initialize_breakpoint_event,
6755 gdbpy_initialize_continue_event,
6756 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6757 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6758 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6759 * python/python.c (gdb_python_initialized): New global.
6760 (gdbpy_initialize_events): Return 'int'. Check errors.
6761 (_initialize_python): Check errors. Set
6762 gdb_python_initialized.
6764 2013-05-20 Tom Tromey <tromey@redhat.com>
6766 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6767 Decref the reslut of PyObject_CallMethod.
6769 2013-05-20 Tom Tromey <tromey@redhat.com>
6771 * python/py-event.c (gdbpy_initialize_event_generic): Return
6772 early if PyType_Ready fails.
6774 2013-05-20 Tom Tromey <tromey@redhat.com>
6776 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6777 as 'default' in the switch.
6779 2013-05-20 Tom Tromey <tromey@redhat.com>
6781 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6782 get_addr_from_python calls out of TRY_CATCH.
6783 (infpy_write_memory, infpy_search_memory): Likewise.
6784 * python/py-utils.c (get_addr_from_python): Return negative
6785 value on error. Use TRY_CATCH.
6786 * python/python-internal.h (get_addr_from_python): Use
6787 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6789 2013-05-20 Tom Tromey <tromey@redhat.com>
6791 * python/py-event.c (evpy_emit_event): Decref the
6792 result of PyObject_CallFunctionObjArgs.
6794 2013-05-20 Tom Tromey <tromey@redhat.com>
6796 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6799 2013-05-20 Tom Tromey <tromey@redhat.com>
6801 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6803 2013-05-20 Tom Tromey <tromey@redhat.com>
6805 * python/py-event.h (gdbpy_initialize_event_generic): Use
6806 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6807 * python/py-evts.c (add_new_registry): Use
6808 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6809 * python/python-internal.h
6810 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6812 2013-05-20 Tom Tromey <tromey@redhat.com>
6814 * python/py-arch.c (archpy_disassemble): Update.
6815 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6816 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6817 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6818 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6820 (GDB_PY_HANDLE_EXCEPTION): Update.
6821 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6823 2013-05-20 Tom Tromey <tromey@redhat.com>
6825 * python/python-internal.h (events_object_type): Remove.
6827 2013-05-20 Tom Tromey <tromey@redhat.com>
6829 * python/py-event.h (evpy_emit_event): Use
6830 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6831 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6834 2013-05-20 Tom Tromey <tromey@redhat.com>
6836 * py-evtregistry.c (create_event_object): Decref
6837 eventregistry_object if PyList_New fails.
6839 2013-05-20 Tom Tromey <tromey@redhat.com>
6841 * py-cmd.c (gdbpy_string_to_argv): Check result of
6844 2013-05-20 Tom Tromey <tromey@redhat.com>
6846 * python/python.c (before_prompt_hook): Add cleanup to
6849 2013-05-20 Tom Tromey <tromey@redhat.com>
6851 * python/py-function.c (fnpy_init): Decref result of
6852 PyObject_GetAttrString.
6854 2013-05-20 Tom Tromey <tromey@redhat.com>
6856 * python/py-threadevent.c (get_event_thread): Use
6857 CPYCHECKER_RETURNS_BORROWED_REF.
6858 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6860 (pspace_to_pspace_object, objfile_to_objfile_object)
6861 (find_thread_object): Use it.
6863 2013-05-20 Tom Tromey <tromey@redhat.com>
6865 * python/py-arch.c (arch_object_type): Use
6866 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6867 * python/py-block.c (block_syms_iterator_object_type):
6868 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6869 * python/py-bpevent.c (breakpoint_event_object_type):
6870 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6871 * python/py-cmd.c (cmdpy_object_type): Use
6872 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6873 * python/py-continueevent.c (continue_event_object_type):
6874 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6875 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6876 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6877 * python/py-events.h (thread_event_object_type):
6878 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6879 * python/py-evtregistry.c (eventregistry_object_type): Use
6880 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6881 * python/py-exitedevent.c (exited_event_object_type):
6882 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6883 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6884 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6885 * python/py-function.c (fnpy_object_type): Use
6886 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6887 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6888 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6889 * python/py-infthread.c (thread_object_type): Use
6890 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6891 * python/py-lazy-string.c (lazy_string_object_type):
6892 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6893 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6894 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6895 * python/py-objfile.c (objfile_object_type): Use
6896 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6897 * python/py-param.c (parmpy_object_type):
6898 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6899 * python/py-progspace.c (pspace_object_type):
6900 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6901 * python/py-signalevent.c (signal_event_object_type):
6902 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6903 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6904 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6905 * python/py-type.c (type_object_type, field_object_type)
6906 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6907 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6909 (value_object_type, block_object_type, symbol_object_type)
6910 (event_object_type, stop_event_object_type, breakpoint_object_type)
6911 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6913 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6915 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6916 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6918 2013-05-20 Doug Evans <dje@google.com>
6920 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6922 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6923 reading_dwo_directly.
6924 (struct signatured_type): New member dwo_unit.
6925 (struct die_reader_specs): New member comp_dir.
6926 (create_signatured_type_table_from_index): Use malloc for
6927 all_type_units instead of objfile's obstack.
6928 (create_all_type_units): Ditto.
6929 (fill_in_sig_entry_from_dwo_entry): New function.
6930 (add_type_unit): New function.
6931 (lookup_dwo_signatured_type): New function.
6932 (lookup_dwp_signatured_type): New function.
6933 (lookup_signatured_type): New arg cu. All callers updated.
6934 (init_cu_die_reader): Initialize comp_dir.
6935 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6936 Change assert of matching type signatures to call error on mismatch.
6937 (lookup_dwo_unit): Add assert.
6938 (init_tu_and_read_dwo_dies): New function.
6939 (init_cutu_and_read_dies): Call it.
6940 (build_type_unit_groups): Handle case of no type unit groups created.
6941 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6942 (lookup_dwo_cutu): Tweak complaint.
6943 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6944 (dwarf2_per_objfile_free): Free all_type_units.
6946 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6948 * windows-nat.c (handle_unload_dll): Add missing empty line.
6950 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6952 * dwarf2read.c (prototyped_function_p): New function.
6953 (read_subroutine_type): Use it.
6955 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6957 * rs6000-aix-tdep.c: De-indent some example code provided
6960 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6962 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6963 region is ok for a hardware watchpoint using the new ptrace interface
6966 2013-05-17 Doug Evans <dje@google.com>
6968 * NEWS: Mention new maintenance commands check-symtabs, and
6969 expand-symtabs, and renamed check-psymtabs.
6970 * psymtab.c (maintenance_check_psymtabs): Renamed from
6971 maintenance_check_symtabs. Only process already-expanded symbol
6973 (_initialize_psymtab): Update.
6974 * symmisc.c (maintenance_check_symtabs): New function.
6975 (maintenance_expand_name_matcher): New function
6976 (maintenance_expand_file_matcher): New function
6977 (maintenance_expand_symtabs): New function.
6978 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6981 2013-05-17 Tom Tromey <tromey@redhat.com>
6983 * python/py-inferior.c (infpy_read_memory): Don't call
6984 PyErr_SetString if PyObject_New fails.
6985 * python/py-frame.c (frame_info_to_frame_object): Don't call
6986 PyErr_SetString if PyObject_New fails.
6988 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6990 * acinclude.m4: Add check for dlopen in libdl.
6991 * configure.ac: Ditto.
6992 * configure: Regenerate.
6994 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6996 * frame.c (frame_stash): Convert to htab.
6997 (frame_addr_hash): New function.
6998 (frame_addr_hash_eq): New function.
6999 (frame_stash_create): Convert function to create
7001 (frame_stash_add): Convert function to add an entry to a hash
7003 (frame_stash_find): Convert function to search the hash table.
7004 (frame_stash_invalidate): Convert function to empty the hash
7006 (get_frame_id): Only add to stash if a frame_id is created.
7007 (_initialize_frame): Call frame_stash_create.
7009 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7011 * configure.ac: Ensure MIG is available when building for GNU Hurd
7013 * configure: Regenerate.
7015 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7017 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7019 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7021 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7022 all cleanups are done before returning from this function.
7024 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7026 * utils.h: #include "exceptions.h".
7027 (enum errors): Remove partial declaration.
7029 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7031 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7032 * gdbarch.h, gdbarch.c: Regenerate.
7033 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7036 * rs6000-aix-tdep.h: New file.
7037 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7038 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7040 (struct field_info, struct ld_info_desc): New types.
7041 (ld_info32_desc, ld_info64_desc): New static constants.
7042 (struct ld_info): New type.
7043 (rs6000_aix_extract_ld_info): New function.
7044 (rs6000_aix_shared_library_to_xml): Likewise.
7045 (rs6000_aix_ld_info_to_xml): Likewise.
7046 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7047 (rs6000_aix_init_osabi): Add call to
7048 set_gdbarch_core_xfer_shared_libraries_aix.
7049 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7050 Remove "xml-utils.h" include.
7051 (LdInfo): Delete typedef.
7052 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7054 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7055 Adjust code accordingly.
7056 (rs6000_core_ldinfo): Delete, folded into
7057 rs6000_aix_core_xfer_shared_libraries_aix.
7058 (rs6000_xfer_shared_library): Delete.
7059 (rs6000_xfer_shared_libraries): Reimplement.
7061 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7063 * record.c (record_goto_cmdlist): New.
7064 (cmd_record_goto): Split into this ...
7065 (cmd_record_goto_begin): ... this
7066 (cmd_record_goto_end): ... and this.
7067 (_initialize_record): Change "record goto" to prefix command.
7068 Add commands for "record goto begin" and "record goto end".
7069 Add an alias for "record goto start" to "record goto begin".
7071 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7073 * linespec.c (convert_linespec_to_sals): New comment for
7074 SOURCE_FILENAME assignment.
7076 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7078 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7081 2013-05-14 Tom Tromey <tromey@redhat.com>
7083 * eval.c (parse_and_eval_long): Make 'exp' const.
7084 * value.h (parse_and_eval_long): Update.
7086 2013-05-14 Tom Tromey <tromey@redhat.com>
7088 * ui-file.c (gdb_fopen): Make arguments const.
7089 * ui-file.h (gdb_fopen): Make arguments const.
7091 2013-05-14 Tom Tromey <tromey@redhat.com>
7093 * remote.c (remote_set_trace_notes): Make arguments const.
7094 * target.c (update_current_target): Update cast.
7095 * target.h (to_set_trace_notes): Make arguments const.
7097 2013-05-14 Tom Tromey <tromey@redhat.com>
7099 * go32-nat.c (go32_terminal_info): Make 'args' const.
7100 * inferior.h (child_terminal_info): Update.
7101 * inflow.c (child_terminal_info): Make 'args' const.
7102 * target.c (default_terminal_info): Make 'args' const.
7103 (debug_to_terminal_save_ours): Likewise.
7104 * target.h (struct target_ops) <to_terminal_info>: Make argument
7107 2013-05-13 Tom Tromey <tromey@redhat.com>
7109 * gcore.c (create_gcore_bfd): Make 'filename' const.
7110 * gcore.h (create_gcore_bfd): Make 'filename' const.
7111 * record-full.c (record_full_save): Make 'recfilename' const.
7112 * target.c (target_save_record): Make 'filename' const.
7113 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7115 (target_save_record): Likewise.
7117 2013-05-13 Tom Tromey <tromey@redhat.com>
7120 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7121 ranges section has been read.
7123 2013-05-13 Tom Tromey <tromey@redhat.com>
7126 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7127 STRUCTOP_PTR>: Return a not_lval value for
7128 EVAL_AVOID_SIDE_EFFECTS.
7129 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7130 for EVAL_AVOID_SIDE_EFFECTS.
7132 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7134 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7135 floating point registers to register type before storing
7137 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7140 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7141 Tom Tromey <tromey@redhat.com>
7143 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7145 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7147 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7148 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7149 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7150 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7152 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7153 Tom Tromey <tromey@redhat.com>
7156 * configure: Rebuild.
7157 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7160 2013-05-10 Pedro Alves <palves@redhat.com>
7162 * remote.c (_initialize_remote): Fix spelling of
7163 qXfer:traceframe-info:read packet in packet config command.
7165 2013-05-10 David Taylor <dtaylor@emc.com>
7169 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7170 "QTro" at start of packet.
7172 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7174 * solib-aix.c (solib_aix_relocate_section_addresses):
7175 For the .bss section action, apply the same offset as
7178 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7180 * solib-aix.c (solib_aix_relocate_section_addresses):
7181 Remove FIXME comment.
7183 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7186 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7187 New functions, directly copied from sparc-sol-thread.c.
7188 * sparc-sol-thread.c: Delete.
7189 * configure.ac: Remove code handling sparc-solaris-thread.c.
7190 * configure: Regenerate.
7192 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7194 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7196 (backtrace_command): Add "no-filters" option parsing.
7197 (_initialize_stack): Alter help to reflect "no-filters" option.
7198 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7199 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7200 (py-frame.o): Add target
7201 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7203 * python/python.h: Add new frame filter constants, and flag enum.
7204 (apply_frame_filter): Add definition.
7205 * python/python.c (apply_frame_filter): New non-Python
7207 * python/py-utils.c (py_xdecref): New function.
7208 (make_cleanup_py_xdecref): Ditto.
7209 * python/py-objfile.c: Declare frame_filters dictionary.
7210 (objfpy_dealloc): Add frame_filters dealloc.
7211 (objfpy_new): Initialize frame_filters attribute.
7212 (objfile_to_objfile_object): Ditto.
7213 (objfpy_get_frame_filters): New function.
7214 (objfpy_set_frame_filters): New function.
7215 * python/py-progspace.c: Declare frame_filters dictionary.
7216 (pspy_dealloc): Add frame_filters dealloc.
7217 (pspy_new): Initialize frame_filters attribute.
7218 (pspacee_to_pspace_object): Ditto.
7219 (pspy_get_frame_filters): New function.
7220 (pspy_set_frame_filters): New function.
7221 * python/py-framefilter.c: New file.
7222 * python/lib/gdb/command/frame_filters.py: New file.
7223 * python/lib/gdb/frames.py: New file.
7224 * python/lib/gdb/__init__.py: Initialize global frame_filters
7226 * python/lib/gdb/FrameDecorator.py: New file.
7227 * python/lib/gdb/FrameIterator.py: New file.
7228 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7229 * mi/mi-cmds.h: Declare.
7230 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7231 --no-frame-filter logic, and Python frame filter logic.
7232 (stack_enable_frame_filters): New function.
7233 (parse_no_frame_option): Ditto.
7234 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7236 (mi_cmd_stack_list_locals): Ditto.
7237 (mi_cmd_stack_list_args): Ditto.
7238 (mi_cmd_stack_list_variables): Ditto.
7239 * NEWS: Add frame filter note.
7241 2013-05-09 Doug Evans <dje@google.com>
7243 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7244 All callers updated.
7245 (syms_from_objfile): Ditto. Make static.
7246 (symbol_file_add_with_addrs): Renamed from
7247 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7248 num_offsets. All callers updated.
7249 * symfile.h (syms_from_objfile): Delete.
7251 * symfile.c (decrement_reading_symtab): Add assert.
7252 (increment_reading_symtab): Ditto.
7254 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7256 * source.c (forward_search_command): Replace call to getc
7258 (reverse_search_command): Likewise.
7260 2013-05-08 Doug Evans <dje@google.com>
7262 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7265 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7267 * sol-thread.c (info_cb): Factorize the code a little.
7269 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7271 * sol-thread.c (info_cb): Rework the output of the "maintenance
7272 info sol-threads" command a bit.
7274 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7276 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7277 Replace ti.ti_startfunc by ti.ti_pc.
7279 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7281 * solib-aix.c (solib_aix_free_library_list): New function
7282 for the case where HAVE_LIBEXPAT is not defined.
7284 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7286 PR breakpoints/15413:
7287 * breakpoint.c (condition_completer): Simplify the code to
7288 disconsider multiple locations of breakpoints when completing the
7289 "condition" command.
7291 2013-05-07 Pierre Muller <muller@sourceware.org>
7293 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7294 instead of <sys/wait.h>.
7296 2013-05-07 Pierre Muller <muller@sourceware.org>
7298 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7299 trailing new line from warning message.
7301 2013-05-07 Pierre Muller <muller@sourceware.org>
7303 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7304 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7306 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7308 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7309 error message (ARI fix).
7311 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7313 * features/library-list-aix.dtd: Replace library-list by
7315 * rs6000-nat.c: Replace library-list by library-list-aix
7317 * solib-aix.c: Likewise.
7319 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7321 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7322 Renames TARGET_OBJECT_AIX_LIBRARIES.
7323 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7324 TARGET_OBJECT_LIBRARIES_AIX throughout.
7325 * solib-aix.c: Likwise.
7327 2013-05-07 Yao Qi <yao@codesourcery.com>
7329 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7330 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7332 2013-05-07 Yao Qi <yao@codesourcery.com>
7334 * solib-dsbt.c (enable_break): Declare.
7335 (dsbt_current_sos): Remove call to enable_break2.
7336 (enable_break2): Rename to enable_break. Set solib breakpoint
7337 on '_dl_debug_state'.
7338 (enable_break): Remove.
7340 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7342 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7343 debug state prior to replicating existing hardware watchpoints or
7346 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7348 * gcore.c (gcore_create_callback): Ignore sections with
7349 separate_debug_objfile_backlink != NULL.
7351 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7352 Andrew Jenner <andrew@codesourcery.com>
7353 Chung-Lin Tang <cltang@codesourcery.com>
7354 Julian Brown <julian@codesourcery.com>
7356 Based on the nios2-elf port from Altera Corporation.
7358 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7360 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7361 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7362 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7363 * nios2-tdep.h: New.
7364 * nios2-tdep.c: New.
7365 * nios2-linux-tdep.c: New.
7366 * features/Makefile (WHICH): Add nios2-linux.
7367 (nios2-linux-expedite): Set.
7368 * features/nios2-cpu.xml: New.
7369 * features/nios2.xml: New.
7370 * features/nios2-linux.xml: New.
7371 * features/nios2.c: New (autogenerated).
7372 * features/nios2-linux.c: New (autogenerated).
7373 * regformats/nios2-linux.dat: New (autogenerated).
7374 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7377 2013-05-06 Doug Evans <dje@google.com>
7379 * symfile.c: Whitespace cleanup.
7381 * solist.h (struct target_so_ops): New member clear_so.
7382 * solib-svr4.c (svr4_clear_so): New function.
7383 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7384 * solib.c (clear_so): Renamed from free_so_symbols.
7385 All callers updated. Call target clear_so if it exists.
7387 2013-05-06 Tom Tromey <tromey@redhat.com>
7389 * ada-lang.c (ada_value_primitive_packed_val): Don't
7391 * value.c (set_value_parent): Incref the new parent and decref
7393 (value_copy, value_primitive_field): Use set_value_parent.
7395 2013-05-06 Tom Tromey <tromey@redhat.com>
7397 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7398 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7400 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7401 * dwarf2read.c (write_constant_as_bytes)
7402 (dwarf2_fetch_constant_bytes): New functions.
7404 2013-05-06 Tom Tromey <tromey@redhat.com>
7406 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7408 (dwarf2_const_value_attr): Update.
7410 2013-05-06 Tom Tromey <tromey@redhat.com>
7412 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7413 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7414 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7417 2013-05-06 Tom Tromey <tromey@redhat.com>
7419 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7422 2013-05-06 Doug Evans <dje@google.com>
7424 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7425 * stabsread.h (process_one_symbol): Update declaration.
7426 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7427 * elfread.c (elf_symfile_relocate_probe): Ditto.
7428 * psymtab.c (relocate_psymtabs): Ditto.
7429 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7430 (objfile_relocate): Ditto.
7431 * objfiles.h (objfile_relocate): Update declaration.
7432 * symfile.c (relative_addr_info_to_section_offsets): Constify
7434 (default_symfile_offsets): Ditto.
7435 (syms_from_objfile_1): Constify offsets parameter.
7436 (syms_from_objfile): Ditto.
7437 (symbol_file_add_with_addrs_or_offsets): Ditto.
7438 (symfile_map_offsets_to_segments): Constify data parameter.
7439 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7440 delta parameters of member relocate.
7441 (struct sym_probe_fns): Constify new_offsets,
7442 delta parameters of member sym_relocate_probe.
7443 (struct sym_fns): Constify section_addr_info parameter of member
7445 (relative_addr_info_to_section_offsets): Update declaration.
7446 (default_symfile_offsets): Ditto.
7447 (syms_from_objfile): Ditto.
7448 (symfile_map_offsets_to_segments): Ditto.
7450 * symfile.c (syms_from_objfile_1): Use correct section count when
7451 objfile->sf == NULL.
7453 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7455 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7457 2013-05-06 Doug Evans <dje@google.com>
7459 * psympriv.h (struct partial_symtab): Augment comment for member
7462 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7464 Reimplement shared library support on ppc-aix...
7465 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7466 * features/library-list-aix.dtd: New file.
7467 * solib-aix.h, solib-aix.c: New file.
7468 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7469 (rs6000_find_toc_address_hook): Delete.
7470 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7471 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7472 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7474 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7475 (vmap_symtab, fixup_breakpoints): Delete.
7476 (rs6000_xfer_shared_libraries): New function.
7477 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7478 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7479 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7480 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7481 (rs6000_xfer_shared_library): New function.
7482 (find_toc_address): Delete.
7483 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7484 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7485 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7486 before creating minimal symbol. Adjust function description
7488 (scan_xcoff_symtab): Replace call to
7489 prim_record_minimal_symbol_and_info by call to
7490 record_minimal_symbol.
7491 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7492 around default_symfile_offsets.
7493 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7494 powerpc-aix targets.
7495 * config/rs6000/nm-rs6000.h: Delete.
7496 * config/powerpc/aix.mh (NAT_FILE): Delete.
7497 (NATDEPFILES): Remove xcoffsolib.o.
7498 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7499 (ALL_TARGET_OBS): Add solib-aix.o.
7500 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7501 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7502 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7503 * xcoffsolib.h, xcoffsolib.c: Delete.
7505 * solib.c (reload_shared_libraries): Remove reference to
7506 SOLIB_CREATE_INFERIOR_HOOK.
7507 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7508 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7509 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7511 * corelow.c (deprecated_core_resize_section_table): Delete.
7512 * exec.c: Remove include of xcoffsolib.h".
7513 (map_vmap, vmap): Delete.
7514 (exec_close_1): Remove references to vmap.
7515 (exec_file_attach): Remove vmap handling code, and reference
7516 to DEPRECATED_IBM6000_TARGET.
7517 (bfdsec_to_vmap): Delete.
7518 (exec_files_info): Remove block of code handling VMAP.
7519 * infcmd.c (post_create_inferior): Remove reference to
7520 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7521 * infrun.c (follow_exec): Remove reference to
7522 SOLIB_CREATE_INFERIOR_HOOK.
7523 * stack.c (print_frame): Remove reference to PC_SOLIB.
7524 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7525 (dsbt_relocate_main_executable): Likewise.
7526 * solib-frv.c (frv_current_sos): Likewise.
7528 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7530 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7531 to target_write_memory and target_read_memory.
7533 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7535 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7536 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7538 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7540 * darwin-nat.c: Replace all "%x" instances in format strings
7541 into "0x%x" throughout.
7543 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7545 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7546 gdb_assert by call to MACH_CHECK_ERROR.
7547 (darwin_attach_pid): Raise an error rather than a failed
7548 assertion when various system calls failed. Report a warning
7549 instead of raising a failed assertion when PREV_NOT is not NULL
7550 after call to mach_port_request_notification.
7551 (darwin_ptrace_me): Raise an error rather than a failed
7552 assertion when read returns nonzero.
7554 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7556 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7558 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7560 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7562 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7564 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7565 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7566 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7567 a stale cleanup. Fix double free of NAME.
7569 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7571 * windows-nat.c (windows_delete_thread): Accept an additional
7572 argument, the thread's exit code, and announce thread death when
7573 print_thread_events is non-zero and we are deleting a thread that
7574 is not the main thread.
7575 (get_windows_debug_event): Pass thread exit code to
7576 windows_delete_thread.
7578 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7580 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7581 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7582 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7583 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7584 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7585 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7586 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7587 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7588 (gdbarch_tdep): New struct.
7589 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7591 (v850e3v5_register_name): New function.
7592 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7593 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7594 code handling the struct return conventions for the RH850 ABI.
7596 (v850_eight_byte_align_p): New function.
7597 (v850_push_call_dummy): Push structs by value, not by reference
7598 for the RH850 ABI. Add support for eight byte alignment.
7599 (v850_dbtrap_breakpoint_from_pc): New function.
7600 (v850_gdbarch_init): Add ABI detection code. Register
7601 v850e3v5_register_name for the v850e3v5 architecture. Set the
7602 number of registers for v850e3v5. Register
7603 v850_dbtrap_breakpoint_from_pc as appropriate.
7604 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7606 2013-05-03 Doug Evans <dje@google.com>
7608 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7609 of bfd_count_sections.
7610 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7611 * symfile.c (default_symfile_offsets): Ditto.
7612 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7613 one entry, not bfd_count_sections entries.
7615 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7617 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7618 `save' and `restore' register groups. Don't include SPL
7619 or SPH in these groups.
7620 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7621 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7622 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7623 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7624 dwarf2_append_unwinders().
7626 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7628 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7629 ignore SIGINT and SIGTRAP in case these internal signals are
7632 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7634 * darwin-nat.c (darwin_read_write_inferior): Change types
7635 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7636 of copy_count to "mach_msg_type_number_t".
7637 (darwin_read_dyld_info): Change type of parameter
7638 rdaddr to "gdb_byte *".
7640 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7642 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7643 of &info->load_map from "char *" to "gdb_byte *".
7645 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7647 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7648 from "char *" to "gdb_byte *".
7649 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7651 2013-04-30 Doug Evans <dje@google.com>
7653 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7654 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7655 DWO stub. If DWO isn't found, just use stub.
7656 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7658 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7659 calling init_cutu_and_read_dies.
7661 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7663 * target-descriptions.c (maint_print_c_tdesc_cmd):
7664 Add case to parse structures as register types and
7667 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7669 * MAINTAINERS (Write After Approval): Add myself to the list.
7671 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7673 * sol-thread.c (rw_common): Change type of parameter "buf"
7675 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7676 rw_common to "gdb_byte *" instead of "char *".
7678 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7680 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7681 of local variable msym to const struct bound_minimal_symbol.
7682 Adjust use accordingly.
7683 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7685 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7687 * i386gnu-nat.c (CREG_OFFSET): New macro.
7688 (creg_offset): New array.
7689 (CREG_ADDR): Use creg_offset instead of reg_offset.
7691 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7693 * mep-tdep.c (mep_write_pc): Delete.
7694 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7695 Add call to set_gdbarch_pc_regnum.
7697 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7699 * common/filestuff.c: Replace #include <dirent.h> by
7700 #include "gdb_dirent.h".
7702 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7704 * common/filestuff.c: Replace #include <sys/stat.h> by
7705 #include "gdb_stat.h".
7707 2013-04-29 Pierre Muller <muller@sourceware.org>
7709 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7710 editCase function rule.
7711 (get_DW_AT_signature_type): Likewise.
7713 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7715 * m32r-tdep.c (m32r_write_pc): Delete.
7716 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7717 Add call to set_gdbarch_pc_regnum.
7719 2013-04-29 Pierre Muller <muller@sourceware.org>
7721 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7723 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7725 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7727 2013-04-28 Yao Qi <yao@codesourcery.com>
7729 * solib-dsbt.c (fetch_loadmap): Re-indent.
7730 (displacement_from_map, enable_break2): Likewise.
7731 (dsbt_relocate_section_addresses): Likewise.
7733 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7737 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7740 * dwarf2read.c (process_full_comp_unit): Always create a static
7743 2013-04-25 Hui Zhu <hui@codesourcery.com>
7745 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7746 to loc->cmd_bytecode.
7748 2013-04-24 Doug Evans <dje@google.com>
7750 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7752 2013-04-22 Keith Seitz <keiths@redhat.com>
7754 * tracepoint.c (trace_save): Call the writer's start method.
7756 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7759 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7762 2013-04-23 Tom Tromey <tromey@redhat.com>
7764 * common/filestuff.c: Check USE_WIN32API before including
7766 (HAVE_F_GETFD): New define.
7767 (mark_cloexec): Check HAVE_F_GETFD.
7768 (gdb_open_cloexec): Change 'mode' to unsigned long.
7769 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7770 (gdb_pipe_cloexec): Check HAVE_PIPE.
7771 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7774 2013-04-23 Hui Zhu <hui@codesourcery.com>
7777 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7779 2013-04-23 Hui Zhu <hui@codesourcery.com>
7782 * breakpoint.c (dprintf_print_recreate): New.
7783 (save_breakpoints): Let it not save dprintf commands.
7784 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7786 2013-04-22 Tom Tromey <tromey@redhat.com>
7789 * Makefile.in (SFILES): Add filestuff.c
7790 (COMMON_OBS): Add filestuff.o.
7791 (filestuff.o): New target.
7792 * auto-load.c (auto_load_objfile_script_1): Use
7794 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7795 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7796 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7797 * common/agent.c (gdb_connect_sync_socket): Use
7799 * common/filestuff.c: New file.
7800 * common/filestuff.h: New file.
7801 * common/linux-osdata.c (linux_common_core_of_thread)
7802 (command_from_pid, commandline_from_pid, print_source_lines)
7803 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7804 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7806 * common/linux-procfs.c (linux_proc_get_int)
7807 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7808 * config.in, configure: Rebuild.
7809 * configure.ac: Don't check for sys/socket.h. Check for
7811 * corelow.c (core_open): Use gdb_open_cloexec.
7812 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7813 * fork-child.c (fork_inferior): Call close_most_fds.
7814 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7815 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7816 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7817 Use gdb_fopen_cloexec.
7818 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7820 (linux_async_pipe): Use gdb_pipe_cloexec.
7821 * remote-fileio.c (remote_fileio_func_open): Use
7823 * remote.c (remote_file_put, remote_file_get): Use
7825 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7827 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7828 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7829 * solib.c (solib_find): Use gdb_open_cloexec.
7830 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7831 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7832 (tfile_open): Use gdb_open_cloexec.
7833 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7834 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7835 * xml-support.c (xml_fetch_content_from_file): Use
7837 * main.c (captured_main): Call notice_open_fds.
7839 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7841 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7842 'char *' to 'gdb_byte *'.
7843 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7846 2013-04-22 Yao Qi <yao@codesourcery.com>
7848 * infrun.c: Fix typo in comment.
7850 2013-04-22 Andrew Haley <aph@redhat.com>
7852 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7855 2013-04-20 Yao Qi <yao@codesourcery.com>
7857 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7858 'char *' to 'gdb_byte *'. Cast the return value of
7859 'bt_ctf_get_char_array' to 'gdb_byte *'.
7861 2013-04-19 Pedro Alves <palves@redhat.com>
7863 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7865 * configure: Regenerate.
7867 2013-04-19 Pedro Alves <palves@redhat.com>
7869 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7872 2013-04-19 Pedro Alves <palves@redhat.com>
7874 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7875 Change type of 'myaddr' parameter to gdb_byte pointer.
7876 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7877 to 'long long' pointer instead of to 'unsigned long long'.
7878 (monitor_write_memory_block, monitor_read_memory_single)
7879 (monitor_read_memory): Change type of 'myaddr' parameter to
7882 2013-04-19 Pedro Alves <palves@redhat.com>
7884 * record.c (validate_history_size): Make parameter 'setting'
7887 2013-04-19 Pedro Alves <palves@redhat.com>
7889 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7892 2013-04-19 Pedro Alves <palves@redhat.com>
7894 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7897 2013-04-19 Pedro Alves <palves@redhat.com>
7899 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7900 * ada-tasks.c (read_fat_string_value): Likewise.
7902 2013-04-19 Pedro Alves <palves@redhat.com>
7904 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7905 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7906 'offset', and adjust.
7908 2013-04-19 Pedro Alves <palves@redhat.com>
7910 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7911 (read_index_from_section): Add cast to 'char *'.
7913 2013-04-19 Pedro Alves <palves@redhat.com>
7915 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7917 2013-04-19 Pedro Alves <palves@redhat.com>
7919 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7921 2013-04-19 Pedro Alves <palves@redhat.com>
7923 * record-full.c (record_full_get_bookmark): Change local 'ret'
7924 type to char * and add cast to gdb_byte *.
7925 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7927 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7929 2013-04-19 Pedro Alves <palves@redhat.com>
7931 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7932 * python/py-prettyprint.c (print_string_repr): Change type of
7933 'output' local to char *. Add cast to gdb_byte * in
7934 LA_PRINT_STRING call.
7935 (print_children): Change type of 'output' local to char *.
7936 * python/py-value.c (valpy_string): Add cast to const char * in
7937 PyUnicode_Decode call.
7939 2013-04-19 Pedro Alves <palves@redhat.com>
7941 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7942 and change its type to 'const char *'. Adjust.
7943 (mips_send_packet): Add cast to 'char *', and remove cast to
7945 (mips_receive_packet): Remove cast to 'unsigned char *'.
7946 (mips_load_srec): Use bfd_byte.
7947 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7948 (pmon_checkset): Make 'value' parameter unsigned.
7950 2013-04-19 Pedro Alves <palves@redhat.com>
7952 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7954 2013-04-19 Pedro Alves <palves@redhat.com>
7956 * remote.c (remote_write_bytes_aux, compare_sections_command)
7958 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7959 (remote_hostio_readlink, remote_bfd_iovec_pread)
7960 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7961 binary buffer, and char when buffer is used as string.
7962 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7963 (trace_save, tfile_open, traceframe_walk_blocks)
7964 (tfile_fetch_registers): Likewise.
7966 2013-04-19 Pedro Alves <palves@redhat.com>
7968 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7969 buffer and size_t size. Adjust.
7970 * ser-base.h (ser_base_write): Adjust.
7971 * ser-go32.c (cnts): Change type to size_t.
7972 (dos_write): Change prototype -- take 'void *'
7973 buffer and size_t size. Adjust.
7974 (dos_info): Print elements of 'cnts' as unsigned long.
7975 * serial.c (serial_write): Likewise.
7976 * serial.h (serial_write): Adjust.
7977 (struct serial_ops) <write>: Change prototype -- take 'void *'
7978 buffer and size_t size. Adjust.
7980 2013-04-19 Pedro Alves <palves@redhat.com>
7982 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7984 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7986 2013-04-19 Pedro Alves <palves@redhat.com>
7988 * alpha-tdep.c (alpha_extract_return_value): Use
7989 regcache_cooked_read_unsigned to read 'v0'.
7991 2013-04-19 Pedro Alves <palves@redhat.com>
7993 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7994 parameters 'at', 'as' and 'offset' to uint32_t.
7996 2013-04-19 Pedro Alves <palves@redhat.com>
7998 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7999 'is64' to signed 'int'.
8001 2013-04-19 Pedro Alves <palves@redhat.com>
8003 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8006 2013-04-19 Pedro Alves <palves@redhat.com>
8008 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8009 'insnbuf' buffer type to unsigned int[].
8011 2013-04-19 Pedro Alves <palves@redhat.com>
8013 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8015 2013-04-19 Pedro Alves <palves@redhat.com>
8017 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8020 2013-04-19 Pedro Alves <palves@redhat.com>
8022 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8023 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8025 * mips-tdep.c (heuristic_fence_post): Change type to int.
8026 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8028 2013-04-19 Pedro Alves <palves@redhat.com>
8030 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8031 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8032 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8034 2013-04-19 Pedro Alves <palves@redhat.com>
8036 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8037 it to get a string view of the byte buffer.
8038 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8039 type to gdb_byte *. Adjust.
8040 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8041 Change local to char *.
8042 * solib-darwin.c (find_program_interpreter): Change return type to
8044 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8045 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8046 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8047 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8048 * solib-svr4.c (find_program_interpreter): Change return type to
8050 (enable_break): Change local 'interp_name' to char *.
8051 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8052 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8053 (spu_pseudo_register_write_spu): Use char for string buffer.
8055 (info_spu_event_command, info_spu_signal_command): Add casts to
8058 2013-04-19 Pedro Alves <palves@redhat.com>
8060 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8062 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8063 * ada-lang.c (ada_value_assign): Use gdb_byte.
8064 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8065 (alphanbsd_sigtramp_offset): Use gdb_byte.
8066 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8067 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8068 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8069 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8070 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8071 * arm-tdep.c (arm_stub_unwind_sniffer)
8072 (arm_displaced_init_closure): Use gdb_byte.
8073 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8074 (arm_default_thumb_le_breakpoint)
8075 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8076 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8077 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8078 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8079 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8080 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8081 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8082 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8083 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8084 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8085 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8086 (cris_store_return_value, cris_extract_return_value): Use
8088 (constraint): Change type of parameter to char * from signed
8089 char*. Use gdb_byte.
8090 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8091 of local buffer to gdb_byte *.
8092 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8093 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8094 (add_address_entry): Change type of local buffer to gdb_byte[].
8095 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8096 (frv_push_dummy_call): Use gdb_byte.
8097 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8098 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8099 (hppa_hpux_supply_save_state): Use gdb_byte.
8100 * hppa-tdep.c (hppa32_push_dummy_call)
8101 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8102 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8103 (slotN_contents, replace_slotN_contents): Change type of parameter
8105 (fetch_instruction, ia64_pseudo_register_write)
8106 (ia64_register_to_value, ia64_value_to_register)
8107 (ia64_extract_return_value, ia64_store_return_value)
8108 (ia64_push_dummy_call): Use gdb_byte.
8109 * m32c-tdep.c (m32c_return_value): Remove cast.
8110 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8111 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8113 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8114 * mn10300-tdep.c (mn10300_store_return_value)
8115 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8117 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8118 (moxie_process_record): Remove casts.
8119 * ppc-ravenscar-thread.c (supply_register_at_address)
8120 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8121 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8122 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8123 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8124 * remote.c (compare_sections_command): Use gdb_byte.
8125 * score-tdep.c (score7_free_memblock): Change type of parameter to
8127 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8128 gdb_byte *. Use gdb_byte.
8129 (sh_push_dummy_call_fpu): Use gdb_byte.
8130 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8131 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8132 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8133 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8134 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8135 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8136 (sh64_store_return_value, sh64_register_convert_to_virtual):
8137 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8138 (sh64_pseudo_register_write): Use gdb_byte.
8139 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8140 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8142 (irix_current_sos): Use gdb_byte.
8143 * solib-som.c (som_current_sos): Use gdb_byte.
8144 * sparc-ravenscar-thread.c (supply_register_at_address)
8145 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8146 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8147 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8148 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8150 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8152 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8153 * xstormy16-tdep.c (xstormy16_extract_return_value)
8154 (xstormy16_store_return_value): Change parameter type to
8155 'gdb_byte *'. Adjust.
8156 (xstormy16_push_dummy_call): Use gdb_byte.
8157 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8158 (call0_analyze_prologue, execute_code): Use gdb_byte.
8160 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8161 Pedro Alves <palves@redhat.com>
8163 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8166 2013-04-17 Doug Evans <dje@google.com>
8168 * dwarf2read.c (struct signatured_type): New member type.
8169 (struct attribute): Replace member signatured_type with signature.
8170 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8171 (read_call_site_scope): Call follow_die_ref instead of
8172 follow_die_ref_or_sig.
8173 (read_structure_type): Rewrite handling of signatured types.
8174 (read_enumeration_type): Ditto.
8175 (read_attribute_value): Update.
8176 (build_error_marker_type): New function.
8177 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8178 Don't call error for bad types, just build an error marker type.
8179 (dump_die_shallow): Update.
8180 (follow_die_sig_1): Renamed from follow_die_sig.
8181 Don't call error for bad types, instead return NULL.
8182 (follow_die_sig): New function.
8183 (get_signatured_type, get_DW_AT_signature_type): New functions.
8185 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8187 * aarch64-tdep.c (aarch64_write_pc): Removed.
8188 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8191 2013-04-17 Yao Qi <yao@codesourcery.com>
8193 * top.c (print_gdb_configuration): Print configure-time
8194 parameter on using libbabeltrace or not.
8196 2013-04-16 Pedro Alves <palves@redhat.com>
8198 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8200 2013-04-16 Pedro Alves <palves@redhat.com>
8202 * common/glibc_thread_db.h: Update from upstream glibc
8203 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8205 2013-04-16 Pedro Alves <palves@redhat.com>
8207 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8208 * common/glibc_thread_db.h: ... this new file ...
8209 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8211 2013-04-16 Will Newton <will.newton@gmail.com>
8212 Pedro Alves <palves@redhat.com>
8216 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8217 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8220 2013-04-16 Pedro Alves <palves@redhat.com>
8221 Eli Zaretskii <eliz@gnu.org>
8223 * NEWS: Mention "set foo unlimited".
8225 2013-04-15 Doug Evans <dje@google.com>
8227 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8228 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8229 (create_dwo_cu_reader): Renamed from
8230 create_dwo_debug_info_hash_table_reader.
8231 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8232 Remove support for multiple CUs in a DWO file.
8233 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8235 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8237 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8238 (create_dwo_in_dwp): Ditto.
8240 2013-04-15 Tom Tromey <tromey@redhat.com>
8242 * NEWS: Move recent entries into "since 7.6" section.
8244 2013-04-15 Tom Tromey <tromey@redhat.com>
8248 * break-catch-throw.c (struct exception_catchpoint)
8249 <exception_rx, pattern>: New fields.
8250 (fetch_probe_arguments, dtor_exception_catchpoint)
8251 (check_status_exception_catchpoint)
8252 (print_one_detail_exception_catchpoint): New functions.
8253 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8254 Compile regular expression if needed.
8255 (extract_exception_regexp): New function.
8256 (catch_exception_command_1): Use extract_exception_regexp.
8257 (compute_exception): Use fetch_probe_arguments.
8258 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8259 and check_status fields.
8260 * cp-abi.c (cplus_typename_from_type_info): New function.
8261 * cp-abi.h (cplus_typename_from_type_info): Declare.
8262 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8263 * gdb_regex.h (compile_rx_or_error): Declare.
8264 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8266 (init_gnuv3_ops): Set get_type_from_type_info field.
8267 * probe.c (compile_rx_or_error): Move...
8268 * utils.c (compile_rx_or_error): ... here.
8270 2013-04-15 Tom Tromey <tromey@redhat.com>
8274 * break-catch-throw.c (compute_exception): New function.
8275 (exception_funcs): New global.
8276 (_initialize_break_catch_throw): Create $_exception.
8277 * cp-abi.c (cplus_type_from_type_info): New function.
8278 * cp-abi.h (cplus_type_from_type_info): Declare.
8279 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8280 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8281 (gnuv3_get_type_from_type_info): New functions.
8282 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8284 2013-04-15 Tom Tromey <tromey@redhat.com>
8286 * break-catch-throw.c (struct exception_names): New.
8287 (exception_functions): Change type.
8288 (re_set_exception_catchpoint): Look for SDT probes.
8290 2013-04-15 Tom Tromey <tromey@redhat.com>
8293 * break-catch-throw.c (exception_functions): New global.
8294 (gnu_v3_exception_catchpoint_ops): Move earlier.
8295 (struct exception_catchpoint): New.
8296 (classify_exception_breakpoint): Rewrite.
8297 (re_set_exception_catchpoint): New function.
8298 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8299 Allocate a struct exception_catchpoint.
8300 (catch_exception_command_1): Update.
8301 (initialize_throw_catchpoint_ops): Set 're_set' method.
8303 2013-04-15 Tom Tromey <tromey@redhat.com>
8305 * Makefile.in (SFILES): Add break-catch-throw.c
8306 (COMMON_OBS): Add break-catch-throw.o.
8307 * break-catch-throw.c: New file.
8308 * breakpoint.c: Move exception-catching code to new file.
8309 (ep_parse_optional_if_clause): No longer static.
8310 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8312 2013-04-15 Tom Tromey <tromey@redhat.com>
8316 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8317 * c-exp.y (TYPEID): New token.
8318 (exp): Add new TYPEID productions.
8319 (ident_tokens): Add "typeid".
8320 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8321 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8322 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8323 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8324 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8326 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8327 (build_std_type_info_type, gnuv3_get_typeid_type)
8328 (gnuv3_get_typeid): New functions.
8329 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8330 new fields on ABI object.
8331 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8332 * std-operator.def (OP_TYPEID): New.
8334 2013-04-15 Tom Tromey <tromey@redhat.com>
8336 * elfread.c (elf_symtab_read): Install versioned symbol under
8337 unversioned name as well.
8339 2013-04-15 Tom Tromey <tromey@redhat.com>
8342 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8343 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8344 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8345 (gdb_demangle): New function.
8346 * cp-support.h (gdb_demangle): Declare.
8347 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8348 (dwarf2_name): Use gdb_demangle.
8349 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8350 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8352 (gnuv3_print_method_ptr): Use gdb_demangle.
8353 * jv-lang.c (java_demangle): Use gdb_demangle.
8354 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8355 * language.c (unk_lang_demangle): Use gdb_demangle.
8356 * symtab.c (symbol_find_demangled_name)
8357 (demangle_for_lookup): Use gdb_demangle.
8359 2013-04-15 Tom Tromey <tromey@redhat.com>
8363 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8365 (classify_exception_breakpoint): New function.
8366 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8367 (print_mention_exception_catchpoint)
8368 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8369 (catch_exception_command_1): Handle "rethrow" catchpoint.
8370 (catch_rethrow_command): New function.
8371 (_initialize_breakpoint): Add "catch rethrow" command.
8373 2013-04-15 Pierre Muller <muller@sourceware.org>
8375 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8376 set_gdbarch_write_pc as deprecated anymore.
8378 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8380 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8383 2013-04-13 Yao Qi <yao@codesourcery.com>
8385 * ctf.c (_initialize_ctf): Include "completer.h".
8386 Call add_target_with_completer instead of add_target.
8388 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8390 Fix GDB regression related to PR binutils/14813.
8391 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8392 * minidebug.c (lzma_close): Add return value comment.
8393 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8394 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8395 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8397 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8399 * config.in: Regenerate.
8401 2013-04-12 Tom Tromey <tromey@redhat.com>
8403 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8405 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8406 (struct die_reader_specs) <buffer>: Likewise.
8407 (die_reader_func_ftype): Make 'info_ptr' const.
8408 (struct line_header) <include_dirs, statement_program_start,
8409 statement_program_end>: Now const.
8410 (struct file_entry) <name>: Likewise.
8411 (struct partial_die_info) <sibling>: Likewise.
8412 (struct dwarf_block) <data>: Likewise.
8413 (dwarf2_read_section): Remove cast.
8414 (dwarf2_get_section_info): Make 'bufp' const.
8415 (read_index_from_section): Constify.
8416 (dw2_get_file_names_reader): Make 'info_ptr' const.
8417 (dw2_get_primary_filename_reader): Likewise.
8418 (read_comp_unit_head): Make 'info_ptr' and return type const.
8419 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8421 (read_abbrev_offset): Constify.
8422 (dwarf2_create_include_psymtab): Make 'name' const.
8423 (create_debug_types_hash_table): Update.
8424 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8425 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8427 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8428 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8429 (read_comp_units_from_section): Constify.
8430 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8431 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8433 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8434 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8435 (create_dwp_hash_table, dwarf2_ranges_read)
8436 (dwarf2_record_block_ranges): Constify.
8437 (read_die_and_children, read_die_and_siblings_1)
8438 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8440 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8441 (abbrev_table_read_table): Constify.
8442 (load_partial_dies): Make 'info_ptr' const.
8443 (read_partial_die, read_attribute_value, read_attribute): Make
8444 'info_ptr' and return type const.
8445 (read_address, read_initial_length)
8446 (read_checked_initial_length_and_offset, read_offset)
8447 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8449 (read_direct_string): Make 'buf' and return type const.
8450 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8451 (read_indirect_string): Make return type const.
8452 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8453 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8455 (read_str_index): Make return type const.
8456 (add_include_dir): Make 'include_dir' const.
8457 (add_file_name): Make 'name' const.
8458 (dwarf_decode_line_header): Constify.
8459 (psymtab_include_file_name): Make return type const.
8460 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8461 (dwarf2_start_subfile): Make 'filename' const.
8462 (dwarf2_const_value_attr): Make 'bytes' const.
8463 (read_signatured_type_reader): Make 'info_ptr' const.
8464 (decode_locdesc): Constify.
8465 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8467 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8468 'mac_end', and return type const.
8469 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8470 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8472 (per_cu_header_read_in): Constify.
8473 * symfile.h (dwarf2_get_section_info): Update.
8475 2013-04-12 Tom Tromey <tromey@redhat.com>
8477 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8479 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8481 * NEWS: Mention "show configuration", --configuration.
8482 * top.c (print_gdb_configuration): New function, displays the
8483 details about GDB configure-time parameters.
8484 (print_gdb_version): Mention "show configuration".
8485 * cli/cli-cmds.c (show_configuration): New function.
8486 (_initialize_cli_cmds): Add the "show configuration" command.
8487 * main.c (captured_main) <print_configuration>: New static var.
8488 <long_options>: Use it.
8489 If --configuration was given, call print_gdb_configuration.
8491 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8492 Pedro Alves <palves@redhat.com>
8494 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8495 (generated_files): Add gcore.
8496 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8497 HAVE_NATIVE_GCORE_HOST.
8499 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8500 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8501 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8502 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8503 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8504 Add HAVE_NATIVE_GCORE_HOST.
8505 * configure: Regenerate.
8506 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8507 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8508 AC_CONFIG_FILES for gcore.
8509 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8511 * gdb_gcore.sh: Rename to ...
8512 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8513 and GCORE_TRANSFORM_NAME substitutions.
8515 Fix parsing tabs in ${gdb_target_obs}.
8516 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8518 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8520 * remote.c (unpush_and_perror): Add output message final dot.
8522 2013-04-11 Yao Qi <yao@codesourcery.com>
8524 * tracepoint.c (tfile_interp_line): Fit parameters line and
8527 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8529 * solib.c (solib_map_sections): Remove code overwriting
8530 SO->SO_NAME with the bfd's filename.
8532 2013-04-10 Pedro Alves <palves@redhat.com>
8534 * cli/cli-decode.c (integer_unlimited_completer): New function.
8535 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8536 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8538 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8539 (is_unlimited_literal): New function.
8540 (do_set_command): Handle literal "unlimited" arguments.
8541 * frame.c (_initialize_frame) <set backtrace limit>: Document
8543 * printcmd.c (_initialize_printcmd) <set print
8544 max-symbolic-offset>: Add help text.
8545 * record-full.c (_initialize_record_full) <set record full
8546 insn-number-max>: Likewise.
8547 * record.c (_initialize_record) <set record
8548 instruction-history-size, set record function-call-history-size>:
8550 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8552 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8554 * source.c (_initialize_source) <set listsize>: Add help text.
8555 * utils.c (initialize_utils) <set height, set width>: Likewise.
8556 <set pagination>: Mention "set height unlimited".
8557 * valprint.c (_initialize_valprint) <set print elements, set print
8558 repeats>: Document "unlimited".
8560 2013-04-10 Pedro Alves <palves@redhat.com>
8562 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8563 instead of disconnect_tracing.
8564 * infcmd.c (detach_command, disconnect_command): Call
8565 query_if_trace_running. Adjust.
8566 * top.c: Include "tracepoint.h".
8567 (quit_target): Delete. Contents moved ...
8568 (quit_force): ... here. Wrap each stage of teardown in
8569 TRY_CATCH. Call disconnect_tracing before detaching.
8571 2013-04-10 Hui Zhu <hui@codesourcery.com>
8572 Yao Qi <yao@codesourcery.com>
8574 * configure.ac: Check libbabeltrace is installed.
8575 * config.in: Regenerate.
8576 * configure: Regenerate.
8577 * Makefile.in (LIBBABELTRACE): New.
8578 (CLIBS): Add LIBBABELTRACE.
8579 * ctf.c: Include "exec.h".
8580 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8581 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8582 (ctf_save_metadata_header): Define new type aliases in
8584 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8585 in metadata. Start a new faked packet for trace status.
8586 (ctf_write_status): Write trace status to CTF.
8587 (ctf_write_uploaded_tsv): Write TSV to CTF.
8588 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8589 (ctf_write_definition_end): End the faked packet.
8591 (ctx, ctf_iter, trace_dirname): New.
8592 (start_pos): New variable.
8593 (ctf_destroy, ctf_open_dir, ctf_open): New.
8594 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8596 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8597 (ctf_fetch_registers, ctf_xfer_partial): New.
8598 (ctf_get_trace_state_variable_value): New.
8599 (ctf_get_tpnum_from_frame_event): New.
8600 (ctf_get_traceframe_address): New.
8601 (ctf_trace_find, ctf_has_stack): New.
8602 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8603 (ctf_get_trace_status, ctf_read_status): New.
8604 (_initialize_ctf): New.
8605 * tracepoint.c (get_tracepoint_number): New
8606 (get_uploaded_tsv): Remove 'static'.
8607 (struct traceframe_info, trace_regblock_size): Move it to ...
8608 * tracepoint.h: ... here.
8609 (get_tracepoint_number): Declare it.
8610 (get_uploaded_tsv): Declare it.
8612 * NEWS: Mention new configure option.
8614 2013-04-10 Pedro Alves <palves@redhat.com>
8615 Hui Zhu <hui@codesourcery.com>
8617 * breakpoint.c (dprintf_re_set): New.
8618 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8621 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8623 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8624 Remove solib-svr4.o from the list.
8626 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8628 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8629 Use gdb_assert_not_reached instead of invalid boolean expression.
8631 2013-04-09 Pedro Alves <palves@redhat.com>
8633 * remote.c (unpush_and_perror): New function.
8634 (readchar, remote_serial_write): Use it.
8636 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8638 * NEWS: Mention new btrace RSP packets.
8640 2013-04-08 Tom Tromey <tromey@redhat.com>
8642 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8645 2013-04-08 Tom Tromey <tromey@redhat.com>
8647 * maint.c (print_bfd_section_info): Print the section index.
8648 * symmisc.c (dump_msymbols): Print the section index.
8650 2013-04-08 Tom Tromey <tromey@redhat.com>
8653 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8654 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8655 * breakpoint.c (resolve_sal_pc): Update.
8656 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8657 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8658 (minsym_lookup_iterator_cb): Use it.
8659 (default_read_var_value): Update.
8660 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8662 * infcmd.c (jump_command): Update.
8663 * linespec.c (minsym_found): Update.
8664 * maint.c (maintenance_translate_address): Update.
8665 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8666 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8667 * parse.c (write_exp_msymbol): Update.
8668 * printcmd.c (address_info): Update.
8669 * psymtab.c (find_pc_sect_psymbol): Update.
8670 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8672 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8673 Don't initialize SYMBOL_OBJ_SECTION.
8674 * spu-tdep.c (spu_catch_start): Update.
8675 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8676 * symmisc.c (dump_msymbols, print_symbol): Update.
8677 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8678 how fallback section is computed.
8679 (fixup_symbol_section): Update.
8680 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8682 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8683 Initialize SYMBOL_SECTION.
8684 * symtab.h (struct general_symbol_info) <section>: Update comment.
8685 <obj_section>: Remove.
8686 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8687 (SYMBOL_OBJFILE): New macro.
8689 2013-04-08 Tom Tromey <tromey@redhat.com>
8691 * coffread.c (record_minimal_symbol): Update.
8692 * dbxread.c (record_minimal_symbol): Update.
8693 * elfread.c (record_minimal_symbol): Update.
8694 * machoread.c (macho_symtab_add_minsym): Update.
8695 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8697 * minsyms.c (prim_record_minimal_symbol): Update.
8698 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8700 (prim_record_minimal_symbol_and_info): Likewise.
8701 * minsyms.h (prim_record_minimal_symbol_full)
8702 (prim_record_minimal_symbol_and_info): Update.
8703 * symtab.c (allocate_symbol, initialize_symbol)
8704 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8705 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8708 2013-04-08 Tom Tromey <tromey@redhat.com>
8711 * solib-som.c (som_solib_section_offsets): Use BFD section
8712 indices. Set offsets for all sections.
8713 * somread.c (som_symtab_read): Compute BFD section for
8714 symbol. Use prim_record_minimal_symbol_and_info.
8715 (som_symfile_read): Fix comment.
8716 (struct find_section_offset_arg): New.
8717 (find_section_offset, set_section_index): New functions.
8718 (som_symfile_offsets): Use set_section_index to compute
8721 2013-04-08 Tom Tromey <tromey@redhat.com>
8723 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8724 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8725 gdb_bfd_section_index.
8726 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8728 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8730 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8732 * objfiles.c (add_to_objfile_sections_full): New function.
8733 (add_to_objfile_sections): Use it.
8734 (build_section_table): Rewrite.
8735 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8736 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8737 (struct objfile) <sections>: Update comment.
8738 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8740 (ALL_OBJSECTIONS): Use it.
8741 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8742 * solib-frv.c (frv_relocate_main_executable): Update.
8743 * solib-target.c (solib_target_relocate_section_addresses):
8744 Use gdb_bfd_section_index.
8745 * symfile.c (build_section_addr_info_from_section_table):
8746 Use gdb_bfd_section_index.
8747 (build_section_addr_info_from_bfd, place_section): Likewise.
8748 * symtab.c (fixup_section): Update.
8749 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8751 2013-04-08 Tom Tromey <tromey@redhat.com>
8753 * minsyms.h (struct bound_minimal_symbol): New.
8754 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8755 Remove objfile argument.
8756 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8757 Return bound_minimal_symbol.
8758 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8759 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8760 Return bound_minimal_symbol.
8761 (in_gnu_ifunc_stub): Update.
8762 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8763 Remove 'objfile_p' argument.
8764 (lookup_solib_trampoline_symbol_by_pc): Update.
8765 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8766 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8767 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8768 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8769 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8770 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8771 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8772 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8773 stack.c, symtab.c, tui/tui-disasm.c: Update.
8775 2013-04-08 Tom Tromey <tromey@redhat.com>
8777 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8778 Use symbol's obstack, not an objfile.
8779 * coffread.c (process_coff_symbol): Update.
8780 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8781 * jv-lang.c (add_class_symbol): Update.
8782 * mdebugread.c (new_symbol): Update.
8783 * minsyms.c (prim_record_minimal_symbol_full)
8784 (terminate_minimal_symbol_table): Update.
8785 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8786 * stabsread.c (define_symbol, read_enum_type): Update.
8787 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8788 Handle Ada specially.
8789 (symbol_set_language): Add 'obstack' argument.
8790 (symbol_set_names): Update.
8791 (symbol_natural_name, symbol_demangled_name): Always use
8793 * symtab.h (struct general_symbol_info)
8794 <language_specific::obstack>: New field.
8795 <ada_mangled>: New field.
8796 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8797 (symbol_set_language): Update.
8799 2013-04-08 Tom Tromey <tromey@redhat.com>
8801 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8802 Take an obstack, not an objfile.
8803 (symbol_set_names): Update.
8804 * symtab.h (symbol_set_demangled_name): Update.
8806 2013-04-08 Tom Tromey <tromey@redhat.com>
8808 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8810 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8811 (read_func_scope): Call allocate_template_symbol.
8812 (new_symbol_full): Call allocate_symbol.
8813 * jit.c (finalize_symtab): Call allocate_symbol.
8814 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8815 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8816 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8817 (common_block_end): Call allocate_symbol.
8818 * symtab.c (allocate_symbol, initialize_symbol)
8819 (allocate_template_symbol): New functions.
8820 * symtab.c (allocate_symbol, initialize_symbol)
8821 (allocate_template_symbol): Declare.
8822 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8824 2013-04-08 Pedro Alves <palves@redhat.com>
8825 Keith Seitz <keiths@redhat.com>
8827 * breakpoint.c (create_breakpoint): Rename
8828 "parse_condition_and_thread" parameter to "parse_arg". Update
8829 describing comment. If !PARSE_ARG, then error out if ARG is not
8830 the empty string after extracting the location.
8831 * breakpoint.h (create_breakpoint): Rename
8832 "parse_condition_and_thread" parameter to "parse_arg".
8834 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8836 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8838 2013-04-07 Yao Qi <yao@codesourcery.com>
8840 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8841 and 'addr2' to CORE_ADDR.
8842 * target.c (update_current_target): Update.
8843 * target.h (struct target_ops) <to_trace_find>: Change parameter
8845 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8846 'addr2' to CORE_ADDR.
8847 (tfile_trace_find): Likewise.
8848 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8849 Change local variable 'addr' to type CORE_ADDR.
8850 * tracepoint.h (tfind_1): Update declaration.
8852 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8854 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8855 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8858 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8860 * main.h (windows_get_absolute_argv0): ...to here.
8862 2013-04-05 Doug Evans <dje@google.com>
8864 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8865 (read_cutu_die_from_dwo): Add comments.
8866 (read_structure_type): Update comment.
8867 (read_enumeration_type, read_namespace_type): Update comment.
8868 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8870 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8873 * Makefile.in (gdb.z): Remove.
8874 (install-only): Remove $(man1dir) and gdb.1 installation.
8877 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 Fix compatibility with Linux kernel 3.8.3.
8880 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8881 to more inner block. Remove parsing of NUMBER from outer block.
8882 Parse NUMBER only if KEYWORD has been identified.
8884 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8886 Fix variable name shadowing.
8887 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8888 filename to mapsfilename and update its uses.
8890 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8892 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8893 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8894 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8895 details of the problem.
8897 2013-04-04 Pedro Alves <palves@redhat.com>
8898 Hui Zhu <hui@codesourcery.com>
8900 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8901 tracepoint, reset its STEP_COUNT and call validate_actionline.
8903 2013-04-03 Doug Evans <dje@google.com>
8905 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8906 read_die_and_siblings.
8907 (read_die_and_siblings): New function.
8908 (read_cutu_die_from_dwo): Dump die if requested.
8909 (read_die_and_children): Call read_full_die_1 and
8910 read_die_and_siblings_1.
8911 (read_full_die): Dump die if requested.
8913 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8915 * dwarf2read.c (struct dwo_file): New member comp_dir.
8916 Rename member name to dwo_name. All uses updated.
8917 (hash_dwo_file): Include comp_dir in computation.
8918 (eq_dwo_file): Ditto.
8919 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8920 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8922 * psymtab.c (read_psymtabs_with_fullname): Don't call
8923 psymtab_to_fullname if the basenames are different.
8925 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8927 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8928 New entry about "fullname" presence.
8930 2013-04-03 Pedro Alves <palves@redhat.com>
8932 * NEWS: Mention x86_64/Cygwin as new native configuration.
8934 2013-04-02 Doug Evans <dje@google.com>
8936 * dwarf2read.c (read_structure_type): Fix typo in comment.
8938 2013-04-02 Pedro Alves <palves@redhat.com>
8940 * NEWS: Mention "set/show debug aarch64", "set/show debug
8941 coff-pe-read" and "set/show debug mach-o".
8943 2013-04-02 Pedro Alves <palves@redhat.com>
8945 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8947 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8949 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8950 gdb_string.h is now in common/.
8952 2013-04-02 Pedro Alves <palves@redhat.com>
8954 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8955 under "New options".
8957 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8961 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8963 2013-04-02 Pedro Alves <palves@redhat.com>
8967 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8968 (remote_serial_write): New function.
8969 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8971 2013-04-01 Jiong Wang <jiwang@tilera.com>
8973 * NEWS: Mention TILE-Gx in "New native configurations" and
8974 "New targets" sections.
8976 2013-04-01 Doug Evans <dje@google.com>
8978 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8979 (process_enumeration_scope): Simplify.
8981 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8983 (struct signatured_type): ... to here.
8984 (sig_type_ptr): New typedef.
8985 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8986 out of union 't'. All uses updated.
8987 (dw2_get_file_names_reader): Assert not called for a type unit.
8988 (dw2_get_file_names): Assert not called for a type unit or type
8990 (build_type_psymtabs_reader): Assert called for a type unit.
8991 (build_type_psymtab_dependencies): Assert called for a type unit group.
8993 * dwarf2read.c (free_dwo_file): Add comment.
8994 (dwarf2_per_objfile_free): Unref dwp bfd.
8996 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8998 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8999 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9000 (read_pe_exported_syms): Remove unused 'exportix'.
9001 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9002 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9003 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9005 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9007 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9008 (print_it_watchpoint): Remove unused 'bl'.
9009 (say_where): Remove unused 'uiout'.
9010 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9011 (bkpt_breakpoint_hit): Remove unused 'b'.
9012 (internal_bkpt_print_it): Remove unused 'uiout'.
9013 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9015 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9017 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9018 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9020 2013-03-29 Doug Evans <dje@google.com>
9022 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9023 Delete arg is_dwp. All callers updated.
9024 (open_dwp_file): New function.
9025 (open_and_init_dwp_file): Call it.
9026 (get_dwp_file): New function.
9027 (lookup_dwo_cutu): Call it.
9029 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9030 unnecessary, cleanup.
9032 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9034 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9035 (lookup_dwo_unit): New function.
9036 (init_cutu_and_read_dies): Move DWO handling to new functions.
9038 * dwarf2read.c (struct signatured_type): Tweak comment.
9039 (struct dwo_unit): Tweak comment.
9040 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9041 (create_dwo_debug_info_hash_table): Tweak comment.
9042 (dwarf2_per_cu_offset_and_type): Tweak comment.
9044 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9045 missing .debug_types section.
9047 2013-03-29 Yao Qi <yao@codesourcery.com>
9049 * corelow.c: Include "completer.h".
9050 (_initialize_corelow): Call add_target_with_completer with
9051 argument 'filename_completer'.
9052 * tracepoint.c: Likewise.
9053 * exec.c (_initialize_exec): Likewise.
9054 * target.c (add_target): Rename to ...
9055 (add_target_with_completer): ... this. Call set_cmd_completer
9056 if parameter completer is not NULL.
9058 * target.h: Include "command.h".
9059 (add_target_with_completer): Declare it.
9061 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9063 * coffread.c (is_import_fixup_symbol): New function.
9064 (record_minimal_symbol): Use is_import_fixup_symbol to
9065 detect import fixup symbols, and discard them.
9067 2013-03-28 Doug Evans <dje@google.com>
9069 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9070 types hash table until we know we need it.
9072 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9075 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9076 All callers updated.
9077 (dw2_print_stats): Print #read CUs too.
9078 (dump_die_shallow): Print signatured types better.
9080 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9081 info_or_types_section to section. All uses updated.
9082 (struct dwo_unit): Ditto.
9084 2013-03-28 Pedro Alves <palves@redhat.com>
9086 * NEWS (New options): New section.
9087 (New options): Mention set/show remote trace-status-packet.
9088 * remote.c (PACKET_qTStatus): New enumeration value.
9089 (remote_get_trace_status): Skip sending qTStatus if the packet is
9090 disabled. Use packet_ok.
9091 (_initialize_remote): Register a configuration command for
9094 2013-03-28 Doug Evans <dje@google.com>
9096 * symfile.c (find_separate_debug_file): Add comment.
9097 (terminate_after_last_dir_separator): Tweak comment.
9099 * dwarf2read.c (create_partial_symtab): Add forward decl.
9100 (create_partial_symtab): Move to be closer to other psymtab functions.
9101 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9103 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9104 (compute_symtab_includes): Remove unnecessary forward declaration.
9105 (die_needs_namespace): Add comment marking group of functions for
9106 dwarf2 name computation.
9108 * typeprint.c (_initialize_typeprint): Improve type help text.
9110 * python/python.c (finish_python_initialization): Provide suggestion
9111 for how to tell gdb to find its python files.
9113 2013-03-28 Pedro Alves <palves@redhat.com>
9117 * source.c (_initialize_source): Change back "set listsize" to an
9120 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9123 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9125 2013-03-27 Pedro Alves <palves@redhat.com>
9127 * top.c (history_size): Rename to ...
9128 (history_size_setshow_var): ... this. Add comment.
9129 (show_commands): Use readline's 'history_length' instead of
9130 computing the history length by calling history_get in a loop.
9131 (set_history_size_command): Error out for sizes over INT_MAX.
9132 Restore previous history size on invalid size.
9133 (init_history): If HISTSIZE is negative, leave the history size as
9135 (init_main): Adjust.
9137 2013-03-27 Pedro Alves <palves@redhat.com>
9139 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9140 coff_pe_read" command to "set debug coff-pe-read".
9142 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9144 * record.c (command_size_to_target_size): Fix size comparison.
9145 Change parameter type from pointer to integer to integer.
9148 2013-03-27 Pierre Muller <muller@sourceware.org>
9150 * windows-nat.c (handle_output_debug_string): Avoid typecast
9151 from integer of different size warning.
9153 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9155 * windows-nat.c (handle_output_debug_string): Add empty line
9156 after local block variable definition.
9158 2013-03-26 Pedro Alves <palves@redhat.com>
9160 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9161 (net_open): Make 'polls' local unsigned.
9163 2013-03-26 Pedro Alves <palves@redhat.com>
9165 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9166 a zuinteger command instead of uinteger.
9168 2013-03-26 Pedro Alves <palves@redhat.com>
9170 * record-full.c (record_full_insn_num): Make it unsigned.
9171 (record_full_check_insn_num, record_full_message)
9172 (record_full_registers_change, record_full_xfer_partial): Remove
9173 record_full_insn_max_num check (it's always != 0).
9174 (record_full_info, record_full_restore): Use %u as format string.
9175 (): Use %u as format string.
9176 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9177 check (it's always != 0).
9179 2013-03-26 Pedro Alves <palves@redhat.com>
9181 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9182 and "set dcache size" commands zuinteger instead of uinteger.
9184 2013-03-26 Pedro Alves <palves@redhat.com>
9186 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9187 command zuinteger instead of uinteger.
9189 2013-03-26 Pedro Alves <palves@redhat.com>
9191 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9192 zuinteger instead of uinteger.
9194 2013-03-26 Pedro Alves <palves@redhat.com>
9196 * record.c (record_insn_history_size_setshow_var)
9197 (record_call_history_size_setshow_var): New globals.
9198 (command_size_to_target_size): New function.
9199 (cmd_record_insn_history, cmd_record_call_history): Use
9200 command_size_to_target_size instead of cast.
9201 (validate_history_size, set_record_insn_history_size)
9202 (set_record_call_history_size): New functions.
9203 (_initialize_record): Install set_record_insn_history_size and
9204 set_record_call_history_size as "set" hooks of "set record
9205 instruction-history-size" and "set record
9206 function-call-history-size".
9208 2013-03-26 Pedro Alves <palves@redhat.com>
9210 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9211 use with history_max_entries use. Remove FIXME note.
9213 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9215 * record-btrace.c (record_btrace_close): Call
9216 record_btrace_auto_disable.
9218 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9220 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9222 2013-03-25 Doug Evans <dje@google.com>
9224 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9226 2013-03-25 Tom Tromey <tromey@redhat.com>
9229 * c-exp.y (exp): Add new productions for destructors after '.' and
9231 (write_destructor_name): New function.
9233 2013-03-25 Tom Tromey <tromey@redhat.com>
9236 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9237 value_struct_elt, not lookup_struct_elt_type.
9238 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9239 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9240 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9242 2013-03-25 Yao Qi <yao@codesourcery.com>
9244 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9245 instead of '_mkdir'.
9247 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9249 * windows-nat.c (windows_get_absolute_argv0): New function.
9250 * windows-nat.h: Add its prototype.
9252 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9253 Use IS_DIR_SEPARATOR instead of looking for a character inside
9254 SLASH_STRING. Include filenames.h.
9255 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9256 relocate_gdb_directory works when passed gdb_program_name.
9257 Include windows-nat.h.
9259 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9261 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9262 * remote.c (trace_error): Remove the special handling of '2'.
9263 (readchar) <SERIAL_EOF>
9264 (readchar) <SERIAL_ERROR>
9265 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9266 (remote_get_trace_status): Call throw_exception if EX is
9268 * utils.c (perror_with_name): Rename to ...
9269 (throw_perror_with_name): ... here. New parameter errcode, describe it
9270 in the function comment.
9271 (perror_with_name): New function wrapper.
9272 * utils.h (enum errors): New stub declaration.
9273 (throw_perror_with_name): New declaration.
9275 2013-03-22 Pedro Alves <palves@redhat.com>
9276 Yao Qi <yao@codesourcery.com>
9277 Mark Kettenis <kettenis@gnu.org>
9279 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9280 Don't let the user set the value to UINT_MAX directly.
9281 <var_integer>: Don't let the user set the value to INT_MAX
9284 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9286 * remote.c (remote_unpush_target): New function.
9287 (remote_open_1): Remove two pop_target calls, update one comment, add
9288 comment to target_preopen call. Replace pop_target call by
9289 remote_unpush_target call.
9290 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9291 pop_target calls by remote_unpush_target calls.
9293 2013-03-22 Pedro Alves <palves@redhat.com>
9295 * linux-nat.c (linux_child_follow_fork): Don't call
9296 linux_enable_event_reporting.
9297 (linux_handle_extended_wait): Don't call
9298 linux_enable_event_reporting.
9300 2013-03-22 Pedro Alves <palves@redhat.com>
9302 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9303 use it to rewrite the trampoline buffers with type gdb_byte[], and
9304 undefine the macro. Remove char* cast.
9306 2013-03-21 Doug Evans <dje@google.com>
9308 New commands "mt set per-command {space,time,symtab} {on,off}".
9310 * event-top.c: #include "maint.h".
9311 * main.c: #include "maint.h".
9312 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9313 timeval-utils.h, maint.h, cli/cli-setshow.h.
9314 (per_command_time, per_command_space): New static globals.
9315 (per_command_symtab): New static global.
9316 (per_command_setlist, per_command_showlist): New static globals.
9317 (struct cmd_stats): Move here from utils.c.
9318 (set_per_command_time): Renamed from set_display_time in utils.c
9319 and moved here. All callers updated.
9320 (set_per_command_space): Renamed from set_display_space in utils.c
9321 and moved here. All callers updated.
9322 (count_symtabs_and_blocks): New function.
9323 (report_command_stats): Moved here from utils.c. Add support for
9324 printing symtab stats. Only print data if enabled before command
9326 (make_command_stats_cleanup): Ditto.
9327 (sert_per_command_cmd, show_per_command_cmd): New functions.
9328 (_initialize_maint_cmds): Add new commands
9329 mt set per-command {space,time,symtab} {on,off}.
9330 * maint.h: New file.
9331 * top.c: #include "maint.h".
9332 * utils.c (reset_prompt_for_continue_wait_time): New function.
9333 (get_prompt_for_continue_wait_time): New function.
9334 * utils.h (reset_prompt_for_continue_wait_time): Declare
9335 (get_prompt_for_continue_wait_time): Declare.
9336 (make_command_stats_cleanup): Moved to maint.h.
9337 (set_display_time, set_display_space): Moved to maint.h and renamed
9338 to set_per_command_time, set_per_command_space.
9339 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9340 parse_binary_operation and made non-static. Don't call error,
9341 just return an error marker. All callers updated.
9342 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9344 2013-03-21 Tom Tromey <tromey@redhat.com>
9346 * symfile.c (alloc_section_addr_info): Update header. Don't set
9347 'num_sections' field.
9348 (build_section_addr_info_from_section_table): Set 'num_sections'.
9349 (build_section_addr_info_from_bfd): Likewise.
9350 (build_section_addr_info_from_objfile): Remove dead loop
9352 (free_section_addr_info): Unconditionally call xfree.
9353 (relative_addr_info_to_section_offsets, addrs_section_sort)
9354 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9356 (syms_from_objfile_1): Remove dead 'if' condition. Check
9358 (add_symbol_file_command): Set 'num_sections'.
9359 * symfile-mem.c (symbol_file_add_from_memory): Set
9361 * somread.c (som_symfile_offsets): Remove dead loop condition.
9362 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9363 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9365 2013-03-21 Tom Tromey <tromey@redhat.com>
9367 * tracepoint.h (decode_agent_options): Add 'trace_string'
9369 * tracepoint.c (decode_agent_options): Add 'trace_string'
9371 (validate_actionline): Update.
9372 (collect_symbol): Add 'trace_string' argument.
9373 (struct add_local_symbols_data) <trace_string>: New field.
9374 (do_collect_symbol): Update.
9375 (add_local_symbols): Add 'trace_string' argument.
9376 (encode_actions_1): Update.
9377 (trace_dump_actions): Update.
9378 * dwarf2loc.c (access_memory): Update.
9379 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9380 * ax-general.c (new_agent_expr): Update.
9381 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9382 (gen_trace_for_return_address): Add argument.
9383 (trace_kludge, trace_string_kludge): Remove.
9384 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9385 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9386 (gen_trace_for_var): Add 'trace_string' argument.
9387 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9388 (gen_printf, agent_eval_command_one): Update.
9390 2013-03-21 Tom Tromey <tromey@redhat.com>
9393 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9394 Handle FILENAME token.
9396 2013-03-21 Tom Tromey <tromey@redhat.com>
9398 * c-exp.y (YYPRINT): Define.
9399 (c_print_token): New function.
9401 2013-03-21 Tom Tromey <tromey@redhat.com>
9403 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9405 2013-03-21 Yao Qi <yao@codesourcery.com>
9407 * ctf.c: Include "gdb_stat.h".
9408 [USE_WIN32API]: New macro 'mkdir'.
9409 (ctf_start): Use permission bits macros if they are defined.
9411 2013-03-20 Keith Seitz <keiths@redhat.com>
9413 * breakpoint.h (struct breakpoint): Add comment to
9414 extra_string indicating that this member is mallod'd.
9415 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9417 2013-03-20 Pedro Alves <palves@redhat.com>
9421 * cli/cli-setshow.c (do_set_command)
9422 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9423 the result of parsing the command argument. Throw error if the
9424 value is greater than UINT_MAX. Print the invalid value with
9426 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9427 result of parsing the command argument. Throw error if the value
9428 is greater than INT_MAX, not greater or equal. Also throw error
9429 if the value is less than INT_MIN. Print the invalid value with
9431 <var_zuinteger_unlimited>: Throw error if the value is greater
9432 than INT_MAX, not greater or equal.
9433 (do_show_command) <var_integer, var_zinteger,
9434 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9436 2013-03-20 Tom Tromey <tromey@redhat.com>
9438 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9440 * dwarf2read.c (read_func_scope): Remove old FIXME.
9441 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9443 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9444 Unconditionally call via computed ops, if possible.
9445 * printcmd.c (address_info): Unconditionally call via computed ops,
9447 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9449 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9450 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9453 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9454 Tom Tromey <tromey@redhat.com>
9457 * coffread.c (coff_register_index): New global.
9458 (process_coff_symbol, coff_read_enum_type): Set
9459 SYMBOL_ACLASS_INDEX.
9460 (_initialize_coffread): Initialize new global.
9461 * dwarf2loc.c (locexpr_find_frame_base_location)
9462 (dwarf2_block_frame_base_locexpr_funcs)
9463 (loclist_find_frame_base_location)
9464 (dwarf2_block_frame_base_loclist_funcs): New.
9465 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9466 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9467 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9468 (dwarf2_block_frame_base_loclist_funcs): New.
9469 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9470 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9472 (read_func_scope): Update.
9473 (fixup_go_packaging, mark_common_block_symbol_computed)
9474 (var_decode_location, new_symbol_full, dwarf2_const_value):
9475 Set SYMBOL_ACLASS_INDEX.
9476 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9477 (_initialize_dwarf2_read): Initialize new globals.
9478 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9479 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9480 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9482 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9483 (_initialize_mdebugread): Initialize new globals.
9484 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9485 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9486 (stab_register_index, stab_regparm_index): New globals.
9487 (define_symbol, read_enum_type, common_block_end): Set
9488 SYMBOL_ACLASS_INDEX.
9489 (_initialize_stabsread): Initialize new globals.
9490 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9492 (MAX_SYMBOL_IMPLS): New define.
9493 (register_symbol_computed_impl, register_symbol_block_impl)
9494 (register_symbol_register_impl)
9495 (initialize_ordinary_address_classes): New functions.
9496 (_initialize_symtab): Call initialize_ordinary_address_classes.
9497 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9498 (struct symbol_impl): New.
9499 (SYMBOL_ACLASS_BITS): New define.
9500 (struct symbol) <aclass, ops>: Remove fields.
9501 <aclass_index>: New field.
9502 (symbol_impls): Declare.
9503 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9504 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9505 (register_symbol_computed_impl, register_symbol_block_impl)
9506 (register_symbol_register_impl): Declare.
9507 (struct symbol_computed_ops): Add location_has_loclist.
9508 (struct symbol_block_ops): New.
9509 (SYMBOL_BLOCK_OPS): New.
9510 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9512 2013-03-20 Tom Tromey <tromey@redhat.com>
9514 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9515 (print_partial_symbols, recursively_search_psymtabs): Use
9518 2013-03-20 Pierre Muller <muller@sourceware.org>
9520 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9521 addtion, subtraction, multiplication and division binary operator.
9523 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9526 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9527 * bsd-kvm.c (bsd_kvm_close): Likewise.
9528 * bsd-uthread.c (bsd_uthread_close): Likewise.
9529 * corelow.c (core_close): Likewise.
9530 (core_close_cleanup): Remove parameter quitting from a caller.
9531 * event-top.c (async_disconnect): Likewise.
9532 * exec.c (exec_close_1): Remove parameter quitting.
9533 * go32-nat.c (go32_close): Likewise.
9534 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9535 parameter quitting from a caller.
9536 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9538 (mips_linux_close): Remove parameter quitting. Remove parameter
9539 quitting from a caller.
9540 * monitor.c (monitor_close): Remove parameter quitting.
9541 * monitor.h (monitor_close): Likewise.
9542 * record-btrace.c (record_btrace_close): Likewise.
9543 * record-full.c (record_full_close): Likewise.
9544 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9545 it also from fprintf_unfiltered.
9546 * remote-mips.c (mips_close): Remove parameter quitting.
9547 (mips_detach): Remove parameter quitting from a caller.
9548 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9549 (gdbsim_close): Remove duplicate function comment. Remove parameter
9550 quitting and remove it also from printf_filtered.
9551 * remote.c (remote_close): Remove parameter quitting.
9552 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9553 * target.c (update_current_target): Remove parameter int from to_close
9555 (push_target, unpush_target, pop_target): Remove parameter quitting from
9557 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9558 Remove parameter quitting from a caller.
9559 (target_preopen): Remove parameter quitting from a caller.
9560 (target_close): Remove parameter quitting. Remove parameter quitting
9561 from a caller two times. Remove parameter quitting also from
9563 * target.h (struct target_ops): Remove parameter quitting and as int
9564 from fields to_xclose and to_close.
9565 (extern struct target_ops current_target):
9566 (target_close, pop_all_targets): Remove parameter quitting. Update the
9568 (pop_all_targets_above): Remove parameter quitting.
9569 * top.c (quit_target): Remove parameter quitting from a caller.
9570 * tracepoint.c (tfile_close): Remove parameter quitting.
9571 * windows-nat.c (windows_close): Remove parameter quitting.
9573 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9575 * windows-nat.c (handle_output_debug_string): Replace call
9576 to string_to_core_addr with call to strtoull.
9578 2013-03-20 Yao Qi <yao@codesourcery.com>
9580 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9581 and write it to CTF metadata.
9583 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9585 * windows-nat.c (handle_output_debug_string): Change type of n to
9586 SIZE_T to avoid crash on 64 bit systems.
9588 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9590 * python/python-internal.h (HAVE_SNPRINTF)
9591 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9592 about redefinition of snprintf by pyerrors.h.
9594 2013-03-15 Steve Ellcey <sellcey@mips.com>
9596 * remote-sim.c (sim_command_completer): Make char arguments const.
9598 2013-03-15 Tom Tromey <tromey@redhat.com>
9601 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9603 2013-03-14 Tom Tromey <tromey@redhat.com>
9605 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9607 (get_file_crc): Move from symfile.c.
9608 (gdb_bfd_crc): New function.
9609 * gdb_bfd.h (gdb_bfd_crc): Declare.
9610 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9611 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9612 (separate_debug_file_exists): Use gdb_bfd_crc.
9614 2013-03-14 Tom Tromey <tromey@redhat.com>
9616 * symfile.c (get_debug_link_info): Remove.
9617 (find_separate_debug_file_by_debuglink): Use
9618 bfd_get_debug_link_info.
9620 2013-03-14 Tom Tromey <tromey@redhat.com>
9622 * symtab.c (error_in_psymtab_expansion): New function.
9623 (lookup_symbol_aux_quick)
9624 (basic_lookup_transparent_type_quick): Remove "last resort"
9625 code. Use error_in_psymtab_expansion.
9627 2013-03-14 Doug Evans <dje@google.com>
9628 Jan Kratochvil <jan.kratochvil@redhat.com>
9630 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9631 any successful compare_filenames_for_search or FILENAME_CMP.
9632 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9633 * symtab.c (iterate_over_some_symtabs): Likewise.
9635 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9637 * source.c (print_source_lines_base): Make a local copy of
9640 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9641 Jan Kratochvil <jan.kratochvil@redhat.com>
9643 * source.c (print_source_lines_base): Suppress "file" for TUI.
9645 2013-03-14 Keith Seitz <keiths@redhat.com>
9646 Alan Matsuoka <alanm@redhat.com>
9650 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9652 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9655 2013-03-14 Yao Qi <yao@codesourcery.com>
9657 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9658 status to tfile if trace is stopped by command 'tstop'.
9660 2013-03-14 Yao Qi <yao@codesourcery.com>
9662 * tracepoint.c (tfile_write_status): Write trace notes and user
9663 name into tfile if they are not NULL.
9665 2013-03-14 Hui Zhu <hui@codesourcery.com>
9666 Yao Qi <yao@codesourcery.com>
9668 * Makefile.in (REMOTE_OBS): Add ctf.o.
9669 (SFILES): Add ctf.c.
9670 (HFILES_NO_SRCDIR): Add ctf.h.
9671 * ctf.c, ctf.h: New files.
9672 * tracepoint.c: Include 'ctf.h'.
9673 (collect_pseudocommand): Remove static.
9674 (trace_save_command): Parse option "-ctf".
9675 Produce different trace file writers per option.
9676 Adjust output message.
9677 (trace_save_tfile, trace_save_ctf): New.
9678 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9679 * mi/mi-main.c: Include 'ctf.h'.
9680 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9681 trace_save_tfile or trace_save_ctf.
9682 * NEWS: Mention these changes.
9684 2013-03-14 Yao Qi <yao@codesourcery.com>
9686 * tracepoint.c (trace_file_writer_xfree): New.
9687 (struct tfile_writer_data): New.
9688 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9689 (tfile_write_header, tfile_write_regblock_type): New.
9690 (tfile_write_status, tfile_write_uploaded_tsv): New.
9691 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9692 (tfile_write_raw_data, (tfile_end): New.
9693 (tfile_write_ops): New global variable.
9694 (TRACE_WRITE_R_BLOCK): New macro.
9695 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9696 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9697 (TRACE_WRITE_V_BLOCK): New macro.
9698 (trace_save): Add extra one parameter WRITER. Make it static.
9699 Use WRITER to writer trace.
9700 (tfile_trace_file_writer_new): New.
9701 (trace_save_command): Caller update.
9702 (trace_save_tfile): Write trace data in TFILE format.
9703 * tracepoint.h (struct trace_frame_write_ops): New.
9704 (struct trace_file_write_ops): New.
9705 (struct trace_file_writer): New.
9706 (trace_save): Remove its declaration.
9707 (trace_save_tfile): Declare it.
9708 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9709 instead of trace_save.
9711 2013-03-13 Pedro Alves <palves@redhat.com>
9713 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9715 2013-03-13 Pedro Alves <palves@redhat.com>
9717 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9719 * demangle.c (current_demangling_style_string): Make it const.
9720 (set_demangling_command): Assert the demangling style is known.
9721 Remove all handling of unknown styles. Set
9722 'current_demangling_style_string' to an element of the
9723 demangling_style_names array.
9724 (set_demangling_style): Delete.
9725 (_initialize_demangler): Set current_demangling_style_string to the
9726 element of the demangling_style_names array that corresponds to
9727 the default demangling style. Remove FIXME note. Don't call
9728 set_demangling_style.
9729 * gdb-demangle.h (set_demangling_style): Remove declaration.
9731 2013-03-13 Pedro Alves <palves@redhat.com>
9733 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9735 (ada_make_symbol_completion_list): Make "text0" parameter const.
9736 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9737 * breakpoint.c (condition_completer): Make "text" and "word"
9738 parameters const. Adjust.
9739 (check_tracepoint_command): Adjust to validate_actionline
9741 (catch_syscall_completer): Make "text" and "word" parameters
9743 * cli/cli-cmds.c (show_user): Make "comname" local const.
9744 (valid_command_p): Make "command" parameter const.
9745 (alias_command): Make "alias_prefix" and "command_prefix" locals
9747 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9748 (add_alias_cmd): Make "name" and "oldname" parameters const.
9749 Adjust. No longer make copy of OLDNAME.
9750 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9751 (add_setshow_cmd_full, add_setshow_enum_cmd)
9752 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9753 (add_setshow_filename_cmd, add_setshow_string_cmd)
9754 (add_setshow_string_noescape_cmd)
9755 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9756 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9757 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9758 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9759 Make "name" parameter const.
9760 (help_cmd): Rename "command" parameter to "arg". New const local
9762 (find_cmd): Make "command" parameter const.
9763 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9764 deprecated_cmd_warning prototype change.
9765 (undef_cmd_error): Make "cmdtype" parameter const.
9766 (lookup_cmd): Make "line" parameter const.
9767 (deprecated_cmd_warning): Change type of "text" parameter to
9768 pointer to const char, from pointer to pointer to char. Adjust.
9769 (lookup_cmd_composition): Make "text" parameter const.
9770 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9772 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9774 * cli/cli-script.c (validate_comname): Make "tem" local const.
9775 (define_command): New const local "tem_c". Use it in calls to
9777 (document_command): Make "tem" and "comfull" locals const.
9778 (show_user_1): Make "prefix" and "name" parameters const.
9779 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9781 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9782 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9783 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9784 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9785 (complete_on_enum, 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_cmd, add_setshow_zuinteger_unlimited_cmd):
9792 Change prototypes, constifying strings.
9793 * completer.c (noop_completer, filename_completer): Make "text"
9794 and "prefix" parameters const.
9795 (location_completer, expression_completer)
9796 (complete_line_internal): Make "text" and "prefix" parameters
9798 (command_completer, signal_completer): Make "text" and "prefix"
9800 * completer.h (noop_completer, filename_completer)
9801 (expression_completer, location_completer, command_completer)
9802 (signal_completer): Change prototypes.
9803 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9805 * cp-abi.c (cp_abi_completer): Likewise.
9806 * expression.h (parse_expression_for_completion): Change
9808 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9810 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9811 * infrun.c (handle_completer): Make "text" and "word" parameters
9813 * interps.c (interpreter_completer): Make "text" and "word"
9815 * language.h (struct language_defn)
9816 <la_make_symbol_completion_list>: Make "text" and "word"
9818 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9819 (parse_exp_in_context): Rename to ...
9820 (parse_exp_in_context_1): ... this.
9821 (parse_exp_in_context): Reimplement, with const hack from
9823 (parse_expression_for_completion): Make "string" parameter const.
9824 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9825 to pointer to const char. Adjust.
9826 (print_command_1): Make "exp" parameter const.
9827 (output_command): Rename to ...
9828 (output_command_const): ... this. Make "exp" parameter const.
9829 (output_command): Reimplement.
9830 (x_command): Adjust.
9831 (display_command): Rename "exp" parameter to "arg". New "exp"
9832 local, const version of "arg".
9833 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9834 "cmd_name" local const.
9835 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9837 (cmdpy_completer): Make "text" and "word" parameters const.
9838 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9839 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9841 * remote.c (_initialize_remote): Make "cmd_name" local const.
9842 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9843 parameters const. Adjust.
9844 (completion_list_add_fields): Make "sym_text", "text" and "word"
9846 (struct add_name_data) <sym_text, text, word>: Make fields const.
9847 (default_make_symbol_completion_list_break_on): Make "text" and
9848 "word" parameters const. Adjust locals.
9849 (default_make_symbol_completion_list)
9850 (make_symbol_completion_list, make_symbol_completion_type)
9851 (make_symbol_completion_list_fn): Make "text" and "word"
9853 (make_file_symbol_completion_list): Make "text", "word" and
9854 "srcfile" parameters const. Adjust locals.
9855 (add_filename_to_list): Make "text" and "word" parameters const.
9856 (struct add_partial_filename_data) <text, word>: Make fields
9858 (make_source_files_completion_list): Make "text" and "word"
9860 * symtab.h (default_make_symbol_completion_list_break_on)
9861 (default_make_symbol_completion_list, make_symbol_completion_list)
9862 (make_symbol_completion_type enum type_code)
9863 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9864 (make_source_files_completion_list): Change prototype.
9865 * top.c (execute_command): Adjust to pass pointer to pointer to
9866 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9868 (set_verbose): Make "cmdname" local const.
9869 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9871 (validate_actionline): Make "line" parameter a pointer to const
9873 (encode_actions_1): Make "action_exp" local const, and adjust.
9874 (encode_actions): Adjust.
9875 (replace_comma): Delete.
9876 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9877 const, and adjust. Don't frob the action string while splitting
9878 it at commas. Instead, make a copy of each split substring in
9880 (trace_dump_command): Adjust to validate_actionline prototype
9882 * tracepoint.h (decode_agent_options, decode_agent_options)
9883 (encode_actions, validate_actionline): Change prototypes.
9884 * valprint.h (output_command): Delete declaration.
9885 (output_command_const): Declare.
9886 * value.c (function_destroyer): Cast const away in xfree call.
9888 2013-03-13 Pedro Alves <palves@redhat.com>
9890 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9891 rather than casting 'const char * const *' to 'const char **'.
9892 * ada-lex.l (processInt): Make "trailer" local const. Remove
9893 'const char **' cast.
9894 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9895 locals, and use those as strtol output pointer, instead than doing
9896 invalid casts to from 'const char **' to 'char **'.
9897 (_initialize_demangle): Remove cast.
9898 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9899 locals, and use those as strtol output pointer, instead than doing
9900 invalid casts to from 'const char **' to 'char **'.
9901 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9903 * stap-probe.c (stap_parse_register_operand)
9904 (stap_parse_single_operand): Likewise.
9906 2013-03-13 Yao Qi <yao@codesourcery.com>
9908 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9909 the last matched 'V' blcok in trace frame.
9911 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9913 * NEWS: Create a new section for the next release branch.
9914 Rename the section of the current branch, now that it has
9917 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9919 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9920 * version.in: Bump version to 7.6.50.20130312-cvs.
9922 2013-03-12 Keith Seitz <keiths@redhat.com>
9924 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9925 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9926 Remove temporary copy of input string.
9927 (mi_execute_command_wrapper): Make "cmd" const.
9928 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9929 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9931 (mi_parse): Make "cmd" const.
9933 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9935 2013-03-12 Keith Seitz <keiths@redhat.com>
9937 * ada-lang.c (ada_read_renaming_var_value): Pass const
9938 pointer to expression string to parse_exp_1.
9939 (create_excep_cond_exprs): Likewise.
9940 * ax-gdb.c (agent_eval_command_one): Likewise.
9941 (maint_agent_printf_command): Likewise.
9942 Constify much of the string handling/parsing.
9943 * breakpoint.c (set_breakpoint_condition): Pass const
9944 pointer to expression string to parse_exp_1.
9945 (update_watchpoint): Likewise.
9946 (parse_cmd_to_aexpr): Constify string handling.
9947 Pass const pointer to parse_exp_1.
9948 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9949 (find_condition_and_thread): Likewise.
9951 (watch_command_1): Make "arg" const.
9952 Constify string handling.
9953 Copy the expression string instead of changing the input
9955 (update_breakpoint_location): Pass const pointer to
9957 * eval.c (parse_and_eval_address): Make "exp" const.
9958 (parse_to_comma_and_eval): Make "expp" const.
9959 (parse_and_eval): Make "exp" const.
9960 * expression.h (parse_expression): Make argument const.
9961 (parse_exp_1): Make first argument const.
9962 * findcmd.c (parse_find_args): Treat "args" as const.
9963 * linespec.c (parse_linespec): Pass const pointer to
9964 linespec_expression_to_pc.
9965 (linespec_expression_to_pc): Make "exp_ptr" const.
9966 * parse.c (parse_exp_1): Make "stringptr" const.
9967 Make a copy of the expression to pass to parse_exp_in_context until
9968 this whole interface can be constified.
9969 (parse_expression): Make "string" const.
9970 * printcmd.c (ui_printf): Treat "arg" as const.
9971 Handle const strings.
9972 * tracepoint.c (validate_actionline): Pass const pointer to
9973 all calls to parse_exp_1.
9974 (encode_actions_1): Likewise.
9975 * value.h (parse_to_comma_and_eval): Make argument const.
9976 (parse_and_eval_address): Likewise.
9977 (parse_and_eval): Likewise.
9978 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9979 (varobj_set_value): Likewise.
9980 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9981 constify string handling.
9982 Pass const pointers to parse_and_eval_address and
9983 parse_to_comman_and_eval.
9984 * cli/cli-utils.c (skip_to_space): Rename to ...
9985 (skip_to_space_const): ... this. Handle const strings.
9986 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9987 skip_to_space_const.
9988 (skip_to_space_const): Declare.
9989 * common/format.c (parse_format_string): Make "arg" const.
9990 Handle const strings.
9991 * common/format.h (parse_format_string): Make "arg" const.
9992 * gdbserver/ax.c (ax_printf): Make "format" const.
9993 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9994 of the expression string.
9996 2013-03-12 Hui Zhu <hui@codesourcery.com>
9998 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10000 2013-03-12 Yao Qi <yao@codesourcery.com>
10001 Hui Zhu <hui@codesourcery.com>
10003 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10004 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10007 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10009 * ada-lex.l (rules): Only recognize 'thread' as a
10010 delimiter when followed by numerals, as for c-exp.y.
10011 Use new rewind_to_char function to rewind the input for
10012 expression-delimiting tokens.
10013 (rewind_to_char): New function.
10015 2013-03-11 Pedro Alves <palves@redhat.com>
10016 Jan Kratochvil <jan.kratochvil@redhat.com>
10018 * configure: Regenerate.
10019 * configure.ac (check dynamic export flag): Link python test with
10022 2013-03-11 Doug Evans <dje@google.com>
10023 Keith Seitz <keiths@redhat.com>
10025 * linespec.c (find_linespec_symbols): Call find_function_symbols
10026 first, and then call lookup_prefix_sym/find_method.
10028 2013-03-11 Pedro Alves <palves@redhat.com>
10030 * charset.c (convert_between_encodings): Don't cast between
10031 different pointer to pointer types. Instead, make the 'inp' local
10032 be of the type iconv expects.
10033 (wchar_iterate): Don't cast between different pointer to pointer
10034 types. Instead, use new pointer local of the type iconv expects.
10035 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10036 Add new local of type char pointer, and use it to get a
10037 char/string view of the byte buffer, instead of casting between
10038 pointer to pointer types.
10040 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10042 * remote.c (remote_set_trace_buffer_size): Move != operator
10043 to the start of next line to fix an ARI warning.
10045 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10047 * NEWS: Add record changes.
10049 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10051 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10052 the instruction history disassembly.
10053 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10054 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10056 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10058 * Makefile.in (SFILES): Add record-btrace.c
10059 (COMMON_OBS): Add record-btrace.o
10060 * record-btrace.c: New.
10061 * objfiles.c: Include btrace.h.
10062 (free_objfile): call btrace_free_objfile.
10064 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10066 * target.c (target_call_history, target_call_history_from,
10067 target_call_history_range): New.
10068 * target.h (target_ops) <to_call_history, to_call_history_from,
10069 to_call_history_range>: New fields.
10070 (target_call_history, target_call_history_from,
10071 target_call_history_range): New declaration.
10072 * record.c (get_call_history_modifiers, cmd_record_call_history,
10073 record_call_history_size): New.
10074 (_initialize_record): Add the "record function-call-history" command.
10075 Add "set/show record function-call-history-size" commands.
10076 * record.h (record_print_flag): New.
10078 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10080 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10081 to_insn_history_range>: New fields.
10082 (target_insn_history): New.
10083 (target_insn_history_from): New.
10084 (target_insn_history_range): New.
10085 * target.c (target_insn_history): New.
10086 (target_insn_history_from): New.
10087 (target_insn_history_range): New.
10088 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10089 (record_insn_history_size): New.
10090 (get_insn_number): New.
10091 (get_context_size): New.
10093 (get_insn_history_modifiers): New.
10094 (cmd_record_insn_history): New.
10095 (_initialize_record): Add "set/show record instruction-history-size"
10096 command. Add "record instruction-history" command.
10098 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10100 * record.h (record_disconnect): New.
10101 (record_detach): New.
10102 (record_mourn_inferior): New.
10103 (record_kill): New.
10104 * record-full.c (record_disconnect, record_detach,
10105 record_mourn_inferior, record_kill): Move to...
10106 * record.c: ...here.
10108 (record_stop): New.
10109 (record_unpush): New.
10110 (cmd_record_stop): Call record_stop. Replace unpush_target
10111 call with record_unpush call.
10112 (record_disconnect, record_detach): Assert that the target
10113 is of record stratum. Call record_unpush, record_stop, and
10115 (record_mourn_inferior, record_kill): Assert that the target
10116 is of record stratum. Call record_unpush and DEBUG.
10118 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10120 * record-full.h, record-full.c (record_memory_query): Rename
10122 (record_full_memory_query): ...this. Update all users.
10123 (record_arch_list_add_reg): Rename to ...
10124 (record_full_arch_list_add_reg): ...this. Update all users.
10125 (record_arch_list_add_mem): Rename to ...
10126 (record_full_arch_list_add_mem): ...this. Update all users.
10127 (record_arch_list_add_end): Rename to ...
10128 (record_full_arch_list_add_end): ...this. Update all users.
10129 (record_gdb_operation_disable_set): Rename to ...
10130 (record_full_gdb_operation_disable_set): ...this.
10133 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10135 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10136 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10137 (RECORD_IS_REPLAY): Renamed to ...
10138 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10139 (RECORD_FILE_MAGIC): Renamed to ...
10140 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10141 (record_mem_entry): Renamed to ...
10142 (record_full_mem_entry): ... this. Updated all users.
10143 (record_reg_entry): Renamed to ...
10144 (record_full_reg_entry): ... this. Updated all users.
10145 (record_end_entry): Renamed to ...
10146 (record_full_end_entry): ... this. Updated all users.
10147 (record_type) <record_end, record_reg, record_mem>: Renamed
10149 (record_full_type) <record_full_end, record_full_reg,
10150 record_full_mem>: ... this. Updated all users.
10151 (record_entry): Renamed to ...
10152 (record_full_entry): ... this. Updated all users.
10153 (record_core_buf_entry): Renamed to ...
10154 (record_full_core_buf_entry): ... this. Updated all users.
10155 (record_core_regbuf): Renamed to ...
10156 (record_full_core_regbuf): ... this. Updated all users.
10157 (record_core_start): Renamed to ...
10158 (record_full_core_start): ... this. Updated all users.
10159 (record_core_end): Renamed to ...
10160 (record_full_core_end): ... this. Updated all users.
10161 (record_core_buf_list): Renamed to ...
10162 (record_full_core_buf_list): ... this. Updated all users.
10163 (record_first): Renamed to ...
10164 (record_full_first): ... this. Updated all users.
10165 (record_list): Renamed to ...
10166 (record_full_list): ... this. Updated all users.
10167 (record_arch_list_head): Renamed to ...
10168 (record_full_arch_list_head): ... this. Updated all users.
10169 (record_arch_list_tail): Renamed to ...
10170 (record_full_arch_list_tail): ... this. Updated all users.
10171 (record_stop_at_limit): Renamed to ...
10172 (record_full_stop_at_limit): ... this. Updated all users.
10173 (record_insn_max_num): Renamed to ...
10174 (record_full_insn_max_num): ... this. Updated all users.
10175 (record_insn_num): Renamed to ...
10176 (record_full_insn_num): ... this. Updated all users.
10177 (record_insn_count): Renamed to ...
10178 (record_full_insn_count): ... this. Updated all users.
10179 (record_ops): Renamed to ...
10180 (record_full_ops): ... this. Updated all users.
10181 (record_core_ops): Renamed to ...
10182 (record_full_core_ops): ... this. Updated all users.
10183 (set_record_cmdlist): Renamed to ...
10184 (set_record_full_cmdlist): ... this. Updated all users.
10185 (show_record_cmdlist): Renamed to ...
10186 (show_record_full_cmdlist): ... this. Updated all users.
10187 (record_cmdlist): Renamed to ...
10188 (record_full_cmdlist): ... this. Updated all users.
10189 (record_beneath_to_resume_ops): Renamed to ...
10190 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10191 (record_beneath_to_resume): Renamed to ...
10192 (record_full_beneath_to_resume): ... this. Updated all users.
10193 (record_beneath_to_wait_ops): Renamed to ...
10194 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10195 (record_beneath_to_wait): Renamed to ...
10196 (record_full_beneath_to_wait): ... this. Updated all users.
10197 (record_beneath_to_store_registers_ops): Renamed to ...
10198 (record_full_beneath_to_store_registers_ops): ... this.
10200 (record_beneath_to_store_registers): Renamed to ...
10201 (record_full_beneath_to_store_registers): ... this.
10203 (record_beneath_to_xfer_partial_ops): Renamed to ...
10204 (record_full_beneath_to_xfer_partial_ops): ... this.
10206 (record_beneath_to_xfer_partial): Renamed to ...
10207 (record_full_beneath_to_xfer_partial): ... this.
10209 (record_beneath_to_insert_breakpoint): Renamed to ...
10210 (record_full_beneath_to_insert_breakpoint): ... this.
10212 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10213 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10215 (record_beneath_to_stopped_data_address): Renamed to ...
10216 (record_full_beneath_to_stopped_data_address): ... this.
10218 (record_beneath_to_async): Renamed to ...
10219 (record_full_beneath_to_async): ... this. Updated all users.
10220 (record_goto_insn): Renamed to ...
10221 (record_full_goto_insn): ... this. Updated all users.
10222 (record_save): Renamed to ...
10223 (record_full_save): ... this. Updated all users.
10224 (record_reg_alloc): Renamed to ...
10225 (record_full_reg_alloc): ... this. Updated all users.
10226 (record_reg_release): Renamed to ...
10227 (record_full_reg_release): ... this. Updated all users.
10228 (record_mem_alloc): Renamed to ...
10229 (record_full_mem_alloc): ... this. Updated all users.
10230 (record_mem_release): Renamed to ...
10231 (record_full_mem_release): ... this. Updated all users.
10232 (record_end_alloc): Renamed to ...
10233 (record_full_end_alloc): ... this. Updated all users.
10234 (record_end_release): Renamed to ...
10235 (record_full_end_release): ... this. Updated all users.
10236 (record_entry_release): Renamed to ...
10237 (record_full_entry_release): ... this. Updated all users.
10238 (record_list_release): Renamed to ...
10239 (record_full_list_release): ... this. Updated all users.
10240 (record_list_release_following): Renamed to ...
10241 (record_full_list_release_following): ... this.
10243 (record_list_release_first): Renamed to ...
10244 (record_full_list_release_first): ... this. Updated all users.
10245 (record_arch_list_add): Renamed to ...
10246 (record_full_arch_list_add): ... this. Updated all users.
10247 (record_get_loc): Renamed to ...
10248 (record_full_get_loc): ... this. Updated all users.
10249 (record_check_insn_num): Renamed to ...
10250 (record_full_check_insn_num): ... this. Updated all users.
10251 (record_arch_list_cleanups): Renamed to ...
10252 (record_full_arch_list_cleanups): ... this. Updated all users.
10253 (record_message): Renamed to ...
10254 (record_full_message): ... this. Updated all users.
10255 (record_message_wrapper): Renamed to ...
10256 (record_full_message_wrapper): ... this. Updated all users.
10257 (record_message_wrapper_safe): Renamed to ...
10258 (record_full_message_wrapper_safe): ... this. Updated all users.
10259 (record_gdb_operation_disable): Renamed to ...
10260 (record_full_gdb_operation_disable): ... this. Updated all users.
10261 (record_hw_watchpoint): Renamed to ...
10262 (record_full_hw_watchpoint): ... this. Updated all users.
10263 (record_exec_insn): Renamed to ...
10264 (record_full_exec_insn): ... this. Updated all users.
10265 (record_restore): Renamed to ...
10266 (record_full_restore): ... this. Updated all users.
10267 (record_async_inferior_event_token): Renamed to ...
10268 (record_full_async_inferior_event_token): ... this.
10270 (record_async_inferior_event_handler): Renamed to ...
10271 (record_full_async_inferior_event_handler): ... this.
10273 (record_core_open_1): Renamed to ...
10274 (record_full_core_open_1): ... this. Updated all users.
10275 (record_open_1): Renamed to ...
10276 (record_full_open_1): ... this. Updated all users.
10277 (record_open): Renamed to ...
10278 (record_full_open): ... this. Updated all users.
10279 (record_close): Renamed to ...
10280 (record_full_close): ... this. Updated all users.
10281 (record_resume_step): Renamed to ...
10282 (record_full_resume_step): ... this. Updated all users.
10283 (record_resumed): Renamed to ...
10284 (record_full_resumed): ... this. Updated all users.
10285 (record_execution_dir): Renamed to ...
10286 (record_full_execution_dir): ... this. Updated all users.
10287 (record_resume): Renamed to ...
10288 (record_full_resume): ... this. Updated all users.
10289 (record_get_sig): Renamed to ...
10290 (record_full_get_sig): ... this. Updated all users.
10291 (record_sig_handler): Renamed to ...
10292 (record_full_sig_handler): ... this. Updated all users.
10293 (record_wait_cleanups): Renamed to ...
10294 (record_full_wait_cleanups): ... this. Updated all users.
10295 (record_wait_1): Renamed to ...
10296 (record_full_wait_1): ... this. Updated all users.
10297 (record_wait): Renamed to ...
10298 (record_full_wait): ... this. Updated all users.
10299 (record_stopped_by_watchpoint): Renamed to ...
10300 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10301 (record_disconnect): Renamed to ...
10302 (record_full_disconnect): ... this. Updated all users.
10303 (record_detach): Renamed to ...
10304 (record_full_detach): ... this. Updated all users.
10305 (record_mourn_inferior): Renamed to ...
10306 (record_full_mourn_inferior): ... this. Updated all users.
10307 (record_kill): Renamed to ...
10308 (record_full_kill): ... this. Updated all users.
10309 (record_stopped_data_address): Renamed to ...
10310 (record_full_stopped_data_address): ... this. Updated all users.
10311 (record_registers_change): Renamed to ...
10312 (record_full_registers_change): ... this. Updated all users.
10313 (record_store_registers): Renamed to ...
10314 (record_full_store_registers): ... this. Updated all users.
10315 (record_xfer_partial): Renamed to ...
10316 (record_full_xfer_partial): ... this. Updated all users.
10317 (record_breakpoint): Renamed to ...
10318 (record_full_breakpoint): ... this. Updated all users.
10319 (record_breakpoint_p): Renamed to ...
10320 (record_full_breakpoint_p): ... this. Updated all users.
10321 (record_breakpoints): Renamed to ...
10322 (record_full_breakpoints): ... this. Updated all users.
10323 (record_sync_record_breakpoints): Renamed to ...
10324 (record_full_sync_record_breakpoints): ... this.
10326 (record_init_record_breakpoints): Renamed to ...
10327 (record_full_init_record_breakpoints): ... this.
10329 (record_insert_breakpoint): Renamed to ...
10330 (record_full_insert_breakpoint): ... this. Updated all users.
10331 (record_remove_breakpoint): Renamed to ...
10332 (record_full_remove_breakpoint): ... this. Updated all users.
10333 (record_can_execute_reverse): Renamed to ...
10334 (record_full_can_execute_reverse): ... this. Updated all users.
10335 (record_get_bookmark): Renamed to ...
10336 (record_full_get_bookmark): ... this. Updated all users.
10337 (record_goto_bookmark): Renamed to ...
10338 (record_full_goto_bookmark): ... this. Updated all users.
10339 (record_async): Renamed to ...
10340 (record_full_async): ... this. Updated all users.
10341 (record_can_async_p): Renamed to ...
10342 (record_full_can_async_p): ... this. Updated all users.
10343 (record_is_async_p): Renamed to ...
10344 (record_full_is_async_p): ... this. Updated all users.
10345 (record_execution_direction): Renamed to ...
10346 (record_full_execution_direction): ... this. Updated all users.
10347 (record_info): Renamed to ...
10348 (record_full_info): ... this. Updated all users.
10349 (record_delete): Renamed to ...
10350 (record_full_delete): ... this. Updated all users.
10351 (record_is_replaying): Renamed to ...
10352 (record_full_is_replaying): ... this. Updated all users.
10353 (record_goto_entry): Renamed to ...
10354 (record_full_goto_entry): ... this. Updated all users.
10355 (record_goto_begin): Renamed to ...
10356 (record_full_goto_begin): ... this. Updated all users.
10357 (record_goto_end): Renamed to ...
10358 (record_full_goto_end): ... this. Updated all users.
10359 (record_goto): Renamed to ...
10360 (record_full_goto): ... this. Updated all users.
10361 (init_record_ops): Renamed to ...
10362 (init_record_full_ops): ... this. Updated all users.
10363 (record_core_resume): Renamed to ...
10364 (record_full_core_resume): ... this. Updated all users.
10365 (record_core_kill): Renamed to ...
10366 (record_full_core_kill): ... this. Updated all users.
10367 (record_core_fetch_registers): Renamed to ...
10368 (record_full_core_fetch_registers): ... this. Updated all users.
10369 (record_core_prepare_to_store): Renamed to ...
10370 (record_full_core_prepare_to_store): ... this. Updated all users.
10371 (record_core_store_registers): Renamed to ...
10372 (record_full_core_store_registers): ... this. Updated all users.
10373 (record_core_xfer_partial): Renamed to ...
10374 (record_full_core_xfer_partial): ... this. Updated all users.
10375 (record_core_insert_breakpoint): Renamed to ...
10376 (record_full_core_insert_breakpoint): ... this. Updated all users.
10377 (record_core_remove_breakpoint): Renamed to ...
10378 (record_full_core_remove_breakpoint): ... this. Updated all users.
10379 (record_core_has_execution): Renamed to ...
10380 (record_full_core_has_execution): ... this. Updated all users.
10381 (init_record_core_ops): Renamed to ...
10382 (init_record_full_core_ops): ... this. Updated all users.
10383 (cmd_record_restore): Renamed to ...
10384 (cmd_record_full_restore): ... this. Updated all users.
10385 (record_save_cleanups): Renamed to ...
10386 (record_full_save_cleanups): ... this. Updated all users.
10387 (cmd_record_start): Renamed to ...
10388 (cmd_record_full_start): ... this. Updated all users.
10389 (set_record_insn_max_num): Renamed to ...
10390 (set_record_full_insn_max_num): ... this. Updated all users.
10391 (set_record_command): Renamed to ...
10392 (set_record_full_command): ... this. Updated all users.
10393 (show_record_command): Renamed to ...
10394 (show_record_full_command): ... this. Updated all users.
10395 (_initialize_record): Renamed to ...
10396 (_initialize_record_full): ... this. Updated all users.
10398 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10400 * record.h: Split into this and ...
10401 * record-full.h: ... this.
10402 * record.c: Split into this and ...
10403 * record-full.c: ... this.
10404 * target.h (target_ops): Add new fields to_info_record,
10405 to_save_record, to_delete_record, to_record_is_replaying,
10406 to_goto_record_begin, to_goto_record_end, to_goto_record.
10407 (target_info_record): New.
10408 (target_save_record): New.
10409 (target_supports_delete_record): New.
10410 (target_delete_record): New.
10411 (target_record_is_replaying): New.
10412 (target_goto_record_begin): New.
10413 (target_goto_record_end): New.
10414 (target_goto_record): New.
10415 * target.c (target_info_record): New.
10416 (target_save_record): New.
10417 (target_supports_delete_record): New.
10418 (target_delete_record): New.
10419 (target_record_is_replaying): New.
10420 (target_goto_record_begin): New.
10421 (target_goto_record_end): New.
10422 (target_goto_record): New.
10423 * record.h: Declare struct cmd_list_element.
10424 (record_cmdlist): New declaration.
10425 (set_record_cmdlist): New declaration.
10426 (show_record_cmdlist): New declaration.
10427 (info_record_cmdlist): New declaration.
10428 (cmd_record_goto): New declaration.
10429 * record.c: Remove unnecessary includes.
10430 Include inferior.h.
10431 (cmd_record_goto): Remove declaration.
10432 (record_cmdlist): Now extern. Initialize.
10433 (set_record_cmdlist): Now extern. Initialize.
10434 (show_record_cmdlist): Now extern. Initialize.
10435 (info_record_cmdlist): Now extern. Initialize.
10436 (find_record_target): New.
10437 (require_record_target): New.
10438 (cmd_record_start): Update.
10439 (cmd_record_delete): Remove target-specific code.
10440 Call target_delete_record.
10441 (cmd_record_stop): Unpush any record target.
10442 (set_record_insn_max_num): Move to record-full.c
10443 (set_record_command): Add comment.
10444 (show_record_command): Add comment.
10445 (info_record_command): Update comment.
10446 Remove target-specific code.
10447 Call the record target's to_info_record.
10448 (cmd_record_start): New.
10449 (cmd_record_goto): Now extern.
10450 Remove target-specific code.
10451 Call target_goto_begin, target_goto_end, or target_goto.
10452 (_initialize_record): Move record target ops initialization to
10454 Change "record" command help text.
10455 Move "record restore", "record set", and "record show" commands to
10457 * Makefile.in (SFILES): Add record-full.c.
10458 (HFILES_NO_SRCDIR): Add record-full.h.
10459 (COMMON_OBS): Add record-full.o.
10460 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10461 * arm-tdep.c: Include record-full.h.
10462 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10463 * i386-tdep.c: Include record-full.h.
10464 * infrun.c: Include record-full.h.
10465 * linux-record.c: Include record-full.h.
10466 * moxie-tdep.c: Include record-full.h.
10467 * record-full.c: Include record-full.h.
10468 Change module comment.
10469 (set_record_full_cmdlist): New.
10470 (show_record_full_cmdlist): New.
10471 (record_full_cmdlist): New.
10472 (record_goto_insn): New declaration.
10473 (record_save): New declaration.
10474 (record_check_insn_num): Change query string.
10475 (record_info): New.
10476 (record_delete): New.
10477 (record_is_replaying): New.
10478 (record_goto_entry): New.
10479 (record_goto_begin): New.
10480 (record_goto_end): New.
10481 (record_goto): New.
10482 (init_record_ops): Update.
10483 (init_record_core_ops): Update.
10484 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10485 (cmd_record_start): New.
10486 (set_record_insn_max_num): Moved from record.c
10487 (set_record_full_command): New.
10488 (show_record_full_command): New.
10489 (_initialize_record_full): New.
10491 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10493 * target.h (add_deprecated_target_alias): New.
10494 * target.c (add_deprecated_target_alias): New.
10496 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10498 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10500 (linux_supports_btrace): Add kernel and
10502 (kernel_supports_btrace): New function.
10503 (cpu_supports_btrace): New function.
10504 (intel_supports_btrace): New function.
10506 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10508 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10509 * remote.c: Include btrace.h.
10510 (struct btrace_target_info): New struct.
10511 (remote_supports_btrace): New function.
10512 (send_Qbtrace): New function.
10513 (remote_enable_btrace): New function.
10514 (remote_disable_btrace): New function.
10515 (remote_teardown_btrace): New function.
10516 (remote_read_btrace): New function.
10517 (init_remote_ops): Add btrace ops.
10518 (enum <unnamed>): Add btrace packets.
10519 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10520 (_initialize_remote): Add packet configuration for branch tracing.
10522 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10524 * features/btrace.dtd: New file.
10525 * Makefile.in (XMLFILES): Add btrace.dtd.
10526 * btrace.h (parse_xml_btrace): New declaration.
10527 * btrace.c: Include xml-support.h.
10528 (parse_xml_btrace): New function.
10529 (parse_xml_btrace_block): New function.
10530 (block_attributes): New struct.
10531 (btrace_attributes): New struct.
10532 (btrace_children): New struct.
10533 (btrace_elements): New struct.
10535 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10537 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10538 (amd64_linux_enable_btrace): New.
10539 (amd64_linux_disable_btrace): New.
10540 (amd64_linux_teardown_btrace): New.
10541 (_initialize_amd64_linux_nat): Initialize btrace ops.
10542 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10543 (i386_linux_enable_btrace): New.
10544 (i386_linux_disable_btrace): New.
10545 (i386_linux_teardown_btrace): New.
10546 (_initialize_i386_linux_nat): Initialize btrace ops.
10547 * config/i386/linux.mh: Add linux-btrace.o.
10548 * config/i386/linux64.mh: Add linux-btrace.o.
10550 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10552 * common/linux_btrace.h: New file.
10553 * common/linux_btrace.c: New file.
10554 * Makefile.in (SFILES): Add btrace.c.
10555 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10556 (COMMON_OBS): Add btrace.o.
10557 (linux-btrace.o): New rule.
10559 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10561 * target.h: Include btrace.h.
10562 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10563 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10564 * target.c (target_supports_btrace): New function.
10565 (target_enable_btrace): New function.
10566 (target_disable_btrace): New function.
10567 (target_teardown_btrace): New function.
10568 (target_read_btrace): New function.
10569 * btrace.h: New file.
10570 * btrace.c: New file.
10571 * Makefile.in: Add btrace.c.
10572 * gdbthread.h: Include btrace.h.
10573 (struct thread_info): Add btrace field.
10574 * thread.c: Include btrace.h.
10575 (clear_thread_inferior_resources): Call target_teardown_btrace.
10576 * common/btrace-common.h: New file.
10578 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10580 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10581 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10582 kill_status to outer block.
10584 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10586 Fix entry-values if the callee called a noreturn function.
10587 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10588 get_frame_address_in_block. Add new comment.
10590 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10592 Fix entry-values in C++ across CUs.
10593 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10594 lookup_minimal_symbol. Add a comment.
10596 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10597 DW_AT_linkage_name.
10599 2013-03-08 Yao Qi <yao@codesourcery.com>
10601 * tracepoint.c (_initialize_tracepoint): Indent the code.
10603 2013-03-08 Pedro Alves <palves@redhat.com>
10605 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10606 (parse_find_args, find_command): Change type of pattern buffer
10607 locals to 'gdb_byte *'.
10609 2013-03-08 Stan Shebs <stan@codesourcery.com>
10610 Hafiz Abid Qadeer <abidh@codesourcery.com>
10612 * NEWS: Mention set and show trace-buffer-size commands.
10613 Mention new packet.
10614 * target.h (struct target_ops): New method
10615 to_set_trace_buffer_size.
10616 (target_set_trace_buffer_size): New macro.
10617 * target.c (update_current_target): Set up new method.
10618 * tracepoint.c (trace_buffer_size): New global.
10619 (start_tracing): Send it to the target.
10620 (set_trace_buffer_size): New function.
10621 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10622 * remote.c (remote_set_trace_buffer_size): New function.
10623 (_initialize_remote): Use it.
10624 (QTBuffer:size) New remote command.
10625 (PACKET_QTBuffer_size): New enum.
10626 (remote_protocol_features): Add an entry for
10627 PACKET_QTBuffer_size.
10629 2013-03-08 Tom Tromey <tromey@redhat.com>
10631 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10634 2013-03-07 Pedro Alves <palves@redhat.com>
10636 * target.c (target_read_stralloc, target_fileio_read_alloc):
10637 *Cast pointer to 'gdb_byte *' in target call.
10639 2013-03-07 Pedro Alves <palves@redhat.com>
10641 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10644 2013-03-07 Keith Seitz <keiths@redhat.com>
10646 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10647 (trace_pass_command): Likewise.
10648 * cli/cli-cmds.c: Include cli/cli-utils.h.
10649 (source_command): Use skip-spaces.
10650 (disassemble_command): Likewise.
10651 * findcmd.c: Include cli/cli-utils.h.
10652 (parse_find_args): Use skip_spaces.
10653 * go32-nat.c: Include cli/cli-utils.h.
10654 (go32_sldt): Use skip_spaces.
10655 (go32_sgdt): Likewise.
10656 (go32_sidt): Likewise.
10657 (go32_pde): Likewise.
10658 (go32_pte): Likewise.
10659 (go32_pte_for_address): Likewise.
10660 * infcmd.c: Include cli/cli-utils.h.
10661 (registers_info): Use skip_spaces.
10662 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10663 (linux_info_proc): Likewise.
10664 * linux-thread-db.c: Include cli/cli-utils.h.
10665 (info_auto_load_libthread_db): Use skip_spaces_const.
10666 * m32r-rom.c: Include cli/cli-utils.h.
10667 (m32r_upload_command): Use skip_spaces.
10668 * maint.c: Include cli/cli-utils.h.
10669 (maintenance_translate_address): Use skip_spaces.
10670 * mi/mi-parse.c: Include cli/cli-utils.h.
10671 (mi_parse_argv): Use skip_spaces.
10672 (mi_parse): Likewise.
10673 * minsyms.c: Include cli/cli-utils.h.
10674 (msymbol_hash_iw): Use skip_spaces_const.
10675 * objc-lang.c: Include cli/cli-utils.h.
10676 (parse_selector): Use skip_spaces.
10677 (parse_method): Likewise.
10678 * python/python.c: Include cli/cli-utils.h.
10679 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10680 (python_command)[HAVE_PYTHON]: Likewise.
10681 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10682 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10683 (m32r_load): Use skip_spaces.
10684 * serial.c: Include cli/cli-utils.h.
10685 (serial_open): Use skip_spaces_const.
10686 * stack.c: Include cli/cli-utils.h.
10687 (parse_frame_specification_1): Use skip_spaces_const.
10688 * symfile.c: Include cli/cli-utils.h.
10689 (set_ext_lang_command): Use skip_spaces.
10690 * symtab.c: Include cli/cli-utils.h.
10691 (rbreak_command): Use skip_spaces.
10692 * thread.c (thread_name_command): Use skip_spaces.
10693 * tracepoint.c (validate_actionline): Use skip_spaces.
10694 (encode_actions_1): Likewise.
10695 (trace_find_range_command): Likewise.
10696 (trace_find_outside_command): Likewise.
10697 (trace_dump_actions): Likewise.
10699 2013-03-07 Pedro Alves <palves@redhat.com>
10701 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10702 * expprint.c (print_subexp_standard): Likewise.
10703 * utils.c (host_char_to_target): Likewise.
10704 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10705 * varobj.c (value_get_print_value): Change type of local to char*.
10706 Cast it gdb_byte * in call to language printer.
10708 2013-03-07 Pedro Alves <palves@redhat.com>
10710 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10712 (make_wchar_iterator): Remove cast to char*.
10713 (wchar_iterate): Change type of local.
10715 2013-03-07 Pedro Alves <palves@redhat.com>
10717 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10718 for 'regcache->register_status'.
10720 2013-03-07 Pedro Alves <palves@redhat.com>
10722 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10725 2013-03-07 Pedro Alves <palves@redhat.com>
10727 * stap-probe.c (handle_stap_probe): Add cast to char*.
10729 2013-03-07 Pedro Alves <palves@redhat.com>
10731 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10732 RECORD_MSGRCV>: Pass a signed variable to
10733 regcache_raw_read_signed, instead of an unsigned one.
10735 2013-03-07 Pedro Alves <palves@redhat.com>
10737 * remote-notif.c (notif_debug): Change type to int.
10738 * remote-notif.h (notif_debug): Likewise.
10740 2013-03-07 Pedro Alves <palves@redhat.com>
10742 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10744 2013-03-07 Pedro Alves <palves@redhat.com>
10746 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10747 * remote.h (hex2bin, bin2hex): ... here.
10748 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10750 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10752 * utils.c (initialize_utils): Improve doc strings of "set/show
10753 width", "set/show height", and "set/show pagination".
10755 2013-03-06 Keith Seitz <keiths@redhat.com>
10757 * ax-gdb.c (gen_printf): Make FORMAT const.
10758 * ax-gdb.h (gen_printf): Likewise.
10759 * ax-general.c (ax_string): Make STR const.
10760 * ax.h (ax_string): Likewise.
10762 2013-03-06 Doug Evans <dje@google.com>
10764 * elfread.c (elf_symfile_read): Move debugging printf to more
10767 2013-03-06 Pedro Alves <palves@redhat.com>
10769 * python/py-utils.c (target_string_to_unicode): Delete function.
10770 * python/python-internal.h (target_string_to_unicode): Delete
10773 2013-03-06 Pierre Muller <muller@sourceware.org>
10775 * linespec.c (get_current_search_block): ARI fix, use (void)
10776 for empty parameter list.
10778 2013-03-05 Doug Evans <dje@google.com>
10780 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10781 of old ada_lookup_symbol_list. In !full_search case, don't
10782 search superblocks.
10783 (ada_lookup_symbol_list): Delete arg full_search, all callers
10784 updated. Call ada_lookup_symbol_list_worker.
10785 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10786 * ada-lang.h (ada_lookup_symbol_list): Update.
10787 * language.h (language_defn): Update comment for
10788 la_iterate_over_symbols.
10789 * linespec.c (iterate_over_file_blocks): New function.
10790 (iterate_over_all_matching_symtabs): Call it.
10791 (lookup_prefix_sym): Ditto.
10792 (get_current_search_block): New function.
10793 (get_search_block): Delete.
10794 (find_label_symbols): Call get_current_search_block.
10795 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10796 * symtab.c (iterate_over_symbols): Don't search superblocks.
10798 2013-03-05 Yao Qi <yao@codesourcery.com>
10800 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10801 parameter VAR's type from "unsigned int" to "int".
10802 * command.h (var_zuinteger_unlimited): Update its comments.
10803 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10805 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10807 * NEWS: Mention new target x86_64-*-cygwin*.
10809 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10811 * configure.host: Add x86_64-*-cygwin* as host.
10812 * configure.tgt: Add x86_64-*-cygwin* as target.
10813 * config/i386/cygwin64.mh: New file.
10815 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10817 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10819 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10821 * linespec.c (struct linespec_canonical_name): New.
10822 (struct linespec_state): Change canonical_names type to it.
10823 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10824 xrealloc element size. Initialize the different CANONICAL fields.
10825 (canonical_to_fullform): New.
10826 (filter_results): Use it. Add variables canonical, fullform and
10828 (struct decode_line_2_item, decode_line_2_compare_items): New.
10829 (decode_line_2): Remove variables iter and item_names, add variables
10830 items and items_count. Modify the code for these new variables.
10832 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10834 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10835 calling do_cleanup.
10837 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10839 * tracepoint.c (build_traceframe_info): Add code for byte order.
10841 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10843 * v850-tdep.c: (v850e2_register_name): Revise system register
10844 names to match current V850E2M architecture specifications.
10845 Update register number enum comments too.
10847 2013-03-01 Jiong Wang <jiwang@tilera.com>
10848 Pedro Alves <palves@redhat.com>
10850 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10852 (tilegx_skip_prologue): Limit prologue analysis to section end.
10854 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10856 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10859 2013-03-01 Pedro Alves <palves@redhat.com>
10861 Use gdb_byte for bytes from the program being debugged.
10863 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10864 Change type of local 'buf' to gdb_byte.
10865 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10866 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10867 * cris-tdep.c (cris_sigcontext_addr)
10868 (cris_sigtramp_frame_unwind_cache): Likewise.
10869 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10870 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10872 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10873 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10874 (hppa32_hpux_search_dummy_call_sequence)
10875 (hppa_hpux_supply_save_state): Likewise.
10876 * hppa-linux-tdep.c (insns_match_pattern)
10877 (hppa_linux_find_global_pointer): Likewise.
10878 * hppa-tdep.c (hppa_in_function_epilogue_p)
10879 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10880 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10881 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10882 (i386fbsd_collect_uthread): Likewise.
10883 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10884 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10885 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10886 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10887 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10888 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10889 (ia64_libunwind_frame_prev_register)
10890 (ia64_libunwind_sigtramp_frame_this_id)
10891 (ia64_find_global_pointer_from_dynamic_section)
10892 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10893 (ia64_unwind_pc): Likewise.
10894 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10895 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10896 (m68hc11_extract_return_value): Likewise.
10897 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10898 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10899 (mep_get_insn, mep_push_dummy_call): Likewise.
10900 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10901 (mips_linux_in_dynsym_stub): Likewise.
10902 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10903 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10904 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10906 * remote-mips.c (mips_set_register): Likewise.
10907 * remote-sim.c (gdbsim_fetch_register): Likewise.
10908 * score-tdep.c (score7_fetch_inst): Change type of parameter
10909 'memblock' and local 'buf' to gdb_byte.
10910 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10911 Change type of local 'buf' to gdb_byte. Adjust.
10912 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10914 (score7_analyze_prologue): Change type of 'memblock' and
10915 'memblock_ptr' locals to gdb_byte*.
10916 * sh64-tdep.c (sh64_extract_return_value)
10917 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10918 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10919 * solib-pa64.c (pa64_solib_create_inferior_hook)
10920 (pa64_open_symbol_file_object): Remove local 'buf'.
10921 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10922 (som_open_symbol_file_object): Likewise.
10923 * solib-spu.c (spu_current_sos): Likewise.
10924 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10925 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10926 (spu_store_registers): Likewise.
10927 * target.c (debug_print_register): Likewise.
10928 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10929 * xstormy16-tdep.c (xstormy16_store_return_value)
10930 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10931 (xstormy16_find_jmp_table_entry): Likewise.
10933 2013-03-01 Jiong Wang <jiwang@tilera.com>
10935 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10936 (tilegx_gdbarch_init): Install it.
10938 2013-02-28 Tom Tromey <tromey@redhat.com>
10940 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10943 2013-02-28 Doug Evans <dje@google.com>
10945 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10946 * python/python.c (gdbpy_find_pc_line): Ditto.
10948 2013-02-28 Tom Tromey <tromey@redhat.com>
10950 * contrib/excheck.py: New file.
10951 * contrib/exsummary.py: New file.
10952 * contrib/gcc-with-excheck: New file.
10954 2013-02-28 Tom Tromey <tromey@redhat.com>
10956 * python/python.c (gdbpy_print_stack): Call begin_line and
10957 fprintf_filtered inside TRY_CATCH.
10959 2013-02-28 Tom Tromey <tromey@redhat.com>
10961 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10964 2013-02-28 Tom Tromey <tromey@redhat.com>
10966 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10967 frame_object_to_frame_info inside TRY_CATCH.
10969 2013-02-28 Tom Tromey <tromey@redhat.com>
10971 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10974 2013-02-28 Tom Tromey <tromey@redhat.com>
10976 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10978 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10980 * windows-nat.c: Throughout, fix format strings and casts of
10981 printf-like functions to avoid type related warnings on all
10983 (handle_output_debug_string): Fetch context information address
10984 from debug string using string_to_core_addr.
10986 2013-02-27 Jiong Wang <jiwang@tilera.com>
10988 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10989 * regformats/reg-tilegx32.dat: New.
10991 2013-02-27 Jiong Wang <jiwang@tilera.com>
10993 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10995 2013-02-27 Jiong Wang <jiwang@tilera.com>
10997 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10999 2013-02-27 Yao Qi <yao@codesourcery.com>
11000 Pedro Alves <palves@redhat.com>
11002 * tracepoint.c (tfile_trace_find): For tfind
11003 pc/tp/range/outside, look for the next trace frame instead of
11004 always starting from frame 0.
11006 2013-02-26 Anthony Green <green@moxielogic.com>
11008 * configure.tgt: Add support for moxie-*-rtems* target.
11010 2013-02-25 Pedro Alves <palves@redhat.com>
11012 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11015 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11017 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11018 if $fp is used as the virtual frame pointer.
11020 2013-02-23 Alan Modra <amodra@gmail.com>
11022 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11024 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11025 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11026 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11027 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11029 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11032 * elfread.c (build_id_bfd_get): Make the return type const.
11033 (build_id_verify): Make the check parameter const.
11034 (build_id_to_debug_filename): Make the build_id parameter and variable
11036 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11038 2013-02-21 Alan Modra <amodra@gmail.com>
11040 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11042 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11044 Add a new method 'disassemble' to gdb.Architecture class.
11045 * python/py-arch.c (archpy_disassmble): Implementation of the
11046 new method gdb.Architecture.disassemble.
11047 (arch_object_methods): Add entry for the new method.
11049 2013-02-20 Jiong Wang <jiwang@tilera.com>
11051 * MAINTAINERS (Write After Approval): Add myself to the list.
11053 2013-02-19 Pedro Alves <palves@redhat.com>
11055 Garbage collect 'struct monitor_ops'::load_routine.
11057 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11058 * monitor.c (monitor_load): No longer call
11059 current_monitor->load_routine.
11060 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11061 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11062 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11064 2013-02-19 Pedro Alves <palves@redhat.com>
11068 Harmonize with generic_load.
11070 * monitor.c: Include "readline/readline.h".
11071 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11072 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11073 long/strtol for the 'load_offset' local. Error out if no argument
11074 is given or if too many arguments are given. Tilde expand the
11075 passed in file name.
11077 2013-02-19 Kai Tietz <ktietz@redhat.com>
11080 * symfile.c (load_section_data): Change type of load_offset
11082 (generic_load): User strtoulst instead of strtoul for conversion
11085 2013-02-19 Jiong Wang <jiwang@tilera.com>
11087 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11088 for return address, "lr" register, saved on stack.
11089 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11090 after we invoke tilegx_analyze_prologue.
11092 2013-02-19 Jiong Wang <jiwang@tilera.com>
11094 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11096 2013-02-19 Jiong Wang <jiwang@tilera.com>
11098 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11100 2013-02-19 Jiong Wang <jiwang@tilera.com>
11102 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11103 (tilegx_write_pc): New function.
11104 (tilegx_cannot_reference_register): Return zero if REGNO
11105 is TILEGX_FAULTNUM_REGNUM.
11106 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11107 (tilegx_register_name): Add handling of "faultnum" register.
11108 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11109 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11110 handling of TILEGX_FAULTNUM_REGNUM.
11111 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11113 2013-02-19 Jiong Wang <jiwang@tilera.com>
11115 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11116 should be aligned to 64bit.
11118 2013-02-19 Kai Tietz <ktietz@redhat.com>
11120 * windows-nat.c (windows_xfer_memory): Fix debug-output
11123 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11125 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11126 Don't check DSP register number if HAVE_DSP is not set.
11128 2013-02-19 Alan Modra <amodra@gmail.com>
11130 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11131 throughout file instead.
11132 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11133 Don't xmalloc return value.
11134 (build_id_verify): Similarly. Don't xfree.
11135 (build_id_to_debug_filename): Update.
11136 (find_separate_debug_file_by_buildid): Update, don't xfree.
11138 2013-02-18 Tom Tromey <tromey@redhat.com>
11141 * dwarf2read.c (read_subrange_type): Use result of
11144 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11146 * frame.c: Remove one extra white space after #include
11149 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11151 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11153 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11155 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11156 and dir commands into an if block.
11158 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11160 * python/py-breakpoint (struct pybp_code): Use int instead of
11163 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11164 Hafiz Abid Qadeer <abidh@codesourcery.com>
11166 * NEWS: Mention new field "trace-file".
11167 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11168 (tfile_open): Record the trace file's filename in the trace
11170 (tfile_files_info): Mention the name of the trace file.
11171 Check the "filename" field explicitely.
11172 (trace_status_command): Explicitely check "filename" field.
11173 (trace_find_command): Ditto.
11174 (trace_find_pc_command): Ditto.
11175 (trace_find_tracepoint_command): Ditto.
11176 (trace_find_line_command): Ditto.
11177 (trace_find_range_command): Ditto.
11178 (trace_find_outside_command): Ditto.
11179 * tracepoint.h (struct trace_status) <from_file>: Rename it
11180 to "filename" and make it hold the trace file's filename
11181 instead of a boolean.
11182 * remote.c (remote_get_trace_status): Initialize "filename"
11183 field with NULL instead of 0.
11185 2013-02-15 Yao Qi <yao@codesourcery.com>
11187 * remote.c: Fix a typo.
11189 2013-02-14 Pierre Muller <muller@sourceware.org>
11191 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11193 2013-02-14 Pedro Alves <palves@redhat.com>
11195 * utils.c (savestring): Don't #undef it. Move function to
11196 common/common-utils.c.
11197 * common/common-utils.c: Include gdb_string.h.
11198 (savestring): Move here from utils.c.
11199 * common/common-utils.h (savestring): Declare.
11201 2013-02-14 Pedro Alves <palves@redhat.com>
11203 * utils.c (savestring): Rename parameter 'size' to 'len'.
11205 2013-02-14 Pedro Alves <palves@redhat.com>
11206 Yufeng Zhang <yufeng.zhang@arm.com>
11208 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11209 (aarch64_inferior_data, struct aarch64_inferior_data):
11211 (struct aarch64_process_info): New.
11212 (aarch64_process_list): New global.
11213 (aarch64_find_process_pid, aarch64_add_process)
11214 (aarch64_process_info_get): New functions.
11215 (aarch64_inferior_data_get): Delete.
11216 (aarch64_process_info_get): New function.
11217 (aarch64_forget_process): New function.
11218 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11219 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11220 aarch64_get_debug_reg_state.
11221 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11222 instead of linux_nat_iterate_watchpoint_lwps.
11223 (aarch64_linux_new_fork): New function.
11224 (aarch64_linux_child_post_startup_inferior): Use
11225 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11226 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11227 (aarch64_linux_remove_hw_breakpoint)
11228 (aarch64_handle_aligned_watchpoint)
11229 (aarch64_handle_unaligned_watchpoint)
11230 (aarch64_linux_insert_watchpoint)
11231 (aarch64_linux_remove_watchpoint)
11232 (aarch64_linux_stopped_data_address): Adjust to pass the current
11233 process id to aarch64_debug_reg_state.
11234 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11235 linux_nat_new_fork hook, and aarch64_forget_process as
11236 linux_nat_forget_process hook; remove the call to
11237 register_inferior_data_with_cleanup.
11239 2013-02-14 Pedro Alves <palves@redhat.com>
11241 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11242 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11245 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11246 Hafiz Abid Qadeer <abidh@codesourcery.com>
11248 * tracepoint.h (validate_trace_state_variable_name): Declare.
11249 * tracepoint.c (validate_trace_state_variable_name): New.
11250 (trace_variable_command): Parse the trace state variable's name
11251 without using parse_expression. Do several validations.
11252 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11253 trace state variable's name with parse_expression. Validate it.
11255 2013-02-14 Yao Qi <yao@codesourcery.com>
11257 * infcmd.c (breakpoint_proceeded): Remove it.
11259 2013-02-14 Yao Qi <yao@codesourcery.com>
11261 * tracepoint.c (end_actions_pseudocommand): Make it static.
11262 (while_stepping_pseudocommand): Likewise.
11263 * tracepoint.h (end_actions_pseudocommand): Remove the
11265 (while_stepping_pseudocommand): Likewise.
11267 2013-02-14 Yao Qi <yao@codesourcery.com>
11269 * cli/cli-decode.c (help_cmd): Remove the declaration of
11271 (help_all): Likewise.
11273 2013-02-13 Pedro Alves <palves@redhat.com>
11275 * amd64-linux-nat.c (update_debug_registers_callback):
11277 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11279 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11280 i386_debug_reg_state.
11281 (amd64_linux_new_fork): New function.
11282 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11283 linux_nat_new_fork hook, and i386_forget_process as
11284 linux_nat_forget_process hook.
11285 * i386-linux-nat.c (update_debug_registers_callback):
11287 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11289 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11290 i386_debug_reg_state.
11291 (i386_linux_new_fork): New function.
11292 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11293 linux_nat_new_fork hook, and i386_forget_process as
11294 linux_nat_forget_process hook.
11295 * i386-nat.c (i386_init_dregs): Delete.
11296 (i386_inferior_data, struct i386_inferior_data):
11298 (struct i386_process_info): New.
11299 (i386_process_list): New global.
11300 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11302 (i386_inferior_data_get): Delete.
11303 (i386_process_info_get): New function.
11304 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11305 (i386_forget_process): New function.
11306 (i386_cleanup_dregs): Rewrite.
11307 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11308 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11309 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11310 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11311 to i386_debug_reg_state.
11312 (i386_use_watchpoints): Don't register inferior data.
11313 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11315 (i386_forget_process): Declare.
11316 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11317 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11318 New static globals.
11319 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11320 (add_initial_lwp): New, factored out from ...
11321 (add_lwp): ... this. Don't check the number of lwps before
11322 calling linux_nat_new_thread.
11323 (linux_nat_iterate_watchpoint_lwps): Delete.
11324 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11325 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11327 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11329 (linux_nat_kill, linux_nat_mourn_inferior): Call
11330 linux_nat_forget_process.
11331 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11332 (linux_nat_forget_process): New functions.
11333 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11335 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11336 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11338 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11339 (linux_nat_forget_process): New declarations.
11341 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11342 (amd64fbsd_mourn_inferior): New function.
11343 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11344 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11346 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11348 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11351 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11353 * aarch64-linux-nat.c (debug_reg_change_callback)
11354 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11357 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11359 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11362 2013-02-13 Pedro Alves <palves@redhat.com>
11363 Hafiz Abid Qadeer <abidh@codesourcery.com>
11365 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11367 2013-02-12 Tom Tromey <tromey@redhat.com>
11370 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11372 (classify_inner_name): Remove 'first_name' argument, add
11373 'context'. Remove unused variable.
11374 (yylex): Explicitly maintain the context type. Exit loop earlier
11375 if NAME result is seen.
11377 2013-02-12 Pedro Alves <palves@redhat.com>
11379 * amd64-darwin-tdep.c: Add (C) after Copyright.
11380 * cli/cli-cmds.h: Ditto.
11381 * cli/cli-decode.c: Ditto.
11382 * cli/cli-decode.h: Ditto.
11383 * cli/cli-dump.c: Ditto.
11384 * cli/cli-dump.h: Ditto.
11385 * cli/cli-interp.c: Ditto.
11386 * cli/cli-logging.c: Ditto.
11387 * cli/cli-script.c: Ditto.
11388 * cli/cli-script.h: Ditto.
11389 * cli/cli-setshow.c: Ditto.
11390 * cli/cli-setshow.h: Ditto.
11391 * cli/cli-utils.c: Ditto.
11392 * cli/cli-utils.h: Ditto.
11393 * config/alpha/nm-osf3.h: Ditto.
11394 * config/djgpp/djconfig.sh: Ditto.
11395 * config/i386/nm-fbsd.h: Ditto.
11396 * config/i386/nm-i386gnu.h: Ditto.
11397 * config/nm-linux.h: Ditto.
11398 * config/nm-nto.h: Ditto.
11399 * config/rs6000/nm-rs6000.h: Ditto.
11400 * config/sparc/nm-sol2.h: Ditto.
11401 * darwin-nat-info.c: Ditto.
11404 * gdb-demangle.h: Ditto.
11405 * i386-darwin-nat.c: Ditto.
11406 * i386-darwin-tdep.c: Ditto.
11407 * linux-fork.h: Ditto.
11408 * m32c-tdep.c: Ditto.
11409 * microblaze-linux-tdep.c: Ditto.
11410 * microblaze-rom.c: Ditto.
11411 * microblaze-tdep.c: Ditto.
11412 * microblaze-tdep.h: Ditto.
11413 * mips-linux-tdep.h: Ditto.
11414 * ppc-ravenscar-thread.c: Ditto.
11415 * ppc-ravenscar-thread.h: Ditto.
11416 * prologue-value.c: Ditto.
11417 * prologue-value.h: Ditto.
11418 * ravenscar-thread.c: Ditto.
11419 * ravenscar-thread.h: Ditto.
11420 * sparc-ravenscar-thread.c: Ditto.
11421 * sparc-ravenscar-thread.h: Ditto.
11422 * tilegx-linux-tdep.c: Ditto.
11423 * unwind_stop_reasons.def: Ditto.
11424 * windows-nat.h: Ditto.
11425 * xtensa-linux-tdep.c: Ditto.
11426 * xtensa-xtregs.c: Ditto.
11427 * regformats/regdat.sh: Ditto.
11428 * regformats/regdef.h: Ditto.
11430 2013-02-12 Pedro Alves <palves@redhat.com>
11432 * break-catch-sig.c: Update copyright years.
11434 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11436 Add support for a destructor for ui_out data and use it to
11437 provide a ui_out destructor.
11438 * ui-out.h: Declare the new ui_out destructor.
11439 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11440 * ui-out.c (default_data_destroy): Add a default data destructor
11441 which does nothing.
11442 (default_ui_out_impl): Set the new data_destroy field to
11443 default_data_destroy
11444 (uo_data_destroy): Local function which invokes the data
11445 destructor if present.
11446 (clear_table): Local function which clears the table data of a
11448 (ui_out_destroy): Public function which frees a ui_out object.
11449 (ui_out_table_end): Use the new clear_table function.
11450 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11452 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11455 2013-02-11 Doug Evans <dje@google.com>
11457 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11458 (printf_decfloat): New function. Broken out from ui_printf.
11459 Remove unnecessary code to shift the entire format string down.
11460 (printf_pointer): New function.
11461 (ui_printf): Code to print C strings, wide C strings, decfloats,
11462 and pointers moved to separate functions.
11464 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11466 * valops.c (value_assign): Handling bitfield offset in
11467 `lval_internalvar_component' case.
11469 2013-02-08 Doug Evans <dje@google.com>
11471 * common/format.c (parse_format_string): Fix whitespace.
11473 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11475 * stack.c (return_command): Work around uninitialized variable
11478 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11480 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11481 number of the registers from 36 to 34.
11483 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11485 * NEWS: Mention new AArch64 native and target support.
11487 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11489 * MAINTAINERS (Write After Approval): Add myself.
11491 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11492 Marcus Shawcroft <marcus.shawcroft@arm.com>
11493 Nigel Stephens <nigel.stephens@arm.com>
11494 Yufeng Zhang <yufeng.zhang@arm.com>
11496 * aarch64-linux-nat.c: New file.
11497 * config/aarch64/linux.mh: New file.
11498 * configure.host: Add AArch64.
11499 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11501 2013-02-07 Doug Evans <dje@google.com>
11503 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11504 disassemble command.
11506 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11508 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11509 set_gdbarch_fetch_tls_load_module_address.
11511 2013-02-06 David S. Miller <davem@davemloft.net>
11513 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11514 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11515 * value.c (struct_return_convention): New function.
11516 (using_struct_return): Implement in terms of struct_return_convention.
11517 * value.h (struct_return_convention): Declare.
11518 * stack.c (return_command): Allow successful overriding of the return
11519 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11521 2013-02-06 Tom Tromey <tromey@redhat.com>
11523 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11524 outside of TRY_CATCH.
11526 2013-02-06 Yao Qi <yao@codesourcery.com>
11528 * mi/mi-interp.c: Include "tracepoint.h".
11529 (mi_tsv_modified): Declare.
11530 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11531 (mi_interpreter_init): Call observer_attach_tsv_modified.
11532 (mi_tsv_modified): New.
11533 (mi_tsv_created, mi_tsv_deleted): Update.
11534 * tracepoint.c (trace_variable_command): Call
11535 observer_notify_tsv_modified if the initial value of tsv is
11537 (delete_trace_state_variable): Call
11538 observer_notify_tsv_deleted earlier.
11539 (trace_variable_command): Caller update.
11540 (create_tsv_from_upload): Likewise.
11541 * observer.sh: Declare "struct trace_state_variable".
11543 * NEWS: Mention the new MI notification "=tsv-modified".
11545 2013-02-05 Doug Evans <dje@google.com>
11547 * completer.c (location_completer): Fix typo in comment.
11549 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11551 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11554 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11556 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11557 Refactor if statement to avoid trailing || operator.
11559 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11561 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11563 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11565 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11566 * configure.host: Add powerpc*-*-freebsd* target.
11567 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11568 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11569 * config/powerpc/fbsd.mh: New file.
11571 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11572 Denys Vlasenko <dvlasenk@redhat.com>
11573 Pedro Alves <palves@redhat.com>
11575 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11576 (struct elf_internal_linux_prpsinfo): Forward declare.
11577 * gdbarch.h, gdbarch.c: Regenerate.
11578 * linux-tdep.c: Include `cli/cli-utils.h'.
11579 (linux_fill_prpsinfo): New function.
11580 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11581 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11582 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11583 depending on gdbarch pointer bitness.
11584 * ppc-linux-tdep.c: Include elf-bfd.h.
11585 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11588 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11589 Marcus Shawcroft <marcus.shawcroft@arm.com>
11590 Nigel Stephens <nigel.stephens@arm.com>
11591 Yufeng Zhang <yufeng.zhang@arm.com>
11593 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11595 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11596 Marcus Shawcroft <marcus.shawcroft@arm.com>
11597 Nigel Stephens <nigel.stephens@arm.com>
11598 Yufeng Zhang <yufeng.zhang@arm.com>
11600 * aarch64-newlib-tdep.c: New file.
11601 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11603 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11604 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11605 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11606 * osabi.c (gdb_osabi_names): Add "Newlib".
11608 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11609 Marcus Shawcroft <marcus.shawcroft@arm.com>
11610 Nigel Stephens <nigel.stephens@arm.com>
11611 Yufeng Zhang <yufeng.zhang@arm.com>
11613 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11614 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11615 * aarch64-linux-tdep.c: New file.
11616 * aarch64-linux-tdep.h: New file.
11617 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11618 * configure.tgt: Add aarch64-none-linux-gnu.
11620 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11621 Marcus Shawcroft <marcus.shawcroft@arm.com>
11622 Nigel Stephens <nigel.stephens@arm.com>
11623 Yufeng Zhang <yufeng.zhang@arm.com>
11625 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11626 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11627 (ALLDEPFILES): Add aarch64-tdep.c.
11628 * aarch64-tdep.c: New file.
11629 * aarch64-tdep.h: New file.
11630 * configure.tgt: Add AArch64.
11631 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11632 (aarch64-expedite): New definition.
11633 * features/aarch64-core.xml: New file.
11634 * features/aarch64-fpu.xml: New file.
11635 * features/aarch64-without-fpu.c: New file (generated).
11636 * features/aarch64-without-fpu.xml: New file.
11637 * features/aarch64.c: New file (generated).
11638 * features/aarch64.xml: New file.
11639 * regformats/aarch64-without-fpu.dat: New file (generated).
11640 * regformats/aarch64.dat: New file (generated).
11642 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11644 * contrib/expect-read1.c: New file.
11645 * contrib/expect-read1.sh: New file.
11647 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11649 * dwarf2read.c (file_file_name): New function with code from
11651 (file_full_name): Move most of the code to file_file_name.
11652 (macro_start_file): Rename variable full_name to file_name and use
11653 file_file_name for it. Add comp_dir parameter to new_macro_table.
11654 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11655 macro_source_file->filename access by macro_source_fullname call.
11656 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11658 * macrotab.c (struct macro_table): New field comp_dir.
11659 (macro_include): New variables link_fullname and source_fullname.
11660 Replace any macro_source_file->filename access by macro_source_fullname
11662 (macro_lookup_inclusion): Remove the partial filenames checking code.
11663 (check_for_redefinition): New variables source_fullname and
11664 found_key_fullname. Replace any macro_source_file->filename access by
11665 macro_source_fullname call.
11666 (macro_undef): New variables source_fullname and key_fullname. Replace
11667 any macro_source_file->filename access by macro_source_fullname call.
11668 (macro_lookup_definition): New variables retval and source_fullname.
11669 Replace any macro_source_file->filename access by macro_source_fullname
11671 (foreach_macro): New variable key_fullname. Replace any
11672 macro_source_file->filename access by macro_source_fullname call.
11673 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11674 macro_source_file->filename access by macro_source_fullname call.
11675 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11676 (macro_source_fullname): New function.
11677 * macrotab.h (struct macro_source_file): Extent the filename field
11679 (new_macro_table): New parameter comp_dir, add a comment for it.
11680 (macro_source_fullname): new declaration.
11682 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11684 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11685 this_real_name to outer block. Use it also for
11686 compare_filenames_for_search.
11687 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11688 with dw2_get_real_path for file_matcher, considering also
11689 BASENAMES_MAY_DIFFER.
11690 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11692 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11694 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11695 to the file_matcher parameter. Pass 0 to it.
11696 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11697 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11698 NULL psymtab_to_fullname result.
11699 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11700 an expected filename instead.
11701 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11702 file_matcher parameter. Call also psymtab_to_fullname, after newly
11703 considering BASENAMES_MAY_DIFFER.
11704 * source.c (rewrite_source_path): Remove static.
11705 * source.h (rewrite_source_path): New declaration.
11706 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11707 the expand_symtabs_matching field. Comment it.
11708 * symtab.c (file_matches): New function comment. Add parameter
11709 basenames, implement it.
11710 (search_symbols_file_matches): Add basenames parameter. Update the
11711 file_matches caller.
11712 (search_symbols): Match FILES also against symtab_to_fullname.
11713 Optimize it for BASENAMES_MAY_DIFFER.
11715 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11717 * source.c (print_source_lines_base): Print for TUI also "fullname".
11718 * tui/tui-data.c (init_content_element): Change tui_locator_element
11719 field to full_name.
11720 * tui/tui-data.h (struct tui_locator_element): Likewise.
11721 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11722 tui_update_locator_filename calls to tui_update_locator_fullname.
11723 Replace symtab->filename refererence by symtab_to_fullname call.
11724 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11725 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11726 field to full_name. Replace symtab->filename refererence by
11727 symtab_to_fullname call.
11728 (tui_show_symtab_source): Rename parameter to fullname. Change
11729 tui_locator_element field to full_name.
11730 * tui/tui-stack.c: Include source.h.
11731 (tui_set_locator_filename): Rename the declaration to ...
11732 (tui_set_locator_fullname): ... here. Rename its parameter to
11733 fullname, updates its comment.
11734 (tui_set_locator_info): Rename its parameter to fullname.
11735 (tui_set_locator_filename): Rename the definition to ...
11736 (tui_set_locator_fullname): ... here. Rename its parameter to
11737 fullname, updates its comment. Change tui_locator_element field to
11739 (tui_set_locator_info): Rename its parameter to fullname.
11740 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11741 (tui_update_locator_filename): Rename to ...
11742 (tui_update_locator_fullname): ... here. Rename callee to
11743 tui_set_locator_fullname.
11744 (tui_show_frame_info): Replace symtab->filename refererence by
11745 symtab_to_fullname call.
11746 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11747 (tui_update_locator_fullname): ... here.
11748 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11749 tui_update_locator_fullname. Replace symtab->filename refererence by
11750 symtab_to_fullname call.
11751 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11752 Rename the callee to tui_update_locator_fullname.
11753 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11755 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11757 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11758 by symtab_to_filename_for_display calls.
11759 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11760 (clear_command): New variable sal_fullname, initialize it. Replace
11761 compare_filenames_for_search by filename_cmp with sal_fullname.
11762 (say_where, update_static_tracepoint): Replace symtab->filename
11763 refererences by symtab_to_filename_for_display calls.
11764 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11766 * dwarf2read.c: Include source.h.
11767 (fixup_go_packaging): Replace symtab->filename refererences by
11768 symtab_to_filename_for_display calls.
11769 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11770 Replace symtab->filename refererences by symtab_to_filename_for_display
11772 (create_sals_line_offset, convert_linespec_to_sals): New variable
11773 fullname, initialize it, replace symtab->filename reference by the
11775 * linux-fork.c: Include source.h.
11776 (info_checkpoints_command): Replace symtab->filename refererences by
11777 symtab_to_filename_for_display calls.
11778 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11779 by symtab_to_filename_for_display calls.
11780 * mdebugread.c: Include source.h.
11781 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11782 symtab_to_filename_for_display calls.
11783 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11784 (mi_cmd_file_list_exec_source_files): Likewise.
11785 * printcmd.c: Include source.h.
11786 (build_address_symbolic): Replace symtab->filename refererences by
11787 symtab_to_filename_for_display calls.
11788 * psymtab.c (partial_map_symtabs_matching_filename)
11789 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11790 with psymtab_to_fullname.
11791 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11792 by symtab_to_filename_for_display calls.
11793 (stpy_get_filename): New variable filename, initialize it, use instead
11794 of symtab->filename refererences.
11795 (salpy_str): Make variable filename const char *. Replace
11796 symtab->filename refererences by symtab_to_filename_for_display calls.
11797 * skip.c: Include source.h and filenames.h.
11798 (skip_file_command): Remove const from the symtab variable. Replace
11799 symtab->filename refererences by symtab_to_fullname call.
11800 (function_name_is_marked_for_skip): New variables searched_for_fullname
11801 and fullname. Use them to search also with symtab's fullname.
11802 * source.c (find_source_lines): Replace symtab->filename refererences
11803 by symtab_to_filename_for_display calls.
11804 (print_source_lines_base): New variable filename, use it instead of
11805 symtab->filename. Replace symtab->filename refererences by
11806 symtab_to_filename_for_display calls.
11807 (line_info, forward_search_command): Replace symtab->filename
11808 refererences by symtab_to_filename_for_display calls.
11809 (reverse_search_command): Replace symtab->filename refererences by
11810 symtab_to_filename_for_display calls. New variable filename for it.
11811 * stack.c (frame_info): Likewise.
11812 * symmisc.c: Include source.h.
11813 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11814 (maintenance_info_symtabs): Replace symtab->filename refererences by
11815 symtab_to_filename_for_display calls.
11816 * symtab.c (iterate_over_some_symtabs): Call
11817 compare_filenames_for_search also with symtab_to_fullname.
11818 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11819 symtab->filename refererences by symtab_to_filename_for_display calls.
11820 (find_line_symtab): Replace symtab->filename refererences by
11821 symtab_to_filename_for_display calls.
11822 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11823 (print_symbol_info): Make the last parameter const char *. New
11824 variable s_filename. Use it in the function.
11825 (symtab_symbol_info): Make the last_filename variable const char *.
11826 Replace symtab->filename refererences by symtab_to_filename_for_display
11828 (rbreak_command): New variable fullname. Use it. Replace
11829 symtab->filename refererence by symtab_to_filename_for_display call.
11830 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11831 (print_one_static_tracepoint_marker): Replace symtab->filename
11832 refererences by symtab_to_filename_for_display calls.
11833 * tui/tui-source.c (tui_set_source_content): New variables filename and
11834 s_filename. Replace symtab->filename refererences by this variable.
11835 Replace other symtab->filename refererences by
11836 symtab_to_filename_for_display calls.
11838 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11839 Jan Kratochvil <jan.kratochvil@redhat.com>
11841 Add a new variable that controls a way in which filenames are
11843 * NEWS (set filename-display): New entry.
11844 * source.c (filename_display_basename, filename_display_relative)
11845 (filename_display_absolute, filename_display_kind_names)
11846 (filename_display_string, show_filename_display_string)
11847 (symtab_to_filename_for_display): New.
11848 (_initialize_source): Added initialization of 'filename-display'
11850 * source.h (symtab_to_filename_for_display): Added declaration.
11851 * stack.c (print_frame): Added new variable and calling of a new
11852 function and condition with this variable. Changed third argument of
11853 calling of a function.
11855 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11857 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11858 Rename field reference filename to fullname.
11859 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11860 fullname. New comment for it.
11861 * tui/tui-source.c (tui_set_source_content): Rename field reference
11862 filename to fullname. Initialize field by symtab_to_fullname now.
11863 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11864 reference filename to fullname. Use symtab_to_fullname during
11867 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11870 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11871 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11872 filename to fullname. Rename variable this_name to this_fullname.
11873 Lowercase FILENAME_CMP call.
11874 (dw2_find_symbol_file): New comment for the returned string.
11875 (dwarf2_gdb_index_functions): Rename the function to
11876 dw2_expand_symtabs_with_fullname.
11877 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11878 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11880 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11881 * symfile.h (struct quick_symbol_functions): Rename field
11882 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11883 parameter filename to fullname. Document returned string meaning for
11885 * symtab.c (find_line_symtab): Rename the called function to
11886 expand_symtabs_with_fullname.
11888 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11891 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11892 call of filename_cmp with compare_filenames_for_search.
11893 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11894 is_abs, unify the call of FILENAME_CMP with
11895 compare_filenames_for_search. New gdb_asserts for real_path and name.
11896 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11897 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11898 * symfile.h (struct quick_symbol_functions): Extend the comment for
11899 map_symtabs_matching_filename.
11900 * symtab.c (compare_filenames_for_search): Remove the function comment
11901 relative path requirement. Handle absolute filenames, with a comment.
11902 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11903 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11904 real_path and name. Unify the call of compare_filenames_for_search
11906 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11908 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11911 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11912 source_file references by symtab field references. Remove variables
11914 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11915 (clear_command, say_where): Replace bp_location field source_file
11916 references by symtab field references.
11917 (bp_location_dtor): Remove the source_file reference.
11918 (update_static_tracepoint): Replace bp_location field source_file
11919 references by symtab field references.
11920 (breakpoint_free_objfile): New function.
11921 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11922 Replace the field source_file by field symtab, extend its comment.
11923 (breakpoint_free_objfile): New declaration.
11924 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11925 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11926 field source_file references by symtab field references.
11928 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11930 Replace xfullpath calls by gdb_realpath calls.
11931 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11933 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11934 Remove it from the iterate_over_some_symtabs call.
11935 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11936 Remove it from the dw2_map_expand_apply calls, remove a block handling
11938 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11939 Remove it from the iterate_over_some_symtabs call.
11940 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11941 Remove it from the partial_map_expand_apply calls, remove a block
11942 handling it. Drop gdb_realpath call and cleanups from the real_path
11944 * source.c (openp): Drop the comment part about xfullpath. Replace
11945 xfullpath calls by gdb_realpath calls.
11946 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11947 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11948 from method map_symtabs_matching_filename and its comment.
11949 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11951 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11952 remove it also from the function comment, remove a block handling it.
11953 Drop gdb_realpath call and cleanups from the real_path handling.
11954 (iterate_over_symtabs): Drop variable full_path and its use.
11955 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11956 * utils.c (xfullpath): Remove.
11957 * utils.h (xfullpath): Remove.
11959 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11961 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11962 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11963 (ALLDEPFILES): Add ppc64-tdep.c.
11964 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11965 ppc64-tdep.o to gdb_target_obs.
11966 * ppc64-tdep.h: New file.
11967 * ppc64-tdep.c: New file.
11968 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11969 ppc-linux-tdep.c to here.
11970 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11971 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11972 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11973 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11974 from ppc-linux-tdep.c to here.
11975 (ppc64_convert_from_func_ptr_addr): Rename from
11976 ppc64_linux_convert_from_func_ptr_addr to
11977 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11980 (read_insn): Move from ppc-linux-tdep.c to here.
11981 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11982 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11983 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11984 Removed above functions.
11985 (ppc_linux_init_abi): Adjust.
11987 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11989 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11991 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11993 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11995 2013-02-01 Pedro Alves <palves@redhat.com>
11997 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11998 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12000 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12002 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12003 files with no separate debug info.
12004 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12005 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12006 only for files with no separate debug info.
12008 2013-01-31 Tom Tromey <tromey@redhat.com>
12010 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12012 (struct jit_program_space_data): Rename from jit_inferior_data.
12014 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12015 Change return type. Attach data to program space.
12016 (jit_program_space_data_cleanup): Rename from
12017 jit_inferior_data_cleanup; change argument type.
12018 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12020 (jit_register_code): Update.
12021 (jit_update_inferior_cache): Remove.
12022 (jit_breakpoint_deleted): Get jit data from the location's program
12024 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12025 'ps_data', change type.
12026 (jit_inferior_init, jit_breakpoint_re_set_internal)
12027 (jit_event_handler): Update.
12028 (free_objfile_data): Get data from objfile's program space.
12029 (_initialize_jit): Update.
12031 2013-01-31 Tom Tromey <tromey@redhat.com>
12034 * jit.c (struct jit_inferior_data) <cached_code_address,
12035 jit_breakpoint>: New fields.
12036 (jit_breakpoint_re_set_internal): Fix logging. Only create
12037 breakpoint if cached address has changed.
12038 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12040 (_initialize_jit): Register breakpoint deleted observer.
12042 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12044 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12045 (save_infcall_suspend_state): Ifdef out unused inf.
12046 (restore_infcall_suspend_state): Ifdef out unused inf.
12047 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12048 (jit_frame_sniffer): Remove unused inf_data.
12050 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12052 * c-exp.y (classify_inner_name): Remove unused type.
12053 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12054 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12056 (c_get_string): Remove unused kind.
12057 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12059 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12061 * charset.c (intermediate_encoding): Remove unused i.
12062 * completer.c (signal_completer): Remove unused i.
12063 * continuations.c (discard_my_continuations_1): Remove unused
12065 * corelow.c (core_close): Remove unuseD name.
12066 (get_core_siginfo): Remove unused pid.
12067 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12069 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12070 (loclist_describe_location): Remove unused first.
12071 * event-top.c (command_line_handler): Remove unused got_eof.
12072 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12073 (resize_section_table): Remove unused old_value.
12074 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12075 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12076 * i386-tdep.c (i386_process_record): Remove unused rex.
12077 * infcmd.c (get_return_value): Remove unused uiout.
12078 * jv-lang.c (type_from_class): Remove unused is_array.
12079 * jv-valprint.c (java_val_print): Remove unused i.
12080 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12081 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12082 * m2-typeprint.c (m2_print_type): Remove unused code.
12083 * macroexp.c (get_character_constant): Remove unused body_start.
12084 (macro_stringify): Remove unused result.
12085 * objc-lang.c (find_methods): Remove unused gdbarch.
12086 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12087 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12088 * stack.c (print_frame_args): Remove unused summary.
12089 * thread.c (thread_apply_command): Remove unused p.
12090 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12091 * valops.c (search_struct_method): Remove unused skip.
12092 * valprint.c (generic_val_print): Remove unused byte_order.
12093 * varobj.c (varobj_update): Remove unused changed.
12094 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12095 (alias_command): Remove unused c.
12096 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12097 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12099 (mi_cmd_data_write_memory): Remove unused word_format.
12100 (mi_cmd_data_write_memory_bytes): Remove unused r.
12101 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12103 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12104 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12107 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12109 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12110 * symtab.c (iterate_over_symtabs): Remove unused s.
12111 (find_pc_sect_symtab): Remove unused pspAce.
12112 (find_pc_sect_line): Remove unused alt_symtab.
12113 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12114 (completion_list_add_name): Remove unused newsize.
12116 2013-01-31 Tom Tromey <tromey@redhat.com>
12119 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12122 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12124 * target.c (target_read_string): Remove unused origlen.
12126 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12128 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12129 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12130 * ax-general.c (ax_print): Remove unused is_float.
12131 * blockframe.c (block_innermost_frame): Remove unused start, end.
12132 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12134 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12136 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12137 (svr4_read_so_list): Remove unused lmo.
12138 * solib-target.c (solib_target_relocate_section_addresses): Remove
12141 2013-01-30 Tom Tromey <tromey@redhat.com>
12143 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12145 2013-01-30 Tom Tromey <tromey@redhat.com>
12147 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12148 * utils.c (gnu_debuglink_crc32): Remove.
12149 * utils.h (gnu_debuglink_crc32): Don't declare.
12151 2013-01-30 Tom Tromey <tromey@redhat.com>
12153 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12154 (read_structure_type, read_enumeration_type): Remove cast.
12156 2013-01-30 Tom Tromey <tromey@redhat.com>
12158 * dwarf2read.c (read_namespace_type): Remove cast.
12159 (read_typedef): Likewise.
12161 2013-01-29 Tom Tromey <tromey@redhat.com>
12163 * dwarf2read.c (free_dwo_file): Remove assert.
12165 2013-01-29 Tom Tromey <tromey@redhat.com>
12167 * value.c (deprecated_set_value_modifiable): Remove.
12168 * value.h (deprecated_set_value_modifiable): Remove.
12170 2013-01-28 Doug Evans <dje@google.com>
12172 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12173 to addresses from dwo files.
12175 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12177 * valops.c (find_overload_match): Remove unused argument 'lax'.
12178 * value.h: Remove unused argument 'lax' from the declaration of
12179 find_overload_match.
12180 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12181 to find_overload_match.
12182 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12183 argument to find_overload_match.
12185 2013-01-25 Tom Tromey <tromey@redhat.com>
12187 * dwarf2read.c (processing_has_namespace_info): Remove.
12188 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12189 (process_die, read_func_scope, dwarf2_start_symtab)
12190 (new_symbol_full): Update.
12192 2013-01-25 Tom Tromey <tromey@redhat.com>
12194 * cp-namespace.c (cp_set_block_scope): Remove.
12195 * cp-support.h (cp_set_block_scope): Remove.
12196 * dbxread.c: Include block.h.
12197 (cp_set_block_scope): New function.
12198 (process_one_symbol): Update.
12199 * dwarf2read.c (read_func_scope): Use block_set_scope.
12201 2013-01-25 Pedro Alves <palves@redhat.com>
12203 * remote.c (add_current_inferior_and_thread): Tweak comment.
12205 2013-01-25 Tom Tromey <tromey@redhat.com>
12207 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12208 (cp_add_using_directive): Add 'copy_names' argument.
12209 * cp-support.h (cp_add_using_directive): Update.
12210 (struct using_direct) <import_src, import_dest, alias,
12211 declaration>: Now const.
12212 * dwarf2read.c (read_import_statement): Use obconcat.
12213 Don't copy names passed to cp_add_using_directive.
12215 2013-01-25 Tom Tromey <tromey@redhat.com>
12217 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12219 2013-01-25 Pedro Alves <palves@redhat.com>
12221 * remote.c (stop_reply_extract_thread): New.
12222 (add_current_inferior_and_thread): New parameter 'wait_status'.
12224 (remote_start_remote): Pass wait status to
12225 add_current_inferior_and_thread.
12226 (extended_remote_run): Update comment.
12227 (extended_remote_create_inferior_1): Pass wait status to
12228 add_current_inferior_and_thread.
12230 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12231 Ulrich Weigand <uweigand@de.ibm.com>
12233 * valarith.c (value_vector_widen): New function for replicating a
12234 scalar into a vector.
12235 (value_binop): Use value_vector_widen to widen scalar to vector
12236 rather than casting, this better matches gcc C behaviour.
12237 * valops.c (value_casst): Update logic for casting between vector
12238 types, and for casting from scalar to vector, try to match gcc C
12240 * value.h (value_vector_widen): Declare.
12241 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12242 function, handle special case for casting scalar to vector.
12243 (opencl_relop): Use opencl_value_cast.
12244 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12245 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12246 in order to use opencl_value_cast.
12248 2013-01-25 Yao Qi <yao@codesourcery.com>
12250 * event-loop.c: Include "queue.h".
12251 (gdb_event_p): New typedef.
12252 (DECLARE_QUEUE_P): Use.
12253 (DEFINE_QUEUE_P): Use.
12254 (async_queue_event): Remove.
12255 (gdb_event_xfree): New.
12256 (initialize_event_loop): New.
12257 (process_event): Use QUEUE macros.
12258 (event_queue): Remove.
12259 (gdb_wait_for_event): Caller update.
12260 (check_async_event_handlers): Likewise.
12261 (poll_timers): Likewise.
12262 * event-loop.h (initialize_event_loop): Declare.
12263 * event-loop.c (gdb_event_xfree): New.
12264 * top.c (gdb_init): Call initialize_event_loop.
12266 2013-01-25 Yao Qi <yao@codesourcery.com>
12268 * event-loop.c (async_queue_event): Remove one parameter
12269 'position'. Remove code handling 'position' == TAIL.
12270 (gdb_wait_for_event): Caller update.
12271 (check_async_event_handlers): Caller update.
12272 (poll_timers): Caller update.
12273 * event-loop.h (enum queue_position): Remove.
12275 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12277 * MAINTAINERS: Update my email.
12279 2013-01-25 Yao Qi <yao@codesourcery.com>
12281 * main.c (print_gdb_help): Remove "--epoch" from the help
12284 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12286 * symtab.c (skip_prologue_using_sal): Consider a file
12287 change the same as an increased line number
12289 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12291 * MAINTAINERS (Write After Approval): Add myself to the list.
12293 2013-01-24 Tom Tromey <tromey@redhat.com>
12295 * ada-lang.h (ada_decode_symbol): Make return type const.
12296 * ada-lang.c (ada_decode_symbol): Likewise.
12298 2013-01-23 Doug Evans <dje@google.com>
12300 * linespec.c (find_linespec_symbols): Make static.
12302 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12304 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12305 type on float conversion for complex type.
12307 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12309 Add a new class gdb.Architecture which exposes GDB's
12310 internal representation of architecture via GDB Python API.
12311 * Makefile.in: Add entries corresponding to the new file
12313 * NEWS (Python Scripting): Add entries for the new class
12314 gdb.Architecture and the new method gdb.Frame.architecture.
12315 * python/py-arch.c: Implement gdb.Architecture class.
12316 * python/py-frame.c (frapy_arch): Implement the method
12317 gdb.Frame.architecture().
12318 (frame_object_methods): Add 'architecture' to the method table.
12319 * python/python-internal.h: Add declarations of new utility
12321 * python/python.c (_initialize_python): Initialize
12322 gdb.Architecture class.
12324 2013-01-23 Doug Evans <dje@google.com>
12326 Work around binutils/15021.
12327 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12328 type_unit_group out of union s. All uses updated.
12329 (read_index_from_section): Watch for index version 8.
12330 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12331 an imported symtab.
12332 (write_psymtabs_to_index): Increment version number to 8.
12334 2013-01-22 Pedro Alves <palves@redhat.com>
12336 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12339 2013-01-22 Pedro Alves <palves@redhat.com>
12341 * annotate.c (annotate_breakpoints_changed): Rename to ...
12342 (annotate_breakpoints_invalid): ... this. Make static.
12343 (breakpoint_changed): Adjust.
12344 (_initialize_annotate): Always install the observers. Install a
12345 "breakpoint_created" observer.
12346 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12347 * breakpoint.c (set_breakpoint_condition)
12348 (breakpoint_set_commands, do_map_commands_command)
12349 (init_raw_breakpoint, clear_command, set_ignore_count)
12350 (enable_breakpoint_disp): No longer call
12351 annotate_breakpoints_changed.
12353 2013-01-22 Pedro Alves <palves@redhat.com>
12355 * annotate.c: Include "inferior.h".
12356 (frames_invalid_emitted)
12357 (breakpoints_invalid_emitted): New globals.
12358 (async_background_execution_p): New function.
12359 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12360 emitting the annotation if it has already been emitted.
12361 (annotate_display_prompt): New function.
12362 * annotate.h (annotate_display_prompt): New declaration.
12363 * event-top.c: Include annotate.h.
12364 (display_gdb_prompt): Call annotate_display_prompt.
12366 2013-01-22 Pedro Alves <palves@redhat.com>
12368 * annotate.c (ignore_count_changed): Delete.
12369 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12370 (annotate_ignore_count_change): Delete.
12371 (annotate_stopped): Don't emit a delayed breakpoints-changed
12373 * annotate.h (annotate_ignore_count_change): Delete.
12374 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12375 annotate_ignore_count_change.
12377 2013-01-22 Tom Tromey <tromey@redhat.com>
12379 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12380 require_rvalue for a register location.
12382 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12384 * breakpoint.c (print_one_breakpoint_location): Add MI
12385 field 'thread-groups' when printing a breakpoint.
12386 (output_thread_groups): New function.
12388 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12390 * python/lib/gdb/commands/explore.py
12391 (CompoundExplorer.explore_expr): Correct the name of a method
12393 (ExploreTypeCommand.invoke): Add a missing 'return'.
12395 2013-01-21 Tom Tromey <tromey@redhat.com>
12397 * gdb_obstack.h (obconcat): Move declaration here, from...
12398 * symfile.h (obconcat): ... here.
12399 * gdb_obstack.c: New file.
12400 (obconcat): Move from...
12401 * symfile.c (obconcat): ... here.
12402 * Makefile.in (SFILES): Add gdb_obstack.c.
12403 (COMMON_OBS): Add gdb_obstack.o.
12405 2013-01-21 Tom Tromey <tromey@redhat.com>
12407 * symfile.h (obsavestring): Don't declare.
12408 * symfile.c (obsavestring): Remove.
12409 * ada-exp.y: Use obstack_copy0, not obsavestring.
12410 * ada-lang.c: Use obstack_copy0, not obsavestring.
12411 * coffread.c: Use obstack_copy0, not obsavestring.
12412 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12413 * dbxread.c: Use obstack_copy0, not obsavestring.
12414 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12415 * jit.c: Use obstack_copy0, not obsavestring.
12416 * mdebugread.c: Use obstack_copy0, not obsavestring.
12417 * psymtab.c: Use obstack_copy0, not obsavestring.
12418 * stabsread.c: Use obstack_copy0, not obsavestring.
12419 * xcoffread.c: Use obstack_copy0, not obsavestring.
12421 2013-01-21 Tom Tromey <tromey@redhat.com>
12423 * dwarf2read.c (fixup_go_packaging): Save package name
12424 on objfile obstack.
12425 * gdbtypes.c (init_type): Don't copy name.
12427 2013-01-21 Tom Tromey <tromey@redhat.com>
12429 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12431 (struct attribute) <u.str>: Now const.
12432 (struct fnfieldlist) <name>: Now const.
12433 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12434 (partial_die_parent_scope): Make return type const.
12435 (partial_die_full_name, add_partial_symbol): Update.
12436 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12438 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12439 (read_file_scope, read_func_scope, dwarf2_add_field)
12440 (dwarf2_add_member_fn, read_structure_type)
12441 (process_enumeration_scope, read_array_type, read_module_type)
12442 (read_base_type, read_subrange_type): Update.
12443 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12444 (new_symbol_full, guess_full_die_structure_name): Update.
12445 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12446 (dwarf2_name): Return const type.
12447 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12450 2013-01-21 Tom Tromey <tromey@redhat.com>
12452 * gdbtypes.c (init_type): Make 'name' const.
12453 * gdbtypes.h (init_type): Update.
12455 2013-01-21 Tom Tromey <tromey@redhat.com>
12457 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12458 (start_symtab): Make 'name' and 'dirname' const. Use
12459 set_last_source_file.
12460 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12461 (last_source_file): Define. Now static.
12462 (set_last_source_file, get_last_source_file): New functions.
12463 * buildsym.h (last_source_file): Don't declare.
12464 (start_symtab): Update.
12465 (set_last_source_file, get_last_source_file): Declare.
12466 * coffread.c (complete_symtab): Use set_last_source_file.
12467 (coff_end_symtab): Likewise.
12468 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12469 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12470 set_last_source_file.
12471 (process_one_symbol): Use get_last_source_file.
12472 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12473 (psymtab_to_symtab_1): Use get_last_source_file.
12474 * xcoffread.c (process_linenos): Use get_last_source_file.
12475 (complete_symtab): Use set_last_source_file.
12476 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12477 (scan_xcoff_symtab): Use set_last_source_file.
12479 2013-01-21 Tom Tromey <tromey@redhat.com>
12481 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12482 (symbol_set_names): Remove casts. Handle field const-ness.
12484 2013-01-21 Tom Tromey <tromey@redhat.com>
12486 * dwarf2read.c (new_symbol_full): Remove cast.
12487 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12488 * symtab.h (symbol_set_demangled_name): Update.
12490 2013-01-21 Tom Tromey <tromey@redhat.com>
12492 * main.c (captured_main): Call bfd_init.
12494 2013-01-21 Tom Tromey <tromey@redhat.com>
12496 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12497 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12498 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12501 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12503 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12505 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12507 Fix gdb.fortran/common-block.exp crash in PIE mode.
12508 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12510 * f-valprint.c (info_common_command_for_block): Expect
12511 LOC_COMMON_BLOCK in gdb_assert.
12512 * symtab.h (struct general_symbol_info): Update comment for the
12513 common_block member.
12514 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12515 (enum address_class): New member LOC_COMMON_BLOCK.
12517 2013-01-18 David Blaikie <dblaikie@gmail.com>
12519 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12521 2013-01-18 Tom Tromey <tromey@redhat.com>
12524 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12525 Call require_rvalue.
12527 2013-01-18 Yao Qi <yao@codesourcery.com>
12529 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12530 (dbx_read_symtab): New declaration.
12531 (dbx_psymtab_to_symtab): Delete.
12532 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12533 Rename parameter PST to SELF. Exchanged two parameters.
12534 (start_psymtab): Caller update.
12535 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12536 (dwarf2_read_symtab): New declaration.
12537 (dwarf2_psymtab_to_symtab): Delete.
12538 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12539 Rename parameter PST to SELF. Exchanged two parameters.
12540 (create_partial_symtab): Caller update.
12541 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12542 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12543 Rename parameter PST to SELF. Exchanged two parameters.
12544 (parse_partial_symbols, new_psymtab): Caller update.
12545 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12547 * psymtab.c (psymtab_to_symtab): Caller update.
12548 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12549 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12550 Rename parameter PST to SELF. Exchanged two parameters.
12551 (xcoff_start_psymtab): Caller update.
12553 2013-01-18 Yao Qi <yao@codesourcery.com>
12555 * infrun.c (proceed): Rename local variable 'oneproc' to
12558 2013-01-17 Doug Evans <dje@google.com>
12560 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12561 (dw2_build_type_unit_groups): Delete. All uses updated.
12563 * symtab.h (struct symbol_search): Add comment.
12565 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12567 * symtab.c (compare_filenames_for_search): New comment for
12570 2013-01-17 Tom Tromey <tromey@redhat.com>
12572 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12574 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12576 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12577 initialize it by existing make_cleanup. Call new do_cleanups.
12579 2013-01-17 Tom Tromey <tromey@redhat.com>
12581 * cp-abi.c (cp_abi_completer): New function.
12582 (_initialize_cp_abi): Set completer for "set cp-abi".
12584 2013-01-17 Tom Tromey <tromey@redhat.com>
12586 * mem-break.c: Remove obsolete comment.
12587 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12589 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12591 * jit.c (jit_reader_load_command): Interpret the jit reader name
12592 as an absolute path if it begins with a forward slash.
12594 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12598 * jit.c (finalize_symtab): Ensure that only the global block has a
12601 2013-01-17 Pedro Alves <palves@redhat.com>
12603 * acinclude.m4: Include ../config/plugins.m4,
12604 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12605 * Makefile.in (aclocal_m4_deps): Update.
12606 * aclocal.m4: Renegerate.
12608 2013-01-16 Doug Evans <dje@google.com>
12610 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12612 2013-01-16 Pedro Alves <palves@redhat.com>
12613 Tom Tromey <tromey@redhat.com>
12616 * NEWS: Add "catch signal".
12617 * breakpoint.c (base_breakpoint_ops): No longer static.
12618 (bpstat_explains_signal): New function.
12619 (init_catchpoint): No longer static.
12620 (base_breakpoint_explains_signal): New function.
12621 (base_breakpoint_ops): Initialize new field.
12622 * breakpoint.h (enum bpstat_signal_value): New.
12623 (struct breakpoint_ops) <explains_signal>: New field.
12624 (bpstat_explains_signal): Remove macro, declare as function.
12625 (base_breakpoint_ops, init_catchpoint): Declare.
12626 * break-catch-sig.c: New file.
12627 * inferior.h (signal_catch_update): Declare.
12628 * infrun.c (signal_catch): New global.
12629 (handle_syscall_event): Update for change to
12630 bpstat_explains_signal.
12631 (handle_inferior_event): Likewise. Always handle random signals
12633 (signal_cache_update): Check signal_catch.
12634 (signal_catch_update): New function.
12635 (_initialize_infrun): Initialize signal_catch.
12636 * Makefile.in (SFILES): Add break-catch-sig.c.
12637 (COMMON_OBS): Add break-catch-sig.o.
12639 2013-01-16 Tom Tromey <tromey@redhat.com>
12641 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12642 (print_one_catch_solib, print_one_catch_syscall)
12643 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12646 2013-01-16 Yao Qi <yao@codesourcery.com>
12648 * printcmd.c (current_display_number): Make it static.
12650 2013-01-16 Yao Qi <yao@codesourcery.com>
12652 * infcmd.c (step_once): Don't check '!single_inst' as it was
12655 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12657 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12659 2013-01-14 Tom Tromey <tromey@redhat.com>
12661 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12663 * command.h (add_setshow_string_noescape_cmd): Update.
12664 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12665 (complete_set_gnutarget): New function.
12666 (_initialize_core): Set the "set gnutarget" completer.
12668 2013-01-14 Tom Tromey <tromey@redhat.com>
12671 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12672 (c_type_print_modifier): Likewise.
12673 * dwarf2read.c (read_tag_restrict_type): New function.
12674 (read_type_die_1): Handle DW_TAG_restrict_type.
12675 * gdbtypes.c (make_restrict_type): New function.
12676 (recursive_dump_type): Handle TYPE_RESTRICT.
12677 * gdbtypes.h (enum type_flag_values): Renumber.
12678 (enum type_instance_flag_value): Add
12679 TYPE_INSTANCE_FLAG_RESTRICT.
12680 (TYPE_RESTRICT): New macro.
12681 (make_restrict_type): Declare.
12683 2013-01-14 Tom Tromey <tromey@redhat.com>
12686 * psymtab.c (struct psymtab_state): New.
12687 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12689 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12690 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12692 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12693 Pedro Alves <palves@redhat.com>
12697 * remote.c (remote_threads_info): Make a copy of the reply from
12698 qfThreadInfo and use that instead of rs->buf.
12700 2013-01-14 Yao Qi <yao@codesourcery.com>
12702 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12703 (dbx_psymtab_to_symtab): Likewise.
12704 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12705 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12706 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12708 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12710 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12711 make_cleanup_restore_current_language. Call set_language. Move
12712 OLD_CHAIN and INNER_CHAIN cleanups.
12713 * utils.c (do_restore_current_language)
12714 (make_cleanup_restore_current_language): New functions.
12715 * utils.h (make_cleanup_restore_current_language): New declaration.
12717 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12719 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12720 non-existing files.
12722 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12723 non-existing files if FILENAME is already absolute.
12725 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12727 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12728 fputs_filtered. Append trailing newline.
12730 2013-01-11 Yao Qi <yao@codesourcery.com>
12731 Stan Shebs <stan@codesourcery.com>
12733 * psymtab.c (init_psymbol_list): Clarify the comment.
12735 2013-01-11 Yao Qi <yao@codesourcery.com>
12737 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12738 (update_dprintf_command_list): Assert that 'printf_line' is
12739 non-null. Remove condition check.
12741 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12744 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12746 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12748 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12750 2013-01-09 Anthony Green <green@moxielogic.com>
12752 * cp-abi.c (cplus_print_vtable): Don't return value from void
12754 * ada-lang.c (re_set_catch_assert): Ditto.
12756 2013-01-09 Doug Evans <dje@google.com>
12758 * symfile.h (quick_symbol_functions): Delete member
12759 pre_expand_symtabs_matching. All uses removed.
12760 * dwarf2read.c (dw2_lookup_symbol): Implement.
12761 (dw2_do_expand_symtabs_matching): Delete.
12762 (dw2_pre_expand_symtabs_matching): Delete.
12763 (struct dw2_symtab_iterator): New type.
12764 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12765 (dw2_expand_symtabs_for_function): Rewrite.
12766 (dwarf2_gdb_index_functions): Update.
12767 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12768 (psym_functions): Update.
12770 2013-01-09 Tom Tromey <tromey@redhat.com>
12772 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12773 * configure: Rebuild.
12774 * configure.ac: Add somread.o to the build if BFD has SOM
12776 * somread.c: Include som/aout.h, not syms.h.
12777 (som_symtab_read): Use som_external_symbol_dictionary_record.
12778 Unpack records manually.
12779 (_initialize_somread): Declare.
12781 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12783 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12784 Cast return_address to 64bits.
12786 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12788 * printcmd.c: Remove define of function output_command.
12789 * tracepoint.c: Remove extern of function output_command.
12790 * valprint.h: (output_command): New extern.
12792 2013-01-07 Tom Tromey <tromey@redhat.com>
12794 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12796 (objc_language_defn): Use c_printchar, c_printstr,
12799 2013-01-07 Tom Tromey <tromey@redhat.com>
12803 * ada-valprint.c (printstr, print_field_values): Remove
12805 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12807 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12809 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12810 * main.c (captured_main): Remove "epoch" argument.
12811 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12812 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12813 * p-valprint.c (pascal_object_print_value_fields): Remove
12815 * printcmd.c (print_command_1): Remove 'inspect' argument.
12816 (print_command, call_command): Update.
12817 (inspect_command): Remove.
12818 (_initialize_printcmd): Make "inspect" an alias for "print".
12819 * top.c (epoch_interface): Remove.
12820 * top.h (epoch_interface): Remove.
12821 * valprint.c (user_print_options): Update.
12822 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12823 * valprint.h (struct value_print_options) <inspect_it>: Remove
12826 2013-01-04 Tom Tromey <tromey@redhat.com>
12828 * valprint.h (read_string): Add 'extern'.
12830 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12832 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12833 used to decide whether to define darwin_read_dyld_info or not.
12835 2013-01-03 Pierre Muller <muller@sourceware.org>
12837 * main.c (relocate_gdb_directory): Avoid calling stat function
12840 2013-01-03 Yao Qi <yao@codesourcery.com>
12842 * psymtab.c (fixup_psymbol_section): Update declaration.
12843 (fixup_psymbol_section): Remove code returning value.
12845 2013-01-03 Yao Qi <yao@codesourcery.com>
12847 * symtab.h: Remove some out of date comments.
12848 (enum exception_event_kind): Move it ...
12849 * breakpoint.c: ... here.
12851 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12854 * darwin-nat.c (darwin_read_dyld_info): Only build if
12855 TASK_DYLD_INFO_COUNT is defined.
12856 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12857 TASK_DYLD_INFO_COUNT is defined.
12859 2013-01-02 Tom Tromey <tromey@redhat.com>
12861 * symfile.h (struct ecoff_debug_hack): Remove.
12862 * objfiles.c: Don't include mdebugread.h.
12864 2013-01-02 Tom Tromey <tromey@redhat.com>
12866 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12867 * configure.ac: Check for Mach-O support in BFD. Update
12869 * configure: Rebuild.
12871 2013-01-02 Tom Tromey <tromey@redhat.com>
12873 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12874 * configure.ac: Use GDB_AC_CHECK_BFD.
12875 * configure: Rebuild.
12877 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12879 * MAINTAINERS: Update my email.
12881 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12883 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12885 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12887 * rs6000-nat.c (bss_data_overlap): New function.
12888 (vmap_symtab): Use it to adjust the .bss section's offset.
12890 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12892 Update year range in copyright notice of all files.
12894 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12896 * top.c (print_gdb_version): Update copyright year.
12898 For older changes see ChangeLog-2012.
12904 version-control: never