1 2013-12-05 Doug Evans <xdje42@gmail.com>
3 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
5 2013-12-05 Joel Brobecker <brobecker@adacore.com>
6 Tristan Gingold <gingold@adacore.com>
8 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
9 Accept version 2. Ignore operations using opcode 6.
11 2013-12-05 Joel Brobecker <brobecker@adacore.com>
13 * ada-lex.l (find_dot_all): Fix coding style violations.
15 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
17 * NEWS: Add section for Intel(R) Architecture Instructions
18 Extesions mentioning MPX.
20 2013-12-03 Joel Brobecker <brobecker@adacore.com>
22 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
24 2013-12-03 Joel Brobecker <brobecker@adacore.com>
26 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
27 when parse_exp_1 threw an error. Add comment.
29 2013-12-03 Joel Brobecker <brobecker@adacore.com>
31 * NEWS: Mention "-list-features" in the entry documenting
32 the support for the "--language" option.
34 2013-12-03 Tom Tromey <tromey@redhat.com>
35 Jan Kratochvil <jan.kratochvil@redhat.com>
36 Doug Evans <dje@google.com>
37 Samuel Bronson <naesten@gmail.com>
39 Bring back gdb-add-index as a contrib script.
40 * contrib/gdb-add-index.sh: New file.
41 * NEWS: Note the addition.
43 2013-12-03 Samuel Bronson <naesten@gmail.com>
45 * MAINTAINERS (Write After Approval): Add myself to the list.
47 2013-12-03 Joel Brobecker <brobecker@adacore.com>
49 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
51 2013-12-03 Joel Brobecker <brobecker@adacore.com>
53 * mi/mi-main.c: Remove trailing spaces throughout.
55 2013-12-03 Pedro Alves <palves@redhat.com>
56 Joel Brobecker <brobecker@adacore.com>
58 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
59 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
60 of a regular error when the GDB/MI command does not exist.
61 * mi/mi-main.c (mi_cmd_list_features): Add
62 "undefined-command-error-code".
63 (mi_print_exception): Print an "undefined-command"
64 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
65 * NEWS: Add entry documenting the new "code" variable in
66 "^error" result records.
68 2013-12-03 Joel Brobecker <brobecker@adacore.com>
70 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
71 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
72 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
73 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
74 field to output of "-list-features".
76 * NEWS: Add entry for new -info-gdb-mi-command.
78 2013-12-02 Doug Evans <dje@google.com>
79 Jan Kratochvil <jan.kratochvil@redhat.com>
81 * objfiles.c (allocate_objfile): Save original_name as an absolute
83 * objfiles.h (struct objfile): Expand comment on original_name.
84 * source.c (openp): Call gdb_abspath.
85 * utils.c (gdb_abspath): New function.
86 * utils.h (gdb_abspath): Declare.
88 2013-12-02 Pedro Alves <palves@redhat.com>
90 * dcache.c (dcache_read_line): Use target_read_raw_memory.
91 * target.c (target_read_raw_memory): New function.
92 (target_read_stack, target_write_memory, target_write_raw_memory):
94 (target_read_code): Add comment.
95 * target.h (target_read_raw_memory): Declare.
97 2013-12-02 Pedro Alves <palves@redhat.com>
99 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
102 2013-12-02 Pedro Alves <pedro@codesourcery.com>
103 Maciej W. Rozycki <macro@codesourcery.com>
105 * remote.c (putpkt_for_catch_errors): Remove function.
106 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
109 2013-12-02 Pedro Alves <palves@redhat.com>
112 * remote-notif.c (handle_notification): Return early if no
113 notification is found.
115 2013-12-02 Joel Brobecker <brobecker@adacore.com>
117 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
120 2013-12-02 Joel Brobecker <brobecker@adacore.com>
122 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
124 2013-12-02 Joel Brobecker <brobecker@adacore.com>
126 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
127 * ctf.c (ctf_start): Remove obsolete comment.
129 2013-12-02 Joel Brobecker <brobecker@adacore.com>
131 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
133 2013-11-30 Doug Evans <xdje42@gmail.com>
135 * auto-load.h (script_language): New members name, auto_load_enabled.
136 Add missing comments on struct members.
137 (auto_load_objfile_script): Delete.
138 * auto-load.c: #include "cli/cli-cmds.h".
139 (auto_load_gdb_scripts_enabled): New function.
140 (script_language_gdb): Update, add new members.
141 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
142 and call to maybe_add_script moved to caller.
143 (auto_load_objfile_script_1): Auto-load safe-checking and
144 call to maybe_add_script moved here.
145 (auto_load_objfile_script): Make static. Early exit if support for
146 scripting language hasn't been compiled in, or auto-loading has been
148 (source_section_scripts): Argument "source_name" renamed to
149 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
150 with section_name. Skip loading script if support for scripting
151 language hasn't been compiled in, or auto-loading has been disabled.
152 Call language->source_script_for_objfile instead of calling
153 source_python_script_for_objfile directly.
154 (load_auto_scripts_for_objfile): Update.
155 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
156 (gdbpy_load_auto_script_for_objfile): Delete.
157 (auto_load_python_scripts_enabled): New function.
158 (script_language_python): Update, add new members.
159 (gdbpy_script_language_defn): New function.
160 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
161 (gdbpy_script_language_defn): Declare.
163 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
164 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
165 (source_section_scripts): Moved here from py-auto-load.c.
166 (auto_load_section_scripts): Ditto.
167 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
168 auto-load.c, renamed AUTO_SECTION_NAME.
169 (source_section_scripts, auto_load_section_scripts): Moved to
172 2013-11-30 Yao Qi <yao@codesourcery.com>
174 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
176 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
178 * gdbarch.sh: Remove include of "gdb_string.h", replace by
181 2013-11-29 Doug Evans <xdje42@gmail.com>
183 * python/py-auto-load.c (source_section_scripts): Move comment to
184 more relevant location.
187 * python/py-breakpoint.c: Remove trailing whitespace.
188 * python/py-cmd.c: Ditto.
189 * python/py-evts.c: Ditto.
190 * python/py-finishbreakpoint.c: Ditto.
191 * python/py-frame.c: Ditto.
192 * python/py-function.c: Ditto.
193 * python/py-inferior.c: Ditto.
194 * python/py-infthread.c: Ditto.
195 * python/py-param.c: Ditto.
196 * python/py-prettyprint.c: Ditto.
197 * python/py-symbol.c: Ditto.
198 * python/py-type.c: Ditto.
199 * python/py-utils.c: Ditto.
200 * python/py-value.c: Ditto.
201 * python/python-internal.h: Ditto.
202 * python/python.c: Ditto.
204 2013-11-29 Pedro Alves <palves@redhat.com>
206 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
208 2013-11-29 Pedro Alves <palves@redhat.com>
210 * breakpoint.c (build_target_condition_list): Release previous
212 (build_target_command_list): Release previous commands.
213 (bp_location_dtor): Release target conditions and commands.
214 * remote.c (remote_add_target_side_condition): Don't release
216 (remote_add_target_side_commands): Don't release commands.
218 2013-11-29 Yao Qi <yao@codesourcery.com>
219 Pedro Alves <palves@redhat.com>
221 * dcache.c (dcache_read_line): Use current_target.beneath
222 instead of ¤t_target.
223 * target.c (memory_xfer_partial_1): Factor code out to ...
224 (raw_memory_xfer_partial): ... it. New function.
225 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
226 is TARGET_OBJECT_RAW_MEMORY.
228 2013-11-28 Doug Evans <xdje42@gmail.com>
230 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
231 breakpoint_object. All uses updated.
232 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
233 breakpoint_object. All uses updated.
234 * python.c (*): All uses of breakpoint_object updated.
235 * python.h (*): All uses of breakpoint_object updated.
236 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
237 * python/py-finishbreakpoint.c (*): Ditto.
239 2013-11-28 Doug Evans <xdje42@gmail.com>
241 * configure.ac: Add comments delineating libpython and libmcheck.
242 * configure: Regenerate.
244 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
245 Pedro Alves <palves@redhat.com>
247 * valprint.c (value_check_printable): If the value is entirely
248 unavailable, print a single "<unavailable>" instead of printing
251 2013-11-28 Pedro Alves <palves@redhat.com>
253 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
254 Add "set debug frame" output.
255 (frame_stop_reason_symbol_string): New function.
257 2013-11-28 Pedro Alves <palves@redhat.com>
259 * frame-unwind.c (default_frame_unwind_stop_reason): Return
260 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
261 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
263 2013-11-28 Pedro Alves <palves@redhat.com>
265 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
266 set the unwind stop reason to UNWIND_OUTERMOST, not
267 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
269 2013-11-28 Pedro Alves <palves@redhat.com>
271 * frame.c (frame_unwind_register): Say the register was "not
272 saved" instead of "optimized out".
274 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
277 * configure: Rebuild.
278 * configure.ac: Tighten cygwin detection check.
280 2013-11-27 Pedro Alves <palves@redhat.com>
282 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
283 register in the previous frame's arch.
285 2013-11-27 Pedro Alves <palves@redhat.com>
287 * frame-unwind.c (frame_unwind_got_optimized): Return
288 an lval_register value instead of a not_lval value.
290 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
292 * frame.c: Include "valprint.h".
293 (frame_unwind_register_value): Use value_optimized_out.
294 * value.c (value_fetch_lazy): Likewise.
296 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
298 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
300 2013-11-26 Tom Tromey <tromey@redhat.com>
302 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
305 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
307 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
308 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
309 (HAS_MPX): New macro.
310 (HAS_AVX): New macro.
311 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
313 2013-11-25 Keith Seitz <keiths@redhat.com>
316 * c-exp.y (classify_inner_name): If no matching symbol was
317 found, try looking up the token as a base class.
318 Likewise if a constructor was found.
319 * cp-namespace.c (find_type_baseclass_by_name): New function.
320 * cp-support.h (find_type_baseclass_by_name): Declare.
321 * valops.c (value_struct_elt_for_reference): If we get
322 a non-static field, try to get a value based on the
323 current instance, if any.
325 2013-11-24 Yao Qi <yao@codesourcery.com>
327 * disasm.c (dis_asm_read_memory): Call target_read_code
328 instead of target_read_memory.
330 2013-11-24 Yao Qi <yao@codesourcery.com>
332 * NEWS: Add note on new "set code-cache" option.
333 * target-dcache.c (code_cache_enabled_1): New variable.
334 (code_cache_enabled): New variable.
335 (show_code_cache, set_code_cache): New function.
336 (code_cache_enabled_p): New function.
337 (_initialize_target_dcache): Register command.
338 * target-dcache.h (code_cache_enabled_p): Declare.
339 * target.c (memory_xfer_partial_1):Handle
340 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
341 (target_read_code): New function.
342 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
344 (target_read_code): Declare.
346 2013-11-24 Yao Qi <yao@codesourcery.com>
348 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
349 (stack_cache_enabled_1): ... this. New variable.
350 (stack_cache_enabled_p): Rename to ...
351 (stack_cache_enabled): ... this. New variable.
352 (set_stack_cache_enabled_p): Rename to ...
353 (set_stack_cache): ... this. Update caller.
354 (show_stack_cache_enabled_p): Rename to ...
355 (show_stack_cache): ... this. Update caller.
356 (stack_cache_enabled): Rename to ...
357 (stack_cache_enabled_p): ... this. Update caller.
358 (_initialize_target_dcache): Replace "data cache" with
359 "target memory cache".
360 * target-dcache.h (stack_cache_enabled): Remove declaration.
361 (stack_cache_enabled_p): Add declaration.
363 2013-11-23 Doug Evans <xdje42@gmail.com>
365 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
368 2013-11-23 Doug Evans <xdje42@gmail.com>
370 * python/py-frame.c (frapy_block): Fix error message text.
372 2013-11-23 Doug Evans <xdje42@gmail.com>
374 * cli/cli-script.c (multi_line_command_p): New function.
375 (recurse_read_control_structure, read_command_lines_1): Call it.
376 (execute_control_command): Consistently have a blank line between
379 2013-11-22 Sterling Augustine <saugustine@google.com>
382 * valprint.c (read_string): Set new variable fetchlen based on
383 fetchlimit and size. Use it in call to partial_memory_read.
386 2013-11-22 Tom Tromey <tromey@redhat.com>
389 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
390 the return address column is unspecified.
392 2013-11-22 Tom Tromey <tromey@redhat.com>
393 Pedro Alves <palves@redhat.com>
396 * value.c (value_fetch_lazy): Internal error if
397 get_frame_register_value returns the same register.
399 2013-11-22 Pedro Alves <palves@redhat.com>
400 Tom Tromey <tromey@redhat.com>
402 * frame.c (frame_stash_add): Now returns whether a frame with the
403 same ID was already known.
404 (compute_frame_id): New function, factored out from get_frame_id.
405 (get_frame_id): No longer lazilly compute the frame id here.
406 (get_prev_frame_if_no_cycle): New function. Detects wider stack
408 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
409 and checking for stack cycles here.
411 2013-11-22 Pedro Alves <palves@redhat.com>
414 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
415 this frame and the new previous frame, not between this frame and
418 2013-11-22 Pedro Alves <palves@redhat.com>
421 * dwarf2-frame.c (struct dwarf2_frame_cache)
422 <checked_tailcall_bottom, entry_cfa_sp_offset,
423 entry_cfa_sp_offset_p>: New fields.
424 (dwarf2_frame_cache): Adjust to use the new cache fields instead
425 of locals. Don't call dwarf2_tailcall_sniffer_first here.
426 (dwarf2_frame_prev_register): Call it here, but only once.
428 2013-11-21 Doug Evans <xdje42@gmail.com>
430 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
431 (type_equality_entry): Move here from python/py-type.c.
432 (type_equality_entry_d): Ditto.
433 (compare_maybe_null_strings, check_types_equal): Ditto.
434 (check_types_worklist, types_deeply_equal): Ditto.
435 * gdbtypes.h (types_deeply_equal): Declare.
436 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
437 (typy_richcompare): Update.
439 2013-11-20 Joel Brobecker <brobecker@adacore.com>
441 * python/py-value.c (is_intlike): Delete.
442 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
443 by use of is_integral_type.
444 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
445 by use of is_integral_type and check for TYPE_CODE_PTR.
447 2013-11-20 Tom Tromey <tromey@redhat.com>
449 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
451 * gnulib/aclocal.m4: Update.
452 * gnulib/config.in: Update.
453 * gnulib/configure: Update.
454 * gnulib/import/Makefile.am: Update.
455 * gnulib/import/Makefile.in: Update.
456 * gnulib/import/errno.in.h: Remove.
457 * gnulib/import/intprops.h: Remove.
458 * gnulib/import/m4/errno_h.m4: Remove.
459 * gnulib/import/m4/gnulib-cache.m4: Update.
460 * gnulib/import/m4/gnulib-comp.m4: Update.
461 * gnulib/import/m4/strerror.m4: Remove.
462 * gnulib/import/m4/sys_socket_h.m4: Remove.
463 * gnulib/import/strerror-override.c: Remove.
464 * gnulib/import/strerror-override.h: Remove.
465 * gnulib/import/strerror.c: Remove.
466 * gnulib/update-gnulib.sh: Update.
468 2013-11-20 Yao Qi <yao@codesourcery.com>
470 * target-dcache.c (target_dcache_get_or_init): Call
471 set_address_space_data if 'dcache' is NULL.
473 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
475 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
477 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
479 * python/lib/gdb/command/bound_register.py: New file.
480 * data-directory/Makefile.in: Copy bond_register.py to the right path
481 to be initialized at gdb startup.
483 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
485 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
487 (amd64_linux_read_description): Add initialization for MPX and
489 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
490 (amd64_linux_gregset_reg_offset): Add MPX registers.
491 (amd64_linux_core_read_description): Add initialization for MPX
493 (_initialize_amd64_linux_tdep): Initialize MPX targets.
494 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
495 register on the list.
496 (tdesc_amd64_mpx_linux) Add new target for MPX.
497 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
498 (amd64_mpx_names): MPX register names.
499 (amd64_init_abi): Add MPX register while initializing the ABI.
500 (_initialize_amd64_tdep): Initialize MPX targets.
501 * amd64-tdep.h (amd64_regnum): Add MPX registers.
502 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
504 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
506 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
507 registers on the range of registers to be read from
509 (i386_linux_read_description): Add case for MPX.
510 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
511 (i386_linux_gregset_reg_offset): Add MPX registers.
512 (i386_linux_core_read_description): Initialize also MPX.
513 (_initialize_i386_linux_tdep): Add mpx initialization.
514 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
516 (i386_regnum): Add MPX registers.
517 (I386_MPX_NUM_REGS): New macro.
518 (i386_bnd_regnum_p): New function.
519 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
520 number of registers to be the number of BNDSTATUS.
521 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
522 * i386-tdep.c: Include features/i386/i386-mpx.c.
523 (i386_mpx_names): Add MPX register names array.
524 (i386_bnd_names): Add bnd pseudo register names array.
525 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
527 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
528 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
530 (i386_bnd_type): New function.
531 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
533 (i386_pseudo_register_read_into_value): Add bnd case.
534 (i386_pseudo_register_write): Add bnd pseudo registers.
535 (i386_register_reggroup_p): Add MPX register to the group all.
536 (i386_validate_tdesc_p): Add MPX to the target description
538 (i386_pseudo_register_name): Add bnd pseudo registers.
539 (i386_gdbarch_init): Add MPX for architecture initialization.
540 (_initia_initialize_i386_tdep): Add mpx initialization.
541 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
543 (XSAVE_MPX_ADDR): New macro.
544 (i387_supply_xsave): Add MPX case.
545 (i387_collect_xsave): Add MPX case.
546 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
547 (I387_BNDCFGU_REGNUM): New macro.
548 (I387_NUM_MPX_REGS): New macro.
549 (I387_NUM_BND_REGS): New macro.
550 (I387_NUM_MPX_CTRL_REGS): New macro.
551 (I387_MPXEND_REGNUM): New macro.
552 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
553 (I386_XSTATE_BNDCFG): Likewise.
554 (I386_XSTATE_MPX_MASK): Likewise.
555 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
556 (I386_XSTATE_BNDREGS_SIZE): New macro.
557 (I386_XSTATE_BNDCFG_SIZE): Likewise.
558 (I386_XSTATE_SIZE): Adapt for MPX.
559 (I386_XSTATE_MAX_SIZE): Likewise.
561 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
563 * features/i386/Makefile: Adapts for using MPX registers.
564 * features/i386/32bit-mpx.xml: New file.
565 * features/i386/64bit-mpx.xml: Likewise.
566 * features/i386/amd64-mpx-linux.c: Likewise.
567 * features/i386/amd64-mpx-linux.xml: Likewise.
568 * features/i386/amd64-mpx.c: Likewise.
569 * features/i386/amd64-mpx.xml: Likewise.
570 * features/i386/i386-mpx-linux.c: Likewise.
571 * features/i386/i386-mpx-linux.xml: Likewise.
572 * features/i386/i386-mpx.c: Likewise.
573 * features/i386/i386-mpx.xml: Likewise.
574 * regformats/i386/amd64-mpx-linux.dat: New file.
575 * regformats/i386/amd64-mpx.dat: Likewise.
576 * regformats/i386/i386-mpx-linux.dat: Likewise.
577 * regformats/i386/i386-mpx.dat: Likewise.
579 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
581 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
582 Modified logic of creating a bitfield to be in sync with
585 2013-11-20 Will Newton <will.newton@linaro.org>
587 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
590 2013-11-20 Yao Qi <yao@codesourcery.com>
592 * progspace.h (struct address_space_data): Declare.
593 * target-dcache.c: Include "progspace.h".
594 (target_dache): Remove.
595 (target_dcache_aspace_key): New.
596 (target_dcache_cleanup): New function.
597 (target_dcache_init_p): Get data through
598 target_dcache_aspace_key.
599 (target_dcache_invalidate): Likewise.
600 (target_dcache_get): Likewise.
601 (target_dcache_get_or_init): Likewise.
602 (_initialize_target_dcache): Initialize
603 target_dcache_aspace_key.
605 2013-11-20 Yao Qi <yao@codesourcery.com>
607 * progspace.c (struct address_space): Update comments.
608 <REGISTRY_FIELDS>: New fields.
609 DEFINE_REGISTRY for address_space.
610 (new_address_space): Call address_space_alloc_data.
611 (free_address_space): Call address_space_free_data.
612 * progspace.h: Use DECLARE_REGISTRY.
614 2013-11-20 Yao Qi <yao@codesourcery.com>
616 * Makefile.in (SFILES):Add target-dcache.c.
617 (HFILES_NO_SRCDIR): Add target-dcache.h.
618 (COMMON_OBS): Add target-dcache.o.
619 * dcache.c: Remove inclusion to "target.h". Include
621 * memattr.c: Include "target-dcache.h".
623 * tracepoint.c: Likewise.
624 * target.c: (stack_cache_enabled_p_1): Move to
626 (stack_cache_enabled_p): Likewise.
627 (set_stack_cache_enabled_p): Likewise.
628 (show_stack_cache_enabled_p): Likewise.
629 (target_dcache, target_dcache_init_p): Likewise.
630 (target_dcache_invalidate): Likewise.
631 (target_dcache_get, target_dcache_get_or_init): Likewise.
632 (memory_xfer_partial_1): Call function stack_cache_enabled.
633 (initialize_target): Move code to target-dcache.c.
634 * target.h (target_dcache_invalidate): Move to
636 (target_dcache_get): Likewise.
637 * target-dcache.c: New.
638 * target-dcache.h: New.
640 2013-11-20 Yao Qi <yao@codesourcery.com>
642 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
645 2013-11-20 Yao Qi <yao@codesourcery.com>
647 * dcache.c (last_cache): Remove.
648 (dcache_free, dcache_init): Update.
650 (dcache_print_line): Add parameter 'dcache'. Replace
651 'target_dcache' with 'dcache'.
652 (dcache_info): Move code to dcache_info_1. Call
654 (dcache_info_1): New function.
655 (set_dcache_size): Call target_dcache_invalidate.
656 (set_dcache_line_size): Call target_dcache_invalidate.
657 * target.c (target_dcache_init_p): New function.
658 (target_dcache_invalidate): Check target_dcache_init_p first.
659 (target_dcache_get, target_dcache_get_or_init): New function.
660 (memory_xfer_partial_1): Adjust.
661 (initialize_target): Don't initialize 'target_dcache'.
662 * target.h (struct dcache_struct): Declare.
663 (target_dcache_get): Declare.
665 2013-11-19 Yao Qi <yao@codesourcery.com>
667 * varobj.c (varobj_get_type): Fix typo.
669 2013-11-19 Joel Brobecker <brobecker@adacore.com>
671 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
673 2013-11-19 Joel Brobecker <brobecker@adacore.com>
675 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
678 2013-11-18 Tom Tromey <tromey@redhat.com>
680 * common/gdb_stat.h: Remove.
681 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
682 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
683 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
684 * corefile.c: Use sys/stat.h, not gdb_stat.h.
685 * ctf.c: Use sys/stat.h, not gdb_stat.h.
686 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
687 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
688 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
689 * exec.c: Use sys/stat.h, not gdb_stat.h.
690 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
691 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
692 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
693 * jit.c: Use sys/stat.h, not gdb_stat.h.
694 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
695 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
696 * main.c: Use sys/stat.h, not gdb_stat.h.
697 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
698 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
699 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
700 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
701 * procfs.c: Use sys/stat.h, not gdb_stat.h.
702 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
703 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
704 * remote.c: Use sys/stat.h, not gdb_stat.h.
705 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
706 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
707 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
708 * source.c: Use sys/stat.h, not gdb_stat.h.
709 * symfile.c: Use sys/stat.h, not gdb_stat.h.
710 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
711 * symtab.c: Use sys/stat.h, not gdb_stat.h.
712 * top.c: Use sys/stat.h, not gdb_stat.h.
713 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
715 2013-11-18 Tom Tromey <tromey@redhat.com>
717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
719 * gnulib/aclocal.m4: Update.
720 * gnulib/config.in: Update.
721 * gnulib/configure: Update.
722 * gnulib/import/Makefile.am: Update.
723 * gnulib/import/Makefile.in: Update.
724 * gnulib/import/m4/gnulib-cache.m4: Update.
725 * gnulib/import/m4/gnulib-comp.m4: Update.
726 * gnulib/import/m4/sys_stat_h.m4: New.
727 * gnulib/import/m4/time_h.m4: New.
728 * gnulib/import/sys_stat.in.h: New.
729 * gnulib/import/time.in.h: New.
731 2013-11-18 Tom Tromey <tromey@redhat.com>
733 * configure: Rebuild.
734 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
736 2013-11-18 Tom Tromey <tromey@redhat.com>
738 * configure: Rebuild.
739 * configure.ac: Don't check for unistd.h.
741 2013-11-18 Tom Tromey <tromey@redhat.com>
743 * configure: Rebuild.
744 * configure.ac: Don't check for stdlib.h
745 * defs.h: Include stdlib.h unconditionally.
747 2013-11-18 Tom Tromey <tromey@redhat.com>
749 * config.in: Rebuild.
750 * configure: Rebuild.
751 * configure.ac: Don't check for stddef.h.
752 * defs.h: Unconditionally include stddef.h. Remove duplicate
755 2013-11-18 Tom Tromey <tromey@redhat.com>
757 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
758 * common/gdb_dirent.h: Remove.
759 * common/filestuff.c: Use dirent.h.
760 * common/linux-osdata.c: Use dirent.h.
762 * config.in: Rebuild.
763 * configure: Rebuild.
764 * configure.ac: Don't use AC_HEADER_DIRENT.
765 * linux-fork.c: Use dirent.h
766 * linux-nat.c: Use dirent.h.
767 * nto-procfs.c: Use dirent.h.
768 * procfs.c: Use dirent.h.
770 2013-11-18 Tom Tromey <tromey@redhat.com>
772 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
773 * gnulib/aclocal.m4: Update.
774 * gnulib/config.in: Update.
775 * gnulib/configure: Update.
776 * gnulib/import/Makefile.am: Update.
777 * gnulib/import/Makefile.in: Update.
778 * gnulib/import/dirent.in.h: New.
779 * gnulib/import/m4/dirent_h.m4: New.
780 * gnulib/import/m4/gnulib-cache.m4: Update.
781 * gnulib/import/m4/gnulib-comp.m4: Update.
783 2013-11-18 Tom Tromey <tromey@redhat.com>
785 * configure: Rebuild.
786 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
789 2013-11-18 Tom Tromey <tromey@redhat.com>
791 * common/gdb_string.h: Remove.
792 * aarch64-tdep.c: Use string.h, not gdb_string.h.
793 * ada-exp.y: Use string.h, not gdb_string.h.
794 * ada-lang.c: Use string.h, not gdb_string.h.
795 * ada-lex.l: Use string.h, not gdb_string.h.
796 * ada-typeprint.c: Use string.h, not gdb_string.h.
797 * ada-valprint.c: Use string.h, not gdb_string.h.
798 * aix-thread.c: Use string.h, not gdb_string.h.
799 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
800 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
801 * alpha-nat.c: Use string.h, not gdb_string.h.
802 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
803 * alpha-tdep.c: Use string.h, not gdb_string.h.
804 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
805 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
806 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
807 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
808 * amd64-nat.c: Use string.h, not gdb_string.h.
809 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
810 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
811 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
812 * arch-utils.c: Use string.h, not gdb_string.h.
813 * arm-linux-nat.c: Use string.h, not gdb_string.h.
814 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
815 * arm-tdep.c: Use string.h, not gdb_string.h.
816 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
817 * armbsd-tdep.c: Use string.h, not gdb_string.h.
818 * armnbsd-nat.c: Use string.h, not gdb_string.h.
819 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
820 * armobsd-tdep.c: Use string.h, not gdb_string.h.
821 * avr-tdep.c: Use string.h, not gdb_string.h.
822 * ax-gdb.c: Use string.h, not gdb_string.h.
823 * ax-general.c: Use string.h, not gdb_string.h.
824 * bcache.c: Use string.h, not gdb_string.h.
825 * bfin-tdep.c: Use string.h, not gdb_string.h.
826 * breakpoint.c: Use string.h, not gdb_string.h.
827 * build-id.c: Use string.h, not gdb_string.h.
828 * buildsym.c: Use string.h, not gdb_string.h.
829 * c-exp.y: Use string.h, not gdb_string.h.
830 * c-lang.c: Use string.h, not gdb_string.h.
831 * c-typeprint.c: Use string.h, not gdb_string.h.
832 * c-valprint.c: Use string.h, not gdb_string.h.
833 * charset.c: Use string.h, not gdb_string.h.
834 * cli-out.c: Use string.h, not gdb_string.h.
835 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
836 * cli/cli-decode.c: Use string.h, not gdb_string.h.
837 * cli/cli-dump.c: Use string.h, not gdb_string.h.
838 * cli/cli-interp.c: Use string.h, not gdb_string.h.
839 * cli/cli-logging.c: Use string.h, not gdb_string.h.
840 * cli/cli-script.c: Use string.h, not gdb_string.h.
841 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
842 * cli/cli-utils.c: Use string.h, not gdb_string.h.
843 * coffread.c: Use string.h, not gdb_string.h.
844 * common/common-utils.c: Use string.h, not gdb_string.h.
845 * common/filestuff.c: Use string.h, not gdb_string.h.
846 * common/linux-procfs.c: Use string.h, not gdb_string.h.
847 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
848 * common/signals.c: Use string.h, not gdb_string.h.
849 * common/vec.h: Use string.h, not gdb_string.h.
850 * core-regset.c: Use string.h, not gdb_string.h.
851 * corefile.c: Use string.h, not gdb_string.h.
852 * corelow.c: Use string.h, not gdb_string.h.
853 * cp-abi.c: Use string.h, not gdb_string.h.
854 * cp-support.c: Use string.h, not gdb_string.h.
855 * cp-valprint.c: Use string.h, not gdb_string.h.
856 * cris-tdep.c: Use string.h, not gdb_string.h.
857 * d-lang.c: Use string.h, not gdb_string.h.
858 * dbxread.c: Use string.h, not gdb_string.h.
859 * dcache.c: Use string.h, not gdb_string.h.
860 * demangle.c: Use string.h, not gdb_string.h.
861 * dicos-tdep.c: Use string.h, not gdb_string.h.
862 * disasm.c: Use string.h, not gdb_string.h.
863 * doublest.c: Use string.h, not gdb_string.h.
864 * dsrec.c: Use string.h, not gdb_string.h.
865 * dummy-frame.c: Use string.h, not gdb_string.h.
866 * dwarf2-frame.c: Use string.h, not gdb_string.h.
867 * dwarf2loc.c: Use string.h, not gdb_string.h.
868 * dwarf2read.c: Use string.h, not gdb_string.h.
869 * elfread.c: Use string.h, not gdb_string.h.
870 * environ.c: Use string.h, not gdb_string.h.
871 * eval.c: Use string.h, not gdb_string.h.
872 * event-loop.c: Use string.h, not gdb_string.h.
873 * exceptions.c: Use string.h, not gdb_string.h.
874 * exec.c: Use string.h, not gdb_string.h.
875 * expprint.c: Use string.h, not gdb_string.h.
876 * f-exp.y: Use string.h, not gdb_string.h.
877 * f-lang.c: Use string.h, not gdb_string.h.
878 * f-typeprint.c: Use string.h, not gdb_string.h.
879 * f-valprint.c: Use string.h, not gdb_string.h.
880 * fbsd-nat.c: Use string.h, not gdb_string.h.
881 * findcmd.c: Use string.h, not gdb_string.h.
882 * findvar.c: Use string.h, not gdb_string.h.
883 * fork-child.c: Use string.h, not gdb_string.h.
884 * frame.c: Use string.h, not gdb_string.h.
885 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
886 * frv-tdep.c: Use string.h, not gdb_string.h.
887 * gdb.c: Use string.h, not gdb_string.h.
888 * gdb_bfd.c: Use string.h, not gdb_string.h.
889 * gdbarch.c: Use string.h, not gdb_string.h.
890 * gdbtypes.c: Use string.h, not gdb_string.h.
891 * gnu-nat.c: Use string.h, not gdb_string.h.
892 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
893 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
894 * go-exp.y: Use string.h, not gdb_string.h.
895 * go-lang.c: Use string.h, not gdb_string.h.
896 * go32-nat.c: Use string.h, not gdb_string.h.
897 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
898 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
899 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
900 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
901 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
902 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
903 * i386-linux-nat.c: Use string.h, not gdb_string.h.
904 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
905 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
906 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
907 * i386-tdep.c: Use string.h, not gdb_string.h.
908 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
909 * i386gnu-nat.c: Use string.h, not gdb_string.h.
910 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
911 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
912 * i387-tdep.c: Use string.h, not gdb_string.h.
913 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
914 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
915 * inf-child.c: Use string.h, not gdb_string.h.
916 * inf-ptrace.c: Use string.h, not gdb_string.h.
917 * inf-ttrace.c: Use string.h, not gdb_string.h.
918 * infcall.c: Use string.h, not gdb_string.h.
919 * infcmd.c: Use string.h, not gdb_string.h.
920 * inflow.c: Use string.h, not gdb_string.h.
921 * infrun.c: Use string.h, not gdb_string.h.
922 * interps.c: Use string.h, not gdb_string.h.
923 * iq2000-tdep.c: Use string.h, not gdb_string.h.
924 * irix5-nat.c: Use string.h, not gdb_string.h.
925 * jv-exp.y: Use string.h, not gdb_string.h.
926 * jv-lang.c: Use string.h, not gdb_string.h.
927 * jv-typeprint.c: Use string.h, not gdb_string.h.
928 * jv-valprint.c: Use string.h, not gdb_string.h.
929 * language.c: Use string.h, not gdb_string.h.
930 * linux-fork.c: Use string.h, not gdb_string.h.
931 * linux-nat.c: Use string.h, not gdb_string.h.
932 * lm32-tdep.c: Use string.h, not gdb_string.h.
933 * m2-exp.y: Use string.h, not gdb_string.h.
934 * m2-typeprint.c: Use string.h, not gdb_string.h.
935 * m32c-tdep.c: Use string.h, not gdb_string.h.
936 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
937 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
938 * m32r-rom.c: Use string.h, not gdb_string.h.
939 * m32r-tdep.c: Use string.h, not gdb_string.h.
940 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
941 * m68k-tdep.c: Use string.h, not gdb_string.h.
942 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
943 * m68klinux-nat.c: Use string.h, not gdb_string.h.
944 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
945 * m88k-tdep.c: Use string.h, not gdb_string.h.
946 * macrocmd.c: Use string.h, not gdb_string.h.
947 * main.c: Use string.h, not gdb_string.h.
948 * mdebugread.c: Use string.h, not gdb_string.h.
949 * mem-break.c: Use string.h, not gdb_string.h.
950 * memattr.c: Use string.h, not gdb_string.h.
951 * memory-map.c: Use string.h, not gdb_string.h.
952 * mep-tdep.c: Use string.h, not gdb_string.h.
953 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
954 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
955 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
956 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
957 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
958 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
959 * mi/mi-console.c: Use string.h, not gdb_string.h.
960 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
961 * mi/mi-interp.c: Use string.h, not gdb_string.h.
962 * mi/mi-main.c: Use string.h, not gdb_string.h.
963 * mi/mi-parse.c: Use string.h, not gdb_string.h.
964 * microblaze-rom.c: Use string.h, not gdb_string.h.
965 * microblaze-tdep.c: Use string.h, not gdb_string.h.
966 * mingw-hdep.c: Use string.h, not gdb_string.h.
967 * minidebug.c: Use string.h, not gdb_string.h.
968 * minsyms.c: Use string.h, not gdb_string.h.
969 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
970 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
971 * mips-tdep.c: Use string.h, not gdb_string.h.
972 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
973 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
974 * mipsread.c: Use string.h, not gdb_string.h.
975 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
976 * mn10300-tdep.c: Use string.h, not gdb_string.h.
977 * monitor.c: Use string.h, not gdb_string.h.
978 * moxie-tdep.c: Use string.h, not gdb_string.h.
979 * mt-tdep.c: Use string.h, not gdb_string.h.
980 * nbsd-tdep.c: Use string.h, not gdb_string.h.
981 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
982 * nto-procfs.c: Use string.h, not gdb_string.h.
983 * nto-tdep.c: Use string.h, not gdb_string.h.
984 * objc-lang.c: Use string.h, not gdb_string.h.
985 * objfiles.c: Use string.h, not gdb_string.h.
986 * opencl-lang.c: Use string.h, not gdb_string.h.
987 * osabi.c: Use string.h, not gdb_string.h.
988 * osdata.c: Use string.h, not gdb_string.h.
989 * p-exp.y: Use string.h, not gdb_string.h.
990 * p-lang.c: Use string.h, not gdb_string.h.
991 * p-typeprint.c: Use string.h, not gdb_string.h.
992 * parse.c: Use string.h, not gdb_string.h.
993 * posix-hdep.c: Use string.h, not gdb_string.h.
994 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
995 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
996 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
997 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
998 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
999 * printcmd.c: Use string.h, not gdb_string.h.
1000 * procfs.c: Use string.h, not gdb_string.h.
1001 * prologue-value.c: Use string.h, not gdb_string.h.
1002 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1003 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1004 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1005 * regcache.c: Use string.h, not gdb_string.h.
1006 * registry.c: Use string.h, not gdb_string.h.
1007 * remote-fileio.c: Use string.h, not gdb_string.h.
1008 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1009 * remote-mips.c: Use string.h, not gdb_string.h.
1010 * remote-sim.c: Use string.h, not gdb_string.h.
1011 * remote.c: Use string.h, not gdb_string.h.
1012 * reverse.c: Use string.h, not gdb_string.h.
1013 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1014 * ser-base.c: Use string.h, not gdb_string.h.
1015 * ser-go32.c: Use string.h, not gdb_string.h.
1016 * ser-mingw.c: Use string.h, not gdb_string.h.
1017 * ser-pipe.c: Use string.h, not gdb_string.h.
1018 * ser-tcp.c: Use string.h, not gdb_string.h.
1019 * ser-unix.c: Use string.h, not gdb_string.h.
1020 * serial.c: Use string.h, not gdb_string.h.
1021 * sh-tdep.c: Use string.h, not gdb_string.h.
1022 * sh64-tdep.c: Use string.h, not gdb_string.h.
1023 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1024 * skip.c: Use string.h, not gdb_string.h.
1025 * sol-thread.c: Use string.h, not gdb_string.h.
1026 * solib-dsbt.c: Use string.h, not gdb_string.h.
1027 * solib-frv.c: Use string.h, not gdb_string.h.
1028 * solib-osf.c: Use string.h, not gdb_string.h.
1029 * solib-spu.c: Use string.h, not gdb_string.h.
1030 * solib-target.c: Use string.h, not gdb_string.h.
1031 * solib.c: Use string.h, not gdb_string.h.
1032 * somread.c: Use string.h, not gdb_string.h.
1033 * source.c: Use string.h, not gdb_string.h.
1034 * sparc-nat.c: Use string.h, not gdb_string.h.
1035 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1036 * sparc-tdep.c: Use string.h, not gdb_string.h.
1037 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1038 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1039 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1040 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1041 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1042 * spu-multiarch.c: Use string.h, not gdb_string.h.
1043 * spu-tdep.c: Use string.h, not gdb_string.h.
1044 * stabsread.c: Use string.h, not gdb_string.h.
1045 * stack.c: Use string.h, not gdb_string.h.
1046 * std-regs.c: Use string.h, not gdb_string.h.
1047 * symfile.c: Use string.h, not gdb_string.h.
1048 * symmisc.c: Use string.h, not gdb_string.h.
1049 * symtab.c: Use string.h, not gdb_string.h.
1050 * target.c: Use string.h, not gdb_string.h.
1051 * thread.c: Use string.h, not gdb_string.h.
1052 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1053 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1054 * top.c: Use string.h, not gdb_string.h.
1055 * tracepoint.c: Use string.h, not gdb_string.h.
1056 * tui/tui-command.c: Use string.h, not gdb_string.h.
1057 * tui/tui-data.c: Use string.h, not gdb_string.h.
1058 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1059 * tui/tui-file.c: Use string.h, not gdb_string.h.
1060 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1061 * tui/tui-out.c: Use string.h, not gdb_string.h.
1062 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1063 * tui/tui-source.c: Use string.h, not gdb_string.h.
1064 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1065 * tui/tui-win.c: Use string.h, not gdb_string.h.
1066 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1067 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1068 * typeprint.c: Use string.h, not gdb_string.h.
1069 * ui-file.c: Use string.h, not gdb_string.h.
1070 * ui-out.c: Use string.h, not gdb_string.h.
1071 * user-regs.c: Use string.h, not gdb_string.h.
1072 * utils.c: Use string.h, not gdb_string.h.
1073 * v850-tdep.c: Use string.h, not gdb_string.h.
1074 * valarith.c: Use string.h, not gdb_string.h.
1075 * valops.c: Use string.h, not gdb_string.h.
1076 * valprint.c: Use string.h, not gdb_string.h.
1077 * value.c: Use string.h, not gdb_string.h.
1078 * varobj.c: Use string.h, not gdb_string.h.
1079 * vax-tdep.c: Use string.h, not gdb_string.h.
1080 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1081 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1082 * windows-nat.c: Use string.h, not gdb_string.h.
1083 * xcoffread.c: Use string.h, not gdb_string.h.
1084 * xml-support.c: Use string.h, not gdb_string.h.
1085 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1086 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1088 2013-11-18 Tom Tromey <tromey@redhat.com>
1090 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1092 * gnulib/aclocal.m4: Update.
1093 * gnulib/config.in: Update.
1094 * gnulib/configure: Update.
1095 * gnulib/import/Makefile.am: Update.
1096 * gnulib/import/Makefile.in: Update.
1097 * gnulib/import/errno.in.h: New.
1098 * gnulib/import/intprops.h: New.
1099 * gnulib/import/m4/errno_h.m4: New.
1100 * gnulib/import/m4/gnulib-cache.m4: Update.
1101 * gnulib/import/m4/gnulib-comp.m4: Update.
1102 * gnulib/import/m4/strerror.m4: New.
1103 * gnulib/import/m4/strstr.m4: New.
1104 * gnulib/import/m4/sys_socket_h.m4: New.
1105 * gnulib/import/strerror-override.c: New.
1106 * gnulib/import/strerror-override.h: New.
1107 * gnulib/import/strerror.c: New.
1108 * gnulib/import/strstr.c: New.
1110 2013-11-18 Tom Tromey <tromey@redhat.com>
1112 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1115 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1117 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1118 * sparc-tdep.h: And its prototype.
1120 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1122 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1124 2013-11-18 Pedro Alves <palves@redhat.com>
1126 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1129 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1131 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1132 to -list-features output.
1134 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1136 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1137 <read_addr_from_reg>: Renames "read_reg".
1138 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1140 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1141 Use read_addr_from_reg in place of read_reg.
1142 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1143 in place of read_reg.
1144 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1145 dwarf_expr_read_reg.
1146 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1147 with dwarf_expr_read_addr_from_reg.
1148 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1149 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1150 needs_frame_read_addr_from_reg.
1152 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1156 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1161 2013-11-15 Tom Tromey <tromey@redhat.com>
1164 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1165 (classify_name): Likewise. Prefer a field of "this" over a
1167 (classify_inner_name, yylex): Update.
1169 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1171 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1172 Extend the documentation a bit.
1173 <get_reg_value>: New field.
1174 * dwarf2loc.c (dwarf_expr_get_reg_value)
1175 (needs_frame_get_reg_value): New functions.
1176 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1178 * dwarf2-frame.c (get_reg_value): New function.
1179 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1180 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1181 Use new callback to compute result_val.
1183 2013-11-15 Alan Modra <amodra@gmail.com>
1185 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1186 (ppc64_desc_entry_point): ..this. Update comments here and at
1188 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1189 ppc64_standard_linkage3): Update comments.
1190 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1191 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1193 (ppc64_standard_linkage4_target): New function.
1194 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1195 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1196 nop match. Fix comment wrap.
1198 2013-11-14 Pedro Alves <palves@redhat.com>
1200 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1201 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1203 2013-11-14 Pedro Alves <palves@redhat.com>
1205 * infrun.c (struct execution_control_state)
1206 <stepped_after_stopped_by_watchpoint>: New field.
1207 (get_inferior_stop_soon): New function.
1208 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1209 moved to struct execution_control_state -- adjust. Use
1210 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1212 (handle_signal_stop): New function, factored out from
1213 handle_inferior_event.
1215 2013-11-14 Pedro Alves <palves@redhat.com>
1217 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1219 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1221 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1222 Adjust to return a boolean.
1223 * breakpoint.h (enum bpstat_signal_value): Delete.
1224 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1225 (bpstat_explains_signal): Likewise.
1226 * infrun.c (handle_inferior_event) <random signal checks>:
1227 bpstat_explains_signal now returns a boolean - adjust. No longer
1228 consider hiding signals.
1230 2013-11-14 Pedro Alves <palves@redhat.com>
1232 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1233 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1234 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1236 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1237 instead of BPSTAT_SIGNAL_HIDE.
1238 * infrun.c (handle_inferior_event): Rework random signal checks.
1240 2013-11-14 Pedro Alves <palves@redhat.com>
1242 * infrun.c (struct execution_control_state): Remove
1243 'random_signal' field.
1244 (handle_syscall_event): Use bpstat_causes_stop instead of
1245 bpstat_explains_signal. Don't set ecs->random_signal.
1246 (handle_inferior_event): New 'random_signal' local.
1247 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1248 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1249 bpstat_explains_signal. Don't set ecs->random_signal.
1250 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1253 2013-11-14 Pedro Alves <palves@redhat.com>
1255 * infrun.c (handle_inferior_event): Move comment from the
1256 function's body to the function's description, adjusted.
1258 2013-11-14 Pedro Alves <palves@redhat.com>
1260 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1261 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1262 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1265 2013-11-14 Tom Tromey <tromey@redhat.com>
1267 * python/py-linetable.c (ltpy_has_line)
1268 (ltpy_get_all_source_lines): Fix loop termination condition.
1270 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1272 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1273 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1274 PARSE->LANGUAGE during command execution, if set.
1275 * mi/mi-parse.c: Add "language.h" #include.
1276 (mi_parse): Add parsing of "--language" command option.
1278 * NEWS: Add entry mentioning the new "--language" command option.
1280 2013-11-14 Pedro Alves <palves@redhat.com>
1281 Joel Brobecker <brobecker@adacore.com>
1283 * cli/cli-utils.h (extract_arg_const): Add declaration.
1284 * cli/cli-utils.c (extract_arg_const): New function.
1285 (extract_arg): Reimplement using extract_arg_const.
1287 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1289 * language.h: Add "symtab.h" #include.
1291 2013-11-13 Doug Evans <xdje42@gmail.com>
1293 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1294 specific breakpoints, don't evaluate breakpoint condition if
1297 2013-11-13 Keith Seitz <keiths@redhat.com>
1301 * cp-support.c (insepct_type): Add support for substituting
1302 namespace aliases, too.
1303 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1304 for DW_TAG_imported_declaration.
1305 (add_partial_symbol): Likewise.
1306 (process_die): Handle namespace aliases with
1307 read_namespace_alias.
1308 (die_needs_namespace): Add DW_TAG_imported_declaration.
1309 (read_namespace_alias): New function.
1310 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1311 (new_symbol_full): Handle DW_TAG_imported_declaration.
1313 2013-11-13 Keith Seitz <keiths@redhat.com>
1315 * p-exp.y (uptok): Make first parameter const.
1316 (yylex): Make `tokstart' and `tokptr' const.
1317 Don't copy the lexer input to a temporary buffer.
1319 Remove const workaround for parse_escape.
1320 Create a temporary buffer for a convenience variable instead
1321 of doing in-place modification of the input.
1322 If a match is found with a different case from the input,
1323 do not change the input at all.
1324 Use `tmp' to construct the resultant stoken instead of
1327 2013-11-13 Doug Evans <xdje42@gmail.com>
1329 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1331 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1333 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1334 entry with "ada-exceptions".
1336 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1338 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1339 after re-initialization of OBJFILE's obstack.
1341 2013-11-12 Doug Evans <xdje42@gmail.com>
1343 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1344 bs->stop != 0 on entry. Update function comment. Simplify early
1345 exit for frame mismatch. Reindent rest of function.
1347 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1349 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1352 2013-11-12 Doug Evans <dje@google.com>
1354 Work around gold/15646.
1355 * dwarf2read.c (read_index_from_section): Update comment.
1356 (struct dw2_symtab_iterator): New member global_seen.
1357 (dw2_symtab_iter_init): Initialize it.
1358 (dw2_symtab_iter_next): Skip duplicate global symbols.
1359 (dw2_expand_symtabs_matching): Ditto.
1361 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1363 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1364 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1366 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1367 (mi_cmd_info_ada_exceptions): New function.
1368 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1370 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1372 * ada-lang.h: #include "vec.h".
1373 (struct ada_exc_info): New.
1374 (ada_exc_info): New typedef.
1375 (DEF_VEC_O(ada_exc_info)): New vector.
1376 (ada_exceptions_list): Add declaration.
1377 * ada-lang.c (ada_is_exception_sym)
1378 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1379 (sort_remove_dups_ada_exceptions_list)
1380 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1381 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1382 (ada_exceptions_list_1, ada_exceptions_list)
1383 (info_exceptions_command): New function.
1384 (_initialize_ada_language): Add "info exception" command.
1386 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1389 * NEWS: Add linetable feature.
1390 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1391 * python/py-linetable.c: New file.
1392 * python/py-symtab.c (stpy_get_linetable): New function.
1393 * python/python-internal.h (symtab_to_linetable_object): Declare.
1394 (gdbpy_initialize_linetable): Ditto.
1395 * python/python.c (_initialize_python): Call
1396 gdbpy_initialize_linetable.
1398 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1400 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1401 the documentation of fields "except_string" and "condition".
1402 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1403 CONDITION on the heap before passing it to
1404 create_ada_exception_catchpoint.
1405 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1408 2013-11-11 Tom Tromey <tromey@redhat.com>
1410 * config.in, configure: Rebuild.
1411 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1413 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1415 * remote-sim.c (gdbsim_detach): Break declaration into
1416 shorter lines. No code change.
1418 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1420 * remote-sim.c (gdbsim_detach): Fix prototype.
1422 2013-11-08 Doug Evans <dje@google.com>
1424 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1425 (create_debug_types_hash_table): Only print debugging messages for
1426 each TU if dwarf2-read >= 2.
1427 (process_queue): Ditto.
1428 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1431 2013-11-08 Tom Tromey <tromey@redhat.com>
1433 * configure: Rebuild.
1434 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1436 2013-11-08 Tom Tromey <tromey@redhat.com>
1438 * configure, config.in: Rebuild.
1439 * configure.ac: Remove unused configury.
1441 2013-11-08 Tom Tromey <tromey@redhat.com>
1443 * m32c-tdep.c: Use gdb_string.h.
1445 2013-11-08 Tom Tromey <tromey@redhat.com>
1447 * configure, config.in: Rebuild.
1448 * configure.ac: Remove all link.h-related checks.
1450 2013-11-08 Tom Tromey <tromey@redhat.com>
1452 * acinclude.m4: Include common.m4.
1453 * common/common.m4: New file.
1454 * configure, config.in: Rebuild.
1455 * configure.ac: Use GDB_AC_COMMON.
1457 2013-11-08 Doug Evans <dje@google.com>
1459 * NEWS: Mention that "set debug symtab-create" now accepts a
1461 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1462 to set the symtab's primary flag.
1463 * jit.c (finalize_symtab): Ditto.
1464 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1465 * symfile.c (allocate_symtab): Only print debugging messages for
1466 symtab_create_debug levels 2 and higher.
1467 * symtab.c (symtab_create_debug): Change type to unsigned int.
1468 (set_symtab_primary): New function.
1469 (_initialize_symtab): Change "set debug symtab-create" to a
1471 * symtab.h (set_symtab_primary): Declare.
1472 (symtab_create_debug): Update decl.
1474 2013-11-08 Tom Tromey <tromey@redhat.com>
1476 * aix-thread.c (aix_thread_detach): Update.
1477 * corelow.c (core_detach): Update.
1478 * darwin-nat.c (darwin_detach): Update.
1479 * dec-thread.c (dec_thread_detach): Update.
1480 * gnu-nat.c (gnu_detach): Update.
1481 * go32-nat.c (go32_detach): Update.
1482 * inf-ptrace.c (inf_ptrace_detach): Update.
1483 * inf-ttrace.c (inf_ttrace_detach): Update.
1484 * linux-fork.c (linux_fork_detach): Update.
1485 * linux-fork.h (linux_fork_detach): Update.
1486 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1487 local for const-correctness.
1488 * linux-thread-db.c (thread_db_detach): Update.
1489 * monitor.c (monitor_detach): Update.
1490 * nto-procfs.c (procfs_detach): Update.
1491 * procfs.c (procfs_detach): Update.
1492 * record.c (record_detach): Update.
1493 * record.h (record_detach): Update.
1494 * remote-m32r-sdi.c (m32r_detach): Update.
1495 * remote-mips.c (mips_detach): Update.
1496 * remote-sim.c (gdbsim_detach): Update.
1497 * remote.c (remote_detach_1, remote_detach)
1498 (extended_remote_detach): Update.
1499 * sol-thread.c (sol_thread_detach): Update.
1500 * target.c (target_detach): Make "args" const.
1501 (init_dummy_target): Update.
1502 * target.h (struct target_ops) <to_detach>: Make argument const.
1503 (target_detach): Likewise.
1504 * windows-nat.c (windows_detach): Update.
1506 2013-11-07 Doug Evans <dje@google.com>
1509 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1510 and align fields for PT_GNU_RELRO segments.
1512 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1515 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1517 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1519 * NEWS: Document Python temporary breakpoint support.
1520 * python/py-breakpoint.c (bppy_get_temporary): New function.
1521 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1522 to temporary if True.
1524 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1526 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1527 removed to allow analyzing unconditional branch instructions
1528 with PC-relative offsets of zero.
1530 2013-11-07 Yao Qi <yao@codesourcery.com>
1532 * mi/mi-cmd-var.c: Include "language.h".
1533 (mi_cmd_var_info_expression): Get language name from
1535 * varobj.c (varobj_language_string): Remove.
1536 (variable_language): Remove declaration.
1537 (languages): Remove.
1538 (varobj_get_language): Change the type of return value.
1539 (variable_language): Remove.
1540 * varobj.h (enum varobj_languages): Remove.
1541 (varobj_language_string): Remove declaration.
1542 (varobj_get_language): Update declaration.
1544 2013-11-07 Yao Qi <yao@codesourcery.com>
1546 * language.h (struct language_defn) <la_natural_name>: New
1548 * ada-lang.c (ada_language_defn): Initialize field
1550 * c-lang.c (c_language_defn): Likewise.
1551 (cplus_language_defn, asm_language_defn): Likewise.
1552 * d-lang.c (d_language_defn): Likewise.
1553 * f-lang.c (f_language_defn): Likewise.
1554 * go-lang.c (go_language_defn): Likewise.
1555 * jv-lang.c (java_language_defn): Likewise.
1556 * language.c (unknown_language_defn ): Likewise.
1557 (auto_language_defn): Likewise.
1558 * m2-lang.c (m2_language_defn): Likewise.
1559 * objc-lang.c (objc_language_defn): Likewise.
1560 * opencl-lang.c (opencl_language_defn): Likewise.
1561 * p-lang.c (pascal_language_defn): Likewise.
1563 2013-11-07 Yao Qi <yao@codesourcery.com>
1565 * language.c (language_str): Return const char *.
1566 (add_language): Add const to 'language_names'
1567 * language.h (struct language_defn) <la_name>: Add const.
1568 (language_str: Update declaration.
1570 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572 * s390-linux-nat.c (s390_read_description): Consider the TE field
1573 in the HWCAP for determining 'have_regset_tdb'.
1575 2013-11-06 Will Newton <will.newton@linaro.org>
1578 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1579 values. (read_partial_die): Likewise.
1581 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1584 * top.c (command_line_input): Unify interactivity tests to use
1585 input_from_terminal_p.
1586 * event-top.c (command_line_handler): Likewise.
1588 2013-11-06 Yao Qi <yao@codesourcery.com>
1590 * Makefile.in (check-perf): New target.
1592 2013-11-05 Will Newton <will.newton@linaro.org>
1595 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1596 (arm_print_float_info): Likewise.
1598 2013-11-04 Anton Blanchard <anton@samba.org>
1600 * target.c (memory_xfer_partial): Cap write to 4KB.
1602 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1604 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1605 probe scan even when the arch provides no get_longjmp_target.
1607 2013-10-31 Pedro Alves <palves@redhat.com>
1609 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1610 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1611 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1612 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1613 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1614 <bpstat handling>: If the bpstat chain wants the signal to be
1615 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1618 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1620 * breakpoint.c (update_watchpoint): Update error message and add
1621 an additional error message.
1623 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625 * s390-tdep.h: Rename to...
1626 * s390-linux-tdep.h: ...here.
1627 * s390-tdep.c: Rename to...
1628 * s390-linux-tdep.c: ...here. Adjust #include.
1629 * s390-nat.c: Rename to...
1630 * s390-linux-nat.c: ...here. Adjust #include.
1631 * config/s390/s390.mh: Rename to...
1632 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1634 * configure.host: Reflect host rename "s390" -> "linux".
1635 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1636 * Makefile.in (ALL_TARGET_OBS): Likewise.
1637 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1639 (ALLDEPFILES): Reflect rename of .c files.
1641 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643 * s390-nat.c: Whitespace cleanup.
1644 * s390-tdep.c: Likewise.
1645 * s390-tdep.h: Remove empty line at end of file.
1647 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1649 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1652 2013-10-29 Tom Tromey <tromey@redhat.com>
1654 * utils.c (reg): Move undefinition...
1655 * gdb_curses.h: ... here. Update comment to mention AIX.
1657 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1659 * exec.h (add_target_sections_of_objfile): New declaration.
1660 * exec.c (add_target_sections_of_objfile): New function.
1661 * symfile.c (add_symbol_file_command): Update current target sections.
1662 (remove_symbol_file_command): New command.
1663 (symfile_free_objfile): New function.
1664 (_initialize_symfile): Register observer for free_objfile events.
1665 * NEWS: Add description of the remove-symbol-file command.
1666 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1667 * objfiles.c (free_objfile): Notify free_objfile.
1668 (is_addr_in_objfile): New function.
1669 * objfiles.h (is_addr_in_objfile): New declaration.
1670 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1671 events instead of solib_unloaded events.
1672 (_initialize_printcmd): Register observer for free_objfile instead
1673 of solib_unloaded notifications.
1674 * solib.c (remove_user_added_objfile): New function.
1675 (_initialize_symfile): Add remove-symbol-file.
1677 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1679 * infcmd.c (default_print_one_register_info): Use val_print to
1680 print all values even optimized out or unavailable ones. Don't
1681 try to print a raw form of optimized out or unavailable values.
1683 2013-10-29 Yao Qi <yao@codesourcery.com>
1685 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1686 parameter 'arg' instead of from program_space_data.
1687 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1688 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1689 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1690 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1691 * inflow.c (inflow_inferior_data_cleanup): Get data from
1692 parameter 'arg' instead of inferior_data.
1693 * registry.h: Add comments.
1695 2013-10-28 Pedro Alves <palves@redhat.com>
1697 * breakpoint.c (watchpoints_triggered)
1698 <!target_stopped_data_address>: Hardcode return 1.
1700 2013-10-28 Pedro Alves <palves@redhat.com>
1702 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1705 2013-10-28 Pedro Alves <palves@redhat.com>
1707 * infrun.c (process_event_stop_test): New function, factored out
1708 from handle_inferior_event.
1709 (handle_inferior_event): 'process_event_stop_test' is now a
1710 function instead of a goto label -- adjust.
1712 2013-10-28 Pedro Alves <palves@redhat.com>
1714 * infrun.c (handle_inferior_event): Move process_event_stop_test
1715 goto label to the else branch of the ecs->random_signal check,
1716 along with FRAME and GDBARCH re-fetching.
1718 2013-10-28 Pedro Alves <palves@redhat.com>
1720 * infrun.c (switch_back_to_stepped_thread): New function, factored
1721 out from handle_inferior_event.
1722 (handle_inferior_event): Adjust to call
1723 switch_back_to_stepped_thread. Call it also at the tail of the
1724 random signal handling, and return, instead of also handling
1725 random signals just before the stepping tests.
1727 2013-10-28 Pedro Alves <palves@redhat.com>
1729 * infrun.c (clear_stop_func): Delete.
1730 (handle_inferior_event): Don't call clear_stop_func and don't
1731 clear 'ecs->random_signal'.
1733 2013-10-27 Yao Qi <yao@codesourcery.com>
1735 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1736 (varobj_create, varobj_get_path_expr): Update.
1737 (varobj_value_has_mutated, varobj_update): Likewise.
1738 (create_child_with_value, new_root_variable): Likewise.
1739 (number_of_children, name_of_variable): Likewise.
1740 (value_of_child, my_value_of_variable): Likewise.
1741 (varobj_value_is_changeable_p): Likewise.
1743 2013-10-25 Yao Qi <yao@codesourcery.com>
1745 * language.h (struct lang_varobj_ops): Declare.
1746 (struct language_defn) <la_varobj_ops>: New field.
1747 * ada-lang.c: Include "varobj.h"
1748 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1750 * c-lang.c: Include "varobj.h"
1751 (c_language_defn): Initialize field 'la_varobj_ops' with
1753 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1755 (asm_language_defn): Initialize field 'la_varobj_ops' with
1757 (minimal_language_defn): Likewise.
1758 * d-lang.c (d_language_defn): Likewise.
1759 * f-lang.c (f_language_defn): Likewise.
1760 * go-lang.c (go_language_defn): Likewise.
1761 * m2-lang.c (m2_language_defn): Likewise.
1762 * objc-lang.c (objc_language_defn): Likewise.
1763 * opencl-lang.c (opencl_language_defn): Likewise.
1764 * p-lang.c (pascal_language_defn): Likewise.
1765 * language.c (unknown_language_defn): Likewise.
1766 (auto_language_defn): Likewise.
1767 (local_language_defn): Likewise.
1768 * jv-lang.c (java_language_defn): Initialize field
1769 'la_varobj_ops' with java_varobj_ops.
1770 * varobj.c (varobj_create): Update.
1771 * varobj.h (default_varobj_ops): Define macro.
1773 2013-10-25 Pedro Alves <palves@redhat.com>
1775 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1777 (cp_print_static_field): If the value is entirely optimized out,
1778 print <optimized out> here.
1779 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1781 * p-valprint.c (pascal_object_print_static_field): If the value is
1782 entirely optimized out, print <optimized out> here.
1783 * valops.c (do_search_struct_field)
1784 (value_struct_elt_for_reference): No longer handle a NULL static
1786 * value.c (value_static_field): Return an optimized out value
1789 2013-10-25 Yao Qi <yao@codesourcery.com>
1791 * remote.c (remote_traceframe_info): Return early if
1792 traceframe is not selected.
1794 2013-10-25 Yao Qi <yao@codesourcery.com>
1796 * tracepoint.c (traceframe_fun): Remove.
1797 (traceframe_sal): Remove.
1798 (set_traceframe_context): Add local variables.
1800 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1802 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1805 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1807 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1808 failure from register information collection.
1810 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1812 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1814 (linux_corefile_thread_callback): Update accordingly.
1815 (linux_make_corefile_notes): Likewise.
1817 2013-10-24 Pedro Alves <palves@redhat.com>
1819 * NEWS (New options): Mention set/show startup-with-shell.
1820 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1822 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1823 startup-with-shell'.
1824 (show_startup_with_shell): New function.
1825 (_initialize_fork_child): Register the set/show startup-with-shell
1827 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1828 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1829 * procfs.c (procfs_init_inferior): Remove comment.
1830 * infcmd.c (startup_with_shell): New global.
1831 * inferior.h (startup_with_shell): Declare global.
1832 (STARTUP_WITH_SHELL): Delete.
1833 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1835 2013-10-23 Pedro Alves <palves@redhat.com>
1837 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1838 * common/signals.c: Include "gdb_assert.h".
1839 (signals): New field 'symbol'.
1840 (SET): Use the 'symbol' parameter.
1841 (gdb_signal_to_symbol_string): New function.
1842 * infrun.c (handle_inferior_event) <random signal>: In debug
1843 output, print the random signal enum as string in addition to its
1845 * target/waitstatus.c (target_waitstatus_to_string): Print the
1846 signal's enum value as string instead of the (POSIX) signal name.
1848 2013-10-23 Gary Benson <gbenson@redhat.com>
1851 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1852 from 32 to 18. Adjusted fscanf format string accordingly.
1853 (Avoids leaving cmd unterminated.)
1854 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1855 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1856 that local_address and remote_address will not overflow.
1857 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1858 leaving dependencies unterminated. Parse size as "%u" to match
1861 2013-10-22 Pedro Alves <palves@redhat.com>
1863 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1864 set ecs->random signal.
1866 2013-10-22 Pedro Alves <palves@redhat.com>
1868 * infrun.c (keep_going): Update comments.
1870 2013-10-22 Pedro Alves <palves@redhat.com>
1872 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1873 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1875 2013-10-22 Pedro Alves <palves@redhat.com>
1877 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1879 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1880 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1881 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1882 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1883 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1884 (GDB_SIGNAL_LAST): Change description string.
1885 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1886 Adjust to signal renaming.
1887 * darwin-nat.c (darwin_decode_message): Likewise.
1889 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1891 * MAINTAINERS (Write After Approval): Add myself to the list.
1893 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1895 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1896 forced off, downgrade them to software watchpoints if possible,
1897 and error out if not possible.
1898 (watch_command_1): Move watchpoint type selection closer to
1899 watchpoint creation, and extend the comments.
1901 2013-10-18 Pedro Alves <palves@redhat.com>
1904 * infrun.c (handle_inferior_event): Keep going if we got a random
1905 signal we should not stop for, instead of falling through to the
1908 2013-10-18 Yao Qi <yao@codesourcery.com>
1910 * c-varobj.c (cplus_number_of_children): Fix indentation.
1912 2013-10-17 Tom Tromey <tromey@redhat.com>
1915 * printcmd.c (printcmd): Call gdb_flush.
1917 2013-10-17 Tom Tromey <tromey@redhat.com>
1919 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1920 (elf_locate_sections): Update.
1922 2013-10-17 Yao Qi <yao@codesourcery.com>
1924 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1925 * ada-varobj.c: Remove the include of ada-varobj.h.
1926 (ada_varobj_get_number_of_children): Declare.
1927 (ada_varobj_get_name_of_child): Make it static.
1928 (ada_varobj_get_path_expr_of_child): Likewise.
1929 (ada_varobj_get_value_of_child): Likewise.
1930 (ada_varobj_get_type_of_child): Likewise.
1931 (ada_varobj_get_value_of_array_variable): Likewise.
1932 * ada-varobj.h: Remove.
1934 2013-10-17 Yao Qi <yao@codesourcery.com>
1936 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1937 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1938 * ada-varobj.c: Include "varobj.h".
1939 (ada_number_of_children): New. Moved from varobj.c.
1940 (ada_name_of_variable, ada_name_of_child): Likewise.
1941 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1942 (ada_type_of_child, ada_value_of_variable): Likewise.
1943 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1944 (ada_varobj_ops): New.
1945 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1946 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1947 * gdbtypes.h (get_target_type): Declare.
1948 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1950 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1951 (ANONYMOUS_UNION_NAME): Likewise.
1952 (get_type, get_value_type, get_target_type): Remove declarations.
1953 (value_get_print_value, varobj_value_get_print_value): Likewise.
1954 (c_number_of_children, c_name_of_variable): Likewise.
1955 (c_name_of_child, c_path_expr_of_child): Likewise.
1956 (c_value_of_child, c_type_of_child): Likewise.
1957 (c_value_of_variable, cplus_number_of_children): Likewise.
1958 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1959 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1960 (cplus_value_of_child, cplus_type_of_child): Likewise.
1961 (cplus_value_of_variable, java_number_of_children): Likewise.
1962 (java_name_of_variable, java_name_of_child): Likewise.
1963 (java_path_expr_of_child, java_value_of_child): Likewise.
1964 (java_type_of_child, java_value_of_variable): Likewise.
1965 (ada_number_of_children, ada_name_of_variable): Likewise.
1966 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1967 (ada_value_of_child, ada_type_of_child): Likewise.
1968 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1969 (ada_value_has_mutated): Likewise.
1970 (struct language_specific): Move it to varobj.h.
1971 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1972 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1974 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1976 (is_anonymous_child): Move it to c-varobj.c and rename to
1977 varobj_is_anonymous_child. Caller update.
1978 (get_type): Move it to c-varobj.c.
1979 (get_value_type): Rename it varobj_get_value_type. Make it
1981 (get_target_type): Move it gdbtypes.c.
1982 (varobj_formatted_print_options): New function.
1983 (value_get_print_value): Rename it to
1984 varobj_value_get_print_value and make it extern.
1985 (varobj_value_is_changeable_p): Make it extern.
1986 (adjust_value_for_child_access): Move it to c-varobj.c.
1987 (default_value_is_changeable_p): Rename it to
1988 varobj_default_value_is_changeable_p. Make it extern.
1989 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1990 (c_name_of_child, c_path_expr_of_child): Likewise.
1991 (c_value_of_child, c_type_of_child): Likewise.
1992 (c_value_of_variable, cplus_number_of_children): Likewise.
1993 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1994 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1995 (cplus_value_of_child, cplus_type_of_child): Likewise.
1996 (cplus_value_of_variable): Likewise.
1997 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1998 (java_name_of_child, java_path_expr_of_child): Likewise.
1999 (java_value_of_child, java_type_of_child): Likewise.
2000 (java_value_of_variable): Likewise.
2001 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2002 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2003 (ada_value_of_child, ada_type_of_child): Likewise.
2004 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2005 (ada_value_has_mutated): Likewise.
2006 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2007 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2008 (c_varobj_ops, cplus_varobj_ops): Declare.
2009 (java_varobj_ops, ada_varobj_ops): Declare.
2010 (varobj_default_value_is_changeable_p): Declare.
2011 (varobj_value_is_changeable_p): Declare.
2012 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2013 (varobj_get_path_expr_parent): Declare.
2014 (varobj_value_get_print_value): Declare.
2015 (varobj_formatted_print_options): Declare.
2016 (varobj_restrict_range): Declare.
2018 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2020 * target/waitstatus.h (target_waitkind): Remove spurious
2021 character from the comments.
2023 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2025 * gdbarch.sh (get_longjmp_target): Add method documentation.
2026 * gdbarch.h: Regenerate.
2028 2013-10-16 Tom Tromey <tromey@redhat.com>
2030 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2033 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2035 * gcore.in: Call GDB using the full path to the gcore script.
2036 Error out if the GDB binary is not found.
2038 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2041 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2044 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2047 * target.c (target_disable_btrace): Fix invalid return value for
2049 (target_teardown_btrace): Likewise.
2051 2013-10-14 Yao Qi <yao@codesourcery.com>
2053 * varobj.c (struct varobj): Move most of the fields to
2055 (struct varobj_dynamic): New struct.
2056 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2057 (varobj_has_more): Likewise.
2058 (dynamic_varobj_has_child_method): Likewise.
2059 (update_dynamic_varobj_children): Likewise.
2060 (varobj_get_num_children): Likewise.
2061 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2062 (install_new_value_visualizer): Likewise.
2063 (install_new_value_visualizer, install_new_value): Likewise.
2064 (varobj_update, new_variable, free_variable): Likewise.
2065 (my_value_of_variable, value_get_print_value): Likewise.
2066 (install_visualizer): Change the type of parameter 'var' to
2067 'struct varobjd_dynamic *'. Callers update.
2068 * varobj.h (struct varobj): Moved from varobj.c.
2069 (struct varobj) <dynamic>: New field.
2071 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2073 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2074 as the preferred name of r30.
2075 * nios2-linux-tdep.c (reg_offsets): Likewise.
2076 * features/nios2-cpu.xml: Likewise.
2077 * features/nios2-linux.c: Regenerated.
2078 * features/nios2.c: Regenerated.
2079 * regformats/nios2-linux.dat: Regenerated.
2081 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 Canonicalize directories for EXEC_FILENAME.
2084 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2086 * utils.c (gdb_realpath_keepfile): New function.
2087 * utils.h (gdb_realpath_keepfile): New declaration.
2089 2013-10-11 Doug Evans <dje@google.com>
2091 * Makefile.in (GDBFLAGS): New variable.
2094 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2096 * NEWS: Add entry documenting the new "-catch-assert" and
2097 "-catch-exception" GDB/MI commands.
2099 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2101 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2103 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2104 "enabled". Set B->ENABLE_STATE accordingly.
2105 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2107 (create_ada_exception_catchpoint): Add declaration.
2108 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2109 (create_ada_exception_catchpoint): Make non-static. Add new
2110 parameter "disabled". Use it in call to
2111 init_ada_exception_breakpoint.
2112 (catch_ada_exception_command): Add parameter "enabled" in call
2113 to create_ada_exception_catchpoint.
2114 (catch_assert_command): Likewise.
2116 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2118 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2119 "catch-exception" commands.
2120 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2121 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2123 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2125 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2126 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2127 of all its enumerates with "ada_". Update the rest of this
2130 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2132 * ada-lang.c (ada_decode_exception_location): Delete.
2133 (create_ada_exception_catchpoint): Remove arguments "sal",
2134 "addr_string" and "ops". Add argument "ex_kind" instead.
2135 Adjust implementation accordingly, calling ada_exception_sal
2136 to get the entities it no longer gets passed as arguments.
2137 Document the function's arguments.
2138 (catch_ada_exception_command): Use catch_ada_exception_command_split
2139 instead of ada_decode_exception_location, and update call to
2140 create_ada_exception_catchpoint.
2141 (catch_ada_assert_command_split): Renames
2142 ada_decode_assert_location. Remove parameters "addr_string" and
2143 "ops", and now returns void. Adjust implementation accordingly.
2144 Update the function documentation.
2145 (catch_assert_command): Use catch_ada_assert_command_split
2146 instead of ada_decode_assert_location. Update call to
2147 create_ada_exception_catchpoint.
2149 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2151 * utils.h (perror_warning_with_name): Add declaration.
2152 * utils.c (perror_warning_with_name): New function.
2153 * cli/cli-cmds.c (source_script_with_search): Add call to
2154 perror_warning_with_name if from_tty is nul.
2156 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2158 * utils.c (perror_string): New function, extracted out of
2159 throw_perror_with_name.
2160 (throw_perror_with_name): Rework to use perror_string.
2162 2013-10-11 Yao Qi <yao@codesourcery.com>
2164 * remote.c (discard_pending_stop_replies_in_queue): Update
2166 (struct stop_reply) <rs>: New field.
2167 (remove_stop_reply_of_remote_state): New function.
2168 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2169 Callers update. Pass remove_stop_reply_of_remote_state to
2171 (remote_parse_stop_reply): Initialize field 'rs'.
2173 2013-10-10 Will Newton <will.newton@linaro.org>
2175 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2178 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2180 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2181 serial_baud_show_cmd.
2182 (_initialize_cli_cmds): Delete the code creating the
2183 "set/show remotebaud" commands.
2184 * serial.c (baud_rate): Move here from top.c.
2185 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2186 (_initialize_serial): Create "set/show serial baud" commands.
2187 Add "set/show remotebaud" command aliases.
2188 * top.c (baud_rate): Moved to serial.c.
2189 * NEWS: Document the new "set/show serial baud" commands,
2190 replacing "set/show remotebaud".
2192 2013-10-09 Pedro Alves <palves@redhat.com>
2194 * breakpoint.c (insert_bp_location): Use memory_error_message to
2195 build the memory error string.
2196 * c-lang.c: Include "gdbcore.h".
2197 (c_get_string): Use memory_error to throw error.
2198 (target_xfer_memory_error): Delete.
2199 (memory_error_message): New, factored out from
2200 target_xfer_memory_error.
2201 (memory_error): Change parameter type to target_xfer_error.
2203 (read_memory): Use memory_error instead of
2204 target_xfer_memory_error.
2205 * gdbcore.h: Include "target.h".
2206 (memory_error): Change parameter type to target_xfer_error.
2207 (memory_error_message): Declare function.
2208 * target.c (target_read_memory, target_read_stack)
2209 (target_write_memory, target_write_raw_memory): Return
2210 TARGET_XFER_E_IO on error. Adjust comments.
2211 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2213 * target.h (target_read, target_insert_breakpoint)
2214 (target_remove_breakpoint): Adjust comments.
2215 * valprint.c (partial_memory_read): Rename parameter, and adjust
2217 (val_print_string): Use memory_error_message to build the memory
2220 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2222 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2223 result variable. Rename variable fopen_e_ever_failed to
2224 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2226 2013-10-09 Pedro Alves <palves@redhat.com>
2228 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2229 (monitor_write_memory_longlongs, monitor_write_memory_block):
2230 Constify 'myaddr' parameter.
2231 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2233 (monitor_xfer_partial): New function.
2234 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2235 hook. Install a to_xfer_partial hook.
2237 2013-10-09 Tom Tromey <tromey@redhat.com>
2239 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2240 bfd_get_alt_debug_link_info.
2242 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 New flag OBJF_NOT_FILENAME.
2245 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2246 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2248 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2249 symbol_file_add_from_bfd.
2250 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2252 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2254 * objfiles.h (OBJF_NOT_FILENAME): New.
2256 2013-10-08 Tom Tromey <tromey@redhat.com>
2258 * Makefile.in (SFILES): Add build-id.c.
2259 (HFILES_NO_SRCDIR): Add build-id.h.
2260 * build-id.c: New file, largely from elfread.c. Modified
2262 * build-id.h: New file.
2263 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2264 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2265 Search for dwz file using build-id.
2266 * elfread.c (build_id_bfd_get, build_id_verify)
2267 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2269 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2271 * ada-lang.c (compare_names_with_case): Renamed from
2272 compare_names, adding a new parameter "casing" and its handling.
2273 New function documentation.
2274 (compare_names): New function, implemented using
2275 compare_names_with_case.
2277 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2279 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2281 2013-10-07 Tom Tromey <tromey@redhat.com>
2283 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2284 demangled_names_hash.
2285 (free_objfile): Don't delete the demangled_names_hash.
2286 * objfiles.h (struct objfile_per_bfd_storage)
2287 <demangled_names_hash>: New field.
2288 (struct objfile) <demangled_names_hash>: Move to
2289 objfile_per_bfd_storage.
2290 * symfile.c (reread_symbols): Don't delete the
2291 demangled_names_hash.
2292 * symtab.c (create_demangled_names_hash): Update.
2293 (symbol_set_names): Update.
2295 2013-10-07 Tom Tromey <tromey@redhat.com>
2297 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2298 needs_relocations>: New fields.
2299 (gdb_bfd_requires_relocations): New function.
2300 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2301 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2302 the BFD needs relocations applied.
2304 2013-10-07 Pedro Alves <palves@redhat.com>
2306 PR breakpoints/11568
2307 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2308 the thread list" instead of "gone".
2310 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2312 * NEWS: Mention new convenience variable $_exitsignal.
2313 * corelow.c (core_open): Reset exit convenience variables. Set
2314 $_exitsignal to the uncaught signal which generated the corefile.
2315 * infrun.c (handle_inferior_event): Reset exit convenience
2316 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2317 (clear_exit_convenience_vars): New function.
2318 * inferior.h (clear_exit_convenience_vars): New prototype.
2320 2013-10-06 Yao Qi <yao@codesourcery.com>
2322 * varobj.h: Add comments to enum varobj_languages.
2324 2013-10-04 Doug Evans <dje@google.com>
2326 Add support for DWP file format version 2.
2327 * NEWS: Mention support for DWP file format version 2.
2328 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2329 union of asection, containing_section. New fields virtual_offset
2330 and is_virtual. Change type of readin filed from int to char.
2331 (dwo_sections, dwo_file): Tweak comments.
2332 (dwp_v2_section_ids): New enum.
2333 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2335 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2337 (virtual_v2_dwo_sections): New struct.
2338 (dwp_hash_table): New fields version, nr_columns. Change type of
2339 section_pool field to a union.
2340 (dwp_file): New field version.
2341 (dwarf2_has_info): Check for virtual sections.
2342 (get_containing_section): New function.
2343 (get_section_bfd_owner, get_section_bfd_section): Call it.
2344 (dwarf2_locate_sections): Update.
2345 (dwarf2_section_empty_p): Update.
2346 (dwarf2_read_section): Handle virtual sections.
2347 (locate_dwz_sections): Update.
2348 (create_dwp_hash_table): Document and handle V2 format.
2349 (locate_v1_virtual_dwo_sections): Renamed from
2350 locate_virtual_dwo_sections and update. All callers updated.
2351 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2352 Delete arg htab. Rename arg section_index to unit_index.
2353 All callers updated.
2354 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2356 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2357 (lookup_dwo_unit_in_dwp): Add V2 support.
2358 (dwarf2_locate_dwo_sections): Update.
2359 (dwarf2_locate_common_dwp_sections): Renamed from
2360 dwarf2_locate_dwp_sections and update. All callers updated.
2361 (dwarf2_locate_v2_dwp_sections): New function.
2362 (open_and_init_dwp_file): Add V2 support.
2363 (read_str_index): New locals str_section, str_offsets_section.
2365 2013-10-04 Pedro Alves <palves@redhat.com>
2367 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2368 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2369 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2370 describing comments with references to ptid.h.
2371 * common/ptid.h: Remove intro description of constructors,
2372 accessors and predicates.
2373 (struct ptid): Reformat.
2374 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2375 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2376 describing comments.
2378 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2380 * aix-thread.c (sync_threadlists): Add missing ')' in call
2383 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2385 * procfs.c (procfs_init_inferior): Fix typo causing the build
2388 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2390 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2392 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2394 * mi/mi-main.c (run_one_inferior): Add function description.
2395 Make ARG a pointer to an integer whose value determines whether
2396 we should "run" or "start" the program.
2397 (mi_cmd_exec_run): Add handling of the "--start" option.
2398 Reject all other command-line options.
2399 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2401 2013-10-04 Yao Qi <yao@codesourcery.com>
2403 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2404 (struct notif_client) <pending_event>: Moved
2405 to struct remote_notif_state.
2407 (struct remote_notif_state) <pending_event>: New field.
2408 (notif_event_xfree): Declare.
2409 * remote-notif.c (handle_notification): Adjust.
2410 (notif_event_xfree): New function.
2411 (do_notif_event_xfree): Call notif_event_xfree.
2412 (remote_notif_state_xfree): Call notif_event_xfree to free
2413 each element in field pending_event.
2414 * remote.c (discard_pending_stop_replies): Remove declaration.
2415 (discard_pending_stop_replies_in_queue): Declare.
2416 (remote_close): Call discard_pending_stop_replies_in_queue
2417 instead of discard_pending_stop_replies.
2418 (remote_start_remote): Adjust.
2419 (stop_reply_xfree): Call notif_event_xfree.
2420 (notif_client_stop): Adjust initialization.
2421 (remote_notif_remove_all): Rename it to ...
2422 (remove_stop_reply_for_inferior): ... this. Update comments.
2423 Don't check INF is NULL.
2424 (discard_pending_stop_replies): Return early if notif_state is
2425 NULL. Adjust. Don't check INF is NULL.
2426 (remote_notif_get_pending_events): Adjust.
2427 (discard_pending_stop_replies_in_queue): New function.
2428 (remote_wait_ns): Likewise.
2430 2013-10-04 Yao Qi <yao@codesourcery.com>
2432 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2433 (notif_queue): Remove.
2434 (remote_notif_process): Add one parameter 'notif_queue'.
2435 Update comments. Callers update.
2436 (remote_async_get_pending_events_token): Remove.
2437 (remote_notif_register_async_event_handler): Remove.
2438 (remote_notif_unregister_async_event_handler): Remove.
2439 (handle_notification): Add parameter 'notif_queue'. Update
2440 comments. Callers update.
2441 (notif_xfree): Remove.
2442 (remote_notif_state_allocate): New function.
2443 (remote_notif_state_xfree): New function.
2444 (_initialize_notif): Remove code to allocate queue.
2445 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2446 (struct remote_notif_state): New.
2447 (handle_notification): Update declaration.
2448 (remote_notif_process): Likewise.
2449 (remote_notif_register_async_event_handler): Remove.
2450 (remote_notif_unregister_async_event_handler): Remove.
2451 (remote_notif_state_allocate): Declare.
2452 (remote_notif_state_xfree): Declare.
2453 * remote.c (struct remote_state) <notif_state>: New field.
2454 (remote_close): Don't call
2455 remote_notif_unregister_async_event_handler. Call
2456 remote_notif_state_xfree.
2457 (remote_open_1): Don't call
2458 remote_notif_register_async_event_handler. Call
2459 remote_notif_state_allocate.
2461 2013-10-04 Yao Qi <yao@codesourcery.com>
2463 * varobj.c (create_child_with_value): Remove 'const' from the
2464 type of parameter 'name'.
2465 (varobj_add_child): Likewise.
2466 (install_dynamic_child): Remove 'const' from the type of
2468 (varobj_add_child): Likewise.
2469 (create_child_with_value): Likewise. Update comments. Don't
2471 (update_dynamic_varobj_children): Duplicate 'name'
2472 and pass it to install_dynamic_child.
2474 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2476 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2477 conversion logic to occur after PyLong_Check. Comment on order
2478 change significance.
2479 * python/py-arch.c (archpy_disassemble): Comment on order of
2480 conversion for integers and longs.
2482 2013-10-03 Pedro Alves <palves@redhat.com>
2484 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2485 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2486 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2487 PTRACE_O_TRACEFORK is not supported.
2488 (linux_test_for_tracesysgood): New function.
2489 (linux_test_for_tracefork): New function, factored out from
2490 linux_check_ptrace_features, and also don't kill child_pid here.
2492 2013-10-03 Tristan Gingold <gingold@adacore.com>
2494 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2495 Remove verbose error reporting. Use detected state to
2496 thread_set_state call.
2497 (i386_darwin_dr_get): Fix return type. Remove verbose error
2499 Remove trailing spaces.
2501 2013-10-02 Pedro Alves <palves@redhat.com>
2503 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2504 val_print_optimized_out.
2505 * jv-valprint.c (java_print_value_fields): Likewise.
2506 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2507 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2508 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2509 new optimized out value.
2510 * findvar.c (address_from_register): Likewise.
2511 * frame.c (put_frame_register): Tweak error string to say the
2512 register was not saved, rather than optimized out.
2513 * infcmd.c (default_print_one_register_info): Adjust call to
2514 val_print_optimized_out. Use value_of_register instead of
2515 get_frame_register_value.
2516 * mi/mi-main.c (output_register): Use value_of_register instead of
2517 get_frame_register_value.
2518 * valprint.c (valprint_check_validity): Likewise.
2519 (val_print_optimized_out): New value parameter. If the value is
2520 lval_register, print <not saved> instead.
2521 (value_check_printable, val_print_scalar_formatted): Adjust calls
2522 to val_print_optimized_out.
2523 * valprint.h (val_print_optimized_out): New value parameter.
2524 * value.c (struct value) <optimized_out>: Extend comment.
2525 (error_value_optimized_out): New function.
2526 (require_not_optimized_out): Use it. Use a different string for
2527 lval_register values.
2528 * value.h (error_value_optimized_out): New declaration.
2529 * NEWS: Mention <not saved>.
2531 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2533 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2534 strcmp to compare two symtab filenames.
2536 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2538 * symtab.c (search_symbols_equal): Delete.
2539 (sort_search_symbols_remove_dups): Replace call to
2540 search_symbols_equal by call to compare_search_syms,
2541 adjusting as necessary.
2543 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2546 * python/python.c: Document gdb.execute command in Python help.
2548 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2550 * python/py-frame.c (frame_info_to_frame_object): Use
2551 gdbpy_convert_exception. Clean up Python object on failure.
2553 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2555 * python/lib/gdb/command/frame_filters.py
2556 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2557 (ShowFrameFilterPriority.invoke): Ditto.
2559 2013-10-01 Keith Seitz <keiths@redhat.com>
2561 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2562 (parse_linespec): Make 'argptr' const.
2563 Remove temporary cast of 'argptr' to const char **.
2564 (decode_line_full): Pass const pointer to parse_linespec.
2565 (decode_line_1): Likewise.
2566 (decode_objc): Make local variable 'new_argptr' const.
2567 (find_function_symbols): Remove temporary cast to char *
2569 * objc-lang.c (find_imps): Make argument 'method' const.
2571 * objc-lang.h (find_imps): Likewise.
2573 2013-10-01 Keith Seitz <keiths@redhat.com>
2575 * completer.c (skip_quoted_chars): Make all arguments const.
2577 (skip_quoted): Likewise.
2578 * completer.h (skip_quoted_chars): Likewise.
2579 (skip_quoted): Likewise.
2580 * defs.h (skip_quoted): Remove duplicate declaration.
2581 * jv-exp.y: Include completer.h.
2582 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2583 * p-exp.y: Include completer.h.
2585 2013-10-01 Keith Seitz <keiths@redhat.com>
2587 * c-exp.y (parse_number): Make first argument const.
2588 Make a copy of the input to manipulate.
2589 (c_parse_escape): Make first argument const.
2590 Make local variable 'tokptr' const.
2591 (parse_string_or_char): Make first two arguments const.
2592 (macro_original_text): Make const.
2593 (lex_one_token): Make local variable 'tokstart' const.
2594 Likewise for local variables named 'p'.
2595 Cast away const for struct stoken (temporary).
2596 * c-lang.h (c_parse_escpae): Make first argument const.
2597 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2599 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2601 * f-exp.y (parse_number): Make first argument const.
2602 (match_string_literal): Make local variable 'tokstart'
2604 (yylex): Make local variable 'p' const.
2605 Cast away const for struct stoken (temporary).
2606 * go-exp.y (parse_number): Make first argument const.
2607 (parse_string_or_char): Likewise.
2608 Make local variable 'tokstart' const.
2609 (lex_one_token): Likewise for numerous locals called 'p'.
2610 Cast away const for struct stoken (temporary).
2611 * jv-exp.y (parse_number): Make first argument const.
2612 Make local variables 'tokstart' and 'tokptr' const.
2613 Cast away const for call to skip_quoted (temporary).
2614 (yylex): Make local variable 'p' const.
2615 Cast away const for struct stoken (temporary).
2616 * m2-exp.y (parse_number): Make local variable 'p' const.
2617 (yylex): Likewise for 'tokstart'.
2618 Cast away const for struct stoken (temporary).
2619 Make local variable 'p' const.
2620 * macroexp.c (get_character_constant): Pass a const string
2622 (get_string_literal): Likewise.
2623 (macro_expand_next): Make first argument const.
2624 Cast away const for init_shared_buffer.
2625 * macroexp.h (macro_expand_next): Make first argument const.
2626 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2627 Pass a const string to c_parse_escape.
2628 Make local variables 'p' and 'namestart' const.
2629 * parse.c (lexptr): Make const.
2630 (prev_lexptr): Likewise.
2631 (find_template_name_end): Return const.
2632 Make argument const, too.
2633 (parse_exp_in_context): Make first argument const.
2634 Remove the entire const_hack.
2635 (parse_exp_in_context_1): Make first argument const.
2636 * parser-defs.h (find_template_name_end): Return const.
2637 Make argument const, too.
2638 (lexptr): Make const.
2639 (prev_lexptr): Likewise.
2640 * utils.c (parse_escape): Make second argument const.
2641 * utils.h (parse_escape): Likewise.
2643 2013-10-01 Keith Seitz <keiths@redhat.com>
2645 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2647 (block_lookup): Make 'raw_name' and 'name' const.
2648 * ada-lex.l (processString): Update for struct stoken.ptr.
2649 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2650 (operator_stoken): Likewise.
2651 (lex_one_token): Remove temporary cast to char * for
2653 * f-exp.y (yylex): Likewise.
2654 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2655 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2656 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2658 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2659 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2660 * linespec.c (struct ls_parser): Make 'stream' const.
2661 (find_parameter_list_end): Make argument 'input' and local
2663 (linespec_lexer_lex_string): Make local variables 'start' and
2665 Use skip_spaces_const instead of skip_spaces.
2666 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2668 (parse_linespec): Temporarily cast 'argptr' to const for
2669 'parser->lexer.stream'.
2670 * m2-exp.y (yylex): Remove temporary cast to char * for
2672 * objc-lang.c (add_msglist): Make local variable 'p' const.
2673 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2674 (exp : STRING): Make 'sp' const.
2675 (parse_number): Make argument 'p' const.
2676 * parser-defs.h (struct stoken): Make 'ptr' const.
2678 2013-10-01 Doug Evans <dje@google.com>
2680 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2682 2013-10-01 Yao Qi <yao@codesourcery.com>
2684 * varobj.c (c_value_of_root): Remove declaration.
2685 (cplus_value_of_root, java_value_of_root): Likewise.
2686 (ada_value_of_root): Likewise.
2687 (struct language_specific) <value_of_root>: Remove.
2688 (languages): Update initialization.
2689 (check_scope): Move earlier.
2690 (c_value_of_root): Move earlier and rename to ...
2691 (value_of_root_1): ... this.
2692 (value_of_root): Caller update.
2693 (cplus_value_of_root, java_value_of_root): Remove.
2694 (ada_value_of_root): Remove.
2696 2013-10-01 Yao Qi <yao@codesourcery.com>
2698 * varobj.c (varobj_format_string): Remove "unknown".
2699 (languages): Remove the first element.
2700 * varobj.h (enum varobj_languages): Remove vlang_c.
2702 2013-10-01 Yao Qi <yao@codesourcery.com>
2704 * varobj.c (struct language_specific) <language>: Remove.
2705 (languages): Update the initialization.
2707 2013-10-01 Yao Qi <yao@codesourcery.com>
2709 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2710 "solib-target.h". Include "windows-tdep.h".
2711 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2712 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2713 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2714 windows-tdep.o to gdb_target_obs.
2716 2013-10-01 Yao Qi <yao@codesourcery.com>
2718 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2720 (amd64_windows_init_abi): Don't call set_solib_ops and
2721 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2722 windows_init_abi instead.
2723 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2725 (i386_cygwin_init_abi): Don't call set_solib_ops,
2726 set_gdbarch_has_dos_based_file_system and
2727 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2728 windows_init_abi instead.
2729 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2730 (windows_init_abi): New function.
2731 (windows_iterate_over_objfiles_in_search_order): Make it
2733 * windows-tdep.h (windows_init_abi): Declare.
2734 (windows_iterate_over_objfiles_in_search_order): Remove
2737 2013-10-01 Jerome Guitton <guitton@adacore.com>
2739 Checked in by Joel Brobecker <brobecker@adacore.com>
2740 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2741 incomplete dictionnary instead of None in case of missing
2742 environment variables.
2743 (elinos_init): in case of an incomplete environment, best
2744 effort to load system libraries instead of abort.
2746 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2748 * ada-lang.c (ada_has_this_exception_support): Ignore
2749 mst_solib_trampoline minimal symbols.
2751 2013-09-30 Tristan Gingold <gingold@adacore.com>
2753 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2754 hardware watchpoint.
2755 (i386_darwin_dr_set): Support 32 and 64 bit states.
2756 (i386_darwin_dr_get): Likewise.
2757 (i386_darwin_dr_set_control): Make static.
2758 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2759 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2761 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2763 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2764 Replace TIDGET with ptid_get_lwp.
2765 Replace GET_LWP with ptid_get_lwp.
2766 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2767 Replace BUILD_THREAD with ptid_build.
2768 Replace BUILD_LWP with ptid_build.
2769 Replace PIDGET with ptid_get_pid.
2770 Replace TIDGET with ptid_get_lwp.
2771 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2772 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2773 Replace TIDGET with ptid_get_lwp.
2774 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2775 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2776 Replace TIDGET with ptid_get_lwp.
2777 Replace GET_LWP with ptid_get_lwp.
2778 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2780 * breakpoint.c: Likewise.
2781 * common/ptid.c (ptid_is_pid): Condense check for
2782 null_ptid and minus_one_ptid.
2783 (ptid_lwp_p): New function.
2784 (ptid_tid_p): New function.
2785 * common/ptid.h: Update comments for accessors.
2786 (ptid_lwp_p): New prototype.
2787 (ptid_tid_p): New prototype.
2788 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2789 * gcore.c: Replace PIDGET with ptid_get_pid.
2790 * gdbthread.h: Likewise.
2791 * gnu-nat.c: Likewise.
2792 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2793 Replace TIDGET with ptid_get_lwp.
2794 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2795 * hppanbsd-nat.c: Likewise.
2796 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2797 Replace TIDGET with ptid_get_lwp.
2798 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2799 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2800 * infcmd.c: Likewise.
2801 * inferior.h: Likewise.
2802 * inflow.c: Likewise.
2803 * infrun.c: Likewise.
2804 * linux-fork.c: Likewise.
2805 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2806 Replace GET_PID with ptid_get_pid.
2807 Replace is_lwp with ptid_lwp_p.
2808 Replace GET_LWP with ptid_get_lwp.
2809 Replace BUILD_LWP with ptid_build.
2811 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2813 * common/linux-btrace.c: Move sys/syscall.h out of the
2814 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2815 Also check for SYS_perf_event_open before attempting to buid.
2817 2013-09-27 Doug Evans <dje@google.com>
2819 * dwarf2read.c (dwarf2_section_info): Add comment.
2820 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2822 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2823 (dwarf2_read_section): Delete unused local "header". Add section
2824 name to error message.
2825 (create_dwo_in_dwp): Tweak comment.
2826 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2828 * dwarf2read.c (die_reader_specs): Tweak comment.
2829 (get_section_bfd_owner, get_section_bfd_section): New functions.
2830 (get_section_name, get_section_file_name): New functions.
2831 (get_section_id, get_section_flags): New functions.
2832 (*): Use new functions to access section fields.
2834 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2835 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2836 arg "htab". All callers updated.
2837 (create_debug_types_hash_table): Remove redundant copy of
2839 (create_dwo_in_dwp): Tweak comments.
2840 (read_str_index): Tweak comment. Record dwarf form name in static
2843 2013-09-27 Pedro Alves <palves@redhat.com>
2845 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2846 (remote_filename_p): Add comment.
2847 * remote.c (remote_filename_p): Adjust to use
2848 REMOTE_SYSROOT_PREFIX.
2849 * solib.c (solib_find): When deciding whether we need to add a
2850 directory separator, check whether the sysroot is "remote:"
2851 instead of checking whether the patch has a drive spec. Add
2854 2013-09-27 Pedro Alves <palves@redhat.com>
2856 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2858 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2861 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2863 Fix set debug frame output.
2864 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2865 SENTINEL_FRAME entry lower to match enum frame_type order.
2867 2013-09-26 Pierre Muller <muller@sourceware.org>
2869 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2870 AMD64_R15_REGNUM when a register index is expected.
2871 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2872 Substitute in array.
2873 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2874 (amd64_push_arguments): Substitute in integer_regnum array.
2876 2013-09-25 Doug Evans <dje@google.com>
2878 * objfiles.c (allocate_objfile): Move comment to better place.
2880 New option "set debug symfile on".
2881 * NEWS: Mention "set debug symfile".
2882 * Makefile.in (SFILES): Add symfile-debug.c.
2883 (COMMON_OBS): Add symfile-debug.o.
2884 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2885 objfile's symbol functions.
2886 * objfiles.h (objfile_set_sym_fns): Declare.
2887 * symfile-debug.c: New file.
2888 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2889 objfile's symbol functions.
2890 (reread_symbols): Ditto.
2892 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2894 (add_symtab_fns): Update prototype.
2895 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2896 (registered_sym_fns): ... this.
2897 (symtab_fns): Update.
2898 (add_symtab_fns): New arg "flavour". All callers updated.
2899 (find_sym_fns): Rewrite to use new sym_fns registry.
2901 * symfile.h (struct sym_fns): Add "objfile" argument to
2902 sym_read_linetable. All uses updated.
2904 * symtab.c (domain_name, search_domain_name): New functions.
2905 * symtab.h (domain_name, search_domain_name): Declare.
2907 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2908 map_matching_symbols so objfile is first. All uses updated.
2909 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2910 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2912 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2915 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2918 2013-09-24 Doug Evans <dje@google.com>
2920 * objfiles.c (free_objfile): Move comment.
2922 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2924 * ada-exp.y (string_to_operator): Delete.
2925 (dummy_string_to_ada_operator): Delete.
2927 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2930 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2932 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2933 call_dummy_integer_regs, and classify.
2934 * amd64-tdep.h (amd64_classify): Add declaration.
2935 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2936 (amd64_reg_class): Delete, moved to i386-tdep.h.
2937 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2938 Replace call to amd64_classify by call to tdep->classify.
2939 (amd64_push_arguments): Get the list of registers to use for
2940 passing integer parameters from the gdbarch tdep structure,
2941 rather than using a hardcoded one. Replace calls to amd64_classify
2942 by calls to tdep->classify.
2943 (amd64_push_dummy_call): Get the register number used for
2944 the "hidden" argument from tdep->call_dummy_integer_regs.
2945 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2946 and tdep->call_dummy_integer_regs. Set tdep->classify.
2948 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2951 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2952 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2953 where tdep->memory_args_by_pointer is non-zero.
2955 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2958 * i386-tdep.h (struct gdbarch_tdep): Add new field
2959 integer_param_regs_saved_in_caller_frame.
2960 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2961 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2963 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2965 * amd64-windows-tdep.c: #include "value.h"
2966 (amd64_windows_classify): Delete.
2967 (amd64_windows_passed_by_integer_register)
2968 (amd64_windows_passed_by_xmm_register)
2969 (amd64_windows_passed_by_pointer)
2970 (amd64_windows_adjust_args_passed_by_pointer)
2971 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2972 (amd64_windows_push_dummy_call): New functions.
2973 (amd64_windows_init_abi): Remove setting of
2974 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2975 tdep->classify, tdep->memory_args_by_pointer and
2976 tdep->integer_param_regs_saved_in_caller_frame.
2977 Add call to set_gdbarch_push_dummy_call.
2979 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2981 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2982 objfile->original_name.
2984 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2986 Pass down original filename for objfile.
2987 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2988 * elfread.c (elf_symfile_read): Likewise.
2989 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2990 longer set ORIGINAL_NAME.
2991 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2992 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2993 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2994 symbol_file_add_from_bfd call.
2995 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2996 (macho_check_dsym): Add parameter filenamep. Change function comment.
2998 (macho_symfile_read): New variable dsym_filename. Update
2999 macho_check_dsym call. Use it for symbol_file_add_separate.
3000 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3001 it. Use it for objfile->original_name.
3002 (objfile_name): Return OBFD's filename, if available.
3003 * objfiles.h (allocate_objfile): Add new parameter name.
3004 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3005 * symfile-mem.c (symbol_file_add_from_memory): Update
3006 symbol_file_add_from_bfd call.
3007 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3009 (symbol_file_add_with_addrs): New parameter name, add function comment
3010 for it. Remove variable name. Update allocate_objfile call.
3011 (symbol_file_add_separate): New parameter name, add function comment
3012 for it. Update symbol_file_add_with_addrs call.
3013 (symbol_file_add_from_bfd): New parameter name. Update
3014 symbol_file_add_with_addrs call.
3015 (symbol_file_add): Update symbol_file_add_from_bfd call.
3016 (reread_symbols): New variable original_name. Save
3017 objfile->original_name by it.
3018 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3021 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3023 Code cleanup: Add objfile_name accessor function.
3024 * ada-lang.c (is_known_support_routine): Use objfile_name.
3025 * auto-load.c (source_gdb_script_for_objfile)
3026 (auto_load_objfile_script): Likewise.
3027 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3028 * dbxread.c (dbx_symfile_read): Likewise.
3029 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3030 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3031 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3032 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3033 (lookup_dwp_signatured_type, lookup_dwo_unit)
3034 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3035 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3036 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3037 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3038 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3039 (read_subrange_type, load_partial_dies, read_partial_die)
3040 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3041 (die_containing_type, build_error_marker_type, lookup_die_type)
3042 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3043 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3044 (get_DW_AT_signature_type, write_psymtabs_to_index)
3045 (save_gdb_index_command): Likewise.
3046 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3048 * expprint.c (dump_subexp_body_standard): Likewise.
3049 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3050 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3052 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3053 obj_name, use objfile_name for it, use the variable.
3054 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3056 * machoread.c (macho_symtab_read, macho_check_dsym)
3057 (macho_symfile_relocate): Likewise.
3058 * maint.c (maintenance_translate_address): Likewise.
3059 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3060 * minsyms.c (install_minimal_symbols): Likewise.
3061 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3063 (filter_overlapping_sections): Use objfile_name.
3064 (objfile_name): New function.
3065 * objfiles.h (struct objfile): Rename field name to original_name.
3066 (objfile_name): New prototype.
3067 * printcmd.c (sym_info, address_info): Use objfile_name.
3068 * probe.c (parse_probes, collect_probes, compare_probes)
3069 (info_probes_for_ops): Likewise.
3070 * progspace.c (clone_program_space): Likewise.
3071 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3072 (maintenance_info_psymtabs): Likewise.
3073 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3074 (source_section_scripts): Likewise.
3075 * python/py-objfile.c (objfpy_get_filename): Likewise.
3076 * python/py-progspace.c (pspy_get_filename): Likewise.
3077 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3078 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3079 * solib.c (solib_read_symbols): Likewise.
3080 * stabsread.c (scan_file_globals): Likewise.
3081 * stap-probe.c (handle_stap_probe): Likewise.
3082 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3083 (find_separate_debug_file_by_debuglink): Likewise.
3084 (reread_symbols): Likewise. Use the objfile field name renamed to
3086 (allocate_symtab): Use objfile_name.
3087 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3088 (dump_objfile, dump_msymbols, dump_symtab_1)
3089 (maintenance_print_msymbols, maintenance_print_objfiles)
3090 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3091 * target.c (target_translate_tls_address, target_info): Likewise.
3092 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3095 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * probe.c (parse_probes): Rename variable objfile_name to
3101 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Remove solib-sunos.c.
3104 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3105 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3106 * objfiles.c (rt_common_objfile): Remove.
3107 (free_objfile): Remove rt_common_objfile comparison.
3108 * objfiles.h (rt_common_objfile): Remove.
3109 * solib-sunos.c: Remove.
3110 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3112 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3114 Remove a.out NetBSD and OpenBSD hosts.
3115 * NEWS (Removed native configurations): New.
3116 * config/arm/nbsdaout.mh: Remove.
3117 * config/i386/nbsdaout.mh: Remove.
3118 * config/i386/obsdaout.mh: Remove.
3119 * config/m68k/nbsdaout.mh: Remove.
3120 * config/sparc/nbsdaout.mh: Remove.
3121 * config/vax/nbsdaout.mh: Remove.
3122 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3123 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3124 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3126 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3127 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3128 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3130 2013-09-23 Tom Tromey <tromey@redhat.com>
3132 * linespec.c (struct minsym_and_objfile): Remove.
3133 (minsym_and_objfile_d): Remove.
3134 (struct linespec, struct collect_info, linespec_parse_basic)
3135 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3136 (compare_msymbols, find_method, find_function_symbols)
3137 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3138 (add_minsym, search_minsyms_for_name): Update.
3140 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3142 * regcache.c: Add include of valprint.h.
3143 (dump_endian_bytes): Delete.
3144 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3146 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3148 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3150 2013-09-19 Pedro Alves <palves@redhat.com>
3152 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3155 2013-09-19 Pedro Alves <palves@redhat.com>
3156 Thomas Schwinge <thomas@codesourcery.com>
3157 Yue Lu <hacklu.newborn@gmail.com>
3159 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3160 Take a gdb_byte pointer instead of a char pointer.
3162 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3163 gnu_xfer_partial helper.
3164 (gnu_xfer_partial): New function.
3165 (gnu_target): Don't install a deprecated_xfer_memory hook.
3166 Install a to_xfer_partial hook.
3168 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3171 * main.c (captured_main): Replace catch_command_errors by
3172 catch_command_errors_const. Twice.
3173 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3174 (symbol_file_add): Make name parameter const.
3175 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3176 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3177 variable name. Change their usage accordingly.
3178 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3180 (symbol_file_add_main): Make args parameter const.
3182 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3183 Ulrich Weigand <uweigand@de.ibm.com>
3185 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3187 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3189 2013-09-18 Pedro Alves <palves@redhat.com>
3190 Yue Lu <hacklu.newborn@gmail.com>
3192 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3193 (gnu_create_inferior)
3194 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3195 (set_sig_thread_cmd): Use the lwpid field of ptids to
3196 store/extract thread ids instead of the tid field.
3197 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3199 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3201 * infcmd.c (default_print_one_register_info): Add detection of
3202 optimized out values.
3203 (default_print_registers_info): Switch to using
3204 get_frame_register_value.
3206 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3208 * infrun.c (handle_inferior_event): Check if we know the
3209 function start address before setting a resume breakpoint.
3211 2013-09-18 Pedro Alves <palves@redhat.com>
3213 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3214 minus_one_ptid instead of looking at the ptid's tid field and
3215 comparing that to -1.
3217 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3219 * main.h (get_gdb_program_name): Remove extra whitespace.
3221 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3223 * main.h (get_gdb_program_name): Add declaration.
3224 * main.c (get_gdb_program_name): Add definition.
3226 2013-09-17 Doug Evans <dje@google.com>
3228 * dwarf2read.c: Move definitions of complaint functions to after
3229 forward declarations of local functions.
3231 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3232 Pedro Alves <palves@redhat.com>
3235 * breakpoint.c (remove_threaded_breakpoints): New function.
3236 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3237 as thread_exit observer.
3239 2013-09-17 Pedro Alves <palves@redhat.com>
3242 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3243 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3244 * corelow.c (core_open):
3245 * frame.h (print_stack_frame, print_frame_info): New
3246 'set_current_sal' parameter.
3247 * infcmd.c (finish_command, kill_command): Adjust call to
3249 * inferior.c (inferior_command): Likewise.
3250 * infrun.c (normal_stop): Likewise.
3251 * linux-fork.c (linux_fork_context): Likewise.
3252 * record-full.c (record_full_goto_entry, record_full_restore):
3254 * remote-mips.c (common_open): Likewise.
3255 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3257 (print_frame_info): New 'set_current_sal' parameter. Set the last
3258 displayed sal depending on the new paremeter instead of looking at
3260 (backtrace_command_1, select_and_print_frame, frame_command)
3261 (current_frame_command, up_command, down_command): Adjust call to
3263 * thread.c (print_thread_info, restore_selected_frame)
3264 (do_captured_thread_select): Adjust call to print_stack_frame.
3265 * tracepoint.c (tfind_1): Likewise.
3266 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3267 (mi_cmd_stack_info_frame): Likewise.
3268 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3269 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3271 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3273 * value.c (isvoid_internal_fn): Replace "parameter" with
3276 2013-09-16 Stan Shebs <stan@codesourcery.com>
3278 * README: Update references to writing code for GDB.
3279 * configure.ac (build_warnings): Remove obsolete comment.
3280 * configure: Regenerate.
3281 * gdbarch.sh: Remove references to gdbint.texinfo.
3282 * gdbarch.h: Regenerate.
3283 * gdbtypes.c (objfile_type): Remove comments referencing internals
3286 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3288 * NEWS: Mention new convenience function $_isvoid.
3289 * value.c (isvoid_internal_fn): New function.
3290 (_initialize_values): Add new convenience function $_isvoid.
3292 2013-09-16 Pierre Muller <muller@sourceware.org>
3294 * arm-linux-tdep.c: Add "elf/common.h" header.
3295 Remove AT_HWCAP macro definintion as it is provided in
3297 * s390-tdep.c: Remove system header <elf.h>
3298 Add "elf/common.h" header for AT_HWCAP definition.
3299 (s390_core_read_description): Use correct CORE_ADDR
3300 for hwcap local variable used as third parameter
3301 of function target_auxv_search.
3303 2013-09-14 Pierre Muller <muller@sourceware.org>
3304 Tom Tromey <tromey@redhat.com>
3305 Pedro Alves <palves@redhat.com>
3307 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3308 mode if operating system doesn't know O_CLOEXEC.
3310 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3313 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3316 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3318 * NEWS: Mention TDB support.
3319 * features/s390-tdb.xml: New file.
3320 * features/s390-te-linux64.xml: New file.
3321 * features/s390x-te-linux64.xml: New file.
3322 * features/Makefile (WHICH): Add new tdescs above.
3323 (s390-te-linux64-expedite): Set.
3324 (s390x-te-linux64-expedite): Set.
3325 * features/s390-te-linux64.c: New file (generated).
3326 * features/s390x-te-linux64.c: New file (generated).
3327 * regformats/s390-te-linux64.dat: New file (generated).
3328 * regformats/s390x-te-linux64.dat: New file (generated).
3329 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3330 (HWCAP_S390_TE): Likewise.
3331 (S390_TDB_DWORD0_REGNUM): Likewise.
3332 (S390_TDB_DWORD0_REGNUM): Likewise.
3333 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3334 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3335 (S390_TDB_ATIA_REGNUM): Likewise.
3336 (S390_TDB_R0_REGNUM): Likewise.
3337 (S390_TDB_R1_REGNUM): Likewise.
3338 (S390_TDB_R2_REGNUM): Likewise.
3339 (S390_TDB_R3_REGNUM): Likewise.
3340 (S390_TDB_R4_REGNUM): Likewise.
3341 (S390_TDB_R5_REGNUM): Likewise.
3342 (S390_TDB_R6_REGNUM): Likewise.
3343 (S390_TDB_R7_REGNUM): Likewise.
3344 (S390_TDB_R8_REGNUM): Likewise.
3345 (S390_TDB_R9_REGNUM): Likewise.
3346 (S390_TDB_R10_REGNUM): Likewise.
3347 (S390_TDB_R11_REGNUM): Likewise.
3348 (S390_TDB_R12_REGNUM): Likewise.
3349 (S390_TDB_R13_REGNUM): Likewise.
3350 (S390_TDB_R14_REGNUM): Likewise.
3351 (S390_TDB_R15_REGNUM): Likewise.
3352 (S390_NUM_REGS): Increase.
3353 (S390_IS_TDBREGSET_REGNUM): New macro.
3354 (s390_regmap_tdb): Declare.
3355 (s390_sizeof_tdbregset): Define.
3356 (tdesc_s390_te_linux64): Declare.
3357 (tdesc_s390x_te_linux64): Likewise.
3358 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3359 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3360 (s390_regmap_tdb): New regmap.
3361 (s390_supply_tdb_regset): New function.
3362 (s390_tdb_regset): New regset.
3363 (s390_linux64v2_regset_sections): Add TDB regset to list.
3364 (s390x_linux64v2_regset_sections): Likewise.
3365 (s390_regset_from_core_section): Recognize TDB core note section.
3366 (s390_core_read_description): If HWCAP indicates TE support,
3367 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3368 (s390_gdbarch_init): Handle TDB regset.
3369 (_initialize_s390_tdep): Initialize new tdescs.
3370 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3371 (have_regset_tdb): New variable.
3372 (s390_native_supply): Support register invalidation.
3373 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3374 (check_regset): Treat ENODATA as "regset exists".
3375 (s390_linux_fetch_inferior_registers): Add TDB.
3376 (s390_read_description): Check for TDB existence and select
3378 * gdbserver/Makefile.in (clean): Add removal of new makefile
3380 (s390-te-linux64.c): New makefile target.
3381 (s390x-te-linux64.c): Likewise.
3382 * gdbserver/configure.srv (srv_regobj): Append new objects
3383 s390-te-linux64.o and s390x-te-linux64.o.
3384 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3385 s390x-te-linux64.xml, and s390-tdb.xml.
3386 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3388 (tdesc_s390_te_linux64): Likewise.
3389 (init_registers_s390x_te_linux64): Likewise.
3390 (tdesc_s390x_te_linux64): Likewise.
3391 (s390_check_regset): Treat ENODATA as "regset exists".
3392 (s390_arch_setup): Add TDB regset support.
3393 (initialize_low_arch): Initialize registers for new tdescs.
3395 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3397 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3398 (S390_IS_FPREGSET_REGNUM): New macro.
3399 * s390-tdep.c (s390_dwarf_regmap): Make const.
3400 (regnum_is_gpr_full): New function for replacing repeated code.
3401 (s390_pseudo_register_name): Use it.
3402 (s390_pseudo_register_type): Likewise.
3403 (s390_pseudo_register_read): Likewise.
3404 (s390_pseudo_register_write): Likewise.
3405 (s390_unwind_pseudo_register): Likewise.
3406 (s390_regmap_gregset): New format for regmap.
3407 (s390x_regmap_gregset): Likewise.
3408 (s390_regmap_fpregset): Likewise.
3409 (s390_regmap_upper): Likewise.
3410 (s390_regmap_last_break): Likewise.
3411 (s390_regmap_system_call): Likewise.
3412 (s390_supply_regset): Adjust to new regmap format.
3413 (s390_collect_regset): Likewise.
3414 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3415 (s390_native_collect): Likewise.
3416 (supply_gregset): Likewise.
3417 (fill_gregset): Likewise.
3418 (supply_fpregset): Likewise.
3419 (fill_fpregset): Likewise.
3420 (fetch_regset): Likewise.
3421 (store_regset): Likewise.
3422 (s390_linux_fetch_inferior_registers): Likewise.
3423 (s390_linux_fetch_inferior_registers): Likewise.
3425 2013-09-12 Andrew Pinski <apinski@cavium.com>
3427 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3429 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3431 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3433 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3435 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3437 2013-09-06 Pedro Alves <palves@redhat.com>
3439 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3440 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3441 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3442 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3443 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3446 2013-09-06 Pedro Alves <palves@redhat.com>
3448 * remote-sim.c (dump_mem): Constify buf parameter.
3449 gdbsim_xfer_inferior_memory): Rename to ...
3450 (gdbsim_xfer_memory): ... this. Adjust interface as
3451 target_xfer_partial helper.
3452 (gdbsim_xfer_partial): New function.
3453 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3454 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3456 2013-09-06 Pedro Alves <palves@redhat.com>
3458 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3459 host_address_to_string, and send debug output to gdb_stdlog.
3461 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3463 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3464 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3465 gdb_target_obs for cris target.
3466 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3467 (cris_gdbarch_init): Move calls to
3468 set_gdbarch_fetch_tls_load_module_address and
3469 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3470 Add call to gdbarch_init_osabi.
3471 * cris-linux-tdep.c: New file.
3472 * cris-tdep.h: New file.
3474 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3476 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3477 to deprecated_init_ui_hook.
3479 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3481 * cli/cli-interp.c (_initialize_cli_interp): Add a
3482 command_loop_proc to interp_procs.
3483 * event-top.c (cli_command_loop): Change signature to match
3484 interp_command_loop_ftype.
3485 * event-top.h (cli_command_loop): Same.
3486 * interps.c (interp_new): Require every interpreter to have a
3488 (current_interp_command_loop): Just call the command_loop_proc on
3489 the current interpreter.
3490 * tui/tui-interp.c (_initialize_tui_interp): Add a
3491 command_loop_proc to interp_procs.
3493 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3495 * cris-tdep.c (cris_gdbarch_init): Add call to
3496 get_gdbarch_fetch_tls_load_module_address.
3498 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3500 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3501 (cris_elf_gregset_t): Rename from elf_gregset_t.
3502 (crisv32_elf_gregset_t): Adjust.
3503 (cris_supply_gregset, fetch_core_registers): Adjust.
3505 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3507 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3509 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3511 * defs.h (deprecated_command_loop_hook): Remove, including
3512 references in comments.
3513 * interps.c (current_interp_command_loop): No longer use
3514 deprecated_command_loop_hook.
3515 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3517 * top.c (deprecated_command_loop_hook): Remove.
3519 2013-09-05 Pedro Alves <palves@redhat.com>
3521 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3522 local is now int instead of ULONGEST. Print it with %d
3523 instead of paddress.
3525 2013-09-05 Tristan Gingold <gingold@adacore.com>
3527 * MAINTAINERS: Remove avr maintainership.
3529 2013-09-05 Pedro Alves <palves@redhat.com>
3531 * findvar.c (value_of_register): Rework in terms of
3532 value_of_register_lazy.
3534 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3536 * symfile.c (add_symbol_file_command): Remove trailing
3537 whitespaces and blank line after comment.
3539 2013-09-05 Pedro Alves <palves@redhat.com>
3541 * tui/tui-regs.c (tui_register_format): Don't look at the
3542 register's name here. Return string representing register
3543 value instead of storing it in the data element.
3544 (tui_get_register): Compare register string representations
3545 instead of register value states and contents.
3547 2013-09-05 Pedro Alves <palves@redhat.com>
3550 * tui/tui-regs.c (tui_show_registers): Show registers of the
3551 selected frame, not the current frame.
3553 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3555 * MAINTAINERS (Write After Approval): Add myself to the list.
3557 2013-09-04 Doug Evans <dje@google.com>
3559 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3560 (queue_and_load_dwo_tu): New function.
3561 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3562 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3563 Make dependent_cu optional.
3564 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3565 and an older .gdb_index is in use, queue and load all its TUs too.
3567 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3570 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3571 variable search_flags.
3572 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3573 (OPF_RETURN_REALPATH): ... here.
3574 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3575 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3577 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3579 * solib.c (solib_find): Likewise. Four times.
3580 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3581 in the function comment and for the realpath_fptr variable.
3582 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3583 (find_and_open_source): Likewise. Twice.
3584 * symfile.c (symfile_bfd_open): Likewise, also twice.
3586 2013-09-04 Doug Evans <dje@google.com>
3588 * progspace.c (save_current_space_and_thread): Remove unnecessary
3589 call to save_current_inferior.
3591 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3593 * sh64-tdep.c (sh64_do_register): Return after printing message
3594 about unavailable register contents.
3596 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3597 Pedro Alves <palves@redhat.com>
3599 * symfile.c (add_symbol_file_command): Error out on unknown
3600 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3601 options and collapse into single conditional branch.
3603 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3605 * inf-child.c (inf_child_follow_fork): New parameter
3607 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3608 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3609 * inferior.h (detach_fork): Remove.
3610 * infrun.c (detach_fork): Adjust comment and make it
3612 (follow_fork): Pass detach_fork parameter to
3614 * linux-nat.c (linux_child_follow_fork): New parameter
3616 * target.c (target_follow_fork): New parameter detach_fork.
3617 Pass detach_fork as parameter and print its value.
3618 * target.h (struct target_ops) <to_follow_fork>: New int
3620 (target_follow_fork): New parameter detach_fork.
3622 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3624 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3625 Replace sec->bfd by sec->the_bfd_section->owner.
3627 2013-09-03 Yao Qi <yao@codesourcery.com>
3629 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3630 from linux_has_shared_address_space.
3631 (linux_has_shared_address_space): Call linux_is_uclinux.
3632 * linux-tdep.h (linux_is_uclinux): Declare.
3633 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3636 2013-09-03 Yao Qi <yao@codesourcery.com>
3638 * config/djgpp/fnchange.lst: Remove entry of
3639 i386-interix-nat.c and i386-interix-tdep.c.
3640 * configure.ac: Remove '*-*-interix*'.
3641 * configure: Re-generated.
3642 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3643 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3645 * osabi.c (gdb_osabi_names): Remove "Interix".
3647 2013-09-03 Yao Qi <yao@codesourcery.com>
3649 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3651 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3653 * record.h (record_print_flag) <record_print_src_line,
3654 record_print_insn_range>: Rename into ...
3655 (record_print_flag) <record_print_src_line,
3656 record_print_insn_range>: ... this. Update all users.
3658 2013-09-02 Pierre Muller <muller@sourceware.org>
3660 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3663 2013-09-02 Pierre Muller <muller@sourceware.org>
3665 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3666 by use of plongest function.
3668 2013-09-02 Tristan Gingold <gingold@adacore.com>
3670 * NEWS: Add entry mentioning support for native Windows x64
3673 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3674 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3675 (struct amd64_windows_frame_cache): New struct.
3676 (amd64_windows_w2gdb_regnum): New global.
3677 (pc_in_range, amd64_windows_frame_decode_epilogue)
3678 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3679 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3680 (amd64_windows_frame_this_id): New functions.
3681 (amd64_windows_frame_unwind): New static global.
3682 (amd64_windows_skip_prologue): New function.
3683 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3684 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3685 with amd64_windows_skip_prologue.
3687 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3691 2013-08-30 Pedro Alves <palves@redhat.com>
3693 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3696 2013-08-30 Pedro Alves <palves@redhat.com>
3698 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3701 2013-08-30 Pedro Alves <palves@redhat.com>
3703 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3704 Adjust arguments to print_stack_frame.
3706 2013-08-30 Pedro Alves <palves@redhat.com>
3708 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3710 2013-08-30 Pedro Alves <palves@redhat.com>
3712 * frame.h (show_and_print_stack_frame): Delete declaration.
3714 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3717 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3718 (archpy_name): Check for valid architecture.
3719 (archpy_disassemble): Ditto.
3721 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3723 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3724 instead of "long long" in call to ptrace64.
3726 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3728 * mi/mi-interp.c (mi_command_loop): Change signature to match
3729 interp_command_loop_ftype.
3730 (mi1_command_loop): Remove.
3731 (mi2_command_loop): Remove.
3732 (mi3_command_loop): Remove.
3733 (mi_interpreter_resume): Remove setting of
3734 deprecated_command_loop_hook.
3735 (_initialize_mi_interp): Set mi_command_loop as the command loop
3738 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3740 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3743 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3745 * value.c (allocate_value_contents): Make static.
3746 * value.h (allocate_value_contents): Remove prototype.
3748 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3750 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3751 of assembling value via allocate_value_lazy and attribute setter.
3752 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3753 assembling value via allocate_value_lazy and attribute setter.
3754 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3755 assembling value via allocate_value_lazy and attribute setter.
3757 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3759 * value.c (value_from_contents_and_address): Replace allocate_value and
3760 memcpy with value_from_contents.
3762 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3764 * python/py-framefilter.c (py_print_frame): Remove usage of
3765 PyString_AsString. Use python_string_to_host_string instead.
3766 Refactor function to work with a string as a new allocation
3767 instead of a pointer.
3768 (py_print_frame): Ditto.
3769 * python/lib/gdb/frames.py (return_list): Cain iterators together
3770 instead of adding them as a list.
3771 (_sort_list): Call return_list, and remove duplicate code.
3772 (execute_frame_filters): Convert iterator to a list with list().
3773 * python/lib/gdb/command/frame_filters.py
3774 (SetFrameFilterPriority._set_filter_priority): Convert priority
3775 attribute to an integer.
3776 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3777 wrapper function __next__.
3778 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3781 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3784 * python/py-framefilter.c (apply_frame_filter): Check
3785 gdb_python_initialized. Exit if the Python frame-filter code
3786 cannot be initialized.
3788 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3791 * top.c (print_gdb_version): Remove erroneous newline after help
3794 2013-08-29 Yao Qi <yao@codesourcery.com>
3796 * varobj.c (install_dynamic_child): Remove trailing space.
3797 Add one blank line after variable declaration.
3799 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3802 * corefile.c (get_exec_file): Use exec_filename.
3803 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3804 * exec.c (exec_close): Free EXEC_FILENAME.
3805 (exec_file_attach): New variable canonical_pathname. Use
3806 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3808 * exec.h (exec_filename): New.
3809 * inferior.c (print_inferior, inferior_command): Use
3810 PSPACE_EXEC_FILENAME.
3811 * mi/mi-main.c (print_one_inferior): Likewise.
3812 * progspace.c (clone_program_space, print_program_space): Likewise.
3813 * progspace.h (struct program_space): New field pspace_exec_filename.
3814 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3815 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3817 2013-08-28 Will Newton <will.newton@linaro.org>
3819 * common/linux-ptrace.c: Include stdint.h unconditionally.
3821 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3824 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3826 2013-08-28 Yao Qi <yao@codesourcery.com>
3827 Pedro Alves <palves@redhat.com>
3829 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3830 instead of stdio_fileopen.
3831 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3832 .Call stderr_fileopen instead of stdio_fileopen.
3833 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3834 [__MINGW32__] (stderr_file_fputs): New function.
3835 (stderr_fileopen): New function.
3836 * ui-file.h (stderr_fileopen): Declare.
3838 2013-08-27 Doug Evans <dje@google.com>
3840 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3841 (struct dwarf2_per_cu_data): Ditto.
3842 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3843 (process_imported_unit_die): Ditto.
3844 (follow_die_sig_1): Simplify assert.
3846 2013-08-27 Pedro Alves <palves@redhat.com>
3848 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3849 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3850 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3851 windows_xfer_memory directly.
3852 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3854 2013-08-27 Pedro Alves <palves@redhat.com>
3856 * darwin-nat.c (darwin_xfer_memory): Delete.
3857 (_initialize_darwin_inferior): Don't install a
3858 deprecated_xfer_memory method.
3860 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3861 Yao Qi <yao@codesourcery.com>
3863 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3864 (parse_no_frames_option): Remove.
3865 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3866 (mi_cmd_stack_list_args): Adjust.
3867 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3868 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3869 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3871 (list_args_or_locals): New parameter 'skip_unavailable'.
3873 * valprint.c (scalar_type_p): Rename to ...
3874 (val_print_scalar_type_p): ... this. Make extern.
3875 (val_print, value_check_printable): Adjust.
3876 * valprint.h (val_print_scalar_type_p): Declare.
3877 * value.c (value_entirely_unavailable): New function.
3878 * value.h (value_entirely_unavailable): Declare.
3880 * NEWS: Mention the new option "--skip-unavailable" to MI
3881 commands '-stack-list-locals', '-stack-list-arguments' and
3882 '-stack-list-variables'.
3884 2013-08-27 Yao Qi <yao@codesourcery.com>
3886 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3887 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3889 * mi/mi-getopt.c (mi_getopt): Remove.
3890 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3892 (mi_getopt): Call mi_getopt_1.
3893 (mi_getopt_silent): New.
3894 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3896 2013-08-26 Doug Evans <dje@google.com>
3899 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3900 .gdb_index is in use.
3901 * symfile.c (reread_symbols): Reset objfile->sf.
3903 * NEWS: Document "mt print objfiles" now takes optional regexp.
3904 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3905 regexp of objfiles to print.
3906 (_initialize_symmisc): Update doc string for "mt print objfiles".
3908 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3909 missing debug info checks.
3911 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3912 Ulrich Weigand <uweigand@de.ibm.com>
3914 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3915 line tables generated by XLC compiled binaries.
3917 2013-08-23 Doug Evans <dje@google.com>
3919 * symmisc.c (dump_symtab): Delete prototype.
3920 (dump_msymbols, dump_objfile): Ditto.
3921 (maintenance_info_symtabs): Mark as dont_repeat.
3922 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3924 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3925 debugging printf to better location.
3927 2013-08-23 Pedro Alves <palves@redhat.com>
3929 * target.c (target_read_live_memory): Change type of 'ret' local
3932 2013-08-23 Pedro Alves <palves@redhat.com>
3934 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3935 (remote_read_bytes): Change return type to LONGEST, and adjust to
3936 return a target_xfer_error on error.
3937 (remote_xfer_memory): Delete.
3938 (remote_flash_write): Change type of 'ret' local to LONGEST.
3939 (remote_xfer_partial, remote_xfer_partial): Adjust.
3940 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3942 2013-08-23 Pierre Muller <muller@sourceware.org>
3944 ARI fix: Push # directives to start of line.
3945 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3947 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3950 * breakpoint.c (enable_command, disable_command): Iterate over
3951 all specified breakpoint locations.
3953 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3955 * common/linux-ptrace.c (linux_fork_to_function): Push #
3956 directives to the start of the line.
3957 (linux_check_ptrace_features): Fix warning message to use
3960 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3962 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3963 nat/linux-waitpid.h.
3964 (linux-waitpid.o): New object file rule.
3965 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3966 (current_ptrace_options): Moved from linux-nat.c.
3967 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3969 (linux_fork_to_function): New function.
3970 (linux_grandchild_function): Likewise.
3971 (linux_child_function): Likewise.
3972 (linux_check_ptrace_features): New function, heavily
3973 based on linux-nat.c:linux_test_for_tracefork.
3974 (linux_enable_event_reporting): New function.
3975 (ptrace_supports_feature): Likewise.
3976 (linux_supports_tracefork): Likewise.
3977 (linux_supports_traceclone): Likewise.
3978 (linux_supports_tracevforkdone): Likewise.
3979 (linux_supports_tracesysgood): Likewise.
3980 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3981 gdbserver/linux-low.c.
3982 (linux_enable_event_reporting): New declaration.
3983 (linux_supports_tracefork): Likewise.
3984 (linux_supports_traceclone): Likewise.
3985 (linux_supports_tracevforkdone): Likewise.
3986 (linux_supports_tracesysgood): Likewise.
3987 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3988 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3989 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3990 * config/arm/linux.mh (NATDEPFILES): Likewise.
3991 * config/i386/linux.mh (NATDEPFILES): Likewise.
3992 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3993 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3994 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3995 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3996 * config/mips/linux.mh (NATDEPFILES): Likewise.
3997 * config/pa/linux.mh (NATDEPFILES): Likewise..
3998 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3999 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4000 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4001 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4002 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4003 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4004 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4005 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4006 ptrace's 4th argument's types.
4007 Check the type of PTRACE_TYPE_ARG4.
4008 * configure: Regenerate.
4009 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4010 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4011 (linux_supports_tracefork_flag): Remove.
4012 (linux_supports_tracesysgood_flag): Likewise.
4013 (linux_supports_tracevforkdone_flag): Likewise.
4014 (current_ptrace_options): Moved to
4015 common/linux-ptrace.c.
4016 (linux_tracefork_child): Remove.
4017 (my_waitpid): Remove.
4018 (linux_test_for_tracefork): Renamed to
4019 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4020 (linux_test_for_tracesysgood): Remove.
4021 (linux_supports_tracesysgood): Remove.
4022 (linux_supports_tracefork): Remove.
4023 (linux_supports_tracevforkdone): Remove.
4024 (linux_enable_tracesysgood): Remove.
4025 (linux_enable_event_reporting): Remove.
4026 (linux_init_ptrace): New function.
4027 (linux_child_post_attach): Call linux_init_ptrace.
4028 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4029 (linux_child_follow_fork): Call linux_supports_tracefork
4030 and linux_supports_tracevforkdone.
4031 (linux_child_insert_fork_catchpoint): Call
4032 linux_supports_tracefork.
4033 (linux_child_insert_vfork_catchpoint): Likewise.
4034 (linux_child_set_syscall_catchpoint): Call
4035 linux_supports_tracesysgood.
4036 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4037 * nat/linux-nat.h: New file.
4038 * nat/linux-waitpid.c: New file.
4039 * nat/linux-waitpid.h: New file.
4041 2013-08-22 Samuel Bronson <naesten@gmail.com>
4043 ARM Linux support for `catch syscall'.
4044 * syscalls/arm-linux.py: New file.
4045 * syscalls/arm-linux.xml: Likewise.
4046 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4047 (arm_linux_init_abi): Register the new function and syscall xml file.
4048 * data-directory/Makefile.in: Install the new syscall xml file.
4049 * NEWS: Brag about this.
4051 2013-08-22 Pedro Alves <palves@redhat.com>
4054 * corefile.c (target_xfer_memory_error): New function.
4055 (memory_error): Defer EIO to target_memory_error.
4056 (read_memory): Use target_xfer_partial, and handle finer-grained
4058 * target.c (target_xfer_error_to_string): New function.
4059 (memory_xfer_partial_1): If memory is known to be
4060 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4061 (target_xfer_partial): Make extern.
4062 * target.h (enum target_xfer_error): New enum.
4063 (target_xfer_error_to_string): Declare function.
4064 (target_xfer_partial): Declare function.
4065 (struct target_ops) <xfer_partial>: Adjust describing comment.
4067 2013-08-22 Alan Modra <amodra@gmail.com>
4069 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4070 * configure.tgt: Likewise as targets.
4072 2013-08-20 Doug Evans <dje@google.com>
4074 * buildsym.c (subfile_stack): Move here from buildsym.h.
4075 (pending_macros): Ditto.
4076 (get_macro_table): New function.
4077 (buildsym_init): Initialize subfile_stack.
4078 * coffread.c (type_vector,type_vector_length): Moved here from
4080 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4081 (coff_symtab_read): Use it.
4082 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4083 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4084 with call to get_macro_table.
4085 * stabsread.c (type_vector,type_vector_length): Moved here from
4087 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4088 * buildsym.h (get_macro_table): Declare.
4090 2013-08-20 Tom Tromey <tromey@redhat.com>
4092 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4094 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4096 2013-08-20 Doug Evans <dje@google.com>
4098 * blockframe.c: Remove #include "psymtab.h".
4099 * cp-support.c: Ditto.
4103 2013-08-20 Tom Tromey <tromey@redhat.com>
4106 * exceptions.h (return_mask): Now an enum.
4107 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4110 2013-08-20 Tom Tromey <tromey@redhat.com>
4112 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4114 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4115 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4116 * jit.c (jit_object_close_impl): Update.
4117 * jv-lang.c (get_dynamics_objfile): Update.
4118 * linespec.c (add_minsym): Use get_dynamics_objfile.
4119 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4120 (allocate_objfile): Don't initialize 'gdbarch' field.
4121 (get_objfile_arch): Update.
4122 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4124 (struct objfile) <gdbarch>: ... here. Remove.
4125 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4127 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4129 2013-08-20 Alan Modra <amodra@gmail.com>
4131 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4132 for IBM long double nan and inf.
4133 (floatformat_is_negative, floatformat_classify,
4134 floatformat_mantissa): Similarly.
4135 (floatformat_ieee_single, floatformat_ieee_double,
4136 floatformat_ieee_quad, floatformat_arm_ext,
4137 floatformat_ia64_spill): Delete unused vars.
4138 (_initialize_doublest): Delete unused function.
4139 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4140 little-endian variants of floatformat_ibm_long_double.
4142 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4144 * Makefile.in (SFILES): Remove common/target-common.c and
4145 add target/waitstatus.c.
4146 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4147 target/resume.h, target/wait.h and target/waitstatus.h.
4148 (COMMON_OBS): Remove target-common.o and add
4150 (target-common.o): Remove.
4151 (waitstatus.o): New target object file.
4152 * common/target-common.c: Move contents to
4153 target/waitstatus.c and remove.
4154 * common/target-common.h: Move contents to other files and
4156 (enum resume_kind: Move to target/resume.h.
4157 (TARGET_WNOHANG): Move to target/wait.h.
4158 (enum target_waitkind): Move to target/waitstatus.h.
4159 (struct target_waitstatus): Likewise.
4160 * target.h: Do not include target-common.h and
4161 include target/resume.h, target/wait.h and
4162 target/waitstatus.h.
4163 * target/resume.h: New file.
4164 * target/wait.h: New file.
4165 * target/waitstatus.h: New file.
4166 * target/waitstatus.c: New file.
4168 2013-08-19 Pedro Alves <palves@redhat.com>
4170 * linux-nat.c (linux_test_for_tracefork)
4171 (linux_test_for_tracesysgood, linux_child_follow_fork)
4172 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4173 (linux_nat_wait_1): Extend comment.
4174 (linux_async_pipe): Add comment.
4176 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4178 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4179 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4180 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4181 Update to account for fact that PC is now a pseudo-register.
4182 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4183 cases for RL78_PC_REGNUM.
4185 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4188 * top.c (quit_force): Skip writing history file
4189 if input is not from terminal.
4191 2013-08-14 Tom Tromey <tromey@redhat.com>
4193 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4194 resultthreadlist>: New fields.
4195 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4196 (remote_get_threadlist, remote_threadlist_iterator): Use
4197 new fields. Remove static variables.
4199 2013-08-14 Tom Tromey <tromey@redhat.com>
4201 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4202 remote_watch_data_address>: New fields.
4203 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4204 (process_stop_reply, remote_wait_as)
4205 (remote_check_watch_resources, remote_stopped_data_address): Update.
4207 2013-08-14 Tom Tromey <tromey@redhat.com>
4209 * remote.c (struct remote_state) <async_client_callback,
4210 async_client_context>: New fields.
4211 (async_client_callback, async_client_context): Remove.
4212 (remote_async_serial_handler, remote_async): Update.
4214 2013-08-14 Tom Tromey <tromey@redhat.com>
4216 * remote.c (sizeof_pkt): Remove.
4217 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4219 2013-08-14 Tom Tromey <tromey@redhat.com>
4221 * remote.c (struct remote_state) <use_threadinfo_query,
4222 use_threadextra_query>: New fields.
4223 (remote_threads_info, remote_threads_extra_info)
4224 (remote_open_1): Update.
4226 2013-08-14 Tom Tromey <tromey@redhat.com>
4228 * remote.c (struct remote_state) <finished_object,
4229 finished_annex, finished_offset>: New fields.
4230 (remote_read_qxfer): Use remote_state fields; remove static
4233 2013-08-14 Tom Tromey <tromey@redhat.com>
4235 * remote.c (struct remote_state) <last_sent_step>:
4237 (last_sent_step): Remove.
4238 (remote_resume, remote_wait_as): Update.
4240 2013-08-14 Tom Tromey <tromey@redhat.com>
4242 * remote.c (struct remote_state) <last_sent_signal>:
4244 (last_sent_signal): Remove.
4245 (new_remote_state, remote_resume, remote_wait_as): Update.
4247 2013-08-14 Tom Tromey <tromey@redhat.com>
4249 * remote.c (struct remote_state) <last_program_signals_packet>:
4251 (last_program_signals_packet): Remove.
4252 (remote_program_signals, remote_open_1): Update.
4254 2013-08-14 Tom Tromey <tromey@redhat.com>
4256 * remote.c (struct remote_state) <last_pass_packet>:
4258 (last_pass_packet): Remove.
4259 (remote_pass_signals, remote_open_1): Update.
4261 2013-08-14 Tom Tromey <tromey@redhat.com>
4263 * remote.c (struct remote_state) <remote_traceframe_number>:
4265 (remote_traceframe_number): Remove.
4266 (new_remote_state, remote_open_1, set_remote_traceframe)
4267 (remote_trace_find): Update.
4269 2013-08-14 Tom Tromey <tromey@redhat.com>
4271 * remote.c (struct remote_state) <general_thread, continue_thread>:
4273 (general_thread, continue_thread): Remove.
4274 (record_currthread, set_thread, set_general_process)
4275 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4276 (extended_remote_mourn_1): Update.
4278 2013-08-14 Tom Tromey <tromey@redhat.com>
4280 * remote.c (struct remote_state) <remote_desc>: New field.
4281 (remote_desc): Remove.
4282 (remote_threads_info, remote_threads_extra_info, remote_close)
4283 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4284 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4285 (remote_hostio_send_command, remote_file_put, remote_file_get)
4286 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4287 (remote_async, remote_new_objfile, set_range_stepping): Update.
4289 2013-08-14 Tom Tromey <tromey@redhat.com>
4291 * remote.c (remote_state): Now a pointer.
4292 (get_remote_state_raw): Update.
4293 (new_remote_state): New function.
4294 (_initialize_remote): Use new_remote_state.
4296 2013-08-14 Tom Tromey <tromey@redhat.com>
4298 * remote.c (remote_protocol_features): Now const.
4300 2013-08-14 Tom Tromey <tromey@redhat.com>
4302 * remote.c (crc32_table, crc32): Remove.
4303 (remote_verify_memory): Use xcrc32.
4305 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4307 * value.h (create_internalvar_type_lazy): Adjust prototype
4310 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4312 * common/format.c (parse_format_string): Don't allow '#' flag for
4313 pointer arguments in format string.
4315 2013-08-13 Pierre Muller <muller@sourceware.org>
4317 * utils.c (init_page_info): Only call tgetnum function
4318 if rl_get_screen_size did not return useful values.
4320 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4322 PR breakpoints/15117
4323 * linespec.c (linespec_parse_basic): Check for convenience
4324 variable or history value while parsing.
4326 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4328 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4330 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4331 different signals between the generic Linux kernel implementation
4333 (avr_linux_gdb_signal_from_target): Delete.
4334 (avr_linux_gdb_signal_to_target): Delete.
4335 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4337 2013-08-09 Doug Evans <dje@google.com>
4339 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4342 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4344 * linux-tdep.c: Define enum with generic signal numbers.
4345 (linux_gdb_signal_from_target): New function.
4346 (linux_gdb_signal_to_target): Likewise.
4347 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4348 methods to the functions above.
4349 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4350 (linux_gdb_signal_to_target): Likewise.
4351 * alpha-linux-tdep.c: Define new enum with signals different
4352 from generic Linux kernel.
4353 (alpha_linux_gdb_signal_from_target): New function.
4354 (alpha_linux_gdb_signal_to_target): Likewise.
4355 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4356 with the functions mentioned above.
4357 * avr-tdep.c: Define enum with differences between Linux kernel
4359 (avr_linux_gdb_signal_from_target): New function.
4360 (avr_linux_gdb_signal_to_target): Likewise.
4361 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4362 the functions mentioned above.
4363 * sparc-linux-tdep.c: Define enum with differences between SPARC
4364 and generic Linux kernel signal numbers.
4365 (sparc32_linux_gdb_signal_from_target): New function.
4366 (sparc32_linux_gdb_signal_to_target): Likewise.
4367 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4368 to the functions defined above.
4369 * xtensa-linux-tdep.c: Define enum with differences between
4370 Xtensa and Linux kernel generic signals.
4371 (xtensa_linux_gdb_signal_from_target): New function.
4372 (xtensa_linux_gdb_signal_to_target): Likewise.
4373 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4374 to the functions defined above.
4375 * mips-linux-tdep.c: Define enum with differences between
4376 signals in MIPS and Linux kernel generic ones.
4377 (mips_gdb_signal_to_target): New function.
4378 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4379 only different signals from the Linux kernel generic.
4380 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4381 the functions defined above.
4382 * mips-linux-tdep.h (enum mips_signals): Remove.
4384 2013-08-09 Pedro Alves <palves@redhat.com>
4386 * avr-tdep.c (XMALLOC): Delete macro.
4387 * cli/cli-dump.c (XMALLOC): Delete macro.
4389 2013-08-09 Pedro Alves <palves@redhat.com>
4391 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4392 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4393 (fopen_with_cleanup, add_dump_command): Make static.
4394 * cli/cli-dump.h: Delete file.
4395 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4398 2013-08-09 Pedro Alves <palves@redhat.com>
4400 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4403 2013-08-09 Pedro Alves <palves@redhat.com>
4405 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4408 2013-08-09 Pedro Alves <palves@redhat.com>
4410 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4411 (gcore_command): Use tilde_expand here, and when showing the
4412 filename to the user, show the expanded version.
4414 2013-08-09 Yao Qi <yao@codesourcery.com>
4416 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4419 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4421 * gcore.c (create_gcore_bfd): Use tilde_expand.
4423 2013-08-08 Yao Qi <yao@codesourcery.com>
4425 * frame.h (read_frame_local): Declare.
4426 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4428 * stack.c (read_frame_local): New.
4430 2013-08-08 Yao Qi <yao@codesourcery.com>
4432 * mi/mi-cmd-stack.c: Update comments to function
4433 list_args_or_locals.
4435 2013-08-07 Tom Tromey <tromey@redhat.com>
4438 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4439 (process_psymtab_comp_unit_reader): Use it.
4440 (process_psymtab_comp_unit): Update. Add "pretend_language"
4442 (dwarf2_build_psymtabs_hard): Update.
4443 (scan_partial_symbols): Pass CU's language to
4444 process_psymtab_comp_unit.
4446 2013-08-07 Tom Tromey <tromey@redhat.com>
4448 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4449 (dwarf2_gdb_index_functions): Update.
4450 * psymtab.c (find_symbol_file_from_partial): Remove.
4451 (psym_functions): Update.
4452 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4455 2013-08-07 Tom Tromey <tromey@redhat.com>
4457 * symfile.c (set_initial_language): Look up "main" symbol
4458 and use its language.
4459 * symtab.c (find_main_filename): Remove.
4460 * symtab.h (find_main_filename): Remove.
4462 2013-08-07 Tom Tromey <tromey@redhat.com>
4464 * dwarf2read.c (recursively_compute_inclusions): Add
4465 "immediate_parent" argument. Set symtab's "user" field
4467 (compute_symtab_includes): Update.
4469 2013-08-07 Tom Tromey <tromey@redhat.com>
4471 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4472 when adding label symbols.
4474 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4475 Ulrich Weigand <uweigand@de.ibm.com>
4477 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4478 * configure.host (powerpc64-*-aix*): Likewise.
4480 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4481 Ulrich Weigand <uweigand@de.ibm.com>
4483 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4485 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4486 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4487 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4488 * configure.ac: Check for ptrace64.
4489 * configure, config.in: Regenerate.
4491 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4492 Ulrich Weigand <uweigand@de.ibm.com>
4494 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4495 Call ptrace64 instead of ptrace if defined.
4496 Add macro addr_ptr to take care of ptrace address argument.
4497 (pdc_read_regs): Likewise.
4498 (pdc_write_regs): Likewise.
4499 (aix_thread_resume): Likewise.
4500 (fetch_regs_kernel_thread): Likewise.
4501 (store_regs_kernel_thread): Likewise.
4503 2013-08-07 Anton Blanchard <anton@samba.org>
4505 * MAINTAINERS: Add myself to Write After Approval.
4507 2013-08-05 Tom Tromey <tromey@redhat.com>
4509 * aix-thread.c (_initialize_aix_thread): Use
4510 complete_target_initialization.
4511 * bsd-uthread.c (_initialize_bsd_uthread): Use
4512 complete_target_initialization.
4513 * dec-thread.c (_initialize_dec_thread): Use
4514 complete_target_initialization.
4515 * ravenscar-thread.c (_initialize_ravenscar): Use
4516 complete_target_initialization.
4517 * sol-thread.c (_initialize_sol_thread): Use
4518 complete_target_initialization.
4519 * spu-multiarch.c (_initialize_spu_multiarch): Use
4520 complete_target_initialization.
4522 2013-08-05 Tom Tromey <tromey@redhat.com>
4524 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4525 * ada-lang.c (ada_lookup_simple_minsym): Return
4526 bound_minimal_symbol.
4527 * ada-lang.h (ada_lookup_simple_minsym): Update.
4528 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4529 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4530 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4531 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4532 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4533 * minsyms.c (msymbol_objfile): Remove.
4534 (lookup_minimal_symbol_internal): New function, from
4535 lookup_minimal_symbol.
4536 (lookup_minimal_symbol): Rewrite using
4537 lookup_minimal_symbol_internal.
4538 (lookup_bound_minimal_symbol): New function.
4539 * minsyms.h (msymbol_objfile): Remove.
4540 (lookup_bound_minimal_symbol): Declare.
4541 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4542 * parse.c (write_exp_msymbol): Change parameter to a
4543 bound_minimal_symbol.
4544 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4545 * parser-defs.h (write_exp_msymbol): Update.
4546 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4547 * symfile.c (simple_read_overlay_table): Use
4548 lookup_bound_minimal_symbol.
4549 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4550 (search_symbols): Likewise.
4551 (print_msymbol_info): Take a bound_minimal_symbol argument.
4552 (symtab_symbol_info, rbreak_command): Update.
4553 * symtab.h (struct symbol_search) <msymbol>: Change type
4554 to bound_minimal_symbol.
4555 * valops.c (find_function_in_inferior): Use
4556 lookup_bound_minimal_symbol.
4557 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4559 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4562 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4564 (async_cleanup_sigint_signal_handler): ... this.
4565 (initialize_sigint_signal_handler): Remove declaration.
4566 (handle_remote_sigint): Rename the declaration to ...
4567 (async_handle_remote_sigint): ... this.
4568 (handle_remote_sigint_twice): Rename the declaration to ...
4569 (async_handle_remote_sigint_twice): ... this.
4570 (async_remote_interrupt, async_remote_interrupt_twice)
4571 (remote_interrupt): Remove the declarations.
4572 (remote_interrupt_twice): Rename the declaration ...
4573 (sync_remote_interrupt_twice): ... this.
4574 (sigint_remote_twice_token): Rename the variable to ...
4575 (async_sigint_remote_twice_token): ... this.
4576 (sigint_remote_token): Rename the variable to ...
4577 (async_sigint_remote_token): ... this.
4578 (initialize_sigint_signal_handler): Rename the function to ...
4579 (async_initialize_sigint_signal_handler): ... this. Update the name
4581 (handle_remote_sigint): Rename the function to ...
4582 (async_handle_remote_sigint): ... this. Update the names inside.
4583 (handle_remote_sigint_twice): Rename the function to ...
4584 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4585 (cleanup_sigint_signal_handler): Rename the function to ...
4586 (async_cleanup_sigint_signal_handler): ... this.
4587 (remote_interrupt): Rename the function to ...
4588 (sync_remote_interrupt): this. Update the names inside.
4589 (remote_interrupt_twice): Rename the function to ...
4590 (sync_remote_interrupt_twice): this. Update the names inside.
4591 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4592 (_initialize_remote): Update the names inside.
4594 2013-08-02 Tom Tromey <tromey@redhat.com>
4597 * breakpoint.c (update_watchpoint, watchpoint_check)
4598 (watch_command_1): Update.
4599 * eval.c (fetch_subexp_value): Add "preserve_errors"
4601 * ppc-linux-nat.c (check_condition): Update.
4602 * value.h (fetch_subexp_value): Update.
4604 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4606 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4609 2013-08-01 Doug Evans <dje@google.com>
4612 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4613 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4614 Add assert of sig_entry->dwo_unit == NULL.
4615 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4616 had already been read.
4617 (read_signatured_type): Set per_cu.tu_read.
4620 * valops.c (value_struct_elt): Add missing call to check_typedef.
4621 (value_find_oload_method_list): Ditto.
4623 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4624 effectively, struct symbol_search **.
4625 (make_cleanup_free_search_symbols): Change arg to struct
4626 symbol_search **. All callers updated.
4627 (compare_search_syms): Compare symtab file name and block as well.
4628 (search_symbols_equal): New function.
4629 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4630 New args new_head, new_tail. Result is now void. Remove dups after
4631 sorting the symbols.
4632 (search_symbols): Sort all found symbols once, after all have been
4633 found, and remove duplicates. Simplify cleanup tracking of result.
4634 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4636 Further workarounds for binutils/15021.
4637 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4638 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4639 Watch for duplicate symtabs coming from type units.
4640 (compute_symtab_includes): Update call to
4641 recursively_compute_inclusions. Build vector of included symtabs
4643 * symtab.h (symtab_ptr): New typedef.
4644 (DEF_VEC_P (symtab_ptr)): New VEC type.
4645 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4648 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4650 * cli/cli-script.c (script_from_file): Remove use of
4652 * main.c (captured_main): Remove use of error_pre_print and
4654 * utils.c (error_pre_print, quit_pre_print): Remove.
4655 * utils.h (error_pre_print, quit_pre_print): Likewise.
4657 2013-08-01 Yao Qi <yao@codesourcery.com>
4659 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4661 (mi_cmd_stack_list_variables): Likewise.
4663 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4665 * exceptions.c (deprecated_throw_reason): Remove.
4666 * exceptions.h (deprecated_throw_reason): Remove.
4668 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4670 * remote-mips.c (mips_error): Replace use of
4671 deprecated_throw_reason with throw_verror. Use the error message
4672 passed to mips_error as the error message for throw_verror.
4674 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4676 * monitor.c (monitor_interrupt_query): Replace use of
4677 deprecated_throw_reason with quit.
4678 * nto-procfs.c (interrupt_query): Likewise.
4679 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4680 * remote-mips.c (mips_kill): Likewise.
4681 * remote.c (interrupt_query): Likewise.
4683 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4685 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4688 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4689 Yao Qi <yao@codesourcery.com>
4691 * tracepoint.c (trace_dump_command): Select the current frame.
4693 2013-07-30 Doug Evans <dje@google.com>
4695 * dwarf2read.c (process_queue): Add type signature to debug output.
4697 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4699 * value.c (value_fetch_lazy): Mark optimized out values as such
4700 rather than raising an error.
4702 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4704 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4705 before checking which bits of the parent, not the child, value are
4708 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4711 * top.c: Include "filenames.h".
4712 (set_history_filename): New function.
4713 (init_main): Install it as set hook of the "set history filename"
4716 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4718 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4719 attribute parameter.
4720 (dwarf2_const_value_data): Constify struct attribute parameter.
4721 (dwarf2_const_value): Constify struct attribute parameter.
4722 (dwarf2_const_value_attr): Constify struct attribute parameter.
4723 (lookup_die_type): Constify struct attribute parameter.
4724 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4725 (follow_die_ref_or_sig): Constify struct attribute parameter.
4726 (follow_die_ref): Constify struct attribute parameter.
4727 (follow_die_sig): Constify struct attribute parameter.
4728 (get_DW_AT_signature_type): Constify struct attribute parameter.
4729 (get_type_unit_group): Constify struct attribute parameter.
4730 (fill_in_loclist_baton): Constify struct attribute parameter.
4731 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4732 (type_unit_group): Constify struct attribute parameter.
4734 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4736 * dwarf2read.c (attr_form_is_block): Make argument const.
4737 (attr_form_is_section_offset): Make argument const.
4738 (attr_form_is_constant): Make argument const.
4739 (attr_form_is_ref): Make argument const.
4741 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4743 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4745 (attr_form_is_ref): Moved below attr_form_is_constant.
4747 2013-07-29 Doug Evans <dje@google.com>
4749 * main.c (captured_command_loop): Tweak comment.
4751 * target.c (target_async_permitted_1): Fix comment.
4753 * symtab.c (iterate_over_some_symtabs): Add comment.
4755 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4757 2013-07-27 Yao Qi <yao@codesourcery.com>
4759 * NEWS: Mention that GDBserver now supports hardware
4760 watchpoints on the MIPS GNU/Linux target.
4762 2013-07-27 Yao Qi <yao@codesourcery.com>
4764 * Makefile.in (HFILES_NO_SRCDIR): Add
4765 common/mips-linux-watch.h.
4766 (mips-linux-watch.o): New rule.
4767 * common/mips-linux-watch.c: New.
4768 * common/mips-linux-watch.h: New.
4769 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4770 * mips-linux-nat.c: Include mips-linux-watch.h.
4771 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4772 to common/mips-linux-watch.h.
4773 (MAX_DEBUG_REGISTER): Likewise.
4774 (enum pt_watch_style): Likewise.
4775 (struct mips32_watch_regs): Likewise.
4776 (struct mips64_watch_regs): Likewise.
4777 (struct pt_watch_regs): Likewise.
4778 (struct mips_watchpoint): Likewise.
4779 (mips_linux_watch_get_irw_mask): Move to
4780 common/mips-linux-watch.c.
4781 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4782 (mips_linux_watch_get_watchlo): Likewise.
4783 (mips_linux_watch_set_watchlo): Likewise.
4784 (mips_linux_watch_get_watchhi): Likewise.
4785 (mips_linux_watch_set_watchhi): Likewise.
4786 (mips_linux_read_watch_registers): Likewise.
4787 (mips_linux_watch_type_to_irw): Likewise.
4788 (mips_linux_stopped_data_address, fill_mask): Likewise.
4789 (mips_linux_watch_try_one_watch): Likewise.
4790 (mips_linux_watch_populate_regs): Likewise.
4792 2013-07-27 Yao Qi <yao@codesourcery.com>
4794 * mips-linux-nat.c (get_irw_mask): Rename to ...
4795 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4796 'set' to 'n'. Update function comment. All callers changed.
4797 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4798 function comment. All callers changed.
4799 (get_num_valid): Rename to ...
4800 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4801 'set' to 'n'. Update function comment. All callers changed.
4802 (get_watchlo): Rename to ...
4803 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4804 'set' to 'n'. Update function comment. All callers changed.
4805 (set_watchlo): Rename to ...
4806 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4807 'set' to 'n'. Update function comment. All callers changed.
4808 (get_watchhi): Rename to ...
4809 (mips_linux_watch_get_watchhi): ... this. Update function
4810 comment. All callers changed.
4811 (set_watchhi): Rename to ...
4812 (mips_linux_watch_set_watchhi): ... this. Update function
4813 comment. All callers changed.
4814 (mips_linux_read_watch_registers): Update function comment.
4815 Add new parameters 'lwpid', 'watch_readback', and
4816 'watch_readback_valid'. Update.
4817 (type_to_irw): Rename to ...
4818 (mips_linux_watch_type_to_irw): ... this. Update function
4819 comment. All callers changed.
4820 (fill_mask): Update function comment.
4821 (try_one_watch): Rename to ...
4822 (mips_linux_watch_try_one_watch): ... this. Change the type
4823 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4824 (populate_regs_from_watches): Rename to ...
4825 (mips_linux_watch_populate_regs): ... this. Add parameter
4826 'current_watches'. All callers changed.
4828 2013-07-27 Yao Qi <yao@codesourcery.com>
4830 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4832 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4833 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4834 (struct pt_watch_regs): Likewise.
4835 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4836 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4837 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4838 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4839 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4841 2013-07-27 Yao Qi <yao@codesourcery.com>
4843 * breakpoint.h: Include break-common.h.
4844 (enum target_hw_bp_type): Move to ...
4845 * common/break-common.h: ... here. New.
4847 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4849 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4850 process group regardless of having tty on stdin.
4852 2013-07-25 Doug Evans <dje@google.com>
4854 * linux-fork.h (detach_fork): Delete.
4856 2013-07-25 Tom Tromey <tromey@redhat.com>
4858 PR remote/15256, PR remote/15266:
4859 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4860 * monitor.c (monitor_detach): Use unpush_target.
4861 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4862 * remote-mips.c (mips_detach): Use unpush_target. Don't
4864 * remote-sim.c (gdbsim_detach): Use unpush_target.
4865 * target.c (pop_target): Remove.
4866 (pop_all_targets_above): Don't call target_close.
4867 (target_close): Assert that the target is unpushed.
4868 * target.h (pop_target): Don't declare.
4869 * tracepoint.c (tfile_open): Use unpush_target.
4871 2013-07-25 Tom Tromey <tromey@redhat.com>
4873 * linux-thread-db.c (init_thread_db_ops): Call
4874 complete_target_initialization.
4875 (_initialize_thread_db): Don't call add_target.
4876 * target.c (complete_target_initialization): New function.
4877 (add_target_with_completer): Call it.
4878 * target.h (complete_target_initialization): Declare.
4880 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4882 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4883 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4884 (HPPANBSD_SIZEOF_GREGS): New define.
4885 (hppaobsd_supply_gregset): Handle additional registers.
4886 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4887 we provide more registers now.
4888 (hppabsd_supply_gregset): Supply additional registers.
4889 (hppabsd_collect_gregset): Collect additional registers.
4891 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4893 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4894 (hppabsd_dwarf2_frame_init_reg): New function.
4895 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4897 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4899 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4900 'z' format code. Remove error for optimized out values, standard
4901 code will handle these fine.
4903 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4905 * NEWS: Mention new 'z' formatter.
4906 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4907 (_initialize_printcmd): Mention 'z' formatter in help text of the
4910 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4912 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4915 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4917 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4918 interface can evaluate arguments. Fallback to the old mode if it
4920 (create_exception_master_breakpoint): Likewise.
4921 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4922 (struct sym_probe_fns elf_probe_fns): Export function above to the
4924 * probe.c (can_evaluate_probe_arguments): New function.
4925 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4927 (can_evaluate_probe_arguments): New function prototype.
4928 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4929 probe interface can evaluate arguments. Fallback to the old mode
4931 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4932 interface can evaluate arguments. Warning the user if it cannot.
4933 (stap_can_evaluate_probe_arguments): New function.
4934 (struct probe_ops stap_probe_ops): Export function above to the
4936 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4937 New function pointer.
4939 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4941 * Makefile.in (SFILES): Add common/target-common.c.
4942 Add common/target-common.h to headers.
4943 (COMMON_OBS): Add target-common.o.
4944 (target-common.o): New target.
4945 * linux-nat.h (resume_kind): Move to common/target-common.h.
4946 * target.c (target_waitstatus_to_string): Move to
4947 common/target-common.c.
4948 * target.h: Include target-common.h.
4949 (target_waitkind): Move to common/target-common.h.
4950 (target_waitstatus): Likewise.
4951 (TARGET_WNOHANG): Likewise.
4952 * common/target-common.c: New file.
4953 * common/target-common.h: New file.
4955 2013-07-24 Doug Evans <dje@google.com>
4957 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4960 2013-07-23 Yao Qi <yao@codesourcery.com>
4962 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4963 parameter 'gdbarch'.
4964 (i386_stack_tramp_frame_sniffer): Caller update.
4965 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4966 parameter 'gdbarch' and 'target'.
4967 (i386_linux_core_read_description): Caller update.
4968 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4970 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4973 2013-07-23 Tom Tromey <tromey@redhat.com>
4975 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4978 2013-07-22 Doug Evans <dje@google.com>
4980 * exec.h (remove_target_sections): Delete arg abfd.
4981 * exec.c (exec_close): Update call to remove_target_sections.
4982 (remove_target_sections): Delete arg abfd.
4983 * solib.c (update_solib_list): Ditto.
4984 (reload_shared_libraries_1): Ditto.
4985 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4986 * target.h (struct target_section): Rename key to owner.
4989 2013-07-22 Tom Tromey <tromey@redhat.com>
4991 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4993 2013-07-22 Tom Tromey <tromey@redhat.com>
4995 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4996 Simplify cleanup handling.
4998 2013-07-22 Tom Tromey <tromey@redhat.com>
5000 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5001 on all return paths.
5003 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5005 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5006 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5007 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5009 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5011 * top.c (print_gdb_version): Add help, apropos description and
5012 url to online documentation.
5014 2013-07-19 Hui Zhu <hui@codesourcery.com>
5017 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5019 2013-07-19 Yao Qi <yao@codesourcery.com>
5021 * target.c (update_current_target): Change the default action
5022 of 'to_traceframe_info' from tcomplain to return_zero.
5023 * target.h (struct target_ops) <to_traceframe_info>: Add more
5025 * valops.c (read_value_memory): Call
5026 traceframe_available_memory unconditionally.
5028 2013-07-18 Yao Qi <yao@codesourcery.com>
5030 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5031 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5032 symbol without prefix. If found, set its type to
5033 'mst_solib_trampoline'.
5035 2013-07-17 Doug Evans <dje@google.com>
5037 * NEWS: Mention "set print raw frame-arguments".
5038 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5039 * stack.c (print_raw_frame_arguments): New static global.
5040 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5041 (_initialize_stack): New command "set/show print raw frame-arguments".
5042 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5043 (set_print_raw, show_print_raw): New functions.
5044 (_initialize_valprint): New prefix command "set/show print raw".
5045 * valprint.h (value_print_options): Improve comments.
5047 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5048 of all *list variables.
5050 * gdbcmd.h (togglelist): Delete.
5051 * cli/cli-cmds.c (togglelist): Delete.
5052 (init_cmd_lists): Update.
5053 * cli/cli-cmds.h (togglelist): Delete.
5055 2013-07-17 Tom Tromey <tromey@redhat.com>
5057 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5060 2013-07-16 Doug Evans <dje@google.com>
5062 * nto-tdep.c (nto_relocate_section_addresses): Update,
5063 target_section.bfd deleted.
5064 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5065 * s390-tdep.c (s390_load): Ditto.
5066 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5068 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5070 * common/format.c (parse_format_string): Add checks for NULL
5071 character before calling strchr.
5073 2013-07-16 Doug Evans <dje@google.com>
5075 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5076 temp_pathname argument.
5077 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5078 when opening the file fails.
5080 * target.h (struct target_section): Delete member bfd.
5081 All users updated to use the_bfd_section->owner instead.
5082 * exec.c (add_to_section_table): Assert bfd is expected value.
5083 Remove initialization of target_section.bfd.
5084 (remove_target_sections): Update.
5085 (section_table_available_memory): Update.
5086 (section_table_xfer_memory_partial): Update.
5087 (print_section_info): Update.
5088 (exec_set_section_address): Update.
5089 * record-full.c (record_full_core_xfer_partial): Update.
5090 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5091 * solib-target.c (solib_target_relocate_section_addresses): Update.
5092 * symfile.c (build_section_addr_info_from_section_table): Update.
5093 * target.c (memory_xfer_live_readonly_partial): Update.
5094 (memory_xfer_partial_1): Update.
5096 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5098 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5099 now available for embedded (BookE) and server (BookS) processors,
5100 correct mentions of 'booke' and adjust comments accordingly in order to
5101 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5102 (have_ptrace_booke_interface): Rename function and variable
5103 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5104 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5105 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5106 'hwdebug_point_cmp'. Update all uses.
5107 (booke_find_thread_points_by_tid): Rename function
5108 'booke_find_thread_points_by_tid' to
5109 'hwdebug_find_thread_points_by_tid'. Update all uses.
5110 (booke_insert_point): Rename function 'booke_insert_point' to
5111 'hwdebug_insert_point'. Update all uses.
5112 (booke_remove_point): Rename function 'booke_remove_point' to
5113 'hwdebug_remove_point'. Update all uses.
5115 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5117 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5118 numbers with enum values.
5120 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5123 * thread.c (thread_apply_all_command): Check for valid threads
5125 (thread_array_cleanup): New struct.
5126 (set_thread_refcount): New function.
5128 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5130 * infcmd.c (default_print_one_register_info): Reuse function
5133 2013-07-10 Tom Tromey <tromey@redhat.com>
5135 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5136 (ada-exp.o): New target.
5138 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5140 * mt-tdep.c (mt_registers_info): Call
5141 get_no_prettyformat_print_options instead of
5142 get_raw_print_options (regression by last patch from Doug
5145 2013-07-09 Pedro Alves <palves@redhat.com>
5147 Checked in by Joel Brobecker <brobecker@adacore.com>.
5148 * ada-lang.c (coerce_unspec_val_to_type): Use
5149 value_optimized_out_const.
5150 * value.c (value_optimized_out_const): New function.
5151 * value.h (value_optimized_out_const): New declaration.
5153 2013-07-09 Doug Evans <dje@google.com>
5155 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5156 Enum values rename as well. All uses updated.
5157 * valprint.h (value_print_options): Rename member pretty to
5158 pretty format. Rename member prettyprint_arrays to
5159 prettyformat_arrays. Rename member prettyprint_structs to
5160 prettyformat_structs. All uses updated.
5161 (get_no_prettyformat_print_options): Renamed from
5162 get_raw_print_options.
5163 * valprint.c (get_no_prettyformat_print_options): Renamed from
5164 get_raw_print_options. All callers updated.
5165 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5166 All callers updated.
5167 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5168 All callers updated.
5169 (_initialize_valprint): Improve help text for "set print pretty" and
5172 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5174 * value.c (value_bits_valid): Revert previous change, and change
5175 by Pedro on 2013-07-04, due to regressions in
5176 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5178 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5179 Pedro Alves <palves@redhat.com>
5181 * value.c (value_bits_valid): If the value is not lval_computed
5182 or has no check validity handler then the answer is the
5183 optimized_out flag, otherwise defer to the handler.
5185 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5187 * top.c (print_gdb_configuration): Explain in output of
5188 --configuration what does "relocatable" mean.
5190 * main.c (print_gdb_help): Regroup options in the --help text.
5191 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5192 the relevant discussions.
5194 2013-07-06 Yao Qi <yao@codesourcery.com>
5196 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5197 Remove parameter 'lsal'.
5198 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5199 to inner block. Caller update.
5200 (base_breakpoint_create_breakpoints_sal): Update.
5201 (bkpt_create_breakpoints_sal): Likewise.
5202 (tracepoint_create_breakpoints_sal): Likewise.
5203 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5204 element 0 of vector 'canonical->sals'.
5206 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5208 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5209 register number instead of the pseudo register one.
5210 (rs6000_dwarf2_reg_to_regnum): Likewise.
5212 2013-07-04 Pedro Alves <palves@redhat.com>
5214 * findvar.c (value_of_register): Use allocate_optimized_out_value
5215 if the register has been optimized out, instead of
5216 set_value_optimized_out.
5217 * frame-unwind.c (frame_unwind_got_optimized): Use
5218 allocate_optimized_out_value.
5220 2013-07-04 Pedro Alves <palves@redhat.com>
5222 * value.c (value_bits_valid): If the value is not lval_computed,
5223 or doesn't have a check_validity hook, assume the value is entirely
5226 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5228 * stack.c (read_frame_arg): No longer fetch lazy values.
5229 * value.c (value_optimized_out): If the value is not already
5230 marked optimized out, and is lazy then fetch it.
5231 (value_primitive_field): Move optimized out check to later in the
5232 function, after we have loaded any lazy values.
5233 (value_fetch_lazy): Use optimized out flag directly rather than
5234 calling optimized_out method.
5236 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5238 * valops.c: Don't include "user-regs.h".
5239 (value_fetch_lazy): Moved to value.c.
5240 * value.c: Include "user-regs.h".
5241 (value_fetch_lazy): Moved from valops.c.
5243 2013-07-04 Yao Qi <yao@codesourcery.com>
5246 2013-06-27 Yao Qi <yao@codesourcery.com>
5248 * common/create-version.sh: Update comments. Handle the case
5249 that TARGET_ALIAS is empty.
5251 2013-07-03 Pedro Alves <palves@redhat.com>
5253 * Makefile.in (config.status): Depend on development.sh.
5254 (aclocal_m4_deps): Add libmcheck.m4.
5255 * acinclude.m4: Include libmcheck.m4.
5256 * configure.ac: Source development.sh instead of setting
5257 'development' here. --enable-libmcheck/--disable-libmcheck code
5258 factored out to GDB_AC_LIBMCHECK. Run it.
5259 * development.sh: New file.
5260 * libmcheck.m4: New file.
5261 * configure: Regenerate.
5263 2013-07-02 Tom Tromey <tromey@redhat.com>
5265 * contrib/ari/update-web-ari.sh: Update for version.in change.
5267 2013-07-02 Tom Tromey <tromey@redhat.com>
5269 * common/ptid.h: Comment fixes.
5271 2013-07-01 Tom Tromey <tromey@redhat.com>
5273 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5274 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5275 (dwarf2_read_index, create_all_comp_units): Update.
5277 2013-07-01 Tom Tromey <tromey@redhat.com>
5279 * configure.ac (build_warnings): Add -Wold-style-definition.
5280 * configure: Rebuild.
5281 * machoread.c (_initialize_machoread): Use "(void)".
5282 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5285 2013-07-01 Tom Tromey <tromey@redhat.com>
5287 * configure.ac (build_warnings): Add -Wold-style-declaration.
5288 * configure: Rebuild.
5289 * dsrec.c (make_srec): Use "static const", not "const static".
5290 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5292 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5293 Use "static const", not "const static".
5294 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5296 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5298 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5300 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5302 (v850_dbtrap_breakpoint_from_pc): Likewise.
5303 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5306 2013-07-01 Tom Tromey <tromey@redhat.com>
5308 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5309 * configure: Rebuild.
5311 2013-07-01 Pedro Alves <palves@redhat.com>
5313 * defs.h: Include "pathmax.h".
5314 * utils.c: Don't include sys/param.h.
5315 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5316 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5317 instead of MAXPATHLEN.
5318 * solib-sunos.c: Don't include sys/param.h.
5319 * xcoffread.c: Don't include sys/param.h.
5320 * bsd-kvm.c: Don't include sys/param.h.
5321 * darwin-nat.c: Don't include sys/param.h.
5322 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5323 * darwin-nat-info.c: Don't include sys/param.h.
5324 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5326 * i386obsd-nat.c: Don't include sys/param.h.
5327 * inf-child.c: Don't include sys/param.h.
5328 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5329 * linux-fork.c: Don't include sys/param.h.
5330 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5331 * linux-nat.c: Don't include sys/param.h.
5332 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5333 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5334 * m68klinux-nat.c: Don't include sys/param.h.
5335 * nbsd-nat.c: Don't include sys/param.h.
5336 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5337 * ppc-linux-nat.c: Don't include sys/param.h.
5338 * rs6000-nat.c: Don't include sys/param.h.
5339 * spu-linux-nat.c. Don't include sys/param.h.
5340 * windows-nat.c: Don't include sys/param.h.
5341 * xtensa-linux-nat.c: Don't include sys/param.h.
5342 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5344 2013-07-01 Pedro Alves <palves@redhat.com>
5346 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5347 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5348 * gnulib/aclocal.m4: Regenerate.
5349 * gnulib/config.in: Regenerate.
5350 * gnulib/configure: Regenerate.
5351 * gnulib/import/pathmax.h: New file.
5352 * gnulib/import/Makefile.am: Regenerate.
5353 * gnulib/import/Makefile.in: Regenerate.
5354 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5355 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5356 * gnulib/import/m4/pathmax.m4: New file.
5358 2013-07-01 Pedro Alves <palves@redhat.com>
5360 * configure.ac (GDBINIT): Define, depending on host.
5361 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5362 * top.c (PATH_MAX): Delete fallback definition.
5363 (GDBINIT_FILENAME): Delete.
5364 (gdbinit): Reimplement as const char array set to the GDBINIT
5366 * top.h (gdbinit): Make const.
5367 * configure, config.in: Regenerate.
5369 2013-07-01 Pedro Alves <palves@redhat.com>
5371 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5372 * cli/cli-cmds.h (source_script): Likewise.
5373 * exceptions.c (catch_command_errors_const): New function.
5374 * exceptions.h (catch_command_errors_const): Declare.
5375 * main.c (get_init_files): Make parameters const, and adjust.
5376 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5377 'local_gdbinit' locals const. Adjust to use
5378 catch_command_errors_const.
5379 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5380 'local_gdbinit' locals const.
5382 2013-07-01 Pedro Alves <palves@redhat.com>
5384 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5385 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5386 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5389 2013-07-01 Pedro Alves <palves@redhat.com>
5391 Import the "unistd" gnulib module.
5392 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5393 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5394 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5395 import/m4/unistd_h.m4.
5396 * gnulib/aclocal.m4: Renenerate.
5397 * gnulib/config.in: Renenerate.
5398 * gnulib/configure: Renenerate.
5399 * gnulib/import/Makefile.am: Renenerate.
5400 * gnulib/import/Makefile.in: Renenerate.
5401 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5402 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5403 * gnulib/import/m4/off_t.m4: New file.
5404 * gnulib/import/m4/ssize_t.m4: New file.
5405 * gnulib/import/m4/sys_types_h.m4: New file.
5406 * gnulib/import/m4/unistd_h.m4: New file.
5407 * gnulib/import/sys_types.in.h: New file.
5408 * gnulib/import/unistd.c: New file.
5409 * gnulib/import/unistd.in.h: New file.
5411 2013-07-01 Pedro Alves <palves@redhat.com>
5413 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5414 defined instead of checking HAVE_UNISTD_H.
5416 2013-07-01 Pedro Alves <palves@redhat.com>
5418 Reimport gnulib from scratch.
5419 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5420 import/m4/onceonly.m4.
5421 * gnulib/aclocal.m4: Renegerate.
5422 * gnulib/config.in: Renegerate.
5423 * gnulib/configure: Renegerate.
5424 * gnulib/import/Makefile.in: Renegerate.
5425 * gnulib/import/extra/update-copyright: Renegerate.
5426 * gnulib/import/m4/onceonly.m4: Delete.
5428 2013-07-01 Pedro Alves <palves@redhat.com>
5430 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5432 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5435 * remote.c (async_remote_interrupt_twice): Make it static.
5436 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5438 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5440 * ia64-linux-tdep.c: Include <ctype.h>.
5441 (ia64_linux_stap_is_single_operand): New function.
5442 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5444 2013-06-28 Tom Tromey <tromey@redhat.com>
5446 * Makefile.in (version.c): Use version.in, not
5448 * common/create-version.sh: Likewise.
5449 * common/version.in: Move...
5450 * version.in: ...here.
5452 2013-06-28 Pedro Alves <palves@redhat.com>
5454 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5456 * utils.h (pagination_enabled): Declare.
5458 2013-06-28 Pedro Alves <palves@redhat.com>
5460 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5461 Move higher up in file.
5463 2013-06-28 Tom Tromey <tromey@redhat.com>
5465 * tracepoint.c (deprecated_readline_begin_hook)
5466 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5469 2013-06-28 Pedro Alves <palves@redhat.com>
5472 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5473 checking if they're available.
5474 * value.c (value_available_contents_eq): Change comment.
5475 * value.h (value_available_contents_eq): Expand comment.
5477 2013-06-27 Tom Tromey <tromey@redhat.com>
5479 * target.c (find_run_target): Remove.
5480 * target.h (find_run_target): Remove.
5482 2013-06-27 Tom Tromey <tromey@redhat.com>
5484 * corelow.c (core_gdbarch): Now static.
5486 2013-06-27 Tom Tromey <tromey@redhat.com>
5488 * target.c (target_struct_index): Remove.
5490 2013-06-27 Pedro Alves <palves@redhat.com>
5492 * infrun.c: Remove comment describing the 'stepping over runtime
5493 loader dynamic symbol resolution code' mechanism; moved to
5496 2013-06-27 Pedro Alves <palves@redhat.com>
5498 * exceptions.c (catch_command_errors): Remove spurious space.
5499 * exceptions.h (catch_command_errors): Second parameter is "arg",
5502 2013-06-27 Yao Qi <yao@codesourcery.com>
5504 * common/create-version.sh: Update comments. Handle the case
5505 that TARGET_ALIAS is empty.
5507 2013-06-26 Pedro Alves <palves@redhat.com>
5509 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5512 2013-06-26 Pedro Alves <palves@redhat.com>
5514 * infrun.c: Update comments on stepping over runtime loader
5515 dynamic symbol resolution code.
5517 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5519 * ax-gdb.h (union exp_element): Forward declare.
5520 * parser-defs.h: Include expression.h.
5522 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5524 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5526 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5528 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5530 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5532 Fix trace-status to output proper start-time and stop-time.
5533 * tracepoint.c (trace_status_command): Fix type of printf arg to
5534 prevent improper type conversion.
5535 (trace_status_mi): Likewise.
5537 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5539 * mips-tdep.c (mips_next_pc): Fix a typo.
5541 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5543 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5545 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5546 Yao Qi <yao@codesourcery.com>
5548 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5549 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5550 * mi/mi-main.c (print_variable_or_computed): New function.
5551 (mi_cmd_trace_frame_collected): New function.
5552 * tracepoint.c (find_trace_state_variable_by_number): New.
5553 (struct traceframe_info): Move to tracepoint.h
5554 (struct collection_list): Likewise.
5555 (do_collect_symbol): Include locals and arguments in the
5556 collected variables list.
5557 (clear_collection_list): Clear wholly collected variables list
5558 and computed variables list.
5559 (append_exp): New function.
5560 (encode_actions_1): Include variables in the wholly
5561 collected variables list. Include memory ranges and
5562 full-fledged expressions in the computed expressions list.
5563 (encode_actions): Move some code to ...
5564 Return the cleanup chain.
5565 (encode_actions_rsp): ... here. New function.
5566 (get_traceframe_location, get_traceframe_info): Remove static.
5567 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5568 (struct collection_list): Moved from tracepoint.c. Add two
5569 new fields 'wholly_collected' and 'computed'.
5570 (find_trace_state_variable_by_number): Declare.
5571 (encode_actions): Adjust declaration.
5572 (encode_actions_rsp): Declare.
5573 (get_traceframe_info, get_traceframe_location): Declare.
5575 * NEWS: Mention new MI command -trace-frame-collected.
5577 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5578 Yao Qi <yao@codesourcery.com>
5580 * ctf.c (ctf_traceframe_info): Push trace state variables
5581 present in the trace data into the traceframe info object.
5582 * breakpoint.c (DEF_VEC_I): Remove.
5583 * common/filestuff.c (DEF_VEC_I): Likewise.
5584 * dwarf2loc.c (DEF_VEC_I): Likewise.
5585 * mi/mi-main.c (DEF_VEC_I): Likewise.
5586 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5587 * features/traceframe-info.dtd: Add tvar element and its
5589 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5590 (build_traceframe_info): Push trace state variables present in
5591 the trace data into the traceframe info object.
5592 (traceframe_info_start_tvar): New function.
5593 (tvar_attributes): New.
5594 (traceframe_info_children): Add "tvar" element.
5595 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5597 * NEWS: Mention the change in GDB and GDBserver.
5599 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5600 Yao Qi <yao@codesourcery.com>
5602 * tracepoint.c (trace_dump_command): Move code to ...
5603 (get_traceframe_location): ... here. New.
5605 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5606 Yao Qi <yao@codesourcery.com>
5608 * tracepoint.c (trace_dump_command): GDB emits an error
5609 instead of a warning when a traceframe is not selected.
5611 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5612 Yao Qi <yao@codesourcery.com>
5614 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5615 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5617 (do_clear_collection_list, init_collection_list): New.
5618 (encode_actions): Add local variables 'tracepoint_list' and
5619 'stepping_list'. Call init_collection_list and make cleanup
5620 which calls do_clear_collection_list. Don't call
5621 clear_collection_list.
5622 (_initialize_tracepoint): Delete references to
5623 'tracepoint_list' and 'stepping_list'.
5625 2013-06-25 Tom Tromey <tromey@redhat.com>
5627 * common/create-version.sh (date): Use "$", not "$$" in sed
5630 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5632 * NEWS (New targets): Add entry for TI MSP430.
5634 2013-06-25 Yao Qi <yao@codesourcery.com>
5636 * remote.c (remote_start_remote): Move code to upload tsv
5639 2013-06-25 Yao Qi <yao@codesourcery.com>
5640 Hui Zhu <hui@codesourcery.com>
5641 Pedro Alves <palves@redhat.com>
5643 PR breakpoints/15075
5644 PR breakpoints/15434
5645 * breakpoint.c (bpstat_stop_status): Call
5646 b->ops->after_condition_true.
5647 (update_dprintf_command_list): Don't append "continue" command
5648 to the command list of dprintf breakpoint.
5649 (base_breakpoint_after_condition_true): New function.
5650 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5651 (dprintf_after_condition_true): New function.
5652 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5653 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5655 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5657 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5658 (ALLDEPFILES): Add msp430-tdep.c.
5659 * configure.tgt (msp430*-*-elf): New target.
5660 * msp430-tdep.c: New file.
5662 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5664 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5665 microMIPS synthetic symbols.
5667 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5669 * objfiles.h (pc_in_section): New prototype.
5670 (in_plt_section): Remove name argument, replace prototype with
5671 static inline function.
5672 * mips-tdep.h: Include "objfiles.h".
5673 (in_mips_stubs_section): New function.
5674 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5675 in_solib_call_trampoline member.
5676 (hppa_in_solib_call_trampoline): Remove name argument.
5677 * objfiles.c (pc_in_section): New function.
5678 (in_plt_section): Remove function.
5679 * mips-linux-tdep.c: Include "objfiles.h".
5680 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5681 name argument. Return 1 rather than the low 16-bit halfword of
5682 any instruction examined.
5683 (mips_linux_in_dynsym_resolve_code): Update
5684 mips_linux_in_dynsym_stub call accordingly.
5685 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5686 rather than an equivalent hand-coded sequence.
5687 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5688 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5689 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5690 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5692 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5693 on call to tdep->in_solib_call_trampoline.
5694 (hppa_in_solib_call_trampoline): Remove name argument, update
5695 according to in_plt_section change.
5696 (hppa_skip_trampoline_code): Update according to in_plt_section
5698 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5699 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5701 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5702 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5703 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5704 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5705 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5706 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5707 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5708 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5709 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5710 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5711 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5712 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5713 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5715 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5717 * common/create-version.sh: Fix expansion of $host_alias
5718 and $target_alias in generation of HOST_NAME and TARGET_NAME
5721 2013-06-24 Tom Tromey <tromey@redhat.com>
5723 * common/create-version.sh: New file.
5724 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5726 (HFILES_NO_SRCDIR): Use common/version.h.
5727 * version.in: Move to ...
5728 * common/version.in: ... here. Replace date with "DATE".
5729 * version.h: Move to ...
5730 * common/version.h: ... here.
5732 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5734 * gdb/gnulib/Makefile.in: Update date in copyright header.
5735 * gdb/gnulib/configure.ac: Ditto.
5736 * gdb/gnulib/update-gnulib.sh: Ditto.
5738 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5740 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5741 "gdb/gnulib/import".
5743 2013-06-21 Will Newton <will.newton@linaro.org>
5745 * doublest.c (ldfrexp): Remove function.
5746 (convert_doublest_to_floatformat): Call frexpl instead of
5749 2013-06-21 Will Newton <will.newton@linaro.org>
5751 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5752 * gnulib/aclocal.m4: Regenerate.
5753 * gnulib/config.in: Regenerate.
5754 * gnulib/configure: Regenerate.
5755 * gnulib/import/Makefile.am: Update.
5756 * gnulib/import/Makefile.in: Update.
5757 * gnulib/import/m4/gnulib-cache.m4: Update.
5758 * gnulib/import/m4/gnulib-comp.m4: Update.
5759 * gnulib/import/float+.h: Import.
5760 * gnulib/import/float.c: Import.
5761 * gnulib/import/float.in.h: Import.
5762 * gnulib/import/fpucw.h: Import.
5763 * gnulib/import/frexp.c: Import.
5764 * gnulib/import/frexpl.c: Import.
5765 * gnulib/import/isnan.c: Import.
5766 * gnulib/import/isnand-nolibm.h: Import.
5767 * gnulib/import/isnand.c: Import.
5768 * gnulib/import/isnanl-nolibm.h: Import.
5769 * gnulib/import/isnanl.c: Import.
5770 * gnulib/import/itold.c: Import.
5771 * gnulib/import/m4/exponentd.m4: Import.
5772 * gnulib/import/m4/exponentl.m4: Import.
5773 * gnulib/import/m4/float_h.m4: Import.
5774 * gnulib/import/m4/fpieee.m4: Import.
5775 * gnulib/import/m4/frexp.m4: Import.
5776 * gnulib/import/m4/frexpl.m4: Import.
5777 * gnulib/import/m4/isnand.m4: Import.
5778 * gnulib/import/m4/isnanl.m4: Import.
5779 * gnulib/import/m4/math_h.m4: Import.
5780 * gnulib/import/math.c: Import.
5781 * gnulib/import/math.in.h: Import.
5783 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5785 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5786 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5787 signature_INTEL_edx comparisons.
5789 2013-06-20 Doug Evans <dje@google.com>
5792 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5793 All callers updated.
5794 (open_dwp_file): If we can't find the dwp file, search the basename
5795 in debug-file-directory.
5797 * dwarf2read.c (struct dwp_file): Fix comment.
5798 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5800 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5803 2013-06-20 Yao Qi <yao@codesourcery.com>
5805 * breakpoint.c (create_breakpoint): Fix code indentation.
5807 2013-06-20 Yao Qi <yao@codesourcery.com>
5809 * breakpoint.c (create_breakpoints_sal_default): Remove
5810 parameter 'lsal'. Update declaration.
5811 (bkpt_create_breakpoints_sal): Caller update.
5812 (tracepoint_create_breakpoints_sal): Likewise.
5814 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5815 Yao Qi <yao@codesourcery.com>
5817 * NEWS: Mention the new option '--skip-unavailable' of command
5818 -data-list-register-values.
5819 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5820 --skip-unavailable option. Adjust to use output_register.
5821 (output_register): Add new 'skip_unavailable' parameter.
5824 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5826 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5827 common/i386-gcc-cpuid.h.
5828 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5829 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5830 Copy the latest version from upstream gcc.
5831 * common/linux-btrace.c: Include i386-cpuid.h.
5832 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5834 (cpu_supports_btrace): Likewise.
5835 * go32-nat.c: Include i386-cpuid.h.
5836 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5838 2013-06-19 Doug Evans <dje@google.com>
5840 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5841 (get_section_index): Ditto.
5843 2013-06-19 Tom Tromey <tromey@redhat.com>
5845 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5848 2013-06-18 Doug Evans <dje@google.com>
5850 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5852 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5853 Move test of cu_index closer to use. Print complaint if cu_index
5856 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5858 * machoread.c (oso_vector): Delete this global.
5859 (macho_register_oso): Add new parameter "oso_vector_ptr".
5860 Use it instead of the "oso_vector" global.
5861 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5862 (macho_symfile_read): Use a local oso_vector, to be free'ed
5863 at the end of this function, in place of the old "oso_vector"
5864 global. Update various function calls accordingly. Use one
5865 single cleanup chain for the entire function.
5867 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5869 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5870 DWARF2_PER_OBJFILE by uses of DATA instead.
5872 2013-06-18 Tom Tromey <tromey@redhat.com>
5874 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5876 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5877 Special case signals other than GDB_SIGNAL_TRAP.
5878 (explains_signal_watchpoint): New function.
5879 (base_breakpoint_explains_signal): Add 'sig' argument.
5880 (initialize_breakpoint_ops): Set 'explains_signal' method for
5882 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5884 (bpstat_explains_signal): Likewise.
5885 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5887 2013-06-18 Tom Tromey <tromey@redhat.com>
5889 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5891 2013-06-18 Tom Tromey <tromey@redhat.com>
5893 * python/python.c (finish_python_initialization): Decref
5894 'pythondir' on failure path as well.
5896 2013-06-18 Tom Tromey <tromey@redhat.com>
5899 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5900 after taking bits_to_skip into account. Sign extend byte_offset.
5901 * utils.h (gdb_sign_extend): Declare.
5902 * utils.c (gdb_sign_extend): New function.
5904 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5906 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5908 2013-06-17 Pierre Muller <muller@sourceware.org>
5910 * corelow.c (core_open): Print GDB signal name instead of target
5913 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5915 * .gitignore: Add /gcore.
5917 2013-06-13 Doug Evans <dje@google.com>
5919 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5920 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5922 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5924 * stack.c (backtrace_command_1): Fix indentation.
5926 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5928 * window-nat.c (thread_rec): Add missing empty line after
5929 local variable declaration.
5931 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5933 * windows-nat.c (thread_rec): Revert format used to print
5934 error code returned by SuspendThread from %d back to %u.
5936 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5938 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5940 (get_windows_debug_event): Likewise, for all debug traces.
5942 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5944 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5947 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5948 Yao Qi <yao@codesourcery.com>
5950 * mi/mi-main.c (get_register): Remove declaration.
5951 (output_register): Declare.
5952 (mi_cmd_data_list_register_values): Remove local variable
5953 'tuple_cleanup'. Move some code into output_register.
5954 (get_register): Renamed to ...
5955 (output_register): ... this. Output the register's
5956 "number" ui_out tuple here.
5958 2013-06-07 Pedro Alves <palves@redhat.com>
5960 * darwin-nat.c: Fix formating in copyright header.
5961 * darwin-nat.h: Likewise.
5962 * gnu-nat.c: Likewise.
5963 * machoread.c: Likewise.
5965 2013-06-07 Pedro Alves <palves@redhat.com>
5968 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5969 static. Output a global target description pointer.
5970 (init_registers_${name}): Adjust to initialize a
5971 target description structure.
5973 2013-06-07 Will Newton <will.newton@linaro.org>
5975 * printcmd.c (build_address_symbolic): Call
5976 gdbarch_addr_bits_remove for text minimal symbols.
5978 2013-06-07 Will Newton <will.newton@linaro.org>
5980 * MAINTAINERS: Add myself to Write After Approval.
5982 2013-06-07 Yao Qi <yao@codesourcery.com>
5984 * tracepoint.c (start_tracing): Move code to ...
5985 (trace_reset_local_state): ... here. New.
5986 (disconnect_tracing): Don't call set_current_traceframe,
5987 set_tracepoint_num, and set_traceframe_context. Call
5988 trace_reset_local_state instead.
5989 (tfile_close): Call trace_reset_local_state.
5990 * ctf.c (ctf_close): Likewise.
5991 * remote.c (remote_close): Likewise.
5992 * tracepoint.h (trace_reset_local_state): Declare.
5994 2013-06-06 Doug Evans <dje@google.com>
5996 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5997 and fix header docs.
5999 2013-06-05 Doug Evans <dje@google.com>
6000 Keith Seitz <keiths@redhat.com>
6003 * cp-namespace.c (find_symbol_in_baseclass): Call
6004 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6005 Check result of call to lookup_symbol_static.
6006 Call lookup_static_symbol_aux unconditionally.
6007 Call check_typedef on base types before accessing them.
6008 (cp_lookup_nested_symbol): Fix comment.
6010 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6012 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6013 minimal symbols pointing to function descriptors.
6015 2013-06-05 Tom Tromey <tromey@redhat.com>
6017 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6019 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6020 Pedro Alves <palves@redhat.com>
6022 * remote.c (remote_wait_as): Restore signal handler before returning
6023 when GDB gets a notification.
6025 2013-06-04 Gary Benson <gbenson@redhat.com>
6028 * breakpoint.h (handle_solib_event): Moved function declaration
6030 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6031 (bpstat_stop_status): Pass new argument to handle_solib_event.
6032 * solib.h (update_solib_breakpoints): New function declaration.
6033 (handle_solib_event): Moved function declaration from
6035 * solib.c (update_solib_breakpoints): New function.
6036 (handle_solib_event): Moved function from breakpoint.c.
6037 Updated to call solib_ops->handle_event if not NULL.
6038 * solist.h (target_so_ops): New fields "update_breakpoints" and
6040 * infrun.c (set_stop_on_solib_events): New function.
6041 (_initialize_infrun): Use the above for "set
6042 stop-on-solib-events".
6043 (handle_inferior_event): Pass new argument to handle_solib_event.
6044 * solib-svr4.c (probe.h): New include.
6045 (svr4_free_library_list): New forward declaration.
6046 (probe_action): New enum.
6047 (probe_info): New struct.
6048 (probe_info): New static variable.
6049 (NUM_PROBES): New definition.
6050 (svr4_info): New fields "using_xfer", "probes_table" and
6052 (free_probes_table): New function.
6053 (free_solib_list): New function.
6054 (svr4_pspace_data_cleanup): Free probes table and solib list.
6055 (svr4_copy_library_list): New function.
6056 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6057 (svr4_read_so_list): New parameter "prev_lm".
6058 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6059 (svr4_current_sos): New function.
6060 (probe_and_action): New struct.
6061 (hash_probe_and_action): New function.
6062 (equal_probe_and_action): Likewise.
6063 (register_solib_event_probe): Likewise.
6064 (solib_event_probe_at): Likewise.
6065 (solib_event_probe_action): Likewise.
6066 (solist_update_full): Likewise.
6067 (solist_update_incremental): Likewise.
6068 (disable_probes_interface_cleanup): Likewise.
6069 (svr4_handle_solib_event): Likewise.
6070 (svr4_update_solib_event_breakpoint): Likewise.
6071 (svr4_update_solib_event_breakpoints): Likewise.
6072 (svr4_create_solib_event_breakpoints): Likewise.
6073 (enable_break): Free probes table before creating breakpoints.
6074 Use svr4_create_solib_event_breakpoints to create breakpoints.
6075 (svr4_solib_create_inferior_hook): Free the solib list.
6076 (_initialize_svr4_solib): Initialise
6077 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6079 2013-06-04 Gary Benson <gbenson@redhat.com>
6081 * target.h (target_ops): New field
6082 "to_augmented_libraries_svr4_read".
6083 (target_augmented_libraries_svr4_read): New macro.
6084 * target.c (update_current_target): Handle
6085 to_augmented_libraries_svr4_read.
6086 * remote.c (remote_state): New field
6087 "augmented_libraries_svr4_read".
6088 (remote_augmented_libraries_svr4_read_feature): New function.
6089 (remote_protocol_features): Add entry for
6090 "augmented-libraries-svr4-read".
6091 (remote_augmented_libraries_svr4_read): New function.
6092 (init_remote_ops): Initialize
6093 remote_ops.to_augmented_libraries_svr4_read.
6095 2013-06-04 Gary Benson <gbenson@redhat.com>
6099 2013-06-04 Gary Benson <gbenson@redhat.com>
6101 * objfiles.h (inhibit_section_map_updates): New function
6103 (resume_section_map_updates): Likewise.
6104 (resume_section_map_updates_cleanup): Likewise.
6105 * objfiles.c (objfile_pspace_info): Removed field
6106 "objfiles_changed_p". New fields "new_objfiles_available",
6107 "section_map_dirty" and "inhibit_updates".
6108 (allocate_objfile): Set new_objfiles_available.
6109 (free_objfile): Set section_map_dirty.
6110 (objfile_relocate1): Likewise.
6111 (in_plt_section): Likewise.
6112 (find_pc_section): Update the conditions under which the
6113 section map will be updated.
6114 (inhibit_section_map_updates): New function.
6115 (resume_section_map_updates): Likewise.
6116 (resume_section_map_updates_cleanup): Likewise.
6118 2013-06-04 Gary Benson <gbenson@redhat.com>
6120 * probe.h (get_probe_argument_count): New declaration.
6121 (evaluate_probe_argument): Likewise.
6122 * probe.c (get_probe_argument_count): New function.
6123 (evaluate_probe_argument): Likewise.
6124 (probe_safe_evaluate_at_pc): Use the above new functions.
6126 2013-06-04 Alan Modra <amodra@gmail.com>
6128 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6129 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6130 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6131 target mem reads on optional insns.
6132 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6133 ppc_insns_match_pattern calls.
6134 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6135 Add match for power7 thread safety insns, and new order of
6136 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6137 invocation in comment, and update rest of comment.
6138 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6139 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6140 (ppc64_standard_linkage2_target): Update insn offsets.
6141 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6142 stubs first. Update calls.
6144 2013-06-04 Yao Qi <yao@codesourcery.com>
6146 * solib.c (solib_find): Don't need dir separator if path has
6149 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6151 Revert (indirectly causes a SIGSEGV):
6152 * machoread.c (macho_symfile_read): Assign first cleanup to
6155 2013-06-03 Yao Qi <yao@codesourcery.com>
6157 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6158 mi-parse.c. Make them static.
6159 (mi_all_values): Likewise.
6160 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6161 mi_parse_print_values. Make it external.
6162 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6163 Remove the declarations.
6164 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6165 * mi/mi-parse.h (mi_parse_print_values): Declare.
6166 * mi/mi-cmd-stack.c: Include mi-parse.h.
6167 (parse_print_values): Remove
6168 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6169 of parse_print_values.
6170 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6172 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6173 Yao Qi <yao@codesourcery.com>
6175 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6176 (encode_actions): Move code to ...
6177 (all_tracepoint_actions_and_cleanup): ... here. New.
6178 (trace_dump_command): Likewise.
6180 2013-05-30 Tom Tromey <tromey@redhat.com>
6182 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6184 2013-05-30 Tom Tromey <tromey@redhat.com>
6186 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6187 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6188 'old_chain' argument. Add 'parser_result' argument.
6189 (gdb_xml_create_parser_and_cleanup): Remove old version.
6190 (gdb_xml_parse_quick): Update.
6191 (xml_process_xincludes): Update.
6192 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6195 2013-05-30 Tom Tromey <tromey@redhat.com>
6197 * probe.c (collect_probes): Check arguments for NULL before
6198 calling compile_rx_or_error.
6199 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6202 2013-05-30 Tom Tromey <tromey@redhat.com>
6204 * infrun.c (adjust_pc_after_break): Introduce an outer null
6207 2013-05-30 Tom Tromey <tromey@redhat.com>
6209 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6211 2013-05-30 Tom Tromey <tromey@redhat.com>
6213 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6214 for 'old_chain'. Do not check 'head' before processing
6217 2013-05-30 Tom Tromey <tromey@redhat.com>
6219 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6222 2013-05-30 Tom Tromey <tromey@redhat.com>
6224 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6225 inner scope. Unconditionally call do_cleanups.
6227 2013-05-30 Tom Tromey <tromey@redhat.com>
6229 * source.c (find_and_open_source): Call do_cleanups.
6231 2013-05-30 Tom Tromey <tromey@redhat.com>
6233 * linux-thread-db.c (thread_db_load_search): Unconditionally
6236 2013-05-30 Tom Tromey <tromey@redhat.com>
6238 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6239 for 'cleanup'; instead use a later one.
6241 2013-05-30 Tom Tromey <tromey@redhat.com>
6243 * python/py-breakpoint.c (bppy_get_commands): Use
6244 explicit, unconditional return.
6245 * python/py-frame.c (frapy_read_var): Likewise.
6246 * python/python.c (gdbpy_decode_line): Likewise.
6248 2013-05-30 Tom Tromey <tromey@redhat.com>
6250 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6251 do_cleanups on all return paths.
6253 2013-05-30 Tom Tromey <tromey@redhat.com>
6255 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6257 2013-05-30 Tom Tromey <tromey@redhat.com>
6259 * stabsread.c (read_struct_type): Call do_cleanups along
6262 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6264 * mips-linux-tdep.c: Adjust formatting throughout.
6266 2013-05-30 Tom Tromey <tromey@redhat.com>
6268 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6269 along all return paths.
6271 2013-05-30 Tom Tromey <tromey@redhat.com>
6273 * symfile.c (find_separate_debug_file): Call do_cleanups
6274 along all return paths.
6276 2013-05-30 Tom Tromey <tromey@redhat.com>
6278 * symtab.c (search_symbols): Introduce a null cleanup for
6281 2013-05-30 Tom Tromey <tromey@redhat.com>
6283 * python/py-value.c (valpy_binop): Call do_cleanups before
6286 2013-05-30 Tom Tromey <tromey@redhat.com>
6288 * python/py-prettyprint.c (print_children): Remove extra
6291 2013-05-30 Tom Tromey <tromey@redhat.com>
6293 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6296 2013-05-30 Tom Tromey <tromey@redhat.com>
6298 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6299 along all return paths.
6301 2013-05-30 Tom Tromey <tromey@redhat.com>
6303 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6306 2013-05-30 Tom Tromey <tromey@redhat.com>
6308 * varobj.c (c_value_of_root): Call do_cleanups along all
6311 2013-05-30 Tom Tromey <tromey@redhat.com>
6313 * tracepoint.c (trace_dump_command): Unconditionally call
6316 2013-05-30 Tom Tromey <tromey@redhat.com>
6318 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6319 do_cleanups earlier.
6321 2013-05-30 Tom Tromey <tromey@redhat.com>
6323 * machoread.c (macho_symfile_read): Assign first cleanup to
6326 2013-05-30 Tom Tromey <tromey@redhat.com>
6328 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6330 2013-05-30 Tom Tromey <tromey@redhat.com>
6332 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6334 2013-05-30 Tom Tromey <tromey@redhat.com>
6336 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6337 call discard_cleanups.
6338 (inf_ptrace_attach): Likewise.
6340 2013-05-30 Tom Tromey <tromey@redhat.com>
6342 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6344 (mips_initialize): Likewise.
6345 (common_open): Call do_cleanups.
6347 2013-05-30 Tom Tromey <tromey@redhat.com>
6349 * utils.c (internal_vproblem): Call do_cleanups.
6351 2013-05-30 Tom Tromey <tromey@redhat.com>
6353 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6355 2013-05-30 Tom Tromey <tromey@redhat.com>
6357 * cli/cli-script.c (setup_user_args): Don't return after error.
6359 2013-05-30 Tom Tromey <tromey@redhat.com>
6361 * somread.c (som_symtab_read): Call do_cleanups.
6363 2013-05-30 Tom Tromey <tromey@redhat.com>
6365 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6367 2013-05-30 Tom Tromey <tromey@redhat.com>
6369 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6370 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6371 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6372 * source.c (show_substitute_path_command): Call do_cleanups.
6373 (unset_substitute_path_command, set_substitute_path_command):
6375 * symfile.c (load_command): Call do_cleanups.
6377 2013-05-30 Tom Tromey <tromey@redhat.com>
6379 * contrib/cleanup_check.py: New file.
6380 * contrib/gcc-with-excheck: Add option parsing.
6382 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6384 * windows-nat.c (windows_delete_thread): Add missing space
6387 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6389 * inferior.c (top level): Include tilde.h.
6390 (add_inferior_command): Call tilde_expand on the value of 'exec'
6393 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6394 Yao Qi <yao@codesourcery.com>
6396 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6398 (encode_actions): Likewise.
6399 * remote.c (remote_download_tracepoint): Caller update.
6400 * tracepoint.h (encode_actions): Update declaration.
6402 2013-05-30 Pedro Alves <palves@redhat.com>
6404 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6407 2013-05-30 Yao Qi <yao@codesourcery.com>
6409 * remote.c (remote_check_symbols): Remove unused parameter
6412 (remote_start_remote, remote_new_objfile): Caller update.
6414 2013-05-30 Yao Qi <yao@codesourcery.com>
6416 * mi/mi-cmds.c (mi_cmds): Define MI command
6417 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6420 2013-05-29 Pedro Alves <palves@redhat.com>
6422 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6423 (remote_insert_watchpoint, remote_remove_watchpoint)
6424 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6425 (remote_verify_memory, compare_sections_command)
6426 (remote_search_memory): Set the general process/thread on the
6429 2013-05-29 Pedro Alves <palves@redhat.com>
6431 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6432 (_initialize_aarch64_tdep): Don't call
6433 initialize_tdesc_aarch64_without_fpu.
6434 * features/Makefile (WHICH): Remove reference to
6435 aarch64-without-fpu.
6436 * features/aarch64-without-fpu.c: Delete file.
6437 * regformats/aarch64-without-fpu.dat: Delete file.
6439 2013-05-28 Yao Qi <yao@codesourcery.com>
6441 * tracepoint.c (stringify_collection_list): Remove parameter
6443 (encode_actions): Caller update. Remove local variables.
6445 2013-05-24 Yao Qi <yao@codesourcery.com>
6447 * tracepoint.c (TFILE_PID): Remove.
6448 (tfile_open): Don't add thread and inferior.
6449 (tfile_close): Don't set 'inferior_ptid'. Don't call
6450 exit_inferior_silent.
6451 (tfile_thread_alive): Remove.
6452 (init_tfile_ops): Don't set field 'to_thread_alive' of
6455 2013-05-23 Doug Evans <dje@google.com>
6457 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6459 2013-05-23 Pedro Alves <palves@redhat.com>
6461 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6462 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6463 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6464 Only define if HAVE_SOCKETS is defined.
6465 * configure.ac: Check for sys/socket.h.
6466 * config.in, configure: Regenerate.
6468 2013-05-23 Pedro Alves <palves@redhat.com>
6470 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6471 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6472 printing uint32_t variables.
6474 2013-05-23 Pedro Alves <palves@redhat.com>
6476 * NEWS: Mention GDBserver range stepping support.
6478 2013-05-23 Yao Qi <yao@codesourcery.com>
6479 Pedro Alves <palves@redhat.com>
6481 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6483 * infcmd.c (step_once, until_next_command): Enable range stepping.
6484 * infrun.c (displaced_step_prepare): Disable range stepping.
6485 (resume): Disable range stepping if stepping over a breakpoint or
6486 we have software watchpoints. If range stepping is enabled,
6487 assert the thread is in the stepping range.
6488 (clear_proceed_status_thread): Clear may_range_step.
6489 (handle_inferior_event): Disable range stepping as soon as we know
6490 the thread that hit the event. Re-enable it whenever we're going
6491 to step with a step range.
6492 * remote.c (struct vCont_action_support) <r>: New field.
6493 (use_range_stepping): New global.
6494 (remote_vcont_probe): Handle 'r' action.
6495 (append_resumption): Append an 'r' action if the thread may range
6497 (show_range_stepping): New function.
6498 (set_range_stepping): New function.
6499 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6500 'set range-stepping' and 'show range-stepping' commands.
6501 * NEWS: Mention range stepping, the new vCont;r action, and the
6502 new "set/show range-stepping" commands.
6504 2013-05-23 Yao Qi <yao@codesourcery.com>
6505 Pedro Alves <palves@redhat.com>
6507 * remote.c (struct vCont_action_support): New struct.
6508 (struct remote_state) <support_vCont_t>: Remove field.
6509 <vCont_actions_support>: New field.
6510 (remote_vcont_probe, remote_stop_ns): Update.
6512 2013-05-23 Yao Qi <yao@codesourcery.com>
6513 Pedro Alves <palves@redhat.com>
6515 * gdbthread.h (pc_in_thread_step_range): New declaration.
6516 * thread.c (pc_in_thread_step_range): New function.
6517 * infrun.c (handle_inferior_event): Use it.
6519 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6521 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6524 2013-05-22 Keith Seitz <keiths@redhat.com>
6526 * ada-lang.c (is_known_support_routine): Add explicit free of
6527 'func_name' from find_frame_funname.
6528 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6529 for func_name from find_frame_funname.
6530 * python/py-frame.c (frapy_name): Add explicit free of
6531 'name' from find_frame_funname.
6532 * stack.c (find_frame_funname): Add comment explaining that
6533 funcp must be freed by the caller.
6534 Return copy of symbol names instead of pointers.
6535 (print_frame): Add a cleanup for 'funname' from
6537 * stack.h (find_frame_funname): Remove "const" from
6538 'funname' parameter.
6540 2013-05-22 Tom Tromey <tromey@redhat.com>
6543 * c-valprint.c (c_value_print): Use value_addr for
6544 references. Convert back to reference type with value_ref.
6546 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6548 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6549 unloaded DLL, it will be done by handle_solib_event. See
6550 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6553 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6555 * ui-out.c: Create typedef ui_out_level_p and define vector
6556 operations for that type.
6557 (struct ui_out): Use a vector instead of an array.
6558 (current_level): Return level from a vector.
6559 (push_level): Create a level in a vector.
6560 (pop_level): Delete a level in a vector.
6561 (ui_out_new): Create initial level zero level, and store in a
6563 (ui_out_destroy): Add vector cleanup.
6565 2013-05-22 Pedro Alves <palves@redhat.com>
6567 * python/python-internal.h (gdb_Py_DECREF): Tag with
6568 "ARI: editCase function".
6570 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6572 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6574 2013-05-21 Pedro Alves <palves@redhat.com>
6576 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6577 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6578 * python/py-utils.c (py_decref): Don't check for NULL before
6581 2013-05-21 Pedro Alves <palves@redhat.com>
6583 * python/py-utils.c (py_decref): Remove extra braces.
6584 (gdb_pymodule_addobject): Remove extra braces.
6585 * python-internal.h (gdb_Py_DECREF): New static inline function.
6586 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6588 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6590 * breakpoints.c (detach_breakpoints): Do not
6591 detach breakpoints locations with loc_type bp_loc_other.
6593 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6595 Workaround Python 2.6.
6596 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6599 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6601 Code cleanup: constification.
6602 * solib.c (solib_ops): Make return type and ops variable type const.
6603 (set_solib_ops): Make the new_ops parameter and ops variable const.
6604 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6605 (solib_add, solib_keep_data_in_core, clear_solib)
6606 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6607 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6609 * solib.h (set_solib_ops): Make the new_ops parameter const.
6611 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6613 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6615 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6616 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6617 (SYSTEM_GDBINIT_FILES): New variables.
6618 (all): Add stamp-system-gdbinit.
6619 (stamp-system-gdbinit): New rule.
6620 (clean-system-gdbinit, install-system-gdbinit)
6621 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6622 (install-only): Add dependency on install-system-gdbinit.
6623 (uninstall): Add dependency on uninstall-system-gdbinit.
6624 (clean): Add dependency on clean-system-gdbinit.
6625 * system-gdbinit/elinos.py: New file.
6626 * system-gdbinit/wrs-linux.py: New file.
6628 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6630 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6632 2013-05-21 Hui Zhu <hui@codesourcery.com>
6634 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6635 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6636 * mi/mi-cmd-break.c (ctype.h): New include.
6637 (gdb_obstack.h): New include.
6638 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6639 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6640 (mi_cmd_dprintf_insert): New.
6641 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6642 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6644 2013-05-20 Tom Tromey <tromey@redhat.com>
6646 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6648 2013-05-20 Tom Tromey <tromey@redhat.com>
6650 * python/py-value.c (valpy_get_dynamic_type): Simplify
6651 dynamic_type assignment. Use Py_XINCREF.
6653 2013-05-20 Tom Tromey <tromey@redhat.com>
6655 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6657 2013-05-20 Tom Tromey <tromey@redhat.com>
6659 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6660 (gdbpy_selected_frame): Move object-construction code
6663 2013-05-20 Tom Tromey <tromey@redhat.com>
6665 * python/py-arch.c (gdbpy_initialize_arch): Use
6666 gdb_pymodule_addobject.
6667 * python/py-block.c (gdbpy_initialize_blocks): Use
6668 gdb_pymodule_addobject.
6669 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6670 gdb_pymodule_addobject.
6671 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6672 gdb_pymodule_addobject.
6673 * python/py-event.c (gdbpy_initialize_event_generic): Use
6674 gdb_pymodule_addobject.
6675 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6676 gdb_pymodule_addobject.
6677 * python/py-evts.c (add_new_registry): Use
6678 gdb_pymodule_addobject.
6679 (gdbpy_initialize_py_events): Likewise.
6680 * python/py-finishbreakpoint.c
6681 (gdbpy_initialize_finishbreakpoints): Use
6682 gdb_pymodule_addobject.
6683 * python/py-frame.c (gdbpy_initialize_frames): Use
6684 gdb_pymodule_addobject.
6685 * python/py-function.c (gdbpy_initialize_functions): Use
6686 gdb_pymodule_addobject.
6687 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6688 gdb_pymodule_addobject.
6689 * python/py-infthread.c (gdbpy_initialize_thread): Use
6690 gdb_pymodule_addobject.
6691 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6692 gdb_pymodule_addobject.
6693 * python/py-param.c (gdbpy_initialize_parameters): Use
6694 gdb_pymodule_addobject.
6695 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6696 gdb_pymodule_addobject.
6697 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6698 gdb_pymodule_addobject.
6699 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6700 gdb_pymodule_addobject.
6701 * python/py-type.c (gdbpy_initialize_types): Use
6702 gdb_pymodule_addobject.
6703 * python/py-utils.c (gdb_pymodule_addobject): New function.
6704 * python/py-value.c (gdbpy_initialize_values): Use
6705 gdb_pymodule_addobject.
6706 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6707 * python/python.c (_initialize_python): Use
6708 gdb_pymodule_addobject.
6710 2013-05-20 Tom Tromey <tromey@redhat.com>
6712 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6713 * python/py-param.c (get_set_value, get_show_value): Use
6715 * python/python.c (start_type_printers, apply_type_printers):
6716 Use explicit decrefs.
6718 2013-05-20 Tom Tromey <tromey@redhat.com>
6720 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6723 2013-05-20 Tom Tromey <tromey@redhat.com>
6725 * python/python.c (gdbpy_run_events): Decref the result
6726 of PyObject_CallObject.
6728 2013-05-20 Tom Tromey <tromey@redhat.com>
6730 * python/py-symtab.c (set_sal): Use
6731 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6732 (symtab_and_line_to_sal_object): Update.
6734 2013-05-20 Tom Tromey <tromey@redhat.com>
6736 * python/py-param.c (compute_enum_values): Decref 'item'.
6738 2013-05-20 Tom Tromey <tromey@redhat.com>
6740 * mi/mi-main.c: Include python-internal.h.
6741 (mi_cmd_list_features): Check gdb_python_initialized.
6742 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6743 (python_inferior_exit, python_new_objfile, add_thread_object)
6744 (delete_thread_object, py_free_inferior): Check
6745 gdb_python_initialized.
6746 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6747 gdb_python_initialized.
6748 * python/py-type.c (save_objfile_types): Check
6749 gdb_python_initialized.
6750 * python/python-internal.h (gdb_python_initialized): Declare.
6751 * python/python.c (ensure_python_env): Throw exception if
6752 Python not initialized.
6753 (before_prompt_hook, source_python_script_for_objfile)
6754 (start_type_printers, apply_type_printers,
6755 free_type_printers): Check gdb_python_initialized.
6756 * varobj.c (varobj_get_display_hint)
6757 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6758 (install_new_value_visualizer, varobj_set_visualizer)
6759 (value_get_print_value): Check gdb_python_initialized.
6761 2013-05-20 Tom Tromey <tromey@redhat.com>
6763 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6765 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6766 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6768 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6770 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6772 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6774 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6775 init function to return 'int'.
6776 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6777 Return 'int'. Check errors.
6778 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6780 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6781 Return 'int'. Check errors.
6782 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6784 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6786 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6788 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6790 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6792 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6794 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6796 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6798 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6800 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6802 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6804 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6806 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6808 * python/python-internal.h (gdbpy_initialize_auto_load,
6809 gdbpy_initialize_values, gdbpy_initialize_frames,
6810 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6811 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6812 gdbpy_initialize_blocks, gdbpy_initialize_types,
6813 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6814 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6815 gdbpy_initialize_finishbreakpoints,
6816 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6817 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6818 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6819 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6820 gdbpy_initialize_signal_event,
6821 gdbpy_initialize_breakpoint_event,
6822 gdbpy_initialize_continue_event,
6823 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6824 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6825 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6826 * python/python.c (gdb_python_initialized): New global.
6827 (gdbpy_initialize_events): Return 'int'. Check errors.
6828 (_initialize_python): Check errors. Set
6829 gdb_python_initialized.
6831 2013-05-20 Tom Tromey <tromey@redhat.com>
6833 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6834 Decref the reslut of PyObject_CallMethod.
6836 2013-05-20 Tom Tromey <tromey@redhat.com>
6838 * python/py-event.c (gdbpy_initialize_event_generic): Return
6839 early if PyType_Ready fails.
6841 2013-05-20 Tom Tromey <tromey@redhat.com>
6843 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6844 as 'default' in the switch.
6846 2013-05-20 Tom Tromey <tromey@redhat.com>
6848 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6849 get_addr_from_python calls out of TRY_CATCH.
6850 (infpy_write_memory, infpy_search_memory): Likewise.
6851 * python/py-utils.c (get_addr_from_python): Return negative
6852 value on error. Use TRY_CATCH.
6853 * python/python-internal.h (get_addr_from_python): Use
6854 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6856 2013-05-20 Tom Tromey <tromey@redhat.com>
6858 * python/py-event.c (evpy_emit_event): Decref the
6859 result of PyObject_CallFunctionObjArgs.
6861 2013-05-20 Tom Tromey <tromey@redhat.com>
6863 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6866 2013-05-20 Tom Tromey <tromey@redhat.com>
6868 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6870 2013-05-20 Tom Tromey <tromey@redhat.com>
6872 * python/py-event.h (gdbpy_initialize_event_generic): Use
6873 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6874 * python/py-evts.c (add_new_registry): Use
6875 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6876 * python/python-internal.h
6877 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6879 2013-05-20 Tom Tromey <tromey@redhat.com>
6881 * python/py-arch.c (archpy_disassemble): Update.
6882 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6883 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6884 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6885 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6887 (GDB_PY_HANDLE_EXCEPTION): Update.
6888 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6890 2013-05-20 Tom Tromey <tromey@redhat.com>
6892 * python/python-internal.h (events_object_type): Remove.
6894 2013-05-20 Tom Tromey <tromey@redhat.com>
6896 * python/py-event.h (evpy_emit_event): Use
6897 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6898 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6901 2013-05-20 Tom Tromey <tromey@redhat.com>
6903 * py-evtregistry.c (create_event_object): Decref
6904 eventregistry_object if PyList_New fails.
6906 2013-05-20 Tom Tromey <tromey@redhat.com>
6908 * py-cmd.c (gdbpy_string_to_argv): Check result of
6911 2013-05-20 Tom Tromey <tromey@redhat.com>
6913 * python/python.c (before_prompt_hook): Add cleanup to
6916 2013-05-20 Tom Tromey <tromey@redhat.com>
6918 * python/py-function.c (fnpy_init): Decref result of
6919 PyObject_GetAttrString.
6921 2013-05-20 Tom Tromey <tromey@redhat.com>
6923 * python/py-threadevent.c (get_event_thread): Use
6924 CPYCHECKER_RETURNS_BORROWED_REF.
6925 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6927 (pspace_to_pspace_object, objfile_to_objfile_object)
6928 (find_thread_object): Use it.
6930 2013-05-20 Tom Tromey <tromey@redhat.com>
6932 * python/py-arch.c (arch_object_type): Use
6933 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6934 * python/py-block.c (block_syms_iterator_object_type):
6935 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6936 * python/py-bpevent.c (breakpoint_event_object_type):
6937 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6938 * python/py-cmd.c (cmdpy_object_type): Use
6939 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6940 * python/py-continueevent.c (continue_event_object_type):
6941 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6942 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6943 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6944 * python/py-events.h (thread_event_object_type):
6945 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6946 * python/py-evtregistry.c (eventregistry_object_type): Use
6947 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6948 * python/py-exitedevent.c (exited_event_object_type):
6949 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6950 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6951 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6952 * python/py-function.c (fnpy_object_type): Use
6953 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6954 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6955 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6956 * python/py-infthread.c (thread_object_type): Use
6957 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6958 * python/py-lazy-string.c (lazy_string_object_type):
6959 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6960 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6961 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6962 * python/py-objfile.c (objfile_object_type): Use
6963 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6964 * python/py-param.c (parmpy_object_type):
6965 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6966 * python/py-progspace.c (pspace_object_type):
6967 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6968 * python/py-signalevent.c (signal_event_object_type):
6969 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6970 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6971 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6972 * python/py-type.c (type_object_type, field_object_type)
6973 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6974 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6976 (value_object_type, block_object_type, symbol_object_type)
6977 (event_object_type, stop_event_object_type, breakpoint_object_type)
6978 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6980 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6982 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6983 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6985 2013-05-20 Doug Evans <dje@google.com>
6987 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6989 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6990 reading_dwo_directly.
6991 (struct signatured_type): New member dwo_unit.
6992 (struct die_reader_specs): New member comp_dir.
6993 (create_signatured_type_table_from_index): Use malloc for
6994 all_type_units instead of objfile's obstack.
6995 (create_all_type_units): Ditto.
6996 (fill_in_sig_entry_from_dwo_entry): New function.
6997 (add_type_unit): New function.
6998 (lookup_dwo_signatured_type): New function.
6999 (lookup_dwp_signatured_type): New function.
7000 (lookup_signatured_type): New arg cu. All callers updated.
7001 (init_cu_die_reader): Initialize comp_dir.
7002 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7003 Change assert of matching type signatures to call error on mismatch.
7004 (lookup_dwo_unit): Add assert.
7005 (init_tu_and_read_dwo_dies): New function.
7006 (init_cutu_and_read_dies): Call it.
7007 (build_type_unit_groups): Handle case of no type unit groups created.
7008 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7009 (lookup_dwo_cutu): Tweak complaint.
7010 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7011 (dwarf2_per_objfile_free): Free all_type_units.
7013 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7015 * windows-nat.c (handle_unload_dll): Add missing empty line.
7017 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7019 * dwarf2read.c (prototyped_function_p): New function.
7020 (read_subroutine_type): Use it.
7022 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7024 * rs6000-aix-tdep.c: De-indent some example code provided
7027 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7029 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7030 region is ok for a hardware watchpoint using the new ptrace interface
7033 2013-05-17 Doug Evans <dje@google.com>
7035 * NEWS: Mention new maintenance commands check-symtabs, and
7036 expand-symtabs, and renamed check-psymtabs.
7037 * psymtab.c (maintenance_check_psymtabs): Renamed from
7038 maintenance_check_symtabs. Only process already-expanded symbol
7040 (_initialize_psymtab): Update.
7041 * symmisc.c (maintenance_check_symtabs): New function.
7042 (maintenance_expand_name_matcher): New function
7043 (maintenance_expand_file_matcher): New function
7044 (maintenance_expand_symtabs): New function.
7045 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7048 2013-05-17 Tom Tromey <tromey@redhat.com>
7050 * python/py-inferior.c (infpy_read_memory): Don't call
7051 PyErr_SetString if PyObject_New fails.
7052 * python/py-frame.c (frame_info_to_frame_object): Don't call
7053 PyErr_SetString if PyObject_New fails.
7055 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7057 * acinclude.m4: Add check for dlopen in libdl.
7058 * configure.ac: Ditto.
7059 * configure: Regenerate.
7061 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7063 * frame.c (frame_stash): Convert to htab.
7064 (frame_addr_hash): New function.
7065 (frame_addr_hash_eq): New function.
7066 (frame_stash_create): Convert function to create
7068 (frame_stash_add): Convert function to add an entry to a hash
7070 (frame_stash_find): Convert function to search the hash table.
7071 (frame_stash_invalidate): Convert function to empty the hash
7073 (get_frame_id): Only add to stash if a frame_id is created.
7074 (_initialize_frame): Call frame_stash_create.
7076 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7078 * configure.ac: Ensure MIG is available when building for GNU Hurd
7080 * configure: Regenerate.
7082 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7084 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7086 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7088 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7089 all cleanups are done before returning from this function.
7091 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7093 * utils.h: #include "exceptions.h".
7094 (enum errors): Remove partial declaration.
7096 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7098 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7099 * gdbarch.h, gdbarch.c: Regenerate.
7100 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7103 * rs6000-aix-tdep.h: New file.
7104 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7105 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7107 (struct field_info, struct ld_info_desc): New types.
7108 (ld_info32_desc, ld_info64_desc): New static constants.
7109 (struct ld_info): New type.
7110 (rs6000_aix_extract_ld_info): New function.
7111 (rs6000_aix_shared_library_to_xml): Likewise.
7112 (rs6000_aix_ld_info_to_xml): Likewise.
7113 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7114 (rs6000_aix_init_osabi): Add call to
7115 set_gdbarch_core_xfer_shared_libraries_aix.
7116 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7117 Remove "xml-utils.h" include.
7118 (LdInfo): Delete typedef.
7119 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7121 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7122 Adjust code accordingly.
7123 (rs6000_core_ldinfo): Delete, folded into
7124 rs6000_aix_core_xfer_shared_libraries_aix.
7125 (rs6000_xfer_shared_library): Delete.
7126 (rs6000_xfer_shared_libraries): Reimplement.
7128 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7130 * record.c (record_goto_cmdlist): New.
7131 (cmd_record_goto): Split into this ...
7132 (cmd_record_goto_begin): ... this
7133 (cmd_record_goto_end): ... and this.
7134 (_initialize_record): Change "record goto" to prefix command.
7135 Add commands for "record goto begin" and "record goto end".
7136 Add an alias for "record goto start" to "record goto begin".
7138 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7140 * linespec.c (convert_linespec_to_sals): New comment for
7141 SOURCE_FILENAME assignment.
7143 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7145 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7148 2013-05-14 Tom Tromey <tromey@redhat.com>
7150 * eval.c (parse_and_eval_long): Make 'exp' const.
7151 * value.h (parse_and_eval_long): Update.
7153 2013-05-14 Tom Tromey <tromey@redhat.com>
7155 * ui-file.c (gdb_fopen): Make arguments const.
7156 * ui-file.h (gdb_fopen): Make arguments const.
7158 2013-05-14 Tom Tromey <tromey@redhat.com>
7160 * remote.c (remote_set_trace_notes): Make arguments const.
7161 * target.c (update_current_target): Update cast.
7162 * target.h (to_set_trace_notes): Make arguments const.
7164 2013-05-14 Tom Tromey <tromey@redhat.com>
7166 * go32-nat.c (go32_terminal_info): Make 'args' const.
7167 * inferior.h (child_terminal_info): Update.
7168 * inflow.c (child_terminal_info): Make 'args' const.
7169 * target.c (default_terminal_info): Make 'args' const.
7170 (debug_to_terminal_save_ours): Likewise.
7171 * target.h (struct target_ops) <to_terminal_info>: Make argument
7174 2013-05-13 Tom Tromey <tromey@redhat.com>
7176 * gcore.c (create_gcore_bfd): Make 'filename' const.
7177 * gcore.h (create_gcore_bfd): Make 'filename' const.
7178 * record-full.c (record_full_save): Make 'recfilename' const.
7179 * target.c (target_save_record): Make 'filename' const.
7180 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7182 (target_save_record): Likewise.
7184 2013-05-13 Tom Tromey <tromey@redhat.com>
7187 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7188 ranges section has been read.
7190 2013-05-13 Tom Tromey <tromey@redhat.com>
7193 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7194 STRUCTOP_PTR>: Return a not_lval value for
7195 EVAL_AVOID_SIDE_EFFECTS.
7196 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7197 for EVAL_AVOID_SIDE_EFFECTS.
7199 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7201 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7202 floating point registers to register type before storing
7204 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7207 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7208 Tom Tromey <tromey@redhat.com>
7210 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7212 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7214 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7215 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7216 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7217 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7219 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7220 Tom Tromey <tromey@redhat.com>
7223 * configure: Rebuild.
7224 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7227 2013-05-10 Pedro Alves <palves@redhat.com>
7229 * remote.c (_initialize_remote): Fix spelling of
7230 qXfer:traceframe-info:read packet in packet config command.
7232 2013-05-10 David Taylor <dtaylor@emc.com>
7236 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7237 "QTro" at start of packet.
7239 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7241 * solib-aix.c (solib_aix_relocate_section_addresses):
7242 For the .bss section action, apply the same offset as
7245 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7247 * solib-aix.c (solib_aix_relocate_section_addresses):
7248 Remove FIXME comment.
7250 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7253 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7254 New functions, directly copied from sparc-sol-thread.c.
7255 * sparc-sol-thread.c: Delete.
7256 * configure.ac: Remove code handling sparc-solaris-thread.c.
7257 * configure: Regenerate.
7259 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7261 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7263 (backtrace_command): Add "no-filters" option parsing.
7264 (_initialize_stack): Alter help to reflect "no-filters" option.
7265 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7266 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7267 (py-frame.o): Add target
7268 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7270 * python/python.h: Add new frame filter constants, and flag enum.
7271 (apply_frame_filter): Add definition.
7272 * python/python.c (apply_frame_filter): New non-Python
7274 * python/py-utils.c (py_xdecref): New function.
7275 (make_cleanup_py_xdecref): Ditto.
7276 * python/py-objfile.c: Declare frame_filters dictionary.
7277 (objfpy_dealloc): Add frame_filters dealloc.
7278 (objfpy_new): Initialize frame_filters attribute.
7279 (objfile_to_objfile_object): Ditto.
7280 (objfpy_get_frame_filters): New function.
7281 (objfpy_set_frame_filters): New function.
7282 * python/py-progspace.c: Declare frame_filters dictionary.
7283 (pspy_dealloc): Add frame_filters dealloc.
7284 (pspy_new): Initialize frame_filters attribute.
7285 (pspacee_to_pspace_object): Ditto.
7286 (pspy_get_frame_filters): New function.
7287 (pspy_set_frame_filters): New function.
7288 * python/py-framefilter.c: New file.
7289 * python/lib/gdb/command/frame_filters.py: New file.
7290 * python/lib/gdb/frames.py: New file.
7291 * python/lib/gdb/__init__.py: Initialize global frame_filters
7293 * python/lib/gdb/FrameDecorator.py: New file.
7294 * python/lib/gdb/FrameIterator.py: New file.
7295 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7296 * mi/mi-cmds.h: Declare.
7297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7298 --no-frame-filter logic, and Python frame filter logic.
7299 (stack_enable_frame_filters): New function.
7300 (parse_no_frame_option): Ditto.
7301 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7303 (mi_cmd_stack_list_locals): Ditto.
7304 (mi_cmd_stack_list_args): Ditto.
7305 (mi_cmd_stack_list_variables): Ditto.
7306 * NEWS: Add frame filter note.
7308 2013-05-09 Doug Evans <dje@google.com>
7310 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7311 All callers updated.
7312 (syms_from_objfile): Ditto. Make static.
7313 (symbol_file_add_with_addrs): Renamed from
7314 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7315 num_offsets. All callers updated.
7316 * symfile.h (syms_from_objfile): Delete.
7318 * symfile.c (decrement_reading_symtab): Add assert.
7319 (increment_reading_symtab): Ditto.
7321 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7323 * source.c (forward_search_command): Replace call to getc
7325 (reverse_search_command): Likewise.
7327 2013-05-08 Doug Evans <dje@google.com>
7329 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7332 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7334 * sol-thread.c (info_cb): Factorize the code a little.
7336 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7338 * sol-thread.c (info_cb): Rework the output of the "maintenance
7339 info sol-threads" command a bit.
7341 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7343 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7344 Replace ti.ti_startfunc by ti.ti_pc.
7346 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7348 * solib-aix.c (solib_aix_free_library_list): New function
7349 for the case where HAVE_LIBEXPAT is not defined.
7351 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7353 PR breakpoints/15413:
7354 * breakpoint.c (condition_completer): Simplify the code to
7355 disconsider multiple locations of breakpoints when completing the
7356 "condition" command.
7358 2013-05-07 Pierre Muller <muller@sourceware.org>
7360 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7361 instead of <sys/wait.h>.
7363 2013-05-07 Pierre Muller <muller@sourceware.org>
7365 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7366 trailing new line from warning message.
7368 2013-05-07 Pierre Muller <muller@sourceware.org>
7370 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7371 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7373 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7375 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7376 error message (ARI fix).
7378 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7380 * features/library-list-aix.dtd: Replace library-list by
7382 * rs6000-nat.c: Replace library-list by library-list-aix
7384 * solib-aix.c: Likewise.
7386 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7388 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7389 Renames TARGET_OBJECT_AIX_LIBRARIES.
7390 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7391 TARGET_OBJECT_LIBRARIES_AIX throughout.
7392 * solib-aix.c: Likwise.
7394 2013-05-07 Yao Qi <yao@codesourcery.com>
7396 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7397 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7399 2013-05-07 Yao Qi <yao@codesourcery.com>
7401 * solib-dsbt.c (enable_break): Declare.
7402 (dsbt_current_sos): Remove call to enable_break2.
7403 (enable_break2): Rename to enable_break. Set solib breakpoint
7404 on '_dl_debug_state'.
7405 (enable_break): Remove.
7407 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7409 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7410 debug state prior to replicating existing hardware watchpoints or
7413 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7415 * gcore.c (gcore_create_callback): Ignore sections with
7416 separate_debug_objfile_backlink != NULL.
7418 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7419 Andrew Jenner <andrew@codesourcery.com>
7420 Chung-Lin Tang <cltang@codesourcery.com>
7421 Julian Brown <julian@codesourcery.com>
7423 Based on the nios2-elf port from Altera Corporation.
7425 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7427 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7428 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7429 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7430 * nios2-tdep.h: New.
7431 * nios2-tdep.c: New.
7432 * nios2-linux-tdep.c: New.
7433 * features/Makefile (WHICH): Add nios2-linux.
7434 (nios2-linux-expedite): Set.
7435 * features/nios2-cpu.xml: New.
7436 * features/nios2.xml: New.
7437 * features/nios2-linux.xml: New.
7438 * features/nios2.c: New (autogenerated).
7439 * features/nios2-linux.c: New (autogenerated).
7440 * regformats/nios2-linux.dat: New (autogenerated).
7441 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7444 2013-05-06 Doug Evans <dje@google.com>
7446 * symfile.c: Whitespace cleanup.
7448 * solist.h (struct target_so_ops): New member clear_so.
7449 * solib-svr4.c (svr4_clear_so): New function.
7450 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7451 * solib.c (clear_so): Renamed from free_so_symbols.
7452 All callers updated. Call target clear_so if it exists.
7454 2013-05-06 Tom Tromey <tromey@redhat.com>
7456 * ada-lang.c (ada_value_primitive_packed_val): Don't
7458 * value.c (set_value_parent): Incref the new parent and decref
7460 (value_copy, value_primitive_field): Use set_value_parent.
7462 2013-05-06 Tom Tromey <tromey@redhat.com>
7464 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7465 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7467 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7468 * dwarf2read.c (write_constant_as_bytes)
7469 (dwarf2_fetch_constant_bytes): New functions.
7471 2013-05-06 Tom Tromey <tromey@redhat.com>
7473 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7475 (dwarf2_const_value_attr): Update.
7477 2013-05-06 Tom Tromey <tromey@redhat.com>
7479 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7480 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7481 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7484 2013-05-06 Tom Tromey <tromey@redhat.com>
7486 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7489 2013-05-06 Doug Evans <dje@google.com>
7491 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7492 * stabsread.h (process_one_symbol): Update declaration.
7493 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7494 * elfread.c (elf_symfile_relocate_probe): Ditto.
7495 * psymtab.c (relocate_psymtabs): Ditto.
7496 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7497 (objfile_relocate): Ditto.
7498 * objfiles.h (objfile_relocate): Update declaration.
7499 * symfile.c (relative_addr_info_to_section_offsets): Constify
7501 (default_symfile_offsets): Ditto.
7502 (syms_from_objfile_1): Constify offsets parameter.
7503 (syms_from_objfile): Ditto.
7504 (symbol_file_add_with_addrs_or_offsets): Ditto.
7505 (symfile_map_offsets_to_segments): Constify data parameter.
7506 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7507 delta parameters of member relocate.
7508 (struct sym_probe_fns): Constify new_offsets,
7509 delta parameters of member sym_relocate_probe.
7510 (struct sym_fns): Constify section_addr_info parameter of member
7512 (relative_addr_info_to_section_offsets): Update declaration.
7513 (default_symfile_offsets): Ditto.
7514 (syms_from_objfile): Ditto.
7515 (symfile_map_offsets_to_segments): Ditto.
7517 * symfile.c (syms_from_objfile_1): Use correct section count when
7518 objfile->sf == NULL.
7520 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7522 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7524 2013-05-06 Doug Evans <dje@google.com>
7526 * psympriv.h (struct partial_symtab): Augment comment for member
7529 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7531 Reimplement shared library support on ppc-aix...
7532 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7533 * features/library-list-aix.dtd: New file.
7534 * solib-aix.h, solib-aix.c: New file.
7535 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7536 (rs6000_find_toc_address_hook): Delete.
7537 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7538 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7539 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7541 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7542 (vmap_symtab, fixup_breakpoints): Delete.
7543 (rs6000_xfer_shared_libraries): New function.
7544 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7545 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7546 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7547 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7548 (rs6000_xfer_shared_library): New function.
7549 (find_toc_address): Delete.
7550 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7551 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7552 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7553 before creating minimal symbol. Adjust function description
7555 (scan_xcoff_symtab): Replace call to
7556 prim_record_minimal_symbol_and_info by call to
7557 record_minimal_symbol.
7558 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7559 around default_symfile_offsets.
7560 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7561 powerpc-aix targets.
7562 * config/rs6000/nm-rs6000.h: Delete.
7563 * config/powerpc/aix.mh (NAT_FILE): Delete.
7564 (NATDEPFILES): Remove xcoffsolib.o.
7565 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7566 (ALL_TARGET_OBS): Add solib-aix.o.
7567 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7568 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7569 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7570 * xcoffsolib.h, xcoffsolib.c: Delete.
7572 * solib.c (reload_shared_libraries): Remove reference to
7573 SOLIB_CREATE_INFERIOR_HOOK.
7574 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7575 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7576 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7578 * corelow.c (deprecated_core_resize_section_table): Delete.
7579 * exec.c: Remove include of xcoffsolib.h".
7580 (map_vmap, vmap): Delete.
7581 (exec_close_1): Remove references to vmap.
7582 (exec_file_attach): Remove vmap handling code, and reference
7583 to DEPRECATED_IBM6000_TARGET.
7584 (bfdsec_to_vmap): Delete.
7585 (exec_files_info): Remove block of code handling VMAP.
7586 * infcmd.c (post_create_inferior): Remove reference to
7587 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7588 * infrun.c (follow_exec): Remove reference to
7589 SOLIB_CREATE_INFERIOR_HOOK.
7590 * stack.c (print_frame): Remove reference to PC_SOLIB.
7591 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7592 (dsbt_relocate_main_executable): Likewise.
7593 * solib-frv.c (frv_current_sos): Likewise.
7595 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7597 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7598 to target_write_memory and target_read_memory.
7600 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7602 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7603 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7605 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7607 * darwin-nat.c: Replace all "%x" instances in format strings
7608 into "0x%x" throughout.
7610 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7612 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7613 gdb_assert by call to MACH_CHECK_ERROR.
7614 (darwin_attach_pid): Raise an error rather than a failed
7615 assertion when various system calls failed. Report a warning
7616 instead of raising a failed assertion when PREV_NOT is not NULL
7617 after call to mach_port_request_notification.
7618 (darwin_ptrace_me): Raise an error rather than a failed
7619 assertion when read returns nonzero.
7621 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7623 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7625 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7627 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7629 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7631 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7632 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7633 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7634 a stale cleanup. Fix double free of NAME.
7636 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7638 * windows-nat.c (windows_delete_thread): Accept an additional
7639 argument, the thread's exit code, and announce thread death when
7640 print_thread_events is non-zero and we are deleting a thread that
7641 is not the main thread.
7642 (get_windows_debug_event): Pass thread exit code to
7643 windows_delete_thread.
7645 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7647 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7648 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7649 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7650 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7651 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7652 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7653 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7654 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7655 (gdbarch_tdep): New struct.
7656 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7658 (v850e3v5_register_name): New function.
7659 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7660 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7661 code handling the struct return conventions for the RH850 ABI.
7663 (v850_eight_byte_align_p): New function.
7664 (v850_push_call_dummy): Push structs by value, not by reference
7665 for the RH850 ABI. Add support for eight byte alignment.
7666 (v850_dbtrap_breakpoint_from_pc): New function.
7667 (v850_gdbarch_init): Add ABI detection code. Register
7668 v850e3v5_register_name for the v850e3v5 architecture. Set the
7669 number of registers for v850e3v5. Register
7670 v850_dbtrap_breakpoint_from_pc as appropriate.
7671 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7673 2013-05-03 Doug Evans <dje@google.com>
7675 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7676 of bfd_count_sections.
7677 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7678 * symfile.c (default_symfile_offsets): Ditto.
7679 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7680 one entry, not bfd_count_sections entries.
7682 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7684 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7685 `save' and `restore' register groups. Don't include SPL
7686 or SPH in these groups.
7687 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7688 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7689 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7690 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7691 dwarf2_append_unwinders().
7693 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7695 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7696 ignore SIGINT and SIGTRAP in case these internal signals are
7699 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7701 * darwin-nat.c (darwin_read_write_inferior): Change types
7702 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7703 of copy_count to "mach_msg_type_number_t".
7704 (darwin_read_dyld_info): Change type of parameter
7705 rdaddr to "gdb_byte *".
7707 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7709 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7710 of &info->load_map from "char *" to "gdb_byte *".
7712 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7714 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7715 from "char *" to "gdb_byte *".
7716 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7718 2013-04-30 Doug Evans <dje@google.com>
7720 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7721 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7722 DWO stub. If DWO isn't found, just use stub.
7723 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7725 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7726 calling init_cutu_and_read_dies.
7728 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7730 * target-descriptions.c (maint_print_c_tdesc_cmd):
7731 Add case to parse structures as register types and
7734 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7736 * MAINTAINERS (Write After Approval): Add myself to the list.
7738 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7740 * sol-thread.c (rw_common): Change type of parameter "buf"
7742 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7743 rw_common to "gdb_byte *" instead of "char *".
7745 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7747 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7748 of local variable msym to const struct bound_minimal_symbol.
7749 Adjust use accordingly.
7750 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7752 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7754 * i386gnu-nat.c (CREG_OFFSET): New macro.
7755 (creg_offset): New array.
7756 (CREG_ADDR): Use creg_offset instead of reg_offset.
7758 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7760 * mep-tdep.c (mep_write_pc): Delete.
7761 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7762 Add call to set_gdbarch_pc_regnum.
7764 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7766 * common/filestuff.c: Replace #include <dirent.h> by
7767 #include "gdb_dirent.h".
7769 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7771 * common/filestuff.c: Replace #include <sys/stat.h> by
7772 #include "gdb_stat.h".
7774 2013-04-29 Pierre Muller <muller@sourceware.org>
7776 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7777 editCase function rule.
7778 (get_DW_AT_signature_type): Likewise.
7780 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7782 * m32r-tdep.c (m32r_write_pc): Delete.
7783 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7784 Add call to set_gdbarch_pc_regnum.
7786 2013-04-29 Pierre Muller <muller@sourceware.org>
7788 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7790 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7792 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7794 2013-04-28 Yao Qi <yao@codesourcery.com>
7796 * solib-dsbt.c (fetch_loadmap): Re-indent.
7797 (displacement_from_map, enable_break2): Likewise.
7798 (dsbt_relocate_section_addresses): Likewise.
7800 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7804 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7807 * dwarf2read.c (process_full_comp_unit): Always create a static
7810 2013-04-25 Hui Zhu <hui@codesourcery.com>
7812 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7813 to loc->cmd_bytecode.
7815 2013-04-24 Doug Evans <dje@google.com>
7817 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7819 2013-04-22 Keith Seitz <keiths@redhat.com>
7821 * tracepoint.c (trace_save): Call the writer's start method.
7823 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7826 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7829 2013-04-23 Tom Tromey <tromey@redhat.com>
7831 * common/filestuff.c: Check USE_WIN32API before including
7833 (HAVE_F_GETFD): New define.
7834 (mark_cloexec): Check HAVE_F_GETFD.
7835 (gdb_open_cloexec): Change 'mode' to unsigned long.
7836 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7837 (gdb_pipe_cloexec): Check HAVE_PIPE.
7838 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7841 2013-04-23 Hui Zhu <hui@codesourcery.com>
7844 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7846 2013-04-23 Hui Zhu <hui@codesourcery.com>
7849 * breakpoint.c (dprintf_print_recreate): New.
7850 (save_breakpoints): Let it not save dprintf commands.
7851 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7853 2013-04-22 Tom Tromey <tromey@redhat.com>
7856 * Makefile.in (SFILES): Add filestuff.c
7857 (COMMON_OBS): Add filestuff.o.
7858 (filestuff.o): New target.
7859 * auto-load.c (auto_load_objfile_script_1): Use
7861 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7862 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7863 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7864 * common/agent.c (gdb_connect_sync_socket): Use
7866 * common/filestuff.c: New file.
7867 * common/filestuff.h: New file.
7868 * common/linux-osdata.c (linux_common_core_of_thread)
7869 (command_from_pid, commandline_from_pid, print_source_lines)
7870 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7871 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7873 * common/linux-procfs.c (linux_proc_get_int)
7874 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7875 * config.in, configure: Rebuild.
7876 * configure.ac: Don't check for sys/socket.h. Check for
7878 * corelow.c (core_open): Use gdb_open_cloexec.
7879 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7880 * fork-child.c (fork_inferior): Call close_most_fds.
7881 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7882 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7883 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7884 Use gdb_fopen_cloexec.
7885 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7887 (linux_async_pipe): Use gdb_pipe_cloexec.
7888 * remote-fileio.c (remote_fileio_func_open): Use
7890 * remote.c (remote_file_put, remote_file_get): Use
7892 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7894 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7895 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7896 * solib.c (solib_find): Use gdb_open_cloexec.
7897 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7898 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7899 (tfile_open): Use gdb_open_cloexec.
7900 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7901 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7902 * xml-support.c (xml_fetch_content_from_file): Use
7904 * main.c (captured_main): Call notice_open_fds.
7906 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7908 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7909 'char *' to 'gdb_byte *'.
7910 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7913 2013-04-22 Yao Qi <yao@codesourcery.com>
7915 * infrun.c: Fix typo in comment.
7917 2013-04-22 Andrew Haley <aph@redhat.com>
7919 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7922 2013-04-20 Yao Qi <yao@codesourcery.com>
7924 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7925 'char *' to 'gdb_byte *'. Cast the return value of
7926 'bt_ctf_get_char_array' to 'gdb_byte *'.
7928 2013-04-19 Pedro Alves <palves@redhat.com>
7930 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7932 * configure: Regenerate.
7934 2013-04-19 Pedro Alves <palves@redhat.com>
7936 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7939 2013-04-19 Pedro Alves <palves@redhat.com>
7941 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7942 Change type of 'myaddr' parameter to gdb_byte pointer.
7943 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7944 to 'long long' pointer instead of to 'unsigned long long'.
7945 (monitor_write_memory_block, monitor_read_memory_single)
7946 (monitor_read_memory): Change type of 'myaddr' parameter to
7949 2013-04-19 Pedro Alves <palves@redhat.com>
7951 * record.c (validate_history_size): Make parameter 'setting'
7954 2013-04-19 Pedro Alves <palves@redhat.com>
7956 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7959 2013-04-19 Pedro Alves <palves@redhat.com>
7961 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7964 2013-04-19 Pedro Alves <palves@redhat.com>
7966 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7967 * ada-tasks.c (read_fat_string_value): Likewise.
7969 2013-04-19 Pedro Alves <palves@redhat.com>
7971 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7972 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7973 'offset', and adjust.
7975 2013-04-19 Pedro Alves <palves@redhat.com>
7977 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7978 (read_index_from_section): Add cast to 'char *'.
7980 2013-04-19 Pedro Alves <palves@redhat.com>
7982 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7984 2013-04-19 Pedro Alves <palves@redhat.com>
7986 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7988 2013-04-19 Pedro Alves <palves@redhat.com>
7990 * record-full.c (record_full_get_bookmark): Change local 'ret'
7991 type to char * and add cast to gdb_byte *.
7992 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7994 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7996 2013-04-19 Pedro Alves <palves@redhat.com>
7998 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7999 * python/py-prettyprint.c (print_string_repr): Change type of
8000 'output' local to char *. Add cast to gdb_byte * in
8001 LA_PRINT_STRING call.
8002 (print_children): Change type of 'output' local to char *.
8003 * python/py-value.c (valpy_string): Add cast to const char * in
8004 PyUnicode_Decode call.
8006 2013-04-19 Pedro Alves <palves@redhat.com>
8008 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8009 and change its type to 'const char *'. Adjust.
8010 (mips_send_packet): Add cast to 'char *', and remove cast to
8012 (mips_receive_packet): Remove cast to 'unsigned char *'.
8013 (mips_load_srec): Use bfd_byte.
8014 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8015 (pmon_checkset): Make 'value' parameter unsigned.
8017 2013-04-19 Pedro Alves <palves@redhat.com>
8019 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8021 2013-04-19 Pedro Alves <palves@redhat.com>
8023 * remote.c (remote_write_bytes_aux, compare_sections_command)
8025 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8026 (remote_hostio_readlink, remote_bfd_iovec_pread)
8027 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8028 binary buffer, and char when buffer is used as string.
8029 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8030 (trace_save, tfile_open, traceframe_walk_blocks)
8031 (tfile_fetch_registers): Likewise.
8033 2013-04-19 Pedro Alves <palves@redhat.com>
8035 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8036 buffer and size_t size. Adjust.
8037 * ser-base.h (ser_base_write): Adjust.
8038 * ser-go32.c (cnts): Change type to size_t.
8039 (dos_write): Change prototype -- take 'void *'
8040 buffer and size_t size. Adjust.
8041 (dos_info): Print elements of 'cnts' as unsigned long.
8042 * serial.c (serial_write): Likewise.
8043 * serial.h (serial_write): Adjust.
8044 (struct serial_ops) <write>: Change prototype -- take 'void *'
8045 buffer and size_t size. Adjust.
8047 2013-04-19 Pedro Alves <palves@redhat.com>
8049 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8051 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8053 2013-04-19 Pedro Alves <palves@redhat.com>
8055 * alpha-tdep.c (alpha_extract_return_value): Use
8056 regcache_cooked_read_unsigned to read 'v0'.
8058 2013-04-19 Pedro Alves <palves@redhat.com>
8060 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8061 parameters 'at', 'as' and 'offset' to uint32_t.
8063 2013-04-19 Pedro Alves <palves@redhat.com>
8065 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8066 'is64' to signed 'int'.
8068 2013-04-19 Pedro Alves <palves@redhat.com>
8070 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8073 2013-04-19 Pedro Alves <palves@redhat.com>
8075 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8076 'insnbuf' buffer type to unsigned int[].
8078 2013-04-19 Pedro Alves <palves@redhat.com>
8080 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8082 2013-04-19 Pedro Alves <palves@redhat.com>
8084 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8087 2013-04-19 Pedro Alves <palves@redhat.com>
8089 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8090 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8092 * mips-tdep.c (heuristic_fence_post): Change type to int.
8093 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8095 2013-04-19 Pedro Alves <palves@redhat.com>
8097 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8098 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8099 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8101 2013-04-19 Pedro Alves <palves@redhat.com>
8103 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8104 it to get a string view of the byte buffer.
8105 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8106 type to gdb_byte *. Adjust.
8107 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8108 Change local to char *.
8109 * solib-darwin.c (find_program_interpreter): Change return type to
8111 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8112 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8113 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8114 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8115 * solib-svr4.c (find_program_interpreter): Change return type to
8117 (enable_break): Change local 'interp_name' to char *.
8118 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8119 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8120 (spu_pseudo_register_write_spu): Use char for string buffer.
8122 (info_spu_event_command, info_spu_signal_command): Add casts to
8125 2013-04-19 Pedro Alves <palves@redhat.com>
8127 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8129 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8130 * ada-lang.c (ada_value_assign): Use gdb_byte.
8131 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8132 (alphanbsd_sigtramp_offset): Use gdb_byte.
8133 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8134 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8135 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8136 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8137 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8138 * arm-tdep.c (arm_stub_unwind_sniffer)
8139 (arm_displaced_init_closure): Use gdb_byte.
8140 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8141 (arm_default_thumb_le_breakpoint)
8142 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8143 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8144 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8145 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8146 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8147 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8148 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8149 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8150 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8151 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8152 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8153 (cris_store_return_value, cris_extract_return_value): Use
8155 (constraint): Change type of parameter to char * from signed
8156 char*. Use gdb_byte.
8157 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8158 of local buffer to gdb_byte *.
8159 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8160 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8161 (add_address_entry): Change type of local buffer to gdb_byte[].
8162 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8163 (frv_push_dummy_call): Use gdb_byte.
8164 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8165 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8166 (hppa_hpux_supply_save_state): Use gdb_byte.
8167 * hppa-tdep.c (hppa32_push_dummy_call)
8168 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8169 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8170 (slotN_contents, replace_slotN_contents): Change type of parameter
8172 (fetch_instruction, ia64_pseudo_register_write)
8173 (ia64_register_to_value, ia64_value_to_register)
8174 (ia64_extract_return_value, ia64_store_return_value)
8175 (ia64_push_dummy_call): Use gdb_byte.
8176 * m32c-tdep.c (m32c_return_value): Remove cast.
8177 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8178 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8180 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8181 * mn10300-tdep.c (mn10300_store_return_value)
8182 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8184 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8185 (moxie_process_record): Remove casts.
8186 * ppc-ravenscar-thread.c (supply_register_at_address)
8187 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8188 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8189 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8190 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8191 * remote.c (compare_sections_command): Use gdb_byte.
8192 * score-tdep.c (score7_free_memblock): Change type of parameter to
8194 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8195 gdb_byte *. Use gdb_byte.
8196 (sh_push_dummy_call_fpu): Use gdb_byte.
8197 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8198 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8199 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8200 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8201 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8202 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8203 (sh64_store_return_value, sh64_register_convert_to_virtual):
8204 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8205 (sh64_pseudo_register_write): Use gdb_byte.
8206 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8207 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8209 (irix_current_sos): Use gdb_byte.
8210 * solib-som.c (som_current_sos): Use gdb_byte.
8211 * sparc-ravenscar-thread.c (supply_register_at_address)
8212 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8213 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8214 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8215 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8217 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8219 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8220 * xstormy16-tdep.c (xstormy16_extract_return_value)
8221 (xstormy16_store_return_value): Change parameter type to
8222 'gdb_byte *'. Adjust.
8223 (xstormy16_push_dummy_call): Use gdb_byte.
8224 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8225 (call0_analyze_prologue, execute_code): Use gdb_byte.
8227 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8228 Pedro Alves <palves@redhat.com>
8230 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8233 2013-04-17 Doug Evans <dje@google.com>
8235 * dwarf2read.c (struct signatured_type): New member type.
8236 (struct attribute): Replace member signatured_type with signature.
8237 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8238 (read_call_site_scope): Call follow_die_ref instead of
8239 follow_die_ref_or_sig.
8240 (read_structure_type): Rewrite handling of signatured types.
8241 (read_enumeration_type): Ditto.
8242 (read_attribute_value): Update.
8243 (build_error_marker_type): New function.
8244 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8245 Don't call error for bad types, just build an error marker type.
8246 (dump_die_shallow): Update.
8247 (follow_die_sig_1): Renamed from follow_die_sig.
8248 Don't call error for bad types, instead return NULL.
8249 (follow_die_sig): New function.
8250 (get_signatured_type, get_DW_AT_signature_type): New functions.
8252 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8254 * aarch64-tdep.c (aarch64_write_pc): Removed.
8255 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8258 2013-04-17 Yao Qi <yao@codesourcery.com>
8260 * top.c (print_gdb_configuration): Print configure-time
8261 parameter on using libbabeltrace or not.
8263 2013-04-16 Pedro Alves <palves@redhat.com>
8265 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8267 2013-04-16 Pedro Alves <palves@redhat.com>
8269 * common/glibc_thread_db.h: Update from upstream glibc
8270 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8272 2013-04-16 Pedro Alves <palves@redhat.com>
8274 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8275 * common/glibc_thread_db.h: ... this new file ...
8276 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8278 2013-04-16 Will Newton <will.newton@gmail.com>
8279 Pedro Alves <palves@redhat.com>
8283 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8284 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8287 2013-04-16 Pedro Alves <palves@redhat.com>
8288 Eli Zaretskii <eliz@gnu.org>
8290 * NEWS: Mention "set foo unlimited".
8292 2013-04-15 Doug Evans <dje@google.com>
8294 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8295 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8296 (create_dwo_cu_reader): Renamed from
8297 create_dwo_debug_info_hash_table_reader.
8298 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8299 Remove support for multiple CUs in a DWO file.
8300 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8302 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8304 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8305 (create_dwo_in_dwp): Ditto.
8307 2013-04-15 Tom Tromey <tromey@redhat.com>
8309 * NEWS: Move recent entries into "since 7.6" section.
8311 2013-04-15 Tom Tromey <tromey@redhat.com>
8315 * break-catch-throw.c (struct exception_catchpoint)
8316 <exception_rx, pattern>: New fields.
8317 (fetch_probe_arguments, dtor_exception_catchpoint)
8318 (check_status_exception_catchpoint)
8319 (print_one_detail_exception_catchpoint): New functions.
8320 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8321 Compile regular expression if needed.
8322 (extract_exception_regexp): New function.
8323 (catch_exception_command_1): Use extract_exception_regexp.
8324 (compute_exception): Use fetch_probe_arguments.
8325 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8326 and check_status fields.
8327 * cp-abi.c (cplus_typename_from_type_info): New function.
8328 * cp-abi.h (cplus_typename_from_type_info): Declare.
8329 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8330 * gdb_regex.h (compile_rx_or_error): Declare.
8331 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8333 (init_gnuv3_ops): Set get_type_from_type_info field.
8334 * probe.c (compile_rx_or_error): Move...
8335 * utils.c (compile_rx_or_error): ... here.
8337 2013-04-15 Tom Tromey <tromey@redhat.com>
8341 * break-catch-throw.c (compute_exception): New function.
8342 (exception_funcs): New global.
8343 (_initialize_break_catch_throw): Create $_exception.
8344 * cp-abi.c (cplus_type_from_type_info): New function.
8345 * cp-abi.h (cplus_type_from_type_info): Declare.
8346 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8347 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8348 (gnuv3_get_type_from_type_info): New functions.
8349 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8351 2013-04-15 Tom Tromey <tromey@redhat.com>
8353 * break-catch-throw.c (struct exception_names): New.
8354 (exception_functions): Change type.
8355 (re_set_exception_catchpoint): Look for SDT probes.
8357 2013-04-15 Tom Tromey <tromey@redhat.com>
8360 * break-catch-throw.c (exception_functions): New global.
8361 (gnu_v3_exception_catchpoint_ops): Move earlier.
8362 (struct exception_catchpoint): New.
8363 (classify_exception_breakpoint): Rewrite.
8364 (re_set_exception_catchpoint): New function.
8365 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8366 Allocate a struct exception_catchpoint.
8367 (catch_exception_command_1): Update.
8368 (initialize_throw_catchpoint_ops): Set 're_set' method.
8370 2013-04-15 Tom Tromey <tromey@redhat.com>
8372 * Makefile.in (SFILES): Add break-catch-throw.c
8373 (COMMON_OBS): Add break-catch-throw.o.
8374 * break-catch-throw.c: New file.
8375 * breakpoint.c: Move exception-catching code to new file.
8376 (ep_parse_optional_if_clause): No longer static.
8377 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8379 2013-04-15 Tom Tromey <tromey@redhat.com>
8383 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8384 * c-exp.y (TYPEID): New token.
8385 (exp): Add new TYPEID productions.
8386 (ident_tokens): Add "typeid".
8387 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8388 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8389 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8390 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8391 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8393 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8394 (build_std_type_info_type, gnuv3_get_typeid_type)
8395 (gnuv3_get_typeid): New functions.
8396 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8397 new fields on ABI object.
8398 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8399 * std-operator.def (OP_TYPEID): New.
8401 2013-04-15 Tom Tromey <tromey@redhat.com>
8403 * elfread.c (elf_symtab_read): Install versioned symbol under
8404 unversioned name as well.
8406 2013-04-15 Tom Tromey <tromey@redhat.com>
8409 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8410 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8411 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8412 (gdb_demangle): New function.
8413 * cp-support.h (gdb_demangle): Declare.
8414 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8415 (dwarf2_name): Use gdb_demangle.
8416 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8417 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8419 (gnuv3_print_method_ptr): Use gdb_demangle.
8420 * jv-lang.c (java_demangle): Use gdb_demangle.
8421 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8422 * language.c (unk_lang_demangle): Use gdb_demangle.
8423 * symtab.c (symbol_find_demangled_name)
8424 (demangle_for_lookup): Use gdb_demangle.
8426 2013-04-15 Tom Tromey <tromey@redhat.com>
8430 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8432 (classify_exception_breakpoint): New function.
8433 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8434 (print_mention_exception_catchpoint)
8435 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8436 (catch_exception_command_1): Handle "rethrow" catchpoint.
8437 (catch_rethrow_command): New function.
8438 (_initialize_breakpoint): Add "catch rethrow" command.
8440 2013-04-15 Pierre Muller <muller@sourceware.org>
8442 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8443 set_gdbarch_write_pc as deprecated anymore.
8445 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8447 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8450 2013-04-13 Yao Qi <yao@codesourcery.com>
8452 * ctf.c (_initialize_ctf): Include "completer.h".
8453 Call add_target_with_completer instead of add_target.
8455 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8457 Fix GDB regression related to PR binutils/14813.
8458 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8459 * minidebug.c (lzma_close): Add return value comment.
8460 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8461 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8462 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8464 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8466 * config.in: Regenerate.
8468 2013-04-12 Tom Tromey <tromey@redhat.com>
8470 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8472 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8473 (struct die_reader_specs) <buffer>: Likewise.
8474 (die_reader_func_ftype): Make 'info_ptr' const.
8475 (struct line_header) <include_dirs, statement_program_start,
8476 statement_program_end>: Now const.
8477 (struct file_entry) <name>: Likewise.
8478 (struct partial_die_info) <sibling>: Likewise.
8479 (struct dwarf_block) <data>: Likewise.
8480 (dwarf2_read_section): Remove cast.
8481 (dwarf2_get_section_info): Make 'bufp' const.
8482 (read_index_from_section): Constify.
8483 (dw2_get_file_names_reader): Make 'info_ptr' const.
8484 (dw2_get_primary_filename_reader): Likewise.
8485 (read_comp_unit_head): Make 'info_ptr' and return type const.
8486 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8488 (read_abbrev_offset): Constify.
8489 (dwarf2_create_include_psymtab): Make 'name' const.
8490 (create_debug_types_hash_table): Update.
8491 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8492 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8494 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8495 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8496 (read_comp_units_from_section): Constify.
8497 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8498 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8500 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8501 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8502 (create_dwp_hash_table, dwarf2_ranges_read)
8503 (dwarf2_record_block_ranges): Constify.
8504 (read_die_and_children, read_die_and_siblings_1)
8505 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8507 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8508 (abbrev_table_read_table): Constify.
8509 (load_partial_dies): Make 'info_ptr' const.
8510 (read_partial_die, read_attribute_value, read_attribute): Make
8511 'info_ptr' and return type const.
8512 (read_address, read_initial_length)
8513 (read_checked_initial_length_and_offset, read_offset)
8514 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8516 (read_direct_string): Make 'buf' and return type const.
8517 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8518 (read_indirect_string): Make return type const.
8519 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8520 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8522 (read_str_index): Make return type const.
8523 (add_include_dir): Make 'include_dir' const.
8524 (add_file_name): Make 'name' const.
8525 (dwarf_decode_line_header): Constify.
8526 (psymtab_include_file_name): Make return type const.
8527 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8528 (dwarf2_start_subfile): Make 'filename' const.
8529 (dwarf2_const_value_attr): Make 'bytes' const.
8530 (read_signatured_type_reader): Make 'info_ptr' const.
8531 (decode_locdesc): Constify.
8532 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8534 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8535 'mac_end', and return type const.
8536 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8537 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8539 (per_cu_header_read_in): Constify.
8540 * symfile.h (dwarf2_get_section_info): Update.
8542 2013-04-12 Tom Tromey <tromey@redhat.com>
8544 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8546 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8548 * NEWS: Mention "show configuration", --configuration.
8549 * top.c (print_gdb_configuration): New function, displays the
8550 details about GDB configure-time parameters.
8551 (print_gdb_version): Mention "show configuration".
8552 * cli/cli-cmds.c (show_configuration): New function.
8553 (_initialize_cli_cmds): Add the "show configuration" command.
8554 * main.c (captured_main) <print_configuration>: New static var.
8555 <long_options>: Use it.
8556 If --configuration was given, call print_gdb_configuration.
8558 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8559 Pedro Alves <palves@redhat.com>
8561 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8562 (generated_files): Add gcore.
8563 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8564 HAVE_NATIVE_GCORE_HOST.
8566 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8567 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8568 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8569 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8570 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8571 Add HAVE_NATIVE_GCORE_HOST.
8572 * configure: Regenerate.
8573 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8574 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8575 AC_CONFIG_FILES for gcore.
8576 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8578 * gdb_gcore.sh: Rename to ...
8579 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8580 and GCORE_TRANSFORM_NAME substitutions.
8582 Fix parsing tabs in ${gdb_target_obs}.
8583 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8585 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8587 * remote.c (unpush_and_perror): Add output message final dot.
8589 2013-04-11 Yao Qi <yao@codesourcery.com>
8591 * tracepoint.c (tfile_interp_line): Fit parameters line and
8594 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8596 * solib.c (solib_map_sections): Remove code overwriting
8597 SO->SO_NAME with the bfd's filename.
8599 2013-04-10 Pedro Alves <palves@redhat.com>
8601 * cli/cli-decode.c (integer_unlimited_completer): New function.
8602 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8603 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8605 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8606 (is_unlimited_literal): New function.
8607 (do_set_command): Handle literal "unlimited" arguments.
8608 * frame.c (_initialize_frame) <set backtrace limit>: Document
8610 * printcmd.c (_initialize_printcmd) <set print
8611 max-symbolic-offset>: Add help text.
8612 * record-full.c (_initialize_record_full) <set record full
8613 insn-number-max>: Likewise.
8614 * record.c (_initialize_record) <set record
8615 instruction-history-size, set record function-call-history-size>:
8617 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8619 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8621 * source.c (_initialize_source) <set listsize>: Add help text.
8622 * utils.c (initialize_utils) <set height, set width>: Likewise.
8623 <set pagination>: Mention "set height unlimited".
8624 * valprint.c (_initialize_valprint) <set print elements, set print
8625 repeats>: Document "unlimited".
8627 2013-04-10 Pedro Alves <palves@redhat.com>
8629 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8630 instead of disconnect_tracing.
8631 * infcmd.c (detach_command, disconnect_command): Call
8632 query_if_trace_running. Adjust.
8633 * top.c: Include "tracepoint.h".
8634 (quit_target): Delete. Contents moved ...
8635 (quit_force): ... here. Wrap each stage of teardown in
8636 TRY_CATCH. Call disconnect_tracing before detaching.
8638 2013-04-10 Hui Zhu <hui@codesourcery.com>
8639 Yao Qi <yao@codesourcery.com>
8641 * configure.ac: Check libbabeltrace is installed.
8642 * config.in: Regenerate.
8643 * configure: Regenerate.
8644 * Makefile.in (LIBBABELTRACE): New.
8645 (CLIBS): Add LIBBABELTRACE.
8646 * ctf.c: Include "exec.h".
8647 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8648 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8649 (ctf_save_metadata_header): Define new type aliases in
8651 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8652 in metadata. Start a new faked packet for trace status.
8653 (ctf_write_status): Write trace status to CTF.
8654 (ctf_write_uploaded_tsv): Write TSV to CTF.
8655 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8656 (ctf_write_definition_end): End the faked packet.
8658 (ctx, ctf_iter, trace_dirname): New.
8659 (start_pos): New variable.
8660 (ctf_destroy, ctf_open_dir, ctf_open): New.
8661 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8663 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8664 (ctf_fetch_registers, ctf_xfer_partial): New.
8665 (ctf_get_trace_state_variable_value): New.
8666 (ctf_get_tpnum_from_frame_event): New.
8667 (ctf_get_traceframe_address): New.
8668 (ctf_trace_find, ctf_has_stack): New.
8669 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8670 (ctf_get_trace_status, ctf_read_status): New.
8671 (_initialize_ctf): New.
8672 * tracepoint.c (get_tracepoint_number): New
8673 (get_uploaded_tsv): Remove 'static'.
8674 (struct traceframe_info, trace_regblock_size): Move it to ...
8675 * tracepoint.h: ... here.
8676 (get_tracepoint_number): Declare it.
8677 (get_uploaded_tsv): Declare it.
8679 * NEWS: Mention new configure option.
8681 2013-04-10 Pedro Alves <palves@redhat.com>
8682 Hui Zhu <hui@codesourcery.com>
8684 * breakpoint.c (dprintf_re_set): New.
8685 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8688 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8690 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8691 Remove solib-svr4.o from the list.
8693 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8695 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8696 Use gdb_assert_not_reached instead of invalid boolean expression.
8698 2013-04-09 Pedro Alves <palves@redhat.com>
8700 * remote.c (unpush_and_perror): New function.
8701 (readchar, remote_serial_write): Use it.
8703 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8705 * NEWS: Mention new btrace RSP packets.
8707 2013-04-08 Tom Tromey <tromey@redhat.com>
8709 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8712 2013-04-08 Tom Tromey <tromey@redhat.com>
8714 * maint.c (print_bfd_section_info): Print the section index.
8715 * symmisc.c (dump_msymbols): Print the section index.
8717 2013-04-08 Tom Tromey <tromey@redhat.com>
8720 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8721 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8722 * breakpoint.c (resolve_sal_pc): Update.
8723 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8724 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8725 (minsym_lookup_iterator_cb): Use it.
8726 (default_read_var_value): Update.
8727 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8729 * infcmd.c (jump_command): Update.
8730 * linespec.c (minsym_found): Update.
8731 * maint.c (maintenance_translate_address): Update.
8732 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8733 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8734 * parse.c (write_exp_msymbol): Update.
8735 * printcmd.c (address_info): Update.
8736 * psymtab.c (find_pc_sect_psymbol): Update.
8737 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8739 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8740 Don't initialize SYMBOL_OBJ_SECTION.
8741 * spu-tdep.c (spu_catch_start): Update.
8742 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8743 * symmisc.c (dump_msymbols, print_symbol): Update.
8744 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8745 how fallback section is computed.
8746 (fixup_symbol_section): Update.
8747 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8749 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8750 Initialize SYMBOL_SECTION.
8751 * symtab.h (struct general_symbol_info) <section>: Update comment.
8752 <obj_section>: Remove.
8753 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8754 (SYMBOL_OBJFILE): New macro.
8756 2013-04-08 Tom Tromey <tromey@redhat.com>
8758 * coffread.c (record_minimal_symbol): Update.
8759 * dbxread.c (record_minimal_symbol): Update.
8760 * elfread.c (record_minimal_symbol): Update.
8761 * machoread.c (macho_symtab_add_minsym): Update.
8762 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8764 * minsyms.c (prim_record_minimal_symbol): Update.
8765 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8767 (prim_record_minimal_symbol_and_info): Likewise.
8768 * minsyms.h (prim_record_minimal_symbol_full)
8769 (prim_record_minimal_symbol_and_info): Update.
8770 * symtab.c (allocate_symbol, initialize_symbol)
8771 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8772 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8775 2013-04-08 Tom Tromey <tromey@redhat.com>
8778 * solib-som.c (som_solib_section_offsets): Use BFD section
8779 indices. Set offsets for all sections.
8780 * somread.c (som_symtab_read): Compute BFD section for
8781 symbol. Use prim_record_minimal_symbol_and_info.
8782 (som_symfile_read): Fix comment.
8783 (struct find_section_offset_arg): New.
8784 (find_section_offset, set_section_index): New functions.
8785 (som_symfile_offsets): Use set_section_index to compute
8788 2013-04-08 Tom Tromey <tromey@redhat.com>
8790 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8791 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8792 gdb_bfd_section_index.
8793 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8795 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8797 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8799 * objfiles.c (add_to_objfile_sections_full): New function.
8800 (add_to_objfile_sections): Use it.
8801 (build_section_table): Rewrite.
8802 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8803 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8804 (struct objfile) <sections>: Update comment.
8805 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8807 (ALL_OBJSECTIONS): Use it.
8808 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8809 * solib-frv.c (frv_relocate_main_executable): Update.
8810 * solib-target.c (solib_target_relocate_section_addresses):
8811 Use gdb_bfd_section_index.
8812 * symfile.c (build_section_addr_info_from_section_table):
8813 Use gdb_bfd_section_index.
8814 (build_section_addr_info_from_bfd, place_section): Likewise.
8815 * symtab.c (fixup_section): Update.
8816 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8818 2013-04-08 Tom Tromey <tromey@redhat.com>
8820 * minsyms.h (struct bound_minimal_symbol): New.
8821 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8822 Remove objfile argument.
8823 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8824 Return bound_minimal_symbol.
8825 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8826 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8827 Return bound_minimal_symbol.
8828 (in_gnu_ifunc_stub): Update.
8829 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8830 Remove 'objfile_p' argument.
8831 (lookup_solib_trampoline_symbol_by_pc): Update.
8832 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8833 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8834 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8835 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8836 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8837 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8838 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8839 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8840 stack.c, symtab.c, tui/tui-disasm.c: Update.
8842 2013-04-08 Tom Tromey <tromey@redhat.com>
8844 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8845 Use symbol's obstack, not an objfile.
8846 * coffread.c (process_coff_symbol): Update.
8847 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8848 * jv-lang.c (add_class_symbol): Update.
8849 * mdebugread.c (new_symbol): Update.
8850 * minsyms.c (prim_record_minimal_symbol_full)
8851 (terminate_minimal_symbol_table): Update.
8852 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8853 * stabsread.c (define_symbol, read_enum_type): Update.
8854 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8855 Handle Ada specially.
8856 (symbol_set_language): Add 'obstack' argument.
8857 (symbol_set_names): Update.
8858 (symbol_natural_name, symbol_demangled_name): Always use
8860 * symtab.h (struct general_symbol_info)
8861 <language_specific::obstack>: New field.
8862 <ada_mangled>: New field.
8863 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8864 (symbol_set_language): Update.
8866 2013-04-08 Tom Tromey <tromey@redhat.com>
8868 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8869 Take an obstack, not an objfile.
8870 (symbol_set_names): Update.
8871 * symtab.h (symbol_set_demangled_name): Update.
8873 2013-04-08 Tom Tromey <tromey@redhat.com>
8875 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8877 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8878 (read_func_scope): Call allocate_template_symbol.
8879 (new_symbol_full): Call allocate_symbol.
8880 * jit.c (finalize_symtab): Call allocate_symbol.
8881 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8882 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8883 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8884 (common_block_end): Call allocate_symbol.
8885 * symtab.c (allocate_symbol, initialize_symbol)
8886 (allocate_template_symbol): New functions.
8887 * symtab.c (allocate_symbol, initialize_symbol)
8888 (allocate_template_symbol): Declare.
8889 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8891 2013-04-08 Pedro Alves <palves@redhat.com>
8892 Keith Seitz <keiths@redhat.com>
8894 * breakpoint.c (create_breakpoint): Rename
8895 "parse_condition_and_thread" parameter to "parse_arg". Update
8896 describing comment. If !PARSE_ARG, then error out if ARG is not
8897 the empty string after extracting the location.
8898 * breakpoint.h (create_breakpoint): Rename
8899 "parse_condition_and_thread" parameter to "parse_arg".
8901 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8903 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8905 2013-04-07 Yao Qi <yao@codesourcery.com>
8907 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8908 and 'addr2' to CORE_ADDR.
8909 * target.c (update_current_target): Update.
8910 * target.h (struct target_ops) <to_trace_find>: Change parameter
8912 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8913 'addr2' to CORE_ADDR.
8914 (tfile_trace_find): Likewise.
8915 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8916 Change local variable 'addr' to type CORE_ADDR.
8917 * tracepoint.h (tfind_1): Update declaration.
8919 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8921 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8922 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8925 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8927 * main.h (windows_get_absolute_argv0): ...to here.
8929 2013-04-05 Doug Evans <dje@google.com>
8931 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8932 (read_cutu_die_from_dwo): Add comments.
8933 (read_structure_type): Update comment.
8934 (read_enumeration_type, read_namespace_type): Update comment.
8935 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8937 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8939 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8940 * Makefile.in (gdb.z): Remove.
8941 (install-only): Remove $(man1dir) and gdb.1 installation.
8944 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8946 Fix compatibility with Linux kernel 3.8.3.
8947 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8948 to more inner block. Remove parsing of NUMBER from outer block.
8949 Parse NUMBER only if KEYWORD has been identified.
8951 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8953 Fix variable name shadowing.
8954 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8955 filename to mapsfilename and update its uses.
8957 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8959 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8960 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8961 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8962 details of the problem.
8964 2013-04-04 Pedro Alves <palves@redhat.com>
8965 Hui Zhu <hui@codesourcery.com>
8967 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8968 tracepoint, reset its STEP_COUNT and call validate_actionline.
8970 2013-04-03 Doug Evans <dje@google.com>
8972 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8973 read_die_and_siblings.
8974 (read_die_and_siblings): New function.
8975 (read_cutu_die_from_dwo): Dump die if requested.
8976 (read_die_and_children): Call read_full_die_1 and
8977 read_die_and_siblings_1.
8978 (read_full_die): Dump die if requested.
8980 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8982 * dwarf2read.c (struct dwo_file): New member comp_dir.
8983 Rename member name to dwo_name. All uses updated.
8984 (hash_dwo_file): Include comp_dir in computation.
8985 (eq_dwo_file): Ditto.
8986 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8987 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8989 * psymtab.c (read_psymtabs_with_fullname): Don't call
8990 psymtab_to_fullname if the basenames are different.
8992 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8994 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8995 New entry about "fullname" presence.
8997 2013-04-03 Pedro Alves <palves@redhat.com>
8999 * NEWS: Mention x86_64/Cygwin as new native configuration.
9001 2013-04-02 Doug Evans <dje@google.com>
9003 * dwarf2read.c (read_structure_type): Fix typo in comment.
9005 2013-04-02 Pedro Alves <palves@redhat.com>
9007 * NEWS: Mention "set/show debug aarch64", "set/show debug
9008 coff-pe-read" and "set/show debug mach-o".
9010 2013-04-02 Pedro Alves <palves@redhat.com>
9012 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9014 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9016 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9017 gdb_string.h is now in common/.
9019 2013-04-02 Pedro Alves <palves@redhat.com>
9021 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9022 under "New options".
9024 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9028 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9030 2013-04-02 Pedro Alves <palves@redhat.com>
9034 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9035 (remote_serial_write): New function.
9036 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9038 2013-04-01 Jiong Wang <jiwang@tilera.com>
9040 * NEWS: Mention TILE-Gx in "New native configurations" and
9041 "New targets" sections.
9043 2013-04-01 Doug Evans <dje@google.com>
9045 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9046 (process_enumeration_scope): Simplify.
9048 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9050 (struct signatured_type): ... to here.
9051 (sig_type_ptr): New typedef.
9052 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9053 out of union 't'. All uses updated.
9054 (dw2_get_file_names_reader): Assert not called for a type unit.
9055 (dw2_get_file_names): Assert not called for a type unit or type
9057 (build_type_psymtabs_reader): Assert called for a type unit.
9058 (build_type_psymtab_dependencies): Assert called for a type unit group.
9060 * dwarf2read.c (free_dwo_file): Add comment.
9061 (dwarf2_per_objfile_free): Unref dwp bfd.
9063 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9065 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9066 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9067 (read_pe_exported_syms): Remove unused 'exportix'.
9068 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9069 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9070 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9072 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9074 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9075 (print_it_watchpoint): Remove unused 'bl'.
9076 (say_where): Remove unused 'uiout'.
9077 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9078 (bkpt_breakpoint_hit): Remove unused 'b'.
9079 (internal_bkpt_print_it): Remove unused 'uiout'.
9080 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9082 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9084 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9085 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9087 2013-03-29 Doug Evans <dje@google.com>
9089 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9090 Delete arg is_dwp. All callers updated.
9091 (open_dwp_file): New function.
9092 (open_and_init_dwp_file): Call it.
9093 (get_dwp_file): New function.
9094 (lookup_dwo_cutu): Call it.
9096 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9097 unnecessary, cleanup.
9099 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9101 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9102 (lookup_dwo_unit): New function.
9103 (init_cutu_and_read_dies): Move DWO handling to new functions.
9105 * dwarf2read.c (struct signatured_type): Tweak comment.
9106 (struct dwo_unit): Tweak comment.
9107 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9108 (create_dwo_debug_info_hash_table): Tweak comment.
9109 (dwarf2_per_cu_offset_and_type): Tweak comment.
9111 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9112 missing .debug_types section.
9114 2013-03-29 Yao Qi <yao@codesourcery.com>
9116 * corelow.c: Include "completer.h".
9117 (_initialize_corelow): Call add_target_with_completer with
9118 argument 'filename_completer'.
9119 * tracepoint.c: Likewise.
9120 * exec.c (_initialize_exec): Likewise.
9121 * target.c (add_target): Rename to ...
9122 (add_target_with_completer): ... this. Call set_cmd_completer
9123 if parameter completer is not NULL.
9125 * target.h: Include "command.h".
9126 (add_target_with_completer): Declare it.
9128 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9130 * coffread.c (is_import_fixup_symbol): New function.
9131 (record_minimal_symbol): Use is_import_fixup_symbol to
9132 detect import fixup symbols, and discard them.
9134 2013-03-28 Doug Evans <dje@google.com>
9136 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9137 types hash table until we know we need it.
9139 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9142 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9143 All callers updated.
9144 (dw2_print_stats): Print #read CUs too.
9145 (dump_die_shallow): Print signatured types better.
9147 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9148 info_or_types_section to section. All uses updated.
9149 (struct dwo_unit): Ditto.
9151 2013-03-28 Pedro Alves <palves@redhat.com>
9153 * NEWS (New options): New section.
9154 (New options): Mention set/show remote trace-status-packet.
9155 * remote.c (PACKET_qTStatus): New enumeration value.
9156 (remote_get_trace_status): Skip sending qTStatus if the packet is
9157 disabled. Use packet_ok.
9158 (_initialize_remote): Register a configuration command for
9161 2013-03-28 Doug Evans <dje@google.com>
9163 * symfile.c (find_separate_debug_file): Add comment.
9164 (terminate_after_last_dir_separator): Tweak comment.
9166 * dwarf2read.c (create_partial_symtab): Add forward decl.
9167 (create_partial_symtab): Move to be closer to other psymtab functions.
9168 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9170 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9171 (compute_symtab_includes): Remove unnecessary forward declaration.
9172 (die_needs_namespace): Add comment marking group of functions for
9173 dwarf2 name computation.
9175 * typeprint.c (_initialize_typeprint): Improve type help text.
9177 * python/python.c (finish_python_initialization): Provide suggestion
9178 for how to tell gdb to find its python files.
9180 2013-03-28 Pedro Alves <palves@redhat.com>
9184 * source.c (_initialize_source): Change back "set listsize" to an
9187 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9190 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9192 2013-03-27 Pedro Alves <palves@redhat.com>
9194 * top.c (history_size): Rename to ...
9195 (history_size_setshow_var): ... this. Add comment.
9196 (show_commands): Use readline's 'history_length' instead of
9197 computing the history length by calling history_get in a loop.
9198 (set_history_size_command): Error out for sizes over INT_MAX.
9199 Restore previous history size on invalid size.
9200 (init_history): If HISTSIZE is negative, leave the history size as
9202 (init_main): Adjust.
9204 2013-03-27 Pedro Alves <palves@redhat.com>
9206 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9207 coff_pe_read" command to "set debug coff-pe-read".
9209 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9211 * record.c (command_size_to_target_size): Fix size comparison.
9212 Change parameter type from pointer to integer to integer.
9215 2013-03-27 Pierre Muller <muller@sourceware.org>
9217 * windows-nat.c (handle_output_debug_string): Avoid typecast
9218 from integer of different size warning.
9220 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9222 * windows-nat.c (handle_output_debug_string): Add empty line
9223 after local block variable definition.
9225 2013-03-26 Pedro Alves <palves@redhat.com>
9227 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9228 (net_open): Make 'polls' local unsigned.
9230 2013-03-26 Pedro Alves <palves@redhat.com>
9232 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9233 a zuinteger command instead of uinteger.
9235 2013-03-26 Pedro Alves <palves@redhat.com>
9237 * record-full.c (record_full_insn_num): Make it unsigned.
9238 (record_full_check_insn_num, record_full_message)
9239 (record_full_registers_change, record_full_xfer_partial): Remove
9240 record_full_insn_max_num check (it's always != 0).
9241 (record_full_info, record_full_restore): Use %u as format string.
9242 (): Use %u as format string.
9243 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9244 check (it's always != 0).
9246 2013-03-26 Pedro Alves <palves@redhat.com>
9248 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9249 and "set dcache size" commands zuinteger instead of uinteger.
9251 2013-03-26 Pedro Alves <palves@redhat.com>
9253 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9254 command zuinteger instead of uinteger.
9256 2013-03-26 Pedro Alves <palves@redhat.com>
9258 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9259 zuinteger instead of uinteger.
9261 2013-03-26 Pedro Alves <palves@redhat.com>
9263 * record.c (record_insn_history_size_setshow_var)
9264 (record_call_history_size_setshow_var): New globals.
9265 (command_size_to_target_size): New function.
9266 (cmd_record_insn_history, cmd_record_call_history): Use
9267 command_size_to_target_size instead of cast.
9268 (validate_history_size, set_record_insn_history_size)
9269 (set_record_call_history_size): New functions.
9270 (_initialize_record): Install set_record_insn_history_size and
9271 set_record_call_history_size as "set" hooks of "set record
9272 instruction-history-size" and "set record
9273 function-call-history-size".
9275 2013-03-26 Pedro Alves <palves@redhat.com>
9277 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9278 use with history_max_entries use. Remove FIXME note.
9280 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9282 * record-btrace.c (record_btrace_close): Call
9283 record_btrace_auto_disable.
9285 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9287 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9289 2013-03-25 Doug Evans <dje@google.com>
9291 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9293 2013-03-25 Tom Tromey <tromey@redhat.com>
9296 * c-exp.y (exp): Add new productions for destructors after '.' and
9298 (write_destructor_name): New function.
9300 2013-03-25 Tom Tromey <tromey@redhat.com>
9303 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9304 value_struct_elt, not lookup_struct_elt_type.
9305 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9306 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9307 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9309 2013-03-25 Yao Qi <yao@codesourcery.com>
9311 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9312 instead of '_mkdir'.
9314 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9316 * windows-nat.c (windows_get_absolute_argv0): New function.
9317 * windows-nat.h: Add its prototype.
9319 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9320 Use IS_DIR_SEPARATOR instead of looking for a character inside
9321 SLASH_STRING. Include filenames.h.
9322 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9323 relocate_gdb_directory works when passed gdb_program_name.
9324 Include windows-nat.h.
9326 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9328 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9329 * remote.c (trace_error): Remove the special handling of '2'.
9330 (readchar) <SERIAL_EOF>
9331 (readchar) <SERIAL_ERROR>
9332 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9333 (remote_get_trace_status): Call throw_exception if EX is
9335 * utils.c (perror_with_name): Rename to ...
9336 (throw_perror_with_name): ... here. New parameter errcode, describe it
9337 in the function comment.
9338 (perror_with_name): New function wrapper.
9339 * utils.h (enum errors): New stub declaration.
9340 (throw_perror_with_name): New declaration.
9342 2013-03-22 Pedro Alves <palves@redhat.com>
9343 Yao Qi <yao@codesourcery.com>
9344 Mark Kettenis <kettenis@gnu.org>
9346 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9347 Don't let the user set the value to UINT_MAX directly.
9348 <var_integer>: Don't let the user set the value to INT_MAX
9351 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9353 * remote.c (remote_unpush_target): New function.
9354 (remote_open_1): Remove two pop_target calls, update one comment, add
9355 comment to target_preopen call. Replace pop_target call by
9356 remote_unpush_target call.
9357 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9358 pop_target calls by remote_unpush_target calls.
9360 2013-03-22 Pedro Alves <palves@redhat.com>
9362 * linux-nat.c (linux_child_follow_fork): Don't call
9363 linux_enable_event_reporting.
9364 (linux_handle_extended_wait): Don't call
9365 linux_enable_event_reporting.
9367 2013-03-22 Pedro Alves <palves@redhat.com>
9369 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9370 use it to rewrite the trampoline buffers with type gdb_byte[], and
9371 undefine the macro. Remove char* cast.
9373 2013-03-21 Doug Evans <dje@google.com>
9375 New commands "mt set per-command {space,time,symtab} {on,off}".
9377 * event-top.c: #include "maint.h".
9378 * main.c: #include "maint.h".
9379 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9380 timeval-utils.h, maint.h, cli/cli-setshow.h.
9381 (per_command_time, per_command_space): New static globals.
9382 (per_command_symtab): New static global.
9383 (per_command_setlist, per_command_showlist): New static globals.
9384 (struct cmd_stats): Move here from utils.c.
9385 (set_per_command_time): Renamed from set_display_time in utils.c
9386 and moved here. All callers updated.
9387 (set_per_command_space): Renamed from set_display_space in utils.c
9388 and moved here. All callers updated.
9389 (count_symtabs_and_blocks): New function.
9390 (report_command_stats): Moved here from utils.c. Add support for
9391 printing symtab stats. Only print data if enabled before command
9393 (make_command_stats_cleanup): Ditto.
9394 (sert_per_command_cmd, show_per_command_cmd): New functions.
9395 (_initialize_maint_cmds): Add new commands
9396 mt set per-command {space,time,symtab} {on,off}.
9397 * maint.h: New file.
9398 * top.c: #include "maint.h".
9399 * utils.c (reset_prompt_for_continue_wait_time): New function.
9400 (get_prompt_for_continue_wait_time): New function.
9401 * utils.h (reset_prompt_for_continue_wait_time): Declare
9402 (get_prompt_for_continue_wait_time): Declare.
9403 (make_command_stats_cleanup): Moved to maint.h.
9404 (set_display_time, set_display_space): Moved to maint.h and renamed
9405 to set_per_command_time, set_per_command_space.
9406 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9407 parse_binary_operation and made non-static. Don't call error,
9408 just return an error marker. All callers updated.
9409 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9411 2013-03-21 Tom Tromey <tromey@redhat.com>
9413 * symfile.c (alloc_section_addr_info): Update header. Don't set
9414 'num_sections' field.
9415 (build_section_addr_info_from_section_table): Set 'num_sections'.
9416 (build_section_addr_info_from_bfd): Likewise.
9417 (build_section_addr_info_from_objfile): Remove dead loop
9419 (free_section_addr_info): Unconditionally call xfree.
9420 (relative_addr_info_to_section_offsets, addrs_section_sort)
9421 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9423 (syms_from_objfile_1): Remove dead 'if' condition. Check
9425 (add_symbol_file_command): Set 'num_sections'.
9426 * symfile-mem.c (symbol_file_add_from_memory): Set
9428 * somread.c (som_symfile_offsets): Remove dead loop condition.
9429 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9430 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9432 2013-03-21 Tom Tromey <tromey@redhat.com>
9434 * tracepoint.h (decode_agent_options): Add 'trace_string'
9436 * tracepoint.c (decode_agent_options): Add 'trace_string'
9438 (validate_actionline): Update.
9439 (collect_symbol): Add 'trace_string' argument.
9440 (struct add_local_symbols_data) <trace_string>: New field.
9441 (do_collect_symbol): Update.
9442 (add_local_symbols): Add 'trace_string' argument.
9443 (encode_actions_1): Update.
9444 (trace_dump_actions): Update.
9445 * dwarf2loc.c (access_memory): Update.
9446 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9447 * ax-general.c (new_agent_expr): Update.
9448 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9449 (gen_trace_for_return_address): Add argument.
9450 (trace_kludge, trace_string_kludge): Remove.
9451 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9452 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9453 (gen_trace_for_var): Add 'trace_string' argument.
9454 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9455 (gen_printf, agent_eval_command_one): Update.
9457 2013-03-21 Tom Tromey <tromey@redhat.com>
9460 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9461 Handle FILENAME token.
9463 2013-03-21 Tom Tromey <tromey@redhat.com>
9465 * c-exp.y (YYPRINT): Define.
9466 (c_print_token): New function.
9468 2013-03-21 Tom Tromey <tromey@redhat.com>
9470 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9472 2013-03-21 Yao Qi <yao@codesourcery.com>
9474 * ctf.c: Include "gdb_stat.h".
9475 [USE_WIN32API]: New macro 'mkdir'.
9476 (ctf_start): Use permission bits macros if they are defined.
9478 2013-03-20 Keith Seitz <keiths@redhat.com>
9480 * breakpoint.h (struct breakpoint): Add comment to
9481 extra_string indicating that this member is mallod'd.
9482 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9484 2013-03-20 Pedro Alves <palves@redhat.com>
9488 * cli/cli-setshow.c (do_set_command)
9489 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9490 the result of parsing the command argument. Throw error if the
9491 value is greater than UINT_MAX. Print the invalid value with
9493 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9494 result of parsing the command argument. Throw error if the value
9495 is greater than INT_MAX, not greater or equal. Also throw error
9496 if the value is less than INT_MIN. Print the invalid value with
9498 <var_zuinteger_unlimited>: Throw error if the value is greater
9499 than INT_MAX, not greater or equal.
9500 (do_show_command) <var_integer, var_zinteger,
9501 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9503 2013-03-20 Tom Tromey <tromey@redhat.com>
9505 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9507 * dwarf2read.c (read_func_scope): Remove old FIXME.
9508 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9510 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9511 Unconditionally call via computed ops, if possible.
9512 * printcmd.c (address_info): Unconditionally call via computed ops,
9514 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9516 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9517 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9520 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9521 Tom Tromey <tromey@redhat.com>
9524 * coffread.c (coff_register_index): New global.
9525 (process_coff_symbol, coff_read_enum_type): Set
9526 SYMBOL_ACLASS_INDEX.
9527 (_initialize_coffread): Initialize new global.
9528 * dwarf2loc.c (locexpr_find_frame_base_location)
9529 (dwarf2_block_frame_base_locexpr_funcs)
9530 (loclist_find_frame_base_location)
9531 (dwarf2_block_frame_base_loclist_funcs): New.
9532 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9533 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9534 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9535 (dwarf2_block_frame_base_loclist_funcs): New.
9536 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9537 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9539 (read_func_scope): Update.
9540 (fixup_go_packaging, mark_common_block_symbol_computed)
9541 (var_decode_location, new_symbol_full, dwarf2_const_value):
9542 Set SYMBOL_ACLASS_INDEX.
9543 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9544 (_initialize_dwarf2_read): Initialize new globals.
9545 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9546 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9547 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9549 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9550 (_initialize_mdebugread): Initialize new globals.
9551 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9552 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9553 (stab_register_index, stab_regparm_index): New globals.
9554 (define_symbol, read_enum_type, common_block_end): Set
9555 SYMBOL_ACLASS_INDEX.
9556 (_initialize_stabsread): Initialize new globals.
9557 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9559 (MAX_SYMBOL_IMPLS): New define.
9560 (register_symbol_computed_impl, register_symbol_block_impl)
9561 (register_symbol_register_impl)
9562 (initialize_ordinary_address_classes): New functions.
9563 (_initialize_symtab): Call initialize_ordinary_address_classes.
9564 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9565 (struct symbol_impl): New.
9566 (SYMBOL_ACLASS_BITS): New define.
9567 (struct symbol) <aclass, ops>: Remove fields.
9568 <aclass_index>: New field.
9569 (symbol_impls): Declare.
9570 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9571 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9572 (register_symbol_computed_impl, register_symbol_block_impl)
9573 (register_symbol_register_impl): Declare.
9574 (struct symbol_computed_ops): Add location_has_loclist.
9575 (struct symbol_block_ops): New.
9576 (SYMBOL_BLOCK_OPS): New.
9577 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9579 2013-03-20 Tom Tromey <tromey@redhat.com>
9581 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9582 (print_partial_symbols, recursively_search_psymtabs): Use
9585 2013-03-20 Pierre Muller <muller@sourceware.org>
9587 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9588 addtion, subtraction, multiplication and division binary operator.
9590 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9593 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9594 * bsd-kvm.c (bsd_kvm_close): Likewise.
9595 * bsd-uthread.c (bsd_uthread_close): Likewise.
9596 * corelow.c (core_close): Likewise.
9597 (core_close_cleanup): Remove parameter quitting from a caller.
9598 * event-top.c (async_disconnect): Likewise.
9599 * exec.c (exec_close_1): Remove parameter quitting.
9600 * go32-nat.c (go32_close): Likewise.
9601 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9602 parameter quitting from a caller.
9603 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9605 (mips_linux_close): Remove parameter quitting. Remove parameter
9606 quitting from a caller.
9607 * monitor.c (monitor_close): Remove parameter quitting.
9608 * monitor.h (monitor_close): Likewise.
9609 * record-btrace.c (record_btrace_close): Likewise.
9610 * record-full.c (record_full_close): Likewise.
9611 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9612 it also from fprintf_unfiltered.
9613 * remote-mips.c (mips_close): Remove parameter quitting.
9614 (mips_detach): Remove parameter quitting from a caller.
9615 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9616 (gdbsim_close): Remove duplicate function comment. Remove parameter
9617 quitting and remove it also from printf_filtered.
9618 * remote.c (remote_close): Remove parameter quitting.
9619 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9620 * target.c (update_current_target): Remove parameter int from to_close
9622 (push_target, unpush_target, pop_target): Remove parameter quitting from
9624 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9625 Remove parameter quitting from a caller.
9626 (target_preopen): Remove parameter quitting from a caller.
9627 (target_close): Remove parameter quitting. Remove parameter quitting
9628 from a caller two times. Remove parameter quitting also from
9630 * target.h (struct target_ops): Remove parameter quitting and as int
9631 from fields to_xclose and to_close.
9632 (extern struct target_ops current_target):
9633 (target_close, pop_all_targets): Remove parameter quitting. Update the
9635 (pop_all_targets_above): Remove parameter quitting.
9636 * top.c (quit_target): Remove parameter quitting from a caller.
9637 * tracepoint.c (tfile_close): Remove parameter quitting.
9638 * windows-nat.c (windows_close): Remove parameter quitting.
9640 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9642 * windows-nat.c (handle_output_debug_string): Replace call
9643 to string_to_core_addr with call to strtoull.
9645 2013-03-20 Yao Qi <yao@codesourcery.com>
9647 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9648 and write it to CTF metadata.
9650 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9652 * windows-nat.c (handle_output_debug_string): Change type of n to
9653 SIZE_T to avoid crash on 64 bit systems.
9655 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9657 * python/python-internal.h (HAVE_SNPRINTF)
9658 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9659 about redefinition of snprintf by pyerrors.h.
9661 2013-03-15 Steve Ellcey <sellcey@mips.com>
9663 * remote-sim.c (sim_command_completer): Make char arguments const.
9665 2013-03-15 Tom Tromey <tromey@redhat.com>
9668 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9670 2013-03-14 Tom Tromey <tromey@redhat.com>
9672 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9674 (get_file_crc): Move from symfile.c.
9675 (gdb_bfd_crc): New function.
9676 * gdb_bfd.h (gdb_bfd_crc): Declare.
9677 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9678 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9679 (separate_debug_file_exists): Use gdb_bfd_crc.
9681 2013-03-14 Tom Tromey <tromey@redhat.com>
9683 * symfile.c (get_debug_link_info): Remove.
9684 (find_separate_debug_file_by_debuglink): Use
9685 bfd_get_debug_link_info.
9687 2013-03-14 Tom Tromey <tromey@redhat.com>
9689 * symtab.c (error_in_psymtab_expansion): New function.
9690 (lookup_symbol_aux_quick)
9691 (basic_lookup_transparent_type_quick): Remove "last resort"
9692 code. Use error_in_psymtab_expansion.
9694 2013-03-14 Doug Evans <dje@google.com>
9695 Jan Kratochvil <jan.kratochvil@redhat.com>
9697 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9698 any successful compare_filenames_for_search or FILENAME_CMP.
9699 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9700 * symtab.c (iterate_over_some_symtabs): Likewise.
9702 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 * source.c (print_source_lines_base): Make a local copy of
9707 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9708 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 * source.c (print_source_lines_base): Suppress "file" for TUI.
9712 2013-03-14 Keith Seitz <keiths@redhat.com>
9713 Alan Matsuoka <alanm@redhat.com>
9717 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9719 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9722 2013-03-14 Yao Qi <yao@codesourcery.com>
9724 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9725 status to tfile if trace is stopped by command 'tstop'.
9727 2013-03-14 Yao Qi <yao@codesourcery.com>
9729 * tracepoint.c (tfile_write_status): Write trace notes and user
9730 name into tfile if they are not NULL.
9732 2013-03-14 Hui Zhu <hui@codesourcery.com>
9733 Yao Qi <yao@codesourcery.com>
9735 * Makefile.in (REMOTE_OBS): Add ctf.o.
9736 (SFILES): Add ctf.c.
9737 (HFILES_NO_SRCDIR): Add ctf.h.
9738 * ctf.c, ctf.h: New files.
9739 * tracepoint.c: Include 'ctf.h'.
9740 (collect_pseudocommand): Remove static.
9741 (trace_save_command): Parse option "-ctf".
9742 Produce different trace file writers per option.
9743 Adjust output message.
9744 (trace_save_tfile, trace_save_ctf): New.
9745 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9746 * mi/mi-main.c: Include 'ctf.h'.
9747 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9748 trace_save_tfile or trace_save_ctf.
9749 * NEWS: Mention these changes.
9751 2013-03-14 Yao Qi <yao@codesourcery.com>
9753 * tracepoint.c (trace_file_writer_xfree): New.
9754 (struct tfile_writer_data): New.
9755 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9756 (tfile_write_header, tfile_write_regblock_type): New.
9757 (tfile_write_status, tfile_write_uploaded_tsv): New.
9758 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9759 (tfile_write_raw_data, (tfile_end): New.
9760 (tfile_write_ops): New global variable.
9761 (TRACE_WRITE_R_BLOCK): New macro.
9762 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9763 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9764 (TRACE_WRITE_V_BLOCK): New macro.
9765 (trace_save): Add extra one parameter WRITER. Make it static.
9766 Use WRITER to writer trace.
9767 (tfile_trace_file_writer_new): New.
9768 (trace_save_command): Caller update.
9769 (trace_save_tfile): Write trace data in TFILE format.
9770 * tracepoint.h (struct trace_frame_write_ops): New.
9771 (struct trace_file_write_ops): New.
9772 (struct trace_file_writer): New.
9773 (trace_save): Remove its declaration.
9774 (trace_save_tfile): Declare it.
9775 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9776 instead of trace_save.
9778 2013-03-13 Pedro Alves <palves@redhat.com>
9780 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9782 2013-03-13 Pedro Alves <palves@redhat.com>
9784 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9786 * demangle.c (current_demangling_style_string): Make it const.
9787 (set_demangling_command): Assert the demangling style is known.
9788 Remove all handling of unknown styles. Set
9789 'current_demangling_style_string' to an element of the
9790 demangling_style_names array.
9791 (set_demangling_style): Delete.
9792 (_initialize_demangler): Set current_demangling_style_string to the
9793 element of the demangling_style_names array that corresponds to
9794 the default demangling style. Remove FIXME note. Don't call
9795 set_demangling_style.
9796 * gdb-demangle.h (set_demangling_style): Remove declaration.
9798 2013-03-13 Pedro Alves <palves@redhat.com>
9800 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9802 (ada_make_symbol_completion_list): Make "text0" parameter const.
9803 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9804 * breakpoint.c (condition_completer): Make "text" and "word"
9805 parameters const. Adjust.
9806 (check_tracepoint_command): Adjust to validate_actionline
9808 (catch_syscall_completer): Make "text" and "word" parameters
9810 * cli/cli-cmds.c (show_user): Make "comname" local const.
9811 (valid_command_p): Make "command" parameter const.
9812 (alias_command): Make "alias_prefix" and "command_prefix" locals
9814 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9815 (add_alias_cmd): Make "name" and "oldname" parameters const.
9816 Adjust. No longer make copy of OLDNAME.
9817 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9818 (add_setshow_cmd_full, add_setshow_enum_cmd)
9819 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9820 (add_setshow_filename_cmd, add_setshow_string_cmd)
9821 (add_setshow_string_noescape_cmd)
9822 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9823 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9824 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9825 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9826 Make "name" parameter const.
9827 (help_cmd): Rename "command" parameter to "arg". New const local
9829 (find_cmd): Make "command" parameter const.
9830 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9831 deprecated_cmd_warning prototype change.
9832 (undef_cmd_error): Make "cmdtype" parameter const.
9833 (lookup_cmd): Make "line" parameter const.
9834 (deprecated_cmd_warning): Change type of "text" parameter to
9835 pointer to const char, from pointer to pointer to char. Adjust.
9836 (lookup_cmd_composition): Make "text" parameter const.
9837 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9839 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9841 * cli/cli-script.c (validate_comname): Make "tem" local const.
9842 (define_command): New const local "tem_c". Use it in calls to
9844 (document_command): Make "tem" and "comfull" locals const.
9845 (show_user_1): Make "prefix" and "name" parameters const.
9846 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9848 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9849 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9850 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9851 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9852 (complete_on_enum, add_setshow_enum_cmd)
9853 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9854 (add_setshow_filename_cmd, add_setshow_string_cmd)
9855 (add_setshow_string_noescape_cmd)
9856 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9857 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9858 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9859 Change prototypes, constifying strings.
9860 * completer.c (noop_completer, filename_completer): Make "text"
9861 and "prefix" parameters const.
9862 (location_completer, expression_completer)
9863 (complete_line_internal): Make "text" and "prefix" parameters
9865 (command_completer, signal_completer): Make "text" and "prefix"
9867 * completer.h (noop_completer, filename_completer)
9868 (expression_completer, location_completer, command_completer)
9869 (signal_completer): Change prototypes.
9870 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9872 * cp-abi.c (cp_abi_completer): Likewise.
9873 * expression.h (parse_expression_for_completion): Change
9875 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9877 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9878 * infrun.c (handle_completer): Make "text" and "word" parameters
9880 * interps.c (interpreter_completer): Make "text" and "word"
9882 * language.h (struct language_defn)
9883 <la_make_symbol_completion_list>: Make "text" and "word"
9885 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9886 (parse_exp_in_context): Rename to ...
9887 (parse_exp_in_context_1): ... this.
9888 (parse_exp_in_context): Reimplement, with const hack from
9890 (parse_expression_for_completion): Make "string" parameter const.
9891 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9892 to pointer to const char. Adjust.
9893 (print_command_1): Make "exp" parameter const.
9894 (output_command): Rename to ...
9895 (output_command_const): ... this. Make "exp" parameter const.
9896 (output_command): Reimplement.
9897 (x_command): Adjust.
9898 (display_command): Rename "exp" parameter to "arg". New "exp"
9899 local, const version of "arg".
9900 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9901 "cmd_name" local const.
9902 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9904 (cmdpy_completer): Make "text" and "word" parameters const.
9905 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9906 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9908 * remote.c (_initialize_remote): Make "cmd_name" local const.
9909 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9910 parameters const. Adjust.
9911 (completion_list_add_fields): Make "sym_text", "text" and "word"
9913 (struct add_name_data) <sym_text, text, word>: Make fields const.
9914 (default_make_symbol_completion_list_break_on): Make "text" and
9915 "word" parameters const. Adjust locals.
9916 (default_make_symbol_completion_list)
9917 (make_symbol_completion_list, make_symbol_completion_type)
9918 (make_symbol_completion_list_fn): Make "text" and "word"
9920 (make_file_symbol_completion_list): Make "text", "word" and
9921 "srcfile" parameters const. Adjust locals.
9922 (add_filename_to_list): Make "text" and "word" parameters const.
9923 (struct add_partial_filename_data) <text, word>: Make fields
9925 (make_source_files_completion_list): Make "text" and "word"
9927 * symtab.h (default_make_symbol_completion_list_break_on)
9928 (default_make_symbol_completion_list, make_symbol_completion_list)
9929 (make_symbol_completion_type enum type_code)
9930 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9931 (make_source_files_completion_list): Change prototype.
9932 * top.c (execute_command): Adjust to pass pointer to pointer to
9933 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9935 (set_verbose): Make "cmdname" local const.
9936 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9938 (validate_actionline): Make "line" parameter a pointer to const
9940 (encode_actions_1): Make "action_exp" local const, and adjust.
9941 (encode_actions): Adjust.
9942 (replace_comma): Delete.
9943 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9944 const, and adjust. Don't frob the action string while splitting
9945 it at commas. Instead, make a copy of each split substring in
9947 (trace_dump_command): Adjust to validate_actionline prototype
9949 * tracepoint.h (decode_agent_options, decode_agent_options)
9950 (encode_actions, validate_actionline): Change prototypes.
9951 * valprint.h (output_command): Delete declaration.
9952 (output_command_const): Declare.
9953 * value.c (function_destroyer): Cast const away in xfree call.
9955 2013-03-13 Pedro Alves <palves@redhat.com>
9957 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9958 rather than casting 'const char * const *' to 'const char **'.
9959 * ada-lex.l (processInt): Make "trailer" local const. Remove
9960 'const char **' cast.
9961 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9962 locals, and use those as strtol output pointer, instead than doing
9963 invalid casts to from 'const char **' to 'char **'.
9964 (_initialize_demangle): Remove cast.
9965 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9966 locals, and use those as strtol output pointer, instead than doing
9967 invalid casts to from 'const char **' to 'char **'.
9968 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9970 * stap-probe.c (stap_parse_register_operand)
9971 (stap_parse_single_operand): Likewise.
9973 2013-03-13 Yao Qi <yao@codesourcery.com>
9975 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9976 the last matched 'V' blcok in trace frame.
9978 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9980 * NEWS: Create a new section for the next release branch.
9981 Rename the section of the current branch, now that it has
9984 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9986 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9987 * version.in: Bump version to 7.6.50.20130312-cvs.
9989 2013-03-12 Keith Seitz <keiths@redhat.com>
9991 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9992 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9993 Remove temporary copy of input string.
9994 (mi_execute_command_wrapper): Make "cmd" const.
9995 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9996 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9998 (mi_parse): Make "cmd" const.
10000 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10002 2013-03-12 Keith Seitz <keiths@redhat.com>
10004 * ada-lang.c (ada_read_renaming_var_value): Pass const
10005 pointer to expression string to parse_exp_1.
10006 (create_excep_cond_exprs): Likewise.
10007 * ax-gdb.c (agent_eval_command_one): Likewise.
10008 (maint_agent_printf_command): Likewise.
10009 Constify much of the string handling/parsing.
10010 * breakpoint.c (set_breakpoint_condition): Pass const
10011 pointer to expression string to parse_exp_1.
10012 (update_watchpoint): Likewise.
10013 (parse_cmd_to_aexpr): Constify string handling.
10014 Pass const pointer to parse_exp_1.
10015 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10016 (find_condition_and_thread): Likewise.
10018 (watch_command_1): Make "arg" const.
10019 Constify string handling.
10020 Copy the expression string instead of changing the input
10022 (update_breakpoint_location): Pass const pointer to
10024 * eval.c (parse_and_eval_address): Make "exp" const.
10025 (parse_to_comma_and_eval): Make "expp" const.
10026 (parse_and_eval): Make "exp" const.
10027 * expression.h (parse_expression): Make argument const.
10028 (parse_exp_1): Make first argument const.
10029 * findcmd.c (parse_find_args): Treat "args" as const.
10030 * linespec.c (parse_linespec): Pass const pointer to
10031 linespec_expression_to_pc.
10032 (linespec_expression_to_pc): Make "exp_ptr" const.
10033 * parse.c (parse_exp_1): Make "stringptr" const.
10034 Make a copy of the expression to pass to parse_exp_in_context until
10035 this whole interface can be constified.
10036 (parse_expression): Make "string" const.
10037 * printcmd.c (ui_printf): Treat "arg" as const.
10038 Handle const strings.
10039 * tracepoint.c (validate_actionline): Pass const pointer to
10040 all calls to parse_exp_1.
10041 (encode_actions_1): Likewise.
10042 * value.h (parse_to_comma_and_eval): Make argument const.
10043 (parse_and_eval_address): Likewise.
10044 (parse_and_eval): Likewise.
10045 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10046 (varobj_set_value): Likewise.
10047 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10048 constify string handling.
10049 Pass const pointers to parse_and_eval_address and
10050 parse_to_comman_and_eval.
10051 * cli/cli-utils.c (skip_to_space): Rename to ...
10052 (skip_to_space_const): ... this. Handle const strings.
10053 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10054 skip_to_space_const.
10055 (skip_to_space_const): Declare.
10056 * common/format.c (parse_format_string): Make "arg" const.
10057 Handle const strings.
10058 * common/format.h (parse_format_string): Make "arg" const.
10059 * gdbserver/ax.c (ax_printf): Make "format" const.
10060 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10061 of the expression string.
10063 2013-03-12 Hui Zhu <hui@codesourcery.com>
10065 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10067 2013-03-12 Yao Qi <yao@codesourcery.com>
10068 Hui Zhu <hui@codesourcery.com>
10070 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10071 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10074 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10076 * ada-lex.l (rules): Only recognize 'thread' as a
10077 delimiter when followed by numerals, as for c-exp.y.
10078 Use new rewind_to_char function to rewind the input for
10079 expression-delimiting tokens.
10080 (rewind_to_char): New function.
10082 2013-03-11 Pedro Alves <palves@redhat.com>
10083 Jan Kratochvil <jan.kratochvil@redhat.com>
10085 * configure: Regenerate.
10086 * configure.ac (check dynamic export flag): Link python test with
10089 2013-03-11 Doug Evans <dje@google.com>
10090 Keith Seitz <keiths@redhat.com>
10092 * linespec.c (find_linespec_symbols): Call find_function_symbols
10093 first, and then call lookup_prefix_sym/find_method.
10095 2013-03-11 Pedro Alves <palves@redhat.com>
10097 * charset.c (convert_between_encodings): Don't cast between
10098 different pointer to pointer types. Instead, make the 'inp' local
10099 be of the type iconv expects.
10100 (wchar_iterate): Don't cast between different pointer to pointer
10101 types. Instead, use new pointer local of the type iconv expects.
10102 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10103 Add new local of type char pointer, and use it to get a
10104 char/string view of the byte buffer, instead of casting between
10105 pointer to pointer types.
10107 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10109 * remote.c (remote_set_trace_buffer_size): Move != operator
10110 to the start of next line to fix an ARI warning.
10112 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10114 * NEWS: Add record changes.
10116 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10118 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10119 the instruction history disassembly.
10120 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10121 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10125 * Makefile.in (SFILES): Add record-btrace.c
10126 (COMMON_OBS): Add record-btrace.o
10127 * record-btrace.c: New.
10128 * objfiles.c: Include btrace.h.
10129 (free_objfile): call btrace_free_objfile.
10131 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10133 * target.c (target_call_history, target_call_history_from,
10134 target_call_history_range): New.
10135 * target.h (target_ops) <to_call_history, to_call_history_from,
10136 to_call_history_range>: New fields.
10137 (target_call_history, target_call_history_from,
10138 target_call_history_range): New declaration.
10139 * record.c (get_call_history_modifiers, cmd_record_call_history,
10140 record_call_history_size): New.
10141 (_initialize_record): Add the "record function-call-history" command.
10142 Add "set/show record function-call-history-size" commands.
10143 * record.h (record_print_flag): New.
10145 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10147 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10148 to_insn_history_range>: New fields.
10149 (target_insn_history): New.
10150 (target_insn_history_from): New.
10151 (target_insn_history_range): New.
10152 * target.c (target_insn_history): New.
10153 (target_insn_history_from): New.
10154 (target_insn_history_range): New.
10155 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10156 (record_insn_history_size): New.
10157 (get_insn_number): New.
10158 (get_context_size): New.
10160 (get_insn_history_modifiers): New.
10161 (cmd_record_insn_history): New.
10162 (_initialize_record): Add "set/show record instruction-history-size"
10163 command. Add "record instruction-history" command.
10165 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10167 * record.h (record_disconnect): New.
10168 (record_detach): New.
10169 (record_mourn_inferior): New.
10170 (record_kill): New.
10171 * record-full.c (record_disconnect, record_detach,
10172 record_mourn_inferior, record_kill): Move to...
10173 * record.c: ...here.
10175 (record_stop): New.
10176 (record_unpush): New.
10177 (cmd_record_stop): Call record_stop. Replace unpush_target
10178 call with record_unpush call.
10179 (record_disconnect, record_detach): Assert that the target
10180 is of record stratum. Call record_unpush, record_stop, and
10182 (record_mourn_inferior, record_kill): Assert that the target
10183 is of record stratum. Call record_unpush and DEBUG.
10185 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10187 * record-full.h, record-full.c (record_memory_query): Rename
10189 (record_full_memory_query): ...this. Update all users.
10190 (record_arch_list_add_reg): Rename to ...
10191 (record_full_arch_list_add_reg): ...this. Update all users.
10192 (record_arch_list_add_mem): Rename to ...
10193 (record_full_arch_list_add_mem): ...this. Update all users.
10194 (record_arch_list_add_end): Rename to ...
10195 (record_full_arch_list_add_end): ...this. Update all users.
10196 (record_gdb_operation_disable_set): Rename to ...
10197 (record_full_gdb_operation_disable_set): ...this.
10200 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10202 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10203 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10204 (RECORD_IS_REPLAY): Renamed to ...
10205 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10206 (RECORD_FILE_MAGIC): Renamed to ...
10207 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10208 (record_mem_entry): Renamed to ...
10209 (record_full_mem_entry): ... this. Updated all users.
10210 (record_reg_entry): Renamed to ...
10211 (record_full_reg_entry): ... this. Updated all users.
10212 (record_end_entry): Renamed to ...
10213 (record_full_end_entry): ... this. Updated all users.
10214 (record_type) <record_end, record_reg, record_mem>: Renamed
10216 (record_full_type) <record_full_end, record_full_reg,
10217 record_full_mem>: ... this. Updated all users.
10218 (record_entry): Renamed to ...
10219 (record_full_entry): ... this. Updated all users.
10220 (record_core_buf_entry): Renamed to ...
10221 (record_full_core_buf_entry): ... this. Updated all users.
10222 (record_core_regbuf): Renamed to ...
10223 (record_full_core_regbuf): ... this. Updated all users.
10224 (record_core_start): Renamed to ...
10225 (record_full_core_start): ... this. Updated all users.
10226 (record_core_end): Renamed to ...
10227 (record_full_core_end): ... this. Updated all users.
10228 (record_core_buf_list): Renamed to ...
10229 (record_full_core_buf_list): ... this. Updated all users.
10230 (record_first): Renamed to ...
10231 (record_full_first): ... this. Updated all users.
10232 (record_list): Renamed to ...
10233 (record_full_list): ... this. Updated all users.
10234 (record_arch_list_head): Renamed to ...
10235 (record_full_arch_list_head): ... this. Updated all users.
10236 (record_arch_list_tail): Renamed to ...
10237 (record_full_arch_list_tail): ... this. Updated all users.
10238 (record_stop_at_limit): Renamed to ...
10239 (record_full_stop_at_limit): ... this. Updated all users.
10240 (record_insn_max_num): Renamed to ...
10241 (record_full_insn_max_num): ... this. Updated all users.
10242 (record_insn_num): Renamed to ...
10243 (record_full_insn_num): ... this. Updated all users.
10244 (record_insn_count): Renamed to ...
10245 (record_full_insn_count): ... this. Updated all users.
10246 (record_ops): Renamed to ...
10247 (record_full_ops): ... this. Updated all users.
10248 (record_core_ops): Renamed to ...
10249 (record_full_core_ops): ... this. Updated all users.
10250 (set_record_cmdlist): Renamed to ...
10251 (set_record_full_cmdlist): ... this. Updated all users.
10252 (show_record_cmdlist): Renamed to ...
10253 (show_record_full_cmdlist): ... this. Updated all users.
10254 (record_cmdlist): Renamed to ...
10255 (record_full_cmdlist): ... this. Updated all users.
10256 (record_beneath_to_resume_ops): Renamed to ...
10257 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10258 (record_beneath_to_resume): Renamed to ...
10259 (record_full_beneath_to_resume): ... this. Updated all users.
10260 (record_beneath_to_wait_ops): Renamed to ...
10261 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10262 (record_beneath_to_wait): Renamed to ...
10263 (record_full_beneath_to_wait): ... this. Updated all users.
10264 (record_beneath_to_store_registers_ops): Renamed to ...
10265 (record_full_beneath_to_store_registers_ops): ... this.
10267 (record_beneath_to_store_registers): Renamed to ...
10268 (record_full_beneath_to_store_registers): ... this.
10270 (record_beneath_to_xfer_partial_ops): Renamed to ...
10271 (record_full_beneath_to_xfer_partial_ops): ... this.
10273 (record_beneath_to_xfer_partial): Renamed to ...
10274 (record_full_beneath_to_xfer_partial): ... this.
10276 (record_beneath_to_insert_breakpoint): Renamed to ...
10277 (record_full_beneath_to_insert_breakpoint): ... this.
10279 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10280 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10282 (record_beneath_to_stopped_data_address): Renamed to ...
10283 (record_full_beneath_to_stopped_data_address): ... this.
10285 (record_beneath_to_async): Renamed to ...
10286 (record_full_beneath_to_async): ... this. Updated all users.
10287 (record_goto_insn): Renamed to ...
10288 (record_full_goto_insn): ... this. Updated all users.
10289 (record_save): Renamed to ...
10290 (record_full_save): ... this. Updated all users.
10291 (record_reg_alloc): Renamed to ...
10292 (record_full_reg_alloc): ... this. Updated all users.
10293 (record_reg_release): Renamed to ...
10294 (record_full_reg_release): ... this. Updated all users.
10295 (record_mem_alloc): Renamed to ...
10296 (record_full_mem_alloc): ... this. Updated all users.
10297 (record_mem_release): Renamed to ...
10298 (record_full_mem_release): ... this. Updated all users.
10299 (record_end_alloc): Renamed to ...
10300 (record_full_end_alloc): ... this. Updated all users.
10301 (record_end_release): Renamed to ...
10302 (record_full_end_release): ... this. Updated all users.
10303 (record_entry_release): Renamed to ...
10304 (record_full_entry_release): ... this. Updated all users.
10305 (record_list_release): Renamed to ...
10306 (record_full_list_release): ... this. Updated all users.
10307 (record_list_release_following): Renamed to ...
10308 (record_full_list_release_following): ... this.
10310 (record_list_release_first): Renamed to ...
10311 (record_full_list_release_first): ... this. Updated all users.
10312 (record_arch_list_add): Renamed to ...
10313 (record_full_arch_list_add): ... this. Updated all users.
10314 (record_get_loc): Renamed to ...
10315 (record_full_get_loc): ... this. Updated all users.
10316 (record_check_insn_num): Renamed to ...
10317 (record_full_check_insn_num): ... this. Updated all users.
10318 (record_arch_list_cleanups): Renamed to ...
10319 (record_full_arch_list_cleanups): ... this. Updated all users.
10320 (record_message): Renamed to ...
10321 (record_full_message): ... this. Updated all users.
10322 (record_message_wrapper): Renamed to ...
10323 (record_full_message_wrapper): ... this. Updated all users.
10324 (record_message_wrapper_safe): Renamed to ...
10325 (record_full_message_wrapper_safe): ... this. Updated all users.
10326 (record_gdb_operation_disable): Renamed to ...
10327 (record_full_gdb_operation_disable): ... this. Updated all users.
10328 (record_hw_watchpoint): Renamed to ...
10329 (record_full_hw_watchpoint): ... this. Updated all users.
10330 (record_exec_insn): Renamed to ...
10331 (record_full_exec_insn): ... this. Updated all users.
10332 (record_restore): Renamed to ...
10333 (record_full_restore): ... this. Updated all users.
10334 (record_async_inferior_event_token): Renamed to ...
10335 (record_full_async_inferior_event_token): ... this.
10337 (record_async_inferior_event_handler): Renamed to ...
10338 (record_full_async_inferior_event_handler): ... this.
10340 (record_core_open_1): Renamed to ...
10341 (record_full_core_open_1): ... this. Updated all users.
10342 (record_open_1): Renamed to ...
10343 (record_full_open_1): ... this. Updated all users.
10344 (record_open): Renamed to ...
10345 (record_full_open): ... this. Updated all users.
10346 (record_close): Renamed to ...
10347 (record_full_close): ... this. Updated all users.
10348 (record_resume_step): Renamed to ...
10349 (record_full_resume_step): ... this. Updated all users.
10350 (record_resumed): Renamed to ...
10351 (record_full_resumed): ... this. Updated all users.
10352 (record_execution_dir): Renamed to ...
10353 (record_full_execution_dir): ... this. Updated all users.
10354 (record_resume): Renamed to ...
10355 (record_full_resume): ... this. Updated all users.
10356 (record_get_sig): Renamed to ...
10357 (record_full_get_sig): ... this. Updated all users.
10358 (record_sig_handler): Renamed to ...
10359 (record_full_sig_handler): ... this. Updated all users.
10360 (record_wait_cleanups): Renamed to ...
10361 (record_full_wait_cleanups): ... this. Updated all users.
10362 (record_wait_1): Renamed to ...
10363 (record_full_wait_1): ... this. Updated all users.
10364 (record_wait): Renamed to ...
10365 (record_full_wait): ... this. Updated all users.
10366 (record_stopped_by_watchpoint): Renamed to ...
10367 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10368 (record_disconnect): Renamed to ...
10369 (record_full_disconnect): ... this. Updated all users.
10370 (record_detach): Renamed to ...
10371 (record_full_detach): ... this. Updated all users.
10372 (record_mourn_inferior): Renamed to ...
10373 (record_full_mourn_inferior): ... this. Updated all users.
10374 (record_kill): Renamed to ...
10375 (record_full_kill): ... this. Updated all users.
10376 (record_stopped_data_address): Renamed to ...
10377 (record_full_stopped_data_address): ... this. Updated all users.
10378 (record_registers_change): Renamed to ...
10379 (record_full_registers_change): ... this. Updated all users.
10380 (record_store_registers): Renamed to ...
10381 (record_full_store_registers): ... this. Updated all users.
10382 (record_xfer_partial): Renamed to ...
10383 (record_full_xfer_partial): ... this. Updated all users.
10384 (record_breakpoint): Renamed to ...
10385 (record_full_breakpoint): ... this. Updated all users.
10386 (record_breakpoint_p): Renamed to ...
10387 (record_full_breakpoint_p): ... this. Updated all users.
10388 (record_breakpoints): Renamed to ...
10389 (record_full_breakpoints): ... this. Updated all users.
10390 (record_sync_record_breakpoints): Renamed to ...
10391 (record_full_sync_record_breakpoints): ... this.
10393 (record_init_record_breakpoints): Renamed to ...
10394 (record_full_init_record_breakpoints): ... this.
10396 (record_insert_breakpoint): Renamed to ...
10397 (record_full_insert_breakpoint): ... this. Updated all users.
10398 (record_remove_breakpoint): Renamed to ...
10399 (record_full_remove_breakpoint): ... this. Updated all users.
10400 (record_can_execute_reverse): Renamed to ...
10401 (record_full_can_execute_reverse): ... this. Updated all users.
10402 (record_get_bookmark): Renamed to ...
10403 (record_full_get_bookmark): ... this. Updated all users.
10404 (record_goto_bookmark): Renamed to ...
10405 (record_full_goto_bookmark): ... this. Updated all users.
10406 (record_async): Renamed to ...
10407 (record_full_async): ... this. Updated all users.
10408 (record_can_async_p): Renamed to ...
10409 (record_full_can_async_p): ... this. Updated all users.
10410 (record_is_async_p): Renamed to ...
10411 (record_full_is_async_p): ... this. Updated all users.
10412 (record_execution_direction): Renamed to ...
10413 (record_full_execution_direction): ... this. Updated all users.
10414 (record_info): Renamed to ...
10415 (record_full_info): ... this. Updated all users.
10416 (record_delete): Renamed to ...
10417 (record_full_delete): ... this. Updated all users.
10418 (record_is_replaying): Renamed to ...
10419 (record_full_is_replaying): ... this. Updated all users.
10420 (record_goto_entry): Renamed to ...
10421 (record_full_goto_entry): ... this. Updated all users.
10422 (record_goto_begin): Renamed to ...
10423 (record_full_goto_begin): ... this. Updated all users.
10424 (record_goto_end): Renamed to ...
10425 (record_full_goto_end): ... this. Updated all users.
10426 (record_goto): Renamed to ...
10427 (record_full_goto): ... this. Updated all users.
10428 (init_record_ops): Renamed to ...
10429 (init_record_full_ops): ... this. Updated all users.
10430 (record_core_resume): Renamed to ...
10431 (record_full_core_resume): ... this. Updated all users.
10432 (record_core_kill): Renamed to ...
10433 (record_full_core_kill): ... this. Updated all users.
10434 (record_core_fetch_registers): Renamed to ...
10435 (record_full_core_fetch_registers): ... this. Updated all users.
10436 (record_core_prepare_to_store): Renamed to ...
10437 (record_full_core_prepare_to_store): ... this. Updated all users.
10438 (record_core_store_registers): Renamed to ...
10439 (record_full_core_store_registers): ... this. Updated all users.
10440 (record_core_xfer_partial): Renamed to ...
10441 (record_full_core_xfer_partial): ... this. Updated all users.
10442 (record_core_insert_breakpoint): Renamed to ...
10443 (record_full_core_insert_breakpoint): ... this. Updated all users.
10444 (record_core_remove_breakpoint): Renamed to ...
10445 (record_full_core_remove_breakpoint): ... this. Updated all users.
10446 (record_core_has_execution): Renamed to ...
10447 (record_full_core_has_execution): ... this. Updated all users.
10448 (init_record_core_ops): Renamed to ...
10449 (init_record_full_core_ops): ... this. Updated all users.
10450 (cmd_record_restore): Renamed to ...
10451 (cmd_record_full_restore): ... this. Updated all users.
10452 (record_save_cleanups): Renamed to ...
10453 (record_full_save_cleanups): ... this. Updated all users.
10454 (cmd_record_start): Renamed to ...
10455 (cmd_record_full_start): ... this. Updated all users.
10456 (set_record_insn_max_num): Renamed to ...
10457 (set_record_full_insn_max_num): ... this. Updated all users.
10458 (set_record_command): Renamed to ...
10459 (set_record_full_command): ... this. Updated all users.
10460 (show_record_command): Renamed to ...
10461 (show_record_full_command): ... this. Updated all users.
10462 (_initialize_record): Renamed to ...
10463 (_initialize_record_full): ... this. Updated all users.
10465 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10467 * record.h: Split into this and ...
10468 * record-full.h: ... this.
10469 * record.c: Split into this and ...
10470 * record-full.c: ... this.
10471 * target.h (target_ops): Add new fields to_info_record,
10472 to_save_record, to_delete_record, to_record_is_replaying,
10473 to_goto_record_begin, to_goto_record_end, to_goto_record.
10474 (target_info_record): New.
10475 (target_save_record): New.
10476 (target_supports_delete_record): New.
10477 (target_delete_record): New.
10478 (target_record_is_replaying): New.
10479 (target_goto_record_begin): New.
10480 (target_goto_record_end): New.
10481 (target_goto_record): New.
10482 * target.c (target_info_record): New.
10483 (target_save_record): New.
10484 (target_supports_delete_record): New.
10485 (target_delete_record): New.
10486 (target_record_is_replaying): New.
10487 (target_goto_record_begin): New.
10488 (target_goto_record_end): New.
10489 (target_goto_record): New.
10490 * record.h: Declare struct cmd_list_element.
10491 (record_cmdlist): New declaration.
10492 (set_record_cmdlist): New declaration.
10493 (show_record_cmdlist): New declaration.
10494 (info_record_cmdlist): New declaration.
10495 (cmd_record_goto): New declaration.
10496 * record.c: Remove unnecessary includes.
10497 Include inferior.h.
10498 (cmd_record_goto): Remove declaration.
10499 (record_cmdlist): Now extern. Initialize.
10500 (set_record_cmdlist): Now extern. Initialize.
10501 (show_record_cmdlist): Now extern. Initialize.
10502 (info_record_cmdlist): Now extern. Initialize.
10503 (find_record_target): New.
10504 (require_record_target): New.
10505 (cmd_record_start): Update.
10506 (cmd_record_delete): Remove target-specific code.
10507 Call target_delete_record.
10508 (cmd_record_stop): Unpush any record target.
10509 (set_record_insn_max_num): Move to record-full.c
10510 (set_record_command): Add comment.
10511 (show_record_command): Add comment.
10512 (info_record_command): Update comment.
10513 Remove target-specific code.
10514 Call the record target's to_info_record.
10515 (cmd_record_start): New.
10516 (cmd_record_goto): Now extern.
10517 Remove target-specific code.
10518 Call target_goto_begin, target_goto_end, or target_goto.
10519 (_initialize_record): Move record target ops initialization to
10521 Change "record" command help text.
10522 Move "record restore", "record set", and "record show" commands to
10524 * Makefile.in (SFILES): Add record-full.c.
10525 (HFILES_NO_SRCDIR): Add record-full.h.
10526 (COMMON_OBS): Add record-full.o.
10527 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10528 * arm-tdep.c: Include record-full.h.
10529 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10530 * i386-tdep.c: Include record-full.h.
10531 * infrun.c: Include record-full.h.
10532 * linux-record.c: Include record-full.h.
10533 * moxie-tdep.c: Include record-full.h.
10534 * record-full.c: Include record-full.h.
10535 Change module comment.
10536 (set_record_full_cmdlist): New.
10537 (show_record_full_cmdlist): New.
10538 (record_full_cmdlist): New.
10539 (record_goto_insn): New declaration.
10540 (record_save): New declaration.
10541 (record_check_insn_num): Change query string.
10542 (record_info): New.
10543 (record_delete): New.
10544 (record_is_replaying): New.
10545 (record_goto_entry): New.
10546 (record_goto_begin): New.
10547 (record_goto_end): New.
10548 (record_goto): New.
10549 (init_record_ops): Update.
10550 (init_record_core_ops): Update.
10551 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10552 (cmd_record_start): New.
10553 (set_record_insn_max_num): Moved from record.c
10554 (set_record_full_command): New.
10555 (show_record_full_command): New.
10556 (_initialize_record_full): New.
10558 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10560 * target.h (add_deprecated_target_alias): New.
10561 * target.c (add_deprecated_target_alias): New.
10563 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10565 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10567 (linux_supports_btrace): Add kernel and
10569 (kernel_supports_btrace): New function.
10570 (cpu_supports_btrace): New function.
10571 (intel_supports_btrace): New function.
10573 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10575 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10576 * remote.c: Include btrace.h.
10577 (struct btrace_target_info): New struct.
10578 (remote_supports_btrace): New function.
10579 (send_Qbtrace): New function.
10580 (remote_enable_btrace): New function.
10581 (remote_disable_btrace): New function.
10582 (remote_teardown_btrace): New function.
10583 (remote_read_btrace): New function.
10584 (init_remote_ops): Add btrace ops.
10585 (enum <unnamed>): Add btrace packets.
10586 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10587 (_initialize_remote): Add packet configuration for branch tracing.
10589 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10591 * features/btrace.dtd: New file.
10592 * Makefile.in (XMLFILES): Add btrace.dtd.
10593 * btrace.h (parse_xml_btrace): New declaration.
10594 * btrace.c: Include xml-support.h.
10595 (parse_xml_btrace): New function.
10596 (parse_xml_btrace_block): New function.
10597 (block_attributes): New struct.
10598 (btrace_attributes): New struct.
10599 (btrace_children): New struct.
10600 (btrace_elements): New struct.
10602 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10604 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10605 (amd64_linux_enable_btrace): New.
10606 (amd64_linux_disable_btrace): New.
10607 (amd64_linux_teardown_btrace): New.
10608 (_initialize_amd64_linux_nat): Initialize btrace ops.
10609 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10610 (i386_linux_enable_btrace): New.
10611 (i386_linux_disable_btrace): New.
10612 (i386_linux_teardown_btrace): New.
10613 (_initialize_i386_linux_nat): Initialize btrace ops.
10614 * config/i386/linux.mh: Add linux-btrace.o.
10615 * config/i386/linux64.mh: Add linux-btrace.o.
10617 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10619 * common/linux_btrace.h: New file.
10620 * common/linux_btrace.c: New file.
10621 * Makefile.in (SFILES): Add btrace.c.
10622 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10623 (COMMON_OBS): Add btrace.o.
10624 (linux-btrace.o): New rule.
10626 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10628 * target.h: Include btrace.h.
10629 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10630 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10631 * target.c (target_supports_btrace): New function.
10632 (target_enable_btrace): New function.
10633 (target_disable_btrace): New function.
10634 (target_teardown_btrace): New function.
10635 (target_read_btrace): New function.
10636 * btrace.h: New file.
10637 * btrace.c: New file.
10638 * Makefile.in: Add btrace.c.
10639 * gdbthread.h: Include btrace.h.
10640 (struct thread_info): Add btrace field.
10641 * thread.c: Include btrace.h.
10642 (clear_thread_inferior_resources): Call target_teardown_btrace.
10643 * common/btrace-common.h: New file.
10645 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10647 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10648 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10649 kill_status to outer block.
10651 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10653 Fix entry-values if the callee called a noreturn function.
10654 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10655 get_frame_address_in_block. Add new comment.
10657 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10659 Fix entry-values in C++ across CUs.
10660 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10661 lookup_minimal_symbol. Add a comment.
10663 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10664 DW_AT_linkage_name.
10666 2013-03-08 Yao Qi <yao@codesourcery.com>
10668 * tracepoint.c (_initialize_tracepoint): Indent the code.
10670 2013-03-08 Pedro Alves <palves@redhat.com>
10672 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10673 (parse_find_args, find_command): Change type of pattern buffer
10674 locals to 'gdb_byte *'.
10676 2013-03-08 Stan Shebs <stan@codesourcery.com>
10677 Hafiz Abid Qadeer <abidh@codesourcery.com>
10679 * NEWS: Mention set and show trace-buffer-size commands.
10680 Mention new packet.
10681 * target.h (struct target_ops): New method
10682 to_set_trace_buffer_size.
10683 (target_set_trace_buffer_size): New macro.
10684 * target.c (update_current_target): Set up new method.
10685 * tracepoint.c (trace_buffer_size): New global.
10686 (start_tracing): Send it to the target.
10687 (set_trace_buffer_size): New function.
10688 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10689 * remote.c (remote_set_trace_buffer_size): New function.
10690 (_initialize_remote): Use it.
10691 (QTBuffer:size) New remote command.
10692 (PACKET_QTBuffer_size): New enum.
10693 (remote_protocol_features): Add an entry for
10694 PACKET_QTBuffer_size.
10696 2013-03-08 Tom Tromey <tromey@redhat.com>
10698 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10701 2013-03-07 Pedro Alves <palves@redhat.com>
10703 * target.c (target_read_stralloc, target_fileio_read_alloc):
10704 *Cast pointer to 'gdb_byte *' in target call.
10706 2013-03-07 Pedro Alves <palves@redhat.com>
10708 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10711 2013-03-07 Keith Seitz <keiths@redhat.com>
10713 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10714 (trace_pass_command): Likewise.
10715 * cli/cli-cmds.c: Include cli/cli-utils.h.
10716 (source_command): Use skip-spaces.
10717 (disassemble_command): Likewise.
10718 * findcmd.c: Include cli/cli-utils.h.
10719 (parse_find_args): Use skip_spaces.
10720 * go32-nat.c: Include cli/cli-utils.h.
10721 (go32_sldt): Use skip_spaces.
10722 (go32_sgdt): Likewise.
10723 (go32_sidt): Likewise.
10724 (go32_pde): Likewise.
10725 (go32_pte): Likewise.
10726 (go32_pte_for_address): Likewise.
10727 * infcmd.c: Include cli/cli-utils.h.
10728 (registers_info): Use skip_spaces.
10729 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10730 (linux_info_proc): Likewise.
10731 * linux-thread-db.c: Include cli/cli-utils.h.
10732 (info_auto_load_libthread_db): Use skip_spaces_const.
10733 * m32r-rom.c: Include cli/cli-utils.h.
10734 (m32r_upload_command): Use skip_spaces.
10735 * maint.c: Include cli/cli-utils.h.
10736 (maintenance_translate_address): Use skip_spaces.
10737 * mi/mi-parse.c: Include cli/cli-utils.h.
10738 (mi_parse_argv): Use skip_spaces.
10739 (mi_parse): Likewise.
10740 * minsyms.c: Include cli/cli-utils.h.
10741 (msymbol_hash_iw): Use skip_spaces_const.
10742 * objc-lang.c: Include cli/cli-utils.h.
10743 (parse_selector): Use skip_spaces.
10744 (parse_method): Likewise.
10745 * python/python.c: Include cli/cli-utils.h.
10746 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10747 (python_command)[HAVE_PYTHON]: Likewise.
10748 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10749 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10750 (m32r_load): Use skip_spaces.
10751 * serial.c: Include cli/cli-utils.h.
10752 (serial_open): Use skip_spaces_const.
10753 * stack.c: Include cli/cli-utils.h.
10754 (parse_frame_specification_1): Use skip_spaces_const.
10755 * symfile.c: Include cli/cli-utils.h.
10756 (set_ext_lang_command): Use skip_spaces.
10757 * symtab.c: Include cli/cli-utils.h.
10758 (rbreak_command): Use skip_spaces.
10759 * thread.c (thread_name_command): Use skip_spaces.
10760 * tracepoint.c (validate_actionline): Use skip_spaces.
10761 (encode_actions_1): Likewise.
10762 (trace_find_range_command): Likewise.
10763 (trace_find_outside_command): Likewise.
10764 (trace_dump_actions): Likewise.
10766 2013-03-07 Pedro Alves <palves@redhat.com>
10768 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10769 * expprint.c (print_subexp_standard): Likewise.
10770 * utils.c (host_char_to_target): Likewise.
10771 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10772 * varobj.c (value_get_print_value): Change type of local to char*.
10773 Cast it gdb_byte * in call to language printer.
10775 2013-03-07 Pedro Alves <palves@redhat.com>
10777 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10779 (make_wchar_iterator): Remove cast to char*.
10780 (wchar_iterate): Change type of local.
10782 2013-03-07 Pedro Alves <palves@redhat.com>
10784 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10785 for 'regcache->register_status'.
10787 2013-03-07 Pedro Alves <palves@redhat.com>
10789 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10792 2013-03-07 Pedro Alves <palves@redhat.com>
10794 * stap-probe.c (handle_stap_probe): Add cast to char*.
10796 2013-03-07 Pedro Alves <palves@redhat.com>
10798 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10799 RECORD_MSGRCV>: Pass a signed variable to
10800 regcache_raw_read_signed, instead of an unsigned one.
10802 2013-03-07 Pedro Alves <palves@redhat.com>
10804 * remote-notif.c (notif_debug): Change type to int.
10805 * remote-notif.h (notif_debug): Likewise.
10807 2013-03-07 Pedro Alves <palves@redhat.com>
10809 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10811 2013-03-07 Pedro Alves <palves@redhat.com>
10813 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10814 * remote.h (hex2bin, bin2hex): ... here.
10815 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10817 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10819 * utils.c (initialize_utils): Improve doc strings of "set/show
10820 width", "set/show height", and "set/show pagination".
10822 2013-03-06 Keith Seitz <keiths@redhat.com>
10824 * ax-gdb.c (gen_printf): Make FORMAT const.
10825 * ax-gdb.h (gen_printf): Likewise.
10826 * ax-general.c (ax_string): Make STR const.
10827 * ax.h (ax_string): Likewise.
10829 2013-03-06 Doug Evans <dje@google.com>
10831 * elfread.c (elf_symfile_read): Move debugging printf to more
10834 2013-03-06 Pedro Alves <palves@redhat.com>
10836 * python/py-utils.c (target_string_to_unicode): Delete function.
10837 * python/python-internal.h (target_string_to_unicode): Delete
10840 2013-03-06 Pierre Muller <muller@sourceware.org>
10842 * linespec.c (get_current_search_block): ARI fix, use (void)
10843 for empty parameter list.
10845 2013-03-05 Doug Evans <dje@google.com>
10847 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10848 of old ada_lookup_symbol_list. In !full_search case, don't
10849 search superblocks.
10850 (ada_lookup_symbol_list): Delete arg full_search, all callers
10851 updated. Call ada_lookup_symbol_list_worker.
10852 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10853 * ada-lang.h (ada_lookup_symbol_list): Update.
10854 * language.h (language_defn): Update comment for
10855 la_iterate_over_symbols.
10856 * linespec.c (iterate_over_file_blocks): New function.
10857 (iterate_over_all_matching_symtabs): Call it.
10858 (lookup_prefix_sym): Ditto.
10859 (get_current_search_block): New function.
10860 (get_search_block): Delete.
10861 (find_label_symbols): Call get_current_search_block.
10862 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10863 * symtab.c (iterate_over_symbols): Don't search superblocks.
10865 2013-03-05 Yao Qi <yao@codesourcery.com>
10867 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10868 parameter VAR's type from "unsigned int" to "int".
10869 * command.h (var_zuinteger_unlimited): Update its comments.
10870 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10872 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10874 * NEWS: Mention new target x86_64-*-cygwin*.
10876 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10878 * configure.host: Add x86_64-*-cygwin* as host.
10879 * configure.tgt: Add x86_64-*-cygwin* as target.
10880 * config/i386/cygwin64.mh: New file.
10882 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10884 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10886 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10888 * linespec.c (struct linespec_canonical_name): New.
10889 (struct linespec_state): Change canonical_names type to it.
10890 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10891 xrealloc element size. Initialize the different CANONICAL fields.
10892 (canonical_to_fullform): New.
10893 (filter_results): Use it. Add variables canonical, fullform and
10895 (struct decode_line_2_item, decode_line_2_compare_items): New.
10896 (decode_line_2): Remove variables iter and item_names, add variables
10897 items and items_count. Modify the code for these new variables.
10899 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10901 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10902 calling do_cleanup.
10904 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10906 * tracepoint.c (build_traceframe_info): Add code for byte order.
10908 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10910 * v850-tdep.c: (v850e2_register_name): Revise system register
10911 names to match current V850E2M architecture specifications.
10912 Update register number enum comments too.
10914 2013-03-01 Jiong Wang <jiwang@tilera.com>
10915 Pedro Alves <palves@redhat.com>
10917 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10919 (tilegx_skip_prologue): Limit prologue analysis to section end.
10921 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10923 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10926 2013-03-01 Pedro Alves <palves@redhat.com>
10928 Use gdb_byte for bytes from the program being debugged.
10930 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10931 Change type of local 'buf' to gdb_byte.
10932 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10933 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10934 * cris-tdep.c (cris_sigcontext_addr)
10935 (cris_sigtramp_frame_unwind_cache): Likewise.
10936 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10937 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10939 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10940 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10941 (hppa32_hpux_search_dummy_call_sequence)
10942 (hppa_hpux_supply_save_state): Likewise.
10943 * hppa-linux-tdep.c (insns_match_pattern)
10944 (hppa_linux_find_global_pointer): Likewise.
10945 * hppa-tdep.c (hppa_in_function_epilogue_p)
10946 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10947 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10948 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10949 (i386fbsd_collect_uthread): Likewise.
10950 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10951 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10952 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10953 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10954 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10955 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10956 (ia64_libunwind_frame_prev_register)
10957 (ia64_libunwind_sigtramp_frame_this_id)
10958 (ia64_find_global_pointer_from_dynamic_section)
10959 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10960 (ia64_unwind_pc): Likewise.
10961 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10962 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10963 (m68hc11_extract_return_value): Likewise.
10964 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10965 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10966 (mep_get_insn, mep_push_dummy_call): Likewise.
10967 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10968 (mips_linux_in_dynsym_stub): Likewise.
10969 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10970 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10971 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10973 * remote-mips.c (mips_set_register): Likewise.
10974 * remote-sim.c (gdbsim_fetch_register): Likewise.
10975 * score-tdep.c (score7_fetch_inst): Change type of parameter
10976 'memblock' and local 'buf' to gdb_byte.
10977 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10978 Change type of local 'buf' to gdb_byte. Adjust.
10979 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10981 (score7_analyze_prologue): Change type of 'memblock' and
10982 'memblock_ptr' locals to gdb_byte*.
10983 * sh64-tdep.c (sh64_extract_return_value)
10984 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10985 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10986 * solib-pa64.c (pa64_solib_create_inferior_hook)
10987 (pa64_open_symbol_file_object): Remove local 'buf'.
10988 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10989 (som_open_symbol_file_object): Likewise.
10990 * solib-spu.c (spu_current_sos): Likewise.
10991 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10992 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10993 (spu_store_registers): Likewise.
10994 * target.c (debug_print_register): Likewise.
10995 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10996 * xstormy16-tdep.c (xstormy16_store_return_value)
10997 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10998 (xstormy16_find_jmp_table_entry): Likewise.
11000 2013-03-01 Jiong Wang <jiwang@tilera.com>
11002 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11003 (tilegx_gdbarch_init): Install it.
11005 2013-02-28 Tom Tromey <tromey@redhat.com>
11007 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11010 2013-02-28 Doug Evans <dje@google.com>
11012 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11013 * python/python.c (gdbpy_find_pc_line): Ditto.
11015 2013-02-28 Tom Tromey <tromey@redhat.com>
11017 * contrib/excheck.py: New file.
11018 * contrib/exsummary.py: New file.
11019 * contrib/gcc-with-excheck: New file.
11021 2013-02-28 Tom Tromey <tromey@redhat.com>
11023 * python/python.c (gdbpy_print_stack): Call begin_line and
11024 fprintf_filtered inside TRY_CATCH.
11026 2013-02-28 Tom Tromey <tromey@redhat.com>
11028 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11031 2013-02-28 Tom Tromey <tromey@redhat.com>
11033 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11034 frame_object_to_frame_info inside TRY_CATCH.
11036 2013-02-28 Tom Tromey <tromey@redhat.com>
11038 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11041 2013-02-28 Tom Tromey <tromey@redhat.com>
11043 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11045 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11047 * windows-nat.c: Throughout, fix format strings and casts of
11048 printf-like functions to avoid type related warnings on all
11050 (handle_output_debug_string): Fetch context information address
11051 from debug string using string_to_core_addr.
11053 2013-02-27 Jiong Wang <jiwang@tilera.com>
11055 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11056 * regformats/reg-tilegx32.dat: New.
11058 2013-02-27 Jiong Wang <jiwang@tilera.com>
11060 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11062 2013-02-27 Jiong Wang <jiwang@tilera.com>
11064 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11066 2013-02-27 Yao Qi <yao@codesourcery.com>
11067 Pedro Alves <palves@redhat.com>
11069 * tracepoint.c (tfile_trace_find): For tfind
11070 pc/tp/range/outside, look for the next trace frame instead of
11071 always starting from frame 0.
11073 2013-02-26 Anthony Green <green@moxielogic.com>
11075 * configure.tgt: Add support for moxie-*-rtems* target.
11077 2013-02-25 Pedro Alves <palves@redhat.com>
11079 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11082 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11084 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11085 if $fp is used as the virtual frame pointer.
11087 2013-02-23 Alan Modra <amodra@gmail.com>
11089 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11091 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11092 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11093 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11094 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11096 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11099 * elfread.c (build_id_bfd_get): Make the return type const.
11100 (build_id_verify): Make the check parameter const.
11101 (build_id_to_debug_filename): Make the build_id parameter and variable
11103 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11105 2013-02-21 Alan Modra <amodra@gmail.com>
11107 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11109 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11111 Add a new method 'disassemble' to gdb.Architecture class.
11112 * python/py-arch.c (archpy_disassmble): Implementation of the
11113 new method gdb.Architecture.disassemble.
11114 (arch_object_methods): Add entry for the new method.
11116 2013-02-20 Jiong Wang <jiwang@tilera.com>
11118 * MAINTAINERS (Write After Approval): Add myself to the list.
11120 2013-02-19 Pedro Alves <palves@redhat.com>
11122 Garbage collect 'struct monitor_ops'::load_routine.
11124 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11125 * monitor.c (monitor_load): No longer call
11126 current_monitor->load_routine.
11127 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11128 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11129 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11131 2013-02-19 Pedro Alves <palves@redhat.com>
11135 Harmonize with generic_load.
11137 * monitor.c: Include "readline/readline.h".
11138 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11139 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11140 long/strtol for the 'load_offset' local. Error out if no argument
11141 is given or if too many arguments are given. Tilde expand the
11142 passed in file name.
11144 2013-02-19 Kai Tietz <ktietz@redhat.com>
11147 * symfile.c (load_section_data): Change type of load_offset
11149 (generic_load): User strtoulst instead of strtoul for conversion
11152 2013-02-19 Jiong Wang <jiwang@tilera.com>
11154 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11155 for return address, "lr" register, saved on stack.
11156 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11157 after we invoke tilegx_analyze_prologue.
11159 2013-02-19 Jiong Wang <jiwang@tilera.com>
11161 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11163 2013-02-19 Jiong Wang <jiwang@tilera.com>
11165 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11167 2013-02-19 Jiong Wang <jiwang@tilera.com>
11169 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11170 (tilegx_write_pc): New function.
11171 (tilegx_cannot_reference_register): Return zero if REGNO
11172 is TILEGX_FAULTNUM_REGNUM.
11173 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11174 (tilegx_register_name): Add handling of "faultnum" register.
11175 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11176 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11177 handling of TILEGX_FAULTNUM_REGNUM.
11178 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11180 2013-02-19 Jiong Wang <jiwang@tilera.com>
11182 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11183 should be aligned to 64bit.
11185 2013-02-19 Kai Tietz <ktietz@redhat.com>
11187 * windows-nat.c (windows_xfer_memory): Fix debug-output
11190 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11192 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11193 Don't check DSP register number if HAVE_DSP is not set.
11195 2013-02-19 Alan Modra <amodra@gmail.com>
11197 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11198 throughout file instead.
11199 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11200 Don't xmalloc return value.
11201 (build_id_verify): Similarly. Don't xfree.
11202 (build_id_to_debug_filename): Update.
11203 (find_separate_debug_file_by_buildid): Update, don't xfree.
11205 2013-02-18 Tom Tromey <tromey@redhat.com>
11208 * dwarf2read.c (read_subrange_type): Use result of
11211 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11213 * frame.c: Remove one extra white space after #include
11216 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11218 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11220 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11222 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11223 and dir commands into an if block.
11225 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11227 * python/py-breakpoint (struct pybp_code): Use int instead of
11230 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11231 Hafiz Abid Qadeer <abidh@codesourcery.com>
11233 * NEWS: Mention new field "trace-file".
11234 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11235 (tfile_open): Record the trace file's filename in the trace
11237 (tfile_files_info): Mention the name of the trace file.
11238 Check the "filename" field explicitely.
11239 (trace_status_command): Explicitely check "filename" field.
11240 (trace_find_command): Ditto.
11241 (trace_find_pc_command): Ditto.
11242 (trace_find_tracepoint_command): Ditto.
11243 (trace_find_line_command): Ditto.
11244 (trace_find_range_command): Ditto.
11245 (trace_find_outside_command): Ditto.
11246 * tracepoint.h (struct trace_status) <from_file>: Rename it
11247 to "filename" and make it hold the trace file's filename
11248 instead of a boolean.
11249 * remote.c (remote_get_trace_status): Initialize "filename"
11250 field with NULL instead of 0.
11252 2013-02-15 Yao Qi <yao@codesourcery.com>
11254 * remote.c: Fix a typo.
11256 2013-02-14 Pierre Muller <muller@sourceware.org>
11258 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11260 2013-02-14 Pedro Alves <palves@redhat.com>
11262 * utils.c (savestring): Don't #undef it. Move function to
11263 common/common-utils.c.
11264 * common/common-utils.c: Include gdb_string.h.
11265 (savestring): Move here from utils.c.
11266 * common/common-utils.h (savestring): Declare.
11268 2013-02-14 Pedro Alves <palves@redhat.com>
11270 * utils.c (savestring): Rename parameter 'size' to 'len'.
11272 2013-02-14 Pedro Alves <palves@redhat.com>
11273 Yufeng Zhang <yufeng.zhang@arm.com>
11275 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11276 (aarch64_inferior_data, struct aarch64_inferior_data):
11278 (struct aarch64_process_info): New.
11279 (aarch64_process_list): New global.
11280 (aarch64_find_process_pid, aarch64_add_process)
11281 (aarch64_process_info_get): New functions.
11282 (aarch64_inferior_data_get): Delete.
11283 (aarch64_process_info_get): New function.
11284 (aarch64_forget_process): New function.
11285 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11286 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11287 aarch64_get_debug_reg_state.
11288 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11289 instead of linux_nat_iterate_watchpoint_lwps.
11290 (aarch64_linux_new_fork): New function.
11291 (aarch64_linux_child_post_startup_inferior): Use
11292 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11293 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11294 (aarch64_linux_remove_hw_breakpoint)
11295 (aarch64_handle_aligned_watchpoint)
11296 (aarch64_handle_unaligned_watchpoint)
11297 (aarch64_linux_insert_watchpoint)
11298 (aarch64_linux_remove_watchpoint)
11299 (aarch64_linux_stopped_data_address): Adjust to pass the current
11300 process id to aarch64_debug_reg_state.
11301 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11302 linux_nat_new_fork hook, and aarch64_forget_process as
11303 linux_nat_forget_process hook; remove the call to
11304 register_inferior_data_with_cleanup.
11306 2013-02-14 Pedro Alves <palves@redhat.com>
11308 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11309 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11312 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11313 Hafiz Abid Qadeer <abidh@codesourcery.com>
11315 * tracepoint.h (validate_trace_state_variable_name): Declare.
11316 * tracepoint.c (validate_trace_state_variable_name): New.
11317 (trace_variable_command): Parse the trace state variable's name
11318 without using parse_expression. Do several validations.
11319 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11320 trace state variable's name with parse_expression. Validate it.
11322 2013-02-14 Yao Qi <yao@codesourcery.com>
11324 * infcmd.c (breakpoint_proceeded): Remove it.
11326 2013-02-14 Yao Qi <yao@codesourcery.com>
11328 * tracepoint.c (end_actions_pseudocommand): Make it static.
11329 (while_stepping_pseudocommand): Likewise.
11330 * tracepoint.h (end_actions_pseudocommand): Remove the
11332 (while_stepping_pseudocommand): Likewise.
11334 2013-02-14 Yao Qi <yao@codesourcery.com>
11336 * cli/cli-decode.c (help_cmd): Remove the declaration of
11338 (help_all): Likewise.
11340 2013-02-13 Pedro Alves <palves@redhat.com>
11342 * amd64-linux-nat.c (update_debug_registers_callback):
11344 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11346 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11347 i386_debug_reg_state.
11348 (amd64_linux_new_fork): New function.
11349 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11350 linux_nat_new_fork hook, and i386_forget_process as
11351 linux_nat_forget_process hook.
11352 * i386-linux-nat.c (update_debug_registers_callback):
11354 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11356 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11357 i386_debug_reg_state.
11358 (i386_linux_new_fork): New function.
11359 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11360 linux_nat_new_fork hook, and i386_forget_process as
11361 linux_nat_forget_process hook.
11362 * i386-nat.c (i386_init_dregs): Delete.
11363 (i386_inferior_data, struct i386_inferior_data):
11365 (struct i386_process_info): New.
11366 (i386_process_list): New global.
11367 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11369 (i386_inferior_data_get): Delete.
11370 (i386_process_info_get): New function.
11371 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11372 (i386_forget_process): New function.
11373 (i386_cleanup_dregs): Rewrite.
11374 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11375 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11376 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11377 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11378 to i386_debug_reg_state.
11379 (i386_use_watchpoints): Don't register inferior data.
11380 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11382 (i386_forget_process): Declare.
11383 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11384 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11385 New static globals.
11386 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11387 (add_initial_lwp): New, factored out from ...
11388 (add_lwp): ... this. Don't check the number of lwps before
11389 calling linux_nat_new_thread.
11390 (linux_nat_iterate_watchpoint_lwps): Delete.
11391 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11392 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11394 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11396 (linux_nat_kill, linux_nat_mourn_inferior): Call
11397 linux_nat_forget_process.
11398 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11399 (linux_nat_forget_process): New functions.
11400 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11402 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11403 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11405 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11406 (linux_nat_forget_process): New declarations.
11408 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11409 (amd64fbsd_mourn_inferior): New function.
11410 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11411 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11413 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11415 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11418 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11420 * aarch64-linux-nat.c (debug_reg_change_callback)
11421 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11424 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11426 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11429 2013-02-13 Pedro Alves <palves@redhat.com>
11430 Hafiz Abid Qadeer <abidh@codesourcery.com>
11432 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11434 2013-02-12 Tom Tromey <tromey@redhat.com>
11437 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11439 (classify_inner_name): Remove 'first_name' argument, add
11440 'context'. Remove unused variable.
11441 (yylex): Explicitly maintain the context type. Exit loop earlier
11442 if NAME result is seen.
11444 2013-02-12 Pedro Alves <palves@redhat.com>
11446 * amd64-darwin-tdep.c: Add (C) after Copyright.
11447 * cli/cli-cmds.h: Ditto.
11448 * cli/cli-decode.c: Ditto.
11449 * cli/cli-decode.h: Ditto.
11450 * cli/cli-dump.c: Ditto.
11451 * cli/cli-dump.h: Ditto.
11452 * cli/cli-interp.c: Ditto.
11453 * cli/cli-logging.c: Ditto.
11454 * cli/cli-script.c: Ditto.
11455 * cli/cli-script.h: Ditto.
11456 * cli/cli-setshow.c: Ditto.
11457 * cli/cli-setshow.h: Ditto.
11458 * cli/cli-utils.c: Ditto.
11459 * cli/cli-utils.h: Ditto.
11460 * config/alpha/nm-osf3.h: Ditto.
11461 * config/djgpp/djconfig.sh: Ditto.
11462 * config/i386/nm-fbsd.h: Ditto.
11463 * config/i386/nm-i386gnu.h: Ditto.
11464 * config/nm-linux.h: Ditto.
11465 * config/nm-nto.h: Ditto.
11466 * config/rs6000/nm-rs6000.h: Ditto.
11467 * config/sparc/nm-sol2.h: Ditto.
11468 * darwin-nat-info.c: Ditto.
11471 * gdb-demangle.h: Ditto.
11472 * i386-darwin-nat.c: Ditto.
11473 * i386-darwin-tdep.c: Ditto.
11474 * linux-fork.h: Ditto.
11475 * m32c-tdep.c: Ditto.
11476 * microblaze-linux-tdep.c: Ditto.
11477 * microblaze-rom.c: Ditto.
11478 * microblaze-tdep.c: Ditto.
11479 * microblaze-tdep.h: Ditto.
11480 * mips-linux-tdep.h: Ditto.
11481 * ppc-ravenscar-thread.c: Ditto.
11482 * ppc-ravenscar-thread.h: Ditto.
11483 * prologue-value.c: Ditto.
11484 * prologue-value.h: Ditto.
11485 * ravenscar-thread.c: Ditto.
11486 * ravenscar-thread.h: Ditto.
11487 * sparc-ravenscar-thread.c: Ditto.
11488 * sparc-ravenscar-thread.h: Ditto.
11489 * tilegx-linux-tdep.c: Ditto.
11490 * unwind_stop_reasons.def: Ditto.
11491 * windows-nat.h: Ditto.
11492 * xtensa-linux-tdep.c: Ditto.
11493 * xtensa-xtregs.c: Ditto.
11494 * regformats/regdat.sh: Ditto.
11495 * regformats/regdef.h: Ditto.
11497 2013-02-12 Pedro Alves <palves@redhat.com>
11499 * break-catch-sig.c: Update copyright years.
11501 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11503 Add support for a destructor for ui_out data and use it to
11504 provide a ui_out destructor.
11505 * ui-out.h: Declare the new ui_out destructor.
11506 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11507 * ui-out.c (default_data_destroy): Add a default data destructor
11508 which does nothing.
11509 (default_ui_out_impl): Set the new data_destroy field to
11510 default_data_destroy
11511 (uo_data_destroy): Local function which invokes the data
11512 destructor if present.
11513 (clear_table): Local function which clears the table data of a
11515 (ui_out_destroy): Public function which frees a ui_out object.
11516 (ui_out_table_end): Use the new clear_table function.
11517 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11519 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11522 2013-02-11 Doug Evans <dje@google.com>
11524 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11525 (printf_decfloat): New function. Broken out from ui_printf.
11526 Remove unnecessary code to shift the entire format string down.
11527 (printf_pointer): New function.
11528 (ui_printf): Code to print C strings, wide C strings, decfloats,
11529 and pointers moved to separate functions.
11531 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11533 * valops.c (value_assign): Handling bitfield offset in
11534 `lval_internalvar_component' case.
11536 2013-02-08 Doug Evans <dje@google.com>
11538 * common/format.c (parse_format_string): Fix whitespace.
11540 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11542 * stack.c (return_command): Work around uninitialized variable
11545 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11547 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11548 number of the registers from 36 to 34.
11550 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11552 * NEWS: Mention new AArch64 native and target support.
11554 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11556 * MAINTAINERS (Write After Approval): Add myself.
11558 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11559 Marcus Shawcroft <marcus.shawcroft@arm.com>
11560 Nigel Stephens <nigel.stephens@arm.com>
11561 Yufeng Zhang <yufeng.zhang@arm.com>
11563 * aarch64-linux-nat.c: New file.
11564 * config/aarch64/linux.mh: New file.
11565 * configure.host: Add AArch64.
11566 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11568 2013-02-07 Doug Evans <dje@google.com>
11570 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11571 disassemble command.
11573 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11575 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11576 set_gdbarch_fetch_tls_load_module_address.
11578 2013-02-06 David S. Miller <davem@davemloft.net>
11580 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11581 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11582 * value.c (struct_return_convention): New function.
11583 (using_struct_return): Implement in terms of struct_return_convention.
11584 * value.h (struct_return_convention): Declare.
11585 * stack.c (return_command): Allow successful overriding of the return
11586 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11588 2013-02-06 Tom Tromey <tromey@redhat.com>
11590 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11591 outside of TRY_CATCH.
11593 2013-02-06 Yao Qi <yao@codesourcery.com>
11595 * mi/mi-interp.c: Include "tracepoint.h".
11596 (mi_tsv_modified): Declare.
11597 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11598 (mi_interpreter_init): Call observer_attach_tsv_modified.
11599 (mi_tsv_modified): New.
11600 (mi_tsv_created, mi_tsv_deleted): Update.
11601 * tracepoint.c (trace_variable_command): Call
11602 observer_notify_tsv_modified if the initial value of tsv is
11604 (delete_trace_state_variable): Call
11605 observer_notify_tsv_deleted earlier.
11606 (trace_variable_command): Caller update.
11607 (create_tsv_from_upload): Likewise.
11608 * observer.sh: Declare "struct trace_state_variable".
11610 * NEWS: Mention the new MI notification "=tsv-modified".
11612 2013-02-05 Doug Evans <dje@google.com>
11614 * completer.c (location_completer): Fix typo in comment.
11616 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11618 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11621 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11623 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11624 Refactor if statement to avoid trailing || operator.
11626 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11628 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11630 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11632 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11633 * configure.host: Add powerpc*-*-freebsd* target.
11634 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11635 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11636 * config/powerpc/fbsd.mh: New file.
11638 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11639 Denys Vlasenko <dvlasenk@redhat.com>
11640 Pedro Alves <palves@redhat.com>
11642 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11643 (struct elf_internal_linux_prpsinfo): Forward declare.
11644 * gdbarch.h, gdbarch.c: Regenerate.
11645 * linux-tdep.c: Include `cli/cli-utils.h'.
11646 (linux_fill_prpsinfo): New function.
11647 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11648 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11649 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11650 depending on gdbarch pointer bitness.
11651 * ppc-linux-tdep.c: Include elf-bfd.h.
11652 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11655 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11656 Marcus Shawcroft <marcus.shawcroft@arm.com>
11657 Nigel Stephens <nigel.stephens@arm.com>
11658 Yufeng Zhang <yufeng.zhang@arm.com>
11660 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11662 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11663 Marcus Shawcroft <marcus.shawcroft@arm.com>
11664 Nigel Stephens <nigel.stephens@arm.com>
11665 Yufeng Zhang <yufeng.zhang@arm.com>
11667 * aarch64-newlib-tdep.c: New file.
11668 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11670 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11671 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11672 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11673 * osabi.c (gdb_osabi_names): Add "Newlib".
11675 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11676 Marcus Shawcroft <marcus.shawcroft@arm.com>
11677 Nigel Stephens <nigel.stephens@arm.com>
11678 Yufeng Zhang <yufeng.zhang@arm.com>
11680 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11681 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11682 * aarch64-linux-tdep.c: New file.
11683 * aarch64-linux-tdep.h: New file.
11684 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11685 * configure.tgt: Add aarch64-none-linux-gnu.
11687 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11688 Marcus Shawcroft <marcus.shawcroft@arm.com>
11689 Nigel Stephens <nigel.stephens@arm.com>
11690 Yufeng Zhang <yufeng.zhang@arm.com>
11692 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11693 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11694 (ALLDEPFILES): Add aarch64-tdep.c.
11695 * aarch64-tdep.c: New file.
11696 * aarch64-tdep.h: New file.
11697 * configure.tgt: Add AArch64.
11698 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11699 (aarch64-expedite): New definition.
11700 * features/aarch64-core.xml: New file.
11701 * features/aarch64-fpu.xml: New file.
11702 * features/aarch64-without-fpu.c: New file (generated).
11703 * features/aarch64-without-fpu.xml: New file.
11704 * features/aarch64.c: New file (generated).
11705 * features/aarch64.xml: New file.
11706 * regformats/aarch64-without-fpu.dat: New file (generated).
11707 * regformats/aarch64.dat: New file (generated).
11709 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11711 * contrib/expect-read1.c: New file.
11712 * contrib/expect-read1.sh: New file.
11714 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11716 * dwarf2read.c (file_file_name): New function with code from
11718 (file_full_name): Move most of the code to file_file_name.
11719 (macro_start_file): Rename variable full_name to file_name and use
11720 file_file_name for it. Add comp_dir parameter to new_macro_table.
11721 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11722 macro_source_file->filename access by macro_source_fullname call.
11723 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11725 * macrotab.c (struct macro_table): New field comp_dir.
11726 (macro_include): New variables link_fullname and source_fullname.
11727 Replace any macro_source_file->filename access by macro_source_fullname
11729 (macro_lookup_inclusion): Remove the partial filenames checking code.
11730 (check_for_redefinition): New variables source_fullname and
11731 found_key_fullname. Replace any macro_source_file->filename access by
11732 macro_source_fullname call.
11733 (macro_undef): New variables source_fullname and key_fullname. Replace
11734 any macro_source_file->filename access by macro_source_fullname call.
11735 (macro_lookup_definition): New variables retval and source_fullname.
11736 Replace any macro_source_file->filename access by macro_source_fullname
11738 (foreach_macro): New variable key_fullname. Replace any
11739 macro_source_file->filename access by macro_source_fullname call.
11740 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11741 macro_source_file->filename access by macro_source_fullname call.
11742 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11743 (macro_source_fullname): New function.
11744 * macrotab.h (struct macro_source_file): Extent the filename field
11746 (new_macro_table): New parameter comp_dir, add a comment for it.
11747 (macro_source_fullname): new declaration.
11749 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11751 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11752 this_real_name to outer block. Use it also for
11753 compare_filenames_for_search.
11754 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11755 with dw2_get_real_path for file_matcher, considering also
11756 BASENAMES_MAY_DIFFER.
11757 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11759 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11761 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11762 to the file_matcher parameter. Pass 0 to it.
11763 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11764 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11765 NULL psymtab_to_fullname result.
11766 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11767 an expected filename instead.
11768 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11769 file_matcher parameter. Call also psymtab_to_fullname, after newly
11770 considering BASENAMES_MAY_DIFFER.
11771 * source.c (rewrite_source_path): Remove static.
11772 * source.h (rewrite_source_path): New declaration.
11773 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11774 the expand_symtabs_matching field. Comment it.
11775 * symtab.c (file_matches): New function comment. Add parameter
11776 basenames, implement it.
11777 (search_symbols_file_matches): Add basenames parameter. Update the
11778 file_matches caller.
11779 (search_symbols): Match FILES also against symtab_to_fullname.
11780 Optimize it for BASENAMES_MAY_DIFFER.
11782 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11784 * source.c (print_source_lines_base): Print for TUI also "fullname".
11785 * tui/tui-data.c (init_content_element): Change tui_locator_element
11786 field to full_name.
11787 * tui/tui-data.h (struct tui_locator_element): Likewise.
11788 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11789 tui_update_locator_filename calls to tui_update_locator_fullname.
11790 Replace symtab->filename refererence by symtab_to_fullname call.
11791 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11792 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11793 field to full_name. Replace symtab->filename refererence by
11794 symtab_to_fullname call.
11795 (tui_show_symtab_source): Rename parameter to fullname. Change
11796 tui_locator_element field to full_name.
11797 * tui/tui-stack.c: Include source.h.
11798 (tui_set_locator_filename): Rename the declaration to ...
11799 (tui_set_locator_fullname): ... here. Rename its parameter to
11800 fullname, updates its comment.
11801 (tui_set_locator_info): Rename its parameter to fullname.
11802 (tui_set_locator_filename): Rename the definition to ...
11803 (tui_set_locator_fullname): ... here. Rename its parameter to
11804 fullname, updates its comment. Change tui_locator_element field to
11806 (tui_set_locator_info): Rename its parameter to fullname.
11807 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11808 (tui_update_locator_filename): Rename to ...
11809 (tui_update_locator_fullname): ... here. Rename callee to
11810 tui_set_locator_fullname.
11811 (tui_show_frame_info): Replace symtab->filename refererence by
11812 symtab_to_fullname call.
11813 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11814 (tui_update_locator_fullname): ... here.
11815 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11816 tui_update_locator_fullname. Replace symtab->filename refererence by
11817 symtab_to_fullname call.
11818 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11819 Rename the callee to tui_update_locator_fullname.
11820 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11822 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11824 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11825 by symtab_to_filename_for_display calls.
11826 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11827 (clear_command): New variable sal_fullname, initialize it. Replace
11828 compare_filenames_for_search by filename_cmp with sal_fullname.
11829 (say_where, update_static_tracepoint): Replace symtab->filename
11830 refererences by symtab_to_filename_for_display calls.
11831 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11833 * dwarf2read.c: Include source.h.
11834 (fixup_go_packaging): Replace symtab->filename refererences by
11835 symtab_to_filename_for_display calls.
11836 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11837 Replace symtab->filename refererences by symtab_to_filename_for_display
11839 (create_sals_line_offset, convert_linespec_to_sals): New variable
11840 fullname, initialize it, replace symtab->filename reference by the
11842 * linux-fork.c: Include source.h.
11843 (info_checkpoints_command): Replace symtab->filename refererences by
11844 symtab_to_filename_for_display calls.
11845 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11846 by symtab_to_filename_for_display calls.
11847 * mdebugread.c: Include source.h.
11848 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11849 symtab_to_filename_for_display calls.
11850 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11851 (mi_cmd_file_list_exec_source_files): Likewise.
11852 * printcmd.c: Include source.h.
11853 (build_address_symbolic): Replace symtab->filename refererences by
11854 symtab_to_filename_for_display calls.
11855 * psymtab.c (partial_map_symtabs_matching_filename)
11856 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11857 with psymtab_to_fullname.
11858 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11859 by symtab_to_filename_for_display calls.
11860 (stpy_get_filename): New variable filename, initialize it, use instead
11861 of symtab->filename refererences.
11862 (salpy_str): Make variable filename const char *. Replace
11863 symtab->filename refererences by symtab_to_filename_for_display calls.
11864 * skip.c: Include source.h and filenames.h.
11865 (skip_file_command): Remove const from the symtab variable. Replace
11866 symtab->filename refererences by symtab_to_fullname call.
11867 (function_name_is_marked_for_skip): New variables searched_for_fullname
11868 and fullname. Use them to search also with symtab's fullname.
11869 * source.c (find_source_lines): Replace symtab->filename refererences
11870 by symtab_to_filename_for_display calls.
11871 (print_source_lines_base): New variable filename, use it instead of
11872 symtab->filename. Replace symtab->filename refererences by
11873 symtab_to_filename_for_display calls.
11874 (line_info, forward_search_command): Replace symtab->filename
11875 refererences by symtab_to_filename_for_display calls.
11876 (reverse_search_command): Replace symtab->filename refererences by
11877 symtab_to_filename_for_display calls. New variable filename for it.
11878 * stack.c (frame_info): Likewise.
11879 * symmisc.c: Include source.h.
11880 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11881 (maintenance_info_symtabs): Replace symtab->filename refererences by
11882 symtab_to_filename_for_display calls.
11883 * symtab.c (iterate_over_some_symtabs): Call
11884 compare_filenames_for_search also with symtab_to_fullname.
11885 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11886 symtab->filename refererences by symtab_to_filename_for_display calls.
11887 (find_line_symtab): Replace symtab->filename refererences by
11888 symtab_to_filename_for_display calls.
11889 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11890 (print_symbol_info): Make the last parameter const char *. New
11891 variable s_filename. Use it in the function.
11892 (symtab_symbol_info): Make the last_filename variable const char *.
11893 Replace symtab->filename refererences by symtab_to_filename_for_display
11895 (rbreak_command): New variable fullname. Use it. Replace
11896 symtab->filename refererence by symtab_to_filename_for_display call.
11897 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11898 (print_one_static_tracepoint_marker): Replace symtab->filename
11899 refererences by symtab_to_filename_for_display calls.
11900 * tui/tui-source.c (tui_set_source_content): New variables filename and
11901 s_filename. Replace symtab->filename refererences by this variable.
11902 Replace other symtab->filename refererences by
11903 symtab_to_filename_for_display calls.
11905 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11906 Jan Kratochvil <jan.kratochvil@redhat.com>
11908 Add a new variable that controls a way in which filenames are
11910 * NEWS (set filename-display): New entry.
11911 * source.c (filename_display_basename, filename_display_relative)
11912 (filename_display_absolute, filename_display_kind_names)
11913 (filename_display_string, show_filename_display_string)
11914 (symtab_to_filename_for_display): New.
11915 (_initialize_source): Added initialization of 'filename-display'
11917 * source.h (symtab_to_filename_for_display): Added declaration.
11918 * stack.c (print_frame): Added new variable and calling of a new
11919 function and condition with this variable. Changed third argument of
11920 calling of a function.
11922 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11924 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11925 Rename field reference filename to fullname.
11926 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11927 fullname. New comment for it.
11928 * tui/tui-source.c (tui_set_source_content): Rename field reference
11929 filename to fullname. Initialize field by symtab_to_fullname now.
11930 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11931 reference filename to fullname. Use symtab_to_fullname during
11934 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11937 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11938 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11939 filename to fullname. Rename variable this_name to this_fullname.
11940 Lowercase FILENAME_CMP call.
11941 (dw2_find_symbol_file): New comment for the returned string.
11942 (dwarf2_gdb_index_functions): Rename the function to
11943 dw2_expand_symtabs_with_fullname.
11944 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11945 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11947 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11948 * symfile.h (struct quick_symbol_functions): Rename field
11949 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11950 parameter filename to fullname. Document returned string meaning for
11952 * symtab.c (find_line_symtab): Rename the called function to
11953 expand_symtabs_with_fullname.
11955 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11958 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11959 call of filename_cmp with compare_filenames_for_search.
11960 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11961 is_abs, unify the call of FILENAME_CMP with
11962 compare_filenames_for_search. New gdb_asserts for real_path and name.
11963 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11964 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11965 * symfile.h (struct quick_symbol_functions): Extend the comment for
11966 map_symtabs_matching_filename.
11967 * symtab.c (compare_filenames_for_search): Remove the function comment
11968 relative path requirement. Handle absolute filenames, with a comment.
11969 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11970 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11971 real_path and name. Unify the call of compare_filenames_for_search
11973 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11975 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11978 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11979 source_file references by symtab field references. Remove variables
11981 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11982 (clear_command, say_where): Replace bp_location field source_file
11983 references by symtab field references.
11984 (bp_location_dtor): Remove the source_file reference.
11985 (update_static_tracepoint): Replace bp_location field source_file
11986 references by symtab field references.
11987 (breakpoint_free_objfile): New function.
11988 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11989 Replace the field source_file by field symtab, extend its comment.
11990 (breakpoint_free_objfile): New declaration.
11991 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11992 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11993 field source_file references by symtab field references.
11995 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11997 Replace xfullpath calls by gdb_realpath calls.
11998 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12000 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12001 Remove it from the iterate_over_some_symtabs call.
12002 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12003 Remove it from the dw2_map_expand_apply calls, remove a block handling
12005 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12006 Remove it from the iterate_over_some_symtabs call.
12007 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12008 Remove it from the partial_map_expand_apply calls, remove a block
12009 handling it. Drop gdb_realpath call and cleanups from the real_path
12011 * source.c (openp): Drop the comment part about xfullpath. Replace
12012 xfullpath calls by gdb_realpath calls.
12013 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12014 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12015 from method map_symtabs_matching_filename and its comment.
12016 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12018 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12019 remove it also from the function comment, remove a block handling it.
12020 Drop gdb_realpath call and cleanups from the real_path handling.
12021 (iterate_over_symtabs): Drop variable full_path and its use.
12022 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12023 * utils.c (xfullpath): Remove.
12024 * utils.h (xfullpath): Remove.
12026 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12028 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12029 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12030 (ALLDEPFILES): Add ppc64-tdep.c.
12031 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12032 ppc64-tdep.o to gdb_target_obs.
12033 * ppc64-tdep.h: New file.
12034 * ppc64-tdep.c: New file.
12035 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12036 ppc-linux-tdep.c to here.
12037 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12038 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12039 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12040 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12041 from ppc-linux-tdep.c to here.
12042 (ppc64_convert_from_func_ptr_addr): Rename from
12043 ppc64_linux_convert_from_func_ptr_addr to
12044 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12047 (read_insn): Move from ppc-linux-tdep.c to here.
12048 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12049 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12050 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12051 Removed above functions.
12052 (ppc_linux_init_abi): Adjust.
12054 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12056 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12058 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12060 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12062 2013-02-01 Pedro Alves <palves@redhat.com>
12064 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12065 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12067 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12069 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12070 files with no separate debug info.
12071 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12072 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12073 only for files with no separate debug info.
12075 2013-01-31 Tom Tromey <tromey@redhat.com>
12077 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12079 (struct jit_program_space_data): Rename from jit_inferior_data.
12081 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12082 Change return type. Attach data to program space.
12083 (jit_program_space_data_cleanup): Rename from
12084 jit_inferior_data_cleanup; change argument type.
12085 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12087 (jit_register_code): Update.
12088 (jit_update_inferior_cache): Remove.
12089 (jit_breakpoint_deleted): Get jit data from the location's program
12091 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12092 'ps_data', change type.
12093 (jit_inferior_init, jit_breakpoint_re_set_internal)
12094 (jit_event_handler): Update.
12095 (free_objfile_data): Get data from objfile's program space.
12096 (_initialize_jit): Update.
12098 2013-01-31 Tom Tromey <tromey@redhat.com>
12101 * jit.c (struct jit_inferior_data) <cached_code_address,
12102 jit_breakpoint>: New fields.
12103 (jit_breakpoint_re_set_internal): Fix logging. Only create
12104 breakpoint if cached address has changed.
12105 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12107 (_initialize_jit): Register breakpoint deleted observer.
12109 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12111 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12112 (save_infcall_suspend_state): Ifdef out unused inf.
12113 (restore_infcall_suspend_state): Ifdef out unused inf.
12114 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12115 (jit_frame_sniffer): Remove unused inf_data.
12117 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12119 * c-exp.y (classify_inner_name): Remove unused type.
12120 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12121 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12123 (c_get_string): Remove unused kind.
12124 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12126 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12128 * charset.c (intermediate_encoding): Remove unused i.
12129 * completer.c (signal_completer): Remove unused i.
12130 * continuations.c (discard_my_continuations_1): Remove unused
12132 * corelow.c (core_close): Remove unuseD name.
12133 (get_core_siginfo): Remove unused pid.
12134 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12136 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12137 (loclist_describe_location): Remove unused first.
12138 * event-top.c (command_line_handler): Remove unused got_eof.
12139 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12140 (resize_section_table): Remove unused old_value.
12141 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12142 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12143 * i386-tdep.c (i386_process_record): Remove unused rex.
12144 * infcmd.c (get_return_value): Remove unused uiout.
12145 * jv-lang.c (type_from_class): Remove unused is_array.
12146 * jv-valprint.c (java_val_print): Remove unused i.
12147 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12148 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12149 * m2-typeprint.c (m2_print_type): Remove unused code.
12150 * macroexp.c (get_character_constant): Remove unused body_start.
12151 (macro_stringify): Remove unused result.
12152 * objc-lang.c (find_methods): Remove unused gdbarch.
12153 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12154 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12155 * stack.c (print_frame_args): Remove unused summary.
12156 * thread.c (thread_apply_command): Remove unused p.
12157 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12158 * valops.c (search_struct_method): Remove unused skip.
12159 * valprint.c (generic_val_print): Remove unused byte_order.
12160 * varobj.c (varobj_update): Remove unused changed.
12161 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12162 (alias_command): Remove unused c.
12163 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12164 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12166 (mi_cmd_data_write_memory): Remove unused word_format.
12167 (mi_cmd_data_write_memory_bytes): Remove unused r.
12168 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12170 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12171 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12174 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12176 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12177 * symtab.c (iterate_over_symtabs): Remove unused s.
12178 (find_pc_sect_symtab): Remove unused pspAce.
12179 (find_pc_sect_line): Remove unused alt_symtab.
12180 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12181 (completion_list_add_name): Remove unused newsize.
12183 2013-01-31 Tom Tromey <tromey@redhat.com>
12186 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12189 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12191 * target.c (target_read_string): Remove unused origlen.
12193 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12195 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12196 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12197 * ax-general.c (ax_print): Remove unused is_float.
12198 * blockframe.c (block_innermost_frame): Remove unused start, end.
12199 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12201 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12203 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12204 (svr4_read_so_list): Remove unused lmo.
12205 * solib-target.c (solib_target_relocate_section_addresses): Remove
12208 2013-01-30 Tom Tromey <tromey@redhat.com>
12210 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12212 2013-01-30 Tom Tromey <tromey@redhat.com>
12214 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12215 * utils.c (gnu_debuglink_crc32): Remove.
12216 * utils.h (gnu_debuglink_crc32): Don't declare.
12218 2013-01-30 Tom Tromey <tromey@redhat.com>
12220 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12221 (read_structure_type, read_enumeration_type): Remove cast.
12223 2013-01-30 Tom Tromey <tromey@redhat.com>
12225 * dwarf2read.c (read_namespace_type): Remove cast.
12226 (read_typedef): Likewise.
12228 2013-01-29 Tom Tromey <tromey@redhat.com>
12230 * dwarf2read.c (free_dwo_file): Remove assert.
12232 2013-01-29 Tom Tromey <tromey@redhat.com>
12234 * value.c (deprecated_set_value_modifiable): Remove.
12235 * value.h (deprecated_set_value_modifiable): Remove.
12237 2013-01-28 Doug Evans <dje@google.com>
12239 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12240 to addresses from dwo files.
12242 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12244 * valops.c (find_overload_match): Remove unused argument 'lax'.
12245 * value.h: Remove unused argument 'lax' from the declaration of
12246 find_overload_match.
12247 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12248 to find_overload_match.
12249 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12250 argument to find_overload_match.
12252 2013-01-25 Tom Tromey <tromey@redhat.com>
12254 * dwarf2read.c (processing_has_namespace_info): Remove.
12255 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12256 (process_die, read_func_scope, dwarf2_start_symtab)
12257 (new_symbol_full): Update.
12259 2013-01-25 Tom Tromey <tromey@redhat.com>
12261 * cp-namespace.c (cp_set_block_scope): Remove.
12262 * cp-support.h (cp_set_block_scope): Remove.
12263 * dbxread.c: Include block.h.
12264 (cp_set_block_scope): New function.
12265 (process_one_symbol): Update.
12266 * dwarf2read.c (read_func_scope): Use block_set_scope.
12268 2013-01-25 Pedro Alves <palves@redhat.com>
12270 * remote.c (add_current_inferior_and_thread): Tweak comment.
12272 2013-01-25 Tom Tromey <tromey@redhat.com>
12274 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12275 (cp_add_using_directive): Add 'copy_names' argument.
12276 * cp-support.h (cp_add_using_directive): Update.
12277 (struct using_direct) <import_src, import_dest, alias,
12278 declaration>: Now const.
12279 * dwarf2read.c (read_import_statement): Use obconcat.
12280 Don't copy names passed to cp_add_using_directive.
12282 2013-01-25 Tom Tromey <tromey@redhat.com>
12284 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12286 2013-01-25 Pedro Alves <palves@redhat.com>
12288 * remote.c (stop_reply_extract_thread): New.
12289 (add_current_inferior_and_thread): New parameter 'wait_status'.
12291 (remote_start_remote): Pass wait status to
12292 add_current_inferior_and_thread.
12293 (extended_remote_run): Update comment.
12294 (extended_remote_create_inferior_1): Pass wait status to
12295 add_current_inferior_and_thread.
12297 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12298 Ulrich Weigand <uweigand@de.ibm.com>
12300 * valarith.c (value_vector_widen): New function for replicating a
12301 scalar into a vector.
12302 (value_binop): Use value_vector_widen to widen scalar to vector
12303 rather than casting, this better matches gcc C behaviour.
12304 * valops.c (value_casst): Update logic for casting between vector
12305 types, and for casting from scalar to vector, try to match gcc C
12307 * value.h (value_vector_widen): Declare.
12308 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12309 function, handle special case for casting scalar to vector.
12310 (opencl_relop): Use opencl_value_cast.
12311 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12312 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12313 in order to use opencl_value_cast.
12315 2013-01-25 Yao Qi <yao@codesourcery.com>
12317 * event-loop.c: Include "queue.h".
12318 (gdb_event_p): New typedef.
12319 (DECLARE_QUEUE_P): Use.
12320 (DEFINE_QUEUE_P): Use.
12321 (async_queue_event): Remove.
12322 (gdb_event_xfree): New.
12323 (initialize_event_loop): New.
12324 (process_event): Use QUEUE macros.
12325 (event_queue): Remove.
12326 (gdb_wait_for_event): Caller update.
12327 (check_async_event_handlers): Likewise.
12328 (poll_timers): Likewise.
12329 * event-loop.h (initialize_event_loop): Declare.
12330 * event-loop.c (gdb_event_xfree): New.
12331 * top.c (gdb_init): Call initialize_event_loop.
12333 2013-01-25 Yao Qi <yao@codesourcery.com>
12335 * event-loop.c (async_queue_event): Remove one parameter
12336 'position'. Remove code handling 'position' == TAIL.
12337 (gdb_wait_for_event): Caller update.
12338 (check_async_event_handlers): Caller update.
12339 (poll_timers): Caller update.
12340 * event-loop.h (enum queue_position): Remove.
12342 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12344 * MAINTAINERS: Update my email.
12346 2013-01-25 Yao Qi <yao@codesourcery.com>
12348 * main.c (print_gdb_help): Remove "--epoch" from the help
12351 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12353 * symtab.c (skip_prologue_using_sal): Consider a file
12354 change the same as an increased line number
12356 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12358 * MAINTAINERS (Write After Approval): Add myself to the list.
12360 2013-01-24 Tom Tromey <tromey@redhat.com>
12362 * ada-lang.h (ada_decode_symbol): Make return type const.
12363 * ada-lang.c (ada_decode_symbol): Likewise.
12365 2013-01-23 Doug Evans <dje@google.com>
12367 * linespec.c (find_linespec_symbols): Make static.
12369 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12371 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12372 type on float conversion for complex type.
12374 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12376 Add a new class gdb.Architecture which exposes GDB's
12377 internal representation of architecture via GDB Python API.
12378 * Makefile.in: Add entries corresponding to the new file
12380 * NEWS (Python Scripting): Add entries for the new class
12381 gdb.Architecture and the new method gdb.Frame.architecture.
12382 * python/py-arch.c: Implement gdb.Architecture class.
12383 * python/py-frame.c (frapy_arch): Implement the method
12384 gdb.Frame.architecture().
12385 (frame_object_methods): Add 'architecture' to the method table.
12386 * python/python-internal.h: Add declarations of new utility
12388 * python/python.c (_initialize_python): Initialize
12389 gdb.Architecture class.
12391 2013-01-23 Doug Evans <dje@google.com>
12393 Work around binutils/15021.
12394 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12395 type_unit_group out of union s. All uses updated.
12396 (read_index_from_section): Watch for index version 8.
12397 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12398 an imported symtab.
12399 (write_psymtabs_to_index): Increment version number to 8.
12401 2013-01-22 Pedro Alves <palves@redhat.com>
12403 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12406 2013-01-22 Pedro Alves <palves@redhat.com>
12408 * annotate.c (annotate_breakpoints_changed): Rename to ...
12409 (annotate_breakpoints_invalid): ... this. Make static.
12410 (breakpoint_changed): Adjust.
12411 (_initialize_annotate): Always install the observers. Install a
12412 "breakpoint_created" observer.
12413 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12414 * breakpoint.c (set_breakpoint_condition)
12415 (breakpoint_set_commands, do_map_commands_command)
12416 (init_raw_breakpoint, clear_command, set_ignore_count)
12417 (enable_breakpoint_disp): No longer call
12418 annotate_breakpoints_changed.
12420 2013-01-22 Pedro Alves <palves@redhat.com>
12422 * annotate.c: Include "inferior.h".
12423 (frames_invalid_emitted)
12424 (breakpoints_invalid_emitted): New globals.
12425 (async_background_execution_p): New function.
12426 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12427 emitting the annotation if it has already been emitted.
12428 (annotate_display_prompt): New function.
12429 * annotate.h (annotate_display_prompt): New declaration.
12430 * event-top.c: Include annotate.h.
12431 (display_gdb_prompt): Call annotate_display_prompt.
12433 2013-01-22 Pedro Alves <palves@redhat.com>
12435 * annotate.c (ignore_count_changed): Delete.
12436 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12437 (annotate_ignore_count_change): Delete.
12438 (annotate_stopped): Don't emit a delayed breakpoints-changed
12440 * annotate.h (annotate_ignore_count_change): Delete.
12441 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12442 annotate_ignore_count_change.
12444 2013-01-22 Tom Tromey <tromey@redhat.com>
12446 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12447 require_rvalue for a register location.
12449 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12451 * breakpoint.c (print_one_breakpoint_location): Add MI
12452 field 'thread-groups' when printing a breakpoint.
12453 (output_thread_groups): New function.
12455 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12457 * python/lib/gdb/commands/explore.py
12458 (CompoundExplorer.explore_expr): Correct the name of a method
12460 (ExploreTypeCommand.invoke): Add a missing 'return'.
12462 2013-01-21 Tom Tromey <tromey@redhat.com>
12464 * gdb_obstack.h (obconcat): Move declaration here, from...
12465 * symfile.h (obconcat): ... here.
12466 * gdb_obstack.c: New file.
12467 (obconcat): Move from...
12468 * symfile.c (obconcat): ... here.
12469 * Makefile.in (SFILES): Add gdb_obstack.c.
12470 (COMMON_OBS): Add gdb_obstack.o.
12472 2013-01-21 Tom Tromey <tromey@redhat.com>
12474 * symfile.h (obsavestring): Don't declare.
12475 * symfile.c (obsavestring): Remove.
12476 * ada-exp.y: Use obstack_copy0, not obsavestring.
12477 * ada-lang.c: Use obstack_copy0, not obsavestring.
12478 * coffread.c: Use obstack_copy0, not obsavestring.
12479 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12480 * dbxread.c: Use obstack_copy0, not obsavestring.
12481 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12482 * jit.c: Use obstack_copy0, not obsavestring.
12483 * mdebugread.c: Use obstack_copy0, not obsavestring.
12484 * psymtab.c: Use obstack_copy0, not obsavestring.
12485 * stabsread.c: Use obstack_copy0, not obsavestring.
12486 * xcoffread.c: Use obstack_copy0, not obsavestring.
12488 2013-01-21 Tom Tromey <tromey@redhat.com>
12490 * dwarf2read.c (fixup_go_packaging): Save package name
12491 on objfile obstack.
12492 * gdbtypes.c (init_type): Don't copy name.
12494 2013-01-21 Tom Tromey <tromey@redhat.com>
12496 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12498 (struct attribute) <u.str>: Now const.
12499 (struct fnfieldlist) <name>: Now const.
12500 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12501 (partial_die_parent_scope): Make return type const.
12502 (partial_die_full_name, add_partial_symbol): Update.
12503 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12505 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12506 (read_file_scope, read_func_scope, dwarf2_add_field)
12507 (dwarf2_add_member_fn, read_structure_type)
12508 (process_enumeration_scope, read_array_type, read_module_type)
12509 (read_base_type, read_subrange_type): Update.
12510 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12511 (new_symbol_full, guess_full_die_structure_name): Update.
12512 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12513 (dwarf2_name): Return const type.
12514 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12517 2013-01-21 Tom Tromey <tromey@redhat.com>
12519 * gdbtypes.c (init_type): Make 'name' const.
12520 * gdbtypes.h (init_type): Update.
12522 2013-01-21 Tom Tromey <tromey@redhat.com>
12524 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12525 (start_symtab): Make 'name' and 'dirname' const. Use
12526 set_last_source_file.
12527 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12528 (last_source_file): Define. Now static.
12529 (set_last_source_file, get_last_source_file): New functions.
12530 * buildsym.h (last_source_file): Don't declare.
12531 (start_symtab): Update.
12532 (set_last_source_file, get_last_source_file): Declare.
12533 * coffread.c (complete_symtab): Use set_last_source_file.
12534 (coff_end_symtab): Likewise.
12535 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12536 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12537 set_last_source_file.
12538 (process_one_symbol): Use get_last_source_file.
12539 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12540 (psymtab_to_symtab_1): Use get_last_source_file.
12541 * xcoffread.c (process_linenos): Use get_last_source_file.
12542 (complete_symtab): Use set_last_source_file.
12543 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12544 (scan_xcoff_symtab): Use set_last_source_file.
12546 2013-01-21 Tom Tromey <tromey@redhat.com>
12548 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12549 (symbol_set_names): Remove casts. Handle field const-ness.
12551 2013-01-21 Tom Tromey <tromey@redhat.com>
12553 * dwarf2read.c (new_symbol_full): Remove cast.
12554 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12555 * symtab.h (symbol_set_demangled_name): Update.
12557 2013-01-21 Tom Tromey <tromey@redhat.com>
12559 * main.c (captured_main): Call bfd_init.
12561 2013-01-21 Tom Tromey <tromey@redhat.com>
12563 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12564 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12565 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12568 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12570 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12572 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12574 Fix gdb.fortran/common-block.exp crash in PIE mode.
12575 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12577 * f-valprint.c (info_common_command_for_block): Expect
12578 LOC_COMMON_BLOCK in gdb_assert.
12579 * symtab.h (struct general_symbol_info): Update comment for the
12580 common_block member.
12581 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12582 (enum address_class): New member LOC_COMMON_BLOCK.
12584 2013-01-18 David Blaikie <dblaikie@gmail.com>
12586 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12588 2013-01-18 Tom Tromey <tromey@redhat.com>
12591 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12592 Call require_rvalue.
12594 2013-01-18 Yao Qi <yao@codesourcery.com>
12596 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12597 (dbx_read_symtab): New declaration.
12598 (dbx_psymtab_to_symtab): Delete.
12599 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12600 Rename parameter PST to SELF. Exchanged two parameters.
12601 (start_psymtab): Caller update.
12602 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12603 (dwarf2_read_symtab): New declaration.
12604 (dwarf2_psymtab_to_symtab): Delete.
12605 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12606 Rename parameter PST to SELF. Exchanged two parameters.
12607 (create_partial_symtab): Caller update.
12608 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12609 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12610 Rename parameter PST to SELF. Exchanged two parameters.
12611 (parse_partial_symbols, new_psymtab): Caller update.
12612 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12614 * psymtab.c (psymtab_to_symtab): Caller update.
12615 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12616 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12617 Rename parameter PST to SELF. Exchanged two parameters.
12618 (xcoff_start_psymtab): Caller update.
12620 2013-01-18 Yao Qi <yao@codesourcery.com>
12622 * infrun.c (proceed): Rename local variable 'oneproc' to
12625 2013-01-17 Doug Evans <dje@google.com>
12627 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12628 (dw2_build_type_unit_groups): Delete. All uses updated.
12630 * symtab.h (struct symbol_search): Add comment.
12632 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12634 * symtab.c (compare_filenames_for_search): New comment for
12637 2013-01-17 Tom Tromey <tromey@redhat.com>
12639 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12641 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12643 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12644 initialize it by existing make_cleanup. Call new do_cleanups.
12646 2013-01-17 Tom Tromey <tromey@redhat.com>
12648 * cp-abi.c (cp_abi_completer): New function.
12649 (_initialize_cp_abi): Set completer for "set cp-abi".
12651 2013-01-17 Tom Tromey <tromey@redhat.com>
12653 * mem-break.c: Remove obsolete comment.
12654 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12656 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12658 * jit.c (jit_reader_load_command): Interpret the jit reader name
12659 as an absolute path if it begins with a forward slash.
12661 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12665 * jit.c (finalize_symtab): Ensure that only the global block has a
12668 2013-01-17 Pedro Alves <palves@redhat.com>
12670 * acinclude.m4: Include ../config/plugins.m4,
12671 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12672 * Makefile.in (aclocal_m4_deps): Update.
12673 * aclocal.m4: Renegerate.
12675 2013-01-16 Doug Evans <dje@google.com>
12677 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12679 2013-01-16 Pedro Alves <palves@redhat.com>
12680 Tom Tromey <tromey@redhat.com>
12683 * NEWS: Add "catch signal".
12684 * breakpoint.c (base_breakpoint_ops): No longer static.
12685 (bpstat_explains_signal): New function.
12686 (init_catchpoint): No longer static.
12687 (base_breakpoint_explains_signal): New function.
12688 (base_breakpoint_ops): Initialize new field.
12689 * breakpoint.h (enum bpstat_signal_value): New.
12690 (struct breakpoint_ops) <explains_signal>: New field.
12691 (bpstat_explains_signal): Remove macro, declare as function.
12692 (base_breakpoint_ops, init_catchpoint): Declare.
12693 * break-catch-sig.c: New file.
12694 * inferior.h (signal_catch_update): Declare.
12695 * infrun.c (signal_catch): New global.
12696 (handle_syscall_event): Update for change to
12697 bpstat_explains_signal.
12698 (handle_inferior_event): Likewise. Always handle random signals
12700 (signal_cache_update): Check signal_catch.
12701 (signal_catch_update): New function.
12702 (_initialize_infrun): Initialize signal_catch.
12703 * Makefile.in (SFILES): Add break-catch-sig.c.
12704 (COMMON_OBS): Add break-catch-sig.o.
12706 2013-01-16 Tom Tromey <tromey@redhat.com>
12708 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12709 (print_one_catch_solib, print_one_catch_syscall)
12710 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12713 2013-01-16 Yao Qi <yao@codesourcery.com>
12715 * printcmd.c (current_display_number): Make it static.
12717 2013-01-16 Yao Qi <yao@codesourcery.com>
12719 * infcmd.c (step_once): Don't check '!single_inst' as it was
12722 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12724 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12726 2013-01-14 Tom Tromey <tromey@redhat.com>
12728 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12730 * command.h (add_setshow_string_noescape_cmd): Update.
12731 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12732 (complete_set_gnutarget): New function.
12733 (_initialize_core): Set the "set gnutarget" completer.
12735 2013-01-14 Tom Tromey <tromey@redhat.com>
12738 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12739 (c_type_print_modifier): Likewise.
12740 * dwarf2read.c (read_tag_restrict_type): New function.
12741 (read_type_die_1): Handle DW_TAG_restrict_type.
12742 * gdbtypes.c (make_restrict_type): New function.
12743 (recursive_dump_type): Handle TYPE_RESTRICT.
12744 * gdbtypes.h (enum type_flag_values): Renumber.
12745 (enum type_instance_flag_value): Add
12746 TYPE_INSTANCE_FLAG_RESTRICT.
12747 (TYPE_RESTRICT): New macro.
12748 (make_restrict_type): Declare.
12750 2013-01-14 Tom Tromey <tromey@redhat.com>
12753 * psymtab.c (struct psymtab_state): New.
12754 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12756 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12757 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12759 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12760 Pedro Alves <palves@redhat.com>
12764 * remote.c (remote_threads_info): Make a copy of the reply from
12765 qfThreadInfo and use that instead of rs->buf.
12767 2013-01-14 Yao Qi <yao@codesourcery.com>
12769 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12770 (dbx_psymtab_to_symtab): Likewise.
12771 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12772 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12775 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12777 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12778 make_cleanup_restore_current_language. Call set_language. Move
12779 OLD_CHAIN and INNER_CHAIN cleanups.
12780 * utils.c (do_restore_current_language)
12781 (make_cleanup_restore_current_language): New functions.
12782 * utils.h (make_cleanup_restore_current_language): New declaration.
12784 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12786 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12787 non-existing files.
12789 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12790 non-existing files if FILENAME is already absolute.
12792 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12794 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12795 fputs_filtered. Append trailing newline.
12797 2013-01-11 Yao Qi <yao@codesourcery.com>
12798 Stan Shebs <stan@codesourcery.com>
12800 * psymtab.c (init_psymbol_list): Clarify the comment.
12802 2013-01-11 Yao Qi <yao@codesourcery.com>
12804 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12805 (update_dprintf_command_list): Assert that 'printf_line' is
12806 non-null. Remove condition check.
12808 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12811 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12813 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12815 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12817 2013-01-09 Anthony Green <green@moxielogic.com>
12819 * cp-abi.c (cplus_print_vtable): Don't return value from void
12821 * ada-lang.c (re_set_catch_assert): Ditto.
12823 2013-01-09 Doug Evans <dje@google.com>
12825 * symfile.h (quick_symbol_functions): Delete member
12826 pre_expand_symtabs_matching. All uses removed.
12827 * dwarf2read.c (dw2_lookup_symbol): Implement.
12828 (dw2_do_expand_symtabs_matching): Delete.
12829 (dw2_pre_expand_symtabs_matching): Delete.
12830 (struct dw2_symtab_iterator): New type.
12831 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12832 (dw2_expand_symtabs_for_function): Rewrite.
12833 (dwarf2_gdb_index_functions): Update.
12834 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12835 (psym_functions): Update.
12837 2013-01-09 Tom Tromey <tromey@redhat.com>
12839 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12840 * configure: Rebuild.
12841 * configure.ac: Add somread.o to the build if BFD has SOM
12843 * somread.c: Include som/aout.h, not syms.h.
12844 (som_symtab_read): Use som_external_symbol_dictionary_record.
12845 Unpack records manually.
12846 (_initialize_somread): Declare.
12848 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12850 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12851 Cast return_address to 64bits.
12853 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12855 * printcmd.c: Remove define of function output_command.
12856 * tracepoint.c: Remove extern of function output_command.
12857 * valprint.h: (output_command): New extern.
12859 2013-01-07 Tom Tromey <tromey@redhat.com>
12861 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12863 (objc_language_defn): Use c_printchar, c_printstr,
12866 2013-01-07 Tom Tromey <tromey@redhat.com>
12870 * ada-valprint.c (printstr, print_field_values): Remove
12872 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12874 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12876 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12877 * main.c (captured_main): Remove "epoch" argument.
12878 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12879 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12880 * p-valprint.c (pascal_object_print_value_fields): Remove
12882 * printcmd.c (print_command_1): Remove 'inspect' argument.
12883 (print_command, call_command): Update.
12884 (inspect_command): Remove.
12885 (_initialize_printcmd): Make "inspect" an alias for "print".
12886 * top.c (epoch_interface): Remove.
12887 * top.h (epoch_interface): Remove.
12888 * valprint.c (user_print_options): Update.
12889 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12890 * valprint.h (struct value_print_options) <inspect_it>: Remove
12893 2013-01-04 Tom Tromey <tromey@redhat.com>
12895 * valprint.h (read_string): Add 'extern'.
12897 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12899 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12900 used to decide whether to define darwin_read_dyld_info or not.
12902 2013-01-03 Pierre Muller <muller@sourceware.org>
12904 * main.c (relocate_gdb_directory): Avoid calling stat function
12907 2013-01-03 Yao Qi <yao@codesourcery.com>
12909 * psymtab.c (fixup_psymbol_section): Update declaration.
12910 (fixup_psymbol_section): Remove code returning value.
12912 2013-01-03 Yao Qi <yao@codesourcery.com>
12914 * symtab.h: Remove some out of date comments.
12915 (enum exception_event_kind): Move it ...
12916 * breakpoint.c: ... here.
12918 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12921 * darwin-nat.c (darwin_read_dyld_info): Only build if
12922 TASK_DYLD_INFO_COUNT is defined.
12923 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12924 TASK_DYLD_INFO_COUNT is defined.
12926 2013-01-02 Tom Tromey <tromey@redhat.com>
12928 * symfile.h (struct ecoff_debug_hack): Remove.
12929 * objfiles.c: Don't include mdebugread.h.
12931 2013-01-02 Tom Tromey <tromey@redhat.com>
12933 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12934 * configure.ac: Check for Mach-O support in BFD. Update
12936 * configure: Rebuild.
12938 2013-01-02 Tom Tromey <tromey@redhat.com>
12940 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12941 * configure.ac: Use GDB_AC_CHECK_BFD.
12942 * configure: Rebuild.
12944 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12946 * MAINTAINERS: Update my email.
12948 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12950 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12952 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12954 * rs6000-nat.c (bss_data_overlap): New function.
12955 (vmap_symtab): Use it to adjust the .bss section's offset.
12957 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12959 Update year range in copyright notice of all files.
12961 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12963 * top.c (print_gdb_version): Update copyright year.
12965 For older changes see ChangeLog-2012.
12971 version-control: never