1 2013-12-03 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
4 when parse_exp_1 threw an error. Add comment.
6 2013-12-03 Joel Brobecker <brobecker@adacore.com>
8 * NEWS: Mention "-list-features" in the entry documenting
9 the support for the "--language" option.
11 2013-12-03 Tom Tromey <tromey@redhat.com>
12 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Doug Evans <dje@google.com>
14 Samuel Bronson <naesten@gmail.com>
16 Bring back gdb-add-index as a contrib script.
17 * contrib/gdb-add-index.sh: New file.
18 * NEWS: Note the addition.
20 2013-12-03 Samuel Bronson <naesten@gmail.com>
22 * MAINTAINERS (Write After Approval): Add myself to the list.
24 2013-12-03 Joel Brobecker <brobecker@adacore.com>
26 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
28 2013-12-03 Joel Brobecker <brobecker@adacore.com>
30 * mi/mi-main.c: Remove trailing spaces throughout.
32 2013-12-03 Pedro Alves <palves@redhat.com>
33 Joel Brobecker <brobecker@adacore.com>
35 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
36 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
37 of a regular error when the GDB/MI command does not exist.
38 * mi/mi-main.c (mi_cmd_list_features): Add
39 "undefined-command-error-code".
40 (mi_print_exception): Print an "undefined-command"
41 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
42 * NEWS: Add entry documenting the new "code" variable in
43 "^error" result records.
45 2013-12-03 Joel Brobecker <brobecker@adacore.com>
47 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
48 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
49 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
50 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
51 field to output of "-list-features".
53 * NEWS: Add entry for new -info-gdb-mi-command.
55 2013-12-02 Doug Evans <dje@google.com>
56 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * objfiles.c (allocate_objfile): Save original_name as an absolute
60 * objfiles.h (struct objfile): Expand comment on original_name.
61 * source.c (openp): Call gdb_abspath.
62 * utils.c (gdb_abspath): New function.
63 * utils.h (gdb_abspath): Declare.
65 2013-12-02 Pedro Alves <palves@redhat.com>
67 * dcache.c (dcache_read_line): Use target_read_raw_memory.
68 * target.c (target_read_raw_memory): New function.
69 (target_read_stack, target_write_memory, target_write_raw_memory):
71 (target_read_code): Add comment.
72 * target.h (target_read_raw_memory): Declare.
74 2013-12-02 Pedro Alves <palves@redhat.com>
76 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
79 2013-12-02 Pedro Alves <pedro@codesourcery.com>
80 Maciej W. Rozycki <macro@codesourcery.com>
82 * remote.c (putpkt_for_catch_errors): Remove function.
83 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
86 2013-12-02 Pedro Alves <palves@redhat.com>
89 * remote-notif.c (handle_notification): Return early if no
90 notification is found.
92 2013-12-02 Joel Brobecker <brobecker@adacore.com>
94 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
97 2013-12-02 Joel Brobecker <brobecker@adacore.com>
99 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
101 2013-12-02 Joel Brobecker <brobecker@adacore.com>
103 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
104 * ctf.c (ctf_start): Remove obsolete comment.
106 2013-12-02 Joel Brobecker <brobecker@adacore.com>
108 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
110 2013-11-30 Doug Evans <xdje42@gmail.com>
112 * auto-load.h (script_language): New members name, auto_load_enabled.
113 Add missing comments on struct members.
114 (auto_load_objfile_script): Delete.
115 * auto-load.c: #include "cli/cli-cmds.h".
116 (auto_load_gdb_scripts_enabled): New function.
117 (script_language_gdb): Update, add new members.
118 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
119 and call to maybe_add_script moved to caller.
120 (auto_load_objfile_script_1): Auto-load safe-checking and
121 call to maybe_add_script moved here.
122 (auto_load_objfile_script): Make static. Early exit if support for
123 scripting language hasn't been compiled in, or auto-loading has been
125 (source_section_scripts): Argument "source_name" renamed to
126 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
127 with section_name. Skip loading script if support for scripting
128 language hasn't been compiled in, or auto-loading has been disabled.
129 Call language->source_script_for_objfile instead of calling
130 source_python_script_for_objfile directly.
131 (load_auto_scripts_for_objfile): Update.
132 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
133 (gdbpy_load_auto_script_for_objfile): Delete.
134 (auto_load_python_scripts_enabled): New function.
135 (script_language_python): Update, add new members.
136 (gdbpy_script_language_defn): New function.
137 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
138 (gdbpy_script_language_defn): Declare.
140 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
141 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
142 (source_section_scripts): Moved here from py-auto-load.c.
143 (auto_load_section_scripts): Ditto.
144 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
145 auto-load.c, renamed AUTO_SECTION_NAME.
146 (source_section_scripts, auto_load_section_scripts): Moved to
149 2013-11-30 Yao Qi <yao@codesourcery.com>
151 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
153 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
155 * gdbarch.sh: Remove include of "gdb_string.h", replace by
158 2013-11-29 Doug Evans <xdje42@gmail.com>
160 * python/py-auto-load.c (source_section_scripts): Move comment to
161 more relevant location.
164 * python/py-breakpoint.c: Remove trailing whitespace.
165 * python/py-cmd.c: Ditto.
166 * python/py-evts.c: Ditto.
167 * python/py-finishbreakpoint.c: Ditto.
168 * python/py-frame.c: Ditto.
169 * python/py-function.c: Ditto.
170 * python/py-inferior.c: Ditto.
171 * python/py-infthread.c: Ditto.
172 * python/py-param.c: Ditto.
173 * python/py-prettyprint.c: Ditto.
174 * python/py-symbol.c: Ditto.
175 * python/py-type.c: Ditto.
176 * python/py-utils.c: Ditto.
177 * python/py-value.c: Ditto.
178 * python/python-internal.h: Ditto.
179 * python/python.c: Ditto.
181 2013-11-29 Pedro Alves <palves@redhat.com>
183 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
185 2013-11-29 Pedro Alves <palves@redhat.com>
187 * breakpoint.c (build_target_condition_list): Release previous
189 (build_target_command_list): Release previous commands.
190 (bp_location_dtor): Release target conditions and commands.
191 * remote.c (remote_add_target_side_condition): Don't release
193 (remote_add_target_side_commands): Don't release commands.
195 2013-11-29 Yao Qi <yao@codesourcery.com>
196 Pedro Alves <palves@redhat.com>
198 * dcache.c (dcache_read_line): Use current_target.beneath
199 instead of ¤t_target.
200 * target.c (memory_xfer_partial_1): Factor code out to ...
201 (raw_memory_xfer_partial): ... it. New function.
202 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
203 is TARGET_OBJECT_RAW_MEMORY.
205 2013-11-28 Doug Evans <xdje42@gmail.com>
207 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
208 breakpoint_object. All uses updated.
209 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
210 breakpoint_object. All uses updated.
211 * python.c (*): All uses of breakpoint_object updated.
212 * python.h (*): All uses of breakpoint_object updated.
213 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
214 * python/py-finishbreakpoint.c (*): Ditto.
216 2013-11-28 Doug Evans <xdje42@gmail.com>
218 * configure.ac: Add comments delineating libpython and libmcheck.
219 * configure: Regenerate.
221 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
222 Pedro Alves <palves@redhat.com>
224 * valprint.c (value_check_printable): If the value is entirely
225 unavailable, print a single "<unavailable>" instead of printing
228 2013-11-28 Pedro Alves <palves@redhat.com>
230 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
231 Add "set debug frame" output.
232 (frame_stop_reason_symbol_string): New function.
234 2013-11-28 Pedro Alves <palves@redhat.com>
236 * frame-unwind.c (default_frame_unwind_stop_reason): Return
237 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
238 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
240 2013-11-28 Pedro Alves <palves@redhat.com>
242 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
243 set the unwind stop reason to UNWIND_OUTERMOST, not
244 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
246 2013-11-28 Pedro Alves <palves@redhat.com>
248 * frame.c (frame_unwind_register): Say the register was "not
249 saved" instead of "optimized out".
251 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
254 * configure: Rebuild.
255 * configure.ac: Tighten cygwin detection check.
257 2013-11-27 Pedro Alves <palves@redhat.com>
259 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
260 register in the previous frame's arch.
262 2013-11-27 Pedro Alves <palves@redhat.com>
264 * frame-unwind.c (frame_unwind_got_optimized): Return
265 an lval_register value instead of a not_lval value.
267 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
269 * frame.c: Include "valprint.h".
270 (frame_unwind_register_value): Use value_optimized_out.
271 * value.c (value_fetch_lazy): Likewise.
273 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
275 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
277 2013-11-26 Tom Tromey <tromey@redhat.com>
279 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
282 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
284 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
285 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
286 (HAS_MPX): New macro.
287 (HAS_AVX): New macro.
288 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
290 2013-11-25 Keith Seitz <keiths@redhat.com>
293 * c-exp.y (classify_inner_name): If no matching symbol was
294 found, try looking up the token as a base class.
295 Likewise if a constructor was found.
296 * cp-namespace.c (find_type_baseclass_by_name): New function.
297 * cp-support.h (find_type_baseclass_by_name): Declare.
298 * valops.c (value_struct_elt_for_reference): If we get
299 a non-static field, try to get a value based on the
300 current instance, if any.
302 2013-11-24 Yao Qi <yao@codesourcery.com>
304 * disasm.c (dis_asm_read_memory): Call target_read_code
305 instead of target_read_memory.
307 2013-11-24 Yao Qi <yao@codesourcery.com>
309 * NEWS: Add note on new "set code-cache" option.
310 * target-dcache.c (code_cache_enabled_1): New variable.
311 (code_cache_enabled): New variable.
312 (show_code_cache, set_code_cache): New function.
313 (code_cache_enabled_p): New function.
314 (_initialize_target_dcache): Register command.
315 * target-dcache.h (code_cache_enabled_p): Declare.
316 * target.c (memory_xfer_partial_1):Handle
317 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
318 (target_read_code): New function.
319 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
321 (target_read_code): Declare.
323 2013-11-24 Yao Qi <yao@codesourcery.com>
325 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
326 (stack_cache_enabled_1): ... this. New variable.
327 (stack_cache_enabled_p): Rename to ...
328 (stack_cache_enabled): ... this. New variable.
329 (set_stack_cache_enabled_p): Rename to ...
330 (set_stack_cache): ... this. Update caller.
331 (show_stack_cache_enabled_p): Rename to ...
332 (show_stack_cache): ... this. Update caller.
333 (stack_cache_enabled): Rename to ...
334 (stack_cache_enabled_p): ... this. Update caller.
335 (_initialize_target_dcache): Replace "data cache" with
336 "target memory cache".
337 * target-dcache.h (stack_cache_enabled): Remove declaration.
338 (stack_cache_enabled_p): Add declaration.
340 2013-11-23 Doug Evans <xdje42@gmail.com>
342 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
345 2013-11-23 Doug Evans <xdje42@gmail.com>
347 * python/py-frame.c (frapy_block): Fix error message text.
349 2013-11-23 Doug Evans <xdje42@gmail.com>
351 * cli/cli-script.c (multi_line_command_p): New function.
352 (recurse_read_control_structure, read_command_lines_1): Call it.
353 (execute_control_command): Consistently have a blank line between
356 2013-11-22 Sterling Augustine <saugustine@google.com>
359 * valprint.c (read_string): Set new variable fetchlen based on
360 fetchlimit and size. Use it in call to partial_memory_read.
363 2013-11-22 Tom Tromey <tromey@redhat.com>
366 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
367 the return address column is unspecified.
369 2013-11-22 Tom Tromey <tromey@redhat.com>
370 Pedro Alves <palves@redhat.com>
373 * value.c (value_fetch_lazy): Internal error if
374 get_frame_register_value returns the same register.
376 2013-11-22 Pedro Alves <palves@redhat.com>
377 Tom Tromey <tromey@redhat.com>
379 * frame.c (frame_stash_add): Now returns whether a frame with the
380 same ID was already known.
381 (compute_frame_id): New function, factored out from get_frame_id.
382 (get_frame_id): No longer lazilly compute the frame id here.
383 (get_prev_frame_if_no_cycle): New function. Detects wider stack
385 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
386 and checking for stack cycles here.
388 2013-11-22 Pedro Alves <palves@redhat.com>
391 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
392 this frame and the new previous frame, not between this frame and
395 2013-11-22 Pedro Alves <palves@redhat.com>
398 * dwarf2-frame.c (struct dwarf2_frame_cache)
399 <checked_tailcall_bottom, entry_cfa_sp_offset,
400 entry_cfa_sp_offset_p>: New fields.
401 (dwarf2_frame_cache): Adjust to use the new cache fields instead
402 of locals. Don't call dwarf2_tailcall_sniffer_first here.
403 (dwarf2_frame_prev_register): Call it here, but only once.
405 2013-11-21 Doug Evans <xdje42@gmail.com>
407 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
408 (type_equality_entry): Move here from python/py-type.c.
409 (type_equality_entry_d): Ditto.
410 (compare_maybe_null_strings, check_types_equal): Ditto.
411 (check_types_worklist, types_deeply_equal): Ditto.
412 * gdbtypes.h (types_deeply_equal): Declare.
413 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
414 (typy_richcompare): Update.
416 2013-11-20 Joel Brobecker <brobecker@adacore.com>
418 * python/py-value.c (is_intlike): Delete.
419 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
420 by use of is_integral_type.
421 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
422 by use of is_integral_type and check for TYPE_CODE_PTR.
424 2013-11-20 Tom Tromey <tromey@redhat.com>
426 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
428 * gnulib/aclocal.m4: Update.
429 * gnulib/config.in: Update.
430 * gnulib/configure: Update.
431 * gnulib/import/Makefile.am: Update.
432 * gnulib/import/Makefile.in: Update.
433 * gnulib/import/errno.in.h: Remove.
434 * gnulib/import/intprops.h: Remove.
435 * gnulib/import/m4/errno_h.m4: Remove.
436 * gnulib/import/m4/gnulib-cache.m4: Update.
437 * gnulib/import/m4/gnulib-comp.m4: Update.
438 * gnulib/import/m4/strerror.m4: Remove.
439 * gnulib/import/m4/sys_socket_h.m4: Remove.
440 * gnulib/import/strerror-override.c: Remove.
441 * gnulib/import/strerror-override.h: Remove.
442 * gnulib/import/strerror.c: Remove.
443 * gnulib/update-gnulib.sh: Update.
445 2013-11-20 Yao Qi <yao@codesourcery.com>
447 * target-dcache.c (target_dcache_get_or_init): Call
448 set_address_space_data if 'dcache' is NULL.
450 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
452 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
454 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
456 * python/lib/gdb/command/bound_register.py: New file.
457 * data-directory/Makefile.in: Copy bond_register.py to the right path
458 to be initialized at gdb startup.
460 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
462 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
464 (amd64_linux_read_description): Add initialization for MPX and
466 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
467 (amd64_linux_gregset_reg_offset): Add MPX registers.
468 (amd64_linux_core_read_description): Add initialization for MPX
470 (_initialize_amd64_linux_tdep): Initialize MPX targets.
471 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
472 register on the list.
473 (tdesc_amd64_mpx_linux) Add new target for MPX.
474 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
475 (amd64_mpx_names): MPX register names.
476 (amd64_init_abi): Add MPX register while initializing the ABI.
477 (_initialize_amd64_tdep): Initialize MPX targets.
478 * amd64-tdep.h (amd64_regnum): Add MPX registers.
479 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
481 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
483 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
484 registers on the range of registers to be read from
486 (i386_linux_read_description): Add case for MPX.
487 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
488 (i386_linux_gregset_reg_offset): Add MPX registers.
489 (i386_linux_core_read_description): Initialize also MPX.
490 (_initialize_i386_linux_tdep): Add mpx initialization.
491 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
493 (i386_regnum): Add MPX registers.
494 (I386_MPX_NUM_REGS): New macro.
495 (i386_bnd_regnum_p): New function.
496 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
497 number of registers to be the number of BNDSTATUS.
498 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
499 * i386-tdep.c: Include features/i386/i386-mpx.c.
500 (i386_mpx_names): Add MPX register names array.
501 (i386_bnd_names): Add bnd pseudo register names array.
502 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
504 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
505 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
507 (i386_bnd_type): New function.
508 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
510 (i386_pseudo_register_read_into_value): Add bnd case.
511 (i386_pseudo_register_write): Add bnd pseudo registers.
512 (i386_register_reggroup_p): Add MPX register to the group all.
513 (i386_validate_tdesc_p): Add MPX to the target description
515 (i386_pseudo_register_name): Add bnd pseudo registers.
516 (i386_gdbarch_init): Add MPX for architecture initialization.
517 (_initia_initialize_i386_tdep): Add mpx initialization.
518 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
520 (XSAVE_MPX_ADDR): New macro.
521 (i387_supply_xsave): Add MPX case.
522 (i387_collect_xsave): Add MPX case.
523 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
524 (I387_BNDCFGU_REGNUM): New macro.
525 (I387_NUM_MPX_REGS): New macro.
526 (I387_NUM_BND_REGS): New macro.
527 (I387_NUM_MPX_CTRL_REGS): New macro.
528 (I387_MPXEND_REGNUM): New macro.
529 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
530 (I386_XSTATE_BNDCFG): Likewise.
531 (I386_XSTATE_MPX_MASK): Likewise.
532 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
533 (I386_XSTATE_BNDREGS_SIZE): New macro.
534 (I386_XSTATE_BNDCFG_SIZE): Likewise.
535 (I386_XSTATE_SIZE): Adapt for MPX.
536 (I386_XSTATE_MAX_SIZE): Likewise.
538 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
540 * features/i386/Makefile: Adapts for using MPX registers.
541 * features/i386/32bit-mpx.xml: New file.
542 * features/i386/64bit-mpx.xml: Likewise.
543 * features/i386/amd64-mpx-linux.c: Likewise.
544 * features/i386/amd64-mpx-linux.xml: Likewise.
545 * features/i386/amd64-mpx.c: Likewise.
546 * features/i386/amd64-mpx.xml: Likewise.
547 * features/i386/i386-mpx-linux.c: Likewise.
548 * features/i386/i386-mpx-linux.xml: Likewise.
549 * features/i386/i386-mpx.c: Likewise.
550 * features/i386/i386-mpx.xml: Likewise.
551 * regformats/i386/amd64-mpx-linux.dat: New file.
552 * regformats/i386/amd64-mpx.dat: Likewise.
553 * regformats/i386/i386-mpx-linux.dat: Likewise.
554 * regformats/i386/i386-mpx.dat: Likewise.
556 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
558 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
559 Modified logic of creating a bitfield to be in sync with
562 2013-11-20 Will Newton <will.newton@linaro.org>
564 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
567 2013-11-20 Yao Qi <yao@codesourcery.com>
569 * progspace.h (struct address_space_data): Declare.
570 * target-dcache.c: Include "progspace.h".
571 (target_dache): Remove.
572 (target_dcache_aspace_key): New.
573 (target_dcache_cleanup): New function.
574 (target_dcache_init_p): Get data through
575 target_dcache_aspace_key.
576 (target_dcache_invalidate): Likewise.
577 (target_dcache_get): Likewise.
578 (target_dcache_get_or_init): Likewise.
579 (_initialize_target_dcache): Initialize
580 target_dcache_aspace_key.
582 2013-11-20 Yao Qi <yao@codesourcery.com>
584 * progspace.c (struct address_space): Update comments.
585 <REGISTRY_FIELDS>: New fields.
586 DEFINE_REGISTRY for address_space.
587 (new_address_space): Call address_space_alloc_data.
588 (free_address_space): Call address_space_free_data.
589 * progspace.h: Use DECLARE_REGISTRY.
591 2013-11-20 Yao Qi <yao@codesourcery.com>
593 * Makefile.in (SFILES):Add target-dcache.c.
594 (HFILES_NO_SRCDIR): Add target-dcache.h.
595 (COMMON_OBS): Add target-dcache.o.
596 * dcache.c: Remove inclusion to "target.h". Include
598 * memattr.c: Include "target-dcache.h".
600 * tracepoint.c: Likewise.
601 * target.c: (stack_cache_enabled_p_1): Move to
603 (stack_cache_enabled_p): Likewise.
604 (set_stack_cache_enabled_p): Likewise.
605 (show_stack_cache_enabled_p): Likewise.
606 (target_dcache, target_dcache_init_p): Likewise.
607 (target_dcache_invalidate): Likewise.
608 (target_dcache_get, target_dcache_get_or_init): Likewise.
609 (memory_xfer_partial_1): Call function stack_cache_enabled.
610 (initialize_target): Move code to target-dcache.c.
611 * target.h (target_dcache_invalidate): Move to
613 (target_dcache_get): Likewise.
614 * target-dcache.c: New.
615 * target-dcache.h: New.
617 2013-11-20 Yao Qi <yao@codesourcery.com>
619 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
622 2013-11-20 Yao Qi <yao@codesourcery.com>
624 * dcache.c (last_cache): Remove.
625 (dcache_free, dcache_init): Update.
627 (dcache_print_line): Add parameter 'dcache'. Replace
628 'target_dcache' with 'dcache'.
629 (dcache_info): Move code to dcache_info_1. Call
631 (dcache_info_1): New function.
632 (set_dcache_size): Call target_dcache_invalidate.
633 (set_dcache_line_size): Call target_dcache_invalidate.
634 * target.c (target_dcache_init_p): New function.
635 (target_dcache_invalidate): Check target_dcache_init_p first.
636 (target_dcache_get, target_dcache_get_or_init): New function.
637 (memory_xfer_partial_1): Adjust.
638 (initialize_target): Don't initialize 'target_dcache'.
639 * target.h (struct dcache_struct): Declare.
640 (target_dcache_get): Declare.
642 2013-11-19 Yao Qi <yao@codesourcery.com>
644 * varobj.c (varobj_get_type): Fix typo.
646 2013-11-19 Joel Brobecker <brobecker@adacore.com>
648 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
650 2013-11-19 Joel Brobecker <brobecker@adacore.com>
652 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
655 2013-11-18 Tom Tromey <tromey@redhat.com>
657 * common/gdb_stat.h: Remove.
658 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
659 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
660 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
661 * corefile.c: Use sys/stat.h, not gdb_stat.h.
662 * ctf.c: Use sys/stat.h, not gdb_stat.h.
663 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
664 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
665 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
666 * exec.c: Use sys/stat.h, not gdb_stat.h.
667 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
668 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
669 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
670 * jit.c: Use sys/stat.h, not gdb_stat.h.
671 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
672 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
673 * main.c: Use sys/stat.h, not gdb_stat.h.
674 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
675 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
676 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
677 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
678 * procfs.c: Use sys/stat.h, not gdb_stat.h.
679 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
680 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
681 * remote.c: Use sys/stat.h, not gdb_stat.h.
682 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
683 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
684 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
685 * source.c: Use sys/stat.h, not gdb_stat.h.
686 * symfile.c: Use sys/stat.h, not gdb_stat.h.
687 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
688 * symtab.c: Use sys/stat.h, not gdb_stat.h.
689 * top.c: Use sys/stat.h, not gdb_stat.h.
690 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
692 2013-11-18 Tom Tromey <tromey@redhat.com>
694 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
696 * gnulib/aclocal.m4: Update.
697 * gnulib/config.in: Update.
698 * gnulib/configure: Update.
699 * gnulib/import/Makefile.am: Update.
700 * gnulib/import/Makefile.in: Update.
701 * gnulib/import/m4/gnulib-cache.m4: Update.
702 * gnulib/import/m4/gnulib-comp.m4: Update.
703 * gnulib/import/m4/sys_stat_h.m4: New.
704 * gnulib/import/m4/time_h.m4: New.
705 * gnulib/import/sys_stat.in.h: New.
706 * gnulib/import/time.in.h: New.
708 2013-11-18 Tom Tromey <tromey@redhat.com>
710 * configure: Rebuild.
711 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
713 2013-11-18 Tom Tromey <tromey@redhat.com>
715 * configure: Rebuild.
716 * configure.ac: Don't check for unistd.h.
718 2013-11-18 Tom Tromey <tromey@redhat.com>
720 * configure: Rebuild.
721 * configure.ac: Don't check for stdlib.h
722 * defs.h: Include stdlib.h unconditionally.
724 2013-11-18 Tom Tromey <tromey@redhat.com>
726 * config.in: Rebuild.
727 * configure: Rebuild.
728 * configure.ac: Don't check for stddef.h.
729 * defs.h: Unconditionally include stddef.h. Remove duplicate
732 2013-11-18 Tom Tromey <tromey@redhat.com>
734 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
735 * common/gdb_dirent.h: Remove.
736 * common/filestuff.c: Use dirent.h.
737 * common/linux-osdata.c: Use dirent.h.
739 * config.in: Rebuild.
740 * configure: Rebuild.
741 * configure.ac: Don't use AC_HEADER_DIRENT.
742 * linux-fork.c: Use dirent.h
743 * linux-nat.c: Use dirent.h.
744 * nto-procfs.c: Use dirent.h.
745 * procfs.c: Use dirent.h.
747 2013-11-18 Tom Tromey <tromey@redhat.com>
749 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
750 * gnulib/aclocal.m4: Update.
751 * gnulib/config.in: Update.
752 * gnulib/configure: Update.
753 * gnulib/import/Makefile.am: Update.
754 * gnulib/import/Makefile.in: Update.
755 * gnulib/import/dirent.in.h: New.
756 * gnulib/import/m4/dirent_h.m4: New.
757 * gnulib/import/m4/gnulib-cache.m4: Update.
758 * gnulib/import/m4/gnulib-comp.m4: Update.
760 2013-11-18 Tom Tromey <tromey@redhat.com>
762 * configure: Rebuild.
763 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
766 2013-11-18 Tom Tromey <tromey@redhat.com>
768 * common/gdb_string.h: Remove.
769 * aarch64-tdep.c: Use string.h, not gdb_string.h.
770 * ada-exp.y: Use string.h, not gdb_string.h.
771 * ada-lang.c: Use string.h, not gdb_string.h.
772 * ada-lex.l: Use string.h, not gdb_string.h.
773 * ada-typeprint.c: Use string.h, not gdb_string.h.
774 * ada-valprint.c: Use string.h, not gdb_string.h.
775 * aix-thread.c: Use string.h, not gdb_string.h.
776 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
777 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
778 * alpha-nat.c: Use string.h, not gdb_string.h.
779 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
780 * alpha-tdep.c: Use string.h, not gdb_string.h.
781 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
782 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
783 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
784 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
785 * amd64-nat.c: Use string.h, not gdb_string.h.
786 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
787 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
788 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
789 * arch-utils.c: Use string.h, not gdb_string.h.
790 * arm-linux-nat.c: Use string.h, not gdb_string.h.
791 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
792 * arm-tdep.c: Use string.h, not gdb_string.h.
793 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
794 * armbsd-tdep.c: Use string.h, not gdb_string.h.
795 * armnbsd-nat.c: Use string.h, not gdb_string.h.
796 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
797 * armobsd-tdep.c: Use string.h, not gdb_string.h.
798 * avr-tdep.c: Use string.h, not gdb_string.h.
799 * ax-gdb.c: Use string.h, not gdb_string.h.
800 * ax-general.c: Use string.h, not gdb_string.h.
801 * bcache.c: Use string.h, not gdb_string.h.
802 * bfin-tdep.c: Use string.h, not gdb_string.h.
803 * breakpoint.c: Use string.h, not gdb_string.h.
804 * build-id.c: Use string.h, not gdb_string.h.
805 * buildsym.c: Use string.h, not gdb_string.h.
806 * c-exp.y: Use string.h, not gdb_string.h.
807 * c-lang.c: Use string.h, not gdb_string.h.
808 * c-typeprint.c: Use string.h, not gdb_string.h.
809 * c-valprint.c: Use string.h, not gdb_string.h.
810 * charset.c: Use string.h, not gdb_string.h.
811 * cli-out.c: Use string.h, not gdb_string.h.
812 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
813 * cli/cli-decode.c: Use string.h, not gdb_string.h.
814 * cli/cli-dump.c: Use string.h, not gdb_string.h.
815 * cli/cli-interp.c: Use string.h, not gdb_string.h.
816 * cli/cli-logging.c: Use string.h, not gdb_string.h.
817 * cli/cli-script.c: Use string.h, not gdb_string.h.
818 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
819 * cli/cli-utils.c: Use string.h, not gdb_string.h.
820 * coffread.c: Use string.h, not gdb_string.h.
821 * common/common-utils.c: Use string.h, not gdb_string.h.
822 * common/filestuff.c: Use string.h, not gdb_string.h.
823 * common/linux-procfs.c: Use string.h, not gdb_string.h.
824 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
825 * common/signals.c: Use string.h, not gdb_string.h.
826 * common/vec.h: Use string.h, not gdb_string.h.
827 * core-regset.c: Use string.h, not gdb_string.h.
828 * corefile.c: Use string.h, not gdb_string.h.
829 * corelow.c: Use string.h, not gdb_string.h.
830 * cp-abi.c: Use string.h, not gdb_string.h.
831 * cp-support.c: Use string.h, not gdb_string.h.
832 * cp-valprint.c: Use string.h, not gdb_string.h.
833 * cris-tdep.c: Use string.h, not gdb_string.h.
834 * d-lang.c: Use string.h, not gdb_string.h.
835 * dbxread.c: Use string.h, not gdb_string.h.
836 * dcache.c: Use string.h, not gdb_string.h.
837 * demangle.c: Use string.h, not gdb_string.h.
838 * dicos-tdep.c: Use string.h, not gdb_string.h.
839 * disasm.c: Use string.h, not gdb_string.h.
840 * doublest.c: Use string.h, not gdb_string.h.
841 * dsrec.c: Use string.h, not gdb_string.h.
842 * dummy-frame.c: Use string.h, not gdb_string.h.
843 * dwarf2-frame.c: Use string.h, not gdb_string.h.
844 * dwarf2loc.c: Use string.h, not gdb_string.h.
845 * dwarf2read.c: Use string.h, not gdb_string.h.
846 * elfread.c: Use string.h, not gdb_string.h.
847 * environ.c: Use string.h, not gdb_string.h.
848 * eval.c: Use string.h, not gdb_string.h.
849 * event-loop.c: Use string.h, not gdb_string.h.
850 * exceptions.c: Use string.h, not gdb_string.h.
851 * exec.c: Use string.h, not gdb_string.h.
852 * expprint.c: Use string.h, not gdb_string.h.
853 * f-exp.y: Use string.h, not gdb_string.h.
854 * f-lang.c: Use string.h, not gdb_string.h.
855 * f-typeprint.c: Use string.h, not gdb_string.h.
856 * f-valprint.c: Use string.h, not gdb_string.h.
857 * fbsd-nat.c: Use string.h, not gdb_string.h.
858 * findcmd.c: Use string.h, not gdb_string.h.
859 * findvar.c: Use string.h, not gdb_string.h.
860 * fork-child.c: Use string.h, not gdb_string.h.
861 * frame.c: Use string.h, not gdb_string.h.
862 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
863 * frv-tdep.c: Use string.h, not gdb_string.h.
864 * gdb.c: Use string.h, not gdb_string.h.
865 * gdb_bfd.c: Use string.h, not gdb_string.h.
866 * gdbarch.c: Use string.h, not gdb_string.h.
867 * gdbtypes.c: Use string.h, not gdb_string.h.
868 * gnu-nat.c: Use string.h, not gdb_string.h.
869 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
870 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
871 * go-exp.y: Use string.h, not gdb_string.h.
872 * go-lang.c: Use string.h, not gdb_string.h.
873 * go32-nat.c: Use string.h, not gdb_string.h.
874 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
875 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
876 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
877 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
878 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
879 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
880 * i386-linux-nat.c: Use string.h, not gdb_string.h.
881 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
882 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
883 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
884 * i386-tdep.c: Use string.h, not gdb_string.h.
885 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
886 * i386gnu-nat.c: Use string.h, not gdb_string.h.
887 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
888 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
889 * i387-tdep.c: Use string.h, not gdb_string.h.
890 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
891 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
892 * inf-child.c: Use string.h, not gdb_string.h.
893 * inf-ptrace.c: Use string.h, not gdb_string.h.
894 * inf-ttrace.c: Use string.h, not gdb_string.h.
895 * infcall.c: Use string.h, not gdb_string.h.
896 * infcmd.c: Use string.h, not gdb_string.h.
897 * inflow.c: Use string.h, not gdb_string.h.
898 * infrun.c: Use string.h, not gdb_string.h.
899 * interps.c: Use string.h, not gdb_string.h.
900 * iq2000-tdep.c: Use string.h, not gdb_string.h.
901 * irix5-nat.c: Use string.h, not gdb_string.h.
902 * jv-exp.y: Use string.h, not gdb_string.h.
903 * jv-lang.c: Use string.h, not gdb_string.h.
904 * jv-typeprint.c: Use string.h, not gdb_string.h.
905 * jv-valprint.c: Use string.h, not gdb_string.h.
906 * language.c: Use string.h, not gdb_string.h.
907 * linux-fork.c: Use string.h, not gdb_string.h.
908 * linux-nat.c: Use string.h, not gdb_string.h.
909 * lm32-tdep.c: Use string.h, not gdb_string.h.
910 * m2-exp.y: Use string.h, not gdb_string.h.
911 * m2-typeprint.c: Use string.h, not gdb_string.h.
912 * m32c-tdep.c: Use string.h, not gdb_string.h.
913 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
914 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
915 * m32r-rom.c: Use string.h, not gdb_string.h.
916 * m32r-tdep.c: Use string.h, not gdb_string.h.
917 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
918 * m68k-tdep.c: Use string.h, not gdb_string.h.
919 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
920 * m68klinux-nat.c: Use string.h, not gdb_string.h.
921 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
922 * m88k-tdep.c: Use string.h, not gdb_string.h.
923 * macrocmd.c: Use string.h, not gdb_string.h.
924 * main.c: Use string.h, not gdb_string.h.
925 * mdebugread.c: Use string.h, not gdb_string.h.
926 * mem-break.c: Use string.h, not gdb_string.h.
927 * memattr.c: Use string.h, not gdb_string.h.
928 * memory-map.c: Use string.h, not gdb_string.h.
929 * mep-tdep.c: Use string.h, not gdb_string.h.
930 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
931 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
932 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
933 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
934 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
935 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
936 * mi/mi-console.c: Use string.h, not gdb_string.h.
937 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
938 * mi/mi-interp.c: Use string.h, not gdb_string.h.
939 * mi/mi-main.c: Use string.h, not gdb_string.h.
940 * mi/mi-parse.c: Use string.h, not gdb_string.h.
941 * microblaze-rom.c: Use string.h, not gdb_string.h.
942 * microblaze-tdep.c: Use string.h, not gdb_string.h.
943 * mingw-hdep.c: Use string.h, not gdb_string.h.
944 * minidebug.c: Use string.h, not gdb_string.h.
945 * minsyms.c: Use string.h, not gdb_string.h.
946 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
947 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
948 * mips-tdep.c: Use string.h, not gdb_string.h.
949 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
950 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
951 * mipsread.c: Use string.h, not gdb_string.h.
952 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
953 * mn10300-tdep.c: Use string.h, not gdb_string.h.
954 * monitor.c: Use string.h, not gdb_string.h.
955 * moxie-tdep.c: Use string.h, not gdb_string.h.
956 * mt-tdep.c: Use string.h, not gdb_string.h.
957 * nbsd-tdep.c: Use string.h, not gdb_string.h.
958 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
959 * nto-procfs.c: Use string.h, not gdb_string.h.
960 * nto-tdep.c: Use string.h, not gdb_string.h.
961 * objc-lang.c: Use string.h, not gdb_string.h.
962 * objfiles.c: Use string.h, not gdb_string.h.
963 * opencl-lang.c: Use string.h, not gdb_string.h.
964 * osabi.c: Use string.h, not gdb_string.h.
965 * osdata.c: Use string.h, not gdb_string.h.
966 * p-exp.y: Use string.h, not gdb_string.h.
967 * p-lang.c: Use string.h, not gdb_string.h.
968 * p-typeprint.c: Use string.h, not gdb_string.h.
969 * parse.c: Use string.h, not gdb_string.h.
970 * posix-hdep.c: Use string.h, not gdb_string.h.
971 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
972 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
973 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
974 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
975 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
976 * printcmd.c: Use string.h, not gdb_string.h.
977 * procfs.c: Use string.h, not gdb_string.h.
978 * prologue-value.c: Use string.h, not gdb_string.h.
979 * python/py-auto-load.c: Use string.h, not gdb_string.h.
980 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
981 * ravenscar-thread.c: Use string.h, not gdb_string.h.
982 * regcache.c: Use string.h, not gdb_string.h.
983 * registry.c: Use string.h, not gdb_string.h.
984 * remote-fileio.c: Use string.h, not gdb_string.h.
985 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
986 * remote-mips.c: Use string.h, not gdb_string.h.
987 * remote-sim.c: Use string.h, not gdb_string.h.
988 * remote.c: Use string.h, not gdb_string.h.
989 * reverse.c: Use string.h, not gdb_string.h.
990 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
991 * ser-base.c: Use string.h, not gdb_string.h.
992 * ser-go32.c: Use string.h, not gdb_string.h.
993 * ser-mingw.c: Use string.h, not gdb_string.h.
994 * ser-pipe.c: Use string.h, not gdb_string.h.
995 * ser-tcp.c: Use string.h, not gdb_string.h.
996 * ser-unix.c: Use string.h, not gdb_string.h.
997 * serial.c: Use string.h, not gdb_string.h.
998 * sh-tdep.c: Use string.h, not gdb_string.h.
999 * sh64-tdep.c: Use string.h, not gdb_string.h.
1000 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1001 * skip.c: Use string.h, not gdb_string.h.
1002 * sol-thread.c: Use string.h, not gdb_string.h.
1003 * solib-dsbt.c: Use string.h, not gdb_string.h.
1004 * solib-frv.c: Use string.h, not gdb_string.h.
1005 * solib-osf.c: Use string.h, not gdb_string.h.
1006 * solib-spu.c: Use string.h, not gdb_string.h.
1007 * solib-target.c: Use string.h, not gdb_string.h.
1008 * solib.c: Use string.h, not gdb_string.h.
1009 * somread.c: Use string.h, not gdb_string.h.
1010 * source.c: Use string.h, not gdb_string.h.
1011 * sparc-nat.c: Use string.h, not gdb_string.h.
1012 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1013 * sparc-tdep.c: Use string.h, not gdb_string.h.
1014 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1015 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1016 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1017 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1018 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1019 * spu-multiarch.c: Use string.h, not gdb_string.h.
1020 * spu-tdep.c: Use string.h, not gdb_string.h.
1021 * stabsread.c: Use string.h, not gdb_string.h.
1022 * stack.c: Use string.h, not gdb_string.h.
1023 * std-regs.c: Use string.h, not gdb_string.h.
1024 * symfile.c: Use string.h, not gdb_string.h.
1025 * symmisc.c: Use string.h, not gdb_string.h.
1026 * symtab.c: Use string.h, not gdb_string.h.
1027 * target.c: Use string.h, not gdb_string.h.
1028 * thread.c: Use string.h, not gdb_string.h.
1029 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1030 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1031 * top.c: Use string.h, not gdb_string.h.
1032 * tracepoint.c: Use string.h, not gdb_string.h.
1033 * tui/tui-command.c: Use string.h, not gdb_string.h.
1034 * tui/tui-data.c: Use string.h, not gdb_string.h.
1035 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1036 * tui/tui-file.c: Use string.h, not gdb_string.h.
1037 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1038 * tui/tui-out.c: Use string.h, not gdb_string.h.
1039 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1040 * tui/tui-source.c: Use string.h, not gdb_string.h.
1041 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1042 * tui/tui-win.c: Use string.h, not gdb_string.h.
1043 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1044 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1045 * typeprint.c: Use string.h, not gdb_string.h.
1046 * ui-file.c: Use string.h, not gdb_string.h.
1047 * ui-out.c: Use string.h, not gdb_string.h.
1048 * user-regs.c: Use string.h, not gdb_string.h.
1049 * utils.c: Use string.h, not gdb_string.h.
1050 * v850-tdep.c: Use string.h, not gdb_string.h.
1051 * valarith.c: Use string.h, not gdb_string.h.
1052 * valops.c: Use string.h, not gdb_string.h.
1053 * valprint.c: Use string.h, not gdb_string.h.
1054 * value.c: Use string.h, not gdb_string.h.
1055 * varobj.c: Use string.h, not gdb_string.h.
1056 * vax-tdep.c: Use string.h, not gdb_string.h.
1057 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1058 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1059 * windows-nat.c: Use string.h, not gdb_string.h.
1060 * xcoffread.c: Use string.h, not gdb_string.h.
1061 * xml-support.c: Use string.h, not gdb_string.h.
1062 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1063 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1065 2013-11-18 Tom Tromey <tromey@redhat.com>
1067 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1069 * gnulib/aclocal.m4: Update.
1070 * gnulib/config.in: Update.
1071 * gnulib/configure: Update.
1072 * gnulib/import/Makefile.am: Update.
1073 * gnulib/import/Makefile.in: Update.
1074 * gnulib/import/errno.in.h: New.
1075 * gnulib/import/intprops.h: New.
1076 * gnulib/import/m4/errno_h.m4: New.
1077 * gnulib/import/m4/gnulib-cache.m4: Update.
1078 * gnulib/import/m4/gnulib-comp.m4: Update.
1079 * gnulib/import/m4/strerror.m4: New.
1080 * gnulib/import/m4/strstr.m4: New.
1081 * gnulib/import/m4/sys_socket_h.m4: New.
1082 * gnulib/import/strerror-override.c: New.
1083 * gnulib/import/strerror-override.h: New.
1084 * gnulib/import/strerror.c: New.
1085 * gnulib/import/strstr.c: New.
1087 2013-11-18 Tom Tromey <tromey@redhat.com>
1089 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1092 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1094 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1095 * sparc-tdep.h: And its prototype.
1097 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1099 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1101 2013-11-18 Pedro Alves <palves@redhat.com>
1103 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1106 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1108 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1109 to -list-features output.
1111 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1113 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1114 <read_addr_from_reg>: Renames "read_reg".
1115 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1117 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1118 Use read_addr_from_reg in place of read_reg.
1119 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1120 in place of read_reg.
1121 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1122 dwarf_expr_read_reg.
1123 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1124 with dwarf_expr_read_addr_from_reg.
1125 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1126 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1127 needs_frame_read_addr_from_reg.
1129 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1133 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1135 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1138 2013-11-15 Tom Tromey <tromey@redhat.com>
1141 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1142 (classify_name): Likewise. Prefer a field of "this" over a
1144 (classify_inner_name, yylex): Update.
1146 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1148 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1149 Extend the documentation a bit.
1150 <get_reg_value>: New field.
1151 * dwarf2loc.c (dwarf_expr_get_reg_value)
1152 (needs_frame_get_reg_value): New functions.
1153 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1155 * dwarf2-frame.c (get_reg_value): New function.
1156 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1157 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1158 Use new callback to compute result_val.
1160 2013-11-15 Alan Modra <amodra@gmail.com>
1162 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1163 (ppc64_desc_entry_point): ..this. Update comments here and at
1165 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1166 ppc64_standard_linkage3): Update comments.
1167 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1168 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1170 (ppc64_standard_linkage4_target): New function.
1171 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1172 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1173 nop match. Fix comment wrap.
1175 2013-11-14 Pedro Alves <palves@redhat.com>
1177 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1178 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1180 2013-11-14 Pedro Alves <palves@redhat.com>
1182 * infrun.c (struct execution_control_state)
1183 <stepped_after_stopped_by_watchpoint>: New field.
1184 (get_inferior_stop_soon): New function.
1185 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1186 moved to struct execution_control_state -- adjust. Use
1187 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1189 (handle_signal_stop): New function, factored out from
1190 handle_inferior_event.
1192 2013-11-14 Pedro Alves <palves@redhat.com>
1194 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1196 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1198 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1199 Adjust to return a boolean.
1200 * breakpoint.h (enum bpstat_signal_value): Delete.
1201 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1202 (bpstat_explains_signal): Likewise.
1203 * infrun.c (handle_inferior_event) <random signal checks>:
1204 bpstat_explains_signal now returns a boolean - adjust. No longer
1205 consider hiding signals.
1207 2013-11-14 Pedro Alves <palves@redhat.com>
1209 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1210 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1211 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1213 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1214 instead of BPSTAT_SIGNAL_HIDE.
1215 * infrun.c (handle_inferior_event): Rework random signal checks.
1217 2013-11-14 Pedro Alves <palves@redhat.com>
1219 * infrun.c (struct execution_control_state): Remove
1220 'random_signal' field.
1221 (handle_syscall_event): Use bpstat_causes_stop instead of
1222 bpstat_explains_signal. Don't set ecs->random_signal.
1223 (handle_inferior_event): New 'random_signal' local.
1224 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1225 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1226 bpstat_explains_signal. Don't set ecs->random_signal.
1227 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1230 2013-11-14 Pedro Alves <palves@redhat.com>
1232 * infrun.c (handle_inferior_event): Move comment from the
1233 function's body to the function's description, adjusted.
1235 2013-11-14 Pedro Alves <palves@redhat.com>
1237 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1238 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1239 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1242 2013-11-14 Tom Tromey <tromey@redhat.com>
1244 * python/py-linetable.c (ltpy_has_line)
1245 (ltpy_get_all_source_lines): Fix loop termination condition.
1247 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1249 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1250 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1251 PARSE->LANGUAGE during command execution, if set.
1252 * mi/mi-parse.c: Add "language.h" #include.
1253 (mi_parse): Add parsing of "--language" command option.
1255 * NEWS: Add entry mentioning the new "--language" command option.
1257 2013-11-14 Pedro Alves <palves@redhat.com>
1258 Joel Brobecker <brobecker@adacore.com>
1260 * cli/cli-utils.h (extract_arg_const): Add declaration.
1261 * cli/cli-utils.c (extract_arg_const): New function.
1262 (extract_arg): Reimplement using extract_arg_const.
1264 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1266 * language.h: Add "symtab.h" #include.
1268 2013-11-13 Doug Evans <xdje42@gmail.com>
1270 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1271 specific breakpoints, don't evaluate breakpoint condition if
1274 2013-11-13 Keith Seitz <keiths@redhat.com>
1278 * cp-support.c (insepct_type): Add support for substituting
1279 namespace aliases, too.
1280 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1281 for DW_TAG_imported_declaration.
1282 (add_partial_symbol): Likewise.
1283 (process_die): Handle namespace aliases with
1284 read_namespace_alias.
1285 (die_needs_namespace): Add DW_TAG_imported_declaration.
1286 (read_namespace_alias): New function.
1287 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1288 (new_symbol_full): Handle DW_TAG_imported_declaration.
1290 2013-11-13 Keith Seitz <keiths@redhat.com>
1292 * p-exp.y (uptok): Make first parameter const.
1293 (yylex): Make `tokstart' and `tokptr' const.
1294 Don't copy the lexer input to a temporary buffer.
1296 Remove const workaround for parse_escape.
1297 Create a temporary buffer for a convenience variable instead
1298 of doing in-place modification of the input.
1299 If a match is found with a different case from the input,
1300 do not change the input at all.
1301 Use `tmp' to construct the resultant stoken instead of
1304 2013-11-13 Doug Evans <xdje42@gmail.com>
1306 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1308 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1310 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1311 entry with "ada-exceptions".
1313 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1315 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1316 after re-initialization of OBJFILE's obstack.
1318 2013-11-12 Doug Evans <xdje42@gmail.com>
1320 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1321 bs->stop != 0 on entry. Update function comment. Simplify early
1322 exit for frame mismatch. Reindent rest of function.
1324 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1326 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1329 2013-11-12 Doug Evans <dje@google.com>
1331 Work around gold/15646.
1332 * dwarf2read.c (read_index_from_section): Update comment.
1333 (struct dw2_symtab_iterator): New member global_seen.
1334 (dw2_symtab_iter_init): Initialize it.
1335 (dw2_symtab_iter_next): Skip duplicate global symbols.
1336 (dw2_expand_symtabs_matching): Ditto.
1338 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1340 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1341 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1343 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1344 (mi_cmd_info_ada_exceptions): New function.
1345 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1347 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1349 * ada-lang.h: #include "vec.h".
1350 (struct ada_exc_info): New.
1351 (ada_exc_info): New typedef.
1352 (DEF_VEC_O(ada_exc_info)): New vector.
1353 (ada_exceptions_list): Add declaration.
1354 * ada-lang.c (ada_is_exception_sym)
1355 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1356 (sort_remove_dups_ada_exceptions_list)
1357 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1358 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1359 (ada_exceptions_list_1, ada_exceptions_list)
1360 (info_exceptions_command): New function.
1361 (_initialize_ada_language): Add "info exception" command.
1363 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1366 * NEWS: Add linetable feature.
1367 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1368 * python/py-linetable.c: New file.
1369 * python/py-symtab.c (stpy_get_linetable): New function.
1370 * python/python-internal.h (symtab_to_linetable_object): Declare.
1371 (gdbpy_initialize_linetable): Ditto.
1372 * python/python.c (_initialize_python): Call
1373 gdbpy_initialize_linetable.
1375 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1377 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1378 the documentation of fields "except_string" and "condition".
1379 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1380 CONDITION on the heap before passing it to
1381 create_ada_exception_catchpoint.
1382 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1385 2013-11-11 Tom Tromey <tromey@redhat.com>
1387 * config.in, configure: Rebuild.
1388 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1390 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1392 * remote-sim.c (gdbsim_detach): Break declaration into
1393 shorter lines. No code change.
1395 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1397 * remote-sim.c (gdbsim_detach): Fix prototype.
1399 2013-11-08 Doug Evans <dje@google.com>
1401 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1402 (create_debug_types_hash_table): Only print debugging messages for
1403 each TU if dwarf2-read >= 2.
1404 (process_queue): Ditto.
1405 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1408 2013-11-08 Tom Tromey <tromey@redhat.com>
1410 * configure: Rebuild.
1411 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1413 2013-11-08 Tom Tromey <tromey@redhat.com>
1415 * configure, config.in: Rebuild.
1416 * configure.ac: Remove unused configury.
1418 2013-11-08 Tom Tromey <tromey@redhat.com>
1420 * m32c-tdep.c: Use gdb_string.h.
1422 2013-11-08 Tom Tromey <tromey@redhat.com>
1424 * configure, config.in: Rebuild.
1425 * configure.ac: Remove all link.h-related checks.
1427 2013-11-08 Tom Tromey <tromey@redhat.com>
1429 * acinclude.m4: Include common.m4.
1430 * common/common.m4: New file.
1431 * configure, config.in: Rebuild.
1432 * configure.ac: Use GDB_AC_COMMON.
1434 2013-11-08 Doug Evans <dje@google.com>
1436 * NEWS: Mention that "set debug symtab-create" now accepts a
1438 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1439 to set the symtab's primary flag.
1440 * jit.c (finalize_symtab): Ditto.
1441 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1442 * symfile.c (allocate_symtab): Only print debugging messages for
1443 symtab_create_debug levels 2 and higher.
1444 * symtab.c (symtab_create_debug): Change type to unsigned int.
1445 (set_symtab_primary): New function.
1446 (_initialize_symtab): Change "set debug symtab-create" to a
1448 * symtab.h (set_symtab_primary): Declare.
1449 (symtab_create_debug): Update decl.
1451 2013-11-08 Tom Tromey <tromey@redhat.com>
1453 * aix-thread.c (aix_thread_detach): Update.
1454 * corelow.c (core_detach): Update.
1455 * darwin-nat.c (darwin_detach): Update.
1456 * dec-thread.c (dec_thread_detach): Update.
1457 * gnu-nat.c (gnu_detach): Update.
1458 * go32-nat.c (go32_detach): Update.
1459 * inf-ptrace.c (inf_ptrace_detach): Update.
1460 * inf-ttrace.c (inf_ttrace_detach): Update.
1461 * linux-fork.c (linux_fork_detach): Update.
1462 * linux-fork.h (linux_fork_detach): Update.
1463 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1464 local for const-correctness.
1465 * linux-thread-db.c (thread_db_detach): Update.
1466 * monitor.c (monitor_detach): Update.
1467 * nto-procfs.c (procfs_detach): Update.
1468 * procfs.c (procfs_detach): Update.
1469 * record.c (record_detach): Update.
1470 * record.h (record_detach): Update.
1471 * remote-m32r-sdi.c (m32r_detach): Update.
1472 * remote-mips.c (mips_detach): Update.
1473 * remote-sim.c (gdbsim_detach): Update.
1474 * remote.c (remote_detach_1, remote_detach)
1475 (extended_remote_detach): Update.
1476 * sol-thread.c (sol_thread_detach): Update.
1477 * target.c (target_detach): Make "args" const.
1478 (init_dummy_target): Update.
1479 * target.h (struct target_ops) <to_detach>: Make argument const.
1480 (target_detach): Likewise.
1481 * windows-nat.c (windows_detach): Update.
1483 2013-11-07 Doug Evans <dje@google.com>
1486 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1487 and align fields for PT_GNU_RELRO segments.
1489 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1492 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1494 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1496 * NEWS: Document Python temporary breakpoint support.
1497 * python/py-breakpoint.c (bppy_get_temporary): New function.
1498 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1499 to temporary if True.
1501 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1503 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1504 removed to allow analyzing unconditional branch instructions
1505 with PC-relative offsets of zero.
1507 2013-11-07 Yao Qi <yao@codesourcery.com>
1509 * mi/mi-cmd-var.c: Include "language.h".
1510 (mi_cmd_var_info_expression): Get language name from
1512 * varobj.c (varobj_language_string): Remove.
1513 (variable_language): Remove declaration.
1514 (languages): Remove.
1515 (varobj_get_language): Change the type of return value.
1516 (variable_language): Remove.
1517 * varobj.h (enum varobj_languages): Remove.
1518 (varobj_language_string): Remove declaration.
1519 (varobj_get_language): Update declaration.
1521 2013-11-07 Yao Qi <yao@codesourcery.com>
1523 * language.h (struct language_defn) <la_natural_name>: New
1525 * ada-lang.c (ada_language_defn): Initialize field
1527 * c-lang.c (c_language_defn): Likewise.
1528 (cplus_language_defn, asm_language_defn): Likewise.
1529 * d-lang.c (d_language_defn): Likewise.
1530 * f-lang.c (f_language_defn): Likewise.
1531 * go-lang.c (go_language_defn): Likewise.
1532 * jv-lang.c (java_language_defn): Likewise.
1533 * language.c (unknown_language_defn ): Likewise.
1534 (auto_language_defn): Likewise.
1535 * m2-lang.c (m2_language_defn): Likewise.
1536 * objc-lang.c (objc_language_defn): Likewise.
1537 * opencl-lang.c (opencl_language_defn): Likewise.
1538 * p-lang.c (pascal_language_defn): Likewise.
1540 2013-11-07 Yao Qi <yao@codesourcery.com>
1542 * language.c (language_str): Return const char *.
1543 (add_language): Add const to 'language_names'
1544 * language.h (struct language_defn) <la_name>: Add const.
1545 (language_str: Update declaration.
1547 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1549 * s390-linux-nat.c (s390_read_description): Consider the TE field
1550 in the HWCAP for determining 'have_regset_tdb'.
1552 2013-11-06 Will Newton <will.newton@linaro.org>
1555 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1556 values. (read_partial_die): Likewise.
1558 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1561 * top.c (command_line_input): Unify interactivity tests to use
1562 input_from_terminal_p.
1563 * event-top.c (command_line_handler): Likewise.
1565 2013-11-06 Yao Qi <yao@codesourcery.com>
1567 * Makefile.in (check-perf): New target.
1569 2013-11-05 Will Newton <will.newton@linaro.org>
1572 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1573 (arm_print_float_info): Likewise.
1575 2013-11-04 Anton Blanchard <anton@samba.org>
1577 * target.c (memory_xfer_partial): Cap write to 4KB.
1579 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1581 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1582 probe scan even when the arch provides no get_longjmp_target.
1584 2013-10-31 Pedro Alves <palves@redhat.com>
1586 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1587 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1588 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1589 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1590 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1591 <bpstat handling>: If the bpstat chain wants the signal to be
1592 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1595 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1597 * breakpoint.c (update_watchpoint): Update error message and add
1598 an additional error message.
1600 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1602 * s390-tdep.h: Rename to...
1603 * s390-linux-tdep.h: ...here.
1604 * s390-tdep.c: Rename to...
1605 * s390-linux-tdep.c: ...here. Adjust #include.
1606 * s390-nat.c: Rename to...
1607 * s390-linux-nat.c: ...here. Adjust #include.
1608 * config/s390/s390.mh: Rename to...
1609 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1611 * configure.host: Reflect host rename "s390" -> "linux".
1612 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1613 * Makefile.in (ALL_TARGET_OBS): Likewise.
1614 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1616 (ALLDEPFILES): Reflect rename of .c files.
1618 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1620 * s390-nat.c: Whitespace cleanup.
1621 * s390-tdep.c: Likewise.
1622 * s390-tdep.h: Remove empty line at end of file.
1624 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1626 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1629 2013-10-29 Tom Tromey <tromey@redhat.com>
1631 * utils.c (reg): Move undefinition...
1632 * gdb_curses.h: ... here. Update comment to mention AIX.
1634 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1636 * exec.h (add_target_sections_of_objfile): New declaration.
1637 * exec.c (add_target_sections_of_objfile): New function.
1638 * symfile.c (add_symbol_file_command): Update current target sections.
1639 (remove_symbol_file_command): New command.
1640 (symfile_free_objfile): New function.
1641 (_initialize_symfile): Register observer for free_objfile events.
1642 * NEWS: Add description of the remove-symbol-file command.
1643 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1644 * objfiles.c (free_objfile): Notify free_objfile.
1645 (is_addr_in_objfile): New function.
1646 * objfiles.h (is_addr_in_objfile): New declaration.
1647 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1648 events instead of solib_unloaded events.
1649 (_initialize_printcmd): Register observer for free_objfile instead
1650 of solib_unloaded notifications.
1651 * solib.c (remove_user_added_objfile): New function.
1652 (_initialize_symfile): Add remove-symbol-file.
1654 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1656 * infcmd.c (default_print_one_register_info): Use val_print to
1657 print all values even optimized out or unavailable ones. Don't
1658 try to print a raw form of optimized out or unavailable values.
1660 2013-10-29 Yao Qi <yao@codesourcery.com>
1662 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1663 parameter 'arg' instead of from program_space_data.
1664 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1665 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1666 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1667 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1668 * inflow.c (inflow_inferior_data_cleanup): Get data from
1669 parameter 'arg' instead of inferior_data.
1670 * registry.h: Add comments.
1672 2013-10-28 Pedro Alves <palves@redhat.com>
1674 * breakpoint.c (watchpoints_triggered)
1675 <!target_stopped_data_address>: Hardcode return 1.
1677 2013-10-28 Pedro Alves <palves@redhat.com>
1679 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1682 2013-10-28 Pedro Alves <palves@redhat.com>
1684 * infrun.c (process_event_stop_test): New function, factored out
1685 from handle_inferior_event.
1686 (handle_inferior_event): 'process_event_stop_test' is now a
1687 function instead of a goto label -- adjust.
1689 2013-10-28 Pedro Alves <palves@redhat.com>
1691 * infrun.c (handle_inferior_event): Move process_event_stop_test
1692 goto label to the else branch of the ecs->random_signal check,
1693 along with FRAME and GDBARCH re-fetching.
1695 2013-10-28 Pedro Alves <palves@redhat.com>
1697 * infrun.c (switch_back_to_stepped_thread): New function, factored
1698 out from handle_inferior_event.
1699 (handle_inferior_event): Adjust to call
1700 switch_back_to_stepped_thread. Call it also at the tail of the
1701 random signal handling, and return, instead of also handling
1702 random signals just before the stepping tests.
1704 2013-10-28 Pedro Alves <palves@redhat.com>
1706 * infrun.c (clear_stop_func): Delete.
1707 (handle_inferior_event): Don't call clear_stop_func and don't
1708 clear 'ecs->random_signal'.
1710 2013-10-27 Yao Qi <yao@codesourcery.com>
1712 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1713 (varobj_create, varobj_get_path_expr): Update.
1714 (varobj_value_has_mutated, varobj_update): Likewise.
1715 (create_child_with_value, new_root_variable): Likewise.
1716 (number_of_children, name_of_variable): Likewise.
1717 (value_of_child, my_value_of_variable): Likewise.
1718 (varobj_value_is_changeable_p): Likewise.
1720 2013-10-25 Yao Qi <yao@codesourcery.com>
1722 * language.h (struct lang_varobj_ops): Declare.
1723 (struct language_defn) <la_varobj_ops>: New field.
1724 * ada-lang.c: Include "varobj.h"
1725 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1727 * c-lang.c: Include "varobj.h"
1728 (c_language_defn): Initialize field 'la_varobj_ops' with
1730 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1732 (asm_language_defn): Initialize field 'la_varobj_ops' with
1734 (minimal_language_defn): Likewise.
1735 * d-lang.c (d_language_defn): Likewise.
1736 * f-lang.c (f_language_defn): Likewise.
1737 * go-lang.c (go_language_defn): Likewise.
1738 * m2-lang.c (m2_language_defn): Likewise.
1739 * objc-lang.c (objc_language_defn): Likewise.
1740 * opencl-lang.c (opencl_language_defn): Likewise.
1741 * p-lang.c (pascal_language_defn): Likewise.
1742 * language.c (unknown_language_defn): Likewise.
1743 (auto_language_defn): Likewise.
1744 (local_language_defn): Likewise.
1745 * jv-lang.c (java_language_defn): Initialize field
1746 'la_varobj_ops' with java_varobj_ops.
1747 * varobj.c (varobj_create): Update.
1748 * varobj.h (default_varobj_ops): Define macro.
1750 2013-10-25 Pedro Alves <palves@redhat.com>
1752 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1754 (cp_print_static_field): If the value is entirely optimized out,
1755 print <optimized out> here.
1756 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1758 * p-valprint.c (pascal_object_print_static_field): If the value is
1759 entirely optimized out, print <optimized out> here.
1760 * valops.c (do_search_struct_field)
1761 (value_struct_elt_for_reference): No longer handle a NULL static
1763 * value.c (value_static_field): Return an optimized out value
1766 2013-10-25 Yao Qi <yao@codesourcery.com>
1768 * remote.c (remote_traceframe_info): Return early if
1769 traceframe is not selected.
1771 2013-10-25 Yao Qi <yao@codesourcery.com>
1773 * tracepoint.c (traceframe_fun): Remove.
1774 (traceframe_sal): Remove.
1775 (set_traceframe_context): Add local variables.
1777 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1779 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1782 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1784 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1785 failure from register information collection.
1787 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1789 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1791 (linux_corefile_thread_callback): Update accordingly.
1792 (linux_make_corefile_notes): Likewise.
1794 2013-10-24 Pedro Alves <palves@redhat.com>
1796 * NEWS (New options): Mention set/show startup-with-shell.
1797 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1799 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1800 startup-with-shell'.
1801 (show_startup_with_shell): New function.
1802 (_initialize_fork_child): Register the set/show startup-with-shell
1804 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1805 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1806 * procfs.c (procfs_init_inferior): Remove comment.
1807 * infcmd.c (startup_with_shell): New global.
1808 * inferior.h (startup_with_shell): Declare global.
1809 (STARTUP_WITH_SHELL): Delete.
1810 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1812 2013-10-23 Pedro Alves <palves@redhat.com>
1814 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1815 * common/signals.c: Include "gdb_assert.h".
1816 (signals): New field 'symbol'.
1817 (SET): Use the 'symbol' parameter.
1818 (gdb_signal_to_symbol_string): New function.
1819 * infrun.c (handle_inferior_event) <random signal>: In debug
1820 output, print the random signal enum as string in addition to its
1822 * target/waitstatus.c (target_waitstatus_to_string): Print the
1823 signal's enum value as string instead of the (POSIX) signal name.
1825 2013-10-23 Gary Benson <gbenson@redhat.com>
1828 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1829 from 32 to 18. Adjusted fscanf format string accordingly.
1830 (Avoids leaving cmd unterminated.)
1831 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1832 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1833 that local_address and remote_address will not overflow.
1834 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1835 leaving dependencies unterminated. Parse size as "%u" to match
1838 2013-10-22 Pedro Alves <palves@redhat.com>
1840 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1841 set ecs->random signal.
1843 2013-10-22 Pedro Alves <palves@redhat.com>
1845 * infrun.c (keep_going): Update comments.
1847 2013-10-22 Pedro Alves <palves@redhat.com>
1849 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1850 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1852 2013-10-22 Pedro Alves <palves@redhat.com>
1854 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1856 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1857 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1858 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1859 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1860 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1861 (GDB_SIGNAL_LAST): Change description string.
1862 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1863 Adjust to signal renaming.
1864 * darwin-nat.c (darwin_decode_message): Likewise.
1866 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1868 * MAINTAINERS (Write After Approval): Add myself to the list.
1870 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1872 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1873 forced off, downgrade them to software watchpoints if possible,
1874 and error out if not possible.
1875 (watch_command_1): Move watchpoint type selection closer to
1876 watchpoint creation, and extend the comments.
1878 2013-10-18 Pedro Alves <palves@redhat.com>
1881 * infrun.c (handle_inferior_event): Keep going if we got a random
1882 signal we should not stop for, instead of falling through to the
1885 2013-10-18 Yao Qi <yao@codesourcery.com>
1887 * c-varobj.c (cplus_number_of_children): Fix indentation.
1889 2013-10-17 Tom Tromey <tromey@redhat.com>
1892 * printcmd.c (printcmd): Call gdb_flush.
1894 2013-10-17 Tom Tromey <tromey@redhat.com>
1896 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1897 (elf_locate_sections): Update.
1899 2013-10-17 Yao Qi <yao@codesourcery.com>
1901 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1902 * ada-varobj.c: Remove the include of ada-varobj.h.
1903 (ada_varobj_get_number_of_children): Declare.
1904 (ada_varobj_get_name_of_child): Make it static.
1905 (ada_varobj_get_path_expr_of_child): Likewise.
1906 (ada_varobj_get_value_of_child): Likewise.
1907 (ada_varobj_get_type_of_child): Likewise.
1908 (ada_varobj_get_value_of_array_variable): Likewise.
1909 * ada-varobj.h: Remove.
1911 2013-10-17 Yao Qi <yao@codesourcery.com>
1913 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1914 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1915 * ada-varobj.c: Include "varobj.h".
1916 (ada_number_of_children): New. Moved from varobj.c.
1917 (ada_name_of_variable, ada_name_of_child): Likewise.
1918 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1919 (ada_type_of_child, ada_value_of_variable): Likewise.
1920 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1921 (ada_varobj_ops): New.
1922 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1923 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1924 * gdbtypes.h (get_target_type): Declare.
1925 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1927 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1928 (ANONYMOUS_UNION_NAME): Likewise.
1929 (get_type, get_value_type, get_target_type): Remove declarations.
1930 (value_get_print_value, varobj_value_get_print_value): Likewise.
1931 (c_number_of_children, c_name_of_variable): Likewise.
1932 (c_name_of_child, c_path_expr_of_child): Likewise.
1933 (c_value_of_child, c_type_of_child): Likewise.
1934 (c_value_of_variable, cplus_number_of_children): Likewise.
1935 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1936 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1937 (cplus_value_of_child, cplus_type_of_child): Likewise.
1938 (cplus_value_of_variable, java_number_of_children): Likewise.
1939 (java_name_of_variable, java_name_of_child): Likewise.
1940 (java_path_expr_of_child, java_value_of_child): Likewise.
1941 (java_type_of_child, java_value_of_variable): Likewise.
1942 (ada_number_of_children, ada_name_of_variable): Likewise.
1943 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1944 (ada_value_of_child, ada_type_of_child): Likewise.
1945 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1946 (ada_value_has_mutated): Likewise.
1947 (struct language_specific): Move it to varobj.h.
1948 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1949 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1951 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1953 (is_anonymous_child): Move it to c-varobj.c and rename to
1954 varobj_is_anonymous_child. Caller update.
1955 (get_type): Move it to c-varobj.c.
1956 (get_value_type): Rename it varobj_get_value_type. Make it
1958 (get_target_type): Move it gdbtypes.c.
1959 (varobj_formatted_print_options): New function.
1960 (value_get_print_value): Rename it to
1961 varobj_value_get_print_value and make it extern.
1962 (varobj_value_is_changeable_p): Make it extern.
1963 (adjust_value_for_child_access): Move it to c-varobj.c.
1964 (default_value_is_changeable_p): Rename it to
1965 varobj_default_value_is_changeable_p. Make it extern.
1966 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1967 (c_name_of_child, c_path_expr_of_child): Likewise.
1968 (c_value_of_child, c_type_of_child): Likewise.
1969 (c_value_of_variable, cplus_number_of_children): Likewise.
1970 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1971 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1972 (cplus_value_of_child, cplus_type_of_child): Likewise.
1973 (cplus_value_of_variable): Likewise.
1974 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1975 (java_name_of_child, java_path_expr_of_child): Likewise.
1976 (java_value_of_child, java_type_of_child): Likewise.
1977 (java_value_of_variable): Likewise.
1978 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1979 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1980 (ada_value_of_child, ada_type_of_child): Likewise.
1981 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1982 (ada_value_has_mutated): Likewise.
1983 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1984 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1985 (c_varobj_ops, cplus_varobj_ops): Declare.
1986 (java_varobj_ops, ada_varobj_ops): Declare.
1987 (varobj_default_value_is_changeable_p): Declare.
1988 (varobj_value_is_changeable_p): Declare.
1989 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1990 (varobj_get_path_expr_parent): Declare.
1991 (varobj_value_get_print_value): Declare.
1992 (varobj_formatted_print_options): Declare.
1993 (varobj_restrict_range): Declare.
1995 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1997 * target/waitstatus.h (target_waitkind): Remove spurious
1998 character from the comments.
2000 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2002 * gdbarch.sh (get_longjmp_target): Add method documentation.
2003 * gdbarch.h: Regenerate.
2005 2013-10-16 Tom Tromey <tromey@redhat.com>
2007 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2010 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2012 * gcore.in: Call GDB using the full path to the gcore script.
2013 Error out if the GDB binary is not found.
2015 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2018 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2021 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2024 * target.c (target_disable_btrace): Fix invalid return value for
2026 (target_teardown_btrace): Likewise.
2028 2013-10-14 Yao Qi <yao@codesourcery.com>
2030 * varobj.c (struct varobj): Move most of the fields to
2032 (struct varobj_dynamic): New struct.
2033 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2034 (varobj_has_more): Likewise.
2035 (dynamic_varobj_has_child_method): Likewise.
2036 (update_dynamic_varobj_children): Likewise.
2037 (varobj_get_num_children): Likewise.
2038 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2039 (install_new_value_visualizer): Likewise.
2040 (install_new_value_visualizer, install_new_value): Likewise.
2041 (varobj_update, new_variable, free_variable): Likewise.
2042 (my_value_of_variable, value_get_print_value): Likewise.
2043 (install_visualizer): Change the type of parameter 'var' to
2044 'struct varobjd_dynamic *'. Callers update.
2045 * varobj.h (struct varobj): Moved from varobj.c.
2046 (struct varobj) <dynamic>: New field.
2048 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2050 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2051 as the preferred name of r30.
2052 * nios2-linux-tdep.c (reg_offsets): Likewise.
2053 * features/nios2-cpu.xml: Likewise.
2054 * features/nios2-linux.c: Regenerated.
2055 * features/nios2.c: Regenerated.
2056 * regformats/nios2-linux.dat: Regenerated.
2058 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2060 Canonicalize directories for EXEC_FILENAME.
2061 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2063 * utils.c (gdb_realpath_keepfile): New function.
2064 * utils.h (gdb_realpath_keepfile): New declaration.
2066 2013-10-11 Doug Evans <dje@google.com>
2068 * Makefile.in (GDBFLAGS): New variable.
2071 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2073 * NEWS: Add entry documenting the new "-catch-assert" and
2074 "-catch-exception" GDB/MI commands.
2076 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2078 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2080 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2081 "enabled". Set B->ENABLE_STATE accordingly.
2082 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2084 (create_ada_exception_catchpoint): Add declaration.
2085 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2086 (create_ada_exception_catchpoint): Make non-static. Add new
2087 parameter "disabled". Use it in call to
2088 init_ada_exception_breakpoint.
2089 (catch_ada_exception_command): Add parameter "enabled" in call
2090 to create_ada_exception_catchpoint.
2091 (catch_assert_command): Likewise.
2093 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2095 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2096 "catch-exception" commands.
2097 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2098 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2100 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2102 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2103 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2104 of all its enumerates with "ada_". Update the rest of this
2107 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2109 * ada-lang.c (ada_decode_exception_location): Delete.
2110 (create_ada_exception_catchpoint): Remove arguments "sal",
2111 "addr_string" and "ops". Add argument "ex_kind" instead.
2112 Adjust implementation accordingly, calling ada_exception_sal
2113 to get the entities it no longer gets passed as arguments.
2114 Document the function's arguments.
2115 (catch_ada_exception_command): Use catch_ada_exception_command_split
2116 instead of ada_decode_exception_location, and update call to
2117 create_ada_exception_catchpoint.
2118 (catch_ada_assert_command_split): Renames
2119 ada_decode_assert_location. Remove parameters "addr_string" and
2120 "ops", and now returns void. Adjust implementation accordingly.
2121 Update the function documentation.
2122 (catch_assert_command): Use catch_ada_assert_command_split
2123 instead of ada_decode_assert_location. Update call to
2124 create_ada_exception_catchpoint.
2126 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2128 * utils.h (perror_warning_with_name): Add declaration.
2129 * utils.c (perror_warning_with_name): New function.
2130 * cli/cli-cmds.c (source_script_with_search): Add call to
2131 perror_warning_with_name if from_tty is nul.
2133 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2135 * utils.c (perror_string): New function, extracted out of
2136 throw_perror_with_name.
2137 (throw_perror_with_name): Rework to use perror_string.
2139 2013-10-11 Yao Qi <yao@codesourcery.com>
2141 * remote.c (discard_pending_stop_replies_in_queue): Update
2143 (struct stop_reply) <rs>: New field.
2144 (remove_stop_reply_of_remote_state): New function.
2145 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2146 Callers update. Pass remove_stop_reply_of_remote_state to
2148 (remote_parse_stop_reply): Initialize field 'rs'.
2150 2013-10-10 Will Newton <will.newton@linaro.org>
2152 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2155 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2157 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2158 serial_baud_show_cmd.
2159 (_initialize_cli_cmds): Delete the code creating the
2160 "set/show remotebaud" commands.
2161 * serial.c (baud_rate): Move here from top.c.
2162 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2163 (_initialize_serial): Create "set/show serial baud" commands.
2164 Add "set/show remotebaud" command aliases.
2165 * top.c (baud_rate): Moved to serial.c.
2166 * NEWS: Document the new "set/show serial baud" commands,
2167 replacing "set/show remotebaud".
2169 2013-10-09 Pedro Alves <palves@redhat.com>
2171 * breakpoint.c (insert_bp_location): Use memory_error_message to
2172 build the memory error string.
2173 * c-lang.c: Include "gdbcore.h".
2174 (c_get_string): Use memory_error to throw error.
2175 (target_xfer_memory_error): Delete.
2176 (memory_error_message): New, factored out from
2177 target_xfer_memory_error.
2178 (memory_error): Change parameter type to target_xfer_error.
2180 (read_memory): Use memory_error instead of
2181 target_xfer_memory_error.
2182 * gdbcore.h: Include "target.h".
2183 (memory_error): Change parameter type to target_xfer_error.
2184 (memory_error_message): Declare function.
2185 * target.c (target_read_memory, target_read_stack)
2186 (target_write_memory, target_write_raw_memory): Return
2187 TARGET_XFER_E_IO on error. Adjust comments.
2188 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2190 * target.h (target_read, target_insert_breakpoint)
2191 (target_remove_breakpoint): Adjust comments.
2192 * valprint.c (partial_memory_read): Rename parameter, and adjust
2194 (val_print_string): Use memory_error_message to build the memory
2197 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2200 result variable. Rename variable fopen_e_ever_failed to
2201 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2203 2013-10-09 Pedro Alves <palves@redhat.com>
2205 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2206 (monitor_write_memory_longlongs, monitor_write_memory_block):
2207 Constify 'myaddr' parameter.
2208 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2210 (monitor_xfer_partial): New function.
2211 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2212 hook. Install a to_xfer_partial hook.
2214 2013-10-09 Tom Tromey <tromey@redhat.com>
2216 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2217 bfd_get_alt_debug_link_info.
2219 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 New flag OBJF_NOT_FILENAME.
2222 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2223 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2225 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2226 symbol_file_add_from_bfd.
2227 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2229 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2231 * objfiles.h (OBJF_NOT_FILENAME): New.
2233 2013-10-08 Tom Tromey <tromey@redhat.com>
2235 * Makefile.in (SFILES): Add build-id.c.
2236 (HFILES_NO_SRCDIR): Add build-id.h.
2237 * build-id.c: New file, largely from elfread.c. Modified
2239 * build-id.h: New file.
2240 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2241 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2242 Search for dwz file using build-id.
2243 * elfread.c (build_id_bfd_get, build_id_verify)
2244 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2246 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2248 * ada-lang.c (compare_names_with_case): Renamed from
2249 compare_names, adding a new parameter "casing" and its handling.
2250 New function documentation.
2251 (compare_names): New function, implemented using
2252 compare_names_with_case.
2254 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2256 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2258 2013-10-07 Tom Tromey <tromey@redhat.com>
2260 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2261 demangled_names_hash.
2262 (free_objfile): Don't delete the demangled_names_hash.
2263 * objfiles.h (struct objfile_per_bfd_storage)
2264 <demangled_names_hash>: New field.
2265 (struct objfile) <demangled_names_hash>: Move to
2266 objfile_per_bfd_storage.
2267 * symfile.c (reread_symbols): Don't delete the
2268 demangled_names_hash.
2269 * symtab.c (create_demangled_names_hash): Update.
2270 (symbol_set_names): Update.
2272 2013-10-07 Tom Tromey <tromey@redhat.com>
2274 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2275 needs_relocations>: New fields.
2276 (gdb_bfd_requires_relocations): New function.
2277 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2278 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2279 the BFD needs relocations applied.
2281 2013-10-07 Pedro Alves <palves@redhat.com>
2283 PR breakpoints/11568
2284 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2285 the thread list" instead of "gone".
2287 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2289 * NEWS: Mention new convenience variable $_exitsignal.
2290 * corelow.c (core_open): Reset exit convenience variables. Set
2291 $_exitsignal to the uncaught signal which generated the corefile.
2292 * infrun.c (handle_inferior_event): Reset exit convenience
2293 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2294 (clear_exit_convenience_vars): New function.
2295 * inferior.h (clear_exit_convenience_vars): New prototype.
2297 2013-10-06 Yao Qi <yao@codesourcery.com>
2299 * varobj.h: Add comments to enum varobj_languages.
2301 2013-10-04 Doug Evans <dje@google.com>
2303 Add support for DWP file format version 2.
2304 * NEWS: Mention support for DWP file format version 2.
2305 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2306 union of asection, containing_section. New fields virtual_offset
2307 and is_virtual. Change type of readin filed from int to char.
2308 (dwo_sections, dwo_file): Tweak comments.
2309 (dwp_v2_section_ids): New enum.
2310 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2312 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2314 (virtual_v2_dwo_sections): New struct.
2315 (dwp_hash_table): New fields version, nr_columns. Change type of
2316 section_pool field to a union.
2317 (dwp_file): New field version.
2318 (dwarf2_has_info): Check for virtual sections.
2319 (get_containing_section): New function.
2320 (get_section_bfd_owner, get_section_bfd_section): Call it.
2321 (dwarf2_locate_sections): Update.
2322 (dwarf2_section_empty_p): Update.
2323 (dwarf2_read_section): Handle virtual sections.
2324 (locate_dwz_sections): Update.
2325 (create_dwp_hash_table): Document and handle V2 format.
2326 (locate_v1_virtual_dwo_sections): Renamed from
2327 locate_virtual_dwo_sections and update. All callers updated.
2328 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2329 Delete arg htab. Rename arg section_index to unit_index.
2330 All callers updated.
2331 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2333 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2334 (lookup_dwo_unit_in_dwp): Add V2 support.
2335 (dwarf2_locate_dwo_sections): Update.
2336 (dwarf2_locate_common_dwp_sections): Renamed from
2337 dwarf2_locate_dwp_sections and update. All callers updated.
2338 (dwarf2_locate_v2_dwp_sections): New function.
2339 (open_and_init_dwp_file): Add V2 support.
2340 (read_str_index): New locals str_section, str_offsets_section.
2342 2013-10-04 Pedro Alves <palves@redhat.com>
2344 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2345 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2346 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2347 describing comments with references to ptid.h.
2348 * common/ptid.h: Remove intro description of constructors,
2349 accessors and predicates.
2350 (struct ptid): Reformat.
2351 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2352 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2353 describing comments.
2355 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2357 * aix-thread.c (sync_threadlists): Add missing ')' in call
2360 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2362 * procfs.c (procfs_init_inferior): Fix typo causing the build
2365 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2367 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2369 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2371 * mi/mi-main.c (run_one_inferior): Add function description.
2372 Make ARG a pointer to an integer whose value determines whether
2373 we should "run" or "start" the program.
2374 (mi_cmd_exec_run): Add handling of the "--start" option.
2375 Reject all other command-line options.
2376 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2378 2013-10-04 Yao Qi <yao@codesourcery.com>
2380 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2381 (struct notif_client) <pending_event>: Moved
2382 to struct remote_notif_state.
2384 (struct remote_notif_state) <pending_event>: New field.
2385 (notif_event_xfree): Declare.
2386 * remote-notif.c (handle_notification): Adjust.
2387 (notif_event_xfree): New function.
2388 (do_notif_event_xfree): Call notif_event_xfree.
2389 (remote_notif_state_xfree): Call notif_event_xfree to free
2390 each element in field pending_event.
2391 * remote.c (discard_pending_stop_replies): Remove declaration.
2392 (discard_pending_stop_replies_in_queue): Declare.
2393 (remote_close): Call discard_pending_stop_replies_in_queue
2394 instead of discard_pending_stop_replies.
2395 (remote_start_remote): Adjust.
2396 (stop_reply_xfree): Call notif_event_xfree.
2397 (notif_client_stop): Adjust initialization.
2398 (remote_notif_remove_all): Rename it to ...
2399 (remove_stop_reply_for_inferior): ... this. Update comments.
2400 Don't check INF is NULL.
2401 (discard_pending_stop_replies): Return early if notif_state is
2402 NULL. Adjust. Don't check INF is NULL.
2403 (remote_notif_get_pending_events): Adjust.
2404 (discard_pending_stop_replies_in_queue): New function.
2405 (remote_wait_ns): Likewise.
2407 2013-10-04 Yao Qi <yao@codesourcery.com>
2409 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2410 (notif_queue): Remove.
2411 (remote_notif_process): Add one parameter 'notif_queue'.
2412 Update comments. Callers update.
2413 (remote_async_get_pending_events_token): Remove.
2414 (remote_notif_register_async_event_handler): Remove.
2415 (remote_notif_unregister_async_event_handler): Remove.
2416 (handle_notification): Add parameter 'notif_queue'. Update
2417 comments. Callers update.
2418 (notif_xfree): Remove.
2419 (remote_notif_state_allocate): New function.
2420 (remote_notif_state_xfree): New function.
2421 (_initialize_notif): Remove code to allocate queue.
2422 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2423 (struct remote_notif_state): New.
2424 (handle_notification): Update declaration.
2425 (remote_notif_process): Likewise.
2426 (remote_notif_register_async_event_handler): Remove.
2427 (remote_notif_unregister_async_event_handler): Remove.
2428 (remote_notif_state_allocate): Declare.
2429 (remote_notif_state_xfree): Declare.
2430 * remote.c (struct remote_state) <notif_state>: New field.
2431 (remote_close): Don't call
2432 remote_notif_unregister_async_event_handler. Call
2433 remote_notif_state_xfree.
2434 (remote_open_1): Don't call
2435 remote_notif_register_async_event_handler. Call
2436 remote_notif_state_allocate.
2438 2013-10-04 Yao Qi <yao@codesourcery.com>
2440 * varobj.c (create_child_with_value): Remove 'const' from the
2441 type of parameter 'name'.
2442 (varobj_add_child): Likewise.
2443 (install_dynamic_child): Remove 'const' from the type of
2445 (varobj_add_child): Likewise.
2446 (create_child_with_value): Likewise. Update comments. Don't
2448 (update_dynamic_varobj_children): Duplicate 'name'
2449 and pass it to install_dynamic_child.
2451 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2453 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2454 conversion logic to occur after PyLong_Check. Comment on order
2455 change significance.
2456 * python/py-arch.c (archpy_disassemble): Comment on order of
2457 conversion for integers and longs.
2459 2013-10-03 Pedro Alves <palves@redhat.com>
2461 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2462 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2463 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2464 PTRACE_O_TRACEFORK is not supported.
2465 (linux_test_for_tracesysgood): New function.
2466 (linux_test_for_tracefork): New function, factored out from
2467 linux_check_ptrace_features, and also don't kill child_pid here.
2469 2013-10-03 Tristan Gingold <gingold@adacore.com>
2471 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2472 Remove verbose error reporting. Use detected state to
2473 thread_set_state call.
2474 (i386_darwin_dr_get): Fix return type. Remove verbose error
2476 Remove trailing spaces.
2478 2013-10-02 Pedro Alves <palves@redhat.com>
2480 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2481 val_print_optimized_out.
2482 * jv-valprint.c (java_print_value_fields): Likewise.
2483 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2484 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2485 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2486 new optimized out value.
2487 * findvar.c (address_from_register): Likewise.
2488 * frame.c (put_frame_register): Tweak error string to say the
2489 register was not saved, rather than optimized out.
2490 * infcmd.c (default_print_one_register_info): Adjust call to
2491 val_print_optimized_out. Use value_of_register instead of
2492 get_frame_register_value.
2493 * mi/mi-main.c (output_register): Use value_of_register instead of
2494 get_frame_register_value.
2495 * valprint.c (valprint_check_validity): Likewise.
2496 (val_print_optimized_out): New value parameter. If the value is
2497 lval_register, print <not saved> instead.
2498 (value_check_printable, val_print_scalar_formatted): Adjust calls
2499 to val_print_optimized_out.
2500 * valprint.h (val_print_optimized_out): New value parameter.
2501 * value.c (struct value) <optimized_out>: Extend comment.
2502 (error_value_optimized_out): New function.
2503 (require_not_optimized_out): Use it. Use a different string for
2504 lval_register values.
2505 * value.h (error_value_optimized_out): New declaration.
2506 * NEWS: Mention <not saved>.
2508 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2510 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2511 strcmp to compare two symtab filenames.
2513 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2515 * symtab.c (search_symbols_equal): Delete.
2516 (sort_search_symbols_remove_dups): Replace call to
2517 search_symbols_equal by call to compare_search_syms,
2518 adjusting as necessary.
2520 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2523 * python/python.c: Document gdb.execute command in Python help.
2525 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2527 * python/py-frame.c (frame_info_to_frame_object): Use
2528 gdbpy_convert_exception. Clean up Python object on failure.
2530 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2532 * python/lib/gdb/command/frame_filters.py
2533 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2534 (ShowFrameFilterPriority.invoke): Ditto.
2536 2013-10-01 Keith Seitz <keiths@redhat.com>
2538 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2539 (parse_linespec): Make 'argptr' const.
2540 Remove temporary cast of 'argptr' to const char **.
2541 (decode_line_full): Pass const pointer to parse_linespec.
2542 (decode_line_1): Likewise.
2543 (decode_objc): Make local variable 'new_argptr' const.
2544 (find_function_symbols): Remove temporary cast to char *
2546 * objc-lang.c (find_imps): Make argument 'method' const.
2548 * objc-lang.h (find_imps): Likewise.
2550 2013-10-01 Keith Seitz <keiths@redhat.com>
2552 * completer.c (skip_quoted_chars): Make all arguments const.
2554 (skip_quoted): Likewise.
2555 * completer.h (skip_quoted_chars): Likewise.
2556 (skip_quoted): Likewise.
2557 * defs.h (skip_quoted): Remove duplicate declaration.
2558 * jv-exp.y: Include completer.h.
2559 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2560 * p-exp.y: Include completer.h.
2562 2013-10-01 Keith Seitz <keiths@redhat.com>
2564 * c-exp.y (parse_number): Make first argument const.
2565 Make a copy of the input to manipulate.
2566 (c_parse_escape): Make first argument const.
2567 Make local variable 'tokptr' const.
2568 (parse_string_or_char): Make first two arguments const.
2569 (macro_original_text): Make const.
2570 (lex_one_token): Make local variable 'tokstart' const.
2571 Likewise for local variables named 'p'.
2572 Cast away const for struct stoken (temporary).
2573 * c-lang.h (c_parse_escpae): Make first argument const.
2574 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2576 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2578 * f-exp.y (parse_number): Make first argument const.
2579 (match_string_literal): Make local variable 'tokstart'
2581 (yylex): Make local variable 'p' const.
2582 Cast away const for struct stoken (temporary).
2583 * go-exp.y (parse_number): Make first argument const.
2584 (parse_string_or_char): Likewise.
2585 Make local variable 'tokstart' const.
2586 (lex_one_token): Likewise for numerous locals called 'p'.
2587 Cast away const for struct stoken (temporary).
2588 * jv-exp.y (parse_number): Make first argument const.
2589 Make local variables 'tokstart' and 'tokptr' const.
2590 Cast away const for call to skip_quoted (temporary).
2591 (yylex): Make local variable 'p' const.
2592 Cast away const for struct stoken (temporary).
2593 * m2-exp.y (parse_number): Make local variable 'p' const.
2594 (yylex): Likewise for 'tokstart'.
2595 Cast away const for struct stoken (temporary).
2596 Make local variable 'p' const.
2597 * macroexp.c (get_character_constant): Pass a const string
2599 (get_string_literal): Likewise.
2600 (macro_expand_next): Make first argument const.
2601 Cast away const for init_shared_buffer.
2602 * macroexp.h (macro_expand_next): Make first argument const.
2603 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2604 Pass a const string to c_parse_escape.
2605 Make local variables 'p' and 'namestart' const.
2606 * parse.c (lexptr): Make const.
2607 (prev_lexptr): Likewise.
2608 (find_template_name_end): Return const.
2609 Make argument const, too.
2610 (parse_exp_in_context): Make first argument const.
2611 Remove the entire const_hack.
2612 (parse_exp_in_context_1): Make first argument const.
2613 * parser-defs.h (find_template_name_end): Return const.
2614 Make argument const, too.
2615 (lexptr): Make const.
2616 (prev_lexptr): Likewise.
2617 * utils.c (parse_escape): Make second argument const.
2618 * utils.h (parse_escape): Likewise.
2620 2013-10-01 Keith Seitz <keiths@redhat.com>
2622 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2624 (block_lookup): Make 'raw_name' and 'name' const.
2625 * ada-lex.l (processString): Update for struct stoken.ptr.
2626 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2627 (operator_stoken): Likewise.
2628 (lex_one_token): Remove temporary cast to char * for
2630 * f-exp.y (yylex): Likewise.
2631 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2632 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2633 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2635 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2636 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2637 * linespec.c (struct ls_parser): Make 'stream' const.
2638 (find_parameter_list_end): Make argument 'input' and local
2640 (linespec_lexer_lex_string): Make local variables 'start' and
2642 Use skip_spaces_const instead of skip_spaces.
2643 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2645 (parse_linespec): Temporarily cast 'argptr' to const for
2646 'parser->lexer.stream'.
2647 * m2-exp.y (yylex): Remove temporary cast to char * for
2649 * objc-lang.c (add_msglist): Make local variable 'p' const.
2650 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2651 (exp : STRING): Make 'sp' const.
2652 (parse_number): Make argument 'p' const.
2653 * parser-defs.h (struct stoken): Make 'ptr' const.
2655 2013-10-01 Doug Evans <dje@google.com>
2657 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2659 2013-10-01 Yao Qi <yao@codesourcery.com>
2661 * varobj.c (c_value_of_root): Remove declaration.
2662 (cplus_value_of_root, java_value_of_root): Likewise.
2663 (ada_value_of_root): Likewise.
2664 (struct language_specific) <value_of_root>: Remove.
2665 (languages): Update initialization.
2666 (check_scope): Move earlier.
2667 (c_value_of_root): Move earlier and rename to ...
2668 (value_of_root_1): ... this.
2669 (value_of_root): Caller update.
2670 (cplus_value_of_root, java_value_of_root): Remove.
2671 (ada_value_of_root): Remove.
2673 2013-10-01 Yao Qi <yao@codesourcery.com>
2675 * varobj.c (varobj_format_string): Remove "unknown".
2676 (languages): Remove the first element.
2677 * varobj.h (enum varobj_languages): Remove vlang_c.
2679 2013-10-01 Yao Qi <yao@codesourcery.com>
2681 * varobj.c (struct language_specific) <language>: Remove.
2682 (languages): Update the initialization.
2684 2013-10-01 Yao Qi <yao@codesourcery.com>
2686 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2687 "solib-target.h". Include "windows-tdep.h".
2688 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2689 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2690 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2691 windows-tdep.o to gdb_target_obs.
2693 2013-10-01 Yao Qi <yao@codesourcery.com>
2695 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2697 (amd64_windows_init_abi): Don't call set_solib_ops and
2698 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2699 windows_init_abi instead.
2700 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2702 (i386_cygwin_init_abi): Don't call set_solib_ops,
2703 set_gdbarch_has_dos_based_file_system and
2704 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2705 windows_init_abi instead.
2706 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2707 (windows_init_abi): New function.
2708 (windows_iterate_over_objfiles_in_search_order): Make it
2710 * windows-tdep.h (windows_init_abi): Declare.
2711 (windows_iterate_over_objfiles_in_search_order): Remove
2714 2013-10-01 Jerome Guitton <guitton@adacore.com>
2716 Checked in by Joel Brobecker <brobecker@adacore.com>
2717 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2718 incomplete dictionnary instead of None in case of missing
2719 environment variables.
2720 (elinos_init): in case of an incomplete environment, best
2721 effort to load system libraries instead of abort.
2723 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2725 * ada-lang.c (ada_has_this_exception_support): Ignore
2726 mst_solib_trampoline minimal symbols.
2728 2013-09-30 Tristan Gingold <gingold@adacore.com>
2730 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2731 hardware watchpoint.
2732 (i386_darwin_dr_set): Support 32 and 64 bit states.
2733 (i386_darwin_dr_get): Likewise.
2734 (i386_darwin_dr_set_control): Make static.
2735 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2736 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2738 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2740 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2741 Replace TIDGET with ptid_get_lwp.
2742 Replace GET_LWP with ptid_get_lwp.
2743 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2744 Replace BUILD_THREAD with ptid_build.
2745 Replace BUILD_LWP with ptid_build.
2746 Replace PIDGET with ptid_get_pid.
2747 Replace TIDGET with ptid_get_lwp.
2748 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2749 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2750 Replace TIDGET with ptid_get_lwp.
2751 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2752 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2753 Replace TIDGET with ptid_get_lwp.
2754 Replace GET_LWP with ptid_get_lwp.
2755 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2757 * breakpoint.c: Likewise.
2758 * common/ptid.c (ptid_is_pid): Condense check for
2759 null_ptid and minus_one_ptid.
2760 (ptid_lwp_p): New function.
2761 (ptid_tid_p): New function.
2762 * common/ptid.h: Update comments for accessors.
2763 (ptid_lwp_p): New prototype.
2764 (ptid_tid_p): New prototype.
2765 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2766 * gcore.c: Replace PIDGET with ptid_get_pid.
2767 * gdbthread.h: Likewise.
2768 * gnu-nat.c: Likewise.
2769 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2770 Replace TIDGET with ptid_get_lwp.
2771 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2772 * hppanbsd-nat.c: Likewise.
2773 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2774 Replace TIDGET with ptid_get_lwp.
2775 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2776 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2777 * infcmd.c: Likewise.
2778 * inferior.h: Likewise.
2779 * inflow.c: Likewise.
2780 * infrun.c: Likewise.
2781 * linux-fork.c: Likewise.
2782 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2783 Replace GET_PID with ptid_get_pid.
2784 Replace is_lwp with ptid_lwp_p.
2785 Replace GET_LWP with ptid_get_lwp.
2786 Replace BUILD_LWP with ptid_build.
2788 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2790 * common/linux-btrace.c: Move sys/syscall.h out of the
2791 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2792 Also check for SYS_perf_event_open before attempting to buid.
2794 2013-09-27 Doug Evans <dje@google.com>
2796 * dwarf2read.c (dwarf2_section_info): Add comment.
2797 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2799 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2800 (dwarf2_read_section): Delete unused local "header". Add section
2801 name to error message.
2802 (create_dwo_in_dwp): Tweak comment.
2803 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2805 * dwarf2read.c (die_reader_specs): Tweak comment.
2806 (get_section_bfd_owner, get_section_bfd_section): New functions.
2807 (get_section_name, get_section_file_name): New functions.
2808 (get_section_id, get_section_flags): New functions.
2809 (*): Use new functions to access section fields.
2811 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2812 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2813 arg "htab". All callers updated.
2814 (create_debug_types_hash_table): Remove redundant copy of
2816 (create_dwo_in_dwp): Tweak comments.
2817 (read_str_index): Tweak comment. Record dwarf form name in static
2820 2013-09-27 Pedro Alves <palves@redhat.com>
2822 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2823 (remote_filename_p): Add comment.
2824 * remote.c (remote_filename_p): Adjust to use
2825 REMOTE_SYSROOT_PREFIX.
2826 * solib.c (solib_find): When deciding whether we need to add a
2827 directory separator, check whether the sysroot is "remote:"
2828 instead of checking whether the patch has a drive spec. Add
2831 2013-09-27 Pedro Alves <palves@redhat.com>
2833 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2835 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2838 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 Fix set debug frame output.
2841 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2842 SENTINEL_FRAME entry lower to match enum frame_type order.
2844 2013-09-26 Pierre Muller <muller@sourceware.org>
2846 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2847 AMD64_R15_REGNUM when a register index is expected.
2848 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2849 Substitute in array.
2850 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2851 (amd64_push_arguments): Substitute in integer_regnum array.
2853 2013-09-25 Doug Evans <dje@google.com>
2855 * objfiles.c (allocate_objfile): Move comment to better place.
2857 New option "set debug symfile on".
2858 * NEWS: Mention "set debug symfile".
2859 * Makefile.in (SFILES): Add symfile-debug.c.
2860 (COMMON_OBS): Add symfile-debug.o.
2861 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2862 objfile's symbol functions.
2863 * objfiles.h (objfile_set_sym_fns): Declare.
2864 * symfile-debug.c: New file.
2865 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2866 objfile's symbol functions.
2867 (reread_symbols): Ditto.
2869 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2871 (add_symtab_fns): Update prototype.
2872 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2873 (registered_sym_fns): ... this.
2874 (symtab_fns): Update.
2875 (add_symtab_fns): New arg "flavour". All callers updated.
2876 (find_sym_fns): Rewrite to use new sym_fns registry.
2878 * symfile.h (struct sym_fns): Add "objfile" argument to
2879 sym_read_linetable. All uses updated.
2881 * symtab.c (domain_name, search_domain_name): New functions.
2882 * symtab.h (domain_name, search_domain_name): Declare.
2884 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2885 map_matching_symbols so objfile is first. All uses updated.
2886 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2887 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2889 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2892 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2895 2013-09-24 Doug Evans <dje@google.com>
2897 * objfiles.c (free_objfile): Move comment.
2899 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2901 * ada-exp.y (string_to_operator): Delete.
2902 (dummy_string_to_ada_operator): Delete.
2904 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2907 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2909 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2910 call_dummy_integer_regs, and classify.
2911 * amd64-tdep.h (amd64_classify): Add declaration.
2912 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2913 (amd64_reg_class): Delete, moved to i386-tdep.h.
2914 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2915 Replace call to amd64_classify by call to tdep->classify.
2916 (amd64_push_arguments): Get the list of registers to use for
2917 passing integer parameters from the gdbarch tdep structure,
2918 rather than using a hardcoded one. Replace calls to amd64_classify
2919 by calls to tdep->classify.
2920 (amd64_push_dummy_call): Get the register number used for
2921 the "hidden" argument from tdep->call_dummy_integer_regs.
2922 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2923 and tdep->call_dummy_integer_regs. Set tdep->classify.
2925 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2928 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2929 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2930 where tdep->memory_args_by_pointer is non-zero.
2932 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2935 * i386-tdep.h (struct gdbarch_tdep): Add new field
2936 integer_param_regs_saved_in_caller_frame.
2937 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2938 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2940 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2942 * amd64-windows-tdep.c: #include "value.h"
2943 (amd64_windows_classify): Delete.
2944 (amd64_windows_passed_by_integer_register)
2945 (amd64_windows_passed_by_xmm_register)
2946 (amd64_windows_passed_by_pointer)
2947 (amd64_windows_adjust_args_passed_by_pointer)
2948 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2949 (amd64_windows_push_dummy_call): New functions.
2950 (amd64_windows_init_abi): Remove setting of
2951 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2952 tdep->classify, tdep->memory_args_by_pointer and
2953 tdep->integer_param_regs_saved_in_caller_frame.
2954 Add call to set_gdbarch_push_dummy_call.
2956 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2959 objfile->original_name.
2961 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2963 Pass down original filename for objfile.
2964 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2965 * elfread.c (elf_symfile_read): Likewise.
2966 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2967 longer set ORIGINAL_NAME.
2968 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2969 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2970 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2971 symbol_file_add_from_bfd call.
2972 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2973 (macho_check_dsym): Add parameter filenamep. Change function comment.
2975 (macho_symfile_read): New variable dsym_filename. Update
2976 macho_check_dsym call. Use it for symbol_file_add_separate.
2977 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2978 it. Use it for objfile->original_name.
2979 (objfile_name): Return OBFD's filename, if available.
2980 * objfiles.h (allocate_objfile): Add new parameter name.
2981 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2982 * symfile-mem.c (symbol_file_add_from_memory): Update
2983 symbol_file_add_from_bfd call.
2984 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2986 (symbol_file_add_with_addrs): New parameter name, add function comment
2987 for it. Remove variable name. Update allocate_objfile call.
2988 (symbol_file_add_separate): New parameter name, add function comment
2989 for it. Update symbol_file_add_with_addrs call.
2990 (symbol_file_add_from_bfd): New parameter name. Update
2991 symbol_file_add_with_addrs call.
2992 (symbol_file_add): Update symbol_file_add_from_bfd call.
2993 (reread_symbols): New variable original_name. Save
2994 objfile->original_name by it.
2995 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2998 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 Code cleanup: Add objfile_name accessor function.
3001 * ada-lang.c (is_known_support_routine): Use objfile_name.
3002 * auto-load.c (source_gdb_script_for_objfile)
3003 (auto_load_objfile_script): Likewise.
3004 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3005 * dbxread.c (dbx_symfile_read): Likewise.
3006 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3007 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3008 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3009 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3010 (lookup_dwp_signatured_type, lookup_dwo_unit)
3011 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3012 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3013 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3014 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3015 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3016 (read_subrange_type, load_partial_dies, read_partial_die)
3017 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3018 (die_containing_type, build_error_marker_type, lookup_die_type)
3019 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3020 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3021 (get_DW_AT_signature_type, write_psymtabs_to_index)
3022 (save_gdb_index_command): Likewise.
3023 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3025 * expprint.c (dump_subexp_body_standard): Likewise.
3026 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3027 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3029 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3030 obj_name, use objfile_name for it, use the variable.
3031 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3033 * machoread.c (macho_symtab_read, macho_check_dsym)
3034 (macho_symfile_relocate): Likewise.
3035 * maint.c (maintenance_translate_address): Likewise.
3036 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3037 * minsyms.c (install_minimal_symbols): Likewise.
3038 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3040 (filter_overlapping_sections): Use objfile_name.
3041 (objfile_name): New function.
3042 * objfiles.h (struct objfile): Rename field name to original_name.
3043 (objfile_name): New prototype.
3044 * printcmd.c (sym_info, address_info): Use objfile_name.
3045 * probe.c (parse_probes, collect_probes, compare_probes)
3046 (info_probes_for_ops): Likewise.
3047 * progspace.c (clone_program_space): Likewise.
3048 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3049 (maintenance_info_psymtabs): Likewise.
3050 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3051 (source_section_scripts): Likewise.
3052 * python/py-objfile.c (objfpy_get_filename): Likewise.
3053 * python/py-progspace.c (pspy_get_filename): Likewise.
3054 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3055 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3056 * solib.c (solib_read_symbols): Likewise.
3057 * stabsread.c (scan_file_globals): Likewise.
3058 * stap-probe.c (handle_stap_probe): Likewise.
3059 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3060 (find_separate_debug_file_by_debuglink): Likewise.
3061 (reread_symbols): Likewise. Use the objfile field name renamed to
3063 (allocate_symtab): Use objfile_name.
3064 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3065 (dump_objfile, dump_msymbols, dump_symtab_1)
3066 (maintenance_print_msymbols, maintenance_print_objfiles)
3067 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3068 * target.c (target_translate_tls_address, target_info): Likewise.
3069 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3072 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3075 * probe.c (parse_probes): Rename variable objfile_name to
3078 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Remove solib-sunos.c.
3081 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3082 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3083 * objfiles.c (rt_common_objfile): Remove.
3084 (free_objfile): Remove rt_common_objfile comparison.
3085 * objfiles.h (rt_common_objfile): Remove.
3086 * solib-sunos.c: Remove.
3087 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3089 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3091 Remove a.out NetBSD and OpenBSD hosts.
3092 * NEWS (Removed native configurations): New.
3093 * config/arm/nbsdaout.mh: Remove.
3094 * config/i386/nbsdaout.mh: Remove.
3095 * config/i386/obsdaout.mh: Remove.
3096 * config/m68k/nbsdaout.mh: Remove.
3097 * config/sparc/nbsdaout.mh: Remove.
3098 * config/vax/nbsdaout.mh: Remove.
3099 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3100 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3101 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3103 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3104 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3105 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3107 2013-09-23 Tom Tromey <tromey@redhat.com>
3109 * linespec.c (struct minsym_and_objfile): Remove.
3110 (minsym_and_objfile_d): Remove.
3111 (struct linespec, struct collect_info, linespec_parse_basic)
3112 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3113 (compare_msymbols, find_method, find_function_symbols)
3114 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3115 (add_minsym, search_minsyms_for_name): Update.
3117 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3119 * regcache.c: Add include of valprint.h.
3120 (dump_endian_bytes): Delete.
3121 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3123 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3125 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3127 2013-09-19 Pedro Alves <palves@redhat.com>
3129 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3132 2013-09-19 Pedro Alves <palves@redhat.com>
3133 Thomas Schwinge <thomas@codesourcery.com>
3134 Yue Lu <hacklu.newborn@gmail.com>
3136 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3137 Take a gdb_byte pointer instead of a char pointer.
3139 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3140 gnu_xfer_partial helper.
3141 (gnu_xfer_partial): New function.
3142 (gnu_target): Don't install a deprecated_xfer_memory hook.
3143 Install a to_xfer_partial hook.
3145 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3148 * main.c (captured_main): Replace catch_command_errors by
3149 catch_command_errors_const. Twice.
3150 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3151 (symbol_file_add): Make name parameter const.
3152 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3153 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3154 variable name. Change their usage accordingly.
3155 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3157 (symbol_file_add_main): Make args parameter const.
3159 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3160 Ulrich Weigand <uweigand@de.ibm.com>
3162 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3164 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3166 2013-09-18 Pedro Alves <palves@redhat.com>
3167 Yue Lu <hacklu.newborn@gmail.com>
3169 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3170 (gnu_create_inferior)
3171 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3172 (set_sig_thread_cmd): Use the lwpid field of ptids to
3173 store/extract thread ids instead of the tid field.
3174 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3176 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3178 * infcmd.c (default_print_one_register_info): Add detection of
3179 optimized out values.
3180 (default_print_registers_info): Switch to using
3181 get_frame_register_value.
3183 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3185 * infrun.c (handle_inferior_event): Check if we know the
3186 function start address before setting a resume breakpoint.
3188 2013-09-18 Pedro Alves <palves@redhat.com>
3190 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3191 minus_one_ptid instead of looking at the ptid's tid field and
3192 comparing that to -1.
3194 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3196 * main.h (get_gdb_program_name): Remove extra whitespace.
3198 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3200 * main.h (get_gdb_program_name): Add declaration.
3201 * main.c (get_gdb_program_name): Add definition.
3203 2013-09-17 Doug Evans <dje@google.com>
3205 * dwarf2read.c: Move definitions of complaint functions to after
3206 forward declarations of local functions.
3208 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3209 Pedro Alves <palves@redhat.com>
3212 * breakpoint.c (remove_threaded_breakpoints): New function.
3213 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3214 as thread_exit observer.
3216 2013-09-17 Pedro Alves <palves@redhat.com>
3219 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3220 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3221 * corelow.c (core_open):
3222 * frame.h (print_stack_frame, print_frame_info): New
3223 'set_current_sal' parameter.
3224 * infcmd.c (finish_command, kill_command): Adjust call to
3226 * inferior.c (inferior_command): Likewise.
3227 * infrun.c (normal_stop): Likewise.
3228 * linux-fork.c (linux_fork_context): Likewise.
3229 * record-full.c (record_full_goto_entry, record_full_restore):
3231 * remote-mips.c (common_open): Likewise.
3232 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3234 (print_frame_info): New 'set_current_sal' parameter. Set the last
3235 displayed sal depending on the new paremeter instead of looking at
3237 (backtrace_command_1, select_and_print_frame, frame_command)
3238 (current_frame_command, up_command, down_command): Adjust call to
3240 * thread.c (print_thread_info, restore_selected_frame)
3241 (do_captured_thread_select): Adjust call to print_stack_frame.
3242 * tracepoint.c (tfind_1): Likewise.
3243 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3244 (mi_cmd_stack_info_frame): Likewise.
3245 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3246 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3248 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3250 * value.c (isvoid_internal_fn): Replace "parameter" with
3253 2013-09-16 Stan Shebs <stan@codesourcery.com>
3255 * README: Update references to writing code for GDB.
3256 * configure.ac (build_warnings): Remove obsolete comment.
3257 * configure: Regenerate.
3258 * gdbarch.sh: Remove references to gdbint.texinfo.
3259 * gdbarch.h: Regenerate.
3260 * gdbtypes.c (objfile_type): Remove comments referencing internals
3263 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3265 * NEWS: Mention new convenience function $_isvoid.
3266 * value.c (isvoid_internal_fn): New function.
3267 (_initialize_values): Add new convenience function $_isvoid.
3269 2013-09-16 Pierre Muller <muller@sourceware.org>
3271 * arm-linux-tdep.c: Add "elf/common.h" header.
3272 Remove AT_HWCAP macro definintion as it is provided in
3274 * s390-tdep.c: Remove system header <elf.h>
3275 Add "elf/common.h" header for AT_HWCAP definition.
3276 (s390_core_read_description): Use correct CORE_ADDR
3277 for hwcap local variable used as third parameter
3278 of function target_auxv_search.
3280 2013-09-14 Pierre Muller <muller@sourceware.org>
3281 Tom Tromey <tromey@redhat.com>
3282 Pedro Alves <palves@redhat.com>
3284 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3285 mode if operating system doesn't know O_CLOEXEC.
3287 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3290 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3293 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3295 * NEWS: Mention TDB support.
3296 * features/s390-tdb.xml: New file.
3297 * features/s390-te-linux64.xml: New file.
3298 * features/s390x-te-linux64.xml: New file.
3299 * features/Makefile (WHICH): Add new tdescs above.
3300 (s390-te-linux64-expedite): Set.
3301 (s390x-te-linux64-expedite): Set.
3302 * features/s390-te-linux64.c: New file (generated).
3303 * features/s390x-te-linux64.c: New file (generated).
3304 * regformats/s390-te-linux64.dat: New file (generated).
3305 * regformats/s390x-te-linux64.dat: New file (generated).
3306 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3307 (HWCAP_S390_TE): Likewise.
3308 (S390_TDB_DWORD0_REGNUM): Likewise.
3309 (S390_TDB_DWORD0_REGNUM): Likewise.
3310 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3311 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3312 (S390_TDB_ATIA_REGNUM): Likewise.
3313 (S390_TDB_R0_REGNUM): Likewise.
3314 (S390_TDB_R1_REGNUM): Likewise.
3315 (S390_TDB_R2_REGNUM): Likewise.
3316 (S390_TDB_R3_REGNUM): Likewise.
3317 (S390_TDB_R4_REGNUM): Likewise.
3318 (S390_TDB_R5_REGNUM): Likewise.
3319 (S390_TDB_R6_REGNUM): Likewise.
3320 (S390_TDB_R7_REGNUM): Likewise.
3321 (S390_TDB_R8_REGNUM): Likewise.
3322 (S390_TDB_R9_REGNUM): Likewise.
3323 (S390_TDB_R10_REGNUM): Likewise.
3324 (S390_TDB_R11_REGNUM): Likewise.
3325 (S390_TDB_R12_REGNUM): Likewise.
3326 (S390_TDB_R13_REGNUM): Likewise.
3327 (S390_TDB_R14_REGNUM): Likewise.
3328 (S390_TDB_R15_REGNUM): Likewise.
3329 (S390_NUM_REGS): Increase.
3330 (S390_IS_TDBREGSET_REGNUM): New macro.
3331 (s390_regmap_tdb): Declare.
3332 (s390_sizeof_tdbregset): Define.
3333 (tdesc_s390_te_linux64): Declare.
3334 (tdesc_s390x_te_linux64): Likewise.
3335 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3336 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3337 (s390_regmap_tdb): New regmap.
3338 (s390_supply_tdb_regset): New function.
3339 (s390_tdb_regset): New regset.
3340 (s390_linux64v2_regset_sections): Add TDB regset to list.
3341 (s390x_linux64v2_regset_sections): Likewise.
3342 (s390_regset_from_core_section): Recognize TDB core note section.
3343 (s390_core_read_description): If HWCAP indicates TE support,
3344 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3345 (s390_gdbarch_init): Handle TDB regset.
3346 (_initialize_s390_tdep): Initialize new tdescs.
3347 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3348 (have_regset_tdb): New variable.
3349 (s390_native_supply): Support register invalidation.
3350 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3351 (check_regset): Treat ENODATA as "regset exists".
3352 (s390_linux_fetch_inferior_registers): Add TDB.
3353 (s390_read_description): Check for TDB existence and select
3355 * gdbserver/Makefile.in (clean): Add removal of new makefile
3357 (s390-te-linux64.c): New makefile target.
3358 (s390x-te-linux64.c): Likewise.
3359 * gdbserver/configure.srv (srv_regobj): Append new objects
3360 s390-te-linux64.o and s390x-te-linux64.o.
3361 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3362 s390x-te-linux64.xml, and s390-tdb.xml.
3363 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3365 (tdesc_s390_te_linux64): Likewise.
3366 (init_registers_s390x_te_linux64): Likewise.
3367 (tdesc_s390x_te_linux64): Likewise.
3368 (s390_check_regset): Treat ENODATA as "regset exists".
3369 (s390_arch_setup): Add TDB regset support.
3370 (initialize_low_arch): Initialize registers for new tdescs.
3372 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3374 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3375 (S390_IS_FPREGSET_REGNUM): New macro.
3376 * s390-tdep.c (s390_dwarf_regmap): Make const.
3377 (regnum_is_gpr_full): New function for replacing repeated code.
3378 (s390_pseudo_register_name): Use it.
3379 (s390_pseudo_register_type): Likewise.
3380 (s390_pseudo_register_read): Likewise.
3381 (s390_pseudo_register_write): Likewise.
3382 (s390_unwind_pseudo_register): Likewise.
3383 (s390_regmap_gregset): New format for regmap.
3384 (s390x_regmap_gregset): Likewise.
3385 (s390_regmap_fpregset): Likewise.
3386 (s390_regmap_upper): Likewise.
3387 (s390_regmap_last_break): Likewise.
3388 (s390_regmap_system_call): Likewise.
3389 (s390_supply_regset): Adjust to new regmap format.
3390 (s390_collect_regset): Likewise.
3391 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3392 (s390_native_collect): Likewise.
3393 (supply_gregset): Likewise.
3394 (fill_gregset): Likewise.
3395 (supply_fpregset): Likewise.
3396 (fill_fpregset): Likewise.
3397 (fetch_regset): Likewise.
3398 (store_regset): Likewise.
3399 (s390_linux_fetch_inferior_registers): Likewise.
3400 (s390_linux_fetch_inferior_registers): Likewise.
3402 2013-09-12 Andrew Pinski <apinski@cavium.com>
3404 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3406 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3408 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3410 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3412 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3414 2013-09-06 Pedro Alves <palves@redhat.com>
3416 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3417 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3418 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3419 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3420 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3423 2013-09-06 Pedro Alves <palves@redhat.com>
3425 * remote-sim.c (dump_mem): Constify buf parameter.
3426 gdbsim_xfer_inferior_memory): Rename to ...
3427 (gdbsim_xfer_memory): ... this. Adjust interface as
3428 target_xfer_partial helper.
3429 (gdbsim_xfer_partial): New function.
3430 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3431 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3433 2013-09-06 Pedro Alves <palves@redhat.com>
3435 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3436 host_address_to_string, and send debug output to gdb_stdlog.
3438 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3440 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3441 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3442 gdb_target_obs for cris target.
3443 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3444 (cris_gdbarch_init): Move calls to
3445 set_gdbarch_fetch_tls_load_module_address and
3446 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3447 Add call to gdbarch_init_osabi.
3448 * cris-linux-tdep.c: New file.
3449 * cris-tdep.h: New file.
3451 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3453 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3454 to deprecated_init_ui_hook.
3456 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3458 * cli/cli-interp.c (_initialize_cli_interp): Add a
3459 command_loop_proc to interp_procs.
3460 * event-top.c (cli_command_loop): Change signature to match
3461 interp_command_loop_ftype.
3462 * event-top.h (cli_command_loop): Same.
3463 * interps.c (interp_new): Require every interpreter to have a
3465 (current_interp_command_loop): Just call the command_loop_proc on
3466 the current interpreter.
3467 * tui/tui-interp.c (_initialize_tui_interp): Add a
3468 command_loop_proc to interp_procs.
3470 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3472 * cris-tdep.c (cris_gdbarch_init): Add call to
3473 get_gdbarch_fetch_tls_load_module_address.
3475 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3477 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3478 (cris_elf_gregset_t): Rename from elf_gregset_t.
3479 (crisv32_elf_gregset_t): Adjust.
3480 (cris_supply_gregset, fetch_core_registers): Adjust.
3482 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3484 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3486 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3488 * defs.h (deprecated_command_loop_hook): Remove, including
3489 references in comments.
3490 * interps.c (current_interp_command_loop): No longer use
3491 deprecated_command_loop_hook.
3492 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3494 * top.c (deprecated_command_loop_hook): Remove.
3496 2013-09-05 Pedro Alves <palves@redhat.com>
3498 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3499 local is now int instead of ULONGEST. Print it with %d
3500 instead of paddress.
3502 2013-09-05 Tristan Gingold <gingold@adacore.com>
3504 * MAINTAINERS: Remove avr maintainership.
3506 2013-09-05 Pedro Alves <palves@redhat.com>
3508 * findvar.c (value_of_register): Rework in terms of
3509 value_of_register_lazy.
3511 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3513 * symfile.c (add_symbol_file_command): Remove trailing
3514 whitespaces and blank line after comment.
3516 2013-09-05 Pedro Alves <palves@redhat.com>
3518 * tui/tui-regs.c (tui_register_format): Don't look at the
3519 register's name here. Return string representing register
3520 value instead of storing it in the data element.
3521 (tui_get_register): Compare register string representations
3522 instead of register value states and contents.
3524 2013-09-05 Pedro Alves <palves@redhat.com>
3527 * tui/tui-regs.c (tui_show_registers): Show registers of the
3528 selected frame, not the current frame.
3530 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3532 * MAINTAINERS (Write After Approval): Add myself to the list.
3534 2013-09-04 Doug Evans <dje@google.com>
3536 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3537 (queue_and_load_dwo_tu): New function.
3538 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3539 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3540 Make dependent_cu optional.
3541 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3542 and an older .gdb_index is in use, queue and load all its TUs too.
3544 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3546 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3547 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3548 variable search_flags.
3549 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3550 (OPF_RETURN_REALPATH): ... here.
3551 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3552 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3554 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3556 * solib.c (solib_find): Likewise. Four times.
3557 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3558 in the function comment and for the realpath_fptr variable.
3559 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3560 (find_and_open_source): Likewise. Twice.
3561 * symfile.c (symfile_bfd_open): Likewise, also twice.
3563 2013-09-04 Doug Evans <dje@google.com>
3565 * progspace.c (save_current_space_and_thread): Remove unnecessary
3566 call to save_current_inferior.
3568 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3570 * sh64-tdep.c (sh64_do_register): Return after printing message
3571 about unavailable register contents.
3573 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3574 Pedro Alves <palves@redhat.com>
3576 * symfile.c (add_symbol_file_command): Error out on unknown
3577 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3578 options and collapse into single conditional branch.
3580 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3582 * inf-child.c (inf_child_follow_fork): New parameter
3584 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3585 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3586 * inferior.h (detach_fork): Remove.
3587 * infrun.c (detach_fork): Adjust comment and make it
3589 (follow_fork): Pass detach_fork parameter to
3591 * linux-nat.c (linux_child_follow_fork): New parameter
3593 * target.c (target_follow_fork): New parameter detach_fork.
3594 Pass detach_fork as parameter and print its value.
3595 * target.h (struct target_ops) <to_follow_fork>: New int
3597 (target_follow_fork): New parameter detach_fork.
3599 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3601 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3602 Replace sec->bfd by sec->the_bfd_section->owner.
3604 2013-09-03 Yao Qi <yao@codesourcery.com>
3606 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3607 from linux_has_shared_address_space.
3608 (linux_has_shared_address_space): Call linux_is_uclinux.
3609 * linux-tdep.h (linux_is_uclinux): Declare.
3610 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3613 2013-09-03 Yao Qi <yao@codesourcery.com>
3615 * config/djgpp/fnchange.lst: Remove entry of
3616 i386-interix-nat.c and i386-interix-tdep.c.
3617 * configure.ac: Remove '*-*-interix*'.
3618 * configure: Re-generated.
3619 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3620 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3622 * osabi.c (gdb_osabi_names): Remove "Interix".
3624 2013-09-03 Yao Qi <yao@codesourcery.com>
3626 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3628 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3630 * record.h (record_print_flag) <record_print_src_line,
3631 record_print_insn_range>: Rename into ...
3632 (record_print_flag) <record_print_src_line,
3633 record_print_insn_range>: ... this. Update all users.
3635 2013-09-02 Pierre Muller <muller@sourceware.org>
3637 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3640 2013-09-02 Pierre Muller <muller@sourceware.org>
3642 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3643 by use of plongest function.
3645 2013-09-02 Tristan Gingold <gingold@adacore.com>
3647 * NEWS: Add entry mentioning support for native Windows x64
3650 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3651 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3652 (struct amd64_windows_frame_cache): New struct.
3653 (amd64_windows_w2gdb_regnum): New global.
3654 (pc_in_range, amd64_windows_frame_decode_epilogue)
3655 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3656 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3657 (amd64_windows_frame_this_id): New functions.
3658 (amd64_windows_frame_unwind): New static global.
3659 (amd64_windows_skip_prologue): New function.
3660 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3661 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3662 with amd64_windows_skip_prologue.
3664 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3668 2013-08-30 Pedro Alves <palves@redhat.com>
3670 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3673 2013-08-30 Pedro Alves <palves@redhat.com>
3675 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3678 2013-08-30 Pedro Alves <palves@redhat.com>
3680 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3681 Adjust arguments to print_stack_frame.
3683 2013-08-30 Pedro Alves <palves@redhat.com>
3685 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3687 2013-08-30 Pedro Alves <palves@redhat.com>
3689 * frame.h (show_and_print_stack_frame): Delete declaration.
3691 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3694 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3695 (archpy_name): Check for valid architecture.
3696 (archpy_disassemble): Ditto.
3698 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3700 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3701 instead of "long long" in call to ptrace64.
3703 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3705 * mi/mi-interp.c (mi_command_loop): Change signature to match
3706 interp_command_loop_ftype.
3707 (mi1_command_loop): Remove.
3708 (mi2_command_loop): Remove.
3709 (mi3_command_loop): Remove.
3710 (mi_interpreter_resume): Remove setting of
3711 deprecated_command_loop_hook.
3712 (_initialize_mi_interp): Set mi_command_loop as the command loop
3715 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3717 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3720 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3722 * value.c (allocate_value_contents): Make static.
3723 * value.h (allocate_value_contents): Remove prototype.
3725 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3727 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3728 of assembling value via allocate_value_lazy and attribute setter.
3729 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3730 assembling value via allocate_value_lazy and attribute setter.
3731 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3732 assembling value via allocate_value_lazy and attribute setter.
3734 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3736 * value.c (value_from_contents_and_address): Replace allocate_value and
3737 memcpy with value_from_contents.
3739 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3741 * python/py-framefilter.c (py_print_frame): Remove usage of
3742 PyString_AsString. Use python_string_to_host_string instead.
3743 Refactor function to work with a string as a new allocation
3744 instead of a pointer.
3745 (py_print_frame): Ditto.
3746 * python/lib/gdb/frames.py (return_list): Cain iterators together
3747 instead of adding them as a list.
3748 (_sort_list): Call return_list, and remove duplicate code.
3749 (execute_frame_filters): Convert iterator to a list with list().
3750 * python/lib/gdb/command/frame_filters.py
3751 (SetFrameFilterPriority._set_filter_priority): Convert priority
3752 attribute to an integer.
3753 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3754 wrapper function __next__.
3755 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3758 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3761 * python/py-framefilter.c (apply_frame_filter): Check
3762 gdb_python_initialized. Exit if the Python frame-filter code
3763 cannot be initialized.
3765 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3768 * top.c (print_gdb_version): Remove erroneous newline after help
3771 2013-08-29 Yao Qi <yao@codesourcery.com>
3773 * varobj.c (install_dynamic_child): Remove trailing space.
3774 Add one blank line after variable declaration.
3776 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3779 * corefile.c (get_exec_file): Use exec_filename.
3780 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3781 * exec.c (exec_close): Free EXEC_FILENAME.
3782 (exec_file_attach): New variable canonical_pathname. Use
3783 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3785 * exec.h (exec_filename): New.
3786 * inferior.c (print_inferior, inferior_command): Use
3787 PSPACE_EXEC_FILENAME.
3788 * mi/mi-main.c (print_one_inferior): Likewise.
3789 * progspace.c (clone_program_space, print_program_space): Likewise.
3790 * progspace.h (struct program_space): New field pspace_exec_filename.
3791 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3792 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3794 2013-08-28 Will Newton <will.newton@linaro.org>
3796 * common/linux-ptrace.c: Include stdint.h unconditionally.
3798 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3801 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3803 2013-08-28 Yao Qi <yao@codesourcery.com>
3804 Pedro Alves <palves@redhat.com>
3806 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3807 instead of stdio_fileopen.
3808 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3809 .Call stderr_fileopen instead of stdio_fileopen.
3810 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3811 [__MINGW32__] (stderr_file_fputs): New function.
3812 (stderr_fileopen): New function.
3813 * ui-file.h (stderr_fileopen): Declare.
3815 2013-08-27 Doug Evans <dje@google.com>
3817 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3818 (struct dwarf2_per_cu_data): Ditto.
3819 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3820 (process_imported_unit_die): Ditto.
3821 (follow_die_sig_1): Simplify assert.
3823 2013-08-27 Pedro Alves <palves@redhat.com>
3825 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3826 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3827 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3828 windows_xfer_memory directly.
3829 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3831 2013-08-27 Pedro Alves <palves@redhat.com>
3833 * darwin-nat.c (darwin_xfer_memory): Delete.
3834 (_initialize_darwin_inferior): Don't install a
3835 deprecated_xfer_memory method.
3837 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3838 Yao Qi <yao@codesourcery.com>
3840 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3841 (parse_no_frames_option): Remove.
3842 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3843 (mi_cmd_stack_list_args): Adjust.
3844 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3845 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3846 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3848 (list_args_or_locals): New parameter 'skip_unavailable'.
3850 * valprint.c (scalar_type_p): Rename to ...
3851 (val_print_scalar_type_p): ... this. Make extern.
3852 (val_print, value_check_printable): Adjust.
3853 * valprint.h (val_print_scalar_type_p): Declare.
3854 * value.c (value_entirely_unavailable): New function.
3855 * value.h (value_entirely_unavailable): Declare.
3857 * NEWS: Mention the new option "--skip-unavailable" to MI
3858 commands '-stack-list-locals', '-stack-list-arguments' and
3859 '-stack-list-variables'.
3861 2013-08-27 Yao Qi <yao@codesourcery.com>
3863 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3864 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3866 * mi/mi-getopt.c (mi_getopt): Remove.
3867 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3869 (mi_getopt): Call mi_getopt_1.
3870 (mi_getopt_silent): New.
3871 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3873 2013-08-26 Doug Evans <dje@google.com>
3876 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3877 .gdb_index is in use.
3878 * symfile.c (reread_symbols): Reset objfile->sf.
3880 * NEWS: Document "mt print objfiles" now takes optional regexp.
3881 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3882 regexp of objfiles to print.
3883 (_initialize_symmisc): Update doc string for "mt print objfiles".
3885 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3886 missing debug info checks.
3888 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3889 Ulrich Weigand <uweigand@de.ibm.com>
3891 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3892 line tables generated by XLC compiled binaries.
3894 2013-08-23 Doug Evans <dje@google.com>
3896 * symmisc.c (dump_symtab): Delete prototype.
3897 (dump_msymbols, dump_objfile): Ditto.
3898 (maintenance_info_symtabs): Mark as dont_repeat.
3899 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3901 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3902 debugging printf to better location.
3904 2013-08-23 Pedro Alves <palves@redhat.com>
3906 * target.c (target_read_live_memory): Change type of 'ret' local
3909 2013-08-23 Pedro Alves <palves@redhat.com>
3911 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3912 (remote_read_bytes): Change return type to LONGEST, and adjust to
3913 return a target_xfer_error on error.
3914 (remote_xfer_memory): Delete.
3915 (remote_flash_write): Change type of 'ret' local to LONGEST.
3916 (remote_xfer_partial, remote_xfer_partial): Adjust.
3917 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3919 2013-08-23 Pierre Muller <muller@sourceware.org>
3921 ARI fix: Push # directives to start of line.
3922 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3924 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3927 * breakpoint.c (enable_command, disable_command): Iterate over
3928 all specified breakpoint locations.
3930 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3932 * common/linux-ptrace.c (linux_fork_to_function): Push #
3933 directives to the start of the line.
3934 (linux_check_ptrace_features): Fix warning message to use
3937 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3939 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3940 nat/linux-waitpid.h.
3941 (linux-waitpid.o): New object file rule.
3942 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3943 (current_ptrace_options): Moved from linux-nat.c.
3944 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3946 (linux_fork_to_function): New function.
3947 (linux_grandchild_function): Likewise.
3948 (linux_child_function): Likewise.
3949 (linux_check_ptrace_features): New function, heavily
3950 based on linux-nat.c:linux_test_for_tracefork.
3951 (linux_enable_event_reporting): New function.
3952 (ptrace_supports_feature): Likewise.
3953 (linux_supports_tracefork): Likewise.
3954 (linux_supports_traceclone): Likewise.
3955 (linux_supports_tracevforkdone): Likewise.
3956 (linux_supports_tracesysgood): Likewise.
3957 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3958 gdbserver/linux-low.c.
3959 (linux_enable_event_reporting): New declaration.
3960 (linux_supports_tracefork): Likewise.
3961 (linux_supports_traceclone): Likewise.
3962 (linux_supports_tracevforkdone): Likewise.
3963 (linux_supports_tracesysgood): Likewise.
3964 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3965 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3966 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3967 * config/arm/linux.mh (NATDEPFILES): Likewise.
3968 * config/i386/linux.mh (NATDEPFILES): Likewise.
3969 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3970 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3971 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3972 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3973 * config/mips/linux.mh (NATDEPFILES): Likewise.
3974 * config/pa/linux.mh (NATDEPFILES): Likewise..
3975 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3976 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3977 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3978 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3979 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3980 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3981 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3982 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3983 ptrace's 4th argument's types.
3984 Check the type of PTRACE_TYPE_ARG4.
3985 * configure: Regenerate.
3986 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3987 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3988 (linux_supports_tracefork_flag): Remove.
3989 (linux_supports_tracesysgood_flag): Likewise.
3990 (linux_supports_tracevforkdone_flag): Likewise.
3991 (current_ptrace_options): Moved to
3992 common/linux-ptrace.c.
3993 (linux_tracefork_child): Remove.
3994 (my_waitpid): Remove.
3995 (linux_test_for_tracefork): Renamed to
3996 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3997 (linux_test_for_tracesysgood): Remove.
3998 (linux_supports_tracesysgood): Remove.
3999 (linux_supports_tracefork): Remove.
4000 (linux_supports_tracevforkdone): Remove.
4001 (linux_enable_tracesysgood): Remove.
4002 (linux_enable_event_reporting): Remove.
4003 (linux_init_ptrace): New function.
4004 (linux_child_post_attach): Call linux_init_ptrace.
4005 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4006 (linux_child_follow_fork): Call linux_supports_tracefork
4007 and linux_supports_tracevforkdone.
4008 (linux_child_insert_fork_catchpoint): Call
4009 linux_supports_tracefork.
4010 (linux_child_insert_vfork_catchpoint): Likewise.
4011 (linux_child_set_syscall_catchpoint): Call
4012 linux_supports_tracesysgood.
4013 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4014 * nat/linux-nat.h: New file.
4015 * nat/linux-waitpid.c: New file.
4016 * nat/linux-waitpid.h: New file.
4018 2013-08-22 Samuel Bronson <naesten@gmail.com>
4020 ARM Linux support for `catch syscall'.
4021 * syscalls/arm-linux.py: New file.
4022 * syscalls/arm-linux.xml: Likewise.
4023 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4024 (arm_linux_init_abi): Register the new function and syscall xml file.
4025 * data-directory/Makefile.in: Install the new syscall xml file.
4026 * NEWS: Brag about this.
4028 2013-08-22 Pedro Alves <palves@redhat.com>
4031 * corefile.c (target_xfer_memory_error): New function.
4032 (memory_error): Defer EIO to target_memory_error.
4033 (read_memory): Use target_xfer_partial, and handle finer-grained
4035 * target.c (target_xfer_error_to_string): New function.
4036 (memory_xfer_partial_1): If memory is known to be
4037 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4038 (target_xfer_partial): Make extern.
4039 * target.h (enum target_xfer_error): New enum.
4040 (target_xfer_error_to_string): Declare function.
4041 (target_xfer_partial): Declare function.
4042 (struct target_ops) <xfer_partial>: Adjust describing comment.
4044 2013-08-22 Alan Modra <amodra@gmail.com>
4046 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4047 * configure.tgt: Likewise as targets.
4049 2013-08-20 Doug Evans <dje@google.com>
4051 * buildsym.c (subfile_stack): Move here from buildsym.h.
4052 (pending_macros): Ditto.
4053 (get_macro_table): New function.
4054 (buildsym_init): Initialize subfile_stack.
4055 * coffread.c (type_vector,type_vector_length): Moved here from
4057 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4058 (coff_symtab_read): Use it.
4059 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4060 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4061 with call to get_macro_table.
4062 * stabsread.c (type_vector,type_vector_length): Moved here from
4064 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4065 * buildsym.h (get_macro_table): Declare.
4067 2013-08-20 Tom Tromey <tromey@redhat.com>
4069 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4071 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4073 2013-08-20 Doug Evans <dje@google.com>
4075 * blockframe.c: Remove #include "psymtab.h".
4076 * cp-support.c: Ditto.
4080 2013-08-20 Tom Tromey <tromey@redhat.com>
4083 * exceptions.h (return_mask): Now an enum.
4084 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4087 2013-08-20 Tom Tromey <tromey@redhat.com>
4089 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4091 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4092 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4093 * jit.c (jit_object_close_impl): Update.
4094 * jv-lang.c (get_dynamics_objfile): Update.
4095 * linespec.c (add_minsym): Use get_dynamics_objfile.
4096 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4097 (allocate_objfile): Don't initialize 'gdbarch' field.
4098 (get_objfile_arch): Update.
4099 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4101 (struct objfile) <gdbarch>: ... here. Remove.
4102 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4104 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4106 2013-08-20 Alan Modra <amodra@gmail.com>
4108 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4109 for IBM long double nan and inf.
4110 (floatformat_is_negative, floatformat_classify,
4111 floatformat_mantissa): Similarly.
4112 (floatformat_ieee_single, floatformat_ieee_double,
4113 floatformat_ieee_quad, floatformat_arm_ext,
4114 floatformat_ia64_spill): Delete unused vars.
4115 (_initialize_doublest): Delete unused function.
4116 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4117 little-endian variants of floatformat_ibm_long_double.
4119 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4121 * Makefile.in (SFILES): Remove common/target-common.c and
4122 add target/waitstatus.c.
4123 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4124 target/resume.h, target/wait.h and target/waitstatus.h.
4125 (COMMON_OBS): Remove target-common.o and add
4127 (target-common.o): Remove.
4128 (waitstatus.o): New target object file.
4129 * common/target-common.c: Move contents to
4130 target/waitstatus.c and remove.
4131 * common/target-common.h: Move contents to other files and
4133 (enum resume_kind: Move to target/resume.h.
4134 (TARGET_WNOHANG): Move to target/wait.h.
4135 (enum target_waitkind): Move to target/waitstatus.h.
4136 (struct target_waitstatus): Likewise.
4137 * target.h: Do not include target-common.h and
4138 include target/resume.h, target/wait.h and
4139 target/waitstatus.h.
4140 * target/resume.h: New file.
4141 * target/wait.h: New file.
4142 * target/waitstatus.h: New file.
4143 * target/waitstatus.c: New file.
4145 2013-08-19 Pedro Alves <palves@redhat.com>
4147 * linux-nat.c (linux_test_for_tracefork)
4148 (linux_test_for_tracesysgood, linux_child_follow_fork)
4149 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4150 (linux_nat_wait_1): Extend comment.
4151 (linux_async_pipe): Add comment.
4153 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4155 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4156 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4157 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4158 Update to account for fact that PC is now a pseudo-register.
4159 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4160 cases for RL78_PC_REGNUM.
4162 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4165 * top.c (quit_force): Skip writing history file
4166 if input is not from terminal.
4168 2013-08-14 Tom Tromey <tromey@redhat.com>
4170 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4171 resultthreadlist>: New fields.
4172 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4173 (remote_get_threadlist, remote_threadlist_iterator): Use
4174 new fields. Remove static variables.
4176 2013-08-14 Tom Tromey <tromey@redhat.com>
4178 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4179 remote_watch_data_address>: New fields.
4180 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4181 (process_stop_reply, remote_wait_as)
4182 (remote_check_watch_resources, remote_stopped_data_address): Update.
4184 2013-08-14 Tom Tromey <tromey@redhat.com>
4186 * remote.c (struct remote_state) <async_client_callback,
4187 async_client_context>: New fields.
4188 (async_client_callback, async_client_context): Remove.
4189 (remote_async_serial_handler, remote_async): Update.
4191 2013-08-14 Tom Tromey <tromey@redhat.com>
4193 * remote.c (sizeof_pkt): Remove.
4194 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4196 2013-08-14 Tom Tromey <tromey@redhat.com>
4198 * remote.c (struct remote_state) <use_threadinfo_query,
4199 use_threadextra_query>: New fields.
4200 (remote_threads_info, remote_threads_extra_info)
4201 (remote_open_1): Update.
4203 2013-08-14 Tom Tromey <tromey@redhat.com>
4205 * remote.c (struct remote_state) <finished_object,
4206 finished_annex, finished_offset>: New fields.
4207 (remote_read_qxfer): Use remote_state fields; remove static
4210 2013-08-14 Tom Tromey <tromey@redhat.com>
4212 * remote.c (struct remote_state) <last_sent_step>:
4214 (last_sent_step): Remove.
4215 (remote_resume, remote_wait_as): Update.
4217 2013-08-14 Tom Tromey <tromey@redhat.com>
4219 * remote.c (struct remote_state) <last_sent_signal>:
4221 (last_sent_signal): Remove.
4222 (new_remote_state, remote_resume, remote_wait_as): Update.
4224 2013-08-14 Tom Tromey <tromey@redhat.com>
4226 * remote.c (struct remote_state) <last_program_signals_packet>:
4228 (last_program_signals_packet): Remove.
4229 (remote_program_signals, remote_open_1): Update.
4231 2013-08-14 Tom Tromey <tromey@redhat.com>
4233 * remote.c (struct remote_state) <last_pass_packet>:
4235 (last_pass_packet): Remove.
4236 (remote_pass_signals, remote_open_1): Update.
4238 2013-08-14 Tom Tromey <tromey@redhat.com>
4240 * remote.c (struct remote_state) <remote_traceframe_number>:
4242 (remote_traceframe_number): Remove.
4243 (new_remote_state, remote_open_1, set_remote_traceframe)
4244 (remote_trace_find): Update.
4246 2013-08-14 Tom Tromey <tromey@redhat.com>
4248 * remote.c (struct remote_state) <general_thread, continue_thread>:
4250 (general_thread, continue_thread): Remove.
4251 (record_currthread, set_thread, set_general_process)
4252 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4253 (extended_remote_mourn_1): Update.
4255 2013-08-14 Tom Tromey <tromey@redhat.com>
4257 * remote.c (struct remote_state) <remote_desc>: New field.
4258 (remote_desc): Remove.
4259 (remote_threads_info, remote_threads_extra_info, remote_close)
4260 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4261 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4262 (remote_hostio_send_command, remote_file_put, remote_file_get)
4263 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4264 (remote_async, remote_new_objfile, set_range_stepping): Update.
4266 2013-08-14 Tom Tromey <tromey@redhat.com>
4268 * remote.c (remote_state): Now a pointer.
4269 (get_remote_state_raw): Update.
4270 (new_remote_state): New function.
4271 (_initialize_remote): Use new_remote_state.
4273 2013-08-14 Tom Tromey <tromey@redhat.com>
4275 * remote.c (remote_protocol_features): Now const.
4277 2013-08-14 Tom Tromey <tromey@redhat.com>
4279 * remote.c (crc32_table, crc32): Remove.
4280 (remote_verify_memory): Use xcrc32.
4282 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4284 * value.h (create_internalvar_type_lazy): Adjust prototype
4287 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4289 * common/format.c (parse_format_string): Don't allow '#' flag for
4290 pointer arguments in format string.
4292 2013-08-13 Pierre Muller <muller@sourceware.org>
4294 * utils.c (init_page_info): Only call tgetnum function
4295 if rl_get_screen_size did not return useful values.
4297 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4299 PR breakpoints/15117
4300 * linespec.c (linespec_parse_basic): Check for convenience
4301 variable or history value while parsing.
4303 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4305 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4307 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4308 different signals between the generic Linux kernel implementation
4310 (avr_linux_gdb_signal_from_target): Delete.
4311 (avr_linux_gdb_signal_to_target): Delete.
4312 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4314 2013-08-09 Doug Evans <dje@google.com>
4316 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4319 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4321 * linux-tdep.c: Define enum with generic signal numbers.
4322 (linux_gdb_signal_from_target): New function.
4323 (linux_gdb_signal_to_target): Likewise.
4324 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4325 methods to the functions above.
4326 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4327 (linux_gdb_signal_to_target): Likewise.
4328 * alpha-linux-tdep.c: Define new enum with signals different
4329 from generic Linux kernel.
4330 (alpha_linux_gdb_signal_from_target): New function.
4331 (alpha_linux_gdb_signal_to_target): Likewise.
4332 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4333 with the functions mentioned above.
4334 * avr-tdep.c: Define enum with differences between Linux kernel
4336 (avr_linux_gdb_signal_from_target): New function.
4337 (avr_linux_gdb_signal_to_target): Likewise.
4338 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4339 the functions mentioned above.
4340 * sparc-linux-tdep.c: Define enum with differences between SPARC
4341 and generic Linux kernel signal numbers.
4342 (sparc32_linux_gdb_signal_from_target): New function.
4343 (sparc32_linux_gdb_signal_to_target): Likewise.
4344 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4345 to the functions defined above.
4346 * xtensa-linux-tdep.c: Define enum with differences between
4347 Xtensa and Linux kernel generic signals.
4348 (xtensa_linux_gdb_signal_from_target): New function.
4349 (xtensa_linux_gdb_signal_to_target): Likewise.
4350 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4351 to the functions defined above.
4352 * mips-linux-tdep.c: Define enum with differences between
4353 signals in MIPS and Linux kernel generic ones.
4354 (mips_gdb_signal_to_target): New function.
4355 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4356 only different signals from the Linux kernel generic.
4357 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4358 the functions defined above.
4359 * mips-linux-tdep.h (enum mips_signals): Remove.
4361 2013-08-09 Pedro Alves <palves@redhat.com>
4363 * avr-tdep.c (XMALLOC): Delete macro.
4364 * cli/cli-dump.c (XMALLOC): Delete macro.
4366 2013-08-09 Pedro Alves <palves@redhat.com>
4368 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4369 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4370 (fopen_with_cleanup, add_dump_command): Make static.
4371 * cli/cli-dump.h: Delete file.
4372 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4375 2013-08-09 Pedro Alves <palves@redhat.com>
4377 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4380 2013-08-09 Pedro Alves <palves@redhat.com>
4382 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4385 2013-08-09 Pedro Alves <palves@redhat.com>
4387 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4388 (gcore_command): Use tilde_expand here, and when showing the
4389 filename to the user, show the expanded version.
4391 2013-08-09 Yao Qi <yao@codesourcery.com>
4393 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4396 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4398 * gcore.c (create_gcore_bfd): Use tilde_expand.
4400 2013-08-08 Yao Qi <yao@codesourcery.com>
4402 * frame.h (read_frame_local): Declare.
4403 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4405 * stack.c (read_frame_local): New.
4407 2013-08-08 Yao Qi <yao@codesourcery.com>
4409 * mi/mi-cmd-stack.c: Update comments to function
4410 list_args_or_locals.
4412 2013-08-07 Tom Tromey <tromey@redhat.com>
4415 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4416 (process_psymtab_comp_unit_reader): Use it.
4417 (process_psymtab_comp_unit): Update. Add "pretend_language"
4419 (dwarf2_build_psymtabs_hard): Update.
4420 (scan_partial_symbols): Pass CU's language to
4421 process_psymtab_comp_unit.
4423 2013-08-07 Tom Tromey <tromey@redhat.com>
4425 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4426 (dwarf2_gdb_index_functions): Update.
4427 * psymtab.c (find_symbol_file_from_partial): Remove.
4428 (psym_functions): Update.
4429 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4432 2013-08-07 Tom Tromey <tromey@redhat.com>
4434 * symfile.c (set_initial_language): Look up "main" symbol
4435 and use its language.
4436 * symtab.c (find_main_filename): Remove.
4437 * symtab.h (find_main_filename): Remove.
4439 2013-08-07 Tom Tromey <tromey@redhat.com>
4441 * dwarf2read.c (recursively_compute_inclusions): Add
4442 "immediate_parent" argument. Set symtab's "user" field
4444 (compute_symtab_includes): Update.
4446 2013-08-07 Tom Tromey <tromey@redhat.com>
4448 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4449 when adding label symbols.
4451 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4452 Ulrich Weigand <uweigand@de.ibm.com>
4454 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4455 * configure.host (powerpc64-*-aix*): Likewise.
4457 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4458 Ulrich Weigand <uweigand@de.ibm.com>
4460 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4462 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4463 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4464 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4465 * configure.ac: Check for ptrace64.
4466 * configure, config.in: Regenerate.
4468 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4469 Ulrich Weigand <uweigand@de.ibm.com>
4471 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4472 Call ptrace64 instead of ptrace if defined.
4473 Add macro addr_ptr to take care of ptrace address argument.
4474 (pdc_read_regs): Likewise.
4475 (pdc_write_regs): Likewise.
4476 (aix_thread_resume): Likewise.
4477 (fetch_regs_kernel_thread): Likewise.
4478 (store_regs_kernel_thread): Likewise.
4480 2013-08-07 Anton Blanchard <anton@samba.org>
4482 * MAINTAINERS: Add myself to Write After Approval.
4484 2013-08-05 Tom Tromey <tromey@redhat.com>
4486 * aix-thread.c (_initialize_aix_thread): Use
4487 complete_target_initialization.
4488 * bsd-uthread.c (_initialize_bsd_uthread): Use
4489 complete_target_initialization.
4490 * dec-thread.c (_initialize_dec_thread): Use
4491 complete_target_initialization.
4492 * ravenscar-thread.c (_initialize_ravenscar): Use
4493 complete_target_initialization.
4494 * sol-thread.c (_initialize_sol_thread): Use
4495 complete_target_initialization.
4496 * spu-multiarch.c (_initialize_spu_multiarch): Use
4497 complete_target_initialization.
4499 2013-08-05 Tom Tromey <tromey@redhat.com>
4501 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4502 * ada-lang.c (ada_lookup_simple_minsym): Return
4503 bound_minimal_symbol.
4504 * ada-lang.h (ada_lookup_simple_minsym): Update.
4505 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4506 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4507 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4508 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4509 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4510 * minsyms.c (msymbol_objfile): Remove.
4511 (lookup_minimal_symbol_internal): New function, from
4512 lookup_minimal_symbol.
4513 (lookup_minimal_symbol): Rewrite using
4514 lookup_minimal_symbol_internal.
4515 (lookup_bound_minimal_symbol): New function.
4516 * minsyms.h (msymbol_objfile): Remove.
4517 (lookup_bound_minimal_symbol): Declare.
4518 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4519 * parse.c (write_exp_msymbol): Change parameter to a
4520 bound_minimal_symbol.
4521 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4522 * parser-defs.h (write_exp_msymbol): Update.
4523 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4524 * symfile.c (simple_read_overlay_table): Use
4525 lookup_bound_minimal_symbol.
4526 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4527 (search_symbols): Likewise.
4528 (print_msymbol_info): Take a bound_minimal_symbol argument.
4529 (symtab_symbol_info, rbreak_command): Update.
4530 * symtab.h (struct symbol_search) <msymbol>: Change type
4531 to bound_minimal_symbol.
4532 * valops.c (find_function_in_inferior): Use
4533 lookup_bound_minimal_symbol.
4534 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4536 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4539 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4541 (async_cleanup_sigint_signal_handler): ... this.
4542 (initialize_sigint_signal_handler): Remove declaration.
4543 (handle_remote_sigint): Rename the declaration to ...
4544 (async_handle_remote_sigint): ... this.
4545 (handle_remote_sigint_twice): Rename the declaration to ...
4546 (async_handle_remote_sigint_twice): ... this.
4547 (async_remote_interrupt, async_remote_interrupt_twice)
4548 (remote_interrupt): Remove the declarations.
4549 (remote_interrupt_twice): Rename the declaration ...
4550 (sync_remote_interrupt_twice): ... this.
4551 (sigint_remote_twice_token): Rename the variable to ...
4552 (async_sigint_remote_twice_token): ... this.
4553 (sigint_remote_token): Rename the variable to ...
4554 (async_sigint_remote_token): ... this.
4555 (initialize_sigint_signal_handler): Rename the function to ...
4556 (async_initialize_sigint_signal_handler): ... this. Update the name
4558 (handle_remote_sigint): Rename the function to ...
4559 (async_handle_remote_sigint): ... this. Update the names inside.
4560 (handle_remote_sigint_twice): Rename the function to ...
4561 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4562 (cleanup_sigint_signal_handler): Rename the function to ...
4563 (async_cleanup_sigint_signal_handler): ... this.
4564 (remote_interrupt): Rename the function to ...
4565 (sync_remote_interrupt): this. Update the names inside.
4566 (remote_interrupt_twice): Rename the function to ...
4567 (sync_remote_interrupt_twice): this. Update the names inside.
4568 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4569 (_initialize_remote): Update the names inside.
4571 2013-08-02 Tom Tromey <tromey@redhat.com>
4574 * breakpoint.c (update_watchpoint, watchpoint_check)
4575 (watch_command_1): Update.
4576 * eval.c (fetch_subexp_value): Add "preserve_errors"
4578 * ppc-linux-nat.c (check_condition): Update.
4579 * value.h (fetch_subexp_value): Update.
4581 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4583 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4586 2013-08-01 Doug Evans <dje@google.com>
4589 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4590 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4591 Add assert of sig_entry->dwo_unit == NULL.
4592 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4593 had already been read.
4594 (read_signatured_type): Set per_cu.tu_read.
4597 * valops.c (value_struct_elt): Add missing call to check_typedef.
4598 (value_find_oload_method_list): Ditto.
4600 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4601 effectively, struct symbol_search **.
4602 (make_cleanup_free_search_symbols): Change arg to struct
4603 symbol_search **. All callers updated.
4604 (compare_search_syms): Compare symtab file name and block as well.
4605 (search_symbols_equal): New function.
4606 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4607 New args new_head, new_tail. Result is now void. Remove dups after
4608 sorting the symbols.
4609 (search_symbols): Sort all found symbols once, after all have been
4610 found, and remove duplicates. Simplify cleanup tracking of result.
4611 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4613 Further workarounds for binutils/15021.
4614 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4615 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4616 Watch for duplicate symtabs coming from type units.
4617 (compute_symtab_includes): Update call to
4618 recursively_compute_inclusions. Build vector of included symtabs
4620 * symtab.h (symtab_ptr): New typedef.
4621 (DEF_VEC_P (symtab_ptr)): New VEC type.
4622 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4625 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4627 * cli/cli-script.c (script_from_file): Remove use of
4629 * main.c (captured_main): Remove use of error_pre_print and
4631 * utils.c (error_pre_print, quit_pre_print): Remove.
4632 * utils.h (error_pre_print, quit_pre_print): Likewise.
4634 2013-08-01 Yao Qi <yao@codesourcery.com>
4636 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4638 (mi_cmd_stack_list_variables): Likewise.
4640 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4642 * exceptions.c (deprecated_throw_reason): Remove.
4643 * exceptions.h (deprecated_throw_reason): Remove.
4645 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4647 * remote-mips.c (mips_error): Replace use of
4648 deprecated_throw_reason with throw_verror. Use the error message
4649 passed to mips_error as the error message for throw_verror.
4651 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4653 * monitor.c (monitor_interrupt_query): Replace use of
4654 deprecated_throw_reason with quit.
4655 * nto-procfs.c (interrupt_query): Likewise.
4656 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4657 * remote-mips.c (mips_kill): Likewise.
4658 * remote.c (interrupt_query): Likewise.
4660 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4662 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4665 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4666 Yao Qi <yao@codesourcery.com>
4668 * tracepoint.c (trace_dump_command): Select the current frame.
4670 2013-07-30 Doug Evans <dje@google.com>
4672 * dwarf2read.c (process_queue): Add type signature to debug output.
4674 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4676 * value.c (value_fetch_lazy): Mark optimized out values as such
4677 rather than raising an error.
4679 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4681 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4682 before checking which bits of the parent, not the child, value are
4685 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4688 * top.c: Include "filenames.h".
4689 (set_history_filename): New function.
4690 (init_main): Install it as set hook of the "set history filename"
4693 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4695 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4696 attribute parameter.
4697 (dwarf2_const_value_data): Constify struct attribute parameter.
4698 (dwarf2_const_value): Constify struct attribute parameter.
4699 (dwarf2_const_value_attr): Constify struct attribute parameter.
4700 (lookup_die_type): Constify struct attribute parameter.
4701 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4702 (follow_die_ref_or_sig): Constify struct attribute parameter.
4703 (follow_die_ref): Constify struct attribute parameter.
4704 (follow_die_sig): Constify struct attribute parameter.
4705 (get_DW_AT_signature_type): Constify struct attribute parameter.
4706 (get_type_unit_group): Constify struct attribute parameter.
4707 (fill_in_loclist_baton): Constify struct attribute parameter.
4708 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4709 (type_unit_group): Constify struct attribute parameter.
4711 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4713 * dwarf2read.c (attr_form_is_block): Make argument const.
4714 (attr_form_is_section_offset): Make argument const.
4715 (attr_form_is_constant): Make argument const.
4716 (attr_form_is_ref): Make argument const.
4718 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4720 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4722 (attr_form_is_ref): Moved below attr_form_is_constant.
4724 2013-07-29 Doug Evans <dje@google.com>
4726 * main.c (captured_command_loop): Tweak comment.
4728 * target.c (target_async_permitted_1): Fix comment.
4730 * symtab.c (iterate_over_some_symtabs): Add comment.
4732 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4734 2013-07-27 Yao Qi <yao@codesourcery.com>
4736 * NEWS: Mention that GDBserver now supports hardware
4737 watchpoints on the MIPS GNU/Linux target.
4739 2013-07-27 Yao Qi <yao@codesourcery.com>
4741 * Makefile.in (HFILES_NO_SRCDIR): Add
4742 common/mips-linux-watch.h.
4743 (mips-linux-watch.o): New rule.
4744 * common/mips-linux-watch.c: New.
4745 * common/mips-linux-watch.h: New.
4746 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4747 * mips-linux-nat.c: Include mips-linux-watch.h.
4748 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4749 to common/mips-linux-watch.h.
4750 (MAX_DEBUG_REGISTER): Likewise.
4751 (enum pt_watch_style): Likewise.
4752 (struct mips32_watch_regs): Likewise.
4753 (struct mips64_watch_regs): Likewise.
4754 (struct pt_watch_regs): Likewise.
4755 (struct mips_watchpoint): Likewise.
4756 (mips_linux_watch_get_irw_mask): Move to
4757 common/mips-linux-watch.c.
4758 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4759 (mips_linux_watch_get_watchlo): Likewise.
4760 (mips_linux_watch_set_watchlo): Likewise.
4761 (mips_linux_watch_get_watchhi): Likewise.
4762 (mips_linux_watch_set_watchhi): Likewise.
4763 (mips_linux_read_watch_registers): Likewise.
4764 (mips_linux_watch_type_to_irw): Likewise.
4765 (mips_linux_stopped_data_address, fill_mask): Likewise.
4766 (mips_linux_watch_try_one_watch): Likewise.
4767 (mips_linux_watch_populate_regs): Likewise.
4769 2013-07-27 Yao Qi <yao@codesourcery.com>
4771 * mips-linux-nat.c (get_irw_mask): Rename to ...
4772 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4773 'set' to 'n'. Update function comment. All callers changed.
4774 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4775 function comment. All callers changed.
4776 (get_num_valid): Rename to ...
4777 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4778 'set' to 'n'. Update function comment. All callers changed.
4779 (get_watchlo): Rename to ...
4780 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4781 'set' to 'n'. Update function comment. All callers changed.
4782 (set_watchlo): Rename to ...
4783 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4784 'set' to 'n'. Update function comment. All callers changed.
4785 (get_watchhi): Rename to ...
4786 (mips_linux_watch_get_watchhi): ... this. Update function
4787 comment. All callers changed.
4788 (set_watchhi): Rename to ...
4789 (mips_linux_watch_set_watchhi): ... this. Update function
4790 comment. All callers changed.
4791 (mips_linux_read_watch_registers): Update function comment.
4792 Add new parameters 'lwpid', 'watch_readback', and
4793 'watch_readback_valid'. Update.
4794 (type_to_irw): Rename to ...
4795 (mips_linux_watch_type_to_irw): ... this. Update function
4796 comment. All callers changed.
4797 (fill_mask): Update function comment.
4798 (try_one_watch): Rename to ...
4799 (mips_linux_watch_try_one_watch): ... this. Change the type
4800 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4801 (populate_regs_from_watches): Rename to ...
4802 (mips_linux_watch_populate_regs): ... this. Add parameter
4803 'current_watches'. All callers changed.
4805 2013-07-27 Yao Qi <yao@codesourcery.com>
4807 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4809 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4810 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4811 (struct pt_watch_regs): Likewise.
4812 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4813 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4814 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4815 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4816 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4818 2013-07-27 Yao Qi <yao@codesourcery.com>
4820 * breakpoint.h: Include break-common.h.
4821 (enum target_hw_bp_type): Move to ...
4822 * common/break-common.h: ... here. New.
4824 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4826 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4827 process group regardless of having tty on stdin.
4829 2013-07-25 Doug Evans <dje@google.com>
4831 * linux-fork.h (detach_fork): Delete.
4833 2013-07-25 Tom Tromey <tromey@redhat.com>
4835 PR remote/15256, PR remote/15266:
4836 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4837 * monitor.c (monitor_detach): Use unpush_target.
4838 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4839 * remote-mips.c (mips_detach): Use unpush_target. Don't
4841 * remote-sim.c (gdbsim_detach): Use unpush_target.
4842 * target.c (pop_target): Remove.
4843 (pop_all_targets_above): Don't call target_close.
4844 (target_close): Assert that the target is unpushed.
4845 * target.h (pop_target): Don't declare.
4846 * tracepoint.c (tfile_open): Use unpush_target.
4848 2013-07-25 Tom Tromey <tromey@redhat.com>
4850 * linux-thread-db.c (init_thread_db_ops): Call
4851 complete_target_initialization.
4852 (_initialize_thread_db): Don't call add_target.
4853 * target.c (complete_target_initialization): New function.
4854 (add_target_with_completer): Call it.
4855 * target.h (complete_target_initialization): Declare.
4857 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4859 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4860 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4861 (HPPANBSD_SIZEOF_GREGS): New define.
4862 (hppaobsd_supply_gregset): Handle additional registers.
4863 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4864 we provide more registers now.
4865 (hppabsd_supply_gregset): Supply additional registers.
4866 (hppabsd_collect_gregset): Collect additional registers.
4868 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4870 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4871 (hppabsd_dwarf2_frame_init_reg): New function.
4872 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4874 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4876 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4877 'z' format code. Remove error for optimized out values, standard
4878 code will handle these fine.
4880 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4882 * NEWS: Mention new 'z' formatter.
4883 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4884 (_initialize_printcmd): Mention 'z' formatter in help text of the
4887 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4889 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4892 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4894 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4895 interface can evaluate arguments. Fallback to the old mode if it
4897 (create_exception_master_breakpoint): Likewise.
4898 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4899 (struct sym_probe_fns elf_probe_fns): Export function above to the
4901 * probe.c (can_evaluate_probe_arguments): New function.
4902 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4904 (can_evaluate_probe_arguments): New function prototype.
4905 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4906 probe interface can evaluate arguments. Fallback to the old mode
4908 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4909 interface can evaluate arguments. Warning the user if it cannot.
4910 (stap_can_evaluate_probe_arguments): New function.
4911 (struct probe_ops stap_probe_ops): Export function above to the
4913 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4914 New function pointer.
4916 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4918 * Makefile.in (SFILES): Add common/target-common.c.
4919 Add common/target-common.h to headers.
4920 (COMMON_OBS): Add target-common.o.
4921 (target-common.o): New target.
4922 * linux-nat.h (resume_kind): Move to common/target-common.h.
4923 * target.c (target_waitstatus_to_string): Move to
4924 common/target-common.c.
4925 * target.h: Include target-common.h.
4926 (target_waitkind): Move to common/target-common.h.
4927 (target_waitstatus): Likewise.
4928 (TARGET_WNOHANG): Likewise.
4929 * common/target-common.c: New file.
4930 * common/target-common.h: New file.
4932 2013-07-24 Doug Evans <dje@google.com>
4934 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4937 2013-07-23 Yao Qi <yao@codesourcery.com>
4939 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4940 parameter 'gdbarch'.
4941 (i386_stack_tramp_frame_sniffer): Caller update.
4942 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4943 parameter 'gdbarch' and 'target'.
4944 (i386_linux_core_read_description): Caller update.
4945 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4947 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4950 2013-07-23 Tom Tromey <tromey@redhat.com>
4952 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4955 2013-07-22 Doug Evans <dje@google.com>
4957 * exec.h (remove_target_sections): Delete arg abfd.
4958 * exec.c (exec_close): Update call to remove_target_sections.
4959 (remove_target_sections): Delete arg abfd.
4960 * solib.c (update_solib_list): Ditto.
4961 (reload_shared_libraries_1): Ditto.
4962 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4963 * target.h (struct target_section): Rename key to owner.
4966 2013-07-22 Tom Tromey <tromey@redhat.com>
4968 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4970 2013-07-22 Tom Tromey <tromey@redhat.com>
4972 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4973 Simplify cleanup handling.
4975 2013-07-22 Tom Tromey <tromey@redhat.com>
4977 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4978 on all return paths.
4980 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4982 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4983 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4984 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4986 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4988 * top.c (print_gdb_version): Add help, apropos description and
4989 url to online documentation.
4991 2013-07-19 Hui Zhu <hui@codesourcery.com>
4994 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4996 2013-07-19 Yao Qi <yao@codesourcery.com>
4998 * target.c (update_current_target): Change the default action
4999 of 'to_traceframe_info' from tcomplain to return_zero.
5000 * target.h (struct target_ops) <to_traceframe_info>: Add more
5002 * valops.c (read_value_memory): Call
5003 traceframe_available_memory unconditionally.
5005 2013-07-18 Yao Qi <yao@codesourcery.com>
5007 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5008 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5009 symbol without prefix. If found, set its type to
5010 'mst_solib_trampoline'.
5012 2013-07-17 Doug Evans <dje@google.com>
5014 * NEWS: Mention "set print raw frame-arguments".
5015 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5016 * stack.c (print_raw_frame_arguments): New static global.
5017 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5018 (_initialize_stack): New command "set/show print raw frame-arguments".
5019 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5020 (set_print_raw, show_print_raw): New functions.
5021 (_initialize_valprint): New prefix command "set/show print raw".
5022 * valprint.h (value_print_options): Improve comments.
5024 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5025 of all *list variables.
5027 * gdbcmd.h (togglelist): Delete.
5028 * cli/cli-cmds.c (togglelist): Delete.
5029 (init_cmd_lists): Update.
5030 * cli/cli-cmds.h (togglelist): Delete.
5032 2013-07-17 Tom Tromey <tromey@redhat.com>
5034 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5037 2013-07-16 Doug Evans <dje@google.com>
5039 * nto-tdep.c (nto_relocate_section_addresses): Update,
5040 target_section.bfd deleted.
5041 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5042 * s390-tdep.c (s390_load): Ditto.
5043 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5045 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5047 * common/format.c (parse_format_string): Add checks for NULL
5048 character before calling strchr.
5050 2013-07-16 Doug Evans <dje@google.com>
5052 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5053 temp_pathname argument.
5054 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5055 when opening the file fails.
5057 * target.h (struct target_section): Delete member bfd.
5058 All users updated to use the_bfd_section->owner instead.
5059 * exec.c (add_to_section_table): Assert bfd is expected value.
5060 Remove initialization of target_section.bfd.
5061 (remove_target_sections): Update.
5062 (section_table_available_memory): Update.
5063 (section_table_xfer_memory_partial): Update.
5064 (print_section_info): Update.
5065 (exec_set_section_address): Update.
5066 * record-full.c (record_full_core_xfer_partial): Update.
5067 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5068 * solib-target.c (solib_target_relocate_section_addresses): Update.
5069 * symfile.c (build_section_addr_info_from_section_table): Update.
5070 * target.c (memory_xfer_live_readonly_partial): Update.
5071 (memory_xfer_partial_1): Update.
5073 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5075 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5076 now available for embedded (BookE) and server (BookS) processors,
5077 correct mentions of 'booke' and adjust comments accordingly in order to
5078 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5079 (have_ptrace_booke_interface): Rename function and variable
5080 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5081 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5082 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5083 'hwdebug_point_cmp'. Update all uses.
5084 (booke_find_thread_points_by_tid): Rename function
5085 'booke_find_thread_points_by_tid' to
5086 'hwdebug_find_thread_points_by_tid'. Update all uses.
5087 (booke_insert_point): Rename function 'booke_insert_point' to
5088 'hwdebug_insert_point'. Update all uses.
5089 (booke_remove_point): Rename function 'booke_remove_point' to
5090 'hwdebug_remove_point'. Update all uses.
5092 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5094 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5095 numbers with enum values.
5097 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5100 * thread.c (thread_apply_all_command): Check for valid threads
5102 (thread_array_cleanup): New struct.
5103 (set_thread_refcount): New function.
5105 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5107 * infcmd.c (default_print_one_register_info): Reuse function
5110 2013-07-10 Tom Tromey <tromey@redhat.com>
5112 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5113 (ada-exp.o): New target.
5115 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5117 * mt-tdep.c (mt_registers_info): Call
5118 get_no_prettyformat_print_options instead of
5119 get_raw_print_options (regression by last patch from Doug
5122 2013-07-09 Pedro Alves <palves@redhat.com>
5124 Checked in by Joel Brobecker <brobecker@adacore.com>.
5125 * ada-lang.c (coerce_unspec_val_to_type): Use
5126 value_optimized_out_const.
5127 * value.c (value_optimized_out_const): New function.
5128 * value.h (value_optimized_out_const): New declaration.
5130 2013-07-09 Doug Evans <dje@google.com>
5132 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5133 Enum values rename as well. All uses updated.
5134 * valprint.h (value_print_options): Rename member pretty to
5135 pretty format. Rename member prettyprint_arrays to
5136 prettyformat_arrays. Rename member prettyprint_structs to
5137 prettyformat_structs. All uses updated.
5138 (get_no_prettyformat_print_options): Renamed from
5139 get_raw_print_options.
5140 * valprint.c (get_no_prettyformat_print_options): Renamed from
5141 get_raw_print_options. All callers updated.
5142 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5143 All callers updated.
5144 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5145 All callers updated.
5146 (_initialize_valprint): Improve help text for "set print pretty" and
5149 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5151 * value.c (value_bits_valid): Revert previous change, and change
5152 by Pedro on 2013-07-04, due to regressions in
5153 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5155 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5156 Pedro Alves <palves@redhat.com>
5158 * value.c (value_bits_valid): If the value is not lval_computed
5159 or has no check validity handler then the answer is the
5160 optimized_out flag, otherwise defer to the handler.
5162 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5164 * top.c (print_gdb_configuration): Explain in output of
5165 --configuration what does "relocatable" mean.
5167 * main.c (print_gdb_help): Regroup options in the --help text.
5168 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5169 the relevant discussions.
5171 2013-07-06 Yao Qi <yao@codesourcery.com>
5173 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5174 Remove parameter 'lsal'.
5175 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5176 to inner block. Caller update.
5177 (base_breakpoint_create_breakpoints_sal): Update.
5178 (bkpt_create_breakpoints_sal): Likewise.
5179 (tracepoint_create_breakpoints_sal): Likewise.
5180 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5181 element 0 of vector 'canonical->sals'.
5183 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5185 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5186 register number instead of the pseudo register one.
5187 (rs6000_dwarf2_reg_to_regnum): Likewise.
5189 2013-07-04 Pedro Alves <palves@redhat.com>
5191 * findvar.c (value_of_register): Use allocate_optimized_out_value
5192 if the register has been optimized out, instead of
5193 set_value_optimized_out.
5194 * frame-unwind.c (frame_unwind_got_optimized): Use
5195 allocate_optimized_out_value.
5197 2013-07-04 Pedro Alves <palves@redhat.com>
5199 * value.c (value_bits_valid): If the value is not lval_computed,
5200 or doesn't have a check_validity hook, assume the value is entirely
5203 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5205 * stack.c (read_frame_arg): No longer fetch lazy values.
5206 * value.c (value_optimized_out): If the value is not already
5207 marked optimized out, and is lazy then fetch it.
5208 (value_primitive_field): Move optimized out check to later in the
5209 function, after we have loaded any lazy values.
5210 (value_fetch_lazy): Use optimized out flag directly rather than
5211 calling optimized_out method.
5213 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5215 * valops.c: Don't include "user-regs.h".
5216 (value_fetch_lazy): Moved to value.c.
5217 * value.c: Include "user-regs.h".
5218 (value_fetch_lazy): Moved from valops.c.
5220 2013-07-04 Yao Qi <yao@codesourcery.com>
5223 2013-06-27 Yao Qi <yao@codesourcery.com>
5225 * common/create-version.sh: Update comments. Handle the case
5226 that TARGET_ALIAS is empty.
5228 2013-07-03 Pedro Alves <palves@redhat.com>
5230 * Makefile.in (config.status): Depend on development.sh.
5231 (aclocal_m4_deps): Add libmcheck.m4.
5232 * acinclude.m4: Include libmcheck.m4.
5233 * configure.ac: Source development.sh instead of setting
5234 'development' here. --enable-libmcheck/--disable-libmcheck code
5235 factored out to GDB_AC_LIBMCHECK. Run it.
5236 * development.sh: New file.
5237 * libmcheck.m4: New file.
5238 * configure: Regenerate.
5240 2013-07-02 Tom Tromey <tromey@redhat.com>
5242 * contrib/ari/update-web-ari.sh: Update for version.in change.
5244 2013-07-02 Tom Tromey <tromey@redhat.com>
5246 * common/ptid.h: Comment fixes.
5248 2013-07-01 Tom Tromey <tromey@redhat.com>
5250 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5251 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5252 (dwarf2_read_index, create_all_comp_units): Update.
5254 2013-07-01 Tom Tromey <tromey@redhat.com>
5256 * configure.ac (build_warnings): Add -Wold-style-definition.
5257 * configure: Rebuild.
5258 * machoread.c (_initialize_machoread): Use "(void)".
5259 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5262 2013-07-01 Tom Tromey <tromey@redhat.com>
5264 * configure.ac (build_warnings): Add -Wold-style-declaration.
5265 * configure: Rebuild.
5266 * dsrec.c (make_srec): Use "static const", not "const static".
5267 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5269 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5270 Use "static const", not "const static".
5271 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5273 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5275 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5277 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5279 (v850_dbtrap_breakpoint_from_pc): Likewise.
5280 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5283 2013-07-01 Tom Tromey <tromey@redhat.com>
5285 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5286 * configure: Rebuild.
5288 2013-07-01 Pedro Alves <palves@redhat.com>
5290 * defs.h: Include "pathmax.h".
5291 * utils.c: Don't include sys/param.h.
5292 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5293 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5294 instead of MAXPATHLEN.
5295 * solib-sunos.c: Don't include sys/param.h.
5296 * xcoffread.c: Don't include sys/param.h.
5297 * bsd-kvm.c: Don't include sys/param.h.
5298 * darwin-nat.c: Don't include sys/param.h.
5299 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5300 * darwin-nat-info.c: Don't include sys/param.h.
5301 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5303 * i386obsd-nat.c: Don't include sys/param.h.
5304 * inf-child.c: Don't include sys/param.h.
5305 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5306 * linux-fork.c: Don't include sys/param.h.
5307 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5308 * linux-nat.c: Don't include sys/param.h.
5309 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5310 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5311 * m68klinux-nat.c: Don't include sys/param.h.
5312 * nbsd-nat.c: Don't include sys/param.h.
5313 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5314 * ppc-linux-nat.c: Don't include sys/param.h.
5315 * rs6000-nat.c: Don't include sys/param.h.
5316 * spu-linux-nat.c. Don't include sys/param.h.
5317 * windows-nat.c: Don't include sys/param.h.
5318 * xtensa-linux-nat.c: Don't include sys/param.h.
5319 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5321 2013-07-01 Pedro Alves <palves@redhat.com>
5323 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5324 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5325 * gnulib/aclocal.m4: Regenerate.
5326 * gnulib/config.in: Regenerate.
5327 * gnulib/configure: Regenerate.
5328 * gnulib/import/pathmax.h: New file.
5329 * gnulib/import/Makefile.am: Regenerate.
5330 * gnulib/import/Makefile.in: Regenerate.
5331 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5332 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5333 * gnulib/import/m4/pathmax.m4: New file.
5335 2013-07-01 Pedro Alves <palves@redhat.com>
5337 * configure.ac (GDBINIT): Define, depending on host.
5338 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5339 * top.c (PATH_MAX): Delete fallback definition.
5340 (GDBINIT_FILENAME): Delete.
5341 (gdbinit): Reimplement as const char array set to the GDBINIT
5343 * top.h (gdbinit): Make const.
5344 * configure, config.in: Regenerate.
5346 2013-07-01 Pedro Alves <palves@redhat.com>
5348 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5349 * cli/cli-cmds.h (source_script): Likewise.
5350 * exceptions.c (catch_command_errors_const): New function.
5351 * exceptions.h (catch_command_errors_const): Declare.
5352 * main.c (get_init_files): Make parameters const, and adjust.
5353 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5354 'local_gdbinit' locals const. Adjust to use
5355 catch_command_errors_const.
5356 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5357 'local_gdbinit' locals const.
5359 2013-07-01 Pedro Alves <palves@redhat.com>
5361 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5362 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5363 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5366 2013-07-01 Pedro Alves <palves@redhat.com>
5368 Import the "unistd" gnulib module.
5369 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5370 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5371 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5372 import/m4/unistd_h.m4.
5373 * gnulib/aclocal.m4: Renenerate.
5374 * gnulib/config.in: Renenerate.
5375 * gnulib/configure: Renenerate.
5376 * gnulib/import/Makefile.am: Renenerate.
5377 * gnulib/import/Makefile.in: Renenerate.
5378 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5379 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5380 * gnulib/import/m4/off_t.m4: New file.
5381 * gnulib/import/m4/ssize_t.m4: New file.
5382 * gnulib/import/m4/sys_types_h.m4: New file.
5383 * gnulib/import/m4/unistd_h.m4: New file.
5384 * gnulib/import/sys_types.in.h: New file.
5385 * gnulib/import/unistd.c: New file.
5386 * gnulib/import/unistd.in.h: New file.
5388 2013-07-01 Pedro Alves <palves@redhat.com>
5390 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5391 defined instead of checking HAVE_UNISTD_H.
5393 2013-07-01 Pedro Alves <palves@redhat.com>
5395 Reimport gnulib from scratch.
5396 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5397 import/m4/onceonly.m4.
5398 * gnulib/aclocal.m4: Renegerate.
5399 * gnulib/config.in: Renegerate.
5400 * gnulib/configure: Renegerate.
5401 * gnulib/import/Makefile.in: Renegerate.
5402 * gnulib/import/extra/update-copyright: Renegerate.
5403 * gnulib/import/m4/onceonly.m4: Delete.
5405 2013-07-01 Pedro Alves <palves@redhat.com>
5407 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5409 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5412 * remote.c (async_remote_interrupt_twice): Make it static.
5413 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5415 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5417 * ia64-linux-tdep.c: Include <ctype.h>.
5418 (ia64_linux_stap_is_single_operand): New function.
5419 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5421 2013-06-28 Tom Tromey <tromey@redhat.com>
5423 * Makefile.in (version.c): Use version.in, not
5425 * common/create-version.sh: Likewise.
5426 * common/version.in: Move...
5427 * version.in: ...here.
5429 2013-06-28 Pedro Alves <palves@redhat.com>
5431 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5433 * utils.h (pagination_enabled): Declare.
5435 2013-06-28 Pedro Alves <palves@redhat.com>
5437 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5438 Move higher up in file.
5440 2013-06-28 Tom Tromey <tromey@redhat.com>
5442 * tracepoint.c (deprecated_readline_begin_hook)
5443 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5446 2013-06-28 Pedro Alves <palves@redhat.com>
5449 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5450 checking if they're available.
5451 * value.c (value_available_contents_eq): Change comment.
5452 * value.h (value_available_contents_eq): Expand comment.
5454 2013-06-27 Tom Tromey <tromey@redhat.com>
5456 * target.c (find_run_target): Remove.
5457 * target.h (find_run_target): Remove.
5459 2013-06-27 Tom Tromey <tromey@redhat.com>
5461 * corelow.c (core_gdbarch): Now static.
5463 2013-06-27 Tom Tromey <tromey@redhat.com>
5465 * target.c (target_struct_index): Remove.
5467 2013-06-27 Pedro Alves <palves@redhat.com>
5469 * infrun.c: Remove comment describing the 'stepping over runtime
5470 loader dynamic symbol resolution code' mechanism; moved to
5473 2013-06-27 Pedro Alves <palves@redhat.com>
5475 * exceptions.c (catch_command_errors): Remove spurious space.
5476 * exceptions.h (catch_command_errors): Second parameter is "arg",
5479 2013-06-27 Yao Qi <yao@codesourcery.com>
5481 * common/create-version.sh: Update comments. Handle the case
5482 that TARGET_ALIAS is empty.
5484 2013-06-26 Pedro Alves <palves@redhat.com>
5486 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5489 2013-06-26 Pedro Alves <palves@redhat.com>
5491 * infrun.c: Update comments on stepping over runtime loader
5492 dynamic symbol resolution code.
5494 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5496 * ax-gdb.h (union exp_element): Forward declare.
5497 * parser-defs.h: Include expression.h.
5499 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5501 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5503 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5505 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5507 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5509 Fix trace-status to output proper start-time and stop-time.
5510 * tracepoint.c (trace_status_command): Fix type of printf arg to
5511 prevent improper type conversion.
5512 (trace_status_mi): Likewise.
5514 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5516 * mips-tdep.c (mips_next_pc): Fix a typo.
5518 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5520 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5522 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5523 Yao Qi <yao@codesourcery.com>
5525 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5526 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5527 * mi/mi-main.c (print_variable_or_computed): New function.
5528 (mi_cmd_trace_frame_collected): New function.
5529 * tracepoint.c (find_trace_state_variable_by_number): New.
5530 (struct traceframe_info): Move to tracepoint.h
5531 (struct collection_list): Likewise.
5532 (do_collect_symbol): Include locals and arguments in the
5533 collected variables list.
5534 (clear_collection_list): Clear wholly collected variables list
5535 and computed variables list.
5536 (append_exp): New function.
5537 (encode_actions_1): Include variables in the wholly
5538 collected variables list. Include memory ranges and
5539 full-fledged expressions in the computed expressions list.
5540 (encode_actions): Move some code to ...
5541 Return the cleanup chain.
5542 (encode_actions_rsp): ... here. New function.
5543 (get_traceframe_location, get_traceframe_info): Remove static.
5544 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5545 (struct collection_list): Moved from tracepoint.c. Add two
5546 new fields 'wholly_collected' and 'computed'.
5547 (find_trace_state_variable_by_number): Declare.
5548 (encode_actions): Adjust declaration.
5549 (encode_actions_rsp): Declare.
5550 (get_traceframe_info, get_traceframe_location): Declare.
5552 * NEWS: Mention new MI command -trace-frame-collected.
5554 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5555 Yao Qi <yao@codesourcery.com>
5557 * ctf.c (ctf_traceframe_info): Push trace state variables
5558 present in the trace data into the traceframe info object.
5559 * breakpoint.c (DEF_VEC_I): Remove.
5560 * common/filestuff.c (DEF_VEC_I): Likewise.
5561 * dwarf2loc.c (DEF_VEC_I): Likewise.
5562 * mi/mi-main.c (DEF_VEC_I): Likewise.
5563 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5564 * features/traceframe-info.dtd: Add tvar element and its
5566 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5567 (build_traceframe_info): Push trace state variables present in
5568 the trace data into the traceframe info object.
5569 (traceframe_info_start_tvar): New function.
5570 (tvar_attributes): New.
5571 (traceframe_info_children): Add "tvar" element.
5572 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5574 * NEWS: Mention the change in GDB and GDBserver.
5576 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5577 Yao Qi <yao@codesourcery.com>
5579 * tracepoint.c (trace_dump_command): Move code to ...
5580 (get_traceframe_location): ... here. New.
5582 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5583 Yao Qi <yao@codesourcery.com>
5585 * tracepoint.c (trace_dump_command): GDB emits an error
5586 instead of a warning when a traceframe is not selected.
5588 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5589 Yao Qi <yao@codesourcery.com>
5591 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5592 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5594 (do_clear_collection_list, init_collection_list): New.
5595 (encode_actions): Add local variables 'tracepoint_list' and
5596 'stepping_list'. Call init_collection_list and make cleanup
5597 which calls do_clear_collection_list. Don't call
5598 clear_collection_list.
5599 (_initialize_tracepoint): Delete references to
5600 'tracepoint_list' and 'stepping_list'.
5602 2013-06-25 Tom Tromey <tromey@redhat.com>
5604 * common/create-version.sh (date): Use "$", not "$$" in sed
5607 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5609 * NEWS (New targets): Add entry for TI MSP430.
5611 2013-06-25 Yao Qi <yao@codesourcery.com>
5613 * remote.c (remote_start_remote): Move code to upload tsv
5616 2013-06-25 Yao Qi <yao@codesourcery.com>
5617 Hui Zhu <hui@codesourcery.com>
5618 Pedro Alves <palves@redhat.com>
5620 PR breakpoints/15075
5621 PR breakpoints/15434
5622 * breakpoint.c (bpstat_stop_status): Call
5623 b->ops->after_condition_true.
5624 (update_dprintf_command_list): Don't append "continue" command
5625 to the command list of dprintf breakpoint.
5626 (base_breakpoint_after_condition_true): New function.
5627 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5628 (dprintf_after_condition_true): New function.
5629 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5630 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5632 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5634 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5635 (ALLDEPFILES): Add msp430-tdep.c.
5636 * configure.tgt (msp430*-*-elf): New target.
5637 * msp430-tdep.c: New file.
5639 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5641 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5642 microMIPS synthetic symbols.
5644 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5646 * objfiles.h (pc_in_section): New prototype.
5647 (in_plt_section): Remove name argument, replace prototype with
5648 static inline function.
5649 * mips-tdep.h: Include "objfiles.h".
5650 (in_mips_stubs_section): New function.
5651 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5652 in_solib_call_trampoline member.
5653 (hppa_in_solib_call_trampoline): Remove name argument.
5654 * objfiles.c (pc_in_section): New function.
5655 (in_plt_section): Remove function.
5656 * mips-linux-tdep.c: Include "objfiles.h".
5657 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5658 name argument. Return 1 rather than the low 16-bit halfword of
5659 any instruction examined.
5660 (mips_linux_in_dynsym_resolve_code): Update
5661 mips_linux_in_dynsym_stub call accordingly.
5662 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5663 rather than an equivalent hand-coded sequence.
5664 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5665 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5666 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5667 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5669 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5670 on call to tdep->in_solib_call_trampoline.
5671 (hppa_in_solib_call_trampoline): Remove name argument, update
5672 according to in_plt_section change.
5673 (hppa_skip_trampoline_code): Update according to in_plt_section
5675 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5676 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5678 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5679 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5680 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5681 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5682 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5683 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5684 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5685 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5686 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5687 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5688 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5689 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5690 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5692 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5694 * common/create-version.sh: Fix expansion of $host_alias
5695 and $target_alias in generation of HOST_NAME and TARGET_NAME
5698 2013-06-24 Tom Tromey <tromey@redhat.com>
5700 * common/create-version.sh: New file.
5701 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5703 (HFILES_NO_SRCDIR): Use common/version.h.
5704 * version.in: Move to ...
5705 * common/version.in: ... here. Replace date with "DATE".
5706 * version.h: Move to ...
5707 * common/version.h: ... here.
5709 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5711 * gdb/gnulib/Makefile.in: Update date in copyright header.
5712 * gdb/gnulib/configure.ac: Ditto.
5713 * gdb/gnulib/update-gnulib.sh: Ditto.
5715 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5717 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5718 "gdb/gnulib/import".
5720 2013-06-21 Will Newton <will.newton@linaro.org>
5722 * doublest.c (ldfrexp): Remove function.
5723 (convert_doublest_to_floatformat): Call frexpl instead of
5726 2013-06-21 Will Newton <will.newton@linaro.org>
5728 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5729 * gnulib/aclocal.m4: Regenerate.
5730 * gnulib/config.in: Regenerate.
5731 * gnulib/configure: Regenerate.
5732 * gnulib/import/Makefile.am: Update.
5733 * gnulib/import/Makefile.in: Update.
5734 * gnulib/import/m4/gnulib-cache.m4: Update.
5735 * gnulib/import/m4/gnulib-comp.m4: Update.
5736 * gnulib/import/float+.h: Import.
5737 * gnulib/import/float.c: Import.
5738 * gnulib/import/float.in.h: Import.
5739 * gnulib/import/fpucw.h: Import.
5740 * gnulib/import/frexp.c: Import.
5741 * gnulib/import/frexpl.c: Import.
5742 * gnulib/import/isnan.c: Import.
5743 * gnulib/import/isnand-nolibm.h: Import.
5744 * gnulib/import/isnand.c: Import.
5745 * gnulib/import/isnanl-nolibm.h: Import.
5746 * gnulib/import/isnanl.c: Import.
5747 * gnulib/import/itold.c: Import.
5748 * gnulib/import/m4/exponentd.m4: Import.
5749 * gnulib/import/m4/exponentl.m4: Import.
5750 * gnulib/import/m4/float_h.m4: Import.
5751 * gnulib/import/m4/fpieee.m4: Import.
5752 * gnulib/import/m4/frexp.m4: Import.
5753 * gnulib/import/m4/frexpl.m4: Import.
5754 * gnulib/import/m4/isnand.m4: Import.
5755 * gnulib/import/m4/isnanl.m4: Import.
5756 * gnulib/import/m4/math_h.m4: Import.
5757 * gnulib/import/math.c: Import.
5758 * gnulib/import/math.in.h: Import.
5760 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5762 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5763 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5764 signature_INTEL_edx comparisons.
5766 2013-06-20 Doug Evans <dje@google.com>
5769 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5770 All callers updated.
5771 (open_dwp_file): If we can't find the dwp file, search the basename
5772 in debug-file-directory.
5774 * dwarf2read.c (struct dwp_file): Fix comment.
5775 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5777 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5780 2013-06-20 Yao Qi <yao@codesourcery.com>
5782 * breakpoint.c (create_breakpoint): Fix code indentation.
5784 2013-06-20 Yao Qi <yao@codesourcery.com>
5786 * breakpoint.c (create_breakpoints_sal_default): Remove
5787 parameter 'lsal'. Update declaration.
5788 (bkpt_create_breakpoints_sal): Caller update.
5789 (tracepoint_create_breakpoints_sal): Likewise.
5791 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5792 Yao Qi <yao@codesourcery.com>
5794 * NEWS: Mention the new option '--skip-unavailable' of command
5795 -data-list-register-values.
5796 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5797 --skip-unavailable option. Adjust to use output_register.
5798 (output_register): Add new 'skip_unavailable' parameter.
5801 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5803 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5804 common/i386-gcc-cpuid.h.
5805 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5806 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5807 Copy the latest version from upstream gcc.
5808 * common/linux-btrace.c: Include i386-cpuid.h.
5809 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5811 (cpu_supports_btrace): Likewise.
5812 * go32-nat.c: Include i386-cpuid.h.
5813 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5815 2013-06-19 Doug Evans <dje@google.com>
5817 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5818 (get_section_index): Ditto.
5820 2013-06-19 Tom Tromey <tromey@redhat.com>
5822 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5825 2013-06-18 Doug Evans <dje@google.com>
5827 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5829 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5830 Move test of cu_index closer to use. Print complaint if cu_index
5833 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5835 * machoread.c (oso_vector): Delete this global.
5836 (macho_register_oso): Add new parameter "oso_vector_ptr".
5837 Use it instead of the "oso_vector" global.
5838 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5839 (macho_symfile_read): Use a local oso_vector, to be free'ed
5840 at the end of this function, in place of the old "oso_vector"
5841 global. Update various function calls accordingly. Use one
5842 single cleanup chain for the entire function.
5844 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5846 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5847 DWARF2_PER_OBJFILE by uses of DATA instead.
5849 2013-06-18 Tom Tromey <tromey@redhat.com>
5851 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5853 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5854 Special case signals other than GDB_SIGNAL_TRAP.
5855 (explains_signal_watchpoint): New function.
5856 (base_breakpoint_explains_signal): Add 'sig' argument.
5857 (initialize_breakpoint_ops): Set 'explains_signal' method for
5859 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5861 (bpstat_explains_signal): Likewise.
5862 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5864 2013-06-18 Tom Tromey <tromey@redhat.com>
5866 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5868 2013-06-18 Tom Tromey <tromey@redhat.com>
5870 * python/python.c (finish_python_initialization): Decref
5871 'pythondir' on failure path as well.
5873 2013-06-18 Tom Tromey <tromey@redhat.com>
5876 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5877 after taking bits_to_skip into account. Sign extend byte_offset.
5878 * utils.h (gdb_sign_extend): Declare.
5879 * utils.c (gdb_sign_extend): New function.
5881 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5883 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5885 2013-06-17 Pierre Muller <muller@sourceware.org>
5887 * corelow.c (core_open): Print GDB signal name instead of target
5890 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5892 * .gitignore: Add /gcore.
5894 2013-06-13 Doug Evans <dje@google.com>
5896 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5897 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5899 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5901 * stack.c (backtrace_command_1): Fix indentation.
5903 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5905 * window-nat.c (thread_rec): Add missing empty line after
5906 local variable declaration.
5908 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5910 * windows-nat.c (thread_rec): Revert format used to print
5911 error code returned by SuspendThread from %d back to %u.
5913 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5915 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5917 (get_windows_debug_event): Likewise, for all debug traces.
5919 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5921 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5924 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5925 Yao Qi <yao@codesourcery.com>
5927 * mi/mi-main.c (get_register): Remove declaration.
5928 (output_register): Declare.
5929 (mi_cmd_data_list_register_values): Remove local variable
5930 'tuple_cleanup'. Move some code into output_register.
5931 (get_register): Renamed to ...
5932 (output_register): ... this. Output the register's
5933 "number" ui_out tuple here.
5935 2013-06-07 Pedro Alves <palves@redhat.com>
5937 * darwin-nat.c: Fix formating in copyright header.
5938 * darwin-nat.h: Likewise.
5939 * gnu-nat.c: Likewise.
5940 * machoread.c: Likewise.
5942 2013-06-07 Pedro Alves <palves@redhat.com>
5945 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5946 static. Output a global target description pointer.
5947 (init_registers_${name}): Adjust to initialize a
5948 target description structure.
5950 2013-06-07 Will Newton <will.newton@linaro.org>
5952 * printcmd.c (build_address_symbolic): Call
5953 gdbarch_addr_bits_remove for text minimal symbols.
5955 2013-06-07 Will Newton <will.newton@linaro.org>
5957 * MAINTAINERS: Add myself to Write After Approval.
5959 2013-06-07 Yao Qi <yao@codesourcery.com>
5961 * tracepoint.c (start_tracing): Move code to ...
5962 (trace_reset_local_state): ... here. New.
5963 (disconnect_tracing): Don't call set_current_traceframe,
5964 set_tracepoint_num, and set_traceframe_context. Call
5965 trace_reset_local_state instead.
5966 (tfile_close): Call trace_reset_local_state.
5967 * ctf.c (ctf_close): Likewise.
5968 * remote.c (remote_close): Likewise.
5969 * tracepoint.h (trace_reset_local_state): Declare.
5971 2013-06-06 Doug Evans <dje@google.com>
5973 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5974 and fix header docs.
5976 2013-06-05 Doug Evans <dje@google.com>
5977 Keith Seitz <keiths@redhat.com>
5980 * cp-namespace.c (find_symbol_in_baseclass): Call
5981 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5982 Check result of call to lookup_symbol_static.
5983 Call lookup_static_symbol_aux unconditionally.
5984 Call check_typedef on base types before accessing them.
5985 (cp_lookup_nested_symbol): Fix comment.
5987 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5989 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5990 minimal symbols pointing to function descriptors.
5992 2013-06-05 Tom Tromey <tromey@redhat.com>
5994 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5996 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5997 Pedro Alves <palves@redhat.com>
5999 * remote.c (remote_wait_as): Restore signal handler before returning
6000 when GDB gets a notification.
6002 2013-06-04 Gary Benson <gbenson@redhat.com>
6005 * breakpoint.h (handle_solib_event): Moved function declaration
6007 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6008 (bpstat_stop_status): Pass new argument to handle_solib_event.
6009 * solib.h (update_solib_breakpoints): New function declaration.
6010 (handle_solib_event): Moved function declaration from
6012 * solib.c (update_solib_breakpoints): New function.
6013 (handle_solib_event): Moved function from breakpoint.c.
6014 Updated to call solib_ops->handle_event if not NULL.
6015 * solist.h (target_so_ops): New fields "update_breakpoints" and
6017 * infrun.c (set_stop_on_solib_events): New function.
6018 (_initialize_infrun): Use the above for "set
6019 stop-on-solib-events".
6020 (handle_inferior_event): Pass new argument to handle_solib_event.
6021 * solib-svr4.c (probe.h): New include.
6022 (svr4_free_library_list): New forward declaration.
6023 (probe_action): New enum.
6024 (probe_info): New struct.
6025 (probe_info): New static variable.
6026 (NUM_PROBES): New definition.
6027 (svr4_info): New fields "using_xfer", "probes_table" and
6029 (free_probes_table): New function.
6030 (free_solib_list): New function.
6031 (svr4_pspace_data_cleanup): Free probes table and solib list.
6032 (svr4_copy_library_list): New function.
6033 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6034 (svr4_read_so_list): New parameter "prev_lm".
6035 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6036 (svr4_current_sos): New function.
6037 (probe_and_action): New struct.
6038 (hash_probe_and_action): New function.
6039 (equal_probe_and_action): Likewise.
6040 (register_solib_event_probe): Likewise.
6041 (solib_event_probe_at): Likewise.
6042 (solib_event_probe_action): Likewise.
6043 (solist_update_full): Likewise.
6044 (solist_update_incremental): Likewise.
6045 (disable_probes_interface_cleanup): Likewise.
6046 (svr4_handle_solib_event): Likewise.
6047 (svr4_update_solib_event_breakpoint): Likewise.
6048 (svr4_update_solib_event_breakpoints): Likewise.
6049 (svr4_create_solib_event_breakpoints): Likewise.
6050 (enable_break): Free probes table before creating breakpoints.
6051 Use svr4_create_solib_event_breakpoints to create breakpoints.
6052 (svr4_solib_create_inferior_hook): Free the solib list.
6053 (_initialize_svr4_solib): Initialise
6054 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6056 2013-06-04 Gary Benson <gbenson@redhat.com>
6058 * target.h (target_ops): New field
6059 "to_augmented_libraries_svr4_read".
6060 (target_augmented_libraries_svr4_read): New macro.
6061 * target.c (update_current_target): Handle
6062 to_augmented_libraries_svr4_read.
6063 * remote.c (remote_state): New field
6064 "augmented_libraries_svr4_read".
6065 (remote_augmented_libraries_svr4_read_feature): New function.
6066 (remote_protocol_features): Add entry for
6067 "augmented-libraries-svr4-read".
6068 (remote_augmented_libraries_svr4_read): New function.
6069 (init_remote_ops): Initialize
6070 remote_ops.to_augmented_libraries_svr4_read.
6072 2013-06-04 Gary Benson <gbenson@redhat.com>
6076 2013-06-04 Gary Benson <gbenson@redhat.com>
6078 * objfiles.h (inhibit_section_map_updates): New function
6080 (resume_section_map_updates): Likewise.
6081 (resume_section_map_updates_cleanup): Likewise.
6082 * objfiles.c (objfile_pspace_info): Removed field
6083 "objfiles_changed_p". New fields "new_objfiles_available",
6084 "section_map_dirty" and "inhibit_updates".
6085 (allocate_objfile): Set new_objfiles_available.
6086 (free_objfile): Set section_map_dirty.
6087 (objfile_relocate1): Likewise.
6088 (in_plt_section): Likewise.
6089 (find_pc_section): Update the conditions under which the
6090 section map will be updated.
6091 (inhibit_section_map_updates): New function.
6092 (resume_section_map_updates): Likewise.
6093 (resume_section_map_updates_cleanup): Likewise.
6095 2013-06-04 Gary Benson <gbenson@redhat.com>
6097 * probe.h (get_probe_argument_count): New declaration.
6098 (evaluate_probe_argument): Likewise.
6099 * probe.c (get_probe_argument_count): New function.
6100 (evaluate_probe_argument): Likewise.
6101 (probe_safe_evaluate_at_pc): Use the above new functions.
6103 2013-06-04 Alan Modra <amodra@gmail.com>
6105 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6106 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6107 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6108 target mem reads on optional insns.
6109 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6110 ppc_insns_match_pattern calls.
6111 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6112 Add match for power7 thread safety insns, and new order of
6113 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6114 invocation in comment, and update rest of comment.
6115 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6116 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6117 (ppc64_standard_linkage2_target): Update insn offsets.
6118 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6119 stubs first. Update calls.
6121 2013-06-04 Yao Qi <yao@codesourcery.com>
6123 * solib.c (solib_find): Don't need dir separator if path has
6126 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6128 Revert (indirectly causes a SIGSEGV):
6129 * machoread.c (macho_symfile_read): Assign first cleanup to
6132 2013-06-03 Yao Qi <yao@codesourcery.com>
6134 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6135 mi-parse.c. Make them static.
6136 (mi_all_values): Likewise.
6137 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6138 mi_parse_print_values. Make it external.
6139 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6140 Remove the declarations.
6141 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6142 * mi/mi-parse.h (mi_parse_print_values): Declare.
6143 * mi/mi-cmd-stack.c: Include mi-parse.h.
6144 (parse_print_values): Remove
6145 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6146 of parse_print_values.
6147 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6149 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6150 Yao Qi <yao@codesourcery.com>
6152 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6153 (encode_actions): Move code to ...
6154 (all_tracepoint_actions_and_cleanup): ... here. New.
6155 (trace_dump_command): Likewise.
6157 2013-05-30 Tom Tromey <tromey@redhat.com>
6159 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6161 2013-05-30 Tom Tromey <tromey@redhat.com>
6163 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6164 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6165 'old_chain' argument. Add 'parser_result' argument.
6166 (gdb_xml_create_parser_and_cleanup): Remove old version.
6167 (gdb_xml_parse_quick): Update.
6168 (xml_process_xincludes): Update.
6169 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6172 2013-05-30 Tom Tromey <tromey@redhat.com>
6174 * probe.c (collect_probes): Check arguments for NULL before
6175 calling compile_rx_or_error.
6176 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6179 2013-05-30 Tom Tromey <tromey@redhat.com>
6181 * infrun.c (adjust_pc_after_break): Introduce an outer null
6184 2013-05-30 Tom Tromey <tromey@redhat.com>
6186 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6188 2013-05-30 Tom Tromey <tromey@redhat.com>
6190 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6191 for 'old_chain'. Do not check 'head' before processing
6194 2013-05-30 Tom Tromey <tromey@redhat.com>
6196 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6199 2013-05-30 Tom Tromey <tromey@redhat.com>
6201 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6202 inner scope. Unconditionally call do_cleanups.
6204 2013-05-30 Tom Tromey <tromey@redhat.com>
6206 * source.c (find_and_open_source): Call do_cleanups.
6208 2013-05-30 Tom Tromey <tromey@redhat.com>
6210 * linux-thread-db.c (thread_db_load_search): Unconditionally
6213 2013-05-30 Tom Tromey <tromey@redhat.com>
6215 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6216 for 'cleanup'; instead use a later one.
6218 2013-05-30 Tom Tromey <tromey@redhat.com>
6220 * python/py-breakpoint.c (bppy_get_commands): Use
6221 explicit, unconditional return.
6222 * python/py-frame.c (frapy_read_var): Likewise.
6223 * python/python.c (gdbpy_decode_line): Likewise.
6225 2013-05-30 Tom Tromey <tromey@redhat.com>
6227 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6228 do_cleanups on all return paths.
6230 2013-05-30 Tom Tromey <tromey@redhat.com>
6232 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6234 2013-05-30 Tom Tromey <tromey@redhat.com>
6236 * stabsread.c (read_struct_type): Call do_cleanups along
6239 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6241 * mips-linux-tdep.c: Adjust formatting throughout.
6243 2013-05-30 Tom Tromey <tromey@redhat.com>
6245 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6246 along all return paths.
6248 2013-05-30 Tom Tromey <tromey@redhat.com>
6250 * symfile.c (find_separate_debug_file): Call do_cleanups
6251 along all return paths.
6253 2013-05-30 Tom Tromey <tromey@redhat.com>
6255 * symtab.c (search_symbols): Introduce a null cleanup for
6258 2013-05-30 Tom Tromey <tromey@redhat.com>
6260 * python/py-value.c (valpy_binop): Call do_cleanups before
6263 2013-05-30 Tom Tromey <tromey@redhat.com>
6265 * python/py-prettyprint.c (print_children): Remove extra
6268 2013-05-30 Tom Tromey <tromey@redhat.com>
6270 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6273 2013-05-30 Tom Tromey <tromey@redhat.com>
6275 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6276 along all return paths.
6278 2013-05-30 Tom Tromey <tromey@redhat.com>
6280 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6283 2013-05-30 Tom Tromey <tromey@redhat.com>
6285 * varobj.c (c_value_of_root): Call do_cleanups along all
6288 2013-05-30 Tom Tromey <tromey@redhat.com>
6290 * tracepoint.c (trace_dump_command): Unconditionally call
6293 2013-05-30 Tom Tromey <tromey@redhat.com>
6295 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6296 do_cleanups earlier.
6298 2013-05-30 Tom Tromey <tromey@redhat.com>
6300 * machoread.c (macho_symfile_read): Assign first cleanup to
6303 2013-05-30 Tom Tromey <tromey@redhat.com>
6305 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6307 2013-05-30 Tom Tromey <tromey@redhat.com>
6309 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6311 2013-05-30 Tom Tromey <tromey@redhat.com>
6313 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6314 call discard_cleanups.
6315 (inf_ptrace_attach): Likewise.
6317 2013-05-30 Tom Tromey <tromey@redhat.com>
6319 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6321 (mips_initialize): Likewise.
6322 (common_open): Call do_cleanups.
6324 2013-05-30 Tom Tromey <tromey@redhat.com>
6326 * utils.c (internal_vproblem): Call do_cleanups.
6328 2013-05-30 Tom Tromey <tromey@redhat.com>
6330 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6332 2013-05-30 Tom Tromey <tromey@redhat.com>
6334 * cli/cli-script.c (setup_user_args): Don't return after error.
6336 2013-05-30 Tom Tromey <tromey@redhat.com>
6338 * somread.c (som_symtab_read): Call do_cleanups.
6340 2013-05-30 Tom Tromey <tromey@redhat.com>
6342 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6344 2013-05-30 Tom Tromey <tromey@redhat.com>
6346 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6347 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6348 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6349 * source.c (show_substitute_path_command): Call do_cleanups.
6350 (unset_substitute_path_command, set_substitute_path_command):
6352 * symfile.c (load_command): Call do_cleanups.
6354 2013-05-30 Tom Tromey <tromey@redhat.com>
6356 * contrib/cleanup_check.py: New file.
6357 * contrib/gcc-with-excheck: Add option parsing.
6359 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6361 * windows-nat.c (windows_delete_thread): Add missing space
6364 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6366 * inferior.c (top level): Include tilde.h.
6367 (add_inferior_command): Call tilde_expand on the value of 'exec'
6370 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6371 Yao Qi <yao@codesourcery.com>
6373 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6375 (encode_actions): Likewise.
6376 * remote.c (remote_download_tracepoint): Caller update.
6377 * tracepoint.h (encode_actions): Update declaration.
6379 2013-05-30 Pedro Alves <palves@redhat.com>
6381 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6384 2013-05-30 Yao Qi <yao@codesourcery.com>
6386 * remote.c (remote_check_symbols): Remove unused parameter
6389 (remote_start_remote, remote_new_objfile): Caller update.
6391 2013-05-30 Yao Qi <yao@codesourcery.com>
6393 * mi/mi-cmds.c (mi_cmds): Define MI command
6394 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6397 2013-05-29 Pedro Alves <palves@redhat.com>
6399 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6400 (remote_insert_watchpoint, remote_remove_watchpoint)
6401 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6402 (remote_verify_memory, compare_sections_command)
6403 (remote_search_memory): Set the general process/thread on the
6406 2013-05-29 Pedro Alves <palves@redhat.com>
6408 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6409 (_initialize_aarch64_tdep): Don't call
6410 initialize_tdesc_aarch64_without_fpu.
6411 * features/Makefile (WHICH): Remove reference to
6412 aarch64-without-fpu.
6413 * features/aarch64-without-fpu.c: Delete file.
6414 * regformats/aarch64-without-fpu.dat: Delete file.
6416 2013-05-28 Yao Qi <yao@codesourcery.com>
6418 * tracepoint.c (stringify_collection_list): Remove parameter
6420 (encode_actions): Caller update. Remove local variables.
6422 2013-05-24 Yao Qi <yao@codesourcery.com>
6424 * tracepoint.c (TFILE_PID): Remove.
6425 (tfile_open): Don't add thread and inferior.
6426 (tfile_close): Don't set 'inferior_ptid'. Don't call
6427 exit_inferior_silent.
6428 (tfile_thread_alive): Remove.
6429 (init_tfile_ops): Don't set field 'to_thread_alive' of
6432 2013-05-23 Doug Evans <dje@google.com>
6434 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6436 2013-05-23 Pedro Alves <palves@redhat.com>
6438 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6439 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6440 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6441 Only define if HAVE_SOCKETS is defined.
6442 * configure.ac: Check for sys/socket.h.
6443 * config.in, configure: Regenerate.
6445 2013-05-23 Pedro Alves <palves@redhat.com>
6447 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6448 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6449 printing uint32_t variables.
6451 2013-05-23 Pedro Alves <palves@redhat.com>
6453 * NEWS: Mention GDBserver range stepping support.
6455 2013-05-23 Yao Qi <yao@codesourcery.com>
6456 Pedro Alves <palves@redhat.com>
6458 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6460 * infcmd.c (step_once, until_next_command): Enable range stepping.
6461 * infrun.c (displaced_step_prepare): Disable range stepping.
6462 (resume): Disable range stepping if stepping over a breakpoint or
6463 we have software watchpoints. If range stepping is enabled,
6464 assert the thread is in the stepping range.
6465 (clear_proceed_status_thread): Clear may_range_step.
6466 (handle_inferior_event): Disable range stepping as soon as we know
6467 the thread that hit the event. Re-enable it whenever we're going
6468 to step with a step range.
6469 * remote.c (struct vCont_action_support) <r>: New field.
6470 (use_range_stepping): New global.
6471 (remote_vcont_probe): Handle 'r' action.
6472 (append_resumption): Append an 'r' action if the thread may range
6474 (show_range_stepping): New function.
6475 (set_range_stepping): New function.
6476 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6477 'set range-stepping' and 'show range-stepping' commands.
6478 * NEWS: Mention range stepping, the new vCont;r action, and the
6479 new "set/show range-stepping" commands.
6481 2013-05-23 Yao Qi <yao@codesourcery.com>
6482 Pedro Alves <palves@redhat.com>
6484 * remote.c (struct vCont_action_support): New struct.
6485 (struct remote_state) <support_vCont_t>: Remove field.
6486 <vCont_actions_support>: New field.
6487 (remote_vcont_probe, remote_stop_ns): Update.
6489 2013-05-23 Yao Qi <yao@codesourcery.com>
6490 Pedro Alves <palves@redhat.com>
6492 * gdbthread.h (pc_in_thread_step_range): New declaration.
6493 * thread.c (pc_in_thread_step_range): New function.
6494 * infrun.c (handle_inferior_event): Use it.
6496 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6498 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6501 2013-05-22 Keith Seitz <keiths@redhat.com>
6503 * ada-lang.c (is_known_support_routine): Add explicit free of
6504 'func_name' from find_frame_funname.
6505 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6506 for func_name from find_frame_funname.
6507 * python/py-frame.c (frapy_name): Add explicit free of
6508 'name' from find_frame_funname.
6509 * stack.c (find_frame_funname): Add comment explaining that
6510 funcp must be freed by the caller.
6511 Return copy of symbol names instead of pointers.
6512 (print_frame): Add a cleanup for 'funname' from
6514 * stack.h (find_frame_funname): Remove "const" from
6515 'funname' parameter.
6517 2013-05-22 Tom Tromey <tromey@redhat.com>
6520 * c-valprint.c (c_value_print): Use value_addr for
6521 references. Convert back to reference type with value_ref.
6523 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6525 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6526 unloaded DLL, it will be done by handle_solib_event. See
6527 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6530 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6532 * ui-out.c: Create typedef ui_out_level_p and define vector
6533 operations for that type.
6534 (struct ui_out): Use a vector instead of an array.
6535 (current_level): Return level from a vector.
6536 (push_level): Create a level in a vector.
6537 (pop_level): Delete a level in a vector.
6538 (ui_out_new): Create initial level zero level, and store in a
6540 (ui_out_destroy): Add vector cleanup.
6542 2013-05-22 Pedro Alves <palves@redhat.com>
6544 * python/python-internal.h (gdb_Py_DECREF): Tag with
6545 "ARI: editCase function".
6547 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6549 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6551 2013-05-21 Pedro Alves <palves@redhat.com>
6553 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6554 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6555 * python/py-utils.c (py_decref): Don't check for NULL before
6558 2013-05-21 Pedro Alves <palves@redhat.com>
6560 * python/py-utils.c (py_decref): Remove extra braces.
6561 (gdb_pymodule_addobject): Remove extra braces.
6562 * python-internal.h (gdb_Py_DECREF): New static inline function.
6563 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6565 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6567 * breakpoints.c (detach_breakpoints): Do not
6568 detach breakpoints locations with loc_type bp_loc_other.
6570 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6572 Workaround Python 2.6.
6573 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6576 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6578 Code cleanup: constification.
6579 * solib.c (solib_ops): Make return type and ops variable type const.
6580 (set_solib_ops): Make the new_ops parameter and ops variable const.
6581 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6582 (solib_add, solib_keep_data_in_core, clear_solib)
6583 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6584 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6586 * solib.h (set_solib_ops): Make the new_ops parameter const.
6588 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6590 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6592 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6593 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6594 (SYSTEM_GDBINIT_FILES): New variables.
6595 (all): Add stamp-system-gdbinit.
6596 (stamp-system-gdbinit): New rule.
6597 (clean-system-gdbinit, install-system-gdbinit)
6598 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6599 (install-only): Add dependency on install-system-gdbinit.
6600 (uninstall): Add dependency on uninstall-system-gdbinit.
6601 (clean): Add dependency on clean-system-gdbinit.
6602 * system-gdbinit/elinos.py: New file.
6603 * system-gdbinit/wrs-linux.py: New file.
6605 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6607 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6609 2013-05-21 Hui Zhu <hui@codesourcery.com>
6611 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6612 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6613 * mi/mi-cmd-break.c (ctype.h): New include.
6614 (gdb_obstack.h): New include.
6615 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6616 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6617 (mi_cmd_dprintf_insert): New.
6618 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6619 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6621 2013-05-20 Tom Tromey <tromey@redhat.com>
6623 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6625 2013-05-20 Tom Tromey <tromey@redhat.com>
6627 * python/py-value.c (valpy_get_dynamic_type): Simplify
6628 dynamic_type assignment. Use Py_XINCREF.
6630 2013-05-20 Tom Tromey <tromey@redhat.com>
6632 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6634 2013-05-20 Tom Tromey <tromey@redhat.com>
6636 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6637 (gdbpy_selected_frame): Move object-construction code
6640 2013-05-20 Tom Tromey <tromey@redhat.com>
6642 * python/py-arch.c (gdbpy_initialize_arch): Use
6643 gdb_pymodule_addobject.
6644 * python/py-block.c (gdbpy_initialize_blocks): Use
6645 gdb_pymodule_addobject.
6646 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6647 gdb_pymodule_addobject.
6648 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6649 gdb_pymodule_addobject.
6650 * python/py-event.c (gdbpy_initialize_event_generic): Use
6651 gdb_pymodule_addobject.
6652 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6653 gdb_pymodule_addobject.
6654 * python/py-evts.c (add_new_registry): Use
6655 gdb_pymodule_addobject.
6656 (gdbpy_initialize_py_events): Likewise.
6657 * python/py-finishbreakpoint.c
6658 (gdbpy_initialize_finishbreakpoints): Use
6659 gdb_pymodule_addobject.
6660 * python/py-frame.c (gdbpy_initialize_frames): Use
6661 gdb_pymodule_addobject.
6662 * python/py-function.c (gdbpy_initialize_functions): Use
6663 gdb_pymodule_addobject.
6664 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6665 gdb_pymodule_addobject.
6666 * python/py-infthread.c (gdbpy_initialize_thread): Use
6667 gdb_pymodule_addobject.
6668 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6669 gdb_pymodule_addobject.
6670 * python/py-param.c (gdbpy_initialize_parameters): Use
6671 gdb_pymodule_addobject.
6672 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6673 gdb_pymodule_addobject.
6674 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6675 gdb_pymodule_addobject.
6676 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6677 gdb_pymodule_addobject.
6678 * python/py-type.c (gdbpy_initialize_types): Use
6679 gdb_pymodule_addobject.
6680 * python/py-utils.c (gdb_pymodule_addobject): New function.
6681 * python/py-value.c (gdbpy_initialize_values): Use
6682 gdb_pymodule_addobject.
6683 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6684 * python/python.c (_initialize_python): Use
6685 gdb_pymodule_addobject.
6687 2013-05-20 Tom Tromey <tromey@redhat.com>
6689 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6690 * python/py-param.c (get_set_value, get_show_value): Use
6692 * python/python.c (start_type_printers, apply_type_printers):
6693 Use explicit decrefs.
6695 2013-05-20 Tom Tromey <tromey@redhat.com>
6697 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6700 2013-05-20 Tom Tromey <tromey@redhat.com>
6702 * python/python.c (gdbpy_run_events): Decref the result
6703 of PyObject_CallObject.
6705 2013-05-20 Tom Tromey <tromey@redhat.com>
6707 * python/py-symtab.c (set_sal): Use
6708 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6709 (symtab_and_line_to_sal_object): Update.
6711 2013-05-20 Tom Tromey <tromey@redhat.com>
6713 * python/py-param.c (compute_enum_values): Decref 'item'.
6715 2013-05-20 Tom Tromey <tromey@redhat.com>
6717 * mi/mi-main.c: Include python-internal.h.
6718 (mi_cmd_list_features): Check gdb_python_initialized.
6719 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6720 (python_inferior_exit, python_new_objfile, add_thread_object)
6721 (delete_thread_object, py_free_inferior): Check
6722 gdb_python_initialized.
6723 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6724 gdb_python_initialized.
6725 * python/py-type.c (save_objfile_types): Check
6726 gdb_python_initialized.
6727 * python/python-internal.h (gdb_python_initialized): Declare.
6728 * python/python.c (ensure_python_env): Throw exception if
6729 Python not initialized.
6730 (before_prompt_hook, source_python_script_for_objfile)
6731 (start_type_printers, apply_type_printers,
6732 free_type_printers): Check gdb_python_initialized.
6733 * varobj.c (varobj_get_display_hint)
6734 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6735 (install_new_value_visualizer, varobj_set_visualizer)
6736 (value_get_print_value): Check gdb_python_initialized.
6738 2013-05-20 Tom Tromey <tromey@redhat.com>
6740 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6742 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6743 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6745 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6747 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6749 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6751 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6752 init function to return 'int'.
6753 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6754 Return 'int'. Check errors.
6755 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6757 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6758 Return 'int'. Check errors.
6759 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6761 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6763 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6765 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6767 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6769 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6771 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6773 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6775 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6777 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6779 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6781 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6783 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6785 * python/python-internal.h (gdbpy_initialize_auto_load,
6786 gdbpy_initialize_values, gdbpy_initialize_frames,
6787 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6788 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6789 gdbpy_initialize_blocks, gdbpy_initialize_types,
6790 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6791 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6792 gdbpy_initialize_finishbreakpoints,
6793 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6794 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6795 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6796 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6797 gdbpy_initialize_signal_event,
6798 gdbpy_initialize_breakpoint_event,
6799 gdbpy_initialize_continue_event,
6800 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6801 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6802 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6803 * python/python.c (gdb_python_initialized): New global.
6804 (gdbpy_initialize_events): Return 'int'. Check errors.
6805 (_initialize_python): Check errors. Set
6806 gdb_python_initialized.
6808 2013-05-20 Tom Tromey <tromey@redhat.com>
6810 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6811 Decref the reslut of PyObject_CallMethod.
6813 2013-05-20 Tom Tromey <tromey@redhat.com>
6815 * python/py-event.c (gdbpy_initialize_event_generic): Return
6816 early if PyType_Ready fails.
6818 2013-05-20 Tom Tromey <tromey@redhat.com>
6820 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6821 as 'default' in the switch.
6823 2013-05-20 Tom Tromey <tromey@redhat.com>
6825 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6826 get_addr_from_python calls out of TRY_CATCH.
6827 (infpy_write_memory, infpy_search_memory): Likewise.
6828 * python/py-utils.c (get_addr_from_python): Return negative
6829 value on error. Use TRY_CATCH.
6830 * python/python-internal.h (get_addr_from_python): Use
6831 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6833 2013-05-20 Tom Tromey <tromey@redhat.com>
6835 * python/py-event.c (evpy_emit_event): Decref the
6836 result of PyObject_CallFunctionObjArgs.
6838 2013-05-20 Tom Tromey <tromey@redhat.com>
6840 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6843 2013-05-20 Tom Tromey <tromey@redhat.com>
6845 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6847 2013-05-20 Tom Tromey <tromey@redhat.com>
6849 * python/py-event.h (gdbpy_initialize_event_generic): Use
6850 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6851 * python/py-evts.c (add_new_registry): Use
6852 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6853 * python/python-internal.h
6854 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6856 2013-05-20 Tom Tromey <tromey@redhat.com>
6858 * python/py-arch.c (archpy_disassemble): Update.
6859 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6860 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6861 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6862 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6864 (GDB_PY_HANDLE_EXCEPTION): Update.
6865 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6867 2013-05-20 Tom Tromey <tromey@redhat.com>
6869 * python/python-internal.h (events_object_type): Remove.
6871 2013-05-20 Tom Tromey <tromey@redhat.com>
6873 * python/py-event.h (evpy_emit_event): Use
6874 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6875 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6878 2013-05-20 Tom Tromey <tromey@redhat.com>
6880 * py-evtregistry.c (create_event_object): Decref
6881 eventregistry_object if PyList_New fails.
6883 2013-05-20 Tom Tromey <tromey@redhat.com>
6885 * py-cmd.c (gdbpy_string_to_argv): Check result of
6888 2013-05-20 Tom Tromey <tromey@redhat.com>
6890 * python/python.c (before_prompt_hook): Add cleanup to
6893 2013-05-20 Tom Tromey <tromey@redhat.com>
6895 * python/py-function.c (fnpy_init): Decref result of
6896 PyObject_GetAttrString.
6898 2013-05-20 Tom Tromey <tromey@redhat.com>
6900 * python/py-threadevent.c (get_event_thread): Use
6901 CPYCHECKER_RETURNS_BORROWED_REF.
6902 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6904 (pspace_to_pspace_object, objfile_to_objfile_object)
6905 (find_thread_object): Use it.
6907 2013-05-20 Tom Tromey <tromey@redhat.com>
6909 * python/py-arch.c (arch_object_type): Use
6910 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6911 * python/py-block.c (block_syms_iterator_object_type):
6912 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6913 * python/py-bpevent.c (breakpoint_event_object_type):
6914 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6915 * python/py-cmd.c (cmdpy_object_type): Use
6916 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6917 * python/py-continueevent.c (continue_event_object_type):
6918 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6919 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6920 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6921 * python/py-events.h (thread_event_object_type):
6922 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6923 * python/py-evtregistry.c (eventregistry_object_type): Use
6924 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6925 * python/py-exitedevent.c (exited_event_object_type):
6926 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6927 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6928 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6929 * python/py-function.c (fnpy_object_type): Use
6930 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6931 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6932 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6933 * python/py-infthread.c (thread_object_type): Use
6934 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6935 * python/py-lazy-string.c (lazy_string_object_type):
6936 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6937 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6938 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6939 * python/py-objfile.c (objfile_object_type): Use
6940 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6941 * python/py-param.c (parmpy_object_type):
6942 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6943 * python/py-progspace.c (pspace_object_type):
6944 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6945 * python/py-signalevent.c (signal_event_object_type):
6946 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6947 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6948 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6949 * python/py-type.c (type_object_type, field_object_type)
6950 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6951 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6953 (value_object_type, block_object_type, symbol_object_type)
6954 (event_object_type, stop_event_object_type, breakpoint_object_type)
6955 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6957 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6959 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6960 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6962 2013-05-20 Doug Evans <dje@google.com>
6964 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6966 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6967 reading_dwo_directly.
6968 (struct signatured_type): New member dwo_unit.
6969 (struct die_reader_specs): New member comp_dir.
6970 (create_signatured_type_table_from_index): Use malloc for
6971 all_type_units instead of objfile's obstack.
6972 (create_all_type_units): Ditto.
6973 (fill_in_sig_entry_from_dwo_entry): New function.
6974 (add_type_unit): New function.
6975 (lookup_dwo_signatured_type): New function.
6976 (lookup_dwp_signatured_type): New function.
6977 (lookup_signatured_type): New arg cu. All callers updated.
6978 (init_cu_die_reader): Initialize comp_dir.
6979 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6980 Change assert of matching type signatures to call error on mismatch.
6981 (lookup_dwo_unit): Add assert.
6982 (init_tu_and_read_dwo_dies): New function.
6983 (init_cutu_and_read_dies): Call it.
6984 (build_type_unit_groups): Handle case of no type unit groups created.
6985 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6986 (lookup_dwo_cutu): Tweak complaint.
6987 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6988 (dwarf2_per_objfile_free): Free all_type_units.
6990 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6992 * windows-nat.c (handle_unload_dll): Add missing empty line.
6994 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6996 * dwarf2read.c (prototyped_function_p): New function.
6997 (read_subroutine_type): Use it.
6999 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7001 * rs6000-aix-tdep.c: De-indent some example code provided
7004 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7006 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7007 region is ok for a hardware watchpoint using the new ptrace interface
7010 2013-05-17 Doug Evans <dje@google.com>
7012 * NEWS: Mention new maintenance commands check-symtabs, and
7013 expand-symtabs, and renamed check-psymtabs.
7014 * psymtab.c (maintenance_check_psymtabs): Renamed from
7015 maintenance_check_symtabs. Only process already-expanded symbol
7017 (_initialize_psymtab): Update.
7018 * symmisc.c (maintenance_check_symtabs): New function.
7019 (maintenance_expand_name_matcher): New function
7020 (maintenance_expand_file_matcher): New function
7021 (maintenance_expand_symtabs): New function.
7022 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7025 2013-05-17 Tom Tromey <tromey@redhat.com>
7027 * python/py-inferior.c (infpy_read_memory): Don't call
7028 PyErr_SetString if PyObject_New fails.
7029 * python/py-frame.c (frame_info_to_frame_object): Don't call
7030 PyErr_SetString if PyObject_New fails.
7032 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7034 * acinclude.m4: Add check for dlopen in libdl.
7035 * configure.ac: Ditto.
7036 * configure: Regenerate.
7038 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7040 * frame.c (frame_stash): Convert to htab.
7041 (frame_addr_hash): New function.
7042 (frame_addr_hash_eq): New function.
7043 (frame_stash_create): Convert function to create
7045 (frame_stash_add): Convert function to add an entry to a hash
7047 (frame_stash_find): Convert function to search the hash table.
7048 (frame_stash_invalidate): Convert function to empty the hash
7050 (get_frame_id): Only add to stash if a frame_id is created.
7051 (_initialize_frame): Call frame_stash_create.
7053 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7055 * configure.ac: Ensure MIG is available when building for GNU Hurd
7057 * configure: Regenerate.
7059 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7061 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7063 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7065 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7066 all cleanups are done before returning from this function.
7068 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7070 * utils.h: #include "exceptions.h".
7071 (enum errors): Remove partial declaration.
7073 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7075 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7076 * gdbarch.h, gdbarch.c: Regenerate.
7077 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7080 * rs6000-aix-tdep.h: New file.
7081 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7082 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7084 (struct field_info, struct ld_info_desc): New types.
7085 (ld_info32_desc, ld_info64_desc): New static constants.
7086 (struct ld_info): New type.
7087 (rs6000_aix_extract_ld_info): New function.
7088 (rs6000_aix_shared_library_to_xml): Likewise.
7089 (rs6000_aix_ld_info_to_xml): Likewise.
7090 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7091 (rs6000_aix_init_osabi): Add call to
7092 set_gdbarch_core_xfer_shared_libraries_aix.
7093 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7094 Remove "xml-utils.h" include.
7095 (LdInfo): Delete typedef.
7096 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7098 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7099 Adjust code accordingly.
7100 (rs6000_core_ldinfo): Delete, folded into
7101 rs6000_aix_core_xfer_shared_libraries_aix.
7102 (rs6000_xfer_shared_library): Delete.
7103 (rs6000_xfer_shared_libraries): Reimplement.
7105 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7107 * record.c (record_goto_cmdlist): New.
7108 (cmd_record_goto): Split into this ...
7109 (cmd_record_goto_begin): ... this
7110 (cmd_record_goto_end): ... and this.
7111 (_initialize_record): Change "record goto" to prefix command.
7112 Add commands for "record goto begin" and "record goto end".
7113 Add an alias for "record goto start" to "record goto begin".
7115 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7117 * linespec.c (convert_linespec_to_sals): New comment for
7118 SOURCE_FILENAME assignment.
7120 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7122 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7125 2013-05-14 Tom Tromey <tromey@redhat.com>
7127 * eval.c (parse_and_eval_long): Make 'exp' const.
7128 * value.h (parse_and_eval_long): Update.
7130 2013-05-14 Tom Tromey <tromey@redhat.com>
7132 * ui-file.c (gdb_fopen): Make arguments const.
7133 * ui-file.h (gdb_fopen): Make arguments const.
7135 2013-05-14 Tom Tromey <tromey@redhat.com>
7137 * remote.c (remote_set_trace_notes): Make arguments const.
7138 * target.c (update_current_target): Update cast.
7139 * target.h (to_set_trace_notes): Make arguments const.
7141 2013-05-14 Tom Tromey <tromey@redhat.com>
7143 * go32-nat.c (go32_terminal_info): Make 'args' const.
7144 * inferior.h (child_terminal_info): Update.
7145 * inflow.c (child_terminal_info): Make 'args' const.
7146 * target.c (default_terminal_info): Make 'args' const.
7147 (debug_to_terminal_save_ours): Likewise.
7148 * target.h (struct target_ops) <to_terminal_info>: Make argument
7151 2013-05-13 Tom Tromey <tromey@redhat.com>
7153 * gcore.c (create_gcore_bfd): Make 'filename' const.
7154 * gcore.h (create_gcore_bfd): Make 'filename' const.
7155 * record-full.c (record_full_save): Make 'recfilename' const.
7156 * target.c (target_save_record): Make 'filename' const.
7157 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7159 (target_save_record): Likewise.
7161 2013-05-13 Tom Tromey <tromey@redhat.com>
7164 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7165 ranges section has been read.
7167 2013-05-13 Tom Tromey <tromey@redhat.com>
7170 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7171 STRUCTOP_PTR>: Return a not_lval value for
7172 EVAL_AVOID_SIDE_EFFECTS.
7173 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7174 for EVAL_AVOID_SIDE_EFFECTS.
7176 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7178 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7179 floating point registers to register type before storing
7181 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7184 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7185 Tom Tromey <tromey@redhat.com>
7187 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7189 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7191 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7192 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7193 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7194 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7196 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7197 Tom Tromey <tromey@redhat.com>
7200 * configure: Rebuild.
7201 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7204 2013-05-10 Pedro Alves <palves@redhat.com>
7206 * remote.c (_initialize_remote): Fix spelling of
7207 qXfer:traceframe-info:read packet in packet config command.
7209 2013-05-10 David Taylor <dtaylor@emc.com>
7213 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7214 "QTro" at start of packet.
7216 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7218 * solib-aix.c (solib_aix_relocate_section_addresses):
7219 For the .bss section action, apply the same offset as
7222 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7224 * solib-aix.c (solib_aix_relocate_section_addresses):
7225 Remove FIXME comment.
7227 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7230 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7231 New functions, directly copied from sparc-sol-thread.c.
7232 * sparc-sol-thread.c: Delete.
7233 * configure.ac: Remove code handling sparc-solaris-thread.c.
7234 * configure: Regenerate.
7236 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7238 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7240 (backtrace_command): Add "no-filters" option parsing.
7241 (_initialize_stack): Alter help to reflect "no-filters" option.
7242 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7243 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7244 (py-frame.o): Add target
7245 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7247 * python/python.h: Add new frame filter constants, and flag enum.
7248 (apply_frame_filter): Add definition.
7249 * python/python.c (apply_frame_filter): New non-Python
7251 * python/py-utils.c (py_xdecref): New function.
7252 (make_cleanup_py_xdecref): Ditto.
7253 * python/py-objfile.c: Declare frame_filters dictionary.
7254 (objfpy_dealloc): Add frame_filters dealloc.
7255 (objfpy_new): Initialize frame_filters attribute.
7256 (objfile_to_objfile_object): Ditto.
7257 (objfpy_get_frame_filters): New function.
7258 (objfpy_set_frame_filters): New function.
7259 * python/py-progspace.c: Declare frame_filters dictionary.
7260 (pspy_dealloc): Add frame_filters dealloc.
7261 (pspy_new): Initialize frame_filters attribute.
7262 (pspacee_to_pspace_object): Ditto.
7263 (pspy_get_frame_filters): New function.
7264 (pspy_set_frame_filters): New function.
7265 * python/py-framefilter.c: New file.
7266 * python/lib/gdb/command/frame_filters.py: New file.
7267 * python/lib/gdb/frames.py: New file.
7268 * python/lib/gdb/__init__.py: Initialize global frame_filters
7270 * python/lib/gdb/FrameDecorator.py: New file.
7271 * python/lib/gdb/FrameIterator.py: New file.
7272 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7273 * mi/mi-cmds.h: Declare.
7274 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7275 --no-frame-filter logic, and Python frame filter logic.
7276 (stack_enable_frame_filters): New function.
7277 (parse_no_frame_option): Ditto.
7278 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7280 (mi_cmd_stack_list_locals): Ditto.
7281 (mi_cmd_stack_list_args): Ditto.
7282 (mi_cmd_stack_list_variables): Ditto.
7283 * NEWS: Add frame filter note.
7285 2013-05-09 Doug Evans <dje@google.com>
7287 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7288 All callers updated.
7289 (syms_from_objfile): Ditto. Make static.
7290 (symbol_file_add_with_addrs): Renamed from
7291 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7292 num_offsets. All callers updated.
7293 * symfile.h (syms_from_objfile): Delete.
7295 * symfile.c (decrement_reading_symtab): Add assert.
7296 (increment_reading_symtab): Ditto.
7298 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7300 * source.c (forward_search_command): Replace call to getc
7302 (reverse_search_command): Likewise.
7304 2013-05-08 Doug Evans <dje@google.com>
7306 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7309 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7311 * sol-thread.c (info_cb): Factorize the code a little.
7313 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7315 * sol-thread.c (info_cb): Rework the output of the "maintenance
7316 info sol-threads" command a bit.
7318 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7320 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7321 Replace ti.ti_startfunc by ti.ti_pc.
7323 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7325 * solib-aix.c (solib_aix_free_library_list): New function
7326 for the case where HAVE_LIBEXPAT is not defined.
7328 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7330 PR breakpoints/15413:
7331 * breakpoint.c (condition_completer): Simplify the code to
7332 disconsider multiple locations of breakpoints when completing the
7333 "condition" command.
7335 2013-05-07 Pierre Muller <muller@sourceware.org>
7337 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7338 instead of <sys/wait.h>.
7340 2013-05-07 Pierre Muller <muller@sourceware.org>
7342 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7343 trailing new line from warning message.
7345 2013-05-07 Pierre Muller <muller@sourceware.org>
7347 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7348 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7350 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7352 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7353 error message (ARI fix).
7355 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7357 * features/library-list-aix.dtd: Replace library-list by
7359 * rs6000-nat.c: Replace library-list by library-list-aix
7361 * solib-aix.c: Likewise.
7363 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7365 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7366 Renames TARGET_OBJECT_AIX_LIBRARIES.
7367 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7368 TARGET_OBJECT_LIBRARIES_AIX throughout.
7369 * solib-aix.c: Likwise.
7371 2013-05-07 Yao Qi <yao@codesourcery.com>
7373 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7374 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7376 2013-05-07 Yao Qi <yao@codesourcery.com>
7378 * solib-dsbt.c (enable_break): Declare.
7379 (dsbt_current_sos): Remove call to enable_break2.
7380 (enable_break2): Rename to enable_break. Set solib breakpoint
7381 on '_dl_debug_state'.
7382 (enable_break): Remove.
7384 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7386 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7387 debug state prior to replicating existing hardware watchpoints or
7390 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7392 * gcore.c (gcore_create_callback): Ignore sections with
7393 separate_debug_objfile_backlink != NULL.
7395 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7396 Andrew Jenner <andrew@codesourcery.com>
7397 Chung-Lin Tang <cltang@codesourcery.com>
7398 Julian Brown <julian@codesourcery.com>
7400 Based on the nios2-elf port from Altera Corporation.
7402 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7404 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7405 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7406 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7407 * nios2-tdep.h: New.
7408 * nios2-tdep.c: New.
7409 * nios2-linux-tdep.c: New.
7410 * features/Makefile (WHICH): Add nios2-linux.
7411 (nios2-linux-expedite): Set.
7412 * features/nios2-cpu.xml: New.
7413 * features/nios2.xml: New.
7414 * features/nios2-linux.xml: New.
7415 * features/nios2.c: New (autogenerated).
7416 * features/nios2-linux.c: New (autogenerated).
7417 * regformats/nios2-linux.dat: New (autogenerated).
7418 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7421 2013-05-06 Doug Evans <dje@google.com>
7423 * symfile.c: Whitespace cleanup.
7425 * solist.h (struct target_so_ops): New member clear_so.
7426 * solib-svr4.c (svr4_clear_so): New function.
7427 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7428 * solib.c (clear_so): Renamed from free_so_symbols.
7429 All callers updated. Call target clear_so if it exists.
7431 2013-05-06 Tom Tromey <tromey@redhat.com>
7433 * ada-lang.c (ada_value_primitive_packed_val): Don't
7435 * value.c (set_value_parent): Incref the new parent and decref
7437 (value_copy, value_primitive_field): Use set_value_parent.
7439 2013-05-06 Tom Tromey <tromey@redhat.com>
7441 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7442 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7444 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7445 * dwarf2read.c (write_constant_as_bytes)
7446 (dwarf2_fetch_constant_bytes): New functions.
7448 2013-05-06 Tom Tromey <tromey@redhat.com>
7450 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7452 (dwarf2_const_value_attr): Update.
7454 2013-05-06 Tom Tromey <tromey@redhat.com>
7456 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7457 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7458 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7461 2013-05-06 Tom Tromey <tromey@redhat.com>
7463 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7466 2013-05-06 Doug Evans <dje@google.com>
7468 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7469 * stabsread.h (process_one_symbol): Update declaration.
7470 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7471 * elfread.c (elf_symfile_relocate_probe): Ditto.
7472 * psymtab.c (relocate_psymtabs): Ditto.
7473 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7474 (objfile_relocate): Ditto.
7475 * objfiles.h (objfile_relocate): Update declaration.
7476 * symfile.c (relative_addr_info_to_section_offsets): Constify
7478 (default_symfile_offsets): Ditto.
7479 (syms_from_objfile_1): Constify offsets parameter.
7480 (syms_from_objfile): Ditto.
7481 (symbol_file_add_with_addrs_or_offsets): Ditto.
7482 (symfile_map_offsets_to_segments): Constify data parameter.
7483 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7484 delta parameters of member relocate.
7485 (struct sym_probe_fns): Constify new_offsets,
7486 delta parameters of member sym_relocate_probe.
7487 (struct sym_fns): Constify section_addr_info parameter of member
7489 (relative_addr_info_to_section_offsets): Update declaration.
7490 (default_symfile_offsets): Ditto.
7491 (syms_from_objfile): Ditto.
7492 (symfile_map_offsets_to_segments): Ditto.
7494 * symfile.c (syms_from_objfile_1): Use correct section count when
7495 objfile->sf == NULL.
7497 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7499 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7501 2013-05-06 Doug Evans <dje@google.com>
7503 * psympriv.h (struct partial_symtab): Augment comment for member
7506 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7508 Reimplement shared library support on ppc-aix...
7509 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7510 * features/library-list-aix.dtd: New file.
7511 * solib-aix.h, solib-aix.c: New file.
7512 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7513 (rs6000_find_toc_address_hook): Delete.
7514 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7515 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7516 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7518 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7519 (vmap_symtab, fixup_breakpoints): Delete.
7520 (rs6000_xfer_shared_libraries): New function.
7521 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7522 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7523 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7524 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7525 (rs6000_xfer_shared_library): New function.
7526 (find_toc_address): Delete.
7527 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7528 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7529 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7530 before creating minimal symbol. Adjust function description
7532 (scan_xcoff_symtab): Replace call to
7533 prim_record_minimal_symbol_and_info by call to
7534 record_minimal_symbol.
7535 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7536 around default_symfile_offsets.
7537 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7538 powerpc-aix targets.
7539 * config/rs6000/nm-rs6000.h: Delete.
7540 * config/powerpc/aix.mh (NAT_FILE): Delete.
7541 (NATDEPFILES): Remove xcoffsolib.o.
7542 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7543 (ALL_TARGET_OBS): Add solib-aix.o.
7544 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7545 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7546 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7547 * xcoffsolib.h, xcoffsolib.c: Delete.
7549 * solib.c (reload_shared_libraries): Remove reference to
7550 SOLIB_CREATE_INFERIOR_HOOK.
7551 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7552 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7553 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7555 * corelow.c (deprecated_core_resize_section_table): Delete.
7556 * exec.c: Remove include of xcoffsolib.h".
7557 (map_vmap, vmap): Delete.
7558 (exec_close_1): Remove references to vmap.
7559 (exec_file_attach): Remove vmap handling code, and reference
7560 to DEPRECATED_IBM6000_TARGET.
7561 (bfdsec_to_vmap): Delete.
7562 (exec_files_info): Remove block of code handling VMAP.
7563 * infcmd.c (post_create_inferior): Remove reference to
7564 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7565 * infrun.c (follow_exec): Remove reference to
7566 SOLIB_CREATE_INFERIOR_HOOK.
7567 * stack.c (print_frame): Remove reference to PC_SOLIB.
7568 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7569 (dsbt_relocate_main_executable): Likewise.
7570 * solib-frv.c (frv_current_sos): Likewise.
7572 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7574 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7575 to target_write_memory and target_read_memory.
7577 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7579 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7580 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7582 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7584 * darwin-nat.c: Replace all "%x" instances in format strings
7585 into "0x%x" throughout.
7587 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7589 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7590 gdb_assert by call to MACH_CHECK_ERROR.
7591 (darwin_attach_pid): Raise an error rather than a failed
7592 assertion when various system calls failed. Report a warning
7593 instead of raising a failed assertion when PREV_NOT is not NULL
7594 after call to mach_port_request_notification.
7595 (darwin_ptrace_me): Raise an error rather than a failed
7596 assertion when read returns nonzero.
7598 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7600 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7602 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7606 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7608 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7609 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7610 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7611 a stale cleanup. Fix double free of NAME.
7613 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7615 * windows-nat.c (windows_delete_thread): Accept an additional
7616 argument, the thread's exit code, and announce thread death when
7617 print_thread_events is non-zero and we are deleting a thread that
7618 is not the main thread.
7619 (get_windows_debug_event): Pass thread exit code to
7620 windows_delete_thread.
7622 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7624 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7625 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7626 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7627 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7628 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7629 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7630 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7631 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7632 (gdbarch_tdep): New struct.
7633 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7635 (v850e3v5_register_name): New function.
7636 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7637 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7638 code handling the struct return conventions for the RH850 ABI.
7640 (v850_eight_byte_align_p): New function.
7641 (v850_push_call_dummy): Push structs by value, not by reference
7642 for the RH850 ABI. Add support for eight byte alignment.
7643 (v850_dbtrap_breakpoint_from_pc): New function.
7644 (v850_gdbarch_init): Add ABI detection code. Register
7645 v850e3v5_register_name for the v850e3v5 architecture. Set the
7646 number of registers for v850e3v5. Register
7647 v850_dbtrap_breakpoint_from_pc as appropriate.
7648 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7650 2013-05-03 Doug Evans <dje@google.com>
7652 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7653 of bfd_count_sections.
7654 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7655 * symfile.c (default_symfile_offsets): Ditto.
7656 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7657 one entry, not bfd_count_sections entries.
7659 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7661 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7662 `save' and `restore' register groups. Don't include SPL
7663 or SPH in these groups.
7664 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7665 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7666 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7667 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7668 dwarf2_append_unwinders().
7670 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7672 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7673 ignore SIGINT and SIGTRAP in case these internal signals are
7676 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7678 * darwin-nat.c (darwin_read_write_inferior): Change types
7679 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7680 of copy_count to "mach_msg_type_number_t".
7681 (darwin_read_dyld_info): Change type of parameter
7682 rdaddr to "gdb_byte *".
7684 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7686 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7687 of &info->load_map from "char *" to "gdb_byte *".
7689 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7691 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7692 from "char *" to "gdb_byte *".
7693 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7695 2013-04-30 Doug Evans <dje@google.com>
7697 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7698 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7699 DWO stub. If DWO isn't found, just use stub.
7700 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7702 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7703 calling init_cutu_and_read_dies.
7705 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7707 * target-descriptions.c (maint_print_c_tdesc_cmd):
7708 Add case to parse structures as register types and
7711 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7713 * MAINTAINERS (Write After Approval): Add myself to the list.
7715 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7717 * sol-thread.c (rw_common): Change type of parameter "buf"
7719 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7720 rw_common to "gdb_byte *" instead of "char *".
7722 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7724 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7725 of local variable msym to const struct bound_minimal_symbol.
7726 Adjust use accordingly.
7727 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7729 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7731 * i386gnu-nat.c (CREG_OFFSET): New macro.
7732 (creg_offset): New array.
7733 (CREG_ADDR): Use creg_offset instead of reg_offset.
7735 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7737 * mep-tdep.c (mep_write_pc): Delete.
7738 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7739 Add call to set_gdbarch_pc_regnum.
7741 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7743 * common/filestuff.c: Replace #include <dirent.h> by
7744 #include "gdb_dirent.h".
7746 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7748 * common/filestuff.c: Replace #include <sys/stat.h> by
7749 #include "gdb_stat.h".
7751 2013-04-29 Pierre Muller <muller@sourceware.org>
7753 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7754 editCase function rule.
7755 (get_DW_AT_signature_type): Likewise.
7757 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7759 * m32r-tdep.c (m32r_write_pc): Delete.
7760 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7761 Add call to set_gdbarch_pc_regnum.
7763 2013-04-29 Pierre Muller <muller@sourceware.org>
7765 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7767 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7769 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7771 2013-04-28 Yao Qi <yao@codesourcery.com>
7773 * solib-dsbt.c (fetch_loadmap): Re-indent.
7774 (displacement_from_map, enable_break2): Likewise.
7775 (dsbt_relocate_section_addresses): Likewise.
7777 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7781 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7784 * dwarf2read.c (process_full_comp_unit): Always create a static
7787 2013-04-25 Hui Zhu <hui@codesourcery.com>
7789 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7790 to loc->cmd_bytecode.
7792 2013-04-24 Doug Evans <dje@google.com>
7794 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7796 2013-04-22 Keith Seitz <keiths@redhat.com>
7798 * tracepoint.c (trace_save): Call the writer's start method.
7800 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7803 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7806 2013-04-23 Tom Tromey <tromey@redhat.com>
7808 * common/filestuff.c: Check USE_WIN32API before including
7810 (HAVE_F_GETFD): New define.
7811 (mark_cloexec): Check HAVE_F_GETFD.
7812 (gdb_open_cloexec): Change 'mode' to unsigned long.
7813 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7814 (gdb_pipe_cloexec): Check HAVE_PIPE.
7815 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7818 2013-04-23 Hui Zhu <hui@codesourcery.com>
7821 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7823 2013-04-23 Hui Zhu <hui@codesourcery.com>
7826 * breakpoint.c (dprintf_print_recreate): New.
7827 (save_breakpoints): Let it not save dprintf commands.
7828 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7830 2013-04-22 Tom Tromey <tromey@redhat.com>
7833 * Makefile.in (SFILES): Add filestuff.c
7834 (COMMON_OBS): Add filestuff.o.
7835 (filestuff.o): New target.
7836 * auto-load.c (auto_load_objfile_script_1): Use
7838 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7839 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7840 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7841 * common/agent.c (gdb_connect_sync_socket): Use
7843 * common/filestuff.c: New file.
7844 * common/filestuff.h: New file.
7845 * common/linux-osdata.c (linux_common_core_of_thread)
7846 (command_from_pid, commandline_from_pid, print_source_lines)
7847 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7848 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7850 * common/linux-procfs.c (linux_proc_get_int)
7851 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7852 * config.in, configure: Rebuild.
7853 * configure.ac: Don't check for sys/socket.h. Check for
7855 * corelow.c (core_open): Use gdb_open_cloexec.
7856 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7857 * fork-child.c (fork_inferior): Call close_most_fds.
7858 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7859 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7860 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7861 Use gdb_fopen_cloexec.
7862 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7864 (linux_async_pipe): Use gdb_pipe_cloexec.
7865 * remote-fileio.c (remote_fileio_func_open): Use
7867 * remote.c (remote_file_put, remote_file_get): Use
7869 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7871 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7872 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7873 * solib.c (solib_find): Use gdb_open_cloexec.
7874 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7875 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7876 (tfile_open): Use gdb_open_cloexec.
7877 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7878 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7879 * xml-support.c (xml_fetch_content_from_file): Use
7881 * main.c (captured_main): Call notice_open_fds.
7883 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7885 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7886 'char *' to 'gdb_byte *'.
7887 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7890 2013-04-22 Yao Qi <yao@codesourcery.com>
7892 * infrun.c: Fix typo in comment.
7894 2013-04-22 Andrew Haley <aph@redhat.com>
7896 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7899 2013-04-20 Yao Qi <yao@codesourcery.com>
7901 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7902 'char *' to 'gdb_byte *'. Cast the return value of
7903 'bt_ctf_get_char_array' to 'gdb_byte *'.
7905 2013-04-19 Pedro Alves <palves@redhat.com>
7907 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7909 * configure: Regenerate.
7911 2013-04-19 Pedro Alves <palves@redhat.com>
7913 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7916 2013-04-19 Pedro Alves <palves@redhat.com>
7918 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7919 Change type of 'myaddr' parameter to gdb_byte pointer.
7920 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7921 to 'long long' pointer instead of to 'unsigned long long'.
7922 (monitor_write_memory_block, monitor_read_memory_single)
7923 (monitor_read_memory): Change type of 'myaddr' parameter to
7926 2013-04-19 Pedro Alves <palves@redhat.com>
7928 * record.c (validate_history_size): Make parameter 'setting'
7931 2013-04-19 Pedro Alves <palves@redhat.com>
7933 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7936 2013-04-19 Pedro Alves <palves@redhat.com>
7938 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7941 2013-04-19 Pedro Alves <palves@redhat.com>
7943 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7944 * ada-tasks.c (read_fat_string_value): Likewise.
7946 2013-04-19 Pedro Alves <palves@redhat.com>
7948 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7949 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7950 'offset', and adjust.
7952 2013-04-19 Pedro Alves <palves@redhat.com>
7954 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7955 (read_index_from_section): Add cast to 'char *'.
7957 2013-04-19 Pedro Alves <palves@redhat.com>
7959 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7961 2013-04-19 Pedro Alves <palves@redhat.com>
7963 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7965 2013-04-19 Pedro Alves <palves@redhat.com>
7967 * record-full.c (record_full_get_bookmark): Change local 'ret'
7968 type to char * and add cast to gdb_byte *.
7969 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7971 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7973 2013-04-19 Pedro Alves <palves@redhat.com>
7975 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7976 * python/py-prettyprint.c (print_string_repr): Change type of
7977 'output' local to char *. Add cast to gdb_byte * in
7978 LA_PRINT_STRING call.
7979 (print_children): Change type of 'output' local to char *.
7980 * python/py-value.c (valpy_string): Add cast to const char * in
7981 PyUnicode_Decode call.
7983 2013-04-19 Pedro Alves <palves@redhat.com>
7985 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7986 and change its type to 'const char *'. Adjust.
7987 (mips_send_packet): Add cast to 'char *', and remove cast to
7989 (mips_receive_packet): Remove cast to 'unsigned char *'.
7990 (mips_load_srec): Use bfd_byte.
7991 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7992 (pmon_checkset): Make 'value' parameter unsigned.
7994 2013-04-19 Pedro Alves <palves@redhat.com>
7996 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7998 2013-04-19 Pedro Alves <palves@redhat.com>
8000 * remote.c (remote_write_bytes_aux, compare_sections_command)
8002 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8003 (remote_hostio_readlink, remote_bfd_iovec_pread)
8004 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8005 binary buffer, and char when buffer is used as string.
8006 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8007 (trace_save, tfile_open, traceframe_walk_blocks)
8008 (tfile_fetch_registers): Likewise.
8010 2013-04-19 Pedro Alves <palves@redhat.com>
8012 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8013 buffer and size_t size. Adjust.
8014 * ser-base.h (ser_base_write): Adjust.
8015 * ser-go32.c (cnts): Change type to size_t.
8016 (dos_write): Change prototype -- take 'void *'
8017 buffer and size_t size. Adjust.
8018 (dos_info): Print elements of 'cnts' as unsigned long.
8019 * serial.c (serial_write): Likewise.
8020 * serial.h (serial_write): Adjust.
8021 (struct serial_ops) <write>: Change prototype -- take 'void *'
8022 buffer and size_t size. Adjust.
8024 2013-04-19 Pedro Alves <palves@redhat.com>
8026 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8028 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8030 2013-04-19 Pedro Alves <palves@redhat.com>
8032 * alpha-tdep.c (alpha_extract_return_value): Use
8033 regcache_cooked_read_unsigned to read 'v0'.
8035 2013-04-19 Pedro Alves <palves@redhat.com>
8037 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8038 parameters 'at', 'as' and 'offset' to uint32_t.
8040 2013-04-19 Pedro Alves <palves@redhat.com>
8042 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8043 'is64' to signed 'int'.
8045 2013-04-19 Pedro Alves <palves@redhat.com>
8047 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8050 2013-04-19 Pedro Alves <palves@redhat.com>
8052 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8053 'insnbuf' buffer type to unsigned int[].
8055 2013-04-19 Pedro Alves <palves@redhat.com>
8057 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8059 2013-04-19 Pedro Alves <palves@redhat.com>
8061 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8064 2013-04-19 Pedro Alves <palves@redhat.com>
8066 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8067 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8069 * mips-tdep.c (heuristic_fence_post): Change type to int.
8070 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8072 2013-04-19 Pedro Alves <palves@redhat.com>
8074 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8075 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8076 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8078 2013-04-19 Pedro Alves <palves@redhat.com>
8080 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8081 it to get a string view of the byte buffer.
8082 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8083 type to gdb_byte *. Adjust.
8084 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8085 Change local to char *.
8086 * solib-darwin.c (find_program_interpreter): Change return type to
8088 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8089 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8090 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8091 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8092 * solib-svr4.c (find_program_interpreter): Change return type to
8094 (enable_break): Change local 'interp_name' to char *.
8095 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8096 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8097 (spu_pseudo_register_write_spu): Use char for string buffer.
8099 (info_spu_event_command, info_spu_signal_command): Add casts to
8102 2013-04-19 Pedro Alves <palves@redhat.com>
8104 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8106 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8107 * ada-lang.c (ada_value_assign): Use gdb_byte.
8108 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8109 (alphanbsd_sigtramp_offset): Use gdb_byte.
8110 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8111 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8112 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8113 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8114 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8115 * arm-tdep.c (arm_stub_unwind_sniffer)
8116 (arm_displaced_init_closure): Use gdb_byte.
8117 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8118 (arm_default_thumb_le_breakpoint)
8119 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8120 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8121 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8122 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8123 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8124 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8125 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8126 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8127 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8128 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8129 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8130 (cris_store_return_value, cris_extract_return_value): Use
8132 (constraint): Change type of parameter to char * from signed
8133 char*. Use gdb_byte.
8134 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8135 of local buffer to gdb_byte *.
8136 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8137 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8138 (add_address_entry): Change type of local buffer to gdb_byte[].
8139 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8140 (frv_push_dummy_call): Use gdb_byte.
8141 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8142 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8143 (hppa_hpux_supply_save_state): Use gdb_byte.
8144 * hppa-tdep.c (hppa32_push_dummy_call)
8145 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8146 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8147 (slotN_contents, replace_slotN_contents): Change type of parameter
8149 (fetch_instruction, ia64_pseudo_register_write)
8150 (ia64_register_to_value, ia64_value_to_register)
8151 (ia64_extract_return_value, ia64_store_return_value)
8152 (ia64_push_dummy_call): Use gdb_byte.
8153 * m32c-tdep.c (m32c_return_value): Remove cast.
8154 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8155 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8157 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8158 * mn10300-tdep.c (mn10300_store_return_value)
8159 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8161 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8162 (moxie_process_record): Remove casts.
8163 * ppc-ravenscar-thread.c (supply_register_at_address)
8164 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8165 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8166 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8167 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8168 * remote.c (compare_sections_command): Use gdb_byte.
8169 * score-tdep.c (score7_free_memblock): Change type of parameter to
8171 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8172 gdb_byte *. Use gdb_byte.
8173 (sh_push_dummy_call_fpu): Use gdb_byte.
8174 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8175 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8176 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8177 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8178 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8179 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8180 (sh64_store_return_value, sh64_register_convert_to_virtual):
8181 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8182 (sh64_pseudo_register_write): Use gdb_byte.
8183 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8184 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8186 (irix_current_sos): Use gdb_byte.
8187 * solib-som.c (som_current_sos): Use gdb_byte.
8188 * sparc-ravenscar-thread.c (supply_register_at_address)
8189 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8190 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8191 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8192 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8194 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8196 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8197 * xstormy16-tdep.c (xstormy16_extract_return_value)
8198 (xstormy16_store_return_value): Change parameter type to
8199 'gdb_byte *'. Adjust.
8200 (xstormy16_push_dummy_call): Use gdb_byte.
8201 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8202 (call0_analyze_prologue, execute_code): Use gdb_byte.
8204 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8205 Pedro Alves <palves@redhat.com>
8207 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8210 2013-04-17 Doug Evans <dje@google.com>
8212 * dwarf2read.c (struct signatured_type): New member type.
8213 (struct attribute): Replace member signatured_type with signature.
8214 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8215 (read_call_site_scope): Call follow_die_ref instead of
8216 follow_die_ref_or_sig.
8217 (read_structure_type): Rewrite handling of signatured types.
8218 (read_enumeration_type): Ditto.
8219 (read_attribute_value): Update.
8220 (build_error_marker_type): New function.
8221 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8222 Don't call error for bad types, just build an error marker type.
8223 (dump_die_shallow): Update.
8224 (follow_die_sig_1): Renamed from follow_die_sig.
8225 Don't call error for bad types, instead return NULL.
8226 (follow_die_sig): New function.
8227 (get_signatured_type, get_DW_AT_signature_type): New functions.
8229 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8231 * aarch64-tdep.c (aarch64_write_pc): Removed.
8232 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8235 2013-04-17 Yao Qi <yao@codesourcery.com>
8237 * top.c (print_gdb_configuration): Print configure-time
8238 parameter on using libbabeltrace or not.
8240 2013-04-16 Pedro Alves <palves@redhat.com>
8242 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8244 2013-04-16 Pedro Alves <palves@redhat.com>
8246 * common/glibc_thread_db.h: Update from upstream glibc
8247 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8249 2013-04-16 Pedro Alves <palves@redhat.com>
8251 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8252 * common/glibc_thread_db.h: ... this new file ...
8253 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8255 2013-04-16 Will Newton <will.newton@gmail.com>
8256 Pedro Alves <palves@redhat.com>
8260 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8261 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8264 2013-04-16 Pedro Alves <palves@redhat.com>
8265 Eli Zaretskii <eliz@gnu.org>
8267 * NEWS: Mention "set foo unlimited".
8269 2013-04-15 Doug Evans <dje@google.com>
8271 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8272 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8273 (create_dwo_cu_reader): Renamed from
8274 create_dwo_debug_info_hash_table_reader.
8275 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8276 Remove support for multiple CUs in a DWO file.
8277 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8279 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8281 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8282 (create_dwo_in_dwp): Ditto.
8284 2013-04-15 Tom Tromey <tromey@redhat.com>
8286 * NEWS: Move recent entries into "since 7.6" section.
8288 2013-04-15 Tom Tromey <tromey@redhat.com>
8292 * break-catch-throw.c (struct exception_catchpoint)
8293 <exception_rx, pattern>: New fields.
8294 (fetch_probe_arguments, dtor_exception_catchpoint)
8295 (check_status_exception_catchpoint)
8296 (print_one_detail_exception_catchpoint): New functions.
8297 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8298 Compile regular expression if needed.
8299 (extract_exception_regexp): New function.
8300 (catch_exception_command_1): Use extract_exception_regexp.
8301 (compute_exception): Use fetch_probe_arguments.
8302 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8303 and check_status fields.
8304 * cp-abi.c (cplus_typename_from_type_info): New function.
8305 * cp-abi.h (cplus_typename_from_type_info): Declare.
8306 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8307 * gdb_regex.h (compile_rx_or_error): Declare.
8308 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8310 (init_gnuv3_ops): Set get_type_from_type_info field.
8311 * probe.c (compile_rx_or_error): Move...
8312 * utils.c (compile_rx_or_error): ... here.
8314 2013-04-15 Tom Tromey <tromey@redhat.com>
8318 * break-catch-throw.c (compute_exception): New function.
8319 (exception_funcs): New global.
8320 (_initialize_break_catch_throw): Create $_exception.
8321 * cp-abi.c (cplus_type_from_type_info): New function.
8322 * cp-abi.h (cplus_type_from_type_info): Declare.
8323 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8324 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8325 (gnuv3_get_type_from_type_info): New functions.
8326 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8328 2013-04-15 Tom Tromey <tromey@redhat.com>
8330 * break-catch-throw.c (struct exception_names): New.
8331 (exception_functions): Change type.
8332 (re_set_exception_catchpoint): Look for SDT probes.
8334 2013-04-15 Tom Tromey <tromey@redhat.com>
8337 * break-catch-throw.c (exception_functions): New global.
8338 (gnu_v3_exception_catchpoint_ops): Move earlier.
8339 (struct exception_catchpoint): New.
8340 (classify_exception_breakpoint): Rewrite.
8341 (re_set_exception_catchpoint): New function.
8342 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8343 Allocate a struct exception_catchpoint.
8344 (catch_exception_command_1): Update.
8345 (initialize_throw_catchpoint_ops): Set 're_set' method.
8347 2013-04-15 Tom Tromey <tromey@redhat.com>
8349 * Makefile.in (SFILES): Add break-catch-throw.c
8350 (COMMON_OBS): Add break-catch-throw.o.
8351 * break-catch-throw.c: New file.
8352 * breakpoint.c: Move exception-catching code to new file.
8353 (ep_parse_optional_if_clause): No longer static.
8354 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8356 2013-04-15 Tom Tromey <tromey@redhat.com>
8360 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8361 * c-exp.y (TYPEID): New token.
8362 (exp): Add new TYPEID productions.
8363 (ident_tokens): Add "typeid".
8364 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8365 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8366 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8367 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8368 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8370 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8371 (build_std_type_info_type, gnuv3_get_typeid_type)
8372 (gnuv3_get_typeid): New functions.
8373 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8374 new fields on ABI object.
8375 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8376 * std-operator.def (OP_TYPEID): New.
8378 2013-04-15 Tom Tromey <tromey@redhat.com>
8380 * elfread.c (elf_symtab_read): Install versioned symbol under
8381 unversioned name as well.
8383 2013-04-15 Tom Tromey <tromey@redhat.com>
8386 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8387 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8388 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8389 (gdb_demangle): New function.
8390 * cp-support.h (gdb_demangle): Declare.
8391 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8392 (dwarf2_name): Use gdb_demangle.
8393 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8394 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8396 (gnuv3_print_method_ptr): Use gdb_demangle.
8397 * jv-lang.c (java_demangle): Use gdb_demangle.
8398 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8399 * language.c (unk_lang_demangle): Use gdb_demangle.
8400 * symtab.c (symbol_find_demangled_name)
8401 (demangle_for_lookup): Use gdb_demangle.
8403 2013-04-15 Tom Tromey <tromey@redhat.com>
8407 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8409 (classify_exception_breakpoint): New function.
8410 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8411 (print_mention_exception_catchpoint)
8412 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8413 (catch_exception_command_1): Handle "rethrow" catchpoint.
8414 (catch_rethrow_command): New function.
8415 (_initialize_breakpoint): Add "catch rethrow" command.
8417 2013-04-15 Pierre Muller <muller@sourceware.org>
8419 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8420 set_gdbarch_write_pc as deprecated anymore.
8422 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8424 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8427 2013-04-13 Yao Qi <yao@codesourcery.com>
8429 * ctf.c (_initialize_ctf): Include "completer.h".
8430 Call add_target_with_completer instead of add_target.
8432 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 Fix GDB regression related to PR binutils/14813.
8435 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8436 * minidebug.c (lzma_close): Add return value comment.
8437 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8438 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8439 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8441 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8443 * config.in: Regenerate.
8445 2013-04-12 Tom Tromey <tromey@redhat.com>
8447 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8449 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8450 (struct die_reader_specs) <buffer>: Likewise.
8451 (die_reader_func_ftype): Make 'info_ptr' const.
8452 (struct line_header) <include_dirs, statement_program_start,
8453 statement_program_end>: Now const.
8454 (struct file_entry) <name>: Likewise.
8455 (struct partial_die_info) <sibling>: Likewise.
8456 (struct dwarf_block) <data>: Likewise.
8457 (dwarf2_read_section): Remove cast.
8458 (dwarf2_get_section_info): Make 'bufp' const.
8459 (read_index_from_section): Constify.
8460 (dw2_get_file_names_reader): Make 'info_ptr' const.
8461 (dw2_get_primary_filename_reader): Likewise.
8462 (read_comp_unit_head): Make 'info_ptr' and return type const.
8463 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8465 (read_abbrev_offset): Constify.
8466 (dwarf2_create_include_psymtab): Make 'name' const.
8467 (create_debug_types_hash_table): Update.
8468 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8469 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8471 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8472 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8473 (read_comp_units_from_section): Constify.
8474 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8475 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8477 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8478 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8479 (create_dwp_hash_table, dwarf2_ranges_read)
8480 (dwarf2_record_block_ranges): Constify.
8481 (read_die_and_children, read_die_and_siblings_1)
8482 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8484 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8485 (abbrev_table_read_table): Constify.
8486 (load_partial_dies): Make 'info_ptr' const.
8487 (read_partial_die, read_attribute_value, read_attribute): Make
8488 'info_ptr' and return type const.
8489 (read_address, read_initial_length)
8490 (read_checked_initial_length_and_offset, read_offset)
8491 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8493 (read_direct_string): Make 'buf' and return type const.
8494 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8495 (read_indirect_string): Make return type const.
8496 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8497 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8499 (read_str_index): Make return type const.
8500 (add_include_dir): Make 'include_dir' const.
8501 (add_file_name): Make 'name' const.
8502 (dwarf_decode_line_header): Constify.
8503 (psymtab_include_file_name): Make return type const.
8504 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8505 (dwarf2_start_subfile): Make 'filename' const.
8506 (dwarf2_const_value_attr): Make 'bytes' const.
8507 (read_signatured_type_reader): Make 'info_ptr' const.
8508 (decode_locdesc): Constify.
8509 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8511 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8512 'mac_end', and return type const.
8513 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8514 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8516 (per_cu_header_read_in): Constify.
8517 * symfile.h (dwarf2_get_section_info): Update.
8519 2013-04-12 Tom Tromey <tromey@redhat.com>
8521 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8523 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8525 * NEWS: Mention "show configuration", --configuration.
8526 * top.c (print_gdb_configuration): New function, displays the
8527 details about GDB configure-time parameters.
8528 (print_gdb_version): Mention "show configuration".
8529 * cli/cli-cmds.c (show_configuration): New function.
8530 (_initialize_cli_cmds): Add the "show configuration" command.
8531 * main.c (captured_main) <print_configuration>: New static var.
8532 <long_options>: Use it.
8533 If --configuration was given, call print_gdb_configuration.
8535 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8536 Pedro Alves <palves@redhat.com>
8538 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8539 (generated_files): Add gcore.
8540 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8541 HAVE_NATIVE_GCORE_HOST.
8543 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8544 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8545 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8546 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8547 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8548 Add HAVE_NATIVE_GCORE_HOST.
8549 * configure: Regenerate.
8550 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8551 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8552 AC_CONFIG_FILES for gcore.
8553 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8555 * gdb_gcore.sh: Rename to ...
8556 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8557 and GCORE_TRANSFORM_NAME substitutions.
8559 Fix parsing tabs in ${gdb_target_obs}.
8560 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8562 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8564 * remote.c (unpush_and_perror): Add output message final dot.
8566 2013-04-11 Yao Qi <yao@codesourcery.com>
8568 * tracepoint.c (tfile_interp_line): Fit parameters line and
8571 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8573 * solib.c (solib_map_sections): Remove code overwriting
8574 SO->SO_NAME with the bfd's filename.
8576 2013-04-10 Pedro Alves <palves@redhat.com>
8578 * cli/cli-decode.c (integer_unlimited_completer): New function.
8579 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8580 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8582 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8583 (is_unlimited_literal): New function.
8584 (do_set_command): Handle literal "unlimited" arguments.
8585 * frame.c (_initialize_frame) <set backtrace limit>: Document
8587 * printcmd.c (_initialize_printcmd) <set print
8588 max-symbolic-offset>: Add help text.
8589 * record-full.c (_initialize_record_full) <set record full
8590 insn-number-max>: Likewise.
8591 * record.c (_initialize_record) <set record
8592 instruction-history-size, set record function-call-history-size>:
8594 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8596 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8598 * source.c (_initialize_source) <set listsize>: Add help text.
8599 * utils.c (initialize_utils) <set height, set width>: Likewise.
8600 <set pagination>: Mention "set height unlimited".
8601 * valprint.c (_initialize_valprint) <set print elements, set print
8602 repeats>: Document "unlimited".
8604 2013-04-10 Pedro Alves <palves@redhat.com>
8606 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8607 instead of disconnect_tracing.
8608 * infcmd.c (detach_command, disconnect_command): Call
8609 query_if_trace_running. Adjust.
8610 * top.c: Include "tracepoint.h".
8611 (quit_target): Delete. Contents moved ...
8612 (quit_force): ... here. Wrap each stage of teardown in
8613 TRY_CATCH. Call disconnect_tracing before detaching.
8615 2013-04-10 Hui Zhu <hui@codesourcery.com>
8616 Yao Qi <yao@codesourcery.com>
8618 * configure.ac: Check libbabeltrace is installed.
8619 * config.in: Regenerate.
8620 * configure: Regenerate.
8621 * Makefile.in (LIBBABELTRACE): New.
8622 (CLIBS): Add LIBBABELTRACE.
8623 * ctf.c: Include "exec.h".
8624 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8625 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8626 (ctf_save_metadata_header): Define new type aliases in
8628 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8629 in metadata. Start a new faked packet for trace status.
8630 (ctf_write_status): Write trace status to CTF.
8631 (ctf_write_uploaded_tsv): Write TSV to CTF.
8632 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8633 (ctf_write_definition_end): End the faked packet.
8635 (ctx, ctf_iter, trace_dirname): New.
8636 (start_pos): New variable.
8637 (ctf_destroy, ctf_open_dir, ctf_open): New.
8638 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8640 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8641 (ctf_fetch_registers, ctf_xfer_partial): New.
8642 (ctf_get_trace_state_variable_value): New.
8643 (ctf_get_tpnum_from_frame_event): New.
8644 (ctf_get_traceframe_address): New.
8645 (ctf_trace_find, ctf_has_stack): New.
8646 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8647 (ctf_get_trace_status, ctf_read_status): New.
8648 (_initialize_ctf): New.
8649 * tracepoint.c (get_tracepoint_number): New
8650 (get_uploaded_tsv): Remove 'static'.
8651 (struct traceframe_info, trace_regblock_size): Move it to ...
8652 * tracepoint.h: ... here.
8653 (get_tracepoint_number): Declare it.
8654 (get_uploaded_tsv): Declare it.
8656 * NEWS: Mention new configure option.
8658 2013-04-10 Pedro Alves <palves@redhat.com>
8659 Hui Zhu <hui@codesourcery.com>
8661 * breakpoint.c (dprintf_re_set): New.
8662 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8665 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8667 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8668 Remove solib-svr4.o from the list.
8670 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8672 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8673 Use gdb_assert_not_reached instead of invalid boolean expression.
8675 2013-04-09 Pedro Alves <palves@redhat.com>
8677 * remote.c (unpush_and_perror): New function.
8678 (readchar, remote_serial_write): Use it.
8680 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8682 * NEWS: Mention new btrace RSP packets.
8684 2013-04-08 Tom Tromey <tromey@redhat.com>
8686 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8689 2013-04-08 Tom Tromey <tromey@redhat.com>
8691 * maint.c (print_bfd_section_info): Print the section index.
8692 * symmisc.c (dump_msymbols): Print the section index.
8694 2013-04-08 Tom Tromey <tromey@redhat.com>
8697 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8698 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8699 * breakpoint.c (resolve_sal_pc): Update.
8700 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8701 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8702 (minsym_lookup_iterator_cb): Use it.
8703 (default_read_var_value): Update.
8704 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8706 * infcmd.c (jump_command): Update.
8707 * linespec.c (minsym_found): Update.
8708 * maint.c (maintenance_translate_address): Update.
8709 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8710 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8711 * parse.c (write_exp_msymbol): Update.
8712 * printcmd.c (address_info): Update.
8713 * psymtab.c (find_pc_sect_psymbol): Update.
8714 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8716 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8717 Don't initialize SYMBOL_OBJ_SECTION.
8718 * spu-tdep.c (spu_catch_start): Update.
8719 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8720 * symmisc.c (dump_msymbols, print_symbol): Update.
8721 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8722 how fallback section is computed.
8723 (fixup_symbol_section): Update.
8724 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8726 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8727 Initialize SYMBOL_SECTION.
8728 * symtab.h (struct general_symbol_info) <section>: Update comment.
8729 <obj_section>: Remove.
8730 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8731 (SYMBOL_OBJFILE): New macro.
8733 2013-04-08 Tom Tromey <tromey@redhat.com>
8735 * coffread.c (record_minimal_symbol): Update.
8736 * dbxread.c (record_minimal_symbol): Update.
8737 * elfread.c (record_minimal_symbol): Update.
8738 * machoread.c (macho_symtab_add_minsym): Update.
8739 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8741 * minsyms.c (prim_record_minimal_symbol): Update.
8742 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8744 (prim_record_minimal_symbol_and_info): Likewise.
8745 * minsyms.h (prim_record_minimal_symbol_full)
8746 (prim_record_minimal_symbol_and_info): Update.
8747 * symtab.c (allocate_symbol, initialize_symbol)
8748 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8749 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8752 2013-04-08 Tom Tromey <tromey@redhat.com>
8755 * solib-som.c (som_solib_section_offsets): Use BFD section
8756 indices. Set offsets for all sections.
8757 * somread.c (som_symtab_read): Compute BFD section for
8758 symbol. Use prim_record_minimal_symbol_and_info.
8759 (som_symfile_read): Fix comment.
8760 (struct find_section_offset_arg): New.
8761 (find_section_offset, set_section_index): New functions.
8762 (som_symfile_offsets): Use set_section_index to compute
8765 2013-04-08 Tom Tromey <tromey@redhat.com>
8767 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8768 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8769 gdb_bfd_section_index.
8770 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8772 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8774 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8776 * objfiles.c (add_to_objfile_sections_full): New function.
8777 (add_to_objfile_sections): Use it.
8778 (build_section_table): Rewrite.
8779 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8780 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8781 (struct objfile) <sections>: Update comment.
8782 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8784 (ALL_OBJSECTIONS): Use it.
8785 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8786 * solib-frv.c (frv_relocate_main_executable): Update.
8787 * solib-target.c (solib_target_relocate_section_addresses):
8788 Use gdb_bfd_section_index.
8789 * symfile.c (build_section_addr_info_from_section_table):
8790 Use gdb_bfd_section_index.
8791 (build_section_addr_info_from_bfd, place_section): Likewise.
8792 * symtab.c (fixup_section): Update.
8793 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8795 2013-04-08 Tom Tromey <tromey@redhat.com>
8797 * minsyms.h (struct bound_minimal_symbol): New.
8798 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8799 Remove objfile argument.
8800 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8801 Return bound_minimal_symbol.
8802 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8803 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8804 Return bound_minimal_symbol.
8805 (in_gnu_ifunc_stub): Update.
8806 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8807 Remove 'objfile_p' argument.
8808 (lookup_solib_trampoline_symbol_by_pc): Update.
8809 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8810 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8811 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8812 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8813 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8814 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8815 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8816 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8817 stack.c, symtab.c, tui/tui-disasm.c: Update.
8819 2013-04-08 Tom Tromey <tromey@redhat.com>
8821 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8822 Use symbol's obstack, not an objfile.
8823 * coffread.c (process_coff_symbol): Update.
8824 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8825 * jv-lang.c (add_class_symbol): Update.
8826 * mdebugread.c (new_symbol): Update.
8827 * minsyms.c (prim_record_minimal_symbol_full)
8828 (terminate_minimal_symbol_table): Update.
8829 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8830 * stabsread.c (define_symbol, read_enum_type): Update.
8831 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8832 Handle Ada specially.
8833 (symbol_set_language): Add 'obstack' argument.
8834 (symbol_set_names): Update.
8835 (symbol_natural_name, symbol_demangled_name): Always use
8837 * symtab.h (struct general_symbol_info)
8838 <language_specific::obstack>: New field.
8839 <ada_mangled>: New field.
8840 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8841 (symbol_set_language): Update.
8843 2013-04-08 Tom Tromey <tromey@redhat.com>
8845 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8846 Take an obstack, not an objfile.
8847 (symbol_set_names): Update.
8848 * symtab.h (symbol_set_demangled_name): Update.
8850 2013-04-08 Tom Tromey <tromey@redhat.com>
8852 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8854 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8855 (read_func_scope): Call allocate_template_symbol.
8856 (new_symbol_full): Call allocate_symbol.
8857 * jit.c (finalize_symtab): Call allocate_symbol.
8858 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8859 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8860 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8861 (common_block_end): Call allocate_symbol.
8862 * symtab.c (allocate_symbol, initialize_symbol)
8863 (allocate_template_symbol): New functions.
8864 * symtab.c (allocate_symbol, initialize_symbol)
8865 (allocate_template_symbol): Declare.
8866 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8868 2013-04-08 Pedro Alves <palves@redhat.com>
8869 Keith Seitz <keiths@redhat.com>
8871 * breakpoint.c (create_breakpoint): Rename
8872 "parse_condition_and_thread" parameter to "parse_arg". Update
8873 describing comment. If !PARSE_ARG, then error out if ARG is not
8874 the empty string after extracting the location.
8875 * breakpoint.h (create_breakpoint): Rename
8876 "parse_condition_and_thread" parameter to "parse_arg".
8878 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8880 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8882 2013-04-07 Yao Qi <yao@codesourcery.com>
8884 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8885 and 'addr2' to CORE_ADDR.
8886 * target.c (update_current_target): Update.
8887 * target.h (struct target_ops) <to_trace_find>: Change parameter
8889 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8890 'addr2' to CORE_ADDR.
8891 (tfile_trace_find): Likewise.
8892 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8893 Change local variable 'addr' to type CORE_ADDR.
8894 * tracepoint.h (tfind_1): Update declaration.
8896 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8898 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8899 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8902 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8904 * main.h (windows_get_absolute_argv0): ...to here.
8906 2013-04-05 Doug Evans <dje@google.com>
8908 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8909 (read_cutu_die_from_dwo): Add comments.
8910 (read_structure_type): Update comment.
8911 (read_enumeration_type, read_namespace_type): Update comment.
8912 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8914 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8916 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8917 * Makefile.in (gdb.z): Remove.
8918 (install-only): Remove $(man1dir) and gdb.1 installation.
8921 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8923 Fix compatibility with Linux kernel 3.8.3.
8924 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8925 to more inner block. Remove parsing of NUMBER from outer block.
8926 Parse NUMBER only if KEYWORD has been identified.
8928 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8930 Fix variable name shadowing.
8931 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8932 filename to mapsfilename and update its uses.
8934 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8936 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8937 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8938 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8939 details of the problem.
8941 2013-04-04 Pedro Alves <palves@redhat.com>
8942 Hui Zhu <hui@codesourcery.com>
8944 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8945 tracepoint, reset its STEP_COUNT and call validate_actionline.
8947 2013-04-03 Doug Evans <dje@google.com>
8949 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8950 read_die_and_siblings.
8951 (read_die_and_siblings): New function.
8952 (read_cutu_die_from_dwo): Dump die if requested.
8953 (read_die_and_children): Call read_full_die_1 and
8954 read_die_and_siblings_1.
8955 (read_full_die): Dump die if requested.
8957 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8959 * dwarf2read.c (struct dwo_file): New member comp_dir.
8960 Rename member name to dwo_name. All uses updated.
8961 (hash_dwo_file): Include comp_dir in computation.
8962 (eq_dwo_file): Ditto.
8963 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8964 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8966 * psymtab.c (read_psymtabs_with_fullname): Don't call
8967 psymtab_to_fullname if the basenames are different.
8969 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8971 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8972 New entry about "fullname" presence.
8974 2013-04-03 Pedro Alves <palves@redhat.com>
8976 * NEWS: Mention x86_64/Cygwin as new native configuration.
8978 2013-04-02 Doug Evans <dje@google.com>
8980 * dwarf2read.c (read_structure_type): Fix typo in comment.
8982 2013-04-02 Pedro Alves <palves@redhat.com>
8984 * NEWS: Mention "set/show debug aarch64", "set/show debug
8985 coff-pe-read" and "set/show debug mach-o".
8987 2013-04-02 Pedro Alves <palves@redhat.com>
8989 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8991 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8993 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8994 gdb_string.h is now in common/.
8996 2013-04-02 Pedro Alves <palves@redhat.com>
8998 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8999 under "New options".
9001 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9005 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9007 2013-04-02 Pedro Alves <palves@redhat.com>
9011 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9012 (remote_serial_write): New function.
9013 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9015 2013-04-01 Jiong Wang <jiwang@tilera.com>
9017 * NEWS: Mention TILE-Gx in "New native configurations" and
9018 "New targets" sections.
9020 2013-04-01 Doug Evans <dje@google.com>
9022 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9023 (process_enumeration_scope): Simplify.
9025 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9027 (struct signatured_type): ... to here.
9028 (sig_type_ptr): New typedef.
9029 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9030 out of union 't'. All uses updated.
9031 (dw2_get_file_names_reader): Assert not called for a type unit.
9032 (dw2_get_file_names): Assert not called for a type unit or type
9034 (build_type_psymtabs_reader): Assert called for a type unit.
9035 (build_type_psymtab_dependencies): Assert called for a type unit group.
9037 * dwarf2read.c (free_dwo_file): Add comment.
9038 (dwarf2_per_objfile_free): Unref dwp bfd.
9040 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9042 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9043 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9044 (read_pe_exported_syms): Remove unused 'exportix'.
9045 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9046 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9047 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9049 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9051 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9052 (print_it_watchpoint): Remove unused 'bl'.
9053 (say_where): Remove unused 'uiout'.
9054 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9055 (bkpt_breakpoint_hit): Remove unused 'b'.
9056 (internal_bkpt_print_it): Remove unused 'uiout'.
9057 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9059 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9062 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9064 2013-03-29 Doug Evans <dje@google.com>
9066 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9067 Delete arg is_dwp. All callers updated.
9068 (open_dwp_file): New function.
9069 (open_and_init_dwp_file): Call it.
9070 (get_dwp_file): New function.
9071 (lookup_dwo_cutu): Call it.
9073 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9074 unnecessary, cleanup.
9076 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9078 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9079 (lookup_dwo_unit): New function.
9080 (init_cutu_and_read_dies): Move DWO handling to new functions.
9082 * dwarf2read.c (struct signatured_type): Tweak comment.
9083 (struct dwo_unit): Tweak comment.
9084 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9085 (create_dwo_debug_info_hash_table): Tweak comment.
9086 (dwarf2_per_cu_offset_and_type): Tweak comment.
9088 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9089 missing .debug_types section.
9091 2013-03-29 Yao Qi <yao@codesourcery.com>
9093 * corelow.c: Include "completer.h".
9094 (_initialize_corelow): Call add_target_with_completer with
9095 argument 'filename_completer'.
9096 * tracepoint.c: Likewise.
9097 * exec.c (_initialize_exec): Likewise.
9098 * target.c (add_target): Rename to ...
9099 (add_target_with_completer): ... this. Call set_cmd_completer
9100 if parameter completer is not NULL.
9102 * target.h: Include "command.h".
9103 (add_target_with_completer): Declare it.
9105 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9107 * coffread.c (is_import_fixup_symbol): New function.
9108 (record_minimal_symbol): Use is_import_fixup_symbol to
9109 detect import fixup symbols, and discard them.
9111 2013-03-28 Doug Evans <dje@google.com>
9113 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9114 types hash table until we know we need it.
9116 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9119 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9120 All callers updated.
9121 (dw2_print_stats): Print #read CUs too.
9122 (dump_die_shallow): Print signatured types better.
9124 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9125 info_or_types_section to section. All uses updated.
9126 (struct dwo_unit): Ditto.
9128 2013-03-28 Pedro Alves <palves@redhat.com>
9130 * NEWS (New options): New section.
9131 (New options): Mention set/show remote trace-status-packet.
9132 * remote.c (PACKET_qTStatus): New enumeration value.
9133 (remote_get_trace_status): Skip sending qTStatus if the packet is
9134 disabled. Use packet_ok.
9135 (_initialize_remote): Register a configuration command for
9138 2013-03-28 Doug Evans <dje@google.com>
9140 * symfile.c (find_separate_debug_file): Add comment.
9141 (terminate_after_last_dir_separator): Tweak comment.
9143 * dwarf2read.c (create_partial_symtab): Add forward decl.
9144 (create_partial_symtab): Move to be closer to other psymtab functions.
9145 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9147 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9148 (compute_symtab_includes): Remove unnecessary forward declaration.
9149 (die_needs_namespace): Add comment marking group of functions for
9150 dwarf2 name computation.
9152 * typeprint.c (_initialize_typeprint): Improve type help text.
9154 * python/python.c (finish_python_initialization): Provide suggestion
9155 for how to tell gdb to find its python files.
9157 2013-03-28 Pedro Alves <palves@redhat.com>
9161 * source.c (_initialize_source): Change back "set listsize" to an
9164 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9167 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9169 2013-03-27 Pedro Alves <palves@redhat.com>
9171 * top.c (history_size): Rename to ...
9172 (history_size_setshow_var): ... this. Add comment.
9173 (show_commands): Use readline's 'history_length' instead of
9174 computing the history length by calling history_get in a loop.
9175 (set_history_size_command): Error out for sizes over INT_MAX.
9176 Restore previous history size on invalid size.
9177 (init_history): If HISTSIZE is negative, leave the history size as
9179 (init_main): Adjust.
9181 2013-03-27 Pedro Alves <palves@redhat.com>
9183 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9184 coff_pe_read" command to "set debug coff-pe-read".
9186 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9188 * record.c (command_size_to_target_size): Fix size comparison.
9189 Change parameter type from pointer to integer to integer.
9192 2013-03-27 Pierre Muller <muller@sourceware.org>
9194 * windows-nat.c (handle_output_debug_string): Avoid typecast
9195 from integer of different size warning.
9197 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9199 * windows-nat.c (handle_output_debug_string): Add empty line
9200 after local block variable definition.
9202 2013-03-26 Pedro Alves <palves@redhat.com>
9204 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9205 (net_open): Make 'polls' local unsigned.
9207 2013-03-26 Pedro Alves <palves@redhat.com>
9209 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9210 a zuinteger command instead of uinteger.
9212 2013-03-26 Pedro Alves <palves@redhat.com>
9214 * record-full.c (record_full_insn_num): Make it unsigned.
9215 (record_full_check_insn_num, record_full_message)
9216 (record_full_registers_change, record_full_xfer_partial): Remove
9217 record_full_insn_max_num check (it's always != 0).
9218 (record_full_info, record_full_restore): Use %u as format string.
9219 (): Use %u as format string.
9220 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9221 check (it's always != 0).
9223 2013-03-26 Pedro Alves <palves@redhat.com>
9225 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9226 and "set dcache size" commands zuinteger instead of uinteger.
9228 2013-03-26 Pedro Alves <palves@redhat.com>
9230 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9231 command zuinteger instead of uinteger.
9233 2013-03-26 Pedro Alves <palves@redhat.com>
9235 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9236 zuinteger instead of uinteger.
9238 2013-03-26 Pedro Alves <palves@redhat.com>
9240 * record.c (record_insn_history_size_setshow_var)
9241 (record_call_history_size_setshow_var): New globals.
9242 (command_size_to_target_size): New function.
9243 (cmd_record_insn_history, cmd_record_call_history): Use
9244 command_size_to_target_size instead of cast.
9245 (validate_history_size, set_record_insn_history_size)
9246 (set_record_call_history_size): New functions.
9247 (_initialize_record): Install set_record_insn_history_size and
9248 set_record_call_history_size as "set" hooks of "set record
9249 instruction-history-size" and "set record
9250 function-call-history-size".
9252 2013-03-26 Pedro Alves <palves@redhat.com>
9254 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9255 use with history_max_entries use. Remove FIXME note.
9257 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9259 * record-btrace.c (record_btrace_close): Call
9260 record_btrace_auto_disable.
9262 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9264 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9266 2013-03-25 Doug Evans <dje@google.com>
9268 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9270 2013-03-25 Tom Tromey <tromey@redhat.com>
9273 * c-exp.y (exp): Add new productions for destructors after '.' and
9275 (write_destructor_name): New function.
9277 2013-03-25 Tom Tromey <tromey@redhat.com>
9280 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9281 value_struct_elt, not lookup_struct_elt_type.
9282 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9283 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9284 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9286 2013-03-25 Yao Qi <yao@codesourcery.com>
9288 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9289 instead of '_mkdir'.
9291 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9293 * windows-nat.c (windows_get_absolute_argv0): New function.
9294 * windows-nat.h: Add its prototype.
9296 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9297 Use IS_DIR_SEPARATOR instead of looking for a character inside
9298 SLASH_STRING. Include filenames.h.
9299 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9300 relocate_gdb_directory works when passed gdb_program_name.
9301 Include windows-nat.h.
9303 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9306 * remote.c (trace_error): Remove the special handling of '2'.
9307 (readchar) <SERIAL_EOF>
9308 (readchar) <SERIAL_ERROR>
9309 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9310 (remote_get_trace_status): Call throw_exception if EX is
9312 * utils.c (perror_with_name): Rename to ...
9313 (throw_perror_with_name): ... here. New parameter errcode, describe it
9314 in the function comment.
9315 (perror_with_name): New function wrapper.
9316 * utils.h (enum errors): New stub declaration.
9317 (throw_perror_with_name): New declaration.
9319 2013-03-22 Pedro Alves <palves@redhat.com>
9320 Yao Qi <yao@codesourcery.com>
9321 Mark Kettenis <kettenis@gnu.org>
9323 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9324 Don't let the user set the value to UINT_MAX directly.
9325 <var_integer>: Don't let the user set the value to INT_MAX
9328 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9330 * remote.c (remote_unpush_target): New function.
9331 (remote_open_1): Remove two pop_target calls, update one comment, add
9332 comment to target_preopen call. Replace pop_target call by
9333 remote_unpush_target call.
9334 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9335 pop_target calls by remote_unpush_target calls.
9337 2013-03-22 Pedro Alves <palves@redhat.com>
9339 * linux-nat.c (linux_child_follow_fork): Don't call
9340 linux_enable_event_reporting.
9341 (linux_handle_extended_wait): Don't call
9342 linux_enable_event_reporting.
9344 2013-03-22 Pedro Alves <palves@redhat.com>
9346 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9347 use it to rewrite the trampoline buffers with type gdb_byte[], and
9348 undefine the macro. Remove char* cast.
9350 2013-03-21 Doug Evans <dje@google.com>
9352 New commands "mt set per-command {space,time,symtab} {on,off}".
9354 * event-top.c: #include "maint.h".
9355 * main.c: #include "maint.h".
9356 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9357 timeval-utils.h, maint.h, cli/cli-setshow.h.
9358 (per_command_time, per_command_space): New static globals.
9359 (per_command_symtab): New static global.
9360 (per_command_setlist, per_command_showlist): New static globals.
9361 (struct cmd_stats): Move here from utils.c.
9362 (set_per_command_time): Renamed from set_display_time in utils.c
9363 and moved here. All callers updated.
9364 (set_per_command_space): Renamed from set_display_space in utils.c
9365 and moved here. All callers updated.
9366 (count_symtabs_and_blocks): New function.
9367 (report_command_stats): Moved here from utils.c. Add support for
9368 printing symtab stats. Only print data if enabled before command
9370 (make_command_stats_cleanup): Ditto.
9371 (sert_per_command_cmd, show_per_command_cmd): New functions.
9372 (_initialize_maint_cmds): Add new commands
9373 mt set per-command {space,time,symtab} {on,off}.
9374 * maint.h: New file.
9375 * top.c: #include "maint.h".
9376 * utils.c (reset_prompt_for_continue_wait_time): New function.
9377 (get_prompt_for_continue_wait_time): New function.
9378 * utils.h (reset_prompt_for_continue_wait_time): Declare
9379 (get_prompt_for_continue_wait_time): Declare.
9380 (make_command_stats_cleanup): Moved to maint.h.
9381 (set_display_time, set_display_space): Moved to maint.h and renamed
9382 to set_per_command_time, set_per_command_space.
9383 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9384 parse_binary_operation and made non-static. Don't call error,
9385 just return an error marker. All callers updated.
9386 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9388 2013-03-21 Tom Tromey <tromey@redhat.com>
9390 * symfile.c (alloc_section_addr_info): Update header. Don't set
9391 'num_sections' field.
9392 (build_section_addr_info_from_section_table): Set 'num_sections'.
9393 (build_section_addr_info_from_bfd): Likewise.
9394 (build_section_addr_info_from_objfile): Remove dead loop
9396 (free_section_addr_info): Unconditionally call xfree.
9397 (relative_addr_info_to_section_offsets, addrs_section_sort)
9398 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9400 (syms_from_objfile_1): Remove dead 'if' condition. Check
9402 (add_symbol_file_command): Set 'num_sections'.
9403 * symfile-mem.c (symbol_file_add_from_memory): Set
9405 * somread.c (som_symfile_offsets): Remove dead loop condition.
9406 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9407 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9409 2013-03-21 Tom Tromey <tromey@redhat.com>
9411 * tracepoint.h (decode_agent_options): Add 'trace_string'
9413 * tracepoint.c (decode_agent_options): Add 'trace_string'
9415 (validate_actionline): Update.
9416 (collect_symbol): Add 'trace_string' argument.
9417 (struct add_local_symbols_data) <trace_string>: New field.
9418 (do_collect_symbol): Update.
9419 (add_local_symbols): Add 'trace_string' argument.
9420 (encode_actions_1): Update.
9421 (trace_dump_actions): Update.
9422 * dwarf2loc.c (access_memory): Update.
9423 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9424 * ax-general.c (new_agent_expr): Update.
9425 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9426 (gen_trace_for_return_address): Add argument.
9427 (trace_kludge, trace_string_kludge): Remove.
9428 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9429 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9430 (gen_trace_for_var): Add 'trace_string' argument.
9431 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9432 (gen_printf, agent_eval_command_one): Update.
9434 2013-03-21 Tom Tromey <tromey@redhat.com>
9437 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9438 Handle FILENAME token.
9440 2013-03-21 Tom Tromey <tromey@redhat.com>
9442 * c-exp.y (YYPRINT): Define.
9443 (c_print_token): New function.
9445 2013-03-21 Tom Tromey <tromey@redhat.com>
9447 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9449 2013-03-21 Yao Qi <yao@codesourcery.com>
9451 * ctf.c: Include "gdb_stat.h".
9452 [USE_WIN32API]: New macro 'mkdir'.
9453 (ctf_start): Use permission bits macros if they are defined.
9455 2013-03-20 Keith Seitz <keiths@redhat.com>
9457 * breakpoint.h (struct breakpoint): Add comment to
9458 extra_string indicating that this member is mallod'd.
9459 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9461 2013-03-20 Pedro Alves <palves@redhat.com>
9465 * cli/cli-setshow.c (do_set_command)
9466 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9467 the result of parsing the command argument. Throw error if the
9468 value is greater than UINT_MAX. Print the invalid value with
9470 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9471 result of parsing the command argument. Throw error if the value
9472 is greater than INT_MAX, not greater or equal. Also throw error
9473 if the value is less than INT_MIN. Print the invalid value with
9475 <var_zuinteger_unlimited>: Throw error if the value is greater
9476 than INT_MAX, not greater or equal.
9477 (do_show_command) <var_integer, var_zinteger,
9478 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9480 2013-03-20 Tom Tromey <tromey@redhat.com>
9482 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9484 * dwarf2read.c (read_func_scope): Remove old FIXME.
9485 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9487 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9488 Unconditionally call via computed ops, if possible.
9489 * printcmd.c (address_info): Unconditionally call via computed ops,
9491 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9493 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9494 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9497 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9498 Tom Tromey <tromey@redhat.com>
9501 * coffread.c (coff_register_index): New global.
9502 (process_coff_symbol, coff_read_enum_type): Set
9503 SYMBOL_ACLASS_INDEX.
9504 (_initialize_coffread): Initialize new global.
9505 * dwarf2loc.c (locexpr_find_frame_base_location)
9506 (dwarf2_block_frame_base_locexpr_funcs)
9507 (loclist_find_frame_base_location)
9508 (dwarf2_block_frame_base_loclist_funcs): New.
9509 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9510 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9511 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9512 (dwarf2_block_frame_base_loclist_funcs): New.
9513 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9514 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9516 (read_func_scope): Update.
9517 (fixup_go_packaging, mark_common_block_symbol_computed)
9518 (var_decode_location, new_symbol_full, dwarf2_const_value):
9519 Set SYMBOL_ACLASS_INDEX.
9520 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9521 (_initialize_dwarf2_read): Initialize new globals.
9522 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9523 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9524 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9526 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9527 (_initialize_mdebugread): Initialize new globals.
9528 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9529 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9530 (stab_register_index, stab_regparm_index): New globals.
9531 (define_symbol, read_enum_type, common_block_end): Set
9532 SYMBOL_ACLASS_INDEX.
9533 (_initialize_stabsread): Initialize new globals.
9534 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9536 (MAX_SYMBOL_IMPLS): New define.
9537 (register_symbol_computed_impl, register_symbol_block_impl)
9538 (register_symbol_register_impl)
9539 (initialize_ordinary_address_classes): New functions.
9540 (_initialize_symtab): Call initialize_ordinary_address_classes.
9541 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9542 (struct symbol_impl): New.
9543 (SYMBOL_ACLASS_BITS): New define.
9544 (struct symbol) <aclass, ops>: Remove fields.
9545 <aclass_index>: New field.
9546 (symbol_impls): Declare.
9547 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9548 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9549 (register_symbol_computed_impl, register_symbol_block_impl)
9550 (register_symbol_register_impl): Declare.
9551 (struct symbol_computed_ops): Add location_has_loclist.
9552 (struct symbol_block_ops): New.
9553 (SYMBOL_BLOCK_OPS): New.
9554 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9556 2013-03-20 Tom Tromey <tromey@redhat.com>
9558 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9559 (print_partial_symbols, recursively_search_psymtabs): Use
9562 2013-03-20 Pierre Muller <muller@sourceware.org>
9564 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9565 addtion, subtraction, multiplication and division binary operator.
9567 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9570 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9571 * bsd-kvm.c (bsd_kvm_close): Likewise.
9572 * bsd-uthread.c (bsd_uthread_close): Likewise.
9573 * corelow.c (core_close): Likewise.
9574 (core_close_cleanup): Remove parameter quitting from a caller.
9575 * event-top.c (async_disconnect): Likewise.
9576 * exec.c (exec_close_1): Remove parameter quitting.
9577 * go32-nat.c (go32_close): Likewise.
9578 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9579 parameter quitting from a caller.
9580 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9582 (mips_linux_close): Remove parameter quitting. Remove parameter
9583 quitting from a caller.
9584 * monitor.c (monitor_close): Remove parameter quitting.
9585 * monitor.h (monitor_close): Likewise.
9586 * record-btrace.c (record_btrace_close): Likewise.
9587 * record-full.c (record_full_close): Likewise.
9588 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9589 it also from fprintf_unfiltered.
9590 * remote-mips.c (mips_close): Remove parameter quitting.
9591 (mips_detach): Remove parameter quitting from a caller.
9592 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9593 (gdbsim_close): Remove duplicate function comment. Remove parameter
9594 quitting and remove it also from printf_filtered.
9595 * remote.c (remote_close): Remove parameter quitting.
9596 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9597 * target.c (update_current_target): Remove parameter int from to_close
9599 (push_target, unpush_target, pop_target): Remove parameter quitting from
9601 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9602 Remove parameter quitting from a caller.
9603 (target_preopen): Remove parameter quitting from a caller.
9604 (target_close): Remove parameter quitting. Remove parameter quitting
9605 from a caller two times. Remove parameter quitting also from
9607 * target.h (struct target_ops): Remove parameter quitting and as int
9608 from fields to_xclose and to_close.
9609 (extern struct target_ops current_target):
9610 (target_close, pop_all_targets): Remove parameter quitting. Update the
9612 (pop_all_targets_above): Remove parameter quitting.
9613 * top.c (quit_target): Remove parameter quitting from a caller.
9614 * tracepoint.c (tfile_close): Remove parameter quitting.
9615 * windows-nat.c (windows_close): Remove parameter quitting.
9617 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9619 * windows-nat.c (handle_output_debug_string): Replace call
9620 to string_to_core_addr with call to strtoull.
9622 2013-03-20 Yao Qi <yao@codesourcery.com>
9624 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9625 and write it to CTF metadata.
9627 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9629 * windows-nat.c (handle_output_debug_string): Change type of n to
9630 SIZE_T to avoid crash on 64 bit systems.
9632 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9634 * python/python-internal.h (HAVE_SNPRINTF)
9635 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9636 about redefinition of snprintf by pyerrors.h.
9638 2013-03-15 Steve Ellcey <sellcey@mips.com>
9640 * remote-sim.c (sim_command_completer): Make char arguments const.
9642 2013-03-15 Tom Tromey <tromey@redhat.com>
9645 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9647 2013-03-14 Tom Tromey <tromey@redhat.com>
9649 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9651 (get_file_crc): Move from symfile.c.
9652 (gdb_bfd_crc): New function.
9653 * gdb_bfd.h (gdb_bfd_crc): Declare.
9654 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9655 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9656 (separate_debug_file_exists): Use gdb_bfd_crc.
9658 2013-03-14 Tom Tromey <tromey@redhat.com>
9660 * symfile.c (get_debug_link_info): Remove.
9661 (find_separate_debug_file_by_debuglink): Use
9662 bfd_get_debug_link_info.
9664 2013-03-14 Tom Tromey <tromey@redhat.com>
9666 * symtab.c (error_in_psymtab_expansion): New function.
9667 (lookup_symbol_aux_quick)
9668 (basic_lookup_transparent_type_quick): Remove "last resort"
9669 code. Use error_in_psymtab_expansion.
9671 2013-03-14 Doug Evans <dje@google.com>
9672 Jan Kratochvil <jan.kratochvil@redhat.com>
9674 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9675 any successful compare_filenames_for_search or FILENAME_CMP.
9676 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9677 * symtab.c (iterate_over_some_symtabs): Likewise.
9679 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9681 * source.c (print_source_lines_base): Make a local copy of
9684 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9685 Jan Kratochvil <jan.kratochvil@redhat.com>
9687 * source.c (print_source_lines_base): Suppress "file" for TUI.
9689 2013-03-14 Keith Seitz <keiths@redhat.com>
9690 Alan Matsuoka <alanm@redhat.com>
9694 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9696 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9699 2013-03-14 Yao Qi <yao@codesourcery.com>
9701 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9702 status to tfile if trace is stopped by command 'tstop'.
9704 2013-03-14 Yao Qi <yao@codesourcery.com>
9706 * tracepoint.c (tfile_write_status): Write trace notes and user
9707 name into tfile if they are not NULL.
9709 2013-03-14 Hui Zhu <hui@codesourcery.com>
9710 Yao Qi <yao@codesourcery.com>
9712 * Makefile.in (REMOTE_OBS): Add ctf.o.
9713 (SFILES): Add ctf.c.
9714 (HFILES_NO_SRCDIR): Add ctf.h.
9715 * ctf.c, ctf.h: New files.
9716 * tracepoint.c: Include 'ctf.h'.
9717 (collect_pseudocommand): Remove static.
9718 (trace_save_command): Parse option "-ctf".
9719 Produce different trace file writers per option.
9720 Adjust output message.
9721 (trace_save_tfile, trace_save_ctf): New.
9722 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9723 * mi/mi-main.c: Include 'ctf.h'.
9724 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9725 trace_save_tfile or trace_save_ctf.
9726 * NEWS: Mention these changes.
9728 2013-03-14 Yao Qi <yao@codesourcery.com>
9730 * tracepoint.c (trace_file_writer_xfree): New.
9731 (struct tfile_writer_data): New.
9732 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9733 (tfile_write_header, tfile_write_regblock_type): New.
9734 (tfile_write_status, tfile_write_uploaded_tsv): New.
9735 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9736 (tfile_write_raw_data, (tfile_end): New.
9737 (tfile_write_ops): New global variable.
9738 (TRACE_WRITE_R_BLOCK): New macro.
9739 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9740 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9741 (TRACE_WRITE_V_BLOCK): New macro.
9742 (trace_save): Add extra one parameter WRITER. Make it static.
9743 Use WRITER to writer trace.
9744 (tfile_trace_file_writer_new): New.
9745 (trace_save_command): Caller update.
9746 (trace_save_tfile): Write trace data in TFILE format.
9747 * tracepoint.h (struct trace_frame_write_ops): New.
9748 (struct trace_file_write_ops): New.
9749 (struct trace_file_writer): New.
9750 (trace_save): Remove its declaration.
9751 (trace_save_tfile): Declare it.
9752 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9753 instead of trace_save.
9755 2013-03-13 Pedro Alves <palves@redhat.com>
9757 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9759 2013-03-13 Pedro Alves <palves@redhat.com>
9761 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9763 * demangle.c (current_demangling_style_string): Make it const.
9764 (set_demangling_command): Assert the demangling style is known.
9765 Remove all handling of unknown styles. Set
9766 'current_demangling_style_string' to an element of the
9767 demangling_style_names array.
9768 (set_demangling_style): Delete.
9769 (_initialize_demangler): Set current_demangling_style_string to the
9770 element of the demangling_style_names array that corresponds to
9771 the default demangling style. Remove FIXME note. Don't call
9772 set_demangling_style.
9773 * gdb-demangle.h (set_demangling_style): Remove declaration.
9775 2013-03-13 Pedro Alves <palves@redhat.com>
9777 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9779 (ada_make_symbol_completion_list): Make "text0" parameter const.
9780 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9781 * breakpoint.c (condition_completer): Make "text" and "word"
9782 parameters const. Adjust.
9783 (check_tracepoint_command): Adjust to validate_actionline
9785 (catch_syscall_completer): Make "text" and "word" parameters
9787 * cli/cli-cmds.c (show_user): Make "comname" local const.
9788 (valid_command_p): Make "command" parameter const.
9789 (alias_command): Make "alias_prefix" and "command_prefix" locals
9791 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9792 (add_alias_cmd): Make "name" and "oldname" parameters const.
9793 Adjust. No longer make copy of OLDNAME.
9794 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9795 (add_setshow_cmd_full, add_setshow_enum_cmd)
9796 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9797 (add_setshow_filename_cmd, add_setshow_string_cmd)
9798 (add_setshow_string_noescape_cmd)
9799 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9800 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9801 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9802 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9803 Make "name" parameter const.
9804 (help_cmd): Rename "command" parameter to "arg". New const local
9806 (find_cmd): Make "command" parameter const.
9807 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9808 deprecated_cmd_warning prototype change.
9809 (undef_cmd_error): Make "cmdtype" parameter const.
9810 (lookup_cmd): Make "line" parameter const.
9811 (deprecated_cmd_warning): Change type of "text" parameter to
9812 pointer to const char, from pointer to pointer to char. Adjust.
9813 (lookup_cmd_composition): Make "text" parameter const.
9814 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9816 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9818 * cli/cli-script.c (validate_comname): Make "tem" local const.
9819 (define_command): New const local "tem_c". Use it in calls to
9821 (document_command): Make "tem" and "comfull" locals const.
9822 (show_user_1): Make "prefix" and "name" parameters const.
9823 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9825 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9826 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9827 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9828 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9829 (complete_on_enum, add_setshow_enum_cmd)
9830 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9831 (add_setshow_filename_cmd, add_setshow_string_cmd)
9832 (add_setshow_string_noescape_cmd)
9833 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9834 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9835 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9836 Change prototypes, constifying strings.
9837 * completer.c (noop_completer, filename_completer): Make "text"
9838 and "prefix" parameters const.
9839 (location_completer, expression_completer)
9840 (complete_line_internal): Make "text" and "prefix" parameters
9842 (command_completer, signal_completer): Make "text" and "prefix"
9844 * completer.h (noop_completer, filename_completer)
9845 (expression_completer, location_completer, command_completer)
9846 (signal_completer): Change prototypes.
9847 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9849 * cp-abi.c (cp_abi_completer): Likewise.
9850 * expression.h (parse_expression_for_completion): Change
9852 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9854 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9855 * infrun.c (handle_completer): Make "text" and "word" parameters
9857 * interps.c (interpreter_completer): Make "text" and "word"
9859 * language.h (struct language_defn)
9860 <la_make_symbol_completion_list>: Make "text" and "word"
9862 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9863 (parse_exp_in_context): Rename to ...
9864 (parse_exp_in_context_1): ... this.
9865 (parse_exp_in_context): Reimplement, with const hack from
9867 (parse_expression_for_completion): Make "string" parameter const.
9868 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9869 to pointer to const char. Adjust.
9870 (print_command_1): Make "exp" parameter const.
9871 (output_command): Rename to ...
9872 (output_command_const): ... this. Make "exp" parameter const.
9873 (output_command): Reimplement.
9874 (x_command): Adjust.
9875 (display_command): Rename "exp" parameter to "arg". New "exp"
9876 local, const version of "arg".
9877 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9878 "cmd_name" local const.
9879 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9881 (cmdpy_completer): Make "text" and "word" parameters const.
9882 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9883 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9885 * remote.c (_initialize_remote): Make "cmd_name" local const.
9886 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9887 parameters const. Adjust.
9888 (completion_list_add_fields): Make "sym_text", "text" and "word"
9890 (struct add_name_data) <sym_text, text, word>: Make fields const.
9891 (default_make_symbol_completion_list_break_on): Make "text" and
9892 "word" parameters const. Adjust locals.
9893 (default_make_symbol_completion_list)
9894 (make_symbol_completion_list, make_symbol_completion_type)
9895 (make_symbol_completion_list_fn): Make "text" and "word"
9897 (make_file_symbol_completion_list): Make "text", "word" and
9898 "srcfile" parameters const. Adjust locals.
9899 (add_filename_to_list): Make "text" and "word" parameters const.
9900 (struct add_partial_filename_data) <text, word>: Make fields
9902 (make_source_files_completion_list): Make "text" and "word"
9904 * symtab.h (default_make_symbol_completion_list_break_on)
9905 (default_make_symbol_completion_list, make_symbol_completion_list)
9906 (make_symbol_completion_type enum type_code)
9907 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9908 (make_source_files_completion_list): Change prototype.
9909 * top.c (execute_command): Adjust to pass pointer to pointer to
9910 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9912 (set_verbose): Make "cmdname" local const.
9913 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9915 (validate_actionline): Make "line" parameter a pointer to const
9917 (encode_actions_1): Make "action_exp" local const, and adjust.
9918 (encode_actions): Adjust.
9919 (replace_comma): Delete.
9920 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9921 const, and adjust. Don't frob the action string while splitting
9922 it at commas. Instead, make a copy of each split substring in
9924 (trace_dump_command): Adjust to validate_actionline prototype
9926 * tracepoint.h (decode_agent_options, decode_agent_options)
9927 (encode_actions, validate_actionline): Change prototypes.
9928 * valprint.h (output_command): Delete declaration.
9929 (output_command_const): Declare.
9930 * value.c (function_destroyer): Cast const away in xfree call.
9932 2013-03-13 Pedro Alves <palves@redhat.com>
9934 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9935 rather than casting 'const char * const *' to 'const char **'.
9936 * ada-lex.l (processInt): Make "trailer" local const. Remove
9937 'const char **' cast.
9938 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9939 locals, and use those as strtol output pointer, instead than doing
9940 invalid casts to from 'const char **' to 'char **'.
9941 (_initialize_demangle): Remove cast.
9942 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9943 locals, and use those as strtol output pointer, instead than doing
9944 invalid casts to from 'const char **' to 'char **'.
9945 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9947 * stap-probe.c (stap_parse_register_operand)
9948 (stap_parse_single_operand): Likewise.
9950 2013-03-13 Yao Qi <yao@codesourcery.com>
9952 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9953 the last matched 'V' blcok in trace frame.
9955 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9957 * NEWS: Create a new section for the next release branch.
9958 Rename the section of the current branch, now that it has
9961 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9963 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9964 * version.in: Bump version to 7.6.50.20130312-cvs.
9966 2013-03-12 Keith Seitz <keiths@redhat.com>
9968 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9969 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9970 Remove temporary copy of input string.
9971 (mi_execute_command_wrapper): Make "cmd" const.
9972 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9973 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9975 (mi_parse): Make "cmd" const.
9977 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9979 2013-03-12 Keith Seitz <keiths@redhat.com>
9981 * ada-lang.c (ada_read_renaming_var_value): Pass const
9982 pointer to expression string to parse_exp_1.
9983 (create_excep_cond_exprs): Likewise.
9984 * ax-gdb.c (agent_eval_command_one): Likewise.
9985 (maint_agent_printf_command): Likewise.
9986 Constify much of the string handling/parsing.
9987 * breakpoint.c (set_breakpoint_condition): Pass const
9988 pointer to expression string to parse_exp_1.
9989 (update_watchpoint): Likewise.
9990 (parse_cmd_to_aexpr): Constify string handling.
9991 Pass const pointer to parse_exp_1.
9992 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9993 (find_condition_and_thread): Likewise.
9995 (watch_command_1): Make "arg" const.
9996 Constify string handling.
9997 Copy the expression string instead of changing the input
9999 (update_breakpoint_location): Pass const pointer to
10001 * eval.c (parse_and_eval_address): Make "exp" const.
10002 (parse_to_comma_and_eval): Make "expp" const.
10003 (parse_and_eval): Make "exp" const.
10004 * expression.h (parse_expression): Make argument const.
10005 (parse_exp_1): Make first argument const.
10006 * findcmd.c (parse_find_args): Treat "args" as const.
10007 * linespec.c (parse_linespec): Pass const pointer to
10008 linespec_expression_to_pc.
10009 (linespec_expression_to_pc): Make "exp_ptr" const.
10010 * parse.c (parse_exp_1): Make "stringptr" const.
10011 Make a copy of the expression to pass to parse_exp_in_context until
10012 this whole interface can be constified.
10013 (parse_expression): Make "string" const.
10014 * printcmd.c (ui_printf): Treat "arg" as const.
10015 Handle const strings.
10016 * tracepoint.c (validate_actionline): Pass const pointer to
10017 all calls to parse_exp_1.
10018 (encode_actions_1): Likewise.
10019 * value.h (parse_to_comma_and_eval): Make argument const.
10020 (parse_and_eval_address): Likewise.
10021 (parse_and_eval): Likewise.
10022 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10023 (varobj_set_value): Likewise.
10024 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10025 constify string handling.
10026 Pass const pointers to parse_and_eval_address and
10027 parse_to_comman_and_eval.
10028 * cli/cli-utils.c (skip_to_space): Rename to ...
10029 (skip_to_space_const): ... this. Handle const strings.
10030 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10031 skip_to_space_const.
10032 (skip_to_space_const): Declare.
10033 * common/format.c (parse_format_string): Make "arg" const.
10034 Handle const strings.
10035 * common/format.h (parse_format_string): Make "arg" const.
10036 * gdbserver/ax.c (ax_printf): Make "format" const.
10037 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10038 of the expression string.
10040 2013-03-12 Hui Zhu <hui@codesourcery.com>
10042 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10044 2013-03-12 Yao Qi <yao@codesourcery.com>
10045 Hui Zhu <hui@codesourcery.com>
10047 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10048 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10051 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10053 * ada-lex.l (rules): Only recognize 'thread' as a
10054 delimiter when followed by numerals, as for c-exp.y.
10055 Use new rewind_to_char function to rewind the input for
10056 expression-delimiting tokens.
10057 (rewind_to_char): New function.
10059 2013-03-11 Pedro Alves <palves@redhat.com>
10060 Jan Kratochvil <jan.kratochvil@redhat.com>
10062 * configure: Regenerate.
10063 * configure.ac (check dynamic export flag): Link python test with
10066 2013-03-11 Doug Evans <dje@google.com>
10067 Keith Seitz <keiths@redhat.com>
10069 * linespec.c (find_linespec_symbols): Call find_function_symbols
10070 first, and then call lookup_prefix_sym/find_method.
10072 2013-03-11 Pedro Alves <palves@redhat.com>
10074 * charset.c (convert_between_encodings): Don't cast between
10075 different pointer to pointer types. Instead, make the 'inp' local
10076 be of the type iconv expects.
10077 (wchar_iterate): Don't cast between different pointer to pointer
10078 types. Instead, use new pointer local of the type iconv expects.
10079 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10080 Add new local of type char pointer, and use it to get a
10081 char/string view of the byte buffer, instead of casting between
10082 pointer to pointer types.
10084 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10086 * remote.c (remote_set_trace_buffer_size): Move != operator
10087 to the start of next line to fix an ARI warning.
10089 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10091 * NEWS: Add record changes.
10093 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10095 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10096 the instruction history disassembly.
10097 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10098 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10100 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10102 * Makefile.in (SFILES): Add record-btrace.c
10103 (COMMON_OBS): Add record-btrace.o
10104 * record-btrace.c: New.
10105 * objfiles.c: Include btrace.h.
10106 (free_objfile): call btrace_free_objfile.
10108 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10110 * target.c (target_call_history, target_call_history_from,
10111 target_call_history_range): New.
10112 * target.h (target_ops) <to_call_history, to_call_history_from,
10113 to_call_history_range>: New fields.
10114 (target_call_history, target_call_history_from,
10115 target_call_history_range): New declaration.
10116 * record.c (get_call_history_modifiers, cmd_record_call_history,
10117 record_call_history_size): New.
10118 (_initialize_record): Add the "record function-call-history" command.
10119 Add "set/show record function-call-history-size" commands.
10120 * record.h (record_print_flag): New.
10122 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10124 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10125 to_insn_history_range>: New fields.
10126 (target_insn_history): New.
10127 (target_insn_history_from): New.
10128 (target_insn_history_range): New.
10129 * target.c (target_insn_history): New.
10130 (target_insn_history_from): New.
10131 (target_insn_history_range): New.
10132 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10133 (record_insn_history_size): New.
10134 (get_insn_number): New.
10135 (get_context_size): New.
10137 (get_insn_history_modifiers): New.
10138 (cmd_record_insn_history): New.
10139 (_initialize_record): Add "set/show record instruction-history-size"
10140 command. Add "record instruction-history" command.
10142 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10144 * record.h (record_disconnect): New.
10145 (record_detach): New.
10146 (record_mourn_inferior): New.
10147 (record_kill): New.
10148 * record-full.c (record_disconnect, record_detach,
10149 record_mourn_inferior, record_kill): Move to...
10150 * record.c: ...here.
10152 (record_stop): New.
10153 (record_unpush): New.
10154 (cmd_record_stop): Call record_stop. Replace unpush_target
10155 call with record_unpush call.
10156 (record_disconnect, record_detach): Assert that the target
10157 is of record stratum. Call record_unpush, record_stop, and
10159 (record_mourn_inferior, record_kill): Assert that the target
10160 is of record stratum. Call record_unpush and DEBUG.
10162 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10164 * record-full.h, record-full.c (record_memory_query): Rename
10166 (record_full_memory_query): ...this. Update all users.
10167 (record_arch_list_add_reg): Rename to ...
10168 (record_full_arch_list_add_reg): ...this. Update all users.
10169 (record_arch_list_add_mem): Rename to ...
10170 (record_full_arch_list_add_mem): ...this. Update all users.
10171 (record_arch_list_add_end): Rename to ...
10172 (record_full_arch_list_add_end): ...this. Update all users.
10173 (record_gdb_operation_disable_set): Rename to ...
10174 (record_full_gdb_operation_disable_set): ...this.
10177 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10179 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10180 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10181 (RECORD_IS_REPLAY): Renamed to ...
10182 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10183 (RECORD_FILE_MAGIC): Renamed to ...
10184 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10185 (record_mem_entry): Renamed to ...
10186 (record_full_mem_entry): ... this. Updated all users.
10187 (record_reg_entry): Renamed to ...
10188 (record_full_reg_entry): ... this. Updated all users.
10189 (record_end_entry): Renamed to ...
10190 (record_full_end_entry): ... this. Updated all users.
10191 (record_type) <record_end, record_reg, record_mem>: Renamed
10193 (record_full_type) <record_full_end, record_full_reg,
10194 record_full_mem>: ... this. Updated all users.
10195 (record_entry): Renamed to ...
10196 (record_full_entry): ... this. Updated all users.
10197 (record_core_buf_entry): Renamed to ...
10198 (record_full_core_buf_entry): ... this. Updated all users.
10199 (record_core_regbuf): Renamed to ...
10200 (record_full_core_regbuf): ... this. Updated all users.
10201 (record_core_start): Renamed to ...
10202 (record_full_core_start): ... this. Updated all users.
10203 (record_core_end): Renamed to ...
10204 (record_full_core_end): ... this. Updated all users.
10205 (record_core_buf_list): Renamed to ...
10206 (record_full_core_buf_list): ... this. Updated all users.
10207 (record_first): Renamed to ...
10208 (record_full_first): ... this. Updated all users.
10209 (record_list): Renamed to ...
10210 (record_full_list): ... this. Updated all users.
10211 (record_arch_list_head): Renamed to ...
10212 (record_full_arch_list_head): ... this. Updated all users.
10213 (record_arch_list_tail): Renamed to ...
10214 (record_full_arch_list_tail): ... this. Updated all users.
10215 (record_stop_at_limit): Renamed to ...
10216 (record_full_stop_at_limit): ... this. Updated all users.
10217 (record_insn_max_num): Renamed to ...
10218 (record_full_insn_max_num): ... this. Updated all users.
10219 (record_insn_num): Renamed to ...
10220 (record_full_insn_num): ... this. Updated all users.
10221 (record_insn_count): Renamed to ...
10222 (record_full_insn_count): ... this. Updated all users.
10223 (record_ops): Renamed to ...
10224 (record_full_ops): ... this. Updated all users.
10225 (record_core_ops): Renamed to ...
10226 (record_full_core_ops): ... this. Updated all users.
10227 (set_record_cmdlist): Renamed to ...
10228 (set_record_full_cmdlist): ... this. Updated all users.
10229 (show_record_cmdlist): Renamed to ...
10230 (show_record_full_cmdlist): ... this. Updated all users.
10231 (record_cmdlist): Renamed to ...
10232 (record_full_cmdlist): ... this. Updated all users.
10233 (record_beneath_to_resume_ops): Renamed to ...
10234 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10235 (record_beneath_to_resume): Renamed to ...
10236 (record_full_beneath_to_resume): ... this. Updated all users.
10237 (record_beneath_to_wait_ops): Renamed to ...
10238 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10239 (record_beneath_to_wait): Renamed to ...
10240 (record_full_beneath_to_wait): ... this. Updated all users.
10241 (record_beneath_to_store_registers_ops): Renamed to ...
10242 (record_full_beneath_to_store_registers_ops): ... this.
10244 (record_beneath_to_store_registers): Renamed to ...
10245 (record_full_beneath_to_store_registers): ... this.
10247 (record_beneath_to_xfer_partial_ops): Renamed to ...
10248 (record_full_beneath_to_xfer_partial_ops): ... this.
10250 (record_beneath_to_xfer_partial): Renamed to ...
10251 (record_full_beneath_to_xfer_partial): ... this.
10253 (record_beneath_to_insert_breakpoint): Renamed to ...
10254 (record_full_beneath_to_insert_breakpoint): ... this.
10256 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10257 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10259 (record_beneath_to_stopped_data_address): Renamed to ...
10260 (record_full_beneath_to_stopped_data_address): ... this.
10262 (record_beneath_to_async): Renamed to ...
10263 (record_full_beneath_to_async): ... this. Updated all users.
10264 (record_goto_insn): Renamed to ...
10265 (record_full_goto_insn): ... this. Updated all users.
10266 (record_save): Renamed to ...
10267 (record_full_save): ... this. Updated all users.
10268 (record_reg_alloc): Renamed to ...
10269 (record_full_reg_alloc): ... this. Updated all users.
10270 (record_reg_release): Renamed to ...
10271 (record_full_reg_release): ... this. Updated all users.
10272 (record_mem_alloc): Renamed to ...
10273 (record_full_mem_alloc): ... this. Updated all users.
10274 (record_mem_release): Renamed to ...
10275 (record_full_mem_release): ... this. Updated all users.
10276 (record_end_alloc): Renamed to ...
10277 (record_full_end_alloc): ... this. Updated all users.
10278 (record_end_release): Renamed to ...
10279 (record_full_end_release): ... this. Updated all users.
10280 (record_entry_release): Renamed to ...
10281 (record_full_entry_release): ... this. Updated all users.
10282 (record_list_release): Renamed to ...
10283 (record_full_list_release): ... this. Updated all users.
10284 (record_list_release_following): Renamed to ...
10285 (record_full_list_release_following): ... this.
10287 (record_list_release_first): Renamed to ...
10288 (record_full_list_release_first): ... this. Updated all users.
10289 (record_arch_list_add): Renamed to ...
10290 (record_full_arch_list_add): ... this. Updated all users.
10291 (record_get_loc): Renamed to ...
10292 (record_full_get_loc): ... this. Updated all users.
10293 (record_check_insn_num): Renamed to ...
10294 (record_full_check_insn_num): ... this. Updated all users.
10295 (record_arch_list_cleanups): Renamed to ...
10296 (record_full_arch_list_cleanups): ... this. Updated all users.
10297 (record_message): Renamed to ...
10298 (record_full_message): ... this. Updated all users.
10299 (record_message_wrapper): Renamed to ...
10300 (record_full_message_wrapper): ... this. Updated all users.
10301 (record_message_wrapper_safe): Renamed to ...
10302 (record_full_message_wrapper_safe): ... this. Updated all users.
10303 (record_gdb_operation_disable): Renamed to ...
10304 (record_full_gdb_operation_disable): ... this. Updated all users.
10305 (record_hw_watchpoint): Renamed to ...
10306 (record_full_hw_watchpoint): ... this. Updated all users.
10307 (record_exec_insn): Renamed to ...
10308 (record_full_exec_insn): ... this. Updated all users.
10309 (record_restore): Renamed to ...
10310 (record_full_restore): ... this. Updated all users.
10311 (record_async_inferior_event_token): Renamed to ...
10312 (record_full_async_inferior_event_token): ... this.
10314 (record_async_inferior_event_handler): Renamed to ...
10315 (record_full_async_inferior_event_handler): ... this.
10317 (record_core_open_1): Renamed to ...
10318 (record_full_core_open_1): ... this. Updated all users.
10319 (record_open_1): Renamed to ...
10320 (record_full_open_1): ... this. Updated all users.
10321 (record_open): Renamed to ...
10322 (record_full_open): ... this. Updated all users.
10323 (record_close): Renamed to ...
10324 (record_full_close): ... this. Updated all users.
10325 (record_resume_step): Renamed to ...
10326 (record_full_resume_step): ... this. Updated all users.
10327 (record_resumed): Renamed to ...
10328 (record_full_resumed): ... this. Updated all users.
10329 (record_execution_dir): Renamed to ...
10330 (record_full_execution_dir): ... this. Updated all users.
10331 (record_resume): Renamed to ...
10332 (record_full_resume): ... this. Updated all users.
10333 (record_get_sig): Renamed to ...
10334 (record_full_get_sig): ... this. Updated all users.
10335 (record_sig_handler): Renamed to ...
10336 (record_full_sig_handler): ... this. Updated all users.
10337 (record_wait_cleanups): Renamed to ...
10338 (record_full_wait_cleanups): ... this. Updated all users.
10339 (record_wait_1): Renamed to ...
10340 (record_full_wait_1): ... this. Updated all users.
10341 (record_wait): Renamed to ...
10342 (record_full_wait): ... this. Updated all users.
10343 (record_stopped_by_watchpoint): Renamed to ...
10344 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10345 (record_disconnect): Renamed to ...
10346 (record_full_disconnect): ... this. Updated all users.
10347 (record_detach): Renamed to ...
10348 (record_full_detach): ... this. Updated all users.
10349 (record_mourn_inferior): Renamed to ...
10350 (record_full_mourn_inferior): ... this. Updated all users.
10351 (record_kill): Renamed to ...
10352 (record_full_kill): ... this. Updated all users.
10353 (record_stopped_data_address): Renamed to ...
10354 (record_full_stopped_data_address): ... this. Updated all users.
10355 (record_registers_change): Renamed to ...
10356 (record_full_registers_change): ... this. Updated all users.
10357 (record_store_registers): Renamed to ...
10358 (record_full_store_registers): ... this. Updated all users.
10359 (record_xfer_partial): Renamed to ...
10360 (record_full_xfer_partial): ... this. Updated all users.
10361 (record_breakpoint): Renamed to ...
10362 (record_full_breakpoint): ... this. Updated all users.
10363 (record_breakpoint_p): Renamed to ...
10364 (record_full_breakpoint_p): ... this. Updated all users.
10365 (record_breakpoints): Renamed to ...
10366 (record_full_breakpoints): ... this. Updated all users.
10367 (record_sync_record_breakpoints): Renamed to ...
10368 (record_full_sync_record_breakpoints): ... this.
10370 (record_init_record_breakpoints): Renamed to ...
10371 (record_full_init_record_breakpoints): ... this.
10373 (record_insert_breakpoint): Renamed to ...
10374 (record_full_insert_breakpoint): ... this. Updated all users.
10375 (record_remove_breakpoint): Renamed to ...
10376 (record_full_remove_breakpoint): ... this. Updated all users.
10377 (record_can_execute_reverse): Renamed to ...
10378 (record_full_can_execute_reverse): ... this. Updated all users.
10379 (record_get_bookmark): Renamed to ...
10380 (record_full_get_bookmark): ... this. Updated all users.
10381 (record_goto_bookmark): Renamed to ...
10382 (record_full_goto_bookmark): ... this. Updated all users.
10383 (record_async): Renamed to ...
10384 (record_full_async): ... this. Updated all users.
10385 (record_can_async_p): Renamed to ...
10386 (record_full_can_async_p): ... this. Updated all users.
10387 (record_is_async_p): Renamed to ...
10388 (record_full_is_async_p): ... this. Updated all users.
10389 (record_execution_direction): Renamed to ...
10390 (record_full_execution_direction): ... this. Updated all users.
10391 (record_info): Renamed to ...
10392 (record_full_info): ... this. Updated all users.
10393 (record_delete): Renamed to ...
10394 (record_full_delete): ... this. Updated all users.
10395 (record_is_replaying): Renamed to ...
10396 (record_full_is_replaying): ... this. Updated all users.
10397 (record_goto_entry): Renamed to ...
10398 (record_full_goto_entry): ... this. Updated all users.
10399 (record_goto_begin): Renamed to ...
10400 (record_full_goto_begin): ... this. Updated all users.
10401 (record_goto_end): Renamed to ...
10402 (record_full_goto_end): ... this. Updated all users.
10403 (record_goto): Renamed to ...
10404 (record_full_goto): ... this. Updated all users.
10405 (init_record_ops): Renamed to ...
10406 (init_record_full_ops): ... this. Updated all users.
10407 (record_core_resume): Renamed to ...
10408 (record_full_core_resume): ... this. Updated all users.
10409 (record_core_kill): Renamed to ...
10410 (record_full_core_kill): ... this. Updated all users.
10411 (record_core_fetch_registers): Renamed to ...
10412 (record_full_core_fetch_registers): ... this. Updated all users.
10413 (record_core_prepare_to_store): Renamed to ...
10414 (record_full_core_prepare_to_store): ... this. Updated all users.
10415 (record_core_store_registers): Renamed to ...
10416 (record_full_core_store_registers): ... this. Updated all users.
10417 (record_core_xfer_partial): Renamed to ...
10418 (record_full_core_xfer_partial): ... this. Updated all users.
10419 (record_core_insert_breakpoint): Renamed to ...
10420 (record_full_core_insert_breakpoint): ... this. Updated all users.
10421 (record_core_remove_breakpoint): Renamed to ...
10422 (record_full_core_remove_breakpoint): ... this. Updated all users.
10423 (record_core_has_execution): Renamed to ...
10424 (record_full_core_has_execution): ... this. Updated all users.
10425 (init_record_core_ops): Renamed to ...
10426 (init_record_full_core_ops): ... this. Updated all users.
10427 (cmd_record_restore): Renamed to ...
10428 (cmd_record_full_restore): ... this. Updated all users.
10429 (record_save_cleanups): Renamed to ...
10430 (record_full_save_cleanups): ... this. Updated all users.
10431 (cmd_record_start): Renamed to ...
10432 (cmd_record_full_start): ... this. Updated all users.
10433 (set_record_insn_max_num): Renamed to ...
10434 (set_record_full_insn_max_num): ... this. Updated all users.
10435 (set_record_command): Renamed to ...
10436 (set_record_full_command): ... this. Updated all users.
10437 (show_record_command): Renamed to ...
10438 (show_record_full_command): ... this. Updated all users.
10439 (_initialize_record): Renamed to ...
10440 (_initialize_record_full): ... this. Updated all users.
10442 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10444 * record.h: Split into this and ...
10445 * record-full.h: ... this.
10446 * record.c: Split into this and ...
10447 * record-full.c: ... this.
10448 * target.h (target_ops): Add new fields to_info_record,
10449 to_save_record, to_delete_record, to_record_is_replaying,
10450 to_goto_record_begin, to_goto_record_end, to_goto_record.
10451 (target_info_record): New.
10452 (target_save_record): New.
10453 (target_supports_delete_record): New.
10454 (target_delete_record): New.
10455 (target_record_is_replaying): New.
10456 (target_goto_record_begin): New.
10457 (target_goto_record_end): New.
10458 (target_goto_record): New.
10459 * target.c (target_info_record): New.
10460 (target_save_record): New.
10461 (target_supports_delete_record): New.
10462 (target_delete_record): New.
10463 (target_record_is_replaying): New.
10464 (target_goto_record_begin): New.
10465 (target_goto_record_end): New.
10466 (target_goto_record): New.
10467 * record.h: Declare struct cmd_list_element.
10468 (record_cmdlist): New declaration.
10469 (set_record_cmdlist): New declaration.
10470 (show_record_cmdlist): New declaration.
10471 (info_record_cmdlist): New declaration.
10472 (cmd_record_goto): New declaration.
10473 * record.c: Remove unnecessary includes.
10474 Include inferior.h.
10475 (cmd_record_goto): Remove declaration.
10476 (record_cmdlist): Now extern. Initialize.
10477 (set_record_cmdlist): Now extern. Initialize.
10478 (show_record_cmdlist): Now extern. Initialize.
10479 (info_record_cmdlist): Now extern. Initialize.
10480 (find_record_target): New.
10481 (require_record_target): New.
10482 (cmd_record_start): Update.
10483 (cmd_record_delete): Remove target-specific code.
10484 Call target_delete_record.
10485 (cmd_record_stop): Unpush any record target.
10486 (set_record_insn_max_num): Move to record-full.c
10487 (set_record_command): Add comment.
10488 (show_record_command): Add comment.
10489 (info_record_command): Update comment.
10490 Remove target-specific code.
10491 Call the record target's to_info_record.
10492 (cmd_record_start): New.
10493 (cmd_record_goto): Now extern.
10494 Remove target-specific code.
10495 Call target_goto_begin, target_goto_end, or target_goto.
10496 (_initialize_record): Move record target ops initialization to
10498 Change "record" command help text.
10499 Move "record restore", "record set", and "record show" commands to
10501 * Makefile.in (SFILES): Add record-full.c.
10502 (HFILES_NO_SRCDIR): Add record-full.h.
10503 (COMMON_OBS): Add record-full.o.
10504 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10505 * arm-tdep.c: Include record-full.h.
10506 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10507 * i386-tdep.c: Include record-full.h.
10508 * infrun.c: Include record-full.h.
10509 * linux-record.c: Include record-full.h.
10510 * moxie-tdep.c: Include record-full.h.
10511 * record-full.c: Include record-full.h.
10512 Change module comment.
10513 (set_record_full_cmdlist): New.
10514 (show_record_full_cmdlist): New.
10515 (record_full_cmdlist): New.
10516 (record_goto_insn): New declaration.
10517 (record_save): New declaration.
10518 (record_check_insn_num): Change query string.
10519 (record_info): New.
10520 (record_delete): New.
10521 (record_is_replaying): New.
10522 (record_goto_entry): New.
10523 (record_goto_begin): New.
10524 (record_goto_end): New.
10525 (record_goto): New.
10526 (init_record_ops): Update.
10527 (init_record_core_ops): Update.
10528 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10529 (cmd_record_start): New.
10530 (set_record_insn_max_num): Moved from record.c
10531 (set_record_full_command): New.
10532 (show_record_full_command): New.
10533 (_initialize_record_full): New.
10535 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10537 * target.h (add_deprecated_target_alias): New.
10538 * target.c (add_deprecated_target_alias): New.
10540 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10542 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10544 (linux_supports_btrace): Add kernel and
10546 (kernel_supports_btrace): New function.
10547 (cpu_supports_btrace): New function.
10548 (intel_supports_btrace): New function.
10550 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10552 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10553 * remote.c: Include btrace.h.
10554 (struct btrace_target_info): New struct.
10555 (remote_supports_btrace): New function.
10556 (send_Qbtrace): New function.
10557 (remote_enable_btrace): New function.
10558 (remote_disable_btrace): New function.
10559 (remote_teardown_btrace): New function.
10560 (remote_read_btrace): New function.
10561 (init_remote_ops): Add btrace ops.
10562 (enum <unnamed>): Add btrace packets.
10563 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10564 (_initialize_remote): Add packet configuration for branch tracing.
10566 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10568 * features/btrace.dtd: New file.
10569 * Makefile.in (XMLFILES): Add btrace.dtd.
10570 * btrace.h (parse_xml_btrace): New declaration.
10571 * btrace.c: Include xml-support.h.
10572 (parse_xml_btrace): New function.
10573 (parse_xml_btrace_block): New function.
10574 (block_attributes): New struct.
10575 (btrace_attributes): New struct.
10576 (btrace_children): New struct.
10577 (btrace_elements): New struct.
10579 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10581 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10582 (amd64_linux_enable_btrace): New.
10583 (amd64_linux_disable_btrace): New.
10584 (amd64_linux_teardown_btrace): New.
10585 (_initialize_amd64_linux_nat): Initialize btrace ops.
10586 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10587 (i386_linux_enable_btrace): New.
10588 (i386_linux_disable_btrace): New.
10589 (i386_linux_teardown_btrace): New.
10590 (_initialize_i386_linux_nat): Initialize btrace ops.
10591 * config/i386/linux.mh: Add linux-btrace.o.
10592 * config/i386/linux64.mh: Add linux-btrace.o.
10594 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10596 * common/linux_btrace.h: New file.
10597 * common/linux_btrace.c: New file.
10598 * Makefile.in (SFILES): Add btrace.c.
10599 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10600 (COMMON_OBS): Add btrace.o.
10601 (linux-btrace.o): New rule.
10603 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10605 * target.h: Include btrace.h.
10606 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10607 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10608 * target.c (target_supports_btrace): New function.
10609 (target_enable_btrace): New function.
10610 (target_disable_btrace): New function.
10611 (target_teardown_btrace): New function.
10612 (target_read_btrace): New function.
10613 * btrace.h: New file.
10614 * btrace.c: New file.
10615 * Makefile.in: Add btrace.c.
10616 * gdbthread.h: Include btrace.h.
10617 (struct thread_info): Add btrace field.
10618 * thread.c: Include btrace.h.
10619 (clear_thread_inferior_resources): Call target_teardown_btrace.
10620 * common/btrace-common.h: New file.
10622 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10624 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10625 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10626 kill_status to outer block.
10628 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10630 Fix entry-values if the callee called a noreturn function.
10631 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10632 get_frame_address_in_block. Add new comment.
10634 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10636 Fix entry-values in C++ across CUs.
10637 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10638 lookup_minimal_symbol. Add a comment.
10640 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10641 DW_AT_linkage_name.
10643 2013-03-08 Yao Qi <yao@codesourcery.com>
10645 * tracepoint.c (_initialize_tracepoint): Indent the code.
10647 2013-03-08 Pedro Alves <palves@redhat.com>
10649 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10650 (parse_find_args, find_command): Change type of pattern buffer
10651 locals to 'gdb_byte *'.
10653 2013-03-08 Stan Shebs <stan@codesourcery.com>
10654 Hafiz Abid Qadeer <abidh@codesourcery.com>
10656 * NEWS: Mention set and show trace-buffer-size commands.
10657 Mention new packet.
10658 * target.h (struct target_ops): New method
10659 to_set_trace_buffer_size.
10660 (target_set_trace_buffer_size): New macro.
10661 * target.c (update_current_target): Set up new method.
10662 * tracepoint.c (trace_buffer_size): New global.
10663 (start_tracing): Send it to the target.
10664 (set_trace_buffer_size): New function.
10665 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10666 * remote.c (remote_set_trace_buffer_size): New function.
10667 (_initialize_remote): Use it.
10668 (QTBuffer:size) New remote command.
10669 (PACKET_QTBuffer_size): New enum.
10670 (remote_protocol_features): Add an entry for
10671 PACKET_QTBuffer_size.
10673 2013-03-08 Tom Tromey <tromey@redhat.com>
10675 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10678 2013-03-07 Pedro Alves <palves@redhat.com>
10680 * target.c (target_read_stralloc, target_fileio_read_alloc):
10681 *Cast pointer to 'gdb_byte *' in target call.
10683 2013-03-07 Pedro Alves <palves@redhat.com>
10685 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10688 2013-03-07 Keith Seitz <keiths@redhat.com>
10690 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10691 (trace_pass_command): Likewise.
10692 * cli/cli-cmds.c: Include cli/cli-utils.h.
10693 (source_command): Use skip-spaces.
10694 (disassemble_command): Likewise.
10695 * findcmd.c: Include cli/cli-utils.h.
10696 (parse_find_args): Use skip_spaces.
10697 * go32-nat.c: Include cli/cli-utils.h.
10698 (go32_sldt): Use skip_spaces.
10699 (go32_sgdt): Likewise.
10700 (go32_sidt): Likewise.
10701 (go32_pde): Likewise.
10702 (go32_pte): Likewise.
10703 (go32_pte_for_address): Likewise.
10704 * infcmd.c: Include cli/cli-utils.h.
10705 (registers_info): Use skip_spaces.
10706 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10707 (linux_info_proc): Likewise.
10708 * linux-thread-db.c: Include cli/cli-utils.h.
10709 (info_auto_load_libthread_db): Use skip_spaces_const.
10710 * m32r-rom.c: Include cli/cli-utils.h.
10711 (m32r_upload_command): Use skip_spaces.
10712 * maint.c: Include cli/cli-utils.h.
10713 (maintenance_translate_address): Use skip_spaces.
10714 * mi/mi-parse.c: Include cli/cli-utils.h.
10715 (mi_parse_argv): Use skip_spaces.
10716 (mi_parse): Likewise.
10717 * minsyms.c: Include cli/cli-utils.h.
10718 (msymbol_hash_iw): Use skip_spaces_const.
10719 * objc-lang.c: Include cli/cli-utils.h.
10720 (parse_selector): Use skip_spaces.
10721 (parse_method): Likewise.
10722 * python/python.c: Include cli/cli-utils.h.
10723 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10724 (python_command)[HAVE_PYTHON]: Likewise.
10725 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10726 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10727 (m32r_load): Use skip_spaces.
10728 * serial.c: Include cli/cli-utils.h.
10729 (serial_open): Use skip_spaces_const.
10730 * stack.c: Include cli/cli-utils.h.
10731 (parse_frame_specification_1): Use skip_spaces_const.
10732 * symfile.c: Include cli/cli-utils.h.
10733 (set_ext_lang_command): Use skip_spaces.
10734 * symtab.c: Include cli/cli-utils.h.
10735 (rbreak_command): Use skip_spaces.
10736 * thread.c (thread_name_command): Use skip_spaces.
10737 * tracepoint.c (validate_actionline): Use skip_spaces.
10738 (encode_actions_1): Likewise.
10739 (trace_find_range_command): Likewise.
10740 (trace_find_outside_command): Likewise.
10741 (trace_dump_actions): Likewise.
10743 2013-03-07 Pedro Alves <palves@redhat.com>
10745 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10746 * expprint.c (print_subexp_standard): Likewise.
10747 * utils.c (host_char_to_target): Likewise.
10748 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10749 * varobj.c (value_get_print_value): Change type of local to char*.
10750 Cast it gdb_byte * in call to language printer.
10752 2013-03-07 Pedro Alves <palves@redhat.com>
10754 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10756 (make_wchar_iterator): Remove cast to char*.
10757 (wchar_iterate): Change type of local.
10759 2013-03-07 Pedro Alves <palves@redhat.com>
10761 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10762 for 'regcache->register_status'.
10764 2013-03-07 Pedro Alves <palves@redhat.com>
10766 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10769 2013-03-07 Pedro Alves <palves@redhat.com>
10771 * stap-probe.c (handle_stap_probe): Add cast to char*.
10773 2013-03-07 Pedro Alves <palves@redhat.com>
10775 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10776 RECORD_MSGRCV>: Pass a signed variable to
10777 regcache_raw_read_signed, instead of an unsigned one.
10779 2013-03-07 Pedro Alves <palves@redhat.com>
10781 * remote-notif.c (notif_debug): Change type to int.
10782 * remote-notif.h (notif_debug): Likewise.
10784 2013-03-07 Pedro Alves <palves@redhat.com>
10786 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10788 2013-03-07 Pedro Alves <palves@redhat.com>
10790 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10791 * remote.h (hex2bin, bin2hex): ... here.
10792 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10794 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10796 * utils.c (initialize_utils): Improve doc strings of "set/show
10797 width", "set/show height", and "set/show pagination".
10799 2013-03-06 Keith Seitz <keiths@redhat.com>
10801 * ax-gdb.c (gen_printf): Make FORMAT const.
10802 * ax-gdb.h (gen_printf): Likewise.
10803 * ax-general.c (ax_string): Make STR const.
10804 * ax.h (ax_string): Likewise.
10806 2013-03-06 Doug Evans <dje@google.com>
10808 * elfread.c (elf_symfile_read): Move debugging printf to more
10811 2013-03-06 Pedro Alves <palves@redhat.com>
10813 * python/py-utils.c (target_string_to_unicode): Delete function.
10814 * python/python-internal.h (target_string_to_unicode): Delete
10817 2013-03-06 Pierre Muller <muller@sourceware.org>
10819 * linespec.c (get_current_search_block): ARI fix, use (void)
10820 for empty parameter list.
10822 2013-03-05 Doug Evans <dje@google.com>
10824 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10825 of old ada_lookup_symbol_list. In !full_search case, don't
10826 search superblocks.
10827 (ada_lookup_symbol_list): Delete arg full_search, all callers
10828 updated. Call ada_lookup_symbol_list_worker.
10829 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10830 * ada-lang.h (ada_lookup_symbol_list): Update.
10831 * language.h (language_defn): Update comment for
10832 la_iterate_over_symbols.
10833 * linespec.c (iterate_over_file_blocks): New function.
10834 (iterate_over_all_matching_symtabs): Call it.
10835 (lookup_prefix_sym): Ditto.
10836 (get_current_search_block): New function.
10837 (get_search_block): Delete.
10838 (find_label_symbols): Call get_current_search_block.
10839 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10840 * symtab.c (iterate_over_symbols): Don't search superblocks.
10842 2013-03-05 Yao Qi <yao@codesourcery.com>
10844 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10845 parameter VAR's type from "unsigned int" to "int".
10846 * command.h (var_zuinteger_unlimited): Update its comments.
10847 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10849 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10851 * NEWS: Mention new target x86_64-*-cygwin*.
10853 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10855 * configure.host: Add x86_64-*-cygwin* as host.
10856 * configure.tgt: Add x86_64-*-cygwin* as target.
10857 * config/i386/cygwin64.mh: New file.
10859 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10861 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10863 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10865 * linespec.c (struct linespec_canonical_name): New.
10866 (struct linespec_state): Change canonical_names type to it.
10867 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10868 xrealloc element size. Initialize the different CANONICAL fields.
10869 (canonical_to_fullform): New.
10870 (filter_results): Use it. Add variables canonical, fullform and
10872 (struct decode_line_2_item, decode_line_2_compare_items): New.
10873 (decode_line_2): Remove variables iter and item_names, add variables
10874 items and items_count. Modify the code for these new variables.
10876 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10878 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10879 calling do_cleanup.
10881 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10883 * tracepoint.c (build_traceframe_info): Add code for byte order.
10885 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10887 * v850-tdep.c: (v850e2_register_name): Revise system register
10888 names to match current V850E2M architecture specifications.
10889 Update register number enum comments too.
10891 2013-03-01 Jiong Wang <jiwang@tilera.com>
10892 Pedro Alves <palves@redhat.com>
10894 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10896 (tilegx_skip_prologue): Limit prologue analysis to section end.
10898 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10900 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10903 2013-03-01 Pedro Alves <palves@redhat.com>
10905 Use gdb_byte for bytes from the program being debugged.
10907 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10908 Change type of local 'buf' to gdb_byte.
10909 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10910 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10911 * cris-tdep.c (cris_sigcontext_addr)
10912 (cris_sigtramp_frame_unwind_cache): Likewise.
10913 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10914 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10916 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10917 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10918 (hppa32_hpux_search_dummy_call_sequence)
10919 (hppa_hpux_supply_save_state): Likewise.
10920 * hppa-linux-tdep.c (insns_match_pattern)
10921 (hppa_linux_find_global_pointer): Likewise.
10922 * hppa-tdep.c (hppa_in_function_epilogue_p)
10923 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10924 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10925 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10926 (i386fbsd_collect_uthread): Likewise.
10927 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10928 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10929 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10930 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10931 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10932 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10933 (ia64_libunwind_frame_prev_register)
10934 (ia64_libunwind_sigtramp_frame_this_id)
10935 (ia64_find_global_pointer_from_dynamic_section)
10936 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10937 (ia64_unwind_pc): Likewise.
10938 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10939 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10940 (m68hc11_extract_return_value): Likewise.
10941 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10942 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10943 (mep_get_insn, mep_push_dummy_call): Likewise.
10944 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10945 (mips_linux_in_dynsym_stub): Likewise.
10946 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10947 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10948 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10950 * remote-mips.c (mips_set_register): Likewise.
10951 * remote-sim.c (gdbsim_fetch_register): Likewise.
10952 * score-tdep.c (score7_fetch_inst): Change type of parameter
10953 'memblock' and local 'buf' to gdb_byte.
10954 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10955 Change type of local 'buf' to gdb_byte. Adjust.
10956 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10958 (score7_analyze_prologue): Change type of 'memblock' and
10959 'memblock_ptr' locals to gdb_byte*.
10960 * sh64-tdep.c (sh64_extract_return_value)
10961 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10962 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10963 * solib-pa64.c (pa64_solib_create_inferior_hook)
10964 (pa64_open_symbol_file_object): Remove local 'buf'.
10965 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10966 (som_open_symbol_file_object): Likewise.
10967 * solib-spu.c (spu_current_sos): Likewise.
10968 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10969 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10970 (spu_store_registers): Likewise.
10971 * target.c (debug_print_register): Likewise.
10972 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10973 * xstormy16-tdep.c (xstormy16_store_return_value)
10974 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10975 (xstormy16_find_jmp_table_entry): Likewise.
10977 2013-03-01 Jiong Wang <jiwang@tilera.com>
10979 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10980 (tilegx_gdbarch_init): Install it.
10982 2013-02-28 Tom Tromey <tromey@redhat.com>
10984 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10987 2013-02-28 Doug Evans <dje@google.com>
10989 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10990 * python/python.c (gdbpy_find_pc_line): Ditto.
10992 2013-02-28 Tom Tromey <tromey@redhat.com>
10994 * contrib/excheck.py: New file.
10995 * contrib/exsummary.py: New file.
10996 * contrib/gcc-with-excheck: New file.
10998 2013-02-28 Tom Tromey <tromey@redhat.com>
11000 * python/python.c (gdbpy_print_stack): Call begin_line and
11001 fprintf_filtered inside TRY_CATCH.
11003 2013-02-28 Tom Tromey <tromey@redhat.com>
11005 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11008 2013-02-28 Tom Tromey <tromey@redhat.com>
11010 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11011 frame_object_to_frame_info inside TRY_CATCH.
11013 2013-02-28 Tom Tromey <tromey@redhat.com>
11015 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11018 2013-02-28 Tom Tromey <tromey@redhat.com>
11020 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11022 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11024 * windows-nat.c: Throughout, fix format strings and casts of
11025 printf-like functions to avoid type related warnings on all
11027 (handle_output_debug_string): Fetch context information address
11028 from debug string using string_to_core_addr.
11030 2013-02-27 Jiong Wang <jiwang@tilera.com>
11032 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11033 * regformats/reg-tilegx32.dat: New.
11035 2013-02-27 Jiong Wang <jiwang@tilera.com>
11037 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11039 2013-02-27 Jiong Wang <jiwang@tilera.com>
11041 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11043 2013-02-27 Yao Qi <yao@codesourcery.com>
11044 Pedro Alves <palves@redhat.com>
11046 * tracepoint.c (tfile_trace_find): For tfind
11047 pc/tp/range/outside, look for the next trace frame instead of
11048 always starting from frame 0.
11050 2013-02-26 Anthony Green <green@moxielogic.com>
11052 * configure.tgt: Add support for moxie-*-rtems* target.
11054 2013-02-25 Pedro Alves <palves@redhat.com>
11056 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11059 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11061 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11062 if $fp is used as the virtual frame pointer.
11064 2013-02-23 Alan Modra <amodra@gmail.com>
11066 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11068 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11069 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11070 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11071 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11073 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11076 * elfread.c (build_id_bfd_get): Make the return type const.
11077 (build_id_verify): Make the check parameter const.
11078 (build_id_to_debug_filename): Make the build_id parameter and variable
11080 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11082 2013-02-21 Alan Modra <amodra@gmail.com>
11084 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11086 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11088 Add a new method 'disassemble' to gdb.Architecture class.
11089 * python/py-arch.c (archpy_disassmble): Implementation of the
11090 new method gdb.Architecture.disassemble.
11091 (arch_object_methods): Add entry for the new method.
11093 2013-02-20 Jiong Wang <jiwang@tilera.com>
11095 * MAINTAINERS (Write After Approval): Add myself to the list.
11097 2013-02-19 Pedro Alves <palves@redhat.com>
11099 Garbage collect 'struct monitor_ops'::load_routine.
11101 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11102 * monitor.c (monitor_load): No longer call
11103 current_monitor->load_routine.
11104 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11105 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11106 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11108 2013-02-19 Pedro Alves <palves@redhat.com>
11112 Harmonize with generic_load.
11114 * monitor.c: Include "readline/readline.h".
11115 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11116 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11117 long/strtol for the 'load_offset' local. Error out if no argument
11118 is given or if too many arguments are given. Tilde expand the
11119 passed in file name.
11121 2013-02-19 Kai Tietz <ktietz@redhat.com>
11124 * symfile.c (load_section_data): Change type of load_offset
11126 (generic_load): User strtoulst instead of strtoul for conversion
11129 2013-02-19 Jiong Wang <jiwang@tilera.com>
11131 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11132 for return address, "lr" register, saved on stack.
11133 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11134 after we invoke tilegx_analyze_prologue.
11136 2013-02-19 Jiong Wang <jiwang@tilera.com>
11138 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11140 2013-02-19 Jiong Wang <jiwang@tilera.com>
11142 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11144 2013-02-19 Jiong Wang <jiwang@tilera.com>
11146 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11147 (tilegx_write_pc): New function.
11148 (tilegx_cannot_reference_register): Return zero if REGNO
11149 is TILEGX_FAULTNUM_REGNUM.
11150 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11151 (tilegx_register_name): Add handling of "faultnum" register.
11152 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11153 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11154 handling of TILEGX_FAULTNUM_REGNUM.
11155 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11157 2013-02-19 Jiong Wang <jiwang@tilera.com>
11159 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11160 should be aligned to 64bit.
11162 2013-02-19 Kai Tietz <ktietz@redhat.com>
11164 * windows-nat.c (windows_xfer_memory): Fix debug-output
11167 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11169 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11170 Don't check DSP register number if HAVE_DSP is not set.
11172 2013-02-19 Alan Modra <amodra@gmail.com>
11174 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11175 throughout file instead.
11176 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11177 Don't xmalloc return value.
11178 (build_id_verify): Similarly. Don't xfree.
11179 (build_id_to_debug_filename): Update.
11180 (find_separate_debug_file_by_buildid): Update, don't xfree.
11182 2013-02-18 Tom Tromey <tromey@redhat.com>
11185 * dwarf2read.c (read_subrange_type): Use result of
11188 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11190 * frame.c: Remove one extra white space after #include
11193 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11195 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11197 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11199 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11200 and dir commands into an if block.
11202 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11204 * python/py-breakpoint (struct pybp_code): Use int instead of
11207 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11208 Hafiz Abid Qadeer <abidh@codesourcery.com>
11210 * NEWS: Mention new field "trace-file".
11211 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11212 (tfile_open): Record the trace file's filename in the trace
11214 (tfile_files_info): Mention the name of the trace file.
11215 Check the "filename" field explicitely.
11216 (trace_status_command): Explicitely check "filename" field.
11217 (trace_find_command): Ditto.
11218 (trace_find_pc_command): Ditto.
11219 (trace_find_tracepoint_command): Ditto.
11220 (trace_find_line_command): Ditto.
11221 (trace_find_range_command): Ditto.
11222 (trace_find_outside_command): Ditto.
11223 * tracepoint.h (struct trace_status) <from_file>: Rename it
11224 to "filename" and make it hold the trace file's filename
11225 instead of a boolean.
11226 * remote.c (remote_get_trace_status): Initialize "filename"
11227 field with NULL instead of 0.
11229 2013-02-15 Yao Qi <yao@codesourcery.com>
11231 * remote.c: Fix a typo.
11233 2013-02-14 Pierre Muller <muller@sourceware.org>
11235 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11237 2013-02-14 Pedro Alves <palves@redhat.com>
11239 * utils.c (savestring): Don't #undef it. Move function to
11240 common/common-utils.c.
11241 * common/common-utils.c: Include gdb_string.h.
11242 (savestring): Move here from utils.c.
11243 * common/common-utils.h (savestring): Declare.
11245 2013-02-14 Pedro Alves <palves@redhat.com>
11247 * utils.c (savestring): Rename parameter 'size' to 'len'.
11249 2013-02-14 Pedro Alves <palves@redhat.com>
11250 Yufeng Zhang <yufeng.zhang@arm.com>
11252 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11253 (aarch64_inferior_data, struct aarch64_inferior_data):
11255 (struct aarch64_process_info): New.
11256 (aarch64_process_list): New global.
11257 (aarch64_find_process_pid, aarch64_add_process)
11258 (aarch64_process_info_get): New functions.
11259 (aarch64_inferior_data_get): Delete.
11260 (aarch64_process_info_get): New function.
11261 (aarch64_forget_process): New function.
11262 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11263 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11264 aarch64_get_debug_reg_state.
11265 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11266 instead of linux_nat_iterate_watchpoint_lwps.
11267 (aarch64_linux_new_fork): New function.
11268 (aarch64_linux_child_post_startup_inferior): Use
11269 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11270 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11271 (aarch64_linux_remove_hw_breakpoint)
11272 (aarch64_handle_aligned_watchpoint)
11273 (aarch64_handle_unaligned_watchpoint)
11274 (aarch64_linux_insert_watchpoint)
11275 (aarch64_linux_remove_watchpoint)
11276 (aarch64_linux_stopped_data_address): Adjust to pass the current
11277 process id to aarch64_debug_reg_state.
11278 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11279 linux_nat_new_fork hook, and aarch64_forget_process as
11280 linux_nat_forget_process hook; remove the call to
11281 register_inferior_data_with_cleanup.
11283 2013-02-14 Pedro Alves <palves@redhat.com>
11285 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11286 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11289 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11290 Hafiz Abid Qadeer <abidh@codesourcery.com>
11292 * tracepoint.h (validate_trace_state_variable_name): Declare.
11293 * tracepoint.c (validate_trace_state_variable_name): New.
11294 (trace_variable_command): Parse the trace state variable's name
11295 without using parse_expression. Do several validations.
11296 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11297 trace state variable's name with parse_expression. Validate it.
11299 2013-02-14 Yao Qi <yao@codesourcery.com>
11301 * infcmd.c (breakpoint_proceeded): Remove it.
11303 2013-02-14 Yao Qi <yao@codesourcery.com>
11305 * tracepoint.c (end_actions_pseudocommand): Make it static.
11306 (while_stepping_pseudocommand): Likewise.
11307 * tracepoint.h (end_actions_pseudocommand): Remove the
11309 (while_stepping_pseudocommand): Likewise.
11311 2013-02-14 Yao Qi <yao@codesourcery.com>
11313 * cli/cli-decode.c (help_cmd): Remove the declaration of
11315 (help_all): Likewise.
11317 2013-02-13 Pedro Alves <palves@redhat.com>
11319 * amd64-linux-nat.c (update_debug_registers_callback):
11321 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11323 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11324 i386_debug_reg_state.
11325 (amd64_linux_new_fork): New function.
11326 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11327 linux_nat_new_fork hook, and i386_forget_process as
11328 linux_nat_forget_process hook.
11329 * i386-linux-nat.c (update_debug_registers_callback):
11331 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11333 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11334 i386_debug_reg_state.
11335 (i386_linux_new_fork): New function.
11336 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11337 linux_nat_new_fork hook, and i386_forget_process as
11338 linux_nat_forget_process hook.
11339 * i386-nat.c (i386_init_dregs): Delete.
11340 (i386_inferior_data, struct i386_inferior_data):
11342 (struct i386_process_info): New.
11343 (i386_process_list): New global.
11344 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11346 (i386_inferior_data_get): Delete.
11347 (i386_process_info_get): New function.
11348 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11349 (i386_forget_process): New function.
11350 (i386_cleanup_dregs): Rewrite.
11351 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11352 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11353 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11354 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11355 to i386_debug_reg_state.
11356 (i386_use_watchpoints): Don't register inferior data.
11357 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11359 (i386_forget_process): Declare.
11360 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11361 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11362 New static globals.
11363 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11364 (add_initial_lwp): New, factored out from ...
11365 (add_lwp): ... this. Don't check the number of lwps before
11366 calling linux_nat_new_thread.
11367 (linux_nat_iterate_watchpoint_lwps): Delete.
11368 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11369 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11371 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11373 (linux_nat_kill, linux_nat_mourn_inferior): Call
11374 linux_nat_forget_process.
11375 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11376 (linux_nat_forget_process): New functions.
11377 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11379 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11380 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11382 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11383 (linux_nat_forget_process): New declarations.
11385 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11386 (amd64fbsd_mourn_inferior): New function.
11387 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11388 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11390 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11392 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11395 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11397 * aarch64-linux-nat.c (debug_reg_change_callback)
11398 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11401 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11403 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11406 2013-02-13 Pedro Alves <palves@redhat.com>
11407 Hafiz Abid Qadeer <abidh@codesourcery.com>
11409 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11411 2013-02-12 Tom Tromey <tromey@redhat.com>
11414 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11416 (classify_inner_name): Remove 'first_name' argument, add
11417 'context'. Remove unused variable.
11418 (yylex): Explicitly maintain the context type. Exit loop earlier
11419 if NAME result is seen.
11421 2013-02-12 Pedro Alves <palves@redhat.com>
11423 * amd64-darwin-tdep.c: Add (C) after Copyright.
11424 * cli/cli-cmds.h: Ditto.
11425 * cli/cli-decode.c: Ditto.
11426 * cli/cli-decode.h: Ditto.
11427 * cli/cli-dump.c: Ditto.
11428 * cli/cli-dump.h: Ditto.
11429 * cli/cli-interp.c: Ditto.
11430 * cli/cli-logging.c: Ditto.
11431 * cli/cli-script.c: Ditto.
11432 * cli/cli-script.h: Ditto.
11433 * cli/cli-setshow.c: Ditto.
11434 * cli/cli-setshow.h: Ditto.
11435 * cli/cli-utils.c: Ditto.
11436 * cli/cli-utils.h: Ditto.
11437 * config/alpha/nm-osf3.h: Ditto.
11438 * config/djgpp/djconfig.sh: Ditto.
11439 * config/i386/nm-fbsd.h: Ditto.
11440 * config/i386/nm-i386gnu.h: Ditto.
11441 * config/nm-linux.h: Ditto.
11442 * config/nm-nto.h: Ditto.
11443 * config/rs6000/nm-rs6000.h: Ditto.
11444 * config/sparc/nm-sol2.h: Ditto.
11445 * darwin-nat-info.c: Ditto.
11448 * gdb-demangle.h: Ditto.
11449 * i386-darwin-nat.c: Ditto.
11450 * i386-darwin-tdep.c: Ditto.
11451 * linux-fork.h: Ditto.
11452 * m32c-tdep.c: Ditto.
11453 * microblaze-linux-tdep.c: Ditto.
11454 * microblaze-rom.c: Ditto.
11455 * microblaze-tdep.c: Ditto.
11456 * microblaze-tdep.h: Ditto.
11457 * mips-linux-tdep.h: Ditto.
11458 * ppc-ravenscar-thread.c: Ditto.
11459 * ppc-ravenscar-thread.h: Ditto.
11460 * prologue-value.c: Ditto.
11461 * prologue-value.h: Ditto.
11462 * ravenscar-thread.c: Ditto.
11463 * ravenscar-thread.h: Ditto.
11464 * sparc-ravenscar-thread.c: Ditto.
11465 * sparc-ravenscar-thread.h: Ditto.
11466 * tilegx-linux-tdep.c: Ditto.
11467 * unwind_stop_reasons.def: Ditto.
11468 * windows-nat.h: Ditto.
11469 * xtensa-linux-tdep.c: Ditto.
11470 * xtensa-xtregs.c: Ditto.
11471 * regformats/regdat.sh: Ditto.
11472 * regformats/regdef.h: Ditto.
11474 2013-02-12 Pedro Alves <palves@redhat.com>
11476 * break-catch-sig.c: Update copyright years.
11478 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11480 Add support for a destructor for ui_out data and use it to
11481 provide a ui_out destructor.
11482 * ui-out.h: Declare the new ui_out destructor.
11483 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11484 * ui-out.c (default_data_destroy): Add a default data destructor
11485 which does nothing.
11486 (default_ui_out_impl): Set the new data_destroy field to
11487 default_data_destroy
11488 (uo_data_destroy): Local function which invokes the data
11489 destructor if present.
11490 (clear_table): Local function which clears the table data of a
11492 (ui_out_destroy): Public function which frees a ui_out object.
11493 (ui_out_table_end): Use the new clear_table function.
11494 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11496 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11499 2013-02-11 Doug Evans <dje@google.com>
11501 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11502 (printf_decfloat): New function. Broken out from ui_printf.
11503 Remove unnecessary code to shift the entire format string down.
11504 (printf_pointer): New function.
11505 (ui_printf): Code to print C strings, wide C strings, decfloats,
11506 and pointers moved to separate functions.
11508 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11510 * valops.c (value_assign): Handling bitfield offset in
11511 `lval_internalvar_component' case.
11513 2013-02-08 Doug Evans <dje@google.com>
11515 * common/format.c (parse_format_string): Fix whitespace.
11517 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11519 * stack.c (return_command): Work around uninitialized variable
11522 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11524 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11525 number of the registers from 36 to 34.
11527 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11529 * NEWS: Mention new AArch64 native and target support.
11531 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11533 * MAINTAINERS (Write After Approval): Add myself.
11535 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11536 Marcus Shawcroft <marcus.shawcroft@arm.com>
11537 Nigel Stephens <nigel.stephens@arm.com>
11538 Yufeng Zhang <yufeng.zhang@arm.com>
11540 * aarch64-linux-nat.c: New file.
11541 * config/aarch64/linux.mh: New file.
11542 * configure.host: Add AArch64.
11543 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11545 2013-02-07 Doug Evans <dje@google.com>
11547 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11548 disassemble command.
11550 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11552 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11553 set_gdbarch_fetch_tls_load_module_address.
11555 2013-02-06 David S. Miller <davem@davemloft.net>
11557 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11558 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11559 * value.c (struct_return_convention): New function.
11560 (using_struct_return): Implement in terms of struct_return_convention.
11561 * value.h (struct_return_convention): Declare.
11562 * stack.c (return_command): Allow successful overriding of the return
11563 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11565 2013-02-06 Tom Tromey <tromey@redhat.com>
11567 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11568 outside of TRY_CATCH.
11570 2013-02-06 Yao Qi <yao@codesourcery.com>
11572 * mi/mi-interp.c: Include "tracepoint.h".
11573 (mi_tsv_modified): Declare.
11574 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11575 (mi_interpreter_init): Call observer_attach_tsv_modified.
11576 (mi_tsv_modified): New.
11577 (mi_tsv_created, mi_tsv_deleted): Update.
11578 * tracepoint.c (trace_variable_command): Call
11579 observer_notify_tsv_modified if the initial value of tsv is
11581 (delete_trace_state_variable): Call
11582 observer_notify_tsv_deleted earlier.
11583 (trace_variable_command): Caller update.
11584 (create_tsv_from_upload): Likewise.
11585 * observer.sh: Declare "struct trace_state_variable".
11587 * NEWS: Mention the new MI notification "=tsv-modified".
11589 2013-02-05 Doug Evans <dje@google.com>
11591 * completer.c (location_completer): Fix typo in comment.
11593 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11595 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11598 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11600 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11601 Refactor if statement to avoid trailing || operator.
11603 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11605 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11607 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11609 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11610 * configure.host: Add powerpc*-*-freebsd* target.
11611 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11612 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11613 * config/powerpc/fbsd.mh: New file.
11615 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11616 Denys Vlasenko <dvlasenk@redhat.com>
11617 Pedro Alves <palves@redhat.com>
11619 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11620 (struct elf_internal_linux_prpsinfo): Forward declare.
11621 * gdbarch.h, gdbarch.c: Regenerate.
11622 * linux-tdep.c: Include `cli/cli-utils.h'.
11623 (linux_fill_prpsinfo): New function.
11624 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11625 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11626 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11627 depending on gdbarch pointer bitness.
11628 * ppc-linux-tdep.c: Include elf-bfd.h.
11629 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11632 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11633 Marcus Shawcroft <marcus.shawcroft@arm.com>
11634 Nigel Stephens <nigel.stephens@arm.com>
11635 Yufeng Zhang <yufeng.zhang@arm.com>
11637 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11639 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11640 Marcus Shawcroft <marcus.shawcroft@arm.com>
11641 Nigel Stephens <nigel.stephens@arm.com>
11642 Yufeng Zhang <yufeng.zhang@arm.com>
11644 * aarch64-newlib-tdep.c: New file.
11645 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11647 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11648 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11649 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11650 * osabi.c (gdb_osabi_names): Add "Newlib".
11652 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11653 Marcus Shawcroft <marcus.shawcroft@arm.com>
11654 Nigel Stephens <nigel.stephens@arm.com>
11655 Yufeng Zhang <yufeng.zhang@arm.com>
11657 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11658 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11659 * aarch64-linux-tdep.c: New file.
11660 * aarch64-linux-tdep.h: New file.
11661 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11662 * configure.tgt: Add aarch64-none-linux-gnu.
11664 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11665 Marcus Shawcroft <marcus.shawcroft@arm.com>
11666 Nigel Stephens <nigel.stephens@arm.com>
11667 Yufeng Zhang <yufeng.zhang@arm.com>
11669 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11670 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11671 (ALLDEPFILES): Add aarch64-tdep.c.
11672 * aarch64-tdep.c: New file.
11673 * aarch64-tdep.h: New file.
11674 * configure.tgt: Add AArch64.
11675 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11676 (aarch64-expedite): New definition.
11677 * features/aarch64-core.xml: New file.
11678 * features/aarch64-fpu.xml: New file.
11679 * features/aarch64-without-fpu.c: New file (generated).
11680 * features/aarch64-without-fpu.xml: New file.
11681 * features/aarch64.c: New file (generated).
11682 * features/aarch64.xml: New file.
11683 * regformats/aarch64-without-fpu.dat: New file (generated).
11684 * regformats/aarch64.dat: New file (generated).
11686 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11688 * contrib/expect-read1.c: New file.
11689 * contrib/expect-read1.sh: New file.
11691 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11693 * dwarf2read.c (file_file_name): New function with code from
11695 (file_full_name): Move most of the code to file_file_name.
11696 (macro_start_file): Rename variable full_name to file_name and use
11697 file_file_name for it. Add comp_dir parameter to new_macro_table.
11698 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11699 macro_source_file->filename access by macro_source_fullname call.
11700 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11702 * macrotab.c (struct macro_table): New field comp_dir.
11703 (macro_include): New variables link_fullname and source_fullname.
11704 Replace any macro_source_file->filename access by macro_source_fullname
11706 (macro_lookup_inclusion): Remove the partial filenames checking code.
11707 (check_for_redefinition): New variables source_fullname and
11708 found_key_fullname. Replace any macro_source_file->filename access by
11709 macro_source_fullname call.
11710 (macro_undef): New variables source_fullname and key_fullname. Replace
11711 any macro_source_file->filename access by macro_source_fullname call.
11712 (macro_lookup_definition): New variables retval and source_fullname.
11713 Replace any macro_source_file->filename access by macro_source_fullname
11715 (foreach_macro): New variable key_fullname. Replace any
11716 macro_source_file->filename access by macro_source_fullname call.
11717 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11718 macro_source_file->filename access by macro_source_fullname call.
11719 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11720 (macro_source_fullname): New function.
11721 * macrotab.h (struct macro_source_file): Extent the filename field
11723 (new_macro_table): New parameter comp_dir, add a comment for it.
11724 (macro_source_fullname): new declaration.
11726 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11728 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11729 this_real_name to outer block. Use it also for
11730 compare_filenames_for_search.
11731 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11732 with dw2_get_real_path for file_matcher, considering also
11733 BASENAMES_MAY_DIFFER.
11734 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11736 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11738 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11739 to the file_matcher parameter. Pass 0 to it.
11740 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11741 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11742 NULL psymtab_to_fullname result.
11743 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11744 an expected filename instead.
11745 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11746 file_matcher parameter. Call also psymtab_to_fullname, after newly
11747 considering BASENAMES_MAY_DIFFER.
11748 * source.c (rewrite_source_path): Remove static.
11749 * source.h (rewrite_source_path): New declaration.
11750 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11751 the expand_symtabs_matching field. Comment it.
11752 * symtab.c (file_matches): New function comment. Add parameter
11753 basenames, implement it.
11754 (search_symbols_file_matches): Add basenames parameter. Update the
11755 file_matches caller.
11756 (search_symbols): Match FILES also against symtab_to_fullname.
11757 Optimize it for BASENAMES_MAY_DIFFER.
11759 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11761 * source.c (print_source_lines_base): Print for TUI also "fullname".
11762 * tui/tui-data.c (init_content_element): Change tui_locator_element
11763 field to full_name.
11764 * tui/tui-data.h (struct tui_locator_element): Likewise.
11765 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11766 tui_update_locator_filename calls to tui_update_locator_fullname.
11767 Replace symtab->filename refererence by symtab_to_fullname call.
11768 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11769 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11770 field to full_name. Replace symtab->filename refererence by
11771 symtab_to_fullname call.
11772 (tui_show_symtab_source): Rename parameter to fullname. Change
11773 tui_locator_element field to full_name.
11774 * tui/tui-stack.c: Include source.h.
11775 (tui_set_locator_filename): Rename the declaration to ...
11776 (tui_set_locator_fullname): ... here. Rename its parameter to
11777 fullname, updates its comment.
11778 (tui_set_locator_info): Rename its parameter to fullname.
11779 (tui_set_locator_filename): Rename the definition to ...
11780 (tui_set_locator_fullname): ... here. Rename its parameter to
11781 fullname, updates its comment. Change tui_locator_element field to
11783 (tui_set_locator_info): Rename its parameter to fullname.
11784 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11785 (tui_update_locator_filename): Rename to ...
11786 (tui_update_locator_fullname): ... here. Rename callee to
11787 tui_set_locator_fullname.
11788 (tui_show_frame_info): Replace symtab->filename refererence by
11789 symtab_to_fullname call.
11790 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11791 (tui_update_locator_fullname): ... here.
11792 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11793 tui_update_locator_fullname. Replace symtab->filename refererence by
11794 symtab_to_fullname call.
11795 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11796 Rename the callee to tui_update_locator_fullname.
11797 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11799 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11801 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11802 by symtab_to_filename_for_display calls.
11803 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11804 (clear_command): New variable sal_fullname, initialize it. Replace
11805 compare_filenames_for_search by filename_cmp with sal_fullname.
11806 (say_where, update_static_tracepoint): Replace symtab->filename
11807 refererences by symtab_to_filename_for_display calls.
11808 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11810 * dwarf2read.c: Include source.h.
11811 (fixup_go_packaging): Replace symtab->filename refererences by
11812 symtab_to_filename_for_display calls.
11813 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11814 Replace symtab->filename refererences by symtab_to_filename_for_display
11816 (create_sals_line_offset, convert_linespec_to_sals): New variable
11817 fullname, initialize it, replace symtab->filename reference by the
11819 * linux-fork.c: Include source.h.
11820 (info_checkpoints_command): Replace symtab->filename refererences by
11821 symtab_to_filename_for_display calls.
11822 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11823 by symtab_to_filename_for_display calls.
11824 * mdebugread.c: Include source.h.
11825 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11826 symtab_to_filename_for_display calls.
11827 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11828 (mi_cmd_file_list_exec_source_files): Likewise.
11829 * printcmd.c: Include source.h.
11830 (build_address_symbolic): Replace symtab->filename refererences by
11831 symtab_to_filename_for_display calls.
11832 * psymtab.c (partial_map_symtabs_matching_filename)
11833 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11834 with psymtab_to_fullname.
11835 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11836 by symtab_to_filename_for_display calls.
11837 (stpy_get_filename): New variable filename, initialize it, use instead
11838 of symtab->filename refererences.
11839 (salpy_str): Make variable filename const char *. Replace
11840 symtab->filename refererences by symtab_to_filename_for_display calls.
11841 * skip.c: Include source.h and filenames.h.
11842 (skip_file_command): Remove const from the symtab variable. Replace
11843 symtab->filename refererences by symtab_to_fullname call.
11844 (function_name_is_marked_for_skip): New variables searched_for_fullname
11845 and fullname. Use them to search also with symtab's fullname.
11846 * source.c (find_source_lines): Replace symtab->filename refererences
11847 by symtab_to_filename_for_display calls.
11848 (print_source_lines_base): New variable filename, use it instead of
11849 symtab->filename. Replace symtab->filename refererences by
11850 symtab_to_filename_for_display calls.
11851 (line_info, forward_search_command): Replace symtab->filename
11852 refererences by symtab_to_filename_for_display calls.
11853 (reverse_search_command): Replace symtab->filename refererences by
11854 symtab_to_filename_for_display calls. New variable filename for it.
11855 * stack.c (frame_info): Likewise.
11856 * symmisc.c: Include source.h.
11857 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11858 (maintenance_info_symtabs): Replace symtab->filename refererences by
11859 symtab_to_filename_for_display calls.
11860 * symtab.c (iterate_over_some_symtabs): Call
11861 compare_filenames_for_search also with symtab_to_fullname.
11862 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11863 symtab->filename refererences by symtab_to_filename_for_display calls.
11864 (find_line_symtab): Replace symtab->filename refererences by
11865 symtab_to_filename_for_display calls.
11866 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11867 (print_symbol_info): Make the last parameter const char *. New
11868 variable s_filename. Use it in the function.
11869 (symtab_symbol_info): Make the last_filename variable const char *.
11870 Replace symtab->filename refererences by symtab_to_filename_for_display
11872 (rbreak_command): New variable fullname. Use it. Replace
11873 symtab->filename refererence by symtab_to_filename_for_display call.
11874 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11875 (print_one_static_tracepoint_marker): Replace symtab->filename
11876 refererences by symtab_to_filename_for_display calls.
11877 * tui/tui-source.c (tui_set_source_content): New variables filename and
11878 s_filename. Replace symtab->filename refererences by this variable.
11879 Replace other symtab->filename refererences by
11880 symtab_to_filename_for_display calls.
11882 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11883 Jan Kratochvil <jan.kratochvil@redhat.com>
11885 Add a new variable that controls a way in which filenames are
11887 * NEWS (set filename-display): New entry.
11888 * source.c (filename_display_basename, filename_display_relative)
11889 (filename_display_absolute, filename_display_kind_names)
11890 (filename_display_string, show_filename_display_string)
11891 (symtab_to_filename_for_display): New.
11892 (_initialize_source): Added initialization of 'filename-display'
11894 * source.h (symtab_to_filename_for_display): Added declaration.
11895 * stack.c (print_frame): Added new variable and calling of a new
11896 function and condition with this variable. Changed third argument of
11897 calling of a function.
11899 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11901 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11902 Rename field reference filename to fullname.
11903 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11904 fullname. New comment for it.
11905 * tui/tui-source.c (tui_set_source_content): Rename field reference
11906 filename to fullname. Initialize field by symtab_to_fullname now.
11907 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11908 reference filename to fullname. Use symtab_to_fullname during
11911 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11914 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11915 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11916 filename to fullname. Rename variable this_name to this_fullname.
11917 Lowercase FILENAME_CMP call.
11918 (dw2_find_symbol_file): New comment for the returned string.
11919 (dwarf2_gdb_index_functions): Rename the function to
11920 dw2_expand_symtabs_with_fullname.
11921 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11922 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11924 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11925 * symfile.h (struct quick_symbol_functions): Rename field
11926 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11927 parameter filename to fullname. Document returned string meaning for
11929 * symtab.c (find_line_symtab): Rename the called function to
11930 expand_symtabs_with_fullname.
11932 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11935 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11936 call of filename_cmp with compare_filenames_for_search.
11937 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11938 is_abs, unify the call of FILENAME_CMP with
11939 compare_filenames_for_search. New gdb_asserts for real_path and name.
11940 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11941 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11942 * symfile.h (struct quick_symbol_functions): Extend the comment for
11943 map_symtabs_matching_filename.
11944 * symtab.c (compare_filenames_for_search): Remove the function comment
11945 relative path requirement. Handle absolute filenames, with a comment.
11946 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11947 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11948 real_path and name. Unify the call of compare_filenames_for_search
11950 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11952 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11955 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11956 source_file references by symtab field references. Remove variables
11958 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11959 (clear_command, say_where): Replace bp_location field source_file
11960 references by symtab field references.
11961 (bp_location_dtor): Remove the source_file reference.
11962 (update_static_tracepoint): Replace bp_location field source_file
11963 references by symtab field references.
11964 (breakpoint_free_objfile): New function.
11965 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11966 Replace the field source_file by field symtab, extend its comment.
11967 (breakpoint_free_objfile): New declaration.
11968 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11969 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11970 field source_file references by symtab field references.
11972 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11974 Replace xfullpath calls by gdb_realpath calls.
11975 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11977 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11978 Remove it from the iterate_over_some_symtabs call.
11979 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11980 Remove it from the dw2_map_expand_apply calls, remove a block handling
11982 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11983 Remove it from the iterate_over_some_symtabs call.
11984 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11985 Remove it from the partial_map_expand_apply calls, remove a block
11986 handling it. Drop gdb_realpath call and cleanups from the real_path
11988 * source.c (openp): Drop the comment part about xfullpath. Replace
11989 xfullpath calls by gdb_realpath calls.
11990 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11991 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11992 from method map_symtabs_matching_filename and its comment.
11993 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11995 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11996 remove it also from the function comment, remove a block handling it.
11997 Drop gdb_realpath call and cleanups from the real_path handling.
11998 (iterate_over_symtabs): Drop variable full_path and its use.
11999 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12000 * utils.c (xfullpath): Remove.
12001 * utils.h (xfullpath): Remove.
12003 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12005 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12006 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12007 (ALLDEPFILES): Add ppc64-tdep.c.
12008 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12009 ppc64-tdep.o to gdb_target_obs.
12010 * ppc64-tdep.h: New file.
12011 * ppc64-tdep.c: New file.
12012 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12013 ppc-linux-tdep.c to here.
12014 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12015 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12016 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12017 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12018 from ppc-linux-tdep.c to here.
12019 (ppc64_convert_from_func_ptr_addr): Rename from
12020 ppc64_linux_convert_from_func_ptr_addr to
12021 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12024 (read_insn): Move from ppc-linux-tdep.c to here.
12025 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12026 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12027 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12028 Removed above functions.
12029 (ppc_linux_init_abi): Adjust.
12031 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12033 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12035 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12037 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12039 2013-02-01 Pedro Alves <palves@redhat.com>
12041 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12042 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12044 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12046 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12047 files with no separate debug info.
12048 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12049 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12050 only for files with no separate debug info.
12052 2013-01-31 Tom Tromey <tromey@redhat.com>
12054 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12056 (struct jit_program_space_data): Rename from jit_inferior_data.
12058 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12059 Change return type. Attach data to program space.
12060 (jit_program_space_data_cleanup): Rename from
12061 jit_inferior_data_cleanup; change argument type.
12062 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12064 (jit_register_code): Update.
12065 (jit_update_inferior_cache): Remove.
12066 (jit_breakpoint_deleted): Get jit data from the location's program
12068 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12069 'ps_data', change type.
12070 (jit_inferior_init, jit_breakpoint_re_set_internal)
12071 (jit_event_handler): Update.
12072 (free_objfile_data): Get data from objfile's program space.
12073 (_initialize_jit): Update.
12075 2013-01-31 Tom Tromey <tromey@redhat.com>
12078 * jit.c (struct jit_inferior_data) <cached_code_address,
12079 jit_breakpoint>: New fields.
12080 (jit_breakpoint_re_set_internal): Fix logging. Only create
12081 breakpoint if cached address has changed.
12082 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12084 (_initialize_jit): Register breakpoint deleted observer.
12086 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12088 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12089 (save_infcall_suspend_state): Ifdef out unused inf.
12090 (restore_infcall_suspend_state): Ifdef out unused inf.
12091 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12092 (jit_frame_sniffer): Remove unused inf_data.
12094 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12096 * c-exp.y (classify_inner_name): Remove unused type.
12097 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12098 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12100 (c_get_string): Remove unused kind.
12101 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12103 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12105 * charset.c (intermediate_encoding): Remove unused i.
12106 * completer.c (signal_completer): Remove unused i.
12107 * continuations.c (discard_my_continuations_1): Remove unused
12109 * corelow.c (core_close): Remove unuseD name.
12110 (get_core_siginfo): Remove unused pid.
12111 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12113 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12114 (loclist_describe_location): Remove unused first.
12115 * event-top.c (command_line_handler): Remove unused got_eof.
12116 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12117 (resize_section_table): Remove unused old_value.
12118 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12119 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12120 * i386-tdep.c (i386_process_record): Remove unused rex.
12121 * infcmd.c (get_return_value): Remove unused uiout.
12122 * jv-lang.c (type_from_class): Remove unused is_array.
12123 * jv-valprint.c (java_val_print): Remove unused i.
12124 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12125 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12126 * m2-typeprint.c (m2_print_type): Remove unused code.
12127 * macroexp.c (get_character_constant): Remove unused body_start.
12128 (macro_stringify): Remove unused result.
12129 * objc-lang.c (find_methods): Remove unused gdbarch.
12130 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12131 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12132 * stack.c (print_frame_args): Remove unused summary.
12133 * thread.c (thread_apply_command): Remove unused p.
12134 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12135 * valops.c (search_struct_method): Remove unused skip.
12136 * valprint.c (generic_val_print): Remove unused byte_order.
12137 * varobj.c (varobj_update): Remove unused changed.
12138 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12139 (alias_command): Remove unused c.
12140 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12141 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12143 (mi_cmd_data_write_memory): Remove unused word_format.
12144 (mi_cmd_data_write_memory_bytes): Remove unused r.
12145 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12147 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12148 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12151 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12153 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12154 * symtab.c (iterate_over_symtabs): Remove unused s.
12155 (find_pc_sect_symtab): Remove unused pspAce.
12156 (find_pc_sect_line): Remove unused alt_symtab.
12157 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12158 (completion_list_add_name): Remove unused newsize.
12160 2013-01-31 Tom Tromey <tromey@redhat.com>
12163 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12166 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12168 * target.c (target_read_string): Remove unused origlen.
12170 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12172 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12173 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12174 * ax-general.c (ax_print): Remove unused is_float.
12175 * blockframe.c (block_innermost_frame): Remove unused start, end.
12176 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12178 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12180 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12181 (svr4_read_so_list): Remove unused lmo.
12182 * solib-target.c (solib_target_relocate_section_addresses): Remove
12185 2013-01-30 Tom Tromey <tromey@redhat.com>
12187 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12189 2013-01-30 Tom Tromey <tromey@redhat.com>
12191 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12192 * utils.c (gnu_debuglink_crc32): Remove.
12193 * utils.h (gnu_debuglink_crc32): Don't declare.
12195 2013-01-30 Tom Tromey <tromey@redhat.com>
12197 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12198 (read_structure_type, read_enumeration_type): Remove cast.
12200 2013-01-30 Tom Tromey <tromey@redhat.com>
12202 * dwarf2read.c (read_namespace_type): Remove cast.
12203 (read_typedef): Likewise.
12205 2013-01-29 Tom Tromey <tromey@redhat.com>
12207 * dwarf2read.c (free_dwo_file): Remove assert.
12209 2013-01-29 Tom Tromey <tromey@redhat.com>
12211 * value.c (deprecated_set_value_modifiable): Remove.
12212 * value.h (deprecated_set_value_modifiable): Remove.
12214 2013-01-28 Doug Evans <dje@google.com>
12216 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12217 to addresses from dwo files.
12219 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12221 * valops.c (find_overload_match): Remove unused argument 'lax'.
12222 * value.h: Remove unused argument 'lax' from the declaration of
12223 find_overload_match.
12224 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12225 to find_overload_match.
12226 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12227 argument to find_overload_match.
12229 2013-01-25 Tom Tromey <tromey@redhat.com>
12231 * dwarf2read.c (processing_has_namespace_info): Remove.
12232 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12233 (process_die, read_func_scope, dwarf2_start_symtab)
12234 (new_symbol_full): Update.
12236 2013-01-25 Tom Tromey <tromey@redhat.com>
12238 * cp-namespace.c (cp_set_block_scope): Remove.
12239 * cp-support.h (cp_set_block_scope): Remove.
12240 * dbxread.c: Include block.h.
12241 (cp_set_block_scope): New function.
12242 (process_one_symbol): Update.
12243 * dwarf2read.c (read_func_scope): Use block_set_scope.
12245 2013-01-25 Pedro Alves <palves@redhat.com>
12247 * remote.c (add_current_inferior_and_thread): Tweak comment.
12249 2013-01-25 Tom Tromey <tromey@redhat.com>
12251 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12252 (cp_add_using_directive): Add 'copy_names' argument.
12253 * cp-support.h (cp_add_using_directive): Update.
12254 (struct using_direct) <import_src, import_dest, alias,
12255 declaration>: Now const.
12256 * dwarf2read.c (read_import_statement): Use obconcat.
12257 Don't copy names passed to cp_add_using_directive.
12259 2013-01-25 Tom Tromey <tromey@redhat.com>
12261 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12263 2013-01-25 Pedro Alves <palves@redhat.com>
12265 * remote.c (stop_reply_extract_thread): New.
12266 (add_current_inferior_and_thread): New parameter 'wait_status'.
12268 (remote_start_remote): Pass wait status to
12269 add_current_inferior_and_thread.
12270 (extended_remote_run): Update comment.
12271 (extended_remote_create_inferior_1): Pass wait status to
12272 add_current_inferior_and_thread.
12274 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12275 Ulrich Weigand <uweigand@de.ibm.com>
12277 * valarith.c (value_vector_widen): New function for replicating a
12278 scalar into a vector.
12279 (value_binop): Use value_vector_widen to widen scalar to vector
12280 rather than casting, this better matches gcc C behaviour.
12281 * valops.c (value_casst): Update logic for casting between vector
12282 types, and for casting from scalar to vector, try to match gcc C
12284 * value.h (value_vector_widen): Declare.
12285 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12286 function, handle special case for casting scalar to vector.
12287 (opencl_relop): Use opencl_value_cast.
12288 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12289 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12290 in order to use opencl_value_cast.
12292 2013-01-25 Yao Qi <yao@codesourcery.com>
12294 * event-loop.c: Include "queue.h".
12295 (gdb_event_p): New typedef.
12296 (DECLARE_QUEUE_P): Use.
12297 (DEFINE_QUEUE_P): Use.
12298 (async_queue_event): Remove.
12299 (gdb_event_xfree): New.
12300 (initialize_event_loop): New.
12301 (process_event): Use QUEUE macros.
12302 (event_queue): Remove.
12303 (gdb_wait_for_event): Caller update.
12304 (check_async_event_handlers): Likewise.
12305 (poll_timers): Likewise.
12306 * event-loop.h (initialize_event_loop): Declare.
12307 * event-loop.c (gdb_event_xfree): New.
12308 * top.c (gdb_init): Call initialize_event_loop.
12310 2013-01-25 Yao Qi <yao@codesourcery.com>
12312 * event-loop.c (async_queue_event): Remove one parameter
12313 'position'. Remove code handling 'position' == TAIL.
12314 (gdb_wait_for_event): Caller update.
12315 (check_async_event_handlers): Caller update.
12316 (poll_timers): Caller update.
12317 * event-loop.h (enum queue_position): Remove.
12319 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12321 * MAINTAINERS: Update my email.
12323 2013-01-25 Yao Qi <yao@codesourcery.com>
12325 * main.c (print_gdb_help): Remove "--epoch" from the help
12328 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12330 * symtab.c (skip_prologue_using_sal): Consider a file
12331 change the same as an increased line number
12333 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12335 * MAINTAINERS (Write After Approval): Add myself to the list.
12337 2013-01-24 Tom Tromey <tromey@redhat.com>
12339 * ada-lang.h (ada_decode_symbol): Make return type const.
12340 * ada-lang.c (ada_decode_symbol): Likewise.
12342 2013-01-23 Doug Evans <dje@google.com>
12344 * linespec.c (find_linespec_symbols): Make static.
12346 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12348 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12349 type on float conversion for complex type.
12351 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12353 Add a new class gdb.Architecture which exposes GDB's
12354 internal representation of architecture via GDB Python API.
12355 * Makefile.in: Add entries corresponding to the new file
12357 * NEWS (Python Scripting): Add entries for the new class
12358 gdb.Architecture and the new method gdb.Frame.architecture.
12359 * python/py-arch.c: Implement gdb.Architecture class.
12360 * python/py-frame.c (frapy_arch): Implement the method
12361 gdb.Frame.architecture().
12362 (frame_object_methods): Add 'architecture' to the method table.
12363 * python/python-internal.h: Add declarations of new utility
12365 * python/python.c (_initialize_python): Initialize
12366 gdb.Architecture class.
12368 2013-01-23 Doug Evans <dje@google.com>
12370 Work around binutils/15021.
12371 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12372 type_unit_group out of union s. All uses updated.
12373 (read_index_from_section): Watch for index version 8.
12374 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12375 an imported symtab.
12376 (write_psymtabs_to_index): Increment version number to 8.
12378 2013-01-22 Pedro Alves <palves@redhat.com>
12380 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12383 2013-01-22 Pedro Alves <palves@redhat.com>
12385 * annotate.c (annotate_breakpoints_changed): Rename to ...
12386 (annotate_breakpoints_invalid): ... this. Make static.
12387 (breakpoint_changed): Adjust.
12388 (_initialize_annotate): Always install the observers. Install a
12389 "breakpoint_created" observer.
12390 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12391 * breakpoint.c (set_breakpoint_condition)
12392 (breakpoint_set_commands, do_map_commands_command)
12393 (init_raw_breakpoint, clear_command, set_ignore_count)
12394 (enable_breakpoint_disp): No longer call
12395 annotate_breakpoints_changed.
12397 2013-01-22 Pedro Alves <palves@redhat.com>
12399 * annotate.c: Include "inferior.h".
12400 (frames_invalid_emitted)
12401 (breakpoints_invalid_emitted): New globals.
12402 (async_background_execution_p): New function.
12403 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12404 emitting the annotation if it has already been emitted.
12405 (annotate_display_prompt): New function.
12406 * annotate.h (annotate_display_prompt): New declaration.
12407 * event-top.c: Include annotate.h.
12408 (display_gdb_prompt): Call annotate_display_prompt.
12410 2013-01-22 Pedro Alves <palves@redhat.com>
12412 * annotate.c (ignore_count_changed): Delete.
12413 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12414 (annotate_ignore_count_change): Delete.
12415 (annotate_stopped): Don't emit a delayed breakpoints-changed
12417 * annotate.h (annotate_ignore_count_change): Delete.
12418 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12419 annotate_ignore_count_change.
12421 2013-01-22 Tom Tromey <tromey@redhat.com>
12423 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12424 require_rvalue for a register location.
12426 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12428 * breakpoint.c (print_one_breakpoint_location): Add MI
12429 field 'thread-groups' when printing a breakpoint.
12430 (output_thread_groups): New function.
12432 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12434 * python/lib/gdb/commands/explore.py
12435 (CompoundExplorer.explore_expr): Correct the name of a method
12437 (ExploreTypeCommand.invoke): Add a missing 'return'.
12439 2013-01-21 Tom Tromey <tromey@redhat.com>
12441 * gdb_obstack.h (obconcat): Move declaration here, from...
12442 * symfile.h (obconcat): ... here.
12443 * gdb_obstack.c: New file.
12444 (obconcat): Move from...
12445 * symfile.c (obconcat): ... here.
12446 * Makefile.in (SFILES): Add gdb_obstack.c.
12447 (COMMON_OBS): Add gdb_obstack.o.
12449 2013-01-21 Tom Tromey <tromey@redhat.com>
12451 * symfile.h (obsavestring): Don't declare.
12452 * symfile.c (obsavestring): Remove.
12453 * ada-exp.y: Use obstack_copy0, not obsavestring.
12454 * ada-lang.c: Use obstack_copy0, not obsavestring.
12455 * coffread.c: Use obstack_copy0, not obsavestring.
12456 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12457 * dbxread.c: Use obstack_copy0, not obsavestring.
12458 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12459 * jit.c: Use obstack_copy0, not obsavestring.
12460 * mdebugread.c: Use obstack_copy0, not obsavestring.
12461 * psymtab.c: Use obstack_copy0, not obsavestring.
12462 * stabsread.c: Use obstack_copy0, not obsavestring.
12463 * xcoffread.c: Use obstack_copy0, not obsavestring.
12465 2013-01-21 Tom Tromey <tromey@redhat.com>
12467 * dwarf2read.c (fixup_go_packaging): Save package name
12468 on objfile obstack.
12469 * gdbtypes.c (init_type): Don't copy name.
12471 2013-01-21 Tom Tromey <tromey@redhat.com>
12473 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12475 (struct attribute) <u.str>: Now const.
12476 (struct fnfieldlist) <name>: Now const.
12477 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12478 (partial_die_parent_scope): Make return type const.
12479 (partial_die_full_name, add_partial_symbol): Update.
12480 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12482 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12483 (read_file_scope, read_func_scope, dwarf2_add_field)
12484 (dwarf2_add_member_fn, read_structure_type)
12485 (process_enumeration_scope, read_array_type, read_module_type)
12486 (read_base_type, read_subrange_type): Update.
12487 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12488 (new_symbol_full, guess_full_die_structure_name): Update.
12489 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12490 (dwarf2_name): Return const type.
12491 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12494 2013-01-21 Tom Tromey <tromey@redhat.com>
12496 * gdbtypes.c (init_type): Make 'name' const.
12497 * gdbtypes.h (init_type): Update.
12499 2013-01-21 Tom Tromey <tromey@redhat.com>
12501 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12502 (start_symtab): Make 'name' and 'dirname' const. Use
12503 set_last_source_file.
12504 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12505 (last_source_file): Define. Now static.
12506 (set_last_source_file, get_last_source_file): New functions.
12507 * buildsym.h (last_source_file): Don't declare.
12508 (start_symtab): Update.
12509 (set_last_source_file, get_last_source_file): Declare.
12510 * coffread.c (complete_symtab): Use set_last_source_file.
12511 (coff_end_symtab): Likewise.
12512 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12513 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12514 set_last_source_file.
12515 (process_one_symbol): Use get_last_source_file.
12516 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12517 (psymtab_to_symtab_1): Use get_last_source_file.
12518 * xcoffread.c (process_linenos): Use get_last_source_file.
12519 (complete_symtab): Use set_last_source_file.
12520 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12521 (scan_xcoff_symtab): Use set_last_source_file.
12523 2013-01-21 Tom Tromey <tromey@redhat.com>
12525 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12526 (symbol_set_names): Remove casts. Handle field const-ness.
12528 2013-01-21 Tom Tromey <tromey@redhat.com>
12530 * dwarf2read.c (new_symbol_full): Remove cast.
12531 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12532 * symtab.h (symbol_set_demangled_name): Update.
12534 2013-01-21 Tom Tromey <tromey@redhat.com>
12536 * main.c (captured_main): Call bfd_init.
12538 2013-01-21 Tom Tromey <tromey@redhat.com>
12540 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12541 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12542 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12545 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12547 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12549 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12551 Fix gdb.fortran/common-block.exp crash in PIE mode.
12552 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12554 * f-valprint.c (info_common_command_for_block): Expect
12555 LOC_COMMON_BLOCK in gdb_assert.
12556 * symtab.h (struct general_symbol_info): Update comment for the
12557 common_block member.
12558 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12559 (enum address_class): New member LOC_COMMON_BLOCK.
12561 2013-01-18 David Blaikie <dblaikie@gmail.com>
12563 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12565 2013-01-18 Tom Tromey <tromey@redhat.com>
12568 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12569 Call require_rvalue.
12571 2013-01-18 Yao Qi <yao@codesourcery.com>
12573 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12574 (dbx_read_symtab): New declaration.
12575 (dbx_psymtab_to_symtab): Delete.
12576 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12577 Rename parameter PST to SELF. Exchanged two parameters.
12578 (start_psymtab): Caller update.
12579 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12580 (dwarf2_read_symtab): New declaration.
12581 (dwarf2_psymtab_to_symtab): Delete.
12582 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12583 Rename parameter PST to SELF. Exchanged two parameters.
12584 (create_partial_symtab): Caller update.
12585 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12586 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12587 Rename parameter PST to SELF. Exchanged two parameters.
12588 (parse_partial_symbols, new_psymtab): Caller update.
12589 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12591 * psymtab.c (psymtab_to_symtab): Caller update.
12592 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12593 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12594 Rename parameter PST to SELF. Exchanged two parameters.
12595 (xcoff_start_psymtab): Caller update.
12597 2013-01-18 Yao Qi <yao@codesourcery.com>
12599 * infrun.c (proceed): Rename local variable 'oneproc' to
12602 2013-01-17 Doug Evans <dje@google.com>
12604 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12605 (dw2_build_type_unit_groups): Delete. All uses updated.
12607 * symtab.h (struct symbol_search): Add comment.
12609 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12611 * symtab.c (compare_filenames_for_search): New comment for
12614 2013-01-17 Tom Tromey <tromey@redhat.com>
12616 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12618 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12620 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12621 initialize it by existing make_cleanup. Call new do_cleanups.
12623 2013-01-17 Tom Tromey <tromey@redhat.com>
12625 * cp-abi.c (cp_abi_completer): New function.
12626 (_initialize_cp_abi): Set completer for "set cp-abi".
12628 2013-01-17 Tom Tromey <tromey@redhat.com>
12630 * mem-break.c: Remove obsolete comment.
12631 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12633 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12635 * jit.c (jit_reader_load_command): Interpret the jit reader name
12636 as an absolute path if it begins with a forward slash.
12638 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12642 * jit.c (finalize_symtab): Ensure that only the global block has a
12645 2013-01-17 Pedro Alves <palves@redhat.com>
12647 * acinclude.m4: Include ../config/plugins.m4,
12648 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12649 * Makefile.in (aclocal_m4_deps): Update.
12650 * aclocal.m4: Renegerate.
12652 2013-01-16 Doug Evans <dje@google.com>
12654 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12656 2013-01-16 Pedro Alves <palves@redhat.com>
12657 Tom Tromey <tromey@redhat.com>
12660 * NEWS: Add "catch signal".
12661 * breakpoint.c (base_breakpoint_ops): No longer static.
12662 (bpstat_explains_signal): New function.
12663 (init_catchpoint): No longer static.
12664 (base_breakpoint_explains_signal): New function.
12665 (base_breakpoint_ops): Initialize new field.
12666 * breakpoint.h (enum bpstat_signal_value): New.
12667 (struct breakpoint_ops) <explains_signal>: New field.
12668 (bpstat_explains_signal): Remove macro, declare as function.
12669 (base_breakpoint_ops, init_catchpoint): Declare.
12670 * break-catch-sig.c: New file.
12671 * inferior.h (signal_catch_update): Declare.
12672 * infrun.c (signal_catch): New global.
12673 (handle_syscall_event): Update for change to
12674 bpstat_explains_signal.
12675 (handle_inferior_event): Likewise. Always handle random signals
12677 (signal_cache_update): Check signal_catch.
12678 (signal_catch_update): New function.
12679 (_initialize_infrun): Initialize signal_catch.
12680 * Makefile.in (SFILES): Add break-catch-sig.c.
12681 (COMMON_OBS): Add break-catch-sig.o.
12683 2013-01-16 Tom Tromey <tromey@redhat.com>
12685 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12686 (print_one_catch_solib, print_one_catch_syscall)
12687 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12690 2013-01-16 Yao Qi <yao@codesourcery.com>
12692 * printcmd.c (current_display_number): Make it static.
12694 2013-01-16 Yao Qi <yao@codesourcery.com>
12696 * infcmd.c (step_once): Don't check '!single_inst' as it was
12699 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12701 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12703 2013-01-14 Tom Tromey <tromey@redhat.com>
12705 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12707 * command.h (add_setshow_string_noescape_cmd): Update.
12708 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12709 (complete_set_gnutarget): New function.
12710 (_initialize_core): Set the "set gnutarget" completer.
12712 2013-01-14 Tom Tromey <tromey@redhat.com>
12715 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12716 (c_type_print_modifier): Likewise.
12717 * dwarf2read.c (read_tag_restrict_type): New function.
12718 (read_type_die_1): Handle DW_TAG_restrict_type.
12719 * gdbtypes.c (make_restrict_type): New function.
12720 (recursive_dump_type): Handle TYPE_RESTRICT.
12721 * gdbtypes.h (enum type_flag_values): Renumber.
12722 (enum type_instance_flag_value): Add
12723 TYPE_INSTANCE_FLAG_RESTRICT.
12724 (TYPE_RESTRICT): New macro.
12725 (make_restrict_type): Declare.
12727 2013-01-14 Tom Tromey <tromey@redhat.com>
12730 * psymtab.c (struct psymtab_state): New.
12731 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12733 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12734 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12736 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12737 Pedro Alves <palves@redhat.com>
12741 * remote.c (remote_threads_info): Make a copy of the reply from
12742 qfThreadInfo and use that instead of rs->buf.
12744 2013-01-14 Yao Qi <yao@codesourcery.com>
12746 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12747 (dbx_psymtab_to_symtab): Likewise.
12748 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12749 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12750 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12752 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12754 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12755 make_cleanup_restore_current_language. Call set_language. Move
12756 OLD_CHAIN and INNER_CHAIN cleanups.
12757 * utils.c (do_restore_current_language)
12758 (make_cleanup_restore_current_language): New functions.
12759 * utils.h (make_cleanup_restore_current_language): New declaration.
12761 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12763 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12764 non-existing files.
12766 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12767 non-existing files if FILENAME is already absolute.
12769 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12771 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12772 fputs_filtered. Append trailing newline.
12774 2013-01-11 Yao Qi <yao@codesourcery.com>
12775 Stan Shebs <stan@codesourcery.com>
12777 * psymtab.c (init_psymbol_list): Clarify the comment.
12779 2013-01-11 Yao Qi <yao@codesourcery.com>
12781 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12782 (update_dprintf_command_list): Assert that 'printf_line' is
12783 non-null. Remove condition check.
12785 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12788 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12790 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12792 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12794 2013-01-09 Anthony Green <green@moxielogic.com>
12796 * cp-abi.c (cplus_print_vtable): Don't return value from void
12798 * ada-lang.c (re_set_catch_assert): Ditto.
12800 2013-01-09 Doug Evans <dje@google.com>
12802 * symfile.h (quick_symbol_functions): Delete member
12803 pre_expand_symtabs_matching. All uses removed.
12804 * dwarf2read.c (dw2_lookup_symbol): Implement.
12805 (dw2_do_expand_symtabs_matching): Delete.
12806 (dw2_pre_expand_symtabs_matching): Delete.
12807 (struct dw2_symtab_iterator): New type.
12808 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12809 (dw2_expand_symtabs_for_function): Rewrite.
12810 (dwarf2_gdb_index_functions): Update.
12811 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12812 (psym_functions): Update.
12814 2013-01-09 Tom Tromey <tromey@redhat.com>
12816 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12817 * configure: Rebuild.
12818 * configure.ac: Add somread.o to the build if BFD has SOM
12820 * somread.c: Include som/aout.h, not syms.h.
12821 (som_symtab_read): Use som_external_symbol_dictionary_record.
12822 Unpack records manually.
12823 (_initialize_somread): Declare.
12825 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12827 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12828 Cast return_address to 64bits.
12830 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12832 * printcmd.c: Remove define of function output_command.
12833 * tracepoint.c: Remove extern of function output_command.
12834 * valprint.h: (output_command): New extern.
12836 2013-01-07 Tom Tromey <tromey@redhat.com>
12838 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12840 (objc_language_defn): Use c_printchar, c_printstr,
12843 2013-01-07 Tom Tromey <tromey@redhat.com>
12847 * ada-valprint.c (printstr, print_field_values): Remove
12849 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12851 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12853 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12854 * main.c (captured_main): Remove "epoch" argument.
12855 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12856 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12857 * p-valprint.c (pascal_object_print_value_fields): Remove
12859 * printcmd.c (print_command_1): Remove 'inspect' argument.
12860 (print_command, call_command): Update.
12861 (inspect_command): Remove.
12862 (_initialize_printcmd): Make "inspect" an alias for "print".
12863 * top.c (epoch_interface): Remove.
12864 * top.h (epoch_interface): Remove.
12865 * valprint.c (user_print_options): Update.
12866 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12867 * valprint.h (struct value_print_options) <inspect_it>: Remove
12870 2013-01-04 Tom Tromey <tromey@redhat.com>
12872 * valprint.h (read_string): Add 'extern'.
12874 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12876 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12877 used to decide whether to define darwin_read_dyld_info or not.
12879 2013-01-03 Pierre Muller <muller@sourceware.org>
12881 * main.c (relocate_gdb_directory): Avoid calling stat function
12884 2013-01-03 Yao Qi <yao@codesourcery.com>
12886 * psymtab.c (fixup_psymbol_section): Update declaration.
12887 (fixup_psymbol_section): Remove code returning value.
12889 2013-01-03 Yao Qi <yao@codesourcery.com>
12891 * symtab.h: Remove some out of date comments.
12892 (enum exception_event_kind): Move it ...
12893 * breakpoint.c: ... here.
12895 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12898 * darwin-nat.c (darwin_read_dyld_info): Only build if
12899 TASK_DYLD_INFO_COUNT is defined.
12900 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12901 TASK_DYLD_INFO_COUNT is defined.
12903 2013-01-02 Tom Tromey <tromey@redhat.com>
12905 * symfile.h (struct ecoff_debug_hack): Remove.
12906 * objfiles.c: Don't include mdebugread.h.
12908 2013-01-02 Tom Tromey <tromey@redhat.com>
12910 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12911 * configure.ac: Check for Mach-O support in BFD. Update
12913 * configure: Rebuild.
12915 2013-01-02 Tom Tromey <tromey@redhat.com>
12917 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12918 * configure.ac: Use GDB_AC_CHECK_BFD.
12919 * configure: Rebuild.
12921 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12923 * MAINTAINERS: Update my email.
12925 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12927 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12929 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12931 * rs6000-nat.c (bss_data_overlap): New function.
12932 (vmap_symtab): Use it to adjust the .bss section's offset.
12934 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12936 Update year range in copyright notice of all files.
12938 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12940 * top.c (print_gdb_version): Update copyright year.
12942 For older changes see ChangeLog-2012.
12948 version-control: never