1 2013-12-03 Joel Brobecker <brobecker@adacore.com>
3 * mi/mi-main.c: Remove trailing spaces throughout.
5 2013-12-03 Pedro Alves <palves@redhat.com>
6 Joel Brobecker <brobecker@adacore.com>
8 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
9 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
10 of a regular error when the GDB/MI command does not exist.
11 * mi/mi-main.c (mi_cmd_list_features): Add
12 "undefined-command-error-code".
13 (mi_print_exception): Print an "undefined-command"
14 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
15 * NEWS: Add entry documenting the new "code" variable in
16 "^error" result records.
18 2013-12-03 Joel Brobecker <brobecker@adacore.com>
20 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
21 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
22 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
23 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
24 field to output of "-list-features".
26 * NEWS: Add entry for new -info-gdb-mi-command.
28 2013-12-02 Doug Evans <dje@google.com>
29 Jan Kratochvil <jan.kratochvil@redhat.com>
31 * objfiles.c (allocate_objfile): Save original_name as an absolute
33 * objfiles.h (struct objfile): Expand comment on original_name.
34 * source.c (openp): Call gdb_abspath.
35 * utils.c (gdb_abspath): New function.
36 * utils.h (gdb_abspath): Declare.
38 2013-12-02 Pedro Alves <palves@redhat.com>
40 * dcache.c (dcache_read_line): Use target_read_raw_memory.
41 * target.c (target_read_raw_memory): New function.
42 (target_read_stack, target_write_memory, target_write_raw_memory):
44 (target_read_code): Add comment.
45 * target.h (target_read_raw_memory): Declare.
47 2013-12-02 Pedro Alves <palves@redhat.com>
49 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
52 2013-12-02 Pedro Alves <pedro@codesourcery.com>
53 Maciej W. Rozycki <macro@codesourcery.com>
55 * remote.c (putpkt_for_catch_errors): Remove function.
56 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
59 2013-12-02 Pedro Alves <palves@redhat.com>
62 * remote-notif.c (handle_notification): Return early if no
63 notification is found.
65 2013-12-02 Joel Brobecker <brobecker@adacore.com>
67 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
70 2013-12-02 Joel Brobecker <brobecker@adacore.com>
72 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
74 2013-12-02 Joel Brobecker <brobecker@adacore.com>
76 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
77 * ctf.c (ctf_start): Remove obsolete comment.
79 2013-12-02 Joel Brobecker <brobecker@adacore.com>
81 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
83 2013-11-30 Doug Evans <xdje42@gmail.com>
85 * auto-load.h (script_language): New members name, auto_load_enabled.
86 Add missing comments on struct members.
87 (auto_load_objfile_script): Delete.
88 * auto-load.c: #include "cli/cli-cmds.h".
89 (auto_load_gdb_scripts_enabled): New function.
90 (script_language_gdb): Update, add new members.
91 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
92 and call to maybe_add_script moved to caller.
93 (auto_load_objfile_script_1): Auto-load safe-checking and
94 call to maybe_add_script moved here.
95 (auto_load_objfile_script): Make static. Early exit if support for
96 scripting language hasn't been compiled in, or auto-loading has been
98 (source_section_scripts): Argument "source_name" renamed to
99 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
100 with section_name. Skip loading script if support for scripting
101 language hasn't been compiled in, or auto-loading has been disabled.
102 Call language->source_script_for_objfile instead of calling
103 source_python_script_for_objfile directly.
104 (load_auto_scripts_for_objfile): Update.
105 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
106 (gdbpy_load_auto_script_for_objfile): Delete.
107 (auto_load_python_scripts_enabled): New function.
108 (script_language_python): Update, add new members.
109 (gdbpy_script_language_defn): New function.
110 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
111 (gdbpy_script_language_defn): Declare.
113 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
114 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
115 (source_section_scripts): Moved here from py-auto-load.c.
116 (auto_load_section_scripts): Ditto.
117 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
118 auto-load.c, renamed AUTO_SECTION_NAME.
119 (source_section_scripts, auto_load_section_scripts): Moved to
122 2013-11-30 Yao Qi <yao@codesourcery.com>
124 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
126 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
128 * gdbarch.sh: Remove include of "gdb_string.h", replace by
131 2013-11-29 Doug Evans <xdje42@gmail.com>
133 * python/py-auto-load.c (source_section_scripts): Move comment to
134 more relevant location.
137 * python/py-breakpoint.c: Remove trailing whitespace.
138 * python/py-cmd.c: Ditto.
139 * python/py-evts.c: Ditto.
140 * python/py-finishbreakpoint.c: Ditto.
141 * python/py-frame.c: Ditto.
142 * python/py-function.c: Ditto.
143 * python/py-inferior.c: Ditto.
144 * python/py-infthread.c: Ditto.
145 * python/py-param.c: Ditto.
146 * python/py-prettyprint.c: Ditto.
147 * python/py-symbol.c: Ditto.
148 * python/py-type.c: Ditto.
149 * python/py-utils.c: Ditto.
150 * python/py-value.c: Ditto.
151 * python/python-internal.h: Ditto.
152 * python/python.c: Ditto.
154 2013-11-29 Pedro Alves <palves@redhat.com>
156 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
158 2013-11-29 Pedro Alves <palves@redhat.com>
160 * breakpoint.c (build_target_condition_list): Release previous
162 (build_target_command_list): Release previous commands.
163 (bp_location_dtor): Release target conditions and commands.
164 * remote.c (remote_add_target_side_condition): Don't release
166 (remote_add_target_side_commands): Don't release commands.
168 2013-11-29 Yao Qi <yao@codesourcery.com>
169 Pedro Alves <palves@redhat.com>
171 * dcache.c (dcache_read_line): Use current_target.beneath
172 instead of ¤t_target.
173 * target.c (memory_xfer_partial_1): Factor code out to ...
174 (raw_memory_xfer_partial): ... it. New function.
175 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
176 is TARGET_OBJECT_RAW_MEMORY.
178 2013-11-28 Doug Evans <xdje42@gmail.com>
180 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
181 breakpoint_object. All uses updated.
182 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
183 breakpoint_object. All uses updated.
184 * python.c (*): All uses of breakpoint_object updated.
185 * python.h (*): All uses of breakpoint_object updated.
186 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
187 * python/py-finishbreakpoint.c (*): Ditto.
189 2013-11-28 Doug Evans <xdje42@gmail.com>
191 * configure.ac: Add comments delineating libpython and libmcheck.
192 * configure: Regenerate.
194 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
195 Pedro Alves <palves@redhat.com>
197 * valprint.c (value_check_printable): If the value is entirely
198 unavailable, print a single "<unavailable>" instead of printing
201 2013-11-28 Pedro Alves <palves@redhat.com>
203 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
204 Add "set debug frame" output.
205 (frame_stop_reason_symbol_string): New function.
207 2013-11-28 Pedro Alves <palves@redhat.com>
209 * frame-unwind.c (default_frame_unwind_stop_reason): Return
210 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
211 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
213 2013-11-28 Pedro Alves <palves@redhat.com>
215 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
216 set the unwind stop reason to UNWIND_OUTERMOST, not
217 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
219 2013-11-28 Pedro Alves <palves@redhat.com>
221 * frame.c (frame_unwind_register): Say the register was "not
222 saved" instead of "optimized out".
224 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
227 * configure: Rebuild.
228 * configure.ac: Tighten cygwin detection check.
230 2013-11-27 Pedro Alves <palves@redhat.com>
232 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
233 register in the previous frame's arch.
235 2013-11-27 Pedro Alves <palves@redhat.com>
237 * frame-unwind.c (frame_unwind_got_optimized): Return
238 an lval_register value instead of a not_lval value.
240 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
242 * frame.c: Include "valprint.h".
243 (frame_unwind_register_value): Use value_optimized_out.
244 * value.c (value_fetch_lazy): Likewise.
246 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
248 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
250 2013-11-26 Tom Tromey <tromey@redhat.com>
252 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
255 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
257 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
258 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
259 (HAS_MPX): New macro.
260 (HAS_AVX): New macro.
261 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
263 2013-11-25 Keith Seitz <keiths@redhat.com>
266 * c-exp.y (classify_inner_name): If no matching symbol was
267 found, try looking up the token as a base class.
268 Likewise if a constructor was found.
269 * cp-namespace.c (find_type_baseclass_by_name): New function.
270 * cp-support.h (find_type_baseclass_by_name): Declare.
271 * valops.c (value_struct_elt_for_reference): If we get
272 a non-static field, try to get a value based on the
273 current instance, if any.
275 2013-11-24 Yao Qi <yao@codesourcery.com>
277 * disasm.c (dis_asm_read_memory): Call target_read_code
278 instead of target_read_memory.
280 2013-11-24 Yao Qi <yao@codesourcery.com>
282 * NEWS: Add note on new "set code-cache" option.
283 * target-dcache.c (code_cache_enabled_1): New variable.
284 (code_cache_enabled): New variable.
285 (show_code_cache, set_code_cache): New function.
286 (code_cache_enabled_p): New function.
287 (_initialize_target_dcache): Register command.
288 * target-dcache.h (code_cache_enabled_p): Declare.
289 * target.c (memory_xfer_partial_1):Handle
290 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
291 (target_read_code): New function.
292 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
294 (target_read_code): Declare.
296 2013-11-24 Yao Qi <yao@codesourcery.com>
298 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
299 (stack_cache_enabled_1): ... this. New variable.
300 (stack_cache_enabled_p): Rename to ...
301 (stack_cache_enabled): ... this. New variable.
302 (set_stack_cache_enabled_p): Rename to ...
303 (set_stack_cache): ... this. Update caller.
304 (show_stack_cache_enabled_p): Rename to ...
305 (show_stack_cache): ... this. Update caller.
306 (stack_cache_enabled): Rename to ...
307 (stack_cache_enabled_p): ... this. Update caller.
308 (_initialize_target_dcache): Replace "data cache" with
309 "target memory cache".
310 * target-dcache.h (stack_cache_enabled): Remove declaration.
311 (stack_cache_enabled_p): Add declaration.
313 2013-11-23 Doug Evans <xdje42@gmail.com>
315 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
318 2013-11-23 Doug Evans <xdje42@gmail.com>
320 * python/py-frame.c (frapy_block): Fix error message text.
322 2013-11-23 Doug Evans <xdje42@gmail.com>
324 * cli/cli-script.c (multi_line_command_p): New function.
325 (recurse_read_control_structure, read_command_lines_1): Call it.
326 (execute_control_command): Consistently have a blank line between
329 2013-11-22 Sterling Augustine <saugustine@google.com>
332 * valprint.c (read_string): Set new variable fetchlen based on
333 fetchlimit and size. Use it in call to partial_memory_read.
336 2013-11-22 Tom Tromey <tromey@redhat.com>
339 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
340 the return address column is unspecified.
342 2013-11-22 Tom Tromey <tromey@redhat.com>
343 Pedro Alves <palves@redhat.com>
346 * value.c (value_fetch_lazy): Internal error if
347 get_frame_register_value returns the same register.
349 2013-11-22 Pedro Alves <palves@redhat.com>
350 Tom Tromey <tromey@redhat.com>
352 * frame.c (frame_stash_add): Now returns whether a frame with the
353 same ID was already known.
354 (compute_frame_id): New function, factored out from get_frame_id.
355 (get_frame_id): No longer lazilly compute the frame id here.
356 (get_prev_frame_if_no_cycle): New function. Detects wider stack
358 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
359 and checking for stack cycles here.
361 2013-11-22 Pedro Alves <palves@redhat.com>
364 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
365 this frame and the new previous frame, not between this frame and
368 2013-11-22 Pedro Alves <palves@redhat.com>
371 * dwarf2-frame.c (struct dwarf2_frame_cache)
372 <checked_tailcall_bottom, entry_cfa_sp_offset,
373 entry_cfa_sp_offset_p>: New fields.
374 (dwarf2_frame_cache): Adjust to use the new cache fields instead
375 of locals. Don't call dwarf2_tailcall_sniffer_first here.
376 (dwarf2_frame_prev_register): Call it here, but only once.
378 2013-11-21 Doug Evans <xdje42@gmail.com>
380 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
381 (type_equality_entry): Move here from python/py-type.c.
382 (type_equality_entry_d): Ditto.
383 (compare_maybe_null_strings, check_types_equal): Ditto.
384 (check_types_worklist, types_deeply_equal): Ditto.
385 * gdbtypes.h (types_deeply_equal): Declare.
386 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
387 (typy_richcompare): Update.
389 2013-11-20 Joel Brobecker <brobecker@adacore.com>
391 * python/py-value.c (is_intlike): Delete.
392 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
393 by use of is_integral_type.
394 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
395 by use of is_integral_type and check for TYPE_CODE_PTR.
397 2013-11-20 Tom Tromey <tromey@redhat.com>
399 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
401 * gnulib/aclocal.m4: Update.
402 * gnulib/config.in: Update.
403 * gnulib/configure: Update.
404 * gnulib/import/Makefile.am: Update.
405 * gnulib/import/Makefile.in: Update.
406 * gnulib/import/errno.in.h: Remove.
407 * gnulib/import/intprops.h: Remove.
408 * gnulib/import/m4/errno_h.m4: Remove.
409 * gnulib/import/m4/gnulib-cache.m4: Update.
410 * gnulib/import/m4/gnulib-comp.m4: Update.
411 * gnulib/import/m4/strerror.m4: Remove.
412 * gnulib/import/m4/sys_socket_h.m4: Remove.
413 * gnulib/import/strerror-override.c: Remove.
414 * gnulib/import/strerror-override.h: Remove.
415 * gnulib/import/strerror.c: Remove.
416 * gnulib/update-gnulib.sh: Update.
418 2013-11-20 Yao Qi <yao@codesourcery.com>
420 * target-dcache.c (target_dcache_get_or_init): Call
421 set_address_space_data if 'dcache' is NULL.
423 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
425 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
427 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
429 * python/lib/gdb/command/bound_register.py: New file.
430 * data-directory/Makefile.in: Copy bond_register.py to the right path
431 to be initialized at gdb startup.
433 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
435 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
437 (amd64_linux_read_description): Add initialization for MPX and
439 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
440 (amd64_linux_gregset_reg_offset): Add MPX registers.
441 (amd64_linux_core_read_description): Add initialization for MPX
443 (_initialize_amd64_linux_tdep): Initialize MPX targets.
444 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
445 register on the list.
446 (tdesc_amd64_mpx_linux) Add new target for MPX.
447 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
448 (amd64_mpx_names): MPX register names.
449 (amd64_init_abi): Add MPX register while initializing the ABI.
450 (_initialize_amd64_tdep): Initialize MPX targets.
451 * amd64-tdep.h (amd64_regnum): Add MPX registers.
452 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
454 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
456 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
457 registers on the range of registers to be read from
459 (i386_linux_read_description): Add case for MPX.
460 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
461 (i386_linux_gregset_reg_offset): Add MPX registers.
462 (i386_linux_core_read_description): Initialize also MPX.
463 (_initialize_i386_linux_tdep): Add mpx initialization.
464 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
466 (i386_regnum): Add MPX registers.
467 (I386_MPX_NUM_REGS): New macro.
468 (i386_bnd_regnum_p): New function.
469 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
470 number of registers to be the number of BNDSTATUS.
471 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
472 * i386-tdep.c: Include features/i386/i386-mpx.c.
473 (i386_mpx_names): Add MPX register names array.
474 (i386_bnd_names): Add bnd pseudo register names array.
475 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
477 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
478 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
480 (i386_bnd_type): New function.
481 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
483 (i386_pseudo_register_read_into_value): Add bnd case.
484 (i386_pseudo_register_write): Add bnd pseudo registers.
485 (i386_register_reggroup_p): Add MPX register to the group all.
486 (i386_validate_tdesc_p): Add MPX to the target description
488 (i386_pseudo_register_name): Add bnd pseudo registers.
489 (i386_gdbarch_init): Add MPX for architecture initialization.
490 (_initia_initialize_i386_tdep): Add mpx initialization.
491 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
493 (XSAVE_MPX_ADDR): New macro.
494 (i387_supply_xsave): Add MPX case.
495 (i387_collect_xsave): Add MPX case.
496 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
497 (I387_BNDCFGU_REGNUM): New macro.
498 (I387_NUM_MPX_REGS): New macro.
499 (I387_NUM_BND_REGS): New macro.
500 (I387_NUM_MPX_CTRL_REGS): New macro.
501 (I387_MPXEND_REGNUM): New macro.
502 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
503 (I386_XSTATE_BNDCFG): Likewise.
504 (I386_XSTATE_MPX_MASK): Likewise.
505 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
506 (I386_XSTATE_BNDREGS_SIZE): New macro.
507 (I386_XSTATE_BNDCFG_SIZE): Likewise.
508 (I386_XSTATE_SIZE): Adapt for MPX.
509 (I386_XSTATE_MAX_SIZE): Likewise.
511 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
513 * features/i386/Makefile: Adapts for using MPX registers.
514 * features/i386/32bit-mpx.xml: New file.
515 * features/i386/64bit-mpx.xml: Likewise.
516 * features/i386/amd64-mpx-linux.c: Likewise.
517 * features/i386/amd64-mpx-linux.xml: Likewise.
518 * features/i386/amd64-mpx.c: Likewise.
519 * features/i386/amd64-mpx.xml: Likewise.
520 * features/i386/i386-mpx-linux.c: Likewise.
521 * features/i386/i386-mpx-linux.xml: Likewise.
522 * features/i386/i386-mpx.c: Likewise.
523 * features/i386/i386-mpx.xml: Likewise.
524 * regformats/i386/amd64-mpx-linux.dat: New file.
525 * regformats/i386/amd64-mpx.dat: Likewise.
526 * regformats/i386/i386-mpx-linux.dat: Likewise.
527 * regformats/i386/i386-mpx.dat: Likewise.
529 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
531 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
532 Modified logic of creating a bitfield to be in sync with
535 2013-11-20 Will Newton <will.newton@linaro.org>
537 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
540 2013-11-20 Yao Qi <yao@codesourcery.com>
542 * progspace.h (struct address_space_data): Declare.
543 * target-dcache.c: Include "progspace.h".
544 (target_dache): Remove.
545 (target_dcache_aspace_key): New.
546 (target_dcache_cleanup): New function.
547 (target_dcache_init_p): Get data through
548 target_dcache_aspace_key.
549 (target_dcache_invalidate): Likewise.
550 (target_dcache_get): Likewise.
551 (target_dcache_get_or_init): Likewise.
552 (_initialize_target_dcache): Initialize
553 target_dcache_aspace_key.
555 2013-11-20 Yao Qi <yao@codesourcery.com>
557 * progspace.c (struct address_space): Update comments.
558 <REGISTRY_FIELDS>: New fields.
559 DEFINE_REGISTRY for address_space.
560 (new_address_space): Call address_space_alloc_data.
561 (free_address_space): Call address_space_free_data.
562 * progspace.h: Use DECLARE_REGISTRY.
564 2013-11-20 Yao Qi <yao@codesourcery.com>
566 * Makefile.in (SFILES):Add target-dcache.c.
567 (HFILES_NO_SRCDIR): Add target-dcache.h.
568 (COMMON_OBS): Add target-dcache.o.
569 * dcache.c: Remove inclusion to "target.h". Include
571 * memattr.c: Include "target-dcache.h".
573 * tracepoint.c: Likewise.
574 * target.c: (stack_cache_enabled_p_1): Move to
576 (stack_cache_enabled_p): Likewise.
577 (set_stack_cache_enabled_p): Likewise.
578 (show_stack_cache_enabled_p): Likewise.
579 (target_dcache, target_dcache_init_p): Likewise.
580 (target_dcache_invalidate): Likewise.
581 (target_dcache_get, target_dcache_get_or_init): Likewise.
582 (memory_xfer_partial_1): Call function stack_cache_enabled.
583 (initialize_target): Move code to target-dcache.c.
584 * target.h (target_dcache_invalidate): Move to
586 (target_dcache_get): Likewise.
587 * target-dcache.c: New.
588 * target-dcache.h: New.
590 2013-11-20 Yao Qi <yao@codesourcery.com>
592 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
595 2013-11-20 Yao Qi <yao@codesourcery.com>
597 * dcache.c (last_cache): Remove.
598 (dcache_free, dcache_init): Update.
600 (dcache_print_line): Add parameter 'dcache'. Replace
601 'target_dcache' with 'dcache'.
602 (dcache_info): Move code to dcache_info_1. Call
604 (dcache_info_1): New function.
605 (set_dcache_size): Call target_dcache_invalidate.
606 (set_dcache_line_size): Call target_dcache_invalidate.
607 * target.c (target_dcache_init_p): New function.
608 (target_dcache_invalidate): Check target_dcache_init_p first.
609 (target_dcache_get, target_dcache_get_or_init): New function.
610 (memory_xfer_partial_1): Adjust.
611 (initialize_target): Don't initialize 'target_dcache'.
612 * target.h (struct dcache_struct): Declare.
613 (target_dcache_get): Declare.
615 2013-11-19 Yao Qi <yao@codesourcery.com>
617 * varobj.c (varobj_get_type): Fix typo.
619 2013-11-19 Joel Brobecker <brobecker@adacore.com>
621 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
623 2013-11-19 Joel Brobecker <brobecker@adacore.com>
625 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
628 2013-11-18 Tom Tromey <tromey@redhat.com>
630 * common/gdb_stat.h: Remove.
631 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
632 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
633 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
634 * corefile.c: Use sys/stat.h, not gdb_stat.h.
635 * ctf.c: Use sys/stat.h, not gdb_stat.h.
636 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
637 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
638 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
639 * exec.c: Use sys/stat.h, not gdb_stat.h.
640 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
641 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
642 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
643 * jit.c: Use sys/stat.h, not gdb_stat.h.
644 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
645 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
646 * main.c: Use sys/stat.h, not gdb_stat.h.
647 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
648 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
649 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
650 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
651 * procfs.c: Use sys/stat.h, not gdb_stat.h.
652 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
653 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
654 * remote.c: Use sys/stat.h, not gdb_stat.h.
655 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
656 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
657 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
658 * source.c: Use sys/stat.h, not gdb_stat.h.
659 * symfile.c: Use sys/stat.h, not gdb_stat.h.
660 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
661 * symtab.c: Use sys/stat.h, not gdb_stat.h.
662 * top.c: Use sys/stat.h, not gdb_stat.h.
663 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
665 2013-11-18 Tom Tromey <tromey@redhat.com>
667 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
669 * gnulib/aclocal.m4: Update.
670 * gnulib/config.in: Update.
671 * gnulib/configure: Update.
672 * gnulib/import/Makefile.am: Update.
673 * gnulib/import/Makefile.in: Update.
674 * gnulib/import/m4/gnulib-cache.m4: Update.
675 * gnulib/import/m4/gnulib-comp.m4: Update.
676 * gnulib/import/m4/sys_stat_h.m4: New.
677 * gnulib/import/m4/time_h.m4: New.
678 * gnulib/import/sys_stat.in.h: New.
679 * gnulib/import/time.in.h: New.
681 2013-11-18 Tom Tromey <tromey@redhat.com>
683 * configure: Rebuild.
684 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
686 2013-11-18 Tom Tromey <tromey@redhat.com>
688 * configure: Rebuild.
689 * configure.ac: Don't check for unistd.h.
691 2013-11-18 Tom Tromey <tromey@redhat.com>
693 * configure: Rebuild.
694 * configure.ac: Don't check for stdlib.h
695 * defs.h: Include stdlib.h unconditionally.
697 2013-11-18 Tom Tromey <tromey@redhat.com>
699 * config.in: Rebuild.
700 * configure: Rebuild.
701 * configure.ac: Don't check for stddef.h.
702 * defs.h: Unconditionally include stddef.h. Remove duplicate
705 2013-11-18 Tom Tromey <tromey@redhat.com>
707 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
708 * common/gdb_dirent.h: Remove.
709 * common/filestuff.c: Use dirent.h.
710 * common/linux-osdata.c: Use dirent.h.
712 * config.in: Rebuild.
713 * configure: Rebuild.
714 * configure.ac: Don't use AC_HEADER_DIRENT.
715 * linux-fork.c: Use dirent.h
716 * linux-nat.c: Use dirent.h.
717 * nto-procfs.c: Use dirent.h.
718 * procfs.c: Use dirent.h.
720 2013-11-18 Tom Tromey <tromey@redhat.com>
722 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
723 * gnulib/aclocal.m4: Update.
724 * gnulib/config.in: Update.
725 * gnulib/configure: Update.
726 * gnulib/import/Makefile.am: Update.
727 * gnulib/import/Makefile.in: Update.
728 * gnulib/import/dirent.in.h: New.
729 * gnulib/import/m4/dirent_h.m4: New.
730 * gnulib/import/m4/gnulib-cache.m4: Update.
731 * gnulib/import/m4/gnulib-comp.m4: Update.
733 2013-11-18 Tom Tromey <tromey@redhat.com>
735 * configure: Rebuild.
736 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
739 2013-11-18 Tom Tromey <tromey@redhat.com>
741 * common/gdb_string.h: Remove.
742 * aarch64-tdep.c: Use string.h, not gdb_string.h.
743 * ada-exp.y: Use string.h, not gdb_string.h.
744 * ada-lang.c: Use string.h, not gdb_string.h.
745 * ada-lex.l: Use string.h, not gdb_string.h.
746 * ada-typeprint.c: Use string.h, not gdb_string.h.
747 * ada-valprint.c: Use string.h, not gdb_string.h.
748 * aix-thread.c: Use string.h, not gdb_string.h.
749 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
750 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
751 * alpha-nat.c: Use string.h, not gdb_string.h.
752 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
753 * alpha-tdep.c: Use string.h, not gdb_string.h.
754 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
755 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
756 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
757 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
758 * amd64-nat.c: Use string.h, not gdb_string.h.
759 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
760 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
761 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
762 * arch-utils.c: Use string.h, not gdb_string.h.
763 * arm-linux-nat.c: Use string.h, not gdb_string.h.
764 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
765 * arm-tdep.c: Use string.h, not gdb_string.h.
766 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
767 * armbsd-tdep.c: Use string.h, not gdb_string.h.
768 * armnbsd-nat.c: Use string.h, not gdb_string.h.
769 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
770 * armobsd-tdep.c: Use string.h, not gdb_string.h.
771 * avr-tdep.c: Use string.h, not gdb_string.h.
772 * ax-gdb.c: Use string.h, not gdb_string.h.
773 * ax-general.c: Use string.h, not gdb_string.h.
774 * bcache.c: Use string.h, not gdb_string.h.
775 * bfin-tdep.c: Use string.h, not gdb_string.h.
776 * breakpoint.c: Use string.h, not gdb_string.h.
777 * build-id.c: Use string.h, not gdb_string.h.
778 * buildsym.c: Use string.h, not gdb_string.h.
779 * c-exp.y: Use string.h, not gdb_string.h.
780 * c-lang.c: Use string.h, not gdb_string.h.
781 * c-typeprint.c: Use string.h, not gdb_string.h.
782 * c-valprint.c: Use string.h, not gdb_string.h.
783 * charset.c: Use string.h, not gdb_string.h.
784 * cli-out.c: Use string.h, not gdb_string.h.
785 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
786 * cli/cli-decode.c: Use string.h, not gdb_string.h.
787 * cli/cli-dump.c: Use string.h, not gdb_string.h.
788 * cli/cli-interp.c: Use string.h, not gdb_string.h.
789 * cli/cli-logging.c: Use string.h, not gdb_string.h.
790 * cli/cli-script.c: Use string.h, not gdb_string.h.
791 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
792 * cli/cli-utils.c: Use string.h, not gdb_string.h.
793 * coffread.c: Use string.h, not gdb_string.h.
794 * common/common-utils.c: Use string.h, not gdb_string.h.
795 * common/filestuff.c: Use string.h, not gdb_string.h.
796 * common/linux-procfs.c: Use string.h, not gdb_string.h.
797 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
798 * common/signals.c: Use string.h, not gdb_string.h.
799 * common/vec.h: Use string.h, not gdb_string.h.
800 * core-regset.c: Use string.h, not gdb_string.h.
801 * corefile.c: Use string.h, not gdb_string.h.
802 * corelow.c: Use string.h, not gdb_string.h.
803 * cp-abi.c: Use string.h, not gdb_string.h.
804 * cp-support.c: Use string.h, not gdb_string.h.
805 * cp-valprint.c: Use string.h, not gdb_string.h.
806 * cris-tdep.c: Use string.h, not gdb_string.h.
807 * d-lang.c: Use string.h, not gdb_string.h.
808 * dbxread.c: Use string.h, not gdb_string.h.
809 * dcache.c: Use string.h, not gdb_string.h.
810 * demangle.c: Use string.h, not gdb_string.h.
811 * dicos-tdep.c: Use string.h, not gdb_string.h.
812 * disasm.c: Use string.h, not gdb_string.h.
813 * doublest.c: Use string.h, not gdb_string.h.
814 * dsrec.c: Use string.h, not gdb_string.h.
815 * dummy-frame.c: Use string.h, not gdb_string.h.
816 * dwarf2-frame.c: Use string.h, not gdb_string.h.
817 * dwarf2loc.c: Use string.h, not gdb_string.h.
818 * dwarf2read.c: Use string.h, not gdb_string.h.
819 * elfread.c: Use string.h, not gdb_string.h.
820 * environ.c: Use string.h, not gdb_string.h.
821 * eval.c: Use string.h, not gdb_string.h.
822 * event-loop.c: Use string.h, not gdb_string.h.
823 * exceptions.c: Use string.h, not gdb_string.h.
824 * exec.c: Use string.h, not gdb_string.h.
825 * expprint.c: Use string.h, not gdb_string.h.
826 * f-exp.y: Use string.h, not gdb_string.h.
827 * f-lang.c: Use string.h, not gdb_string.h.
828 * f-typeprint.c: Use string.h, not gdb_string.h.
829 * f-valprint.c: Use string.h, not gdb_string.h.
830 * fbsd-nat.c: Use string.h, not gdb_string.h.
831 * findcmd.c: Use string.h, not gdb_string.h.
832 * findvar.c: Use string.h, not gdb_string.h.
833 * fork-child.c: Use string.h, not gdb_string.h.
834 * frame.c: Use string.h, not gdb_string.h.
835 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
836 * frv-tdep.c: Use string.h, not gdb_string.h.
837 * gdb.c: Use string.h, not gdb_string.h.
838 * gdb_bfd.c: Use string.h, not gdb_string.h.
839 * gdbarch.c: Use string.h, not gdb_string.h.
840 * gdbtypes.c: Use string.h, not gdb_string.h.
841 * gnu-nat.c: Use string.h, not gdb_string.h.
842 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
843 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
844 * go-exp.y: Use string.h, not gdb_string.h.
845 * go-lang.c: Use string.h, not gdb_string.h.
846 * go32-nat.c: Use string.h, not gdb_string.h.
847 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
848 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
849 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
850 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
851 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
852 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
853 * i386-linux-nat.c: Use string.h, not gdb_string.h.
854 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
855 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
856 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
857 * i386-tdep.c: Use string.h, not gdb_string.h.
858 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
859 * i386gnu-nat.c: Use string.h, not gdb_string.h.
860 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
861 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
862 * i387-tdep.c: Use string.h, not gdb_string.h.
863 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
864 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
865 * inf-child.c: Use string.h, not gdb_string.h.
866 * inf-ptrace.c: Use string.h, not gdb_string.h.
867 * inf-ttrace.c: Use string.h, not gdb_string.h.
868 * infcall.c: Use string.h, not gdb_string.h.
869 * infcmd.c: Use string.h, not gdb_string.h.
870 * inflow.c: Use string.h, not gdb_string.h.
871 * infrun.c: Use string.h, not gdb_string.h.
872 * interps.c: Use string.h, not gdb_string.h.
873 * iq2000-tdep.c: Use string.h, not gdb_string.h.
874 * irix5-nat.c: Use string.h, not gdb_string.h.
875 * jv-exp.y: Use string.h, not gdb_string.h.
876 * jv-lang.c: Use string.h, not gdb_string.h.
877 * jv-typeprint.c: Use string.h, not gdb_string.h.
878 * jv-valprint.c: Use string.h, not gdb_string.h.
879 * language.c: Use string.h, not gdb_string.h.
880 * linux-fork.c: Use string.h, not gdb_string.h.
881 * linux-nat.c: Use string.h, not gdb_string.h.
882 * lm32-tdep.c: Use string.h, not gdb_string.h.
883 * m2-exp.y: Use string.h, not gdb_string.h.
884 * m2-typeprint.c: Use string.h, not gdb_string.h.
885 * m32c-tdep.c: Use string.h, not gdb_string.h.
886 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
887 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
888 * m32r-rom.c: Use string.h, not gdb_string.h.
889 * m32r-tdep.c: Use string.h, not gdb_string.h.
890 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
891 * m68k-tdep.c: Use string.h, not gdb_string.h.
892 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
893 * m68klinux-nat.c: Use string.h, not gdb_string.h.
894 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
895 * m88k-tdep.c: Use string.h, not gdb_string.h.
896 * macrocmd.c: Use string.h, not gdb_string.h.
897 * main.c: Use string.h, not gdb_string.h.
898 * mdebugread.c: Use string.h, not gdb_string.h.
899 * mem-break.c: Use string.h, not gdb_string.h.
900 * memattr.c: Use string.h, not gdb_string.h.
901 * memory-map.c: Use string.h, not gdb_string.h.
902 * mep-tdep.c: Use string.h, not gdb_string.h.
903 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
904 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
905 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
906 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
907 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
908 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
909 * mi/mi-console.c: Use string.h, not gdb_string.h.
910 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
911 * mi/mi-interp.c: Use string.h, not gdb_string.h.
912 * mi/mi-main.c: Use string.h, not gdb_string.h.
913 * mi/mi-parse.c: Use string.h, not gdb_string.h.
914 * microblaze-rom.c: Use string.h, not gdb_string.h.
915 * microblaze-tdep.c: Use string.h, not gdb_string.h.
916 * mingw-hdep.c: Use string.h, not gdb_string.h.
917 * minidebug.c: Use string.h, not gdb_string.h.
918 * minsyms.c: Use string.h, not gdb_string.h.
919 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
920 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
921 * mips-tdep.c: Use string.h, not gdb_string.h.
922 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
923 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
924 * mipsread.c: Use string.h, not gdb_string.h.
925 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
926 * mn10300-tdep.c: Use string.h, not gdb_string.h.
927 * monitor.c: Use string.h, not gdb_string.h.
928 * moxie-tdep.c: Use string.h, not gdb_string.h.
929 * mt-tdep.c: Use string.h, not gdb_string.h.
930 * nbsd-tdep.c: Use string.h, not gdb_string.h.
931 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
932 * nto-procfs.c: Use string.h, not gdb_string.h.
933 * nto-tdep.c: Use string.h, not gdb_string.h.
934 * objc-lang.c: Use string.h, not gdb_string.h.
935 * objfiles.c: Use string.h, not gdb_string.h.
936 * opencl-lang.c: Use string.h, not gdb_string.h.
937 * osabi.c: Use string.h, not gdb_string.h.
938 * osdata.c: Use string.h, not gdb_string.h.
939 * p-exp.y: Use string.h, not gdb_string.h.
940 * p-lang.c: Use string.h, not gdb_string.h.
941 * p-typeprint.c: Use string.h, not gdb_string.h.
942 * parse.c: Use string.h, not gdb_string.h.
943 * posix-hdep.c: Use string.h, not gdb_string.h.
944 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
945 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
946 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
947 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
948 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
949 * printcmd.c: Use string.h, not gdb_string.h.
950 * procfs.c: Use string.h, not gdb_string.h.
951 * prologue-value.c: Use string.h, not gdb_string.h.
952 * python/py-auto-load.c: Use string.h, not gdb_string.h.
953 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
954 * ravenscar-thread.c: Use string.h, not gdb_string.h.
955 * regcache.c: Use string.h, not gdb_string.h.
956 * registry.c: Use string.h, not gdb_string.h.
957 * remote-fileio.c: Use string.h, not gdb_string.h.
958 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
959 * remote-mips.c: Use string.h, not gdb_string.h.
960 * remote-sim.c: Use string.h, not gdb_string.h.
961 * remote.c: Use string.h, not gdb_string.h.
962 * reverse.c: Use string.h, not gdb_string.h.
963 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
964 * ser-base.c: Use string.h, not gdb_string.h.
965 * ser-go32.c: Use string.h, not gdb_string.h.
966 * ser-mingw.c: Use string.h, not gdb_string.h.
967 * ser-pipe.c: Use string.h, not gdb_string.h.
968 * ser-tcp.c: Use string.h, not gdb_string.h.
969 * ser-unix.c: Use string.h, not gdb_string.h.
970 * serial.c: Use string.h, not gdb_string.h.
971 * sh-tdep.c: Use string.h, not gdb_string.h.
972 * sh64-tdep.c: Use string.h, not gdb_string.h.
973 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
974 * skip.c: Use string.h, not gdb_string.h.
975 * sol-thread.c: Use string.h, not gdb_string.h.
976 * solib-dsbt.c: Use string.h, not gdb_string.h.
977 * solib-frv.c: Use string.h, not gdb_string.h.
978 * solib-osf.c: Use string.h, not gdb_string.h.
979 * solib-spu.c: Use string.h, not gdb_string.h.
980 * solib-target.c: Use string.h, not gdb_string.h.
981 * solib.c: Use string.h, not gdb_string.h.
982 * somread.c: Use string.h, not gdb_string.h.
983 * source.c: Use string.h, not gdb_string.h.
984 * sparc-nat.c: Use string.h, not gdb_string.h.
985 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
986 * sparc-tdep.c: Use string.h, not gdb_string.h.
987 * sparc64-tdep.c: Use string.h, not gdb_string.h.
988 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
989 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
990 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
991 * spu-linux-nat.c: Use string.h, not gdb_string.h.
992 * spu-multiarch.c: Use string.h, not gdb_string.h.
993 * spu-tdep.c: Use string.h, not gdb_string.h.
994 * stabsread.c: Use string.h, not gdb_string.h.
995 * stack.c: Use string.h, not gdb_string.h.
996 * std-regs.c: Use string.h, not gdb_string.h.
997 * symfile.c: Use string.h, not gdb_string.h.
998 * symmisc.c: Use string.h, not gdb_string.h.
999 * symtab.c: Use string.h, not gdb_string.h.
1000 * target.c: Use string.h, not gdb_string.h.
1001 * thread.c: Use string.h, not gdb_string.h.
1002 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1003 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1004 * top.c: Use string.h, not gdb_string.h.
1005 * tracepoint.c: Use string.h, not gdb_string.h.
1006 * tui/tui-command.c: Use string.h, not gdb_string.h.
1007 * tui/tui-data.c: Use string.h, not gdb_string.h.
1008 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1009 * tui/tui-file.c: Use string.h, not gdb_string.h.
1010 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1011 * tui/tui-out.c: Use string.h, not gdb_string.h.
1012 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1013 * tui/tui-source.c: Use string.h, not gdb_string.h.
1014 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1015 * tui/tui-win.c: Use string.h, not gdb_string.h.
1016 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1017 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1018 * typeprint.c: Use string.h, not gdb_string.h.
1019 * ui-file.c: Use string.h, not gdb_string.h.
1020 * ui-out.c: Use string.h, not gdb_string.h.
1021 * user-regs.c: Use string.h, not gdb_string.h.
1022 * utils.c: Use string.h, not gdb_string.h.
1023 * v850-tdep.c: Use string.h, not gdb_string.h.
1024 * valarith.c: Use string.h, not gdb_string.h.
1025 * valops.c: Use string.h, not gdb_string.h.
1026 * valprint.c: Use string.h, not gdb_string.h.
1027 * value.c: Use string.h, not gdb_string.h.
1028 * varobj.c: Use string.h, not gdb_string.h.
1029 * vax-tdep.c: Use string.h, not gdb_string.h.
1030 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1031 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1032 * windows-nat.c: Use string.h, not gdb_string.h.
1033 * xcoffread.c: Use string.h, not gdb_string.h.
1034 * xml-support.c: Use string.h, not gdb_string.h.
1035 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1036 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1038 2013-11-18 Tom Tromey <tromey@redhat.com>
1040 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1042 * gnulib/aclocal.m4: Update.
1043 * gnulib/config.in: Update.
1044 * gnulib/configure: Update.
1045 * gnulib/import/Makefile.am: Update.
1046 * gnulib/import/Makefile.in: Update.
1047 * gnulib/import/errno.in.h: New.
1048 * gnulib/import/intprops.h: New.
1049 * gnulib/import/m4/errno_h.m4: New.
1050 * gnulib/import/m4/gnulib-cache.m4: Update.
1051 * gnulib/import/m4/gnulib-comp.m4: Update.
1052 * gnulib/import/m4/strerror.m4: New.
1053 * gnulib/import/m4/strstr.m4: New.
1054 * gnulib/import/m4/sys_socket_h.m4: New.
1055 * gnulib/import/strerror-override.c: New.
1056 * gnulib/import/strerror-override.h: New.
1057 * gnulib/import/strerror.c: New.
1058 * gnulib/import/strstr.c: New.
1060 2013-11-18 Tom Tromey <tromey@redhat.com>
1062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1065 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1067 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1068 * sparc-tdep.h: And its prototype.
1070 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1072 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1074 2013-11-18 Pedro Alves <palves@redhat.com>
1076 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1079 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1081 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1082 to -list-features output.
1084 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1086 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1087 <read_addr_from_reg>: Renames "read_reg".
1088 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1090 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1091 Use read_addr_from_reg in place of read_reg.
1092 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1093 in place of read_reg.
1094 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1095 dwarf_expr_read_reg.
1096 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1097 with dwarf_expr_read_addr_from_reg.
1098 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1099 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1100 needs_frame_read_addr_from_reg.
1102 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1104 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1106 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1108 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1111 2013-11-15 Tom Tromey <tromey@redhat.com>
1114 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1115 (classify_name): Likewise. Prefer a field of "this" over a
1117 (classify_inner_name, yylex): Update.
1119 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1121 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1122 Extend the documentation a bit.
1123 <get_reg_value>: New field.
1124 * dwarf2loc.c (dwarf_expr_get_reg_value)
1125 (needs_frame_get_reg_value): New functions.
1126 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1128 * dwarf2-frame.c (get_reg_value): New function.
1129 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1130 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1131 Use new callback to compute result_val.
1133 2013-11-15 Alan Modra <amodra@gmail.com>
1135 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1136 (ppc64_desc_entry_point): ..this. Update comments here and at
1138 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1139 ppc64_standard_linkage3): Update comments.
1140 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1141 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1143 (ppc64_standard_linkage4_target): New function.
1144 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1145 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1146 nop match. Fix comment wrap.
1148 2013-11-14 Pedro Alves <palves@redhat.com>
1150 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1151 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1153 2013-11-14 Pedro Alves <palves@redhat.com>
1155 * infrun.c (struct execution_control_state)
1156 <stepped_after_stopped_by_watchpoint>: New field.
1157 (get_inferior_stop_soon): New function.
1158 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1159 moved to struct execution_control_state -- adjust. Use
1160 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1162 (handle_signal_stop): New function, factored out from
1163 handle_inferior_event.
1165 2013-11-14 Pedro Alves <palves@redhat.com>
1167 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1169 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1171 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1172 Adjust to return a boolean.
1173 * breakpoint.h (enum bpstat_signal_value): Delete.
1174 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1175 (bpstat_explains_signal): Likewise.
1176 * infrun.c (handle_inferior_event) <random signal checks>:
1177 bpstat_explains_signal now returns a boolean - adjust. No longer
1178 consider hiding signals.
1180 2013-11-14 Pedro Alves <palves@redhat.com>
1182 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1183 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1184 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1186 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1187 instead of BPSTAT_SIGNAL_HIDE.
1188 * infrun.c (handle_inferior_event): Rework random signal checks.
1190 2013-11-14 Pedro Alves <palves@redhat.com>
1192 * infrun.c (struct execution_control_state): Remove
1193 'random_signal' field.
1194 (handle_syscall_event): Use bpstat_causes_stop instead of
1195 bpstat_explains_signal. Don't set ecs->random_signal.
1196 (handle_inferior_event): New 'random_signal' local.
1197 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1198 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1199 bpstat_explains_signal. Don't set ecs->random_signal.
1200 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1203 2013-11-14 Pedro Alves <palves@redhat.com>
1205 * infrun.c (handle_inferior_event): Move comment from the
1206 function's body to the function's description, adjusted.
1208 2013-11-14 Pedro Alves <palves@redhat.com>
1210 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1211 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1212 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1215 2013-11-14 Tom Tromey <tromey@redhat.com>
1217 * python/py-linetable.c (ltpy_has_line)
1218 (ltpy_get_all_source_lines): Fix loop termination condition.
1220 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1222 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1223 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1224 PARSE->LANGUAGE during command execution, if set.
1225 * mi/mi-parse.c: Add "language.h" #include.
1226 (mi_parse): Add parsing of "--language" command option.
1228 * NEWS: Add entry mentioning the new "--language" command option.
1230 2013-11-14 Pedro Alves <palves@redhat.com>
1231 Joel Brobecker <brobecker@adacore.com>
1233 * cli/cli-utils.h (extract_arg_const): Add declaration.
1234 * cli/cli-utils.c (extract_arg_const): New function.
1235 (extract_arg): Reimplement using extract_arg_const.
1237 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1239 * language.h: Add "symtab.h" #include.
1241 2013-11-13 Doug Evans <xdje42@gmail.com>
1243 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1244 specific breakpoints, don't evaluate breakpoint condition if
1247 2013-11-13 Keith Seitz <keiths@redhat.com>
1251 * cp-support.c (insepct_type): Add support for substituting
1252 namespace aliases, too.
1253 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1254 for DW_TAG_imported_declaration.
1255 (add_partial_symbol): Likewise.
1256 (process_die): Handle namespace aliases with
1257 read_namespace_alias.
1258 (die_needs_namespace): Add DW_TAG_imported_declaration.
1259 (read_namespace_alias): New function.
1260 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1261 (new_symbol_full): Handle DW_TAG_imported_declaration.
1263 2013-11-13 Keith Seitz <keiths@redhat.com>
1265 * p-exp.y (uptok): Make first parameter const.
1266 (yylex): Make `tokstart' and `tokptr' const.
1267 Don't copy the lexer input to a temporary buffer.
1269 Remove const workaround for parse_escape.
1270 Create a temporary buffer for a convenience variable instead
1271 of doing in-place modification of the input.
1272 If a match is found with a different case from the input,
1273 do not change the input at all.
1274 Use `tmp' to construct the resultant stoken instead of
1277 2013-11-13 Doug Evans <xdje42@gmail.com>
1279 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1281 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1283 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1284 entry with "ada-exceptions".
1286 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1288 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1289 after re-initialization of OBJFILE's obstack.
1291 2013-11-12 Doug Evans <xdje42@gmail.com>
1293 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1294 bs->stop != 0 on entry. Update function comment. Simplify early
1295 exit for frame mismatch. Reindent rest of function.
1297 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1302 2013-11-12 Doug Evans <dje@google.com>
1304 Work around gold/15646.
1305 * dwarf2read.c (read_index_from_section): Update comment.
1306 (struct dw2_symtab_iterator): New member global_seen.
1307 (dw2_symtab_iter_init): Initialize it.
1308 (dw2_symtab_iter_next): Skip duplicate global symbols.
1309 (dw2_expand_symtabs_matching): Ditto.
1311 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1313 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1314 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1316 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1317 (mi_cmd_info_ada_exceptions): New function.
1318 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1320 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1322 * ada-lang.h: #include "vec.h".
1323 (struct ada_exc_info): New.
1324 (ada_exc_info): New typedef.
1325 (DEF_VEC_O(ada_exc_info)): New vector.
1326 (ada_exceptions_list): Add declaration.
1327 * ada-lang.c (ada_is_exception_sym)
1328 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1329 (sort_remove_dups_ada_exceptions_list)
1330 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1331 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1332 (ada_exceptions_list_1, ada_exceptions_list)
1333 (info_exceptions_command): New function.
1334 (_initialize_ada_language): Add "info exception" command.
1336 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1339 * NEWS: Add linetable feature.
1340 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1341 * python/py-linetable.c: New file.
1342 * python/py-symtab.c (stpy_get_linetable): New function.
1343 * python/python-internal.h (symtab_to_linetable_object): Declare.
1344 (gdbpy_initialize_linetable): Ditto.
1345 * python/python.c (_initialize_python): Call
1346 gdbpy_initialize_linetable.
1348 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1350 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1351 the documentation of fields "except_string" and "condition".
1352 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1353 CONDITION on the heap before passing it to
1354 create_ada_exception_catchpoint.
1355 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1358 2013-11-11 Tom Tromey <tromey@redhat.com>
1360 * config.in, configure: Rebuild.
1361 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1363 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1365 * remote-sim.c (gdbsim_detach): Break declaration into
1366 shorter lines. No code change.
1368 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1370 * remote-sim.c (gdbsim_detach): Fix prototype.
1372 2013-11-08 Doug Evans <dje@google.com>
1374 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1375 (create_debug_types_hash_table): Only print debugging messages for
1376 each TU if dwarf2-read >= 2.
1377 (process_queue): Ditto.
1378 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1381 2013-11-08 Tom Tromey <tromey@redhat.com>
1383 * configure: Rebuild.
1384 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1386 2013-11-08 Tom Tromey <tromey@redhat.com>
1388 * configure, config.in: Rebuild.
1389 * configure.ac: Remove unused configury.
1391 2013-11-08 Tom Tromey <tromey@redhat.com>
1393 * m32c-tdep.c: Use gdb_string.h.
1395 2013-11-08 Tom Tromey <tromey@redhat.com>
1397 * configure, config.in: Rebuild.
1398 * configure.ac: Remove all link.h-related checks.
1400 2013-11-08 Tom Tromey <tromey@redhat.com>
1402 * acinclude.m4: Include common.m4.
1403 * common/common.m4: New file.
1404 * configure, config.in: Rebuild.
1405 * configure.ac: Use GDB_AC_COMMON.
1407 2013-11-08 Doug Evans <dje@google.com>
1409 * NEWS: Mention that "set debug symtab-create" now accepts a
1411 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1412 to set the symtab's primary flag.
1413 * jit.c (finalize_symtab): Ditto.
1414 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1415 * symfile.c (allocate_symtab): Only print debugging messages for
1416 symtab_create_debug levels 2 and higher.
1417 * symtab.c (symtab_create_debug): Change type to unsigned int.
1418 (set_symtab_primary): New function.
1419 (_initialize_symtab): Change "set debug symtab-create" to a
1421 * symtab.h (set_symtab_primary): Declare.
1422 (symtab_create_debug): Update decl.
1424 2013-11-08 Tom Tromey <tromey@redhat.com>
1426 * aix-thread.c (aix_thread_detach): Update.
1427 * corelow.c (core_detach): Update.
1428 * darwin-nat.c (darwin_detach): Update.
1429 * dec-thread.c (dec_thread_detach): Update.
1430 * gnu-nat.c (gnu_detach): Update.
1431 * go32-nat.c (go32_detach): Update.
1432 * inf-ptrace.c (inf_ptrace_detach): Update.
1433 * inf-ttrace.c (inf_ttrace_detach): Update.
1434 * linux-fork.c (linux_fork_detach): Update.
1435 * linux-fork.h (linux_fork_detach): Update.
1436 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1437 local for const-correctness.
1438 * linux-thread-db.c (thread_db_detach): Update.
1439 * monitor.c (monitor_detach): Update.
1440 * nto-procfs.c (procfs_detach): Update.
1441 * procfs.c (procfs_detach): Update.
1442 * record.c (record_detach): Update.
1443 * record.h (record_detach): Update.
1444 * remote-m32r-sdi.c (m32r_detach): Update.
1445 * remote-mips.c (mips_detach): Update.
1446 * remote-sim.c (gdbsim_detach): Update.
1447 * remote.c (remote_detach_1, remote_detach)
1448 (extended_remote_detach): Update.
1449 * sol-thread.c (sol_thread_detach): Update.
1450 * target.c (target_detach): Make "args" const.
1451 (init_dummy_target): Update.
1452 * target.h (struct target_ops) <to_detach>: Make argument const.
1453 (target_detach): Likewise.
1454 * windows-nat.c (windows_detach): Update.
1456 2013-11-07 Doug Evans <dje@google.com>
1459 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1460 and align fields for PT_GNU_RELRO segments.
1462 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1465 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1467 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1469 * NEWS: Document Python temporary breakpoint support.
1470 * python/py-breakpoint.c (bppy_get_temporary): New function.
1471 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1472 to temporary if True.
1474 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1476 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1477 removed to allow analyzing unconditional branch instructions
1478 with PC-relative offsets of zero.
1480 2013-11-07 Yao Qi <yao@codesourcery.com>
1482 * mi/mi-cmd-var.c: Include "language.h".
1483 (mi_cmd_var_info_expression): Get language name from
1485 * varobj.c (varobj_language_string): Remove.
1486 (variable_language): Remove declaration.
1487 (languages): Remove.
1488 (varobj_get_language): Change the type of return value.
1489 (variable_language): Remove.
1490 * varobj.h (enum varobj_languages): Remove.
1491 (varobj_language_string): Remove declaration.
1492 (varobj_get_language): Update declaration.
1494 2013-11-07 Yao Qi <yao@codesourcery.com>
1496 * language.h (struct language_defn) <la_natural_name>: New
1498 * ada-lang.c (ada_language_defn): Initialize field
1500 * c-lang.c (c_language_defn): Likewise.
1501 (cplus_language_defn, asm_language_defn): Likewise.
1502 * d-lang.c (d_language_defn): Likewise.
1503 * f-lang.c (f_language_defn): Likewise.
1504 * go-lang.c (go_language_defn): Likewise.
1505 * jv-lang.c (java_language_defn): Likewise.
1506 * language.c (unknown_language_defn ): Likewise.
1507 (auto_language_defn): Likewise.
1508 * m2-lang.c (m2_language_defn): Likewise.
1509 * objc-lang.c (objc_language_defn): Likewise.
1510 * opencl-lang.c (opencl_language_defn): Likewise.
1511 * p-lang.c (pascal_language_defn): Likewise.
1513 2013-11-07 Yao Qi <yao@codesourcery.com>
1515 * language.c (language_str): Return const char *.
1516 (add_language): Add const to 'language_names'
1517 * language.h (struct language_defn) <la_name>: Add const.
1518 (language_str: Update declaration.
1520 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1522 * s390-linux-nat.c (s390_read_description): Consider the TE field
1523 in the HWCAP for determining 'have_regset_tdb'.
1525 2013-11-06 Will Newton <will.newton@linaro.org>
1528 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1529 values. (read_partial_die): Likewise.
1531 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1534 * top.c (command_line_input): Unify interactivity tests to use
1535 input_from_terminal_p.
1536 * event-top.c (command_line_handler): Likewise.
1538 2013-11-06 Yao Qi <yao@codesourcery.com>
1540 * Makefile.in (check-perf): New target.
1542 2013-11-05 Will Newton <will.newton@linaro.org>
1545 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1546 (arm_print_float_info): Likewise.
1548 2013-11-04 Anton Blanchard <anton@samba.org>
1550 * target.c (memory_xfer_partial): Cap write to 4KB.
1552 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1554 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1555 probe scan even when the arch provides no get_longjmp_target.
1557 2013-10-31 Pedro Alves <palves@redhat.com>
1559 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1560 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1561 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1562 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1563 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1564 <bpstat handling>: If the bpstat chain wants the signal to be
1565 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1568 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1570 * breakpoint.c (update_watchpoint): Update error message and add
1571 an additional error message.
1573 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1575 * s390-tdep.h: Rename to...
1576 * s390-linux-tdep.h: ...here.
1577 * s390-tdep.c: Rename to...
1578 * s390-linux-tdep.c: ...here. Adjust #include.
1579 * s390-nat.c: Rename to...
1580 * s390-linux-nat.c: ...here. Adjust #include.
1581 * config/s390/s390.mh: Rename to...
1582 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1584 * configure.host: Reflect host rename "s390" -> "linux".
1585 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1586 * Makefile.in (ALL_TARGET_OBS): Likewise.
1587 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1589 (ALLDEPFILES): Reflect rename of .c files.
1591 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1593 * s390-nat.c: Whitespace cleanup.
1594 * s390-tdep.c: Likewise.
1595 * s390-tdep.h: Remove empty line at end of file.
1597 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1599 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1602 2013-10-29 Tom Tromey <tromey@redhat.com>
1604 * utils.c (reg): Move undefinition...
1605 * gdb_curses.h: ... here. Update comment to mention AIX.
1607 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1609 * exec.h (add_target_sections_of_objfile): New declaration.
1610 * exec.c (add_target_sections_of_objfile): New function.
1611 * symfile.c (add_symbol_file_command): Update current target sections.
1612 (remove_symbol_file_command): New command.
1613 (symfile_free_objfile): New function.
1614 (_initialize_symfile): Register observer for free_objfile events.
1615 * NEWS: Add description of the remove-symbol-file command.
1616 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1617 * objfiles.c (free_objfile): Notify free_objfile.
1618 (is_addr_in_objfile): New function.
1619 * objfiles.h (is_addr_in_objfile): New declaration.
1620 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1621 events instead of solib_unloaded events.
1622 (_initialize_printcmd): Register observer for free_objfile instead
1623 of solib_unloaded notifications.
1624 * solib.c (remove_user_added_objfile): New function.
1625 (_initialize_symfile): Add remove-symbol-file.
1627 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1629 * infcmd.c (default_print_one_register_info): Use val_print to
1630 print all values even optimized out or unavailable ones. Don't
1631 try to print a raw form of optimized out or unavailable values.
1633 2013-10-29 Yao Qi <yao@codesourcery.com>
1635 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1636 parameter 'arg' instead of from program_space_data.
1637 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1638 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1639 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1640 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1641 * inflow.c (inflow_inferior_data_cleanup): Get data from
1642 parameter 'arg' instead of inferior_data.
1643 * registry.h: Add comments.
1645 2013-10-28 Pedro Alves <palves@redhat.com>
1647 * breakpoint.c (watchpoints_triggered)
1648 <!target_stopped_data_address>: Hardcode return 1.
1650 2013-10-28 Pedro Alves <palves@redhat.com>
1652 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1655 2013-10-28 Pedro Alves <palves@redhat.com>
1657 * infrun.c (process_event_stop_test): New function, factored out
1658 from handle_inferior_event.
1659 (handle_inferior_event): 'process_event_stop_test' is now a
1660 function instead of a goto label -- adjust.
1662 2013-10-28 Pedro Alves <palves@redhat.com>
1664 * infrun.c (handle_inferior_event): Move process_event_stop_test
1665 goto label to the else branch of the ecs->random_signal check,
1666 along with FRAME and GDBARCH re-fetching.
1668 2013-10-28 Pedro Alves <palves@redhat.com>
1670 * infrun.c (switch_back_to_stepped_thread): New function, factored
1671 out from handle_inferior_event.
1672 (handle_inferior_event): Adjust to call
1673 switch_back_to_stepped_thread. Call it also at the tail of the
1674 random signal handling, and return, instead of also handling
1675 random signals just before the stepping tests.
1677 2013-10-28 Pedro Alves <palves@redhat.com>
1679 * infrun.c (clear_stop_func): Delete.
1680 (handle_inferior_event): Don't call clear_stop_func and don't
1681 clear 'ecs->random_signal'.
1683 2013-10-27 Yao Qi <yao@codesourcery.com>
1685 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1686 (varobj_create, varobj_get_path_expr): Update.
1687 (varobj_value_has_mutated, varobj_update): Likewise.
1688 (create_child_with_value, new_root_variable): Likewise.
1689 (number_of_children, name_of_variable): Likewise.
1690 (value_of_child, my_value_of_variable): Likewise.
1691 (varobj_value_is_changeable_p): Likewise.
1693 2013-10-25 Yao Qi <yao@codesourcery.com>
1695 * language.h (struct lang_varobj_ops): Declare.
1696 (struct language_defn) <la_varobj_ops>: New field.
1697 * ada-lang.c: Include "varobj.h"
1698 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1700 * c-lang.c: Include "varobj.h"
1701 (c_language_defn): Initialize field 'la_varobj_ops' with
1703 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1705 (asm_language_defn): Initialize field 'la_varobj_ops' with
1707 (minimal_language_defn): Likewise.
1708 * d-lang.c (d_language_defn): Likewise.
1709 * f-lang.c (f_language_defn): Likewise.
1710 * go-lang.c (go_language_defn): Likewise.
1711 * m2-lang.c (m2_language_defn): Likewise.
1712 * objc-lang.c (objc_language_defn): Likewise.
1713 * opencl-lang.c (opencl_language_defn): Likewise.
1714 * p-lang.c (pascal_language_defn): Likewise.
1715 * language.c (unknown_language_defn): Likewise.
1716 (auto_language_defn): Likewise.
1717 (local_language_defn): Likewise.
1718 * jv-lang.c (java_language_defn): Initialize field
1719 'la_varobj_ops' with java_varobj_ops.
1720 * varobj.c (varobj_create): Update.
1721 * varobj.h (default_varobj_ops): Define macro.
1723 2013-10-25 Pedro Alves <palves@redhat.com>
1725 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1727 (cp_print_static_field): If the value is entirely optimized out,
1728 print <optimized out> here.
1729 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1731 * p-valprint.c (pascal_object_print_static_field): If the value is
1732 entirely optimized out, print <optimized out> here.
1733 * valops.c (do_search_struct_field)
1734 (value_struct_elt_for_reference): No longer handle a NULL static
1736 * value.c (value_static_field): Return an optimized out value
1739 2013-10-25 Yao Qi <yao@codesourcery.com>
1741 * remote.c (remote_traceframe_info): Return early if
1742 traceframe is not selected.
1744 2013-10-25 Yao Qi <yao@codesourcery.com>
1746 * tracepoint.c (traceframe_fun): Remove.
1747 (traceframe_sal): Remove.
1748 (set_traceframe_context): Add local variables.
1750 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1752 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1755 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1757 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1758 failure from register information collection.
1760 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1762 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1764 (linux_corefile_thread_callback): Update accordingly.
1765 (linux_make_corefile_notes): Likewise.
1767 2013-10-24 Pedro Alves <palves@redhat.com>
1769 * NEWS (New options): Mention set/show startup-with-shell.
1770 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1772 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1773 startup-with-shell'.
1774 (show_startup_with_shell): New function.
1775 (_initialize_fork_child): Register the set/show startup-with-shell
1777 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1778 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1779 * procfs.c (procfs_init_inferior): Remove comment.
1780 * infcmd.c (startup_with_shell): New global.
1781 * inferior.h (startup_with_shell): Declare global.
1782 (STARTUP_WITH_SHELL): Delete.
1783 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1785 2013-10-23 Pedro Alves <palves@redhat.com>
1787 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1788 * common/signals.c: Include "gdb_assert.h".
1789 (signals): New field 'symbol'.
1790 (SET): Use the 'symbol' parameter.
1791 (gdb_signal_to_symbol_string): New function.
1792 * infrun.c (handle_inferior_event) <random signal>: In debug
1793 output, print the random signal enum as string in addition to its
1795 * target/waitstatus.c (target_waitstatus_to_string): Print the
1796 signal's enum value as string instead of the (POSIX) signal name.
1798 2013-10-23 Gary Benson <gbenson@redhat.com>
1801 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1802 from 32 to 18. Adjusted fscanf format string accordingly.
1803 (Avoids leaving cmd unterminated.)
1804 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1805 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1806 that local_address and remote_address will not overflow.
1807 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1808 leaving dependencies unterminated. Parse size as "%u" to match
1811 2013-10-22 Pedro Alves <palves@redhat.com>
1813 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1814 set ecs->random signal.
1816 2013-10-22 Pedro Alves <palves@redhat.com>
1818 * infrun.c (keep_going): Update comments.
1820 2013-10-22 Pedro Alves <palves@redhat.com>
1822 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1823 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1825 2013-10-22 Pedro Alves <palves@redhat.com>
1827 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1829 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1830 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1831 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1832 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1833 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1834 (GDB_SIGNAL_LAST): Change description string.
1835 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1836 Adjust to signal renaming.
1837 * darwin-nat.c (darwin_decode_message): Likewise.
1839 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1841 * MAINTAINERS (Write After Approval): Add myself to the list.
1843 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1845 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1846 forced off, downgrade them to software watchpoints if possible,
1847 and error out if not possible.
1848 (watch_command_1): Move watchpoint type selection closer to
1849 watchpoint creation, and extend the comments.
1851 2013-10-18 Pedro Alves <palves@redhat.com>
1854 * infrun.c (handle_inferior_event): Keep going if we got a random
1855 signal we should not stop for, instead of falling through to the
1858 2013-10-18 Yao Qi <yao@codesourcery.com>
1860 * c-varobj.c (cplus_number_of_children): Fix indentation.
1862 2013-10-17 Tom Tromey <tromey@redhat.com>
1865 * printcmd.c (printcmd): Call gdb_flush.
1867 2013-10-17 Tom Tromey <tromey@redhat.com>
1869 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1870 (elf_locate_sections): Update.
1872 2013-10-17 Yao Qi <yao@codesourcery.com>
1874 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1875 * ada-varobj.c: Remove the include of ada-varobj.h.
1876 (ada_varobj_get_number_of_children): Declare.
1877 (ada_varobj_get_name_of_child): Make it static.
1878 (ada_varobj_get_path_expr_of_child): Likewise.
1879 (ada_varobj_get_value_of_child): Likewise.
1880 (ada_varobj_get_type_of_child): Likewise.
1881 (ada_varobj_get_value_of_array_variable): Likewise.
1882 * ada-varobj.h: Remove.
1884 2013-10-17 Yao Qi <yao@codesourcery.com>
1886 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1887 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1888 * ada-varobj.c: Include "varobj.h".
1889 (ada_number_of_children): New. Moved from varobj.c.
1890 (ada_name_of_variable, ada_name_of_child): Likewise.
1891 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1892 (ada_type_of_child, ada_value_of_variable): Likewise.
1893 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1894 (ada_varobj_ops): New.
1895 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1896 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1897 * gdbtypes.h (get_target_type): Declare.
1898 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1900 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1901 (ANONYMOUS_UNION_NAME): Likewise.
1902 (get_type, get_value_type, get_target_type): Remove declarations.
1903 (value_get_print_value, varobj_value_get_print_value): Likewise.
1904 (c_number_of_children, c_name_of_variable): Likewise.
1905 (c_name_of_child, c_path_expr_of_child): Likewise.
1906 (c_value_of_child, c_type_of_child): Likewise.
1907 (c_value_of_variable, cplus_number_of_children): Likewise.
1908 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1909 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1910 (cplus_value_of_child, cplus_type_of_child): Likewise.
1911 (cplus_value_of_variable, java_number_of_children): Likewise.
1912 (java_name_of_variable, java_name_of_child): Likewise.
1913 (java_path_expr_of_child, java_value_of_child): Likewise.
1914 (java_type_of_child, java_value_of_variable): Likewise.
1915 (ada_number_of_children, ada_name_of_variable): Likewise.
1916 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1917 (ada_value_of_child, ada_type_of_child): Likewise.
1918 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1919 (ada_value_has_mutated): Likewise.
1920 (struct language_specific): Move it to varobj.h.
1921 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1922 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1924 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1926 (is_anonymous_child): Move it to c-varobj.c and rename to
1927 varobj_is_anonymous_child. Caller update.
1928 (get_type): Move it to c-varobj.c.
1929 (get_value_type): Rename it varobj_get_value_type. Make it
1931 (get_target_type): Move it gdbtypes.c.
1932 (varobj_formatted_print_options): New function.
1933 (value_get_print_value): Rename it to
1934 varobj_value_get_print_value and make it extern.
1935 (varobj_value_is_changeable_p): Make it extern.
1936 (adjust_value_for_child_access): Move it to c-varobj.c.
1937 (default_value_is_changeable_p): Rename it to
1938 varobj_default_value_is_changeable_p. Make it extern.
1939 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1940 (c_name_of_child, c_path_expr_of_child): Likewise.
1941 (c_value_of_child, c_type_of_child): Likewise.
1942 (c_value_of_variable, cplus_number_of_children): Likewise.
1943 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1944 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1945 (cplus_value_of_child, cplus_type_of_child): Likewise.
1946 (cplus_value_of_variable): Likewise.
1947 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1948 (java_name_of_child, java_path_expr_of_child): Likewise.
1949 (java_value_of_child, java_type_of_child): Likewise.
1950 (java_value_of_variable): Likewise.
1951 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1952 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1953 (ada_value_of_child, ada_type_of_child): Likewise.
1954 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1955 (ada_value_has_mutated): Likewise.
1956 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1957 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1958 (c_varobj_ops, cplus_varobj_ops): Declare.
1959 (java_varobj_ops, ada_varobj_ops): Declare.
1960 (varobj_default_value_is_changeable_p): Declare.
1961 (varobj_value_is_changeable_p): Declare.
1962 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1963 (varobj_get_path_expr_parent): Declare.
1964 (varobj_value_get_print_value): Declare.
1965 (varobj_formatted_print_options): Declare.
1966 (varobj_restrict_range): Declare.
1968 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1970 * target/waitstatus.h (target_waitkind): Remove spurious
1971 character from the comments.
1973 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1975 * gdbarch.sh (get_longjmp_target): Add method documentation.
1976 * gdbarch.h: Regenerate.
1978 2013-10-16 Tom Tromey <tromey@redhat.com>
1980 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1983 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1985 * gcore.in: Call GDB using the full path to the gcore script.
1986 Error out if the GDB binary is not found.
1988 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1991 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1994 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1997 * target.c (target_disable_btrace): Fix invalid return value for
1999 (target_teardown_btrace): Likewise.
2001 2013-10-14 Yao Qi <yao@codesourcery.com>
2003 * varobj.c (struct varobj): Move most of the fields to
2005 (struct varobj_dynamic): New struct.
2006 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2007 (varobj_has_more): Likewise.
2008 (dynamic_varobj_has_child_method): Likewise.
2009 (update_dynamic_varobj_children): Likewise.
2010 (varobj_get_num_children): Likewise.
2011 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2012 (install_new_value_visualizer): Likewise.
2013 (install_new_value_visualizer, install_new_value): Likewise.
2014 (varobj_update, new_variable, free_variable): Likewise.
2015 (my_value_of_variable, value_get_print_value): Likewise.
2016 (install_visualizer): Change the type of parameter 'var' to
2017 'struct varobjd_dynamic *'. Callers update.
2018 * varobj.h (struct varobj): Moved from varobj.c.
2019 (struct varobj) <dynamic>: New field.
2021 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2023 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2024 as the preferred name of r30.
2025 * nios2-linux-tdep.c (reg_offsets): Likewise.
2026 * features/nios2-cpu.xml: Likewise.
2027 * features/nios2-linux.c: Regenerated.
2028 * features/nios2.c: Regenerated.
2029 * regformats/nios2-linux.dat: Regenerated.
2031 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 Canonicalize directories for EXEC_FILENAME.
2034 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2036 * utils.c (gdb_realpath_keepfile): New function.
2037 * utils.h (gdb_realpath_keepfile): New declaration.
2039 2013-10-11 Doug Evans <dje@google.com>
2041 * Makefile.in (GDBFLAGS): New variable.
2044 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2046 * NEWS: Add entry documenting the new "-catch-assert" and
2047 "-catch-exception" GDB/MI commands.
2049 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2051 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2053 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2054 "enabled". Set B->ENABLE_STATE accordingly.
2055 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2057 (create_ada_exception_catchpoint): Add declaration.
2058 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2059 (create_ada_exception_catchpoint): Make non-static. Add new
2060 parameter "disabled". Use it in call to
2061 init_ada_exception_breakpoint.
2062 (catch_ada_exception_command): Add parameter "enabled" in call
2063 to create_ada_exception_catchpoint.
2064 (catch_assert_command): Likewise.
2066 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2068 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2069 "catch-exception" commands.
2070 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2071 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2073 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2075 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2076 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2077 of all its enumerates with "ada_". Update the rest of this
2080 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2082 * ada-lang.c (ada_decode_exception_location): Delete.
2083 (create_ada_exception_catchpoint): Remove arguments "sal",
2084 "addr_string" and "ops". Add argument "ex_kind" instead.
2085 Adjust implementation accordingly, calling ada_exception_sal
2086 to get the entities it no longer gets passed as arguments.
2087 Document the function's arguments.
2088 (catch_ada_exception_command): Use catch_ada_exception_command_split
2089 instead of ada_decode_exception_location, and update call to
2090 create_ada_exception_catchpoint.
2091 (catch_ada_assert_command_split): Renames
2092 ada_decode_assert_location. Remove parameters "addr_string" and
2093 "ops", and now returns void. Adjust implementation accordingly.
2094 Update the function documentation.
2095 (catch_assert_command): Use catch_ada_assert_command_split
2096 instead of ada_decode_assert_location. Update call to
2097 create_ada_exception_catchpoint.
2099 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2101 * utils.h (perror_warning_with_name): Add declaration.
2102 * utils.c (perror_warning_with_name): New function.
2103 * cli/cli-cmds.c (source_script_with_search): Add call to
2104 perror_warning_with_name if from_tty is nul.
2106 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2108 * utils.c (perror_string): New function, extracted out of
2109 throw_perror_with_name.
2110 (throw_perror_with_name): Rework to use perror_string.
2112 2013-10-11 Yao Qi <yao@codesourcery.com>
2114 * remote.c (discard_pending_stop_replies_in_queue): Update
2116 (struct stop_reply) <rs>: New field.
2117 (remove_stop_reply_of_remote_state): New function.
2118 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2119 Callers update. Pass remove_stop_reply_of_remote_state to
2121 (remote_parse_stop_reply): Initialize field 'rs'.
2123 2013-10-10 Will Newton <will.newton@linaro.org>
2125 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2128 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2130 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2131 serial_baud_show_cmd.
2132 (_initialize_cli_cmds): Delete the code creating the
2133 "set/show remotebaud" commands.
2134 * serial.c (baud_rate): Move here from top.c.
2135 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2136 (_initialize_serial): Create "set/show serial baud" commands.
2137 Add "set/show remotebaud" command aliases.
2138 * top.c (baud_rate): Moved to serial.c.
2139 * NEWS: Document the new "set/show serial baud" commands,
2140 replacing "set/show remotebaud".
2142 2013-10-09 Pedro Alves <palves@redhat.com>
2144 * breakpoint.c (insert_bp_location): Use memory_error_message to
2145 build the memory error string.
2146 * c-lang.c: Include "gdbcore.h".
2147 (c_get_string): Use memory_error to throw error.
2148 (target_xfer_memory_error): Delete.
2149 (memory_error_message): New, factored out from
2150 target_xfer_memory_error.
2151 (memory_error): Change parameter type to target_xfer_error.
2153 (read_memory): Use memory_error instead of
2154 target_xfer_memory_error.
2155 * gdbcore.h: Include "target.h".
2156 (memory_error): Change parameter type to target_xfer_error.
2157 (memory_error_message): Declare function.
2158 * target.c (target_read_memory, target_read_stack)
2159 (target_write_memory, target_write_raw_memory): Return
2160 TARGET_XFER_E_IO on error. Adjust comments.
2161 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2163 * target.h (target_read, target_insert_breakpoint)
2164 (target_remove_breakpoint): Adjust comments.
2165 * valprint.c (partial_memory_read): Rename parameter, and adjust
2167 (val_print_string): Use memory_error_message to build the memory
2170 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2172 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2173 result variable. Rename variable fopen_e_ever_failed to
2174 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2176 2013-10-09 Pedro Alves <palves@redhat.com>
2178 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2179 (monitor_write_memory_longlongs, monitor_write_memory_block):
2180 Constify 'myaddr' parameter.
2181 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2183 (monitor_xfer_partial): New function.
2184 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2185 hook. Install a to_xfer_partial hook.
2187 2013-10-09 Tom Tromey <tromey@redhat.com>
2189 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2190 bfd_get_alt_debug_link_info.
2192 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2194 New flag OBJF_NOT_FILENAME.
2195 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2196 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2198 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2199 symbol_file_add_from_bfd.
2200 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2202 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2204 * objfiles.h (OBJF_NOT_FILENAME): New.
2206 2013-10-08 Tom Tromey <tromey@redhat.com>
2208 * Makefile.in (SFILES): Add build-id.c.
2209 (HFILES_NO_SRCDIR): Add build-id.h.
2210 * build-id.c: New file, largely from elfread.c. Modified
2212 * build-id.h: New file.
2213 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2214 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2215 Search for dwz file using build-id.
2216 * elfread.c (build_id_bfd_get, build_id_verify)
2217 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2219 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2221 * ada-lang.c (compare_names_with_case): Renamed from
2222 compare_names, adding a new parameter "casing" and its handling.
2223 New function documentation.
2224 (compare_names): New function, implemented using
2225 compare_names_with_case.
2227 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2229 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2231 2013-10-07 Tom Tromey <tromey@redhat.com>
2233 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2234 demangled_names_hash.
2235 (free_objfile): Don't delete the demangled_names_hash.
2236 * objfiles.h (struct objfile_per_bfd_storage)
2237 <demangled_names_hash>: New field.
2238 (struct objfile) <demangled_names_hash>: Move to
2239 objfile_per_bfd_storage.
2240 * symfile.c (reread_symbols): Don't delete the
2241 demangled_names_hash.
2242 * symtab.c (create_demangled_names_hash): Update.
2243 (symbol_set_names): Update.
2245 2013-10-07 Tom Tromey <tromey@redhat.com>
2247 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2248 needs_relocations>: New fields.
2249 (gdb_bfd_requires_relocations): New function.
2250 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2251 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2252 the BFD needs relocations applied.
2254 2013-10-07 Pedro Alves <palves@redhat.com>
2256 PR breakpoints/11568
2257 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2258 the thread list" instead of "gone".
2260 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2262 * NEWS: Mention new convenience variable $_exitsignal.
2263 * corelow.c (core_open): Reset exit convenience variables. Set
2264 $_exitsignal to the uncaught signal which generated the corefile.
2265 * infrun.c (handle_inferior_event): Reset exit convenience
2266 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2267 (clear_exit_convenience_vars): New function.
2268 * inferior.h (clear_exit_convenience_vars): New prototype.
2270 2013-10-06 Yao Qi <yao@codesourcery.com>
2272 * varobj.h: Add comments to enum varobj_languages.
2274 2013-10-04 Doug Evans <dje@google.com>
2276 Add support for DWP file format version 2.
2277 * NEWS: Mention support for DWP file format version 2.
2278 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2279 union of asection, containing_section. New fields virtual_offset
2280 and is_virtual. Change type of readin filed from int to char.
2281 (dwo_sections, dwo_file): Tweak comments.
2282 (dwp_v2_section_ids): New enum.
2283 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2285 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2287 (virtual_v2_dwo_sections): New struct.
2288 (dwp_hash_table): New fields version, nr_columns. Change type of
2289 section_pool field to a union.
2290 (dwp_file): New field version.
2291 (dwarf2_has_info): Check for virtual sections.
2292 (get_containing_section): New function.
2293 (get_section_bfd_owner, get_section_bfd_section): Call it.
2294 (dwarf2_locate_sections): Update.
2295 (dwarf2_section_empty_p): Update.
2296 (dwarf2_read_section): Handle virtual sections.
2297 (locate_dwz_sections): Update.
2298 (create_dwp_hash_table): Document and handle V2 format.
2299 (locate_v1_virtual_dwo_sections): Renamed from
2300 locate_virtual_dwo_sections and update. All callers updated.
2301 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2302 Delete arg htab. Rename arg section_index to unit_index.
2303 All callers updated.
2304 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2306 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2307 (lookup_dwo_unit_in_dwp): Add V2 support.
2308 (dwarf2_locate_dwo_sections): Update.
2309 (dwarf2_locate_common_dwp_sections): Renamed from
2310 dwarf2_locate_dwp_sections and update. All callers updated.
2311 (dwarf2_locate_v2_dwp_sections): New function.
2312 (open_and_init_dwp_file): Add V2 support.
2313 (read_str_index): New locals str_section, str_offsets_section.
2315 2013-10-04 Pedro Alves <palves@redhat.com>
2317 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2318 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2319 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2320 describing comments with references to ptid.h.
2321 * common/ptid.h: Remove intro description of constructors,
2322 accessors and predicates.
2323 (struct ptid): Reformat.
2324 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2325 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2326 describing comments.
2328 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2330 * aix-thread.c (sync_threadlists): Add missing ')' in call
2333 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2335 * procfs.c (procfs_init_inferior): Fix typo causing the build
2338 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2340 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2342 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2344 * mi/mi-main.c (run_one_inferior): Add function description.
2345 Make ARG a pointer to an integer whose value determines whether
2346 we should "run" or "start" the program.
2347 (mi_cmd_exec_run): Add handling of the "--start" option.
2348 Reject all other command-line options.
2349 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2351 2013-10-04 Yao Qi <yao@codesourcery.com>
2353 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2354 (struct notif_client) <pending_event>: Moved
2355 to struct remote_notif_state.
2357 (struct remote_notif_state) <pending_event>: New field.
2358 (notif_event_xfree): Declare.
2359 * remote-notif.c (handle_notification): Adjust.
2360 (notif_event_xfree): New function.
2361 (do_notif_event_xfree): Call notif_event_xfree.
2362 (remote_notif_state_xfree): Call notif_event_xfree to free
2363 each element in field pending_event.
2364 * remote.c (discard_pending_stop_replies): Remove declaration.
2365 (discard_pending_stop_replies_in_queue): Declare.
2366 (remote_close): Call discard_pending_stop_replies_in_queue
2367 instead of discard_pending_stop_replies.
2368 (remote_start_remote): Adjust.
2369 (stop_reply_xfree): Call notif_event_xfree.
2370 (notif_client_stop): Adjust initialization.
2371 (remote_notif_remove_all): Rename it to ...
2372 (remove_stop_reply_for_inferior): ... this. Update comments.
2373 Don't check INF is NULL.
2374 (discard_pending_stop_replies): Return early if notif_state is
2375 NULL. Adjust. Don't check INF is NULL.
2376 (remote_notif_get_pending_events): Adjust.
2377 (discard_pending_stop_replies_in_queue): New function.
2378 (remote_wait_ns): Likewise.
2380 2013-10-04 Yao Qi <yao@codesourcery.com>
2382 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2383 (notif_queue): Remove.
2384 (remote_notif_process): Add one parameter 'notif_queue'.
2385 Update comments. Callers update.
2386 (remote_async_get_pending_events_token): Remove.
2387 (remote_notif_register_async_event_handler): Remove.
2388 (remote_notif_unregister_async_event_handler): Remove.
2389 (handle_notification): Add parameter 'notif_queue'. Update
2390 comments. Callers update.
2391 (notif_xfree): Remove.
2392 (remote_notif_state_allocate): New function.
2393 (remote_notif_state_xfree): New function.
2394 (_initialize_notif): Remove code to allocate queue.
2395 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2396 (struct remote_notif_state): New.
2397 (handle_notification): Update declaration.
2398 (remote_notif_process): Likewise.
2399 (remote_notif_register_async_event_handler): Remove.
2400 (remote_notif_unregister_async_event_handler): Remove.
2401 (remote_notif_state_allocate): Declare.
2402 (remote_notif_state_xfree): Declare.
2403 * remote.c (struct remote_state) <notif_state>: New field.
2404 (remote_close): Don't call
2405 remote_notif_unregister_async_event_handler. Call
2406 remote_notif_state_xfree.
2407 (remote_open_1): Don't call
2408 remote_notif_register_async_event_handler. Call
2409 remote_notif_state_allocate.
2411 2013-10-04 Yao Qi <yao@codesourcery.com>
2413 * varobj.c (create_child_with_value): Remove 'const' from the
2414 type of parameter 'name'.
2415 (varobj_add_child): Likewise.
2416 (install_dynamic_child): Remove 'const' from the type of
2418 (varobj_add_child): Likewise.
2419 (create_child_with_value): Likewise. Update comments. Don't
2421 (update_dynamic_varobj_children): Duplicate 'name'
2422 and pass it to install_dynamic_child.
2424 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2426 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2427 conversion logic to occur after PyLong_Check. Comment on order
2428 change significance.
2429 * python/py-arch.c (archpy_disassemble): Comment on order of
2430 conversion for integers and longs.
2432 2013-10-03 Pedro Alves <palves@redhat.com>
2434 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2435 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2436 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2437 PTRACE_O_TRACEFORK is not supported.
2438 (linux_test_for_tracesysgood): New function.
2439 (linux_test_for_tracefork): New function, factored out from
2440 linux_check_ptrace_features, and also don't kill child_pid here.
2442 2013-10-03 Tristan Gingold <gingold@adacore.com>
2444 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2445 Remove verbose error reporting. Use detected state to
2446 thread_set_state call.
2447 (i386_darwin_dr_get): Fix return type. Remove verbose error
2449 Remove trailing spaces.
2451 2013-10-02 Pedro Alves <palves@redhat.com>
2453 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2454 val_print_optimized_out.
2455 * jv-valprint.c (java_print_value_fields): Likewise.
2456 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2457 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2458 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2459 new optimized out value.
2460 * findvar.c (address_from_register): Likewise.
2461 * frame.c (put_frame_register): Tweak error string to say the
2462 register was not saved, rather than optimized out.
2463 * infcmd.c (default_print_one_register_info): Adjust call to
2464 val_print_optimized_out. Use value_of_register instead of
2465 get_frame_register_value.
2466 * mi/mi-main.c (output_register): Use value_of_register instead of
2467 get_frame_register_value.
2468 * valprint.c (valprint_check_validity): Likewise.
2469 (val_print_optimized_out): New value parameter. If the value is
2470 lval_register, print <not saved> instead.
2471 (value_check_printable, val_print_scalar_formatted): Adjust calls
2472 to val_print_optimized_out.
2473 * valprint.h (val_print_optimized_out): New value parameter.
2474 * value.c (struct value) <optimized_out>: Extend comment.
2475 (error_value_optimized_out): New function.
2476 (require_not_optimized_out): Use it. Use a different string for
2477 lval_register values.
2478 * value.h (error_value_optimized_out): New declaration.
2479 * NEWS: Mention <not saved>.
2481 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2483 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2484 strcmp to compare two symtab filenames.
2486 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2488 * symtab.c (search_symbols_equal): Delete.
2489 (sort_search_symbols_remove_dups): Replace call to
2490 search_symbols_equal by call to compare_search_syms,
2491 adjusting as necessary.
2493 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2496 * python/python.c: Document gdb.execute command in Python help.
2498 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2500 * python/py-frame.c (frame_info_to_frame_object): Use
2501 gdbpy_convert_exception. Clean up Python object on failure.
2503 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2505 * python/lib/gdb/command/frame_filters.py
2506 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2507 (ShowFrameFilterPriority.invoke): Ditto.
2509 2013-10-01 Keith Seitz <keiths@redhat.com>
2511 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2512 (parse_linespec): Make 'argptr' const.
2513 Remove temporary cast of 'argptr' to const char **.
2514 (decode_line_full): Pass const pointer to parse_linespec.
2515 (decode_line_1): Likewise.
2516 (decode_objc): Make local variable 'new_argptr' const.
2517 (find_function_symbols): Remove temporary cast to char *
2519 * objc-lang.c (find_imps): Make argument 'method' const.
2521 * objc-lang.h (find_imps): Likewise.
2523 2013-10-01 Keith Seitz <keiths@redhat.com>
2525 * completer.c (skip_quoted_chars): Make all arguments const.
2527 (skip_quoted): Likewise.
2528 * completer.h (skip_quoted_chars): Likewise.
2529 (skip_quoted): Likewise.
2530 * defs.h (skip_quoted): Remove duplicate declaration.
2531 * jv-exp.y: Include completer.h.
2532 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2533 * p-exp.y: Include completer.h.
2535 2013-10-01 Keith Seitz <keiths@redhat.com>
2537 * c-exp.y (parse_number): Make first argument const.
2538 Make a copy of the input to manipulate.
2539 (c_parse_escape): Make first argument const.
2540 Make local variable 'tokptr' const.
2541 (parse_string_or_char): Make first two arguments const.
2542 (macro_original_text): Make const.
2543 (lex_one_token): Make local variable 'tokstart' const.
2544 Likewise for local variables named 'p'.
2545 Cast away const for struct stoken (temporary).
2546 * c-lang.h (c_parse_escpae): Make first argument const.
2547 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2549 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2551 * f-exp.y (parse_number): Make first argument const.
2552 (match_string_literal): Make local variable 'tokstart'
2554 (yylex): Make local variable 'p' const.
2555 Cast away const for struct stoken (temporary).
2556 * go-exp.y (parse_number): Make first argument const.
2557 (parse_string_or_char): Likewise.
2558 Make local variable 'tokstart' const.
2559 (lex_one_token): Likewise for numerous locals called 'p'.
2560 Cast away const for struct stoken (temporary).
2561 * jv-exp.y (parse_number): Make first argument const.
2562 Make local variables 'tokstart' and 'tokptr' const.
2563 Cast away const for call to skip_quoted (temporary).
2564 (yylex): Make local variable 'p' const.
2565 Cast away const for struct stoken (temporary).
2566 * m2-exp.y (parse_number): Make local variable 'p' const.
2567 (yylex): Likewise for 'tokstart'.
2568 Cast away const for struct stoken (temporary).
2569 Make local variable 'p' const.
2570 * macroexp.c (get_character_constant): Pass a const string
2572 (get_string_literal): Likewise.
2573 (macro_expand_next): Make first argument const.
2574 Cast away const for init_shared_buffer.
2575 * macroexp.h (macro_expand_next): Make first argument const.
2576 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2577 Pass a const string to c_parse_escape.
2578 Make local variables 'p' and 'namestart' const.
2579 * parse.c (lexptr): Make const.
2580 (prev_lexptr): Likewise.
2581 (find_template_name_end): Return const.
2582 Make argument const, too.
2583 (parse_exp_in_context): Make first argument const.
2584 Remove the entire const_hack.
2585 (parse_exp_in_context_1): Make first argument const.
2586 * parser-defs.h (find_template_name_end): Return const.
2587 Make argument const, too.
2588 (lexptr): Make const.
2589 (prev_lexptr): Likewise.
2590 * utils.c (parse_escape): Make second argument const.
2591 * utils.h (parse_escape): Likewise.
2593 2013-10-01 Keith Seitz <keiths@redhat.com>
2595 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2597 (block_lookup): Make 'raw_name' and 'name' const.
2598 * ada-lex.l (processString): Update for struct stoken.ptr.
2599 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2600 (operator_stoken): Likewise.
2601 (lex_one_token): Remove temporary cast to char * for
2603 * f-exp.y (yylex): Likewise.
2604 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2605 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2606 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2608 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2609 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2610 * linespec.c (struct ls_parser): Make 'stream' const.
2611 (find_parameter_list_end): Make argument 'input' and local
2613 (linespec_lexer_lex_string): Make local variables 'start' and
2615 Use skip_spaces_const instead of skip_spaces.
2616 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2618 (parse_linespec): Temporarily cast 'argptr' to const for
2619 'parser->lexer.stream'.
2620 * m2-exp.y (yylex): Remove temporary cast to char * for
2622 * objc-lang.c (add_msglist): Make local variable 'p' const.
2623 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2624 (exp : STRING): Make 'sp' const.
2625 (parse_number): Make argument 'p' const.
2626 * parser-defs.h (struct stoken): Make 'ptr' const.
2628 2013-10-01 Doug Evans <dje@google.com>
2630 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2632 2013-10-01 Yao Qi <yao@codesourcery.com>
2634 * varobj.c (c_value_of_root): Remove declaration.
2635 (cplus_value_of_root, java_value_of_root): Likewise.
2636 (ada_value_of_root): Likewise.
2637 (struct language_specific) <value_of_root>: Remove.
2638 (languages): Update initialization.
2639 (check_scope): Move earlier.
2640 (c_value_of_root): Move earlier and rename to ...
2641 (value_of_root_1): ... this.
2642 (value_of_root): Caller update.
2643 (cplus_value_of_root, java_value_of_root): Remove.
2644 (ada_value_of_root): Remove.
2646 2013-10-01 Yao Qi <yao@codesourcery.com>
2648 * varobj.c (varobj_format_string): Remove "unknown".
2649 (languages): Remove the first element.
2650 * varobj.h (enum varobj_languages): Remove vlang_c.
2652 2013-10-01 Yao Qi <yao@codesourcery.com>
2654 * varobj.c (struct language_specific) <language>: Remove.
2655 (languages): Update the initialization.
2657 2013-10-01 Yao Qi <yao@codesourcery.com>
2659 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2660 "solib-target.h". Include "windows-tdep.h".
2661 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2662 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2663 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2664 windows-tdep.o to gdb_target_obs.
2666 2013-10-01 Yao Qi <yao@codesourcery.com>
2668 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2670 (amd64_windows_init_abi): Don't call set_solib_ops and
2671 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2672 windows_init_abi instead.
2673 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2675 (i386_cygwin_init_abi): Don't call set_solib_ops,
2676 set_gdbarch_has_dos_based_file_system and
2677 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2678 windows_init_abi instead.
2679 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2680 (windows_init_abi): New function.
2681 (windows_iterate_over_objfiles_in_search_order): Make it
2683 * windows-tdep.h (windows_init_abi): Declare.
2684 (windows_iterate_over_objfiles_in_search_order): Remove
2687 2013-10-01 Jerome Guitton <guitton@adacore.com>
2689 Checked in by Joel Brobecker <brobecker@adacore.com>
2690 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2691 incomplete dictionnary instead of None in case of missing
2692 environment variables.
2693 (elinos_init): in case of an incomplete environment, best
2694 effort to load system libraries instead of abort.
2696 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2698 * ada-lang.c (ada_has_this_exception_support): Ignore
2699 mst_solib_trampoline minimal symbols.
2701 2013-09-30 Tristan Gingold <gingold@adacore.com>
2703 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2704 hardware watchpoint.
2705 (i386_darwin_dr_set): Support 32 and 64 bit states.
2706 (i386_darwin_dr_get): Likewise.
2707 (i386_darwin_dr_set_control): Make static.
2708 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2709 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2711 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2713 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2714 Replace TIDGET with ptid_get_lwp.
2715 Replace GET_LWP with ptid_get_lwp.
2716 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2717 Replace BUILD_THREAD with ptid_build.
2718 Replace BUILD_LWP with ptid_build.
2719 Replace PIDGET with ptid_get_pid.
2720 Replace TIDGET with ptid_get_lwp.
2721 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2722 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2723 Replace TIDGET with ptid_get_lwp.
2724 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2725 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2726 Replace TIDGET with ptid_get_lwp.
2727 Replace GET_LWP with ptid_get_lwp.
2728 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2730 * breakpoint.c: Likewise.
2731 * common/ptid.c (ptid_is_pid): Condense check for
2732 null_ptid and minus_one_ptid.
2733 (ptid_lwp_p): New function.
2734 (ptid_tid_p): New function.
2735 * common/ptid.h: Update comments for accessors.
2736 (ptid_lwp_p): New prototype.
2737 (ptid_tid_p): New prototype.
2738 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2739 * gcore.c: Replace PIDGET with ptid_get_pid.
2740 * gdbthread.h: Likewise.
2741 * gnu-nat.c: Likewise.
2742 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2743 Replace TIDGET with ptid_get_lwp.
2744 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2745 * hppanbsd-nat.c: Likewise.
2746 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2747 Replace TIDGET with ptid_get_lwp.
2748 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2749 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2750 * infcmd.c: Likewise.
2751 * inferior.h: Likewise.
2752 * inflow.c: Likewise.
2753 * infrun.c: Likewise.
2754 * linux-fork.c: Likewise.
2755 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2756 Replace GET_PID with ptid_get_pid.
2757 Replace is_lwp with ptid_lwp_p.
2758 Replace GET_LWP with ptid_get_lwp.
2759 Replace BUILD_LWP with ptid_build.
2761 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2763 * common/linux-btrace.c: Move sys/syscall.h out of the
2764 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2765 Also check for SYS_perf_event_open before attempting to buid.
2767 2013-09-27 Doug Evans <dje@google.com>
2769 * dwarf2read.c (dwarf2_section_info): Add comment.
2770 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2772 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2773 (dwarf2_read_section): Delete unused local "header". Add section
2774 name to error message.
2775 (create_dwo_in_dwp): Tweak comment.
2776 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2778 * dwarf2read.c (die_reader_specs): Tweak comment.
2779 (get_section_bfd_owner, get_section_bfd_section): New functions.
2780 (get_section_name, get_section_file_name): New functions.
2781 (get_section_id, get_section_flags): New functions.
2782 (*): Use new functions to access section fields.
2784 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2785 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2786 arg "htab". All callers updated.
2787 (create_debug_types_hash_table): Remove redundant copy of
2789 (create_dwo_in_dwp): Tweak comments.
2790 (read_str_index): Tweak comment. Record dwarf form name in static
2793 2013-09-27 Pedro Alves <palves@redhat.com>
2795 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2796 (remote_filename_p): Add comment.
2797 * remote.c (remote_filename_p): Adjust to use
2798 REMOTE_SYSROOT_PREFIX.
2799 * solib.c (solib_find): When deciding whether we need to add a
2800 directory separator, check whether the sysroot is "remote:"
2801 instead of checking whether the patch has a drive spec. Add
2804 2013-09-27 Pedro Alves <palves@redhat.com>
2806 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2808 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2811 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 Fix set debug frame output.
2814 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2815 SENTINEL_FRAME entry lower to match enum frame_type order.
2817 2013-09-26 Pierre Muller <muller@sourceware.org>
2819 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2820 AMD64_R15_REGNUM when a register index is expected.
2821 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2822 Substitute in array.
2823 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2824 (amd64_push_arguments): Substitute in integer_regnum array.
2826 2013-09-25 Doug Evans <dje@google.com>
2828 * objfiles.c (allocate_objfile): Move comment to better place.
2830 New option "set debug symfile on".
2831 * NEWS: Mention "set debug symfile".
2832 * Makefile.in (SFILES): Add symfile-debug.c.
2833 (COMMON_OBS): Add symfile-debug.o.
2834 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2835 objfile's symbol functions.
2836 * objfiles.h (objfile_set_sym_fns): Declare.
2837 * symfile-debug.c: New file.
2838 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2839 objfile's symbol functions.
2840 (reread_symbols): Ditto.
2842 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2844 (add_symtab_fns): Update prototype.
2845 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2846 (registered_sym_fns): ... this.
2847 (symtab_fns): Update.
2848 (add_symtab_fns): New arg "flavour". All callers updated.
2849 (find_sym_fns): Rewrite to use new sym_fns registry.
2851 * symfile.h (struct sym_fns): Add "objfile" argument to
2852 sym_read_linetable. All uses updated.
2854 * symtab.c (domain_name, search_domain_name): New functions.
2855 * symtab.h (domain_name, search_domain_name): Declare.
2857 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2858 map_matching_symbols so objfile is first. All uses updated.
2859 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2860 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2862 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2868 2013-09-24 Doug Evans <dje@google.com>
2870 * objfiles.c (free_objfile): Move comment.
2872 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2874 * ada-exp.y (string_to_operator): Delete.
2875 (dummy_string_to_ada_operator): Delete.
2877 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2880 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2882 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2883 call_dummy_integer_regs, and classify.
2884 * amd64-tdep.h (amd64_classify): Add declaration.
2885 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2886 (amd64_reg_class): Delete, moved to i386-tdep.h.
2887 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2888 Replace call to amd64_classify by call to tdep->classify.
2889 (amd64_push_arguments): Get the list of registers to use for
2890 passing integer parameters from the gdbarch tdep structure,
2891 rather than using a hardcoded one. Replace calls to amd64_classify
2892 by calls to tdep->classify.
2893 (amd64_push_dummy_call): Get the register number used for
2894 the "hidden" argument from tdep->call_dummy_integer_regs.
2895 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2896 and tdep->call_dummy_integer_regs. Set tdep->classify.
2898 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2901 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2902 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2903 where tdep->memory_args_by_pointer is non-zero.
2905 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2908 * i386-tdep.h (struct gdbarch_tdep): Add new field
2909 integer_param_regs_saved_in_caller_frame.
2910 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2911 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2913 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2915 * amd64-windows-tdep.c: #include "value.h"
2916 (amd64_windows_classify): Delete.
2917 (amd64_windows_passed_by_integer_register)
2918 (amd64_windows_passed_by_xmm_register)
2919 (amd64_windows_passed_by_pointer)
2920 (amd64_windows_adjust_args_passed_by_pointer)
2921 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2922 (amd64_windows_push_dummy_call): New functions.
2923 (amd64_windows_init_abi): Remove setting of
2924 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2925 tdep->classify, tdep->memory_args_by_pointer and
2926 tdep->integer_param_regs_saved_in_caller_frame.
2927 Add call to set_gdbarch_push_dummy_call.
2929 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2931 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2932 objfile->original_name.
2934 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Pass down original filename for objfile.
2937 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2938 * elfread.c (elf_symfile_read): Likewise.
2939 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2940 longer set ORIGINAL_NAME.
2941 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2942 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2943 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2944 symbol_file_add_from_bfd call.
2945 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2946 (macho_check_dsym): Add parameter filenamep. Change function comment.
2948 (macho_symfile_read): New variable dsym_filename. Update
2949 macho_check_dsym call. Use it for symbol_file_add_separate.
2950 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2951 it. Use it for objfile->original_name.
2952 (objfile_name): Return OBFD's filename, if available.
2953 * objfiles.h (allocate_objfile): Add new parameter name.
2954 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2955 * symfile-mem.c (symbol_file_add_from_memory): Update
2956 symbol_file_add_from_bfd call.
2957 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2959 (symbol_file_add_with_addrs): New parameter name, add function comment
2960 for it. Remove variable name. Update allocate_objfile call.
2961 (symbol_file_add_separate): New parameter name, add function comment
2962 for it. Update symbol_file_add_with_addrs call.
2963 (symbol_file_add_from_bfd): New parameter name. Update
2964 symbol_file_add_with_addrs call.
2965 (symbol_file_add): Update symbol_file_add_from_bfd call.
2966 (reread_symbols): New variable original_name. Save
2967 objfile->original_name by it.
2968 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2971 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2973 Code cleanup: Add objfile_name accessor function.
2974 * ada-lang.c (is_known_support_routine): Use objfile_name.
2975 * auto-load.c (source_gdb_script_for_objfile)
2976 (auto_load_objfile_script): Likewise.
2977 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2978 * dbxread.c (dbx_symfile_read): Likewise.
2979 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2980 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2981 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2982 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2983 (lookup_dwp_signatured_type, lookup_dwo_unit)
2984 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2985 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2986 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2987 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2988 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2989 (read_subrange_type, load_partial_dies, read_partial_die)
2990 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2991 (die_containing_type, build_error_marker_type, lookup_die_type)
2992 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2993 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2994 (get_DW_AT_signature_type, write_psymtabs_to_index)
2995 (save_gdb_index_command): Likewise.
2996 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2998 * expprint.c (dump_subexp_body_standard): Likewise.
2999 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3000 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3002 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3003 obj_name, use objfile_name for it, use the variable.
3004 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3006 * machoread.c (macho_symtab_read, macho_check_dsym)
3007 (macho_symfile_relocate): Likewise.
3008 * maint.c (maintenance_translate_address): Likewise.
3009 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3010 * minsyms.c (install_minimal_symbols): Likewise.
3011 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3013 (filter_overlapping_sections): Use objfile_name.
3014 (objfile_name): New function.
3015 * objfiles.h (struct objfile): Rename field name to original_name.
3016 (objfile_name): New prototype.
3017 * printcmd.c (sym_info, address_info): Use objfile_name.
3018 * probe.c (parse_probes, collect_probes, compare_probes)
3019 (info_probes_for_ops): Likewise.
3020 * progspace.c (clone_program_space): Likewise.
3021 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3022 (maintenance_info_psymtabs): Likewise.
3023 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3024 (source_section_scripts): Likewise.
3025 * python/py-objfile.c (objfpy_get_filename): Likewise.
3026 * python/py-progspace.c (pspy_get_filename): Likewise.
3027 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3028 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3029 * solib.c (solib_read_symbols): Likewise.
3030 * stabsread.c (scan_file_globals): Likewise.
3031 * stap-probe.c (handle_stap_probe): Likewise.
3032 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3033 (find_separate_debug_file_by_debuglink): Likewise.
3034 (reread_symbols): Likewise. Use the objfile field name renamed to
3036 (allocate_symtab): Use objfile_name.
3037 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3038 (dump_objfile, dump_msymbols, dump_symtab_1)
3039 (maintenance_print_msymbols, maintenance_print_objfiles)
3040 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3041 * target.c (target_translate_tls_address, target_info): Likewise.
3042 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3045 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3048 * probe.c (parse_probes): Rename variable objfile_name to
3051 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3053 Remove solib-sunos.c.
3054 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3055 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3056 * objfiles.c (rt_common_objfile): Remove.
3057 (free_objfile): Remove rt_common_objfile comparison.
3058 * objfiles.h (rt_common_objfile): Remove.
3059 * solib-sunos.c: Remove.
3060 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3062 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3064 Remove a.out NetBSD and OpenBSD hosts.
3065 * NEWS (Removed native configurations): New.
3066 * config/arm/nbsdaout.mh: Remove.
3067 * config/i386/nbsdaout.mh: Remove.
3068 * config/i386/obsdaout.mh: Remove.
3069 * config/m68k/nbsdaout.mh: Remove.
3070 * config/sparc/nbsdaout.mh: Remove.
3071 * config/vax/nbsdaout.mh: Remove.
3072 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3073 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3074 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3076 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3077 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3078 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3080 2013-09-23 Tom Tromey <tromey@redhat.com>
3082 * linespec.c (struct minsym_and_objfile): Remove.
3083 (minsym_and_objfile_d): Remove.
3084 (struct linespec, struct collect_info, linespec_parse_basic)
3085 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3086 (compare_msymbols, find_method, find_function_symbols)
3087 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3088 (add_minsym, search_minsyms_for_name): Update.
3090 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3092 * regcache.c: Add include of valprint.h.
3093 (dump_endian_bytes): Delete.
3094 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3096 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3098 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3100 2013-09-19 Pedro Alves <palves@redhat.com>
3102 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3105 2013-09-19 Pedro Alves <palves@redhat.com>
3106 Thomas Schwinge <thomas@codesourcery.com>
3107 Yue Lu <hacklu.newborn@gmail.com>
3109 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3110 Take a gdb_byte pointer instead of a char pointer.
3112 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3113 gnu_xfer_partial helper.
3114 (gnu_xfer_partial): New function.
3115 (gnu_target): Don't install a deprecated_xfer_memory hook.
3116 Install a to_xfer_partial hook.
3118 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3121 * main.c (captured_main): Replace catch_command_errors by
3122 catch_command_errors_const. Twice.
3123 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3124 (symbol_file_add): Make name parameter const.
3125 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3126 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3127 variable name. Change their usage accordingly.
3128 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3130 (symbol_file_add_main): Make args parameter const.
3132 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3133 Ulrich Weigand <uweigand@de.ibm.com>
3135 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3137 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3139 2013-09-18 Pedro Alves <palves@redhat.com>
3140 Yue Lu <hacklu.newborn@gmail.com>
3142 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3143 (gnu_create_inferior)
3144 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3145 (set_sig_thread_cmd): Use the lwpid field of ptids to
3146 store/extract thread ids instead of the tid field.
3147 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3149 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3151 * infcmd.c (default_print_one_register_info): Add detection of
3152 optimized out values.
3153 (default_print_registers_info): Switch to using
3154 get_frame_register_value.
3156 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3158 * infrun.c (handle_inferior_event): Check if we know the
3159 function start address before setting a resume breakpoint.
3161 2013-09-18 Pedro Alves <palves@redhat.com>
3163 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3164 minus_one_ptid instead of looking at the ptid's tid field and
3165 comparing that to -1.
3167 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3169 * main.h (get_gdb_program_name): Remove extra whitespace.
3171 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3173 * main.h (get_gdb_program_name): Add declaration.
3174 * main.c (get_gdb_program_name): Add definition.
3176 2013-09-17 Doug Evans <dje@google.com>
3178 * dwarf2read.c: Move definitions of complaint functions to after
3179 forward declarations of local functions.
3181 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3182 Pedro Alves <palves@redhat.com>
3185 * breakpoint.c (remove_threaded_breakpoints): New function.
3186 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3187 as thread_exit observer.
3189 2013-09-17 Pedro Alves <palves@redhat.com>
3192 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3193 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3194 * corelow.c (core_open):
3195 * frame.h (print_stack_frame, print_frame_info): New
3196 'set_current_sal' parameter.
3197 * infcmd.c (finish_command, kill_command): Adjust call to
3199 * inferior.c (inferior_command): Likewise.
3200 * infrun.c (normal_stop): Likewise.
3201 * linux-fork.c (linux_fork_context): Likewise.
3202 * record-full.c (record_full_goto_entry, record_full_restore):
3204 * remote-mips.c (common_open): Likewise.
3205 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3207 (print_frame_info): New 'set_current_sal' parameter. Set the last
3208 displayed sal depending on the new paremeter instead of looking at
3210 (backtrace_command_1, select_and_print_frame, frame_command)
3211 (current_frame_command, up_command, down_command): Adjust call to
3213 * thread.c (print_thread_info, restore_selected_frame)
3214 (do_captured_thread_select): Adjust call to print_stack_frame.
3215 * tracepoint.c (tfind_1): Likewise.
3216 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3217 (mi_cmd_stack_info_frame): Likewise.
3218 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3219 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3221 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3223 * value.c (isvoid_internal_fn): Replace "parameter" with
3226 2013-09-16 Stan Shebs <stan@codesourcery.com>
3228 * README: Update references to writing code for GDB.
3229 * configure.ac (build_warnings): Remove obsolete comment.
3230 * configure: Regenerate.
3231 * gdbarch.sh: Remove references to gdbint.texinfo.
3232 * gdbarch.h: Regenerate.
3233 * gdbtypes.c (objfile_type): Remove comments referencing internals
3236 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3238 * NEWS: Mention new convenience function $_isvoid.
3239 * value.c (isvoid_internal_fn): New function.
3240 (_initialize_values): Add new convenience function $_isvoid.
3242 2013-09-16 Pierre Muller <muller@sourceware.org>
3244 * arm-linux-tdep.c: Add "elf/common.h" header.
3245 Remove AT_HWCAP macro definintion as it is provided in
3247 * s390-tdep.c: Remove system header <elf.h>
3248 Add "elf/common.h" header for AT_HWCAP definition.
3249 (s390_core_read_description): Use correct CORE_ADDR
3250 for hwcap local variable used as third parameter
3251 of function target_auxv_search.
3253 2013-09-14 Pierre Muller <muller@sourceware.org>
3254 Tom Tromey <tromey@redhat.com>
3255 Pedro Alves <palves@redhat.com>
3257 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3258 mode if operating system doesn't know O_CLOEXEC.
3260 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3266 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3268 * NEWS: Mention TDB support.
3269 * features/s390-tdb.xml: New file.
3270 * features/s390-te-linux64.xml: New file.
3271 * features/s390x-te-linux64.xml: New file.
3272 * features/Makefile (WHICH): Add new tdescs above.
3273 (s390-te-linux64-expedite): Set.
3274 (s390x-te-linux64-expedite): Set.
3275 * features/s390-te-linux64.c: New file (generated).
3276 * features/s390x-te-linux64.c: New file (generated).
3277 * regformats/s390-te-linux64.dat: New file (generated).
3278 * regformats/s390x-te-linux64.dat: New file (generated).
3279 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3280 (HWCAP_S390_TE): Likewise.
3281 (S390_TDB_DWORD0_REGNUM): Likewise.
3282 (S390_TDB_DWORD0_REGNUM): Likewise.
3283 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3284 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3285 (S390_TDB_ATIA_REGNUM): Likewise.
3286 (S390_TDB_R0_REGNUM): Likewise.
3287 (S390_TDB_R1_REGNUM): Likewise.
3288 (S390_TDB_R2_REGNUM): Likewise.
3289 (S390_TDB_R3_REGNUM): Likewise.
3290 (S390_TDB_R4_REGNUM): Likewise.
3291 (S390_TDB_R5_REGNUM): Likewise.
3292 (S390_TDB_R6_REGNUM): Likewise.
3293 (S390_TDB_R7_REGNUM): Likewise.
3294 (S390_TDB_R8_REGNUM): Likewise.
3295 (S390_TDB_R9_REGNUM): Likewise.
3296 (S390_TDB_R10_REGNUM): Likewise.
3297 (S390_TDB_R11_REGNUM): Likewise.
3298 (S390_TDB_R12_REGNUM): Likewise.
3299 (S390_TDB_R13_REGNUM): Likewise.
3300 (S390_TDB_R14_REGNUM): Likewise.
3301 (S390_TDB_R15_REGNUM): Likewise.
3302 (S390_NUM_REGS): Increase.
3303 (S390_IS_TDBREGSET_REGNUM): New macro.
3304 (s390_regmap_tdb): Declare.
3305 (s390_sizeof_tdbregset): Define.
3306 (tdesc_s390_te_linux64): Declare.
3307 (tdesc_s390x_te_linux64): Likewise.
3308 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3309 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3310 (s390_regmap_tdb): New regmap.
3311 (s390_supply_tdb_regset): New function.
3312 (s390_tdb_regset): New regset.
3313 (s390_linux64v2_regset_sections): Add TDB regset to list.
3314 (s390x_linux64v2_regset_sections): Likewise.
3315 (s390_regset_from_core_section): Recognize TDB core note section.
3316 (s390_core_read_description): If HWCAP indicates TE support,
3317 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3318 (s390_gdbarch_init): Handle TDB regset.
3319 (_initialize_s390_tdep): Initialize new tdescs.
3320 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3321 (have_regset_tdb): New variable.
3322 (s390_native_supply): Support register invalidation.
3323 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3324 (check_regset): Treat ENODATA as "regset exists".
3325 (s390_linux_fetch_inferior_registers): Add TDB.
3326 (s390_read_description): Check for TDB existence and select
3328 * gdbserver/Makefile.in (clean): Add removal of new makefile
3330 (s390-te-linux64.c): New makefile target.
3331 (s390x-te-linux64.c): Likewise.
3332 * gdbserver/configure.srv (srv_regobj): Append new objects
3333 s390-te-linux64.o and s390x-te-linux64.o.
3334 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3335 s390x-te-linux64.xml, and s390-tdb.xml.
3336 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3338 (tdesc_s390_te_linux64): Likewise.
3339 (init_registers_s390x_te_linux64): Likewise.
3340 (tdesc_s390x_te_linux64): Likewise.
3341 (s390_check_regset): Treat ENODATA as "regset exists".
3342 (s390_arch_setup): Add TDB regset support.
3343 (initialize_low_arch): Initialize registers for new tdescs.
3345 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3347 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3348 (S390_IS_FPREGSET_REGNUM): New macro.
3349 * s390-tdep.c (s390_dwarf_regmap): Make const.
3350 (regnum_is_gpr_full): New function for replacing repeated code.
3351 (s390_pseudo_register_name): Use it.
3352 (s390_pseudo_register_type): Likewise.
3353 (s390_pseudo_register_read): Likewise.
3354 (s390_pseudo_register_write): Likewise.
3355 (s390_unwind_pseudo_register): Likewise.
3356 (s390_regmap_gregset): New format for regmap.
3357 (s390x_regmap_gregset): Likewise.
3358 (s390_regmap_fpregset): Likewise.
3359 (s390_regmap_upper): Likewise.
3360 (s390_regmap_last_break): Likewise.
3361 (s390_regmap_system_call): Likewise.
3362 (s390_supply_regset): Adjust to new regmap format.
3363 (s390_collect_regset): Likewise.
3364 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3365 (s390_native_collect): Likewise.
3366 (supply_gregset): Likewise.
3367 (fill_gregset): Likewise.
3368 (supply_fpregset): Likewise.
3369 (fill_fpregset): Likewise.
3370 (fetch_regset): Likewise.
3371 (store_regset): Likewise.
3372 (s390_linux_fetch_inferior_registers): Likewise.
3373 (s390_linux_fetch_inferior_registers): Likewise.
3375 2013-09-12 Andrew Pinski <apinski@cavium.com>
3377 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3379 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3381 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3383 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3385 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3387 2013-09-06 Pedro Alves <palves@redhat.com>
3389 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3390 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3391 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3392 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3393 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3396 2013-09-06 Pedro Alves <palves@redhat.com>
3398 * remote-sim.c (dump_mem): Constify buf parameter.
3399 gdbsim_xfer_inferior_memory): Rename to ...
3400 (gdbsim_xfer_memory): ... this. Adjust interface as
3401 target_xfer_partial helper.
3402 (gdbsim_xfer_partial): New function.
3403 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3404 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3406 2013-09-06 Pedro Alves <palves@redhat.com>
3408 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3409 host_address_to_string, and send debug output to gdb_stdlog.
3411 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3413 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3414 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3415 gdb_target_obs for cris target.
3416 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3417 (cris_gdbarch_init): Move calls to
3418 set_gdbarch_fetch_tls_load_module_address and
3419 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3420 Add call to gdbarch_init_osabi.
3421 * cris-linux-tdep.c: New file.
3422 * cris-tdep.h: New file.
3424 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3426 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3427 to deprecated_init_ui_hook.
3429 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3431 * cli/cli-interp.c (_initialize_cli_interp): Add a
3432 command_loop_proc to interp_procs.
3433 * event-top.c (cli_command_loop): Change signature to match
3434 interp_command_loop_ftype.
3435 * event-top.h (cli_command_loop): Same.
3436 * interps.c (interp_new): Require every interpreter to have a
3438 (current_interp_command_loop): Just call the command_loop_proc on
3439 the current interpreter.
3440 * tui/tui-interp.c (_initialize_tui_interp): Add a
3441 command_loop_proc to interp_procs.
3443 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3445 * cris-tdep.c (cris_gdbarch_init): Add call to
3446 get_gdbarch_fetch_tls_load_module_address.
3448 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3450 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3451 (cris_elf_gregset_t): Rename from elf_gregset_t.
3452 (crisv32_elf_gregset_t): Adjust.
3453 (cris_supply_gregset, fetch_core_registers): Adjust.
3455 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3457 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3459 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3461 * defs.h (deprecated_command_loop_hook): Remove, including
3462 references in comments.
3463 * interps.c (current_interp_command_loop): No longer use
3464 deprecated_command_loop_hook.
3465 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3467 * top.c (deprecated_command_loop_hook): Remove.
3469 2013-09-05 Pedro Alves <palves@redhat.com>
3471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3472 local is now int instead of ULONGEST. Print it with %d
3473 instead of paddress.
3475 2013-09-05 Tristan Gingold <gingold@adacore.com>
3477 * MAINTAINERS: Remove avr maintainership.
3479 2013-09-05 Pedro Alves <palves@redhat.com>
3481 * findvar.c (value_of_register): Rework in terms of
3482 value_of_register_lazy.
3484 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3486 * symfile.c (add_symbol_file_command): Remove trailing
3487 whitespaces and blank line after comment.
3489 2013-09-05 Pedro Alves <palves@redhat.com>
3491 * tui/tui-regs.c (tui_register_format): Don't look at the
3492 register's name here. Return string representing register
3493 value instead of storing it in the data element.
3494 (tui_get_register): Compare register string representations
3495 instead of register value states and contents.
3497 2013-09-05 Pedro Alves <palves@redhat.com>
3500 * tui/tui-regs.c (tui_show_registers): Show registers of the
3501 selected frame, not the current frame.
3503 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3505 * MAINTAINERS (Write After Approval): Add myself to the list.
3507 2013-09-04 Doug Evans <dje@google.com>
3509 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3510 (queue_and_load_dwo_tu): New function.
3511 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3512 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3513 Make dependent_cu optional.
3514 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3515 and an older .gdb_index is in use, queue and load all its TUs too.
3517 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3519 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3520 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3521 variable search_flags.
3522 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3523 (OPF_RETURN_REALPATH): ... here.
3524 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3525 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3527 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3529 * solib.c (solib_find): Likewise. Four times.
3530 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3531 in the function comment and for the realpath_fptr variable.
3532 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3533 (find_and_open_source): Likewise. Twice.
3534 * symfile.c (symfile_bfd_open): Likewise, also twice.
3536 2013-09-04 Doug Evans <dje@google.com>
3538 * progspace.c (save_current_space_and_thread): Remove unnecessary
3539 call to save_current_inferior.
3541 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3543 * sh64-tdep.c (sh64_do_register): Return after printing message
3544 about unavailable register contents.
3546 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3547 Pedro Alves <palves@redhat.com>
3549 * symfile.c (add_symbol_file_command): Error out on unknown
3550 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3551 options and collapse into single conditional branch.
3553 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3555 * inf-child.c (inf_child_follow_fork): New parameter
3557 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3558 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3559 * inferior.h (detach_fork): Remove.
3560 * infrun.c (detach_fork): Adjust comment and make it
3562 (follow_fork): Pass detach_fork parameter to
3564 * linux-nat.c (linux_child_follow_fork): New parameter
3566 * target.c (target_follow_fork): New parameter detach_fork.
3567 Pass detach_fork as parameter and print its value.
3568 * target.h (struct target_ops) <to_follow_fork>: New int
3570 (target_follow_fork): New parameter detach_fork.
3572 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3574 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3575 Replace sec->bfd by sec->the_bfd_section->owner.
3577 2013-09-03 Yao Qi <yao@codesourcery.com>
3579 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3580 from linux_has_shared_address_space.
3581 (linux_has_shared_address_space): Call linux_is_uclinux.
3582 * linux-tdep.h (linux_is_uclinux): Declare.
3583 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3586 2013-09-03 Yao Qi <yao@codesourcery.com>
3588 * config/djgpp/fnchange.lst: Remove entry of
3589 i386-interix-nat.c and i386-interix-tdep.c.
3590 * configure.ac: Remove '*-*-interix*'.
3591 * configure: Re-generated.
3592 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3593 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3595 * osabi.c (gdb_osabi_names): Remove "Interix".
3597 2013-09-03 Yao Qi <yao@codesourcery.com>
3599 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3601 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3603 * record.h (record_print_flag) <record_print_src_line,
3604 record_print_insn_range>: Rename into ...
3605 (record_print_flag) <record_print_src_line,
3606 record_print_insn_range>: ... this. Update all users.
3608 2013-09-02 Pierre Muller <muller@sourceware.org>
3610 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3613 2013-09-02 Pierre Muller <muller@sourceware.org>
3615 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3616 by use of plongest function.
3618 2013-09-02 Tristan Gingold <gingold@adacore.com>
3620 * NEWS: Add entry mentioning support for native Windows x64
3623 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3624 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3625 (struct amd64_windows_frame_cache): New struct.
3626 (amd64_windows_w2gdb_regnum): New global.
3627 (pc_in_range, amd64_windows_frame_decode_epilogue)
3628 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3629 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3630 (amd64_windows_frame_this_id): New functions.
3631 (amd64_windows_frame_unwind): New static global.
3632 (amd64_windows_skip_prologue): New function.
3633 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3634 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3635 with amd64_windows_skip_prologue.
3637 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3641 2013-08-30 Pedro Alves <palves@redhat.com>
3643 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3646 2013-08-30 Pedro Alves <palves@redhat.com>
3648 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3651 2013-08-30 Pedro Alves <palves@redhat.com>
3653 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3654 Adjust arguments to print_stack_frame.
3656 2013-08-30 Pedro Alves <palves@redhat.com>
3658 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3660 2013-08-30 Pedro Alves <palves@redhat.com>
3662 * frame.h (show_and_print_stack_frame): Delete declaration.
3664 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3667 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3668 (archpy_name): Check for valid architecture.
3669 (archpy_disassemble): Ditto.
3671 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3673 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3674 instead of "long long" in call to ptrace64.
3676 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3678 * mi/mi-interp.c (mi_command_loop): Change signature to match
3679 interp_command_loop_ftype.
3680 (mi1_command_loop): Remove.
3681 (mi2_command_loop): Remove.
3682 (mi3_command_loop): Remove.
3683 (mi_interpreter_resume): Remove setting of
3684 deprecated_command_loop_hook.
3685 (_initialize_mi_interp): Set mi_command_loop as the command loop
3688 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3690 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3693 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3695 * value.c (allocate_value_contents): Make static.
3696 * value.h (allocate_value_contents): Remove prototype.
3698 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3700 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3701 of assembling value via allocate_value_lazy and attribute setter.
3702 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3703 assembling value via allocate_value_lazy and attribute setter.
3704 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3705 assembling value via allocate_value_lazy and attribute setter.
3707 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3709 * value.c (value_from_contents_and_address): Replace allocate_value and
3710 memcpy with value_from_contents.
3712 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3714 * python/py-framefilter.c (py_print_frame): Remove usage of
3715 PyString_AsString. Use python_string_to_host_string instead.
3716 Refactor function to work with a string as a new allocation
3717 instead of a pointer.
3718 (py_print_frame): Ditto.
3719 * python/lib/gdb/frames.py (return_list): Cain iterators together
3720 instead of adding them as a list.
3721 (_sort_list): Call return_list, and remove duplicate code.
3722 (execute_frame_filters): Convert iterator to a list with list().
3723 * python/lib/gdb/command/frame_filters.py
3724 (SetFrameFilterPriority._set_filter_priority): Convert priority
3725 attribute to an integer.
3726 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3727 wrapper function __next__.
3728 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3731 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3734 * python/py-framefilter.c (apply_frame_filter): Check
3735 gdb_python_initialized. Exit if the Python frame-filter code
3736 cannot be initialized.
3738 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3741 * top.c (print_gdb_version): Remove erroneous newline after help
3744 2013-08-29 Yao Qi <yao@codesourcery.com>
3746 * varobj.c (install_dynamic_child): Remove trailing space.
3747 Add one blank line after variable declaration.
3749 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3752 * corefile.c (get_exec_file): Use exec_filename.
3753 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3754 * exec.c (exec_close): Free EXEC_FILENAME.
3755 (exec_file_attach): New variable canonical_pathname. Use
3756 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3758 * exec.h (exec_filename): New.
3759 * inferior.c (print_inferior, inferior_command): Use
3760 PSPACE_EXEC_FILENAME.
3761 * mi/mi-main.c (print_one_inferior): Likewise.
3762 * progspace.c (clone_program_space, print_program_space): Likewise.
3763 * progspace.h (struct program_space): New field pspace_exec_filename.
3764 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3765 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3767 2013-08-28 Will Newton <will.newton@linaro.org>
3769 * common/linux-ptrace.c: Include stdint.h unconditionally.
3771 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3774 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3776 2013-08-28 Yao Qi <yao@codesourcery.com>
3777 Pedro Alves <palves@redhat.com>
3779 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3780 instead of stdio_fileopen.
3781 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3782 .Call stderr_fileopen instead of stdio_fileopen.
3783 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3784 [__MINGW32__] (stderr_file_fputs): New function.
3785 (stderr_fileopen): New function.
3786 * ui-file.h (stderr_fileopen): Declare.
3788 2013-08-27 Doug Evans <dje@google.com>
3790 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3791 (struct dwarf2_per_cu_data): Ditto.
3792 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3793 (process_imported_unit_die): Ditto.
3794 (follow_die_sig_1): Simplify assert.
3796 2013-08-27 Pedro Alves <palves@redhat.com>
3798 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3799 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3800 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3801 windows_xfer_memory directly.
3802 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3804 2013-08-27 Pedro Alves <palves@redhat.com>
3806 * darwin-nat.c (darwin_xfer_memory): Delete.
3807 (_initialize_darwin_inferior): Don't install a
3808 deprecated_xfer_memory method.
3810 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3811 Yao Qi <yao@codesourcery.com>
3813 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3814 (parse_no_frames_option): Remove.
3815 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3816 (mi_cmd_stack_list_args): Adjust.
3817 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3818 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3819 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3821 (list_args_or_locals): New parameter 'skip_unavailable'.
3823 * valprint.c (scalar_type_p): Rename to ...
3824 (val_print_scalar_type_p): ... this. Make extern.
3825 (val_print, value_check_printable): Adjust.
3826 * valprint.h (val_print_scalar_type_p): Declare.
3827 * value.c (value_entirely_unavailable): New function.
3828 * value.h (value_entirely_unavailable): Declare.
3830 * NEWS: Mention the new option "--skip-unavailable" to MI
3831 commands '-stack-list-locals', '-stack-list-arguments' and
3832 '-stack-list-variables'.
3834 2013-08-27 Yao Qi <yao@codesourcery.com>
3836 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3837 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3839 * mi/mi-getopt.c (mi_getopt): Remove.
3840 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3842 (mi_getopt): Call mi_getopt_1.
3843 (mi_getopt_silent): New.
3844 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3846 2013-08-26 Doug Evans <dje@google.com>
3849 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3850 .gdb_index is in use.
3851 * symfile.c (reread_symbols): Reset objfile->sf.
3853 * NEWS: Document "mt print objfiles" now takes optional regexp.
3854 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3855 regexp of objfiles to print.
3856 (_initialize_symmisc): Update doc string for "mt print objfiles".
3858 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3859 missing debug info checks.
3861 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3862 Ulrich Weigand <uweigand@de.ibm.com>
3864 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3865 line tables generated by XLC compiled binaries.
3867 2013-08-23 Doug Evans <dje@google.com>
3869 * symmisc.c (dump_symtab): Delete prototype.
3870 (dump_msymbols, dump_objfile): Ditto.
3871 (maintenance_info_symtabs): Mark as dont_repeat.
3872 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3874 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3875 debugging printf to better location.
3877 2013-08-23 Pedro Alves <palves@redhat.com>
3879 * target.c (target_read_live_memory): Change type of 'ret' local
3882 2013-08-23 Pedro Alves <palves@redhat.com>
3884 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3885 (remote_read_bytes): Change return type to LONGEST, and adjust to
3886 return a target_xfer_error on error.
3887 (remote_xfer_memory): Delete.
3888 (remote_flash_write): Change type of 'ret' local to LONGEST.
3889 (remote_xfer_partial, remote_xfer_partial): Adjust.
3890 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3892 2013-08-23 Pierre Muller <muller@sourceware.org>
3894 ARI fix: Push # directives to start of line.
3895 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3897 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3900 * breakpoint.c (enable_command, disable_command): Iterate over
3901 all specified breakpoint locations.
3903 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3905 * common/linux-ptrace.c (linux_fork_to_function): Push #
3906 directives to the start of the line.
3907 (linux_check_ptrace_features): Fix warning message to use
3910 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3912 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3913 nat/linux-waitpid.h.
3914 (linux-waitpid.o): New object file rule.
3915 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3916 (current_ptrace_options): Moved from linux-nat.c.
3917 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3919 (linux_fork_to_function): New function.
3920 (linux_grandchild_function): Likewise.
3921 (linux_child_function): Likewise.
3922 (linux_check_ptrace_features): New function, heavily
3923 based on linux-nat.c:linux_test_for_tracefork.
3924 (linux_enable_event_reporting): New function.
3925 (ptrace_supports_feature): Likewise.
3926 (linux_supports_tracefork): Likewise.
3927 (linux_supports_traceclone): Likewise.
3928 (linux_supports_tracevforkdone): Likewise.
3929 (linux_supports_tracesysgood): Likewise.
3930 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3931 gdbserver/linux-low.c.
3932 (linux_enable_event_reporting): New declaration.
3933 (linux_supports_tracefork): Likewise.
3934 (linux_supports_traceclone): Likewise.
3935 (linux_supports_tracevforkdone): Likewise.
3936 (linux_supports_tracesysgood): Likewise.
3937 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3938 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3939 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3940 * config/arm/linux.mh (NATDEPFILES): Likewise.
3941 * config/i386/linux.mh (NATDEPFILES): Likewise.
3942 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3943 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3944 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3945 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3946 * config/mips/linux.mh (NATDEPFILES): Likewise.
3947 * config/pa/linux.mh (NATDEPFILES): Likewise..
3948 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3949 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3950 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3951 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3952 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3953 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3954 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3955 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3956 ptrace's 4th argument's types.
3957 Check the type of PTRACE_TYPE_ARG4.
3958 * configure: Regenerate.
3959 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3960 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3961 (linux_supports_tracefork_flag): Remove.
3962 (linux_supports_tracesysgood_flag): Likewise.
3963 (linux_supports_tracevforkdone_flag): Likewise.
3964 (current_ptrace_options): Moved to
3965 common/linux-ptrace.c.
3966 (linux_tracefork_child): Remove.
3967 (my_waitpid): Remove.
3968 (linux_test_for_tracefork): Renamed to
3969 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3970 (linux_test_for_tracesysgood): Remove.
3971 (linux_supports_tracesysgood): Remove.
3972 (linux_supports_tracefork): Remove.
3973 (linux_supports_tracevforkdone): Remove.
3974 (linux_enable_tracesysgood): Remove.
3975 (linux_enable_event_reporting): Remove.
3976 (linux_init_ptrace): New function.
3977 (linux_child_post_attach): Call linux_init_ptrace.
3978 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3979 (linux_child_follow_fork): Call linux_supports_tracefork
3980 and linux_supports_tracevforkdone.
3981 (linux_child_insert_fork_catchpoint): Call
3982 linux_supports_tracefork.
3983 (linux_child_insert_vfork_catchpoint): Likewise.
3984 (linux_child_set_syscall_catchpoint): Call
3985 linux_supports_tracesysgood.
3986 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3987 * nat/linux-nat.h: New file.
3988 * nat/linux-waitpid.c: New file.
3989 * nat/linux-waitpid.h: New file.
3991 2013-08-22 Samuel Bronson <naesten@gmail.com>
3993 ARM Linux support for `catch syscall'.
3994 * syscalls/arm-linux.py: New file.
3995 * syscalls/arm-linux.xml: Likewise.
3996 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3997 (arm_linux_init_abi): Register the new function and syscall xml file.
3998 * data-directory/Makefile.in: Install the new syscall xml file.
3999 * NEWS: Brag about this.
4001 2013-08-22 Pedro Alves <palves@redhat.com>
4004 * corefile.c (target_xfer_memory_error): New function.
4005 (memory_error): Defer EIO to target_memory_error.
4006 (read_memory): Use target_xfer_partial, and handle finer-grained
4008 * target.c (target_xfer_error_to_string): New function.
4009 (memory_xfer_partial_1): If memory is known to be
4010 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4011 (target_xfer_partial): Make extern.
4012 * target.h (enum target_xfer_error): New enum.
4013 (target_xfer_error_to_string): Declare function.
4014 (target_xfer_partial): Declare function.
4015 (struct target_ops) <xfer_partial>: Adjust describing comment.
4017 2013-08-22 Alan Modra <amodra@gmail.com>
4019 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4020 * configure.tgt: Likewise as targets.
4022 2013-08-20 Doug Evans <dje@google.com>
4024 * buildsym.c (subfile_stack): Move here from buildsym.h.
4025 (pending_macros): Ditto.
4026 (get_macro_table): New function.
4027 (buildsym_init): Initialize subfile_stack.
4028 * coffread.c (type_vector,type_vector_length): Moved here from
4030 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4031 (coff_symtab_read): Use it.
4032 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4033 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4034 with call to get_macro_table.
4035 * stabsread.c (type_vector,type_vector_length): Moved here from
4037 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4038 * buildsym.h (get_macro_table): Declare.
4040 2013-08-20 Tom Tromey <tromey@redhat.com>
4042 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4044 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4046 2013-08-20 Doug Evans <dje@google.com>
4048 * blockframe.c: Remove #include "psymtab.h".
4049 * cp-support.c: Ditto.
4053 2013-08-20 Tom Tromey <tromey@redhat.com>
4056 * exceptions.h (return_mask): Now an enum.
4057 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4060 2013-08-20 Tom Tromey <tromey@redhat.com>
4062 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4064 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4065 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4066 * jit.c (jit_object_close_impl): Update.
4067 * jv-lang.c (get_dynamics_objfile): Update.
4068 * linespec.c (add_minsym): Use get_dynamics_objfile.
4069 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4070 (allocate_objfile): Don't initialize 'gdbarch' field.
4071 (get_objfile_arch): Update.
4072 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4074 (struct objfile) <gdbarch>: ... here. Remove.
4075 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4077 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4079 2013-08-20 Alan Modra <amodra@gmail.com>
4081 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4082 for IBM long double nan and inf.
4083 (floatformat_is_negative, floatformat_classify,
4084 floatformat_mantissa): Similarly.
4085 (floatformat_ieee_single, floatformat_ieee_double,
4086 floatformat_ieee_quad, floatformat_arm_ext,
4087 floatformat_ia64_spill): Delete unused vars.
4088 (_initialize_doublest): Delete unused function.
4089 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4090 little-endian variants of floatformat_ibm_long_double.
4092 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4094 * Makefile.in (SFILES): Remove common/target-common.c and
4095 add target/waitstatus.c.
4096 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4097 target/resume.h, target/wait.h and target/waitstatus.h.
4098 (COMMON_OBS): Remove target-common.o and add
4100 (target-common.o): Remove.
4101 (waitstatus.o): New target object file.
4102 * common/target-common.c: Move contents to
4103 target/waitstatus.c and remove.
4104 * common/target-common.h: Move contents to other files and
4106 (enum resume_kind: Move to target/resume.h.
4107 (TARGET_WNOHANG): Move to target/wait.h.
4108 (enum target_waitkind): Move to target/waitstatus.h.
4109 (struct target_waitstatus): Likewise.
4110 * target.h: Do not include target-common.h and
4111 include target/resume.h, target/wait.h and
4112 target/waitstatus.h.
4113 * target/resume.h: New file.
4114 * target/wait.h: New file.
4115 * target/waitstatus.h: New file.
4116 * target/waitstatus.c: New file.
4118 2013-08-19 Pedro Alves <palves@redhat.com>
4120 * linux-nat.c (linux_test_for_tracefork)
4121 (linux_test_for_tracesysgood, linux_child_follow_fork)
4122 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4123 (linux_nat_wait_1): Extend comment.
4124 (linux_async_pipe): Add comment.
4126 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4128 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4129 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4130 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4131 Update to account for fact that PC is now a pseudo-register.
4132 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4133 cases for RL78_PC_REGNUM.
4135 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4138 * top.c (quit_force): Skip writing history file
4139 if input is not from terminal.
4141 2013-08-14 Tom Tromey <tromey@redhat.com>
4143 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4144 resultthreadlist>: New fields.
4145 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4146 (remote_get_threadlist, remote_threadlist_iterator): Use
4147 new fields. Remove static variables.
4149 2013-08-14 Tom Tromey <tromey@redhat.com>
4151 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4152 remote_watch_data_address>: New fields.
4153 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4154 (process_stop_reply, remote_wait_as)
4155 (remote_check_watch_resources, remote_stopped_data_address): Update.
4157 2013-08-14 Tom Tromey <tromey@redhat.com>
4159 * remote.c (struct remote_state) <async_client_callback,
4160 async_client_context>: New fields.
4161 (async_client_callback, async_client_context): Remove.
4162 (remote_async_serial_handler, remote_async): Update.
4164 2013-08-14 Tom Tromey <tromey@redhat.com>
4166 * remote.c (sizeof_pkt): Remove.
4167 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4169 2013-08-14 Tom Tromey <tromey@redhat.com>
4171 * remote.c (struct remote_state) <use_threadinfo_query,
4172 use_threadextra_query>: New fields.
4173 (remote_threads_info, remote_threads_extra_info)
4174 (remote_open_1): Update.
4176 2013-08-14 Tom Tromey <tromey@redhat.com>
4178 * remote.c (struct remote_state) <finished_object,
4179 finished_annex, finished_offset>: New fields.
4180 (remote_read_qxfer): Use remote_state fields; remove static
4183 2013-08-14 Tom Tromey <tromey@redhat.com>
4185 * remote.c (struct remote_state) <last_sent_step>:
4187 (last_sent_step): Remove.
4188 (remote_resume, remote_wait_as): Update.
4190 2013-08-14 Tom Tromey <tromey@redhat.com>
4192 * remote.c (struct remote_state) <last_sent_signal>:
4194 (last_sent_signal): Remove.
4195 (new_remote_state, remote_resume, remote_wait_as): Update.
4197 2013-08-14 Tom Tromey <tromey@redhat.com>
4199 * remote.c (struct remote_state) <last_program_signals_packet>:
4201 (last_program_signals_packet): Remove.
4202 (remote_program_signals, remote_open_1): Update.
4204 2013-08-14 Tom Tromey <tromey@redhat.com>
4206 * remote.c (struct remote_state) <last_pass_packet>:
4208 (last_pass_packet): Remove.
4209 (remote_pass_signals, remote_open_1): Update.
4211 2013-08-14 Tom Tromey <tromey@redhat.com>
4213 * remote.c (struct remote_state) <remote_traceframe_number>:
4215 (remote_traceframe_number): Remove.
4216 (new_remote_state, remote_open_1, set_remote_traceframe)
4217 (remote_trace_find): Update.
4219 2013-08-14 Tom Tromey <tromey@redhat.com>
4221 * remote.c (struct remote_state) <general_thread, continue_thread>:
4223 (general_thread, continue_thread): Remove.
4224 (record_currthread, set_thread, set_general_process)
4225 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4226 (extended_remote_mourn_1): Update.
4228 2013-08-14 Tom Tromey <tromey@redhat.com>
4230 * remote.c (struct remote_state) <remote_desc>: New field.
4231 (remote_desc): Remove.
4232 (remote_threads_info, remote_threads_extra_info, remote_close)
4233 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4234 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4235 (remote_hostio_send_command, remote_file_put, remote_file_get)
4236 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4237 (remote_async, remote_new_objfile, set_range_stepping): Update.
4239 2013-08-14 Tom Tromey <tromey@redhat.com>
4241 * remote.c (remote_state): Now a pointer.
4242 (get_remote_state_raw): Update.
4243 (new_remote_state): New function.
4244 (_initialize_remote): Use new_remote_state.
4246 2013-08-14 Tom Tromey <tromey@redhat.com>
4248 * remote.c (remote_protocol_features): Now const.
4250 2013-08-14 Tom Tromey <tromey@redhat.com>
4252 * remote.c (crc32_table, crc32): Remove.
4253 (remote_verify_memory): Use xcrc32.
4255 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4257 * value.h (create_internalvar_type_lazy): Adjust prototype
4260 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4262 * common/format.c (parse_format_string): Don't allow '#' flag for
4263 pointer arguments in format string.
4265 2013-08-13 Pierre Muller <muller@sourceware.org>
4267 * utils.c (init_page_info): Only call tgetnum function
4268 if rl_get_screen_size did not return useful values.
4270 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4272 PR breakpoints/15117
4273 * linespec.c (linespec_parse_basic): Check for convenience
4274 variable or history value while parsing.
4276 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4278 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4280 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4281 different signals between the generic Linux kernel implementation
4283 (avr_linux_gdb_signal_from_target): Delete.
4284 (avr_linux_gdb_signal_to_target): Delete.
4285 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4287 2013-08-09 Doug Evans <dje@google.com>
4289 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4292 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4294 * linux-tdep.c: Define enum with generic signal numbers.
4295 (linux_gdb_signal_from_target): New function.
4296 (linux_gdb_signal_to_target): Likewise.
4297 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4298 methods to the functions above.
4299 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4300 (linux_gdb_signal_to_target): Likewise.
4301 * alpha-linux-tdep.c: Define new enum with signals different
4302 from generic Linux kernel.
4303 (alpha_linux_gdb_signal_from_target): New function.
4304 (alpha_linux_gdb_signal_to_target): Likewise.
4305 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4306 with the functions mentioned above.
4307 * avr-tdep.c: Define enum with differences between Linux kernel
4309 (avr_linux_gdb_signal_from_target): New function.
4310 (avr_linux_gdb_signal_to_target): Likewise.
4311 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4312 the functions mentioned above.
4313 * sparc-linux-tdep.c: Define enum with differences between SPARC
4314 and generic Linux kernel signal numbers.
4315 (sparc32_linux_gdb_signal_from_target): New function.
4316 (sparc32_linux_gdb_signal_to_target): Likewise.
4317 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4318 to the functions defined above.
4319 * xtensa-linux-tdep.c: Define enum with differences between
4320 Xtensa and Linux kernel generic signals.
4321 (xtensa_linux_gdb_signal_from_target): New function.
4322 (xtensa_linux_gdb_signal_to_target): Likewise.
4323 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4324 to the functions defined above.
4325 * mips-linux-tdep.c: Define enum with differences between
4326 signals in MIPS and Linux kernel generic ones.
4327 (mips_gdb_signal_to_target): New function.
4328 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4329 only different signals from the Linux kernel generic.
4330 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4331 the functions defined above.
4332 * mips-linux-tdep.h (enum mips_signals): Remove.
4334 2013-08-09 Pedro Alves <palves@redhat.com>
4336 * avr-tdep.c (XMALLOC): Delete macro.
4337 * cli/cli-dump.c (XMALLOC): Delete macro.
4339 2013-08-09 Pedro Alves <palves@redhat.com>
4341 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4342 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4343 (fopen_with_cleanup, add_dump_command): Make static.
4344 * cli/cli-dump.h: Delete file.
4345 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4348 2013-08-09 Pedro Alves <palves@redhat.com>
4350 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4353 2013-08-09 Pedro Alves <palves@redhat.com>
4355 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4358 2013-08-09 Pedro Alves <palves@redhat.com>
4360 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4361 (gcore_command): Use tilde_expand here, and when showing the
4362 filename to the user, show the expanded version.
4364 2013-08-09 Yao Qi <yao@codesourcery.com>
4366 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4369 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4371 * gcore.c (create_gcore_bfd): Use tilde_expand.
4373 2013-08-08 Yao Qi <yao@codesourcery.com>
4375 * frame.h (read_frame_local): Declare.
4376 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4378 * stack.c (read_frame_local): New.
4380 2013-08-08 Yao Qi <yao@codesourcery.com>
4382 * mi/mi-cmd-stack.c: Update comments to function
4383 list_args_or_locals.
4385 2013-08-07 Tom Tromey <tromey@redhat.com>
4388 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4389 (process_psymtab_comp_unit_reader): Use it.
4390 (process_psymtab_comp_unit): Update. Add "pretend_language"
4392 (dwarf2_build_psymtabs_hard): Update.
4393 (scan_partial_symbols): Pass CU's language to
4394 process_psymtab_comp_unit.
4396 2013-08-07 Tom Tromey <tromey@redhat.com>
4398 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4399 (dwarf2_gdb_index_functions): Update.
4400 * psymtab.c (find_symbol_file_from_partial): Remove.
4401 (psym_functions): Update.
4402 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4405 2013-08-07 Tom Tromey <tromey@redhat.com>
4407 * symfile.c (set_initial_language): Look up "main" symbol
4408 and use its language.
4409 * symtab.c (find_main_filename): Remove.
4410 * symtab.h (find_main_filename): Remove.
4412 2013-08-07 Tom Tromey <tromey@redhat.com>
4414 * dwarf2read.c (recursively_compute_inclusions): Add
4415 "immediate_parent" argument. Set symtab's "user" field
4417 (compute_symtab_includes): Update.
4419 2013-08-07 Tom Tromey <tromey@redhat.com>
4421 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4422 when adding label symbols.
4424 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4425 Ulrich Weigand <uweigand@de.ibm.com>
4427 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4428 * configure.host (powerpc64-*-aix*): Likewise.
4430 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4431 Ulrich Weigand <uweigand@de.ibm.com>
4433 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4435 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4436 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4437 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4438 * configure.ac: Check for ptrace64.
4439 * configure, config.in: Regenerate.
4441 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4442 Ulrich Weigand <uweigand@de.ibm.com>
4444 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4445 Call ptrace64 instead of ptrace if defined.
4446 Add macro addr_ptr to take care of ptrace address argument.
4447 (pdc_read_regs): Likewise.
4448 (pdc_write_regs): Likewise.
4449 (aix_thread_resume): Likewise.
4450 (fetch_regs_kernel_thread): Likewise.
4451 (store_regs_kernel_thread): Likewise.
4453 2013-08-07 Anton Blanchard <anton@samba.org>
4455 * MAINTAINERS: Add myself to Write After Approval.
4457 2013-08-05 Tom Tromey <tromey@redhat.com>
4459 * aix-thread.c (_initialize_aix_thread): Use
4460 complete_target_initialization.
4461 * bsd-uthread.c (_initialize_bsd_uthread): Use
4462 complete_target_initialization.
4463 * dec-thread.c (_initialize_dec_thread): Use
4464 complete_target_initialization.
4465 * ravenscar-thread.c (_initialize_ravenscar): Use
4466 complete_target_initialization.
4467 * sol-thread.c (_initialize_sol_thread): Use
4468 complete_target_initialization.
4469 * spu-multiarch.c (_initialize_spu_multiarch): Use
4470 complete_target_initialization.
4472 2013-08-05 Tom Tromey <tromey@redhat.com>
4474 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4475 * ada-lang.c (ada_lookup_simple_minsym): Return
4476 bound_minimal_symbol.
4477 * ada-lang.h (ada_lookup_simple_minsym): Update.
4478 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4479 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4480 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4481 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4482 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4483 * minsyms.c (msymbol_objfile): Remove.
4484 (lookup_minimal_symbol_internal): New function, from
4485 lookup_minimal_symbol.
4486 (lookup_minimal_symbol): Rewrite using
4487 lookup_minimal_symbol_internal.
4488 (lookup_bound_minimal_symbol): New function.
4489 * minsyms.h (msymbol_objfile): Remove.
4490 (lookup_bound_minimal_symbol): Declare.
4491 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4492 * parse.c (write_exp_msymbol): Change parameter to a
4493 bound_minimal_symbol.
4494 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4495 * parser-defs.h (write_exp_msymbol): Update.
4496 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4497 * symfile.c (simple_read_overlay_table): Use
4498 lookup_bound_minimal_symbol.
4499 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4500 (search_symbols): Likewise.
4501 (print_msymbol_info): Take a bound_minimal_symbol argument.
4502 (symtab_symbol_info, rbreak_command): Update.
4503 * symtab.h (struct symbol_search) <msymbol>: Change type
4504 to bound_minimal_symbol.
4505 * valops.c (find_function_in_inferior): Use
4506 lookup_bound_minimal_symbol.
4507 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4509 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4512 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4514 (async_cleanup_sigint_signal_handler): ... this.
4515 (initialize_sigint_signal_handler): Remove declaration.
4516 (handle_remote_sigint): Rename the declaration to ...
4517 (async_handle_remote_sigint): ... this.
4518 (handle_remote_sigint_twice): Rename the declaration to ...
4519 (async_handle_remote_sigint_twice): ... this.
4520 (async_remote_interrupt, async_remote_interrupt_twice)
4521 (remote_interrupt): Remove the declarations.
4522 (remote_interrupt_twice): Rename the declaration ...
4523 (sync_remote_interrupt_twice): ... this.
4524 (sigint_remote_twice_token): Rename the variable to ...
4525 (async_sigint_remote_twice_token): ... this.
4526 (sigint_remote_token): Rename the variable to ...
4527 (async_sigint_remote_token): ... this.
4528 (initialize_sigint_signal_handler): Rename the function to ...
4529 (async_initialize_sigint_signal_handler): ... this. Update the name
4531 (handle_remote_sigint): Rename the function to ...
4532 (async_handle_remote_sigint): ... this. Update the names inside.
4533 (handle_remote_sigint_twice): Rename the function to ...
4534 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4535 (cleanup_sigint_signal_handler): Rename the function to ...
4536 (async_cleanup_sigint_signal_handler): ... this.
4537 (remote_interrupt): Rename the function to ...
4538 (sync_remote_interrupt): this. Update the names inside.
4539 (remote_interrupt_twice): Rename the function to ...
4540 (sync_remote_interrupt_twice): this. Update the names inside.
4541 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4542 (_initialize_remote): Update the names inside.
4544 2013-08-02 Tom Tromey <tromey@redhat.com>
4547 * breakpoint.c (update_watchpoint, watchpoint_check)
4548 (watch_command_1): Update.
4549 * eval.c (fetch_subexp_value): Add "preserve_errors"
4551 * ppc-linux-nat.c (check_condition): Update.
4552 * value.h (fetch_subexp_value): Update.
4554 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4556 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4559 2013-08-01 Doug Evans <dje@google.com>
4562 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4563 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4564 Add assert of sig_entry->dwo_unit == NULL.
4565 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4566 had already been read.
4567 (read_signatured_type): Set per_cu.tu_read.
4570 * valops.c (value_struct_elt): Add missing call to check_typedef.
4571 (value_find_oload_method_list): Ditto.
4573 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4574 effectively, struct symbol_search **.
4575 (make_cleanup_free_search_symbols): Change arg to struct
4576 symbol_search **. All callers updated.
4577 (compare_search_syms): Compare symtab file name and block as well.
4578 (search_symbols_equal): New function.
4579 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4580 New args new_head, new_tail. Result is now void. Remove dups after
4581 sorting the symbols.
4582 (search_symbols): Sort all found symbols once, after all have been
4583 found, and remove duplicates. Simplify cleanup tracking of result.
4584 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4586 Further workarounds for binutils/15021.
4587 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4588 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4589 Watch for duplicate symtabs coming from type units.
4590 (compute_symtab_includes): Update call to
4591 recursively_compute_inclusions. Build vector of included symtabs
4593 * symtab.h (symtab_ptr): New typedef.
4594 (DEF_VEC_P (symtab_ptr)): New VEC type.
4595 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4598 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4600 * cli/cli-script.c (script_from_file): Remove use of
4602 * main.c (captured_main): Remove use of error_pre_print and
4604 * utils.c (error_pre_print, quit_pre_print): Remove.
4605 * utils.h (error_pre_print, quit_pre_print): Likewise.
4607 2013-08-01 Yao Qi <yao@codesourcery.com>
4609 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4611 (mi_cmd_stack_list_variables): Likewise.
4613 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4615 * exceptions.c (deprecated_throw_reason): Remove.
4616 * exceptions.h (deprecated_throw_reason): Remove.
4618 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4620 * remote-mips.c (mips_error): Replace use of
4621 deprecated_throw_reason with throw_verror. Use the error message
4622 passed to mips_error as the error message for throw_verror.
4624 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4626 * monitor.c (monitor_interrupt_query): Replace use of
4627 deprecated_throw_reason with quit.
4628 * nto-procfs.c (interrupt_query): Likewise.
4629 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4630 * remote-mips.c (mips_kill): Likewise.
4631 * remote.c (interrupt_query): Likewise.
4633 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4635 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4638 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4639 Yao Qi <yao@codesourcery.com>
4641 * tracepoint.c (trace_dump_command): Select the current frame.
4643 2013-07-30 Doug Evans <dje@google.com>
4645 * dwarf2read.c (process_queue): Add type signature to debug output.
4647 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4649 * value.c (value_fetch_lazy): Mark optimized out values as such
4650 rather than raising an error.
4652 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4654 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4655 before checking which bits of the parent, not the child, value are
4658 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4661 * top.c: Include "filenames.h".
4662 (set_history_filename): New function.
4663 (init_main): Install it as set hook of the "set history filename"
4666 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4668 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4669 attribute parameter.
4670 (dwarf2_const_value_data): Constify struct attribute parameter.
4671 (dwarf2_const_value): Constify struct attribute parameter.
4672 (dwarf2_const_value_attr): Constify struct attribute parameter.
4673 (lookup_die_type): Constify struct attribute parameter.
4674 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4675 (follow_die_ref_or_sig): Constify struct attribute parameter.
4676 (follow_die_ref): Constify struct attribute parameter.
4677 (follow_die_sig): Constify struct attribute parameter.
4678 (get_DW_AT_signature_type): Constify struct attribute parameter.
4679 (get_type_unit_group): Constify struct attribute parameter.
4680 (fill_in_loclist_baton): Constify struct attribute parameter.
4681 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4682 (type_unit_group): Constify struct attribute parameter.
4684 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4686 * dwarf2read.c (attr_form_is_block): Make argument const.
4687 (attr_form_is_section_offset): Make argument const.
4688 (attr_form_is_constant): Make argument const.
4689 (attr_form_is_ref): Make argument const.
4691 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4693 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4695 (attr_form_is_ref): Moved below attr_form_is_constant.
4697 2013-07-29 Doug Evans <dje@google.com>
4699 * main.c (captured_command_loop): Tweak comment.
4701 * target.c (target_async_permitted_1): Fix comment.
4703 * symtab.c (iterate_over_some_symtabs): Add comment.
4705 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4707 2013-07-27 Yao Qi <yao@codesourcery.com>
4709 * NEWS: Mention that GDBserver now supports hardware
4710 watchpoints on the MIPS GNU/Linux target.
4712 2013-07-27 Yao Qi <yao@codesourcery.com>
4714 * Makefile.in (HFILES_NO_SRCDIR): Add
4715 common/mips-linux-watch.h.
4716 (mips-linux-watch.o): New rule.
4717 * common/mips-linux-watch.c: New.
4718 * common/mips-linux-watch.h: New.
4719 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4720 * mips-linux-nat.c: Include mips-linux-watch.h.
4721 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4722 to common/mips-linux-watch.h.
4723 (MAX_DEBUG_REGISTER): Likewise.
4724 (enum pt_watch_style): Likewise.
4725 (struct mips32_watch_regs): Likewise.
4726 (struct mips64_watch_regs): Likewise.
4727 (struct pt_watch_regs): Likewise.
4728 (struct mips_watchpoint): Likewise.
4729 (mips_linux_watch_get_irw_mask): Move to
4730 common/mips-linux-watch.c.
4731 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4732 (mips_linux_watch_get_watchlo): Likewise.
4733 (mips_linux_watch_set_watchlo): Likewise.
4734 (mips_linux_watch_get_watchhi): Likewise.
4735 (mips_linux_watch_set_watchhi): Likewise.
4736 (mips_linux_read_watch_registers): Likewise.
4737 (mips_linux_watch_type_to_irw): Likewise.
4738 (mips_linux_stopped_data_address, fill_mask): Likewise.
4739 (mips_linux_watch_try_one_watch): Likewise.
4740 (mips_linux_watch_populate_regs): Likewise.
4742 2013-07-27 Yao Qi <yao@codesourcery.com>
4744 * mips-linux-nat.c (get_irw_mask): Rename to ...
4745 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4746 'set' to 'n'. Update function comment. All callers changed.
4747 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4748 function comment. All callers changed.
4749 (get_num_valid): Rename to ...
4750 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4751 'set' to 'n'. Update function comment. All callers changed.
4752 (get_watchlo): Rename to ...
4753 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4754 'set' to 'n'. Update function comment. All callers changed.
4755 (set_watchlo): Rename to ...
4756 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4757 'set' to 'n'. Update function comment. All callers changed.
4758 (get_watchhi): Rename to ...
4759 (mips_linux_watch_get_watchhi): ... this. Update function
4760 comment. All callers changed.
4761 (set_watchhi): Rename to ...
4762 (mips_linux_watch_set_watchhi): ... this. Update function
4763 comment. All callers changed.
4764 (mips_linux_read_watch_registers): Update function comment.
4765 Add new parameters 'lwpid', 'watch_readback', and
4766 'watch_readback_valid'. Update.
4767 (type_to_irw): Rename to ...
4768 (mips_linux_watch_type_to_irw): ... this. Update function
4769 comment. All callers changed.
4770 (fill_mask): Update function comment.
4771 (try_one_watch): Rename to ...
4772 (mips_linux_watch_try_one_watch): ... this. Change the type
4773 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4774 (populate_regs_from_watches): Rename to ...
4775 (mips_linux_watch_populate_regs): ... this. Add parameter
4776 'current_watches'. All callers changed.
4778 2013-07-27 Yao Qi <yao@codesourcery.com>
4780 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4782 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4783 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4784 (struct pt_watch_regs): Likewise.
4785 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4786 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4787 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4788 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4789 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4791 2013-07-27 Yao Qi <yao@codesourcery.com>
4793 * breakpoint.h: Include break-common.h.
4794 (enum target_hw_bp_type): Move to ...
4795 * common/break-common.h: ... here. New.
4797 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4799 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4800 process group regardless of having tty on stdin.
4802 2013-07-25 Doug Evans <dje@google.com>
4804 * linux-fork.h (detach_fork): Delete.
4806 2013-07-25 Tom Tromey <tromey@redhat.com>
4808 PR remote/15256, PR remote/15266:
4809 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4810 * monitor.c (monitor_detach): Use unpush_target.
4811 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4812 * remote-mips.c (mips_detach): Use unpush_target. Don't
4814 * remote-sim.c (gdbsim_detach): Use unpush_target.
4815 * target.c (pop_target): Remove.
4816 (pop_all_targets_above): Don't call target_close.
4817 (target_close): Assert that the target is unpushed.
4818 * target.h (pop_target): Don't declare.
4819 * tracepoint.c (tfile_open): Use unpush_target.
4821 2013-07-25 Tom Tromey <tromey@redhat.com>
4823 * linux-thread-db.c (init_thread_db_ops): Call
4824 complete_target_initialization.
4825 (_initialize_thread_db): Don't call add_target.
4826 * target.c (complete_target_initialization): New function.
4827 (add_target_with_completer): Call it.
4828 * target.h (complete_target_initialization): Declare.
4830 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4832 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4833 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4834 (HPPANBSD_SIZEOF_GREGS): New define.
4835 (hppaobsd_supply_gregset): Handle additional registers.
4836 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4837 we provide more registers now.
4838 (hppabsd_supply_gregset): Supply additional registers.
4839 (hppabsd_collect_gregset): Collect additional registers.
4841 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4843 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4844 (hppabsd_dwarf2_frame_init_reg): New function.
4845 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4847 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4849 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4850 'z' format code. Remove error for optimized out values, standard
4851 code will handle these fine.
4853 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4855 * NEWS: Mention new 'z' formatter.
4856 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4857 (_initialize_printcmd): Mention 'z' formatter in help text of the
4860 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4862 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4865 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4867 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4868 interface can evaluate arguments. Fallback to the old mode if it
4870 (create_exception_master_breakpoint): Likewise.
4871 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4872 (struct sym_probe_fns elf_probe_fns): Export function above to the
4874 * probe.c (can_evaluate_probe_arguments): New function.
4875 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4877 (can_evaluate_probe_arguments): New function prototype.
4878 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4879 probe interface can evaluate arguments. Fallback to the old mode
4881 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4882 interface can evaluate arguments. Warning the user if it cannot.
4883 (stap_can_evaluate_probe_arguments): New function.
4884 (struct probe_ops stap_probe_ops): Export function above to the
4886 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4887 New function pointer.
4889 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4891 * Makefile.in (SFILES): Add common/target-common.c.
4892 Add common/target-common.h to headers.
4893 (COMMON_OBS): Add target-common.o.
4894 (target-common.o): New target.
4895 * linux-nat.h (resume_kind): Move to common/target-common.h.
4896 * target.c (target_waitstatus_to_string): Move to
4897 common/target-common.c.
4898 * target.h: Include target-common.h.
4899 (target_waitkind): Move to common/target-common.h.
4900 (target_waitstatus): Likewise.
4901 (TARGET_WNOHANG): Likewise.
4902 * common/target-common.c: New file.
4903 * common/target-common.h: New file.
4905 2013-07-24 Doug Evans <dje@google.com>
4907 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4910 2013-07-23 Yao Qi <yao@codesourcery.com>
4912 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4913 parameter 'gdbarch'.
4914 (i386_stack_tramp_frame_sniffer): Caller update.
4915 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4916 parameter 'gdbarch' and 'target'.
4917 (i386_linux_core_read_description): Caller update.
4918 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4920 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4923 2013-07-23 Tom Tromey <tromey@redhat.com>
4925 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4928 2013-07-22 Doug Evans <dje@google.com>
4930 * exec.h (remove_target_sections): Delete arg abfd.
4931 * exec.c (exec_close): Update call to remove_target_sections.
4932 (remove_target_sections): Delete arg abfd.
4933 * solib.c (update_solib_list): Ditto.
4934 (reload_shared_libraries_1): Ditto.
4935 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4936 * target.h (struct target_section): Rename key to owner.
4939 2013-07-22 Tom Tromey <tromey@redhat.com>
4941 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4943 2013-07-22 Tom Tromey <tromey@redhat.com>
4945 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4946 Simplify cleanup handling.
4948 2013-07-22 Tom Tromey <tromey@redhat.com>
4950 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4951 on all return paths.
4953 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4955 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4956 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4957 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4959 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4961 * top.c (print_gdb_version): Add help, apropos description and
4962 url to online documentation.
4964 2013-07-19 Hui Zhu <hui@codesourcery.com>
4967 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4969 2013-07-19 Yao Qi <yao@codesourcery.com>
4971 * target.c (update_current_target): Change the default action
4972 of 'to_traceframe_info' from tcomplain to return_zero.
4973 * target.h (struct target_ops) <to_traceframe_info>: Add more
4975 * valops.c (read_value_memory): Call
4976 traceframe_available_memory unconditionally.
4978 2013-07-18 Yao Qi <yao@codesourcery.com>
4980 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4981 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4982 symbol without prefix. If found, set its type to
4983 'mst_solib_trampoline'.
4985 2013-07-17 Doug Evans <dje@google.com>
4987 * NEWS: Mention "set print raw frame-arguments".
4988 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4989 * stack.c (print_raw_frame_arguments): New static global.
4990 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4991 (_initialize_stack): New command "set/show print raw frame-arguments".
4992 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4993 (set_print_raw, show_print_raw): New functions.
4994 (_initialize_valprint): New prefix command "set/show print raw".
4995 * valprint.h (value_print_options): Improve comments.
4997 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4998 of all *list variables.
5000 * gdbcmd.h (togglelist): Delete.
5001 * cli/cli-cmds.c (togglelist): Delete.
5002 (init_cmd_lists): Update.
5003 * cli/cli-cmds.h (togglelist): Delete.
5005 2013-07-17 Tom Tromey <tromey@redhat.com>
5007 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5010 2013-07-16 Doug Evans <dje@google.com>
5012 * nto-tdep.c (nto_relocate_section_addresses): Update,
5013 target_section.bfd deleted.
5014 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5015 * s390-tdep.c (s390_load): Ditto.
5016 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5018 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5020 * common/format.c (parse_format_string): Add checks for NULL
5021 character before calling strchr.
5023 2013-07-16 Doug Evans <dje@google.com>
5025 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5026 temp_pathname argument.
5027 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5028 when opening the file fails.
5030 * target.h (struct target_section): Delete member bfd.
5031 All users updated to use the_bfd_section->owner instead.
5032 * exec.c (add_to_section_table): Assert bfd is expected value.
5033 Remove initialization of target_section.bfd.
5034 (remove_target_sections): Update.
5035 (section_table_available_memory): Update.
5036 (section_table_xfer_memory_partial): Update.
5037 (print_section_info): Update.
5038 (exec_set_section_address): Update.
5039 * record-full.c (record_full_core_xfer_partial): Update.
5040 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5041 * solib-target.c (solib_target_relocate_section_addresses): Update.
5042 * symfile.c (build_section_addr_info_from_section_table): Update.
5043 * target.c (memory_xfer_live_readonly_partial): Update.
5044 (memory_xfer_partial_1): Update.
5046 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5048 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5049 now available for embedded (BookE) and server (BookS) processors,
5050 correct mentions of 'booke' and adjust comments accordingly in order to
5051 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5052 (have_ptrace_booke_interface): Rename function and variable
5053 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5054 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5055 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5056 'hwdebug_point_cmp'. Update all uses.
5057 (booke_find_thread_points_by_tid): Rename function
5058 'booke_find_thread_points_by_tid' to
5059 'hwdebug_find_thread_points_by_tid'. Update all uses.
5060 (booke_insert_point): Rename function 'booke_insert_point' to
5061 'hwdebug_insert_point'. Update all uses.
5062 (booke_remove_point): Rename function 'booke_remove_point' to
5063 'hwdebug_remove_point'. Update all uses.
5065 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5067 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5068 numbers with enum values.
5070 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5073 * thread.c (thread_apply_all_command): Check for valid threads
5075 (thread_array_cleanup): New struct.
5076 (set_thread_refcount): New function.
5078 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5080 * infcmd.c (default_print_one_register_info): Reuse function
5083 2013-07-10 Tom Tromey <tromey@redhat.com>
5085 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5086 (ada-exp.o): New target.
5088 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5090 * mt-tdep.c (mt_registers_info): Call
5091 get_no_prettyformat_print_options instead of
5092 get_raw_print_options (regression by last patch from Doug
5095 2013-07-09 Pedro Alves <palves@redhat.com>
5097 Checked in by Joel Brobecker <brobecker@adacore.com>.
5098 * ada-lang.c (coerce_unspec_val_to_type): Use
5099 value_optimized_out_const.
5100 * value.c (value_optimized_out_const): New function.
5101 * value.h (value_optimized_out_const): New declaration.
5103 2013-07-09 Doug Evans <dje@google.com>
5105 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5106 Enum values rename as well. All uses updated.
5107 * valprint.h (value_print_options): Rename member pretty to
5108 pretty format. Rename member prettyprint_arrays to
5109 prettyformat_arrays. Rename member prettyprint_structs to
5110 prettyformat_structs. All uses updated.
5111 (get_no_prettyformat_print_options): Renamed from
5112 get_raw_print_options.
5113 * valprint.c (get_no_prettyformat_print_options): Renamed from
5114 get_raw_print_options. All callers updated.
5115 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5116 All callers updated.
5117 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5118 All callers updated.
5119 (_initialize_valprint): Improve help text for "set print pretty" and
5122 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5124 * value.c (value_bits_valid): Revert previous change, and change
5125 by Pedro on 2013-07-04, due to regressions in
5126 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5128 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5129 Pedro Alves <palves@redhat.com>
5131 * value.c (value_bits_valid): If the value is not lval_computed
5132 or has no check validity handler then the answer is the
5133 optimized_out flag, otherwise defer to the handler.
5135 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5137 * top.c (print_gdb_configuration): Explain in output of
5138 --configuration what does "relocatable" mean.
5140 * main.c (print_gdb_help): Regroup options in the --help text.
5141 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5142 the relevant discussions.
5144 2013-07-06 Yao Qi <yao@codesourcery.com>
5146 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5147 Remove parameter 'lsal'.
5148 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5149 to inner block. Caller update.
5150 (base_breakpoint_create_breakpoints_sal): Update.
5151 (bkpt_create_breakpoints_sal): Likewise.
5152 (tracepoint_create_breakpoints_sal): Likewise.
5153 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5154 element 0 of vector 'canonical->sals'.
5156 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5158 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5159 register number instead of the pseudo register one.
5160 (rs6000_dwarf2_reg_to_regnum): Likewise.
5162 2013-07-04 Pedro Alves <palves@redhat.com>
5164 * findvar.c (value_of_register): Use allocate_optimized_out_value
5165 if the register has been optimized out, instead of
5166 set_value_optimized_out.
5167 * frame-unwind.c (frame_unwind_got_optimized): Use
5168 allocate_optimized_out_value.
5170 2013-07-04 Pedro Alves <palves@redhat.com>
5172 * value.c (value_bits_valid): If the value is not lval_computed,
5173 or doesn't have a check_validity hook, assume the value is entirely
5176 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5178 * stack.c (read_frame_arg): No longer fetch lazy values.
5179 * value.c (value_optimized_out): If the value is not already
5180 marked optimized out, and is lazy then fetch it.
5181 (value_primitive_field): Move optimized out check to later in the
5182 function, after we have loaded any lazy values.
5183 (value_fetch_lazy): Use optimized out flag directly rather than
5184 calling optimized_out method.
5186 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5188 * valops.c: Don't include "user-regs.h".
5189 (value_fetch_lazy): Moved to value.c.
5190 * value.c: Include "user-regs.h".
5191 (value_fetch_lazy): Moved from valops.c.
5193 2013-07-04 Yao Qi <yao@codesourcery.com>
5196 2013-06-27 Yao Qi <yao@codesourcery.com>
5198 * common/create-version.sh: Update comments. Handle the case
5199 that TARGET_ALIAS is empty.
5201 2013-07-03 Pedro Alves <palves@redhat.com>
5203 * Makefile.in (config.status): Depend on development.sh.
5204 (aclocal_m4_deps): Add libmcheck.m4.
5205 * acinclude.m4: Include libmcheck.m4.
5206 * configure.ac: Source development.sh instead of setting
5207 'development' here. --enable-libmcheck/--disable-libmcheck code
5208 factored out to GDB_AC_LIBMCHECK. Run it.
5209 * development.sh: New file.
5210 * libmcheck.m4: New file.
5211 * configure: Regenerate.
5213 2013-07-02 Tom Tromey <tromey@redhat.com>
5215 * contrib/ari/update-web-ari.sh: Update for version.in change.
5217 2013-07-02 Tom Tromey <tromey@redhat.com>
5219 * common/ptid.h: Comment fixes.
5221 2013-07-01 Tom Tromey <tromey@redhat.com>
5223 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5224 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5225 (dwarf2_read_index, create_all_comp_units): Update.
5227 2013-07-01 Tom Tromey <tromey@redhat.com>
5229 * configure.ac (build_warnings): Add -Wold-style-definition.
5230 * configure: Rebuild.
5231 * machoread.c (_initialize_machoread): Use "(void)".
5232 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5235 2013-07-01 Tom Tromey <tromey@redhat.com>
5237 * configure.ac (build_warnings): Add -Wold-style-declaration.
5238 * configure: Rebuild.
5239 * dsrec.c (make_srec): Use "static const", not "const static".
5240 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5242 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5243 Use "static const", not "const static".
5244 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5246 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5248 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5250 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5252 (v850_dbtrap_breakpoint_from_pc): Likewise.
5253 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5256 2013-07-01 Tom Tromey <tromey@redhat.com>
5258 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5259 * configure: Rebuild.
5261 2013-07-01 Pedro Alves <palves@redhat.com>
5263 * defs.h: Include "pathmax.h".
5264 * utils.c: Don't include sys/param.h.
5265 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5266 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5267 instead of MAXPATHLEN.
5268 * solib-sunos.c: Don't include sys/param.h.
5269 * xcoffread.c: Don't include sys/param.h.
5270 * bsd-kvm.c: Don't include sys/param.h.
5271 * darwin-nat.c: Don't include sys/param.h.
5272 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5273 * darwin-nat-info.c: Don't include sys/param.h.
5274 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5276 * i386obsd-nat.c: Don't include sys/param.h.
5277 * inf-child.c: Don't include sys/param.h.
5278 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5279 * linux-fork.c: Don't include sys/param.h.
5280 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5281 * linux-nat.c: Don't include sys/param.h.
5282 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5283 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5284 * m68klinux-nat.c: Don't include sys/param.h.
5285 * nbsd-nat.c: Don't include sys/param.h.
5286 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5287 * ppc-linux-nat.c: Don't include sys/param.h.
5288 * rs6000-nat.c: Don't include sys/param.h.
5289 * spu-linux-nat.c. Don't include sys/param.h.
5290 * windows-nat.c: Don't include sys/param.h.
5291 * xtensa-linux-nat.c: Don't include sys/param.h.
5292 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5294 2013-07-01 Pedro Alves <palves@redhat.com>
5296 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5297 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5298 * gnulib/aclocal.m4: Regenerate.
5299 * gnulib/config.in: Regenerate.
5300 * gnulib/configure: Regenerate.
5301 * gnulib/import/pathmax.h: New file.
5302 * gnulib/import/Makefile.am: Regenerate.
5303 * gnulib/import/Makefile.in: Regenerate.
5304 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5305 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5306 * gnulib/import/m4/pathmax.m4: New file.
5308 2013-07-01 Pedro Alves <palves@redhat.com>
5310 * configure.ac (GDBINIT): Define, depending on host.
5311 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5312 * top.c (PATH_MAX): Delete fallback definition.
5313 (GDBINIT_FILENAME): Delete.
5314 (gdbinit): Reimplement as const char array set to the GDBINIT
5316 * top.h (gdbinit): Make const.
5317 * configure, config.in: Regenerate.
5319 2013-07-01 Pedro Alves <palves@redhat.com>
5321 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5322 * cli/cli-cmds.h (source_script): Likewise.
5323 * exceptions.c (catch_command_errors_const): New function.
5324 * exceptions.h (catch_command_errors_const): Declare.
5325 * main.c (get_init_files): Make parameters const, and adjust.
5326 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5327 'local_gdbinit' locals const. Adjust to use
5328 catch_command_errors_const.
5329 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5330 'local_gdbinit' locals const.
5332 2013-07-01 Pedro Alves <palves@redhat.com>
5334 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5335 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5336 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5339 2013-07-01 Pedro Alves <palves@redhat.com>
5341 Import the "unistd" gnulib module.
5342 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5343 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5344 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5345 import/m4/unistd_h.m4.
5346 * gnulib/aclocal.m4: Renenerate.
5347 * gnulib/config.in: Renenerate.
5348 * gnulib/configure: Renenerate.
5349 * gnulib/import/Makefile.am: Renenerate.
5350 * gnulib/import/Makefile.in: Renenerate.
5351 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5352 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5353 * gnulib/import/m4/off_t.m4: New file.
5354 * gnulib/import/m4/ssize_t.m4: New file.
5355 * gnulib/import/m4/sys_types_h.m4: New file.
5356 * gnulib/import/m4/unistd_h.m4: New file.
5357 * gnulib/import/sys_types.in.h: New file.
5358 * gnulib/import/unistd.c: New file.
5359 * gnulib/import/unistd.in.h: New file.
5361 2013-07-01 Pedro Alves <palves@redhat.com>
5363 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5364 defined instead of checking HAVE_UNISTD_H.
5366 2013-07-01 Pedro Alves <palves@redhat.com>
5368 Reimport gnulib from scratch.
5369 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5370 import/m4/onceonly.m4.
5371 * gnulib/aclocal.m4: Renegerate.
5372 * gnulib/config.in: Renegerate.
5373 * gnulib/configure: Renegerate.
5374 * gnulib/import/Makefile.in: Renegerate.
5375 * gnulib/import/extra/update-copyright: Renegerate.
5376 * gnulib/import/m4/onceonly.m4: Delete.
5378 2013-07-01 Pedro Alves <palves@redhat.com>
5380 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5382 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5385 * remote.c (async_remote_interrupt_twice): Make it static.
5386 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5388 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5390 * ia64-linux-tdep.c: Include <ctype.h>.
5391 (ia64_linux_stap_is_single_operand): New function.
5392 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5394 2013-06-28 Tom Tromey <tromey@redhat.com>
5396 * Makefile.in (version.c): Use version.in, not
5398 * common/create-version.sh: Likewise.
5399 * common/version.in: Move...
5400 * version.in: ...here.
5402 2013-06-28 Pedro Alves <palves@redhat.com>
5404 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5406 * utils.h (pagination_enabled): Declare.
5408 2013-06-28 Pedro Alves <palves@redhat.com>
5410 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5411 Move higher up in file.
5413 2013-06-28 Tom Tromey <tromey@redhat.com>
5415 * tracepoint.c (deprecated_readline_begin_hook)
5416 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5419 2013-06-28 Pedro Alves <palves@redhat.com>
5422 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5423 checking if they're available.
5424 * value.c (value_available_contents_eq): Change comment.
5425 * value.h (value_available_contents_eq): Expand comment.
5427 2013-06-27 Tom Tromey <tromey@redhat.com>
5429 * target.c (find_run_target): Remove.
5430 * target.h (find_run_target): Remove.
5432 2013-06-27 Tom Tromey <tromey@redhat.com>
5434 * corelow.c (core_gdbarch): Now static.
5436 2013-06-27 Tom Tromey <tromey@redhat.com>
5438 * target.c (target_struct_index): Remove.
5440 2013-06-27 Pedro Alves <palves@redhat.com>
5442 * infrun.c: Remove comment describing the 'stepping over runtime
5443 loader dynamic symbol resolution code' mechanism; moved to
5446 2013-06-27 Pedro Alves <palves@redhat.com>
5448 * exceptions.c (catch_command_errors): Remove spurious space.
5449 * exceptions.h (catch_command_errors): Second parameter is "arg",
5452 2013-06-27 Yao Qi <yao@codesourcery.com>
5454 * common/create-version.sh: Update comments. Handle the case
5455 that TARGET_ALIAS is empty.
5457 2013-06-26 Pedro Alves <palves@redhat.com>
5459 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5462 2013-06-26 Pedro Alves <palves@redhat.com>
5464 * infrun.c: Update comments on stepping over runtime loader
5465 dynamic symbol resolution code.
5467 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5469 * ax-gdb.h (union exp_element): Forward declare.
5470 * parser-defs.h: Include expression.h.
5472 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5474 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5476 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5478 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5480 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5482 Fix trace-status to output proper start-time and stop-time.
5483 * tracepoint.c (trace_status_command): Fix type of printf arg to
5484 prevent improper type conversion.
5485 (trace_status_mi): Likewise.
5487 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5489 * mips-tdep.c (mips_next_pc): Fix a typo.
5491 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5493 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5495 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5496 Yao Qi <yao@codesourcery.com>
5498 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5499 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5500 * mi/mi-main.c (print_variable_or_computed): New function.
5501 (mi_cmd_trace_frame_collected): New function.
5502 * tracepoint.c (find_trace_state_variable_by_number): New.
5503 (struct traceframe_info): Move to tracepoint.h
5504 (struct collection_list): Likewise.
5505 (do_collect_symbol): Include locals and arguments in the
5506 collected variables list.
5507 (clear_collection_list): Clear wholly collected variables list
5508 and computed variables list.
5509 (append_exp): New function.
5510 (encode_actions_1): Include variables in the wholly
5511 collected variables list. Include memory ranges and
5512 full-fledged expressions in the computed expressions list.
5513 (encode_actions): Move some code to ...
5514 Return the cleanup chain.
5515 (encode_actions_rsp): ... here. New function.
5516 (get_traceframe_location, get_traceframe_info): Remove static.
5517 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5518 (struct collection_list): Moved from tracepoint.c. Add two
5519 new fields 'wholly_collected' and 'computed'.
5520 (find_trace_state_variable_by_number): Declare.
5521 (encode_actions): Adjust declaration.
5522 (encode_actions_rsp): Declare.
5523 (get_traceframe_info, get_traceframe_location): Declare.
5525 * NEWS: Mention new MI command -trace-frame-collected.
5527 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5528 Yao Qi <yao@codesourcery.com>
5530 * ctf.c (ctf_traceframe_info): Push trace state variables
5531 present in the trace data into the traceframe info object.
5532 * breakpoint.c (DEF_VEC_I): Remove.
5533 * common/filestuff.c (DEF_VEC_I): Likewise.
5534 * dwarf2loc.c (DEF_VEC_I): Likewise.
5535 * mi/mi-main.c (DEF_VEC_I): Likewise.
5536 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5537 * features/traceframe-info.dtd: Add tvar element and its
5539 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5540 (build_traceframe_info): Push trace state variables present in
5541 the trace data into the traceframe info object.
5542 (traceframe_info_start_tvar): New function.
5543 (tvar_attributes): New.
5544 (traceframe_info_children): Add "tvar" element.
5545 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5547 * NEWS: Mention the change in GDB and GDBserver.
5549 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5550 Yao Qi <yao@codesourcery.com>
5552 * tracepoint.c (trace_dump_command): Move code to ...
5553 (get_traceframe_location): ... here. New.
5555 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5556 Yao Qi <yao@codesourcery.com>
5558 * tracepoint.c (trace_dump_command): GDB emits an error
5559 instead of a warning when a traceframe is not selected.
5561 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5562 Yao Qi <yao@codesourcery.com>
5564 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5565 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5567 (do_clear_collection_list, init_collection_list): New.
5568 (encode_actions): Add local variables 'tracepoint_list' and
5569 'stepping_list'. Call init_collection_list and make cleanup
5570 which calls do_clear_collection_list. Don't call
5571 clear_collection_list.
5572 (_initialize_tracepoint): Delete references to
5573 'tracepoint_list' and 'stepping_list'.
5575 2013-06-25 Tom Tromey <tromey@redhat.com>
5577 * common/create-version.sh (date): Use "$", not "$$" in sed
5580 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5582 * NEWS (New targets): Add entry for TI MSP430.
5584 2013-06-25 Yao Qi <yao@codesourcery.com>
5586 * remote.c (remote_start_remote): Move code to upload tsv
5589 2013-06-25 Yao Qi <yao@codesourcery.com>
5590 Hui Zhu <hui@codesourcery.com>
5591 Pedro Alves <palves@redhat.com>
5593 PR breakpoints/15075
5594 PR breakpoints/15434
5595 * breakpoint.c (bpstat_stop_status): Call
5596 b->ops->after_condition_true.
5597 (update_dprintf_command_list): Don't append "continue" command
5598 to the command list of dprintf breakpoint.
5599 (base_breakpoint_after_condition_true): New function.
5600 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5601 (dprintf_after_condition_true): New function.
5602 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5603 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5605 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5607 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5608 (ALLDEPFILES): Add msp430-tdep.c.
5609 * configure.tgt (msp430*-*-elf): New target.
5610 * msp430-tdep.c: New file.
5612 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5614 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5615 microMIPS synthetic symbols.
5617 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5619 * objfiles.h (pc_in_section): New prototype.
5620 (in_plt_section): Remove name argument, replace prototype with
5621 static inline function.
5622 * mips-tdep.h: Include "objfiles.h".
5623 (in_mips_stubs_section): New function.
5624 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5625 in_solib_call_trampoline member.
5626 (hppa_in_solib_call_trampoline): Remove name argument.
5627 * objfiles.c (pc_in_section): New function.
5628 (in_plt_section): Remove function.
5629 * mips-linux-tdep.c: Include "objfiles.h".
5630 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5631 name argument. Return 1 rather than the low 16-bit halfword of
5632 any instruction examined.
5633 (mips_linux_in_dynsym_resolve_code): Update
5634 mips_linux_in_dynsym_stub call accordingly.
5635 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5636 rather than an equivalent hand-coded sequence.
5637 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5638 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5639 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5640 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5642 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5643 on call to tdep->in_solib_call_trampoline.
5644 (hppa_in_solib_call_trampoline): Remove name argument, update
5645 according to in_plt_section change.
5646 (hppa_skip_trampoline_code): Update according to in_plt_section
5648 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5649 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5651 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5652 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5653 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5654 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5655 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5656 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5657 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5658 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5659 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5660 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5661 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5662 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5663 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5665 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5667 * common/create-version.sh: Fix expansion of $host_alias
5668 and $target_alias in generation of HOST_NAME and TARGET_NAME
5671 2013-06-24 Tom Tromey <tromey@redhat.com>
5673 * common/create-version.sh: New file.
5674 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5676 (HFILES_NO_SRCDIR): Use common/version.h.
5677 * version.in: Move to ...
5678 * common/version.in: ... here. Replace date with "DATE".
5679 * version.h: Move to ...
5680 * common/version.h: ... here.
5682 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5684 * gdb/gnulib/Makefile.in: Update date in copyright header.
5685 * gdb/gnulib/configure.ac: Ditto.
5686 * gdb/gnulib/update-gnulib.sh: Ditto.
5688 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5690 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5691 "gdb/gnulib/import".
5693 2013-06-21 Will Newton <will.newton@linaro.org>
5695 * doublest.c (ldfrexp): Remove function.
5696 (convert_doublest_to_floatformat): Call frexpl instead of
5699 2013-06-21 Will Newton <will.newton@linaro.org>
5701 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5702 * gnulib/aclocal.m4: Regenerate.
5703 * gnulib/config.in: Regenerate.
5704 * gnulib/configure: Regenerate.
5705 * gnulib/import/Makefile.am: Update.
5706 * gnulib/import/Makefile.in: Update.
5707 * gnulib/import/m4/gnulib-cache.m4: Update.
5708 * gnulib/import/m4/gnulib-comp.m4: Update.
5709 * gnulib/import/float+.h: Import.
5710 * gnulib/import/float.c: Import.
5711 * gnulib/import/float.in.h: Import.
5712 * gnulib/import/fpucw.h: Import.
5713 * gnulib/import/frexp.c: Import.
5714 * gnulib/import/frexpl.c: Import.
5715 * gnulib/import/isnan.c: Import.
5716 * gnulib/import/isnand-nolibm.h: Import.
5717 * gnulib/import/isnand.c: Import.
5718 * gnulib/import/isnanl-nolibm.h: Import.
5719 * gnulib/import/isnanl.c: Import.
5720 * gnulib/import/itold.c: Import.
5721 * gnulib/import/m4/exponentd.m4: Import.
5722 * gnulib/import/m4/exponentl.m4: Import.
5723 * gnulib/import/m4/float_h.m4: Import.
5724 * gnulib/import/m4/fpieee.m4: Import.
5725 * gnulib/import/m4/frexp.m4: Import.
5726 * gnulib/import/m4/frexpl.m4: Import.
5727 * gnulib/import/m4/isnand.m4: Import.
5728 * gnulib/import/m4/isnanl.m4: Import.
5729 * gnulib/import/m4/math_h.m4: Import.
5730 * gnulib/import/math.c: Import.
5731 * gnulib/import/math.in.h: Import.
5733 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5735 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5736 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5737 signature_INTEL_edx comparisons.
5739 2013-06-20 Doug Evans <dje@google.com>
5742 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5743 All callers updated.
5744 (open_dwp_file): If we can't find the dwp file, search the basename
5745 in debug-file-directory.
5747 * dwarf2read.c (struct dwp_file): Fix comment.
5748 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5750 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5753 2013-06-20 Yao Qi <yao@codesourcery.com>
5755 * breakpoint.c (create_breakpoint): Fix code indentation.
5757 2013-06-20 Yao Qi <yao@codesourcery.com>
5759 * breakpoint.c (create_breakpoints_sal_default): Remove
5760 parameter 'lsal'. Update declaration.
5761 (bkpt_create_breakpoints_sal): Caller update.
5762 (tracepoint_create_breakpoints_sal): Likewise.
5764 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5765 Yao Qi <yao@codesourcery.com>
5767 * NEWS: Mention the new option '--skip-unavailable' of command
5768 -data-list-register-values.
5769 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5770 --skip-unavailable option. Adjust to use output_register.
5771 (output_register): Add new 'skip_unavailable' parameter.
5774 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5776 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5777 common/i386-gcc-cpuid.h.
5778 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5779 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5780 Copy the latest version from upstream gcc.
5781 * common/linux-btrace.c: Include i386-cpuid.h.
5782 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5784 (cpu_supports_btrace): Likewise.
5785 * go32-nat.c: Include i386-cpuid.h.
5786 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5788 2013-06-19 Doug Evans <dje@google.com>
5790 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5791 (get_section_index): Ditto.
5793 2013-06-19 Tom Tromey <tromey@redhat.com>
5795 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5798 2013-06-18 Doug Evans <dje@google.com>
5800 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5802 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5803 Move test of cu_index closer to use. Print complaint if cu_index
5806 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5808 * machoread.c (oso_vector): Delete this global.
5809 (macho_register_oso): Add new parameter "oso_vector_ptr".
5810 Use it instead of the "oso_vector" global.
5811 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5812 (macho_symfile_read): Use a local oso_vector, to be free'ed
5813 at the end of this function, in place of the old "oso_vector"
5814 global. Update various function calls accordingly. Use one
5815 single cleanup chain for the entire function.
5817 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5819 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5820 DWARF2_PER_OBJFILE by uses of DATA instead.
5822 2013-06-18 Tom Tromey <tromey@redhat.com>
5824 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5826 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5827 Special case signals other than GDB_SIGNAL_TRAP.
5828 (explains_signal_watchpoint): New function.
5829 (base_breakpoint_explains_signal): Add 'sig' argument.
5830 (initialize_breakpoint_ops): Set 'explains_signal' method for
5832 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5834 (bpstat_explains_signal): Likewise.
5835 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5837 2013-06-18 Tom Tromey <tromey@redhat.com>
5839 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5841 2013-06-18 Tom Tromey <tromey@redhat.com>
5843 * python/python.c (finish_python_initialization): Decref
5844 'pythondir' on failure path as well.
5846 2013-06-18 Tom Tromey <tromey@redhat.com>
5849 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5850 after taking bits_to_skip into account. Sign extend byte_offset.
5851 * utils.h (gdb_sign_extend): Declare.
5852 * utils.c (gdb_sign_extend): New function.
5854 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5856 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5858 2013-06-17 Pierre Muller <muller@sourceware.org>
5860 * corelow.c (core_open): Print GDB signal name instead of target
5863 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5865 * .gitignore: Add /gcore.
5867 2013-06-13 Doug Evans <dje@google.com>
5869 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5870 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5872 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5874 * stack.c (backtrace_command_1): Fix indentation.
5876 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5878 * window-nat.c (thread_rec): Add missing empty line after
5879 local variable declaration.
5881 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5883 * windows-nat.c (thread_rec): Revert format used to print
5884 error code returned by SuspendThread from %d back to %u.
5886 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5888 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5890 (get_windows_debug_event): Likewise, for all debug traces.
5892 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5894 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5897 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5898 Yao Qi <yao@codesourcery.com>
5900 * mi/mi-main.c (get_register): Remove declaration.
5901 (output_register): Declare.
5902 (mi_cmd_data_list_register_values): Remove local variable
5903 'tuple_cleanup'. Move some code into output_register.
5904 (get_register): Renamed to ...
5905 (output_register): ... this. Output the register's
5906 "number" ui_out tuple here.
5908 2013-06-07 Pedro Alves <palves@redhat.com>
5910 * darwin-nat.c: Fix formating in copyright header.
5911 * darwin-nat.h: Likewise.
5912 * gnu-nat.c: Likewise.
5913 * machoread.c: Likewise.
5915 2013-06-07 Pedro Alves <palves@redhat.com>
5918 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5919 static. Output a global target description pointer.
5920 (init_registers_${name}): Adjust to initialize a
5921 target description structure.
5923 2013-06-07 Will Newton <will.newton@linaro.org>
5925 * printcmd.c (build_address_symbolic): Call
5926 gdbarch_addr_bits_remove for text minimal symbols.
5928 2013-06-07 Will Newton <will.newton@linaro.org>
5930 * MAINTAINERS: Add myself to Write After Approval.
5932 2013-06-07 Yao Qi <yao@codesourcery.com>
5934 * tracepoint.c (start_tracing): Move code to ...
5935 (trace_reset_local_state): ... here. New.
5936 (disconnect_tracing): Don't call set_current_traceframe,
5937 set_tracepoint_num, and set_traceframe_context. Call
5938 trace_reset_local_state instead.
5939 (tfile_close): Call trace_reset_local_state.
5940 * ctf.c (ctf_close): Likewise.
5941 * remote.c (remote_close): Likewise.
5942 * tracepoint.h (trace_reset_local_state): Declare.
5944 2013-06-06 Doug Evans <dje@google.com>
5946 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5947 and fix header docs.
5949 2013-06-05 Doug Evans <dje@google.com>
5950 Keith Seitz <keiths@redhat.com>
5953 * cp-namespace.c (find_symbol_in_baseclass): Call
5954 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5955 Check result of call to lookup_symbol_static.
5956 Call lookup_static_symbol_aux unconditionally.
5957 Call check_typedef on base types before accessing them.
5958 (cp_lookup_nested_symbol): Fix comment.
5960 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5962 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5963 minimal symbols pointing to function descriptors.
5965 2013-06-05 Tom Tromey <tromey@redhat.com>
5967 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5969 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5970 Pedro Alves <palves@redhat.com>
5972 * remote.c (remote_wait_as): Restore signal handler before returning
5973 when GDB gets a notification.
5975 2013-06-04 Gary Benson <gbenson@redhat.com>
5978 * breakpoint.h (handle_solib_event): Moved function declaration
5980 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5981 (bpstat_stop_status): Pass new argument to handle_solib_event.
5982 * solib.h (update_solib_breakpoints): New function declaration.
5983 (handle_solib_event): Moved function declaration from
5985 * solib.c (update_solib_breakpoints): New function.
5986 (handle_solib_event): Moved function from breakpoint.c.
5987 Updated to call solib_ops->handle_event if not NULL.
5988 * solist.h (target_so_ops): New fields "update_breakpoints" and
5990 * infrun.c (set_stop_on_solib_events): New function.
5991 (_initialize_infrun): Use the above for "set
5992 stop-on-solib-events".
5993 (handle_inferior_event): Pass new argument to handle_solib_event.
5994 * solib-svr4.c (probe.h): New include.
5995 (svr4_free_library_list): New forward declaration.
5996 (probe_action): New enum.
5997 (probe_info): New struct.
5998 (probe_info): New static variable.
5999 (NUM_PROBES): New definition.
6000 (svr4_info): New fields "using_xfer", "probes_table" and
6002 (free_probes_table): New function.
6003 (free_solib_list): New function.
6004 (svr4_pspace_data_cleanup): Free probes table and solib list.
6005 (svr4_copy_library_list): New function.
6006 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6007 (svr4_read_so_list): New parameter "prev_lm".
6008 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6009 (svr4_current_sos): New function.
6010 (probe_and_action): New struct.
6011 (hash_probe_and_action): New function.
6012 (equal_probe_and_action): Likewise.
6013 (register_solib_event_probe): Likewise.
6014 (solib_event_probe_at): Likewise.
6015 (solib_event_probe_action): Likewise.
6016 (solist_update_full): Likewise.
6017 (solist_update_incremental): Likewise.
6018 (disable_probes_interface_cleanup): Likewise.
6019 (svr4_handle_solib_event): Likewise.
6020 (svr4_update_solib_event_breakpoint): Likewise.
6021 (svr4_update_solib_event_breakpoints): Likewise.
6022 (svr4_create_solib_event_breakpoints): Likewise.
6023 (enable_break): Free probes table before creating breakpoints.
6024 Use svr4_create_solib_event_breakpoints to create breakpoints.
6025 (svr4_solib_create_inferior_hook): Free the solib list.
6026 (_initialize_svr4_solib): Initialise
6027 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6029 2013-06-04 Gary Benson <gbenson@redhat.com>
6031 * target.h (target_ops): New field
6032 "to_augmented_libraries_svr4_read".
6033 (target_augmented_libraries_svr4_read): New macro.
6034 * target.c (update_current_target): Handle
6035 to_augmented_libraries_svr4_read.
6036 * remote.c (remote_state): New field
6037 "augmented_libraries_svr4_read".
6038 (remote_augmented_libraries_svr4_read_feature): New function.
6039 (remote_protocol_features): Add entry for
6040 "augmented-libraries-svr4-read".
6041 (remote_augmented_libraries_svr4_read): New function.
6042 (init_remote_ops): Initialize
6043 remote_ops.to_augmented_libraries_svr4_read.
6045 2013-06-04 Gary Benson <gbenson@redhat.com>
6049 2013-06-04 Gary Benson <gbenson@redhat.com>
6051 * objfiles.h (inhibit_section_map_updates): New function
6053 (resume_section_map_updates): Likewise.
6054 (resume_section_map_updates_cleanup): Likewise.
6055 * objfiles.c (objfile_pspace_info): Removed field
6056 "objfiles_changed_p". New fields "new_objfiles_available",
6057 "section_map_dirty" and "inhibit_updates".
6058 (allocate_objfile): Set new_objfiles_available.
6059 (free_objfile): Set section_map_dirty.
6060 (objfile_relocate1): Likewise.
6061 (in_plt_section): Likewise.
6062 (find_pc_section): Update the conditions under which the
6063 section map will be updated.
6064 (inhibit_section_map_updates): New function.
6065 (resume_section_map_updates): Likewise.
6066 (resume_section_map_updates_cleanup): Likewise.
6068 2013-06-04 Gary Benson <gbenson@redhat.com>
6070 * probe.h (get_probe_argument_count): New declaration.
6071 (evaluate_probe_argument): Likewise.
6072 * probe.c (get_probe_argument_count): New function.
6073 (evaluate_probe_argument): Likewise.
6074 (probe_safe_evaluate_at_pc): Use the above new functions.
6076 2013-06-04 Alan Modra <amodra@gmail.com>
6078 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6079 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6080 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6081 target mem reads on optional insns.
6082 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6083 ppc_insns_match_pattern calls.
6084 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6085 Add match for power7 thread safety insns, and new order of
6086 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6087 invocation in comment, and update rest of comment.
6088 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6089 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6090 (ppc64_standard_linkage2_target): Update insn offsets.
6091 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6092 stubs first. Update calls.
6094 2013-06-04 Yao Qi <yao@codesourcery.com>
6096 * solib.c (solib_find): Don't need dir separator if path has
6099 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6101 Revert (indirectly causes a SIGSEGV):
6102 * machoread.c (macho_symfile_read): Assign first cleanup to
6105 2013-06-03 Yao Qi <yao@codesourcery.com>
6107 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6108 mi-parse.c. Make them static.
6109 (mi_all_values): Likewise.
6110 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6111 mi_parse_print_values. Make it external.
6112 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6113 Remove the declarations.
6114 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6115 * mi/mi-parse.h (mi_parse_print_values): Declare.
6116 * mi/mi-cmd-stack.c: Include mi-parse.h.
6117 (parse_print_values): Remove
6118 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6119 of parse_print_values.
6120 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6122 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6123 Yao Qi <yao@codesourcery.com>
6125 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6126 (encode_actions): Move code to ...
6127 (all_tracepoint_actions_and_cleanup): ... here. New.
6128 (trace_dump_command): Likewise.
6130 2013-05-30 Tom Tromey <tromey@redhat.com>
6132 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6134 2013-05-30 Tom Tromey <tromey@redhat.com>
6136 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6137 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6138 'old_chain' argument. Add 'parser_result' argument.
6139 (gdb_xml_create_parser_and_cleanup): Remove old version.
6140 (gdb_xml_parse_quick): Update.
6141 (xml_process_xincludes): Update.
6142 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6145 2013-05-30 Tom Tromey <tromey@redhat.com>
6147 * probe.c (collect_probes): Check arguments for NULL before
6148 calling compile_rx_or_error.
6149 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6152 2013-05-30 Tom Tromey <tromey@redhat.com>
6154 * infrun.c (adjust_pc_after_break): Introduce an outer null
6157 2013-05-30 Tom Tromey <tromey@redhat.com>
6159 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6161 2013-05-30 Tom Tromey <tromey@redhat.com>
6163 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6164 for 'old_chain'. Do not check 'head' before processing
6167 2013-05-30 Tom Tromey <tromey@redhat.com>
6169 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6172 2013-05-30 Tom Tromey <tromey@redhat.com>
6174 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6175 inner scope. Unconditionally call do_cleanups.
6177 2013-05-30 Tom Tromey <tromey@redhat.com>
6179 * source.c (find_and_open_source): Call do_cleanups.
6181 2013-05-30 Tom Tromey <tromey@redhat.com>
6183 * linux-thread-db.c (thread_db_load_search): Unconditionally
6186 2013-05-30 Tom Tromey <tromey@redhat.com>
6188 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6189 for 'cleanup'; instead use a later one.
6191 2013-05-30 Tom Tromey <tromey@redhat.com>
6193 * python/py-breakpoint.c (bppy_get_commands): Use
6194 explicit, unconditional return.
6195 * python/py-frame.c (frapy_read_var): Likewise.
6196 * python/python.c (gdbpy_decode_line): Likewise.
6198 2013-05-30 Tom Tromey <tromey@redhat.com>
6200 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6201 do_cleanups on all return paths.
6203 2013-05-30 Tom Tromey <tromey@redhat.com>
6205 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6207 2013-05-30 Tom Tromey <tromey@redhat.com>
6209 * stabsread.c (read_struct_type): Call do_cleanups along
6212 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6214 * mips-linux-tdep.c: Adjust formatting throughout.
6216 2013-05-30 Tom Tromey <tromey@redhat.com>
6218 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6219 along all return paths.
6221 2013-05-30 Tom Tromey <tromey@redhat.com>
6223 * symfile.c (find_separate_debug_file): Call do_cleanups
6224 along all return paths.
6226 2013-05-30 Tom Tromey <tromey@redhat.com>
6228 * symtab.c (search_symbols): Introduce a null cleanup for
6231 2013-05-30 Tom Tromey <tromey@redhat.com>
6233 * python/py-value.c (valpy_binop): Call do_cleanups before
6236 2013-05-30 Tom Tromey <tromey@redhat.com>
6238 * python/py-prettyprint.c (print_children): Remove extra
6241 2013-05-30 Tom Tromey <tromey@redhat.com>
6243 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6246 2013-05-30 Tom Tromey <tromey@redhat.com>
6248 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6249 along all return paths.
6251 2013-05-30 Tom Tromey <tromey@redhat.com>
6253 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6256 2013-05-30 Tom Tromey <tromey@redhat.com>
6258 * varobj.c (c_value_of_root): Call do_cleanups along all
6261 2013-05-30 Tom Tromey <tromey@redhat.com>
6263 * tracepoint.c (trace_dump_command): Unconditionally call
6266 2013-05-30 Tom Tromey <tromey@redhat.com>
6268 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6269 do_cleanups earlier.
6271 2013-05-30 Tom Tromey <tromey@redhat.com>
6273 * machoread.c (macho_symfile_read): Assign first cleanup to
6276 2013-05-30 Tom Tromey <tromey@redhat.com>
6278 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6280 2013-05-30 Tom Tromey <tromey@redhat.com>
6282 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6284 2013-05-30 Tom Tromey <tromey@redhat.com>
6286 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6287 call discard_cleanups.
6288 (inf_ptrace_attach): Likewise.
6290 2013-05-30 Tom Tromey <tromey@redhat.com>
6292 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6294 (mips_initialize): Likewise.
6295 (common_open): Call do_cleanups.
6297 2013-05-30 Tom Tromey <tromey@redhat.com>
6299 * utils.c (internal_vproblem): Call do_cleanups.
6301 2013-05-30 Tom Tromey <tromey@redhat.com>
6303 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6305 2013-05-30 Tom Tromey <tromey@redhat.com>
6307 * cli/cli-script.c (setup_user_args): Don't return after error.
6309 2013-05-30 Tom Tromey <tromey@redhat.com>
6311 * somread.c (som_symtab_read): Call do_cleanups.
6313 2013-05-30 Tom Tromey <tromey@redhat.com>
6315 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6317 2013-05-30 Tom Tromey <tromey@redhat.com>
6319 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6320 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6321 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6322 * source.c (show_substitute_path_command): Call do_cleanups.
6323 (unset_substitute_path_command, set_substitute_path_command):
6325 * symfile.c (load_command): Call do_cleanups.
6327 2013-05-30 Tom Tromey <tromey@redhat.com>
6329 * contrib/cleanup_check.py: New file.
6330 * contrib/gcc-with-excheck: Add option parsing.
6332 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6334 * windows-nat.c (windows_delete_thread): Add missing space
6337 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6339 * inferior.c (top level): Include tilde.h.
6340 (add_inferior_command): Call tilde_expand on the value of 'exec'
6343 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6344 Yao Qi <yao@codesourcery.com>
6346 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6348 (encode_actions): Likewise.
6349 * remote.c (remote_download_tracepoint): Caller update.
6350 * tracepoint.h (encode_actions): Update declaration.
6352 2013-05-30 Pedro Alves <palves@redhat.com>
6354 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6357 2013-05-30 Yao Qi <yao@codesourcery.com>
6359 * remote.c (remote_check_symbols): Remove unused parameter
6362 (remote_start_remote, remote_new_objfile): Caller update.
6364 2013-05-30 Yao Qi <yao@codesourcery.com>
6366 * mi/mi-cmds.c (mi_cmds): Define MI command
6367 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6370 2013-05-29 Pedro Alves <palves@redhat.com>
6372 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6373 (remote_insert_watchpoint, remote_remove_watchpoint)
6374 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6375 (remote_verify_memory, compare_sections_command)
6376 (remote_search_memory): Set the general process/thread on the
6379 2013-05-29 Pedro Alves <palves@redhat.com>
6381 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6382 (_initialize_aarch64_tdep): Don't call
6383 initialize_tdesc_aarch64_without_fpu.
6384 * features/Makefile (WHICH): Remove reference to
6385 aarch64-without-fpu.
6386 * features/aarch64-without-fpu.c: Delete file.
6387 * regformats/aarch64-without-fpu.dat: Delete file.
6389 2013-05-28 Yao Qi <yao@codesourcery.com>
6391 * tracepoint.c (stringify_collection_list): Remove parameter
6393 (encode_actions): Caller update. Remove local variables.
6395 2013-05-24 Yao Qi <yao@codesourcery.com>
6397 * tracepoint.c (TFILE_PID): Remove.
6398 (tfile_open): Don't add thread and inferior.
6399 (tfile_close): Don't set 'inferior_ptid'. Don't call
6400 exit_inferior_silent.
6401 (tfile_thread_alive): Remove.
6402 (init_tfile_ops): Don't set field 'to_thread_alive' of
6405 2013-05-23 Doug Evans <dje@google.com>
6407 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6409 2013-05-23 Pedro Alves <palves@redhat.com>
6411 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6412 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6413 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6414 Only define if HAVE_SOCKETS is defined.
6415 * configure.ac: Check for sys/socket.h.
6416 * config.in, configure: Regenerate.
6418 2013-05-23 Pedro Alves <palves@redhat.com>
6420 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6421 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6422 printing uint32_t variables.
6424 2013-05-23 Pedro Alves <palves@redhat.com>
6426 * NEWS: Mention GDBserver range stepping support.
6428 2013-05-23 Yao Qi <yao@codesourcery.com>
6429 Pedro Alves <palves@redhat.com>
6431 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6433 * infcmd.c (step_once, until_next_command): Enable range stepping.
6434 * infrun.c (displaced_step_prepare): Disable range stepping.
6435 (resume): Disable range stepping if stepping over a breakpoint or
6436 we have software watchpoints. If range stepping is enabled,
6437 assert the thread is in the stepping range.
6438 (clear_proceed_status_thread): Clear may_range_step.
6439 (handle_inferior_event): Disable range stepping as soon as we know
6440 the thread that hit the event. Re-enable it whenever we're going
6441 to step with a step range.
6442 * remote.c (struct vCont_action_support) <r>: New field.
6443 (use_range_stepping): New global.
6444 (remote_vcont_probe): Handle 'r' action.
6445 (append_resumption): Append an 'r' action if the thread may range
6447 (show_range_stepping): New function.
6448 (set_range_stepping): New function.
6449 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6450 'set range-stepping' and 'show range-stepping' commands.
6451 * NEWS: Mention range stepping, the new vCont;r action, and the
6452 new "set/show range-stepping" commands.
6454 2013-05-23 Yao Qi <yao@codesourcery.com>
6455 Pedro Alves <palves@redhat.com>
6457 * remote.c (struct vCont_action_support): New struct.
6458 (struct remote_state) <support_vCont_t>: Remove field.
6459 <vCont_actions_support>: New field.
6460 (remote_vcont_probe, remote_stop_ns): Update.
6462 2013-05-23 Yao Qi <yao@codesourcery.com>
6463 Pedro Alves <palves@redhat.com>
6465 * gdbthread.h (pc_in_thread_step_range): New declaration.
6466 * thread.c (pc_in_thread_step_range): New function.
6467 * infrun.c (handle_inferior_event): Use it.
6469 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6471 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6474 2013-05-22 Keith Seitz <keiths@redhat.com>
6476 * ada-lang.c (is_known_support_routine): Add explicit free of
6477 'func_name' from find_frame_funname.
6478 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6479 for func_name from find_frame_funname.
6480 * python/py-frame.c (frapy_name): Add explicit free of
6481 'name' from find_frame_funname.
6482 * stack.c (find_frame_funname): Add comment explaining that
6483 funcp must be freed by the caller.
6484 Return copy of symbol names instead of pointers.
6485 (print_frame): Add a cleanup for 'funname' from
6487 * stack.h (find_frame_funname): Remove "const" from
6488 'funname' parameter.
6490 2013-05-22 Tom Tromey <tromey@redhat.com>
6493 * c-valprint.c (c_value_print): Use value_addr for
6494 references. Convert back to reference type with value_ref.
6496 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6498 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6499 unloaded DLL, it will be done by handle_solib_event. See
6500 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6503 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6505 * ui-out.c: Create typedef ui_out_level_p and define vector
6506 operations for that type.
6507 (struct ui_out): Use a vector instead of an array.
6508 (current_level): Return level from a vector.
6509 (push_level): Create a level in a vector.
6510 (pop_level): Delete a level in a vector.
6511 (ui_out_new): Create initial level zero level, and store in a
6513 (ui_out_destroy): Add vector cleanup.
6515 2013-05-22 Pedro Alves <palves@redhat.com>
6517 * python/python-internal.h (gdb_Py_DECREF): Tag with
6518 "ARI: editCase function".
6520 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6522 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6524 2013-05-21 Pedro Alves <palves@redhat.com>
6526 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6527 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6528 * python/py-utils.c (py_decref): Don't check for NULL before
6531 2013-05-21 Pedro Alves <palves@redhat.com>
6533 * python/py-utils.c (py_decref): Remove extra braces.
6534 (gdb_pymodule_addobject): Remove extra braces.
6535 * python-internal.h (gdb_Py_DECREF): New static inline function.
6536 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6538 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6540 * breakpoints.c (detach_breakpoints): Do not
6541 detach breakpoints locations with loc_type bp_loc_other.
6543 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6545 Workaround Python 2.6.
6546 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6549 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6551 Code cleanup: constification.
6552 * solib.c (solib_ops): Make return type and ops variable type const.
6553 (set_solib_ops): Make the new_ops parameter and ops variable const.
6554 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6555 (solib_add, solib_keep_data_in_core, clear_solib)
6556 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6557 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6559 * solib.h (set_solib_ops): Make the new_ops parameter const.
6561 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6563 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6565 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6566 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6567 (SYSTEM_GDBINIT_FILES): New variables.
6568 (all): Add stamp-system-gdbinit.
6569 (stamp-system-gdbinit): New rule.
6570 (clean-system-gdbinit, install-system-gdbinit)
6571 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6572 (install-only): Add dependency on install-system-gdbinit.
6573 (uninstall): Add dependency on uninstall-system-gdbinit.
6574 (clean): Add dependency on clean-system-gdbinit.
6575 * system-gdbinit/elinos.py: New file.
6576 * system-gdbinit/wrs-linux.py: New file.
6578 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6580 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6582 2013-05-21 Hui Zhu <hui@codesourcery.com>
6584 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6585 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6586 * mi/mi-cmd-break.c (ctype.h): New include.
6587 (gdb_obstack.h): New include.
6588 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6589 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6590 (mi_cmd_dprintf_insert): New.
6591 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6592 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6594 2013-05-20 Tom Tromey <tromey@redhat.com>
6596 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6598 2013-05-20 Tom Tromey <tromey@redhat.com>
6600 * python/py-value.c (valpy_get_dynamic_type): Simplify
6601 dynamic_type assignment. Use Py_XINCREF.
6603 2013-05-20 Tom Tromey <tromey@redhat.com>
6605 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6607 2013-05-20 Tom Tromey <tromey@redhat.com>
6609 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6610 (gdbpy_selected_frame): Move object-construction code
6613 2013-05-20 Tom Tromey <tromey@redhat.com>
6615 * python/py-arch.c (gdbpy_initialize_arch): Use
6616 gdb_pymodule_addobject.
6617 * python/py-block.c (gdbpy_initialize_blocks): Use
6618 gdb_pymodule_addobject.
6619 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6620 gdb_pymodule_addobject.
6621 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6622 gdb_pymodule_addobject.
6623 * python/py-event.c (gdbpy_initialize_event_generic): Use
6624 gdb_pymodule_addobject.
6625 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6626 gdb_pymodule_addobject.
6627 * python/py-evts.c (add_new_registry): Use
6628 gdb_pymodule_addobject.
6629 (gdbpy_initialize_py_events): Likewise.
6630 * python/py-finishbreakpoint.c
6631 (gdbpy_initialize_finishbreakpoints): Use
6632 gdb_pymodule_addobject.
6633 * python/py-frame.c (gdbpy_initialize_frames): Use
6634 gdb_pymodule_addobject.
6635 * python/py-function.c (gdbpy_initialize_functions): Use
6636 gdb_pymodule_addobject.
6637 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6638 gdb_pymodule_addobject.
6639 * python/py-infthread.c (gdbpy_initialize_thread): Use
6640 gdb_pymodule_addobject.
6641 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6642 gdb_pymodule_addobject.
6643 * python/py-param.c (gdbpy_initialize_parameters): Use
6644 gdb_pymodule_addobject.
6645 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6646 gdb_pymodule_addobject.
6647 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6648 gdb_pymodule_addobject.
6649 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6650 gdb_pymodule_addobject.
6651 * python/py-type.c (gdbpy_initialize_types): Use
6652 gdb_pymodule_addobject.
6653 * python/py-utils.c (gdb_pymodule_addobject): New function.
6654 * python/py-value.c (gdbpy_initialize_values): Use
6655 gdb_pymodule_addobject.
6656 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6657 * python/python.c (_initialize_python): Use
6658 gdb_pymodule_addobject.
6660 2013-05-20 Tom Tromey <tromey@redhat.com>
6662 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6663 * python/py-param.c (get_set_value, get_show_value): Use
6665 * python/python.c (start_type_printers, apply_type_printers):
6666 Use explicit decrefs.
6668 2013-05-20 Tom Tromey <tromey@redhat.com>
6670 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6673 2013-05-20 Tom Tromey <tromey@redhat.com>
6675 * python/python.c (gdbpy_run_events): Decref the result
6676 of PyObject_CallObject.
6678 2013-05-20 Tom Tromey <tromey@redhat.com>
6680 * python/py-symtab.c (set_sal): Use
6681 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6682 (symtab_and_line_to_sal_object): Update.
6684 2013-05-20 Tom Tromey <tromey@redhat.com>
6686 * python/py-param.c (compute_enum_values): Decref 'item'.
6688 2013-05-20 Tom Tromey <tromey@redhat.com>
6690 * mi/mi-main.c: Include python-internal.h.
6691 (mi_cmd_list_features): Check gdb_python_initialized.
6692 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6693 (python_inferior_exit, python_new_objfile, add_thread_object)
6694 (delete_thread_object, py_free_inferior): Check
6695 gdb_python_initialized.
6696 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6697 gdb_python_initialized.
6698 * python/py-type.c (save_objfile_types): Check
6699 gdb_python_initialized.
6700 * python/python-internal.h (gdb_python_initialized): Declare.
6701 * python/python.c (ensure_python_env): Throw exception if
6702 Python not initialized.
6703 (before_prompt_hook, source_python_script_for_objfile)
6704 (start_type_printers, apply_type_printers,
6705 free_type_printers): Check gdb_python_initialized.
6706 * varobj.c (varobj_get_display_hint)
6707 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6708 (install_new_value_visualizer, varobj_set_visualizer)
6709 (value_get_print_value): Check gdb_python_initialized.
6711 2013-05-20 Tom Tromey <tromey@redhat.com>
6713 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6715 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6716 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6718 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6720 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6722 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6724 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6725 init function to return 'int'.
6726 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6727 Return 'int'. Check errors.
6728 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6730 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6731 Return 'int'. Check errors.
6732 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6734 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6736 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6738 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6740 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6742 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6744 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6746 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6748 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6750 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6752 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6754 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6756 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6758 * python/python-internal.h (gdbpy_initialize_auto_load,
6759 gdbpy_initialize_values, gdbpy_initialize_frames,
6760 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6761 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6762 gdbpy_initialize_blocks, gdbpy_initialize_types,
6763 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6764 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6765 gdbpy_initialize_finishbreakpoints,
6766 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6767 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6768 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6769 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6770 gdbpy_initialize_signal_event,
6771 gdbpy_initialize_breakpoint_event,
6772 gdbpy_initialize_continue_event,
6773 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6774 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6775 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6776 * python/python.c (gdb_python_initialized): New global.
6777 (gdbpy_initialize_events): Return 'int'. Check errors.
6778 (_initialize_python): Check errors. Set
6779 gdb_python_initialized.
6781 2013-05-20 Tom Tromey <tromey@redhat.com>
6783 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6784 Decref the reslut of PyObject_CallMethod.
6786 2013-05-20 Tom Tromey <tromey@redhat.com>
6788 * python/py-event.c (gdbpy_initialize_event_generic): Return
6789 early if PyType_Ready fails.
6791 2013-05-20 Tom Tromey <tromey@redhat.com>
6793 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6794 as 'default' in the switch.
6796 2013-05-20 Tom Tromey <tromey@redhat.com>
6798 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6799 get_addr_from_python calls out of TRY_CATCH.
6800 (infpy_write_memory, infpy_search_memory): Likewise.
6801 * python/py-utils.c (get_addr_from_python): Return negative
6802 value on error. Use TRY_CATCH.
6803 * python/python-internal.h (get_addr_from_python): Use
6804 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6806 2013-05-20 Tom Tromey <tromey@redhat.com>
6808 * python/py-event.c (evpy_emit_event): Decref the
6809 result of PyObject_CallFunctionObjArgs.
6811 2013-05-20 Tom Tromey <tromey@redhat.com>
6813 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6816 2013-05-20 Tom Tromey <tromey@redhat.com>
6818 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6820 2013-05-20 Tom Tromey <tromey@redhat.com>
6822 * python/py-event.h (gdbpy_initialize_event_generic): Use
6823 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6824 * python/py-evts.c (add_new_registry): Use
6825 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6826 * python/python-internal.h
6827 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6829 2013-05-20 Tom Tromey <tromey@redhat.com>
6831 * python/py-arch.c (archpy_disassemble): Update.
6832 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6833 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6834 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6835 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6837 (GDB_PY_HANDLE_EXCEPTION): Update.
6838 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6840 2013-05-20 Tom Tromey <tromey@redhat.com>
6842 * python/python-internal.h (events_object_type): Remove.
6844 2013-05-20 Tom Tromey <tromey@redhat.com>
6846 * python/py-event.h (evpy_emit_event): Use
6847 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6848 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6851 2013-05-20 Tom Tromey <tromey@redhat.com>
6853 * py-evtregistry.c (create_event_object): Decref
6854 eventregistry_object if PyList_New fails.
6856 2013-05-20 Tom Tromey <tromey@redhat.com>
6858 * py-cmd.c (gdbpy_string_to_argv): Check result of
6861 2013-05-20 Tom Tromey <tromey@redhat.com>
6863 * python/python.c (before_prompt_hook): Add cleanup to
6866 2013-05-20 Tom Tromey <tromey@redhat.com>
6868 * python/py-function.c (fnpy_init): Decref result of
6869 PyObject_GetAttrString.
6871 2013-05-20 Tom Tromey <tromey@redhat.com>
6873 * python/py-threadevent.c (get_event_thread): Use
6874 CPYCHECKER_RETURNS_BORROWED_REF.
6875 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6877 (pspace_to_pspace_object, objfile_to_objfile_object)
6878 (find_thread_object): Use it.
6880 2013-05-20 Tom Tromey <tromey@redhat.com>
6882 * python/py-arch.c (arch_object_type): Use
6883 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6884 * python/py-block.c (block_syms_iterator_object_type):
6885 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6886 * python/py-bpevent.c (breakpoint_event_object_type):
6887 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6888 * python/py-cmd.c (cmdpy_object_type): Use
6889 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6890 * python/py-continueevent.c (continue_event_object_type):
6891 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6892 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6893 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6894 * python/py-events.h (thread_event_object_type):
6895 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6896 * python/py-evtregistry.c (eventregistry_object_type): Use
6897 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6898 * python/py-exitedevent.c (exited_event_object_type):
6899 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6900 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6901 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6902 * python/py-function.c (fnpy_object_type): Use
6903 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6904 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6905 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6906 * python/py-infthread.c (thread_object_type): Use
6907 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6908 * python/py-lazy-string.c (lazy_string_object_type):
6909 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6910 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6911 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6912 * python/py-objfile.c (objfile_object_type): Use
6913 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6914 * python/py-param.c (parmpy_object_type):
6915 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6916 * python/py-progspace.c (pspace_object_type):
6917 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6918 * python/py-signalevent.c (signal_event_object_type):
6919 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6920 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6921 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6922 * python/py-type.c (type_object_type, field_object_type)
6923 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6924 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6926 (value_object_type, block_object_type, symbol_object_type)
6927 (event_object_type, stop_event_object_type, breakpoint_object_type)
6928 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6930 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6932 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6933 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6935 2013-05-20 Doug Evans <dje@google.com>
6937 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6939 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6940 reading_dwo_directly.
6941 (struct signatured_type): New member dwo_unit.
6942 (struct die_reader_specs): New member comp_dir.
6943 (create_signatured_type_table_from_index): Use malloc for
6944 all_type_units instead of objfile's obstack.
6945 (create_all_type_units): Ditto.
6946 (fill_in_sig_entry_from_dwo_entry): New function.
6947 (add_type_unit): New function.
6948 (lookup_dwo_signatured_type): New function.
6949 (lookup_dwp_signatured_type): New function.
6950 (lookup_signatured_type): New arg cu. All callers updated.
6951 (init_cu_die_reader): Initialize comp_dir.
6952 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6953 Change assert of matching type signatures to call error on mismatch.
6954 (lookup_dwo_unit): Add assert.
6955 (init_tu_and_read_dwo_dies): New function.
6956 (init_cutu_and_read_dies): Call it.
6957 (build_type_unit_groups): Handle case of no type unit groups created.
6958 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6959 (lookup_dwo_cutu): Tweak complaint.
6960 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6961 (dwarf2_per_objfile_free): Free all_type_units.
6963 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6965 * windows-nat.c (handle_unload_dll): Add missing empty line.
6967 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6969 * dwarf2read.c (prototyped_function_p): New function.
6970 (read_subroutine_type): Use it.
6972 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6974 * rs6000-aix-tdep.c: De-indent some example code provided
6977 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6979 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6980 region is ok for a hardware watchpoint using the new ptrace interface
6983 2013-05-17 Doug Evans <dje@google.com>
6985 * NEWS: Mention new maintenance commands check-symtabs, and
6986 expand-symtabs, and renamed check-psymtabs.
6987 * psymtab.c (maintenance_check_psymtabs): Renamed from
6988 maintenance_check_symtabs. Only process already-expanded symbol
6990 (_initialize_psymtab): Update.
6991 * symmisc.c (maintenance_check_symtabs): New function.
6992 (maintenance_expand_name_matcher): New function
6993 (maintenance_expand_file_matcher): New function
6994 (maintenance_expand_symtabs): New function.
6995 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6998 2013-05-17 Tom Tromey <tromey@redhat.com>
7000 * python/py-inferior.c (infpy_read_memory): Don't call
7001 PyErr_SetString if PyObject_New fails.
7002 * python/py-frame.c (frame_info_to_frame_object): Don't call
7003 PyErr_SetString if PyObject_New fails.
7005 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7007 * acinclude.m4: Add check for dlopen in libdl.
7008 * configure.ac: Ditto.
7009 * configure: Regenerate.
7011 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7013 * frame.c (frame_stash): Convert to htab.
7014 (frame_addr_hash): New function.
7015 (frame_addr_hash_eq): New function.
7016 (frame_stash_create): Convert function to create
7018 (frame_stash_add): Convert function to add an entry to a hash
7020 (frame_stash_find): Convert function to search the hash table.
7021 (frame_stash_invalidate): Convert function to empty the hash
7023 (get_frame_id): Only add to stash if a frame_id is created.
7024 (_initialize_frame): Call frame_stash_create.
7026 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7028 * configure.ac: Ensure MIG is available when building for GNU Hurd
7030 * configure: Regenerate.
7032 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7034 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7036 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7038 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7039 all cleanups are done before returning from this function.
7041 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7043 * utils.h: #include "exceptions.h".
7044 (enum errors): Remove partial declaration.
7046 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7048 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7049 * gdbarch.h, gdbarch.c: Regenerate.
7050 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7053 * rs6000-aix-tdep.h: New file.
7054 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7055 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7057 (struct field_info, struct ld_info_desc): New types.
7058 (ld_info32_desc, ld_info64_desc): New static constants.
7059 (struct ld_info): New type.
7060 (rs6000_aix_extract_ld_info): New function.
7061 (rs6000_aix_shared_library_to_xml): Likewise.
7062 (rs6000_aix_ld_info_to_xml): Likewise.
7063 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7064 (rs6000_aix_init_osabi): Add call to
7065 set_gdbarch_core_xfer_shared_libraries_aix.
7066 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7067 Remove "xml-utils.h" include.
7068 (LdInfo): Delete typedef.
7069 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7071 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7072 Adjust code accordingly.
7073 (rs6000_core_ldinfo): Delete, folded into
7074 rs6000_aix_core_xfer_shared_libraries_aix.
7075 (rs6000_xfer_shared_library): Delete.
7076 (rs6000_xfer_shared_libraries): Reimplement.
7078 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7080 * record.c (record_goto_cmdlist): New.
7081 (cmd_record_goto): Split into this ...
7082 (cmd_record_goto_begin): ... this
7083 (cmd_record_goto_end): ... and this.
7084 (_initialize_record): Change "record goto" to prefix command.
7085 Add commands for "record goto begin" and "record goto end".
7086 Add an alias for "record goto start" to "record goto begin".
7088 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7090 * linespec.c (convert_linespec_to_sals): New comment for
7091 SOURCE_FILENAME assignment.
7093 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7095 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7098 2013-05-14 Tom Tromey <tromey@redhat.com>
7100 * eval.c (parse_and_eval_long): Make 'exp' const.
7101 * value.h (parse_and_eval_long): Update.
7103 2013-05-14 Tom Tromey <tromey@redhat.com>
7105 * ui-file.c (gdb_fopen): Make arguments const.
7106 * ui-file.h (gdb_fopen): Make arguments const.
7108 2013-05-14 Tom Tromey <tromey@redhat.com>
7110 * remote.c (remote_set_trace_notes): Make arguments const.
7111 * target.c (update_current_target): Update cast.
7112 * target.h (to_set_trace_notes): Make arguments const.
7114 2013-05-14 Tom Tromey <tromey@redhat.com>
7116 * go32-nat.c (go32_terminal_info): Make 'args' const.
7117 * inferior.h (child_terminal_info): Update.
7118 * inflow.c (child_terminal_info): Make 'args' const.
7119 * target.c (default_terminal_info): Make 'args' const.
7120 (debug_to_terminal_save_ours): Likewise.
7121 * target.h (struct target_ops) <to_terminal_info>: Make argument
7124 2013-05-13 Tom Tromey <tromey@redhat.com>
7126 * gcore.c (create_gcore_bfd): Make 'filename' const.
7127 * gcore.h (create_gcore_bfd): Make 'filename' const.
7128 * record-full.c (record_full_save): Make 'recfilename' const.
7129 * target.c (target_save_record): Make 'filename' const.
7130 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7132 (target_save_record): Likewise.
7134 2013-05-13 Tom Tromey <tromey@redhat.com>
7137 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7138 ranges section has been read.
7140 2013-05-13 Tom Tromey <tromey@redhat.com>
7143 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7144 STRUCTOP_PTR>: Return a not_lval value for
7145 EVAL_AVOID_SIDE_EFFECTS.
7146 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7147 for EVAL_AVOID_SIDE_EFFECTS.
7149 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7151 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7152 floating point registers to register type before storing
7154 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7157 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7158 Tom Tromey <tromey@redhat.com>
7160 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7162 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7164 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7165 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7166 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7167 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7169 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7170 Tom Tromey <tromey@redhat.com>
7173 * configure: Rebuild.
7174 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7177 2013-05-10 Pedro Alves <palves@redhat.com>
7179 * remote.c (_initialize_remote): Fix spelling of
7180 qXfer:traceframe-info:read packet in packet config command.
7182 2013-05-10 David Taylor <dtaylor@emc.com>
7186 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7187 "QTro" at start of packet.
7189 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7191 * solib-aix.c (solib_aix_relocate_section_addresses):
7192 For the .bss section action, apply the same offset as
7195 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7197 * solib-aix.c (solib_aix_relocate_section_addresses):
7198 Remove FIXME comment.
7200 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7203 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7204 New functions, directly copied from sparc-sol-thread.c.
7205 * sparc-sol-thread.c: Delete.
7206 * configure.ac: Remove code handling sparc-solaris-thread.c.
7207 * configure: Regenerate.
7209 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7211 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7213 (backtrace_command): Add "no-filters" option parsing.
7214 (_initialize_stack): Alter help to reflect "no-filters" option.
7215 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7216 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7217 (py-frame.o): Add target
7218 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7220 * python/python.h: Add new frame filter constants, and flag enum.
7221 (apply_frame_filter): Add definition.
7222 * python/python.c (apply_frame_filter): New non-Python
7224 * python/py-utils.c (py_xdecref): New function.
7225 (make_cleanup_py_xdecref): Ditto.
7226 * python/py-objfile.c: Declare frame_filters dictionary.
7227 (objfpy_dealloc): Add frame_filters dealloc.
7228 (objfpy_new): Initialize frame_filters attribute.
7229 (objfile_to_objfile_object): Ditto.
7230 (objfpy_get_frame_filters): New function.
7231 (objfpy_set_frame_filters): New function.
7232 * python/py-progspace.c: Declare frame_filters dictionary.
7233 (pspy_dealloc): Add frame_filters dealloc.
7234 (pspy_new): Initialize frame_filters attribute.
7235 (pspacee_to_pspace_object): Ditto.
7236 (pspy_get_frame_filters): New function.
7237 (pspy_set_frame_filters): New function.
7238 * python/py-framefilter.c: New file.
7239 * python/lib/gdb/command/frame_filters.py: New file.
7240 * python/lib/gdb/frames.py: New file.
7241 * python/lib/gdb/__init__.py: Initialize global frame_filters
7243 * python/lib/gdb/FrameDecorator.py: New file.
7244 * python/lib/gdb/FrameIterator.py: New file.
7245 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7246 * mi/mi-cmds.h: Declare.
7247 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7248 --no-frame-filter logic, and Python frame filter logic.
7249 (stack_enable_frame_filters): New function.
7250 (parse_no_frame_option): Ditto.
7251 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7253 (mi_cmd_stack_list_locals): Ditto.
7254 (mi_cmd_stack_list_args): Ditto.
7255 (mi_cmd_stack_list_variables): Ditto.
7256 * NEWS: Add frame filter note.
7258 2013-05-09 Doug Evans <dje@google.com>
7260 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7261 All callers updated.
7262 (syms_from_objfile): Ditto. Make static.
7263 (symbol_file_add_with_addrs): Renamed from
7264 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7265 num_offsets. All callers updated.
7266 * symfile.h (syms_from_objfile): Delete.
7268 * symfile.c (decrement_reading_symtab): Add assert.
7269 (increment_reading_symtab): Ditto.
7271 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7273 * source.c (forward_search_command): Replace call to getc
7275 (reverse_search_command): Likewise.
7277 2013-05-08 Doug Evans <dje@google.com>
7279 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7282 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7284 * sol-thread.c (info_cb): Factorize the code a little.
7286 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7288 * sol-thread.c (info_cb): Rework the output of the "maintenance
7289 info sol-threads" command a bit.
7291 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7293 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7294 Replace ti.ti_startfunc by ti.ti_pc.
7296 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7298 * solib-aix.c (solib_aix_free_library_list): New function
7299 for the case where HAVE_LIBEXPAT is not defined.
7301 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7303 PR breakpoints/15413:
7304 * breakpoint.c (condition_completer): Simplify the code to
7305 disconsider multiple locations of breakpoints when completing the
7306 "condition" command.
7308 2013-05-07 Pierre Muller <muller@sourceware.org>
7310 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7311 instead of <sys/wait.h>.
7313 2013-05-07 Pierre Muller <muller@sourceware.org>
7315 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7316 trailing new line from warning message.
7318 2013-05-07 Pierre Muller <muller@sourceware.org>
7320 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7321 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7323 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7325 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7326 error message (ARI fix).
7328 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7330 * features/library-list-aix.dtd: Replace library-list by
7332 * rs6000-nat.c: Replace library-list by library-list-aix
7334 * solib-aix.c: Likewise.
7336 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7338 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7339 Renames TARGET_OBJECT_AIX_LIBRARIES.
7340 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7341 TARGET_OBJECT_LIBRARIES_AIX throughout.
7342 * solib-aix.c: Likwise.
7344 2013-05-07 Yao Qi <yao@codesourcery.com>
7346 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7347 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7349 2013-05-07 Yao Qi <yao@codesourcery.com>
7351 * solib-dsbt.c (enable_break): Declare.
7352 (dsbt_current_sos): Remove call to enable_break2.
7353 (enable_break2): Rename to enable_break. Set solib breakpoint
7354 on '_dl_debug_state'.
7355 (enable_break): Remove.
7357 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7359 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7360 debug state prior to replicating existing hardware watchpoints or
7363 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7365 * gcore.c (gcore_create_callback): Ignore sections with
7366 separate_debug_objfile_backlink != NULL.
7368 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7369 Andrew Jenner <andrew@codesourcery.com>
7370 Chung-Lin Tang <cltang@codesourcery.com>
7371 Julian Brown <julian@codesourcery.com>
7373 Based on the nios2-elf port from Altera Corporation.
7375 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7377 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7378 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7379 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7380 * nios2-tdep.h: New.
7381 * nios2-tdep.c: New.
7382 * nios2-linux-tdep.c: New.
7383 * features/Makefile (WHICH): Add nios2-linux.
7384 (nios2-linux-expedite): Set.
7385 * features/nios2-cpu.xml: New.
7386 * features/nios2.xml: New.
7387 * features/nios2-linux.xml: New.
7388 * features/nios2.c: New (autogenerated).
7389 * features/nios2-linux.c: New (autogenerated).
7390 * regformats/nios2-linux.dat: New (autogenerated).
7391 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7394 2013-05-06 Doug Evans <dje@google.com>
7396 * symfile.c: Whitespace cleanup.
7398 * solist.h (struct target_so_ops): New member clear_so.
7399 * solib-svr4.c (svr4_clear_so): New function.
7400 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7401 * solib.c (clear_so): Renamed from free_so_symbols.
7402 All callers updated. Call target clear_so if it exists.
7404 2013-05-06 Tom Tromey <tromey@redhat.com>
7406 * ada-lang.c (ada_value_primitive_packed_val): Don't
7408 * value.c (set_value_parent): Incref the new parent and decref
7410 (value_copy, value_primitive_field): Use set_value_parent.
7412 2013-05-06 Tom Tromey <tromey@redhat.com>
7414 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7415 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7417 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7418 * dwarf2read.c (write_constant_as_bytes)
7419 (dwarf2_fetch_constant_bytes): New functions.
7421 2013-05-06 Tom Tromey <tromey@redhat.com>
7423 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7425 (dwarf2_const_value_attr): Update.
7427 2013-05-06 Tom Tromey <tromey@redhat.com>
7429 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7430 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7431 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7434 2013-05-06 Tom Tromey <tromey@redhat.com>
7436 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7439 2013-05-06 Doug Evans <dje@google.com>
7441 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7442 * stabsread.h (process_one_symbol): Update declaration.
7443 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7444 * elfread.c (elf_symfile_relocate_probe): Ditto.
7445 * psymtab.c (relocate_psymtabs): Ditto.
7446 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7447 (objfile_relocate): Ditto.
7448 * objfiles.h (objfile_relocate): Update declaration.
7449 * symfile.c (relative_addr_info_to_section_offsets): Constify
7451 (default_symfile_offsets): Ditto.
7452 (syms_from_objfile_1): Constify offsets parameter.
7453 (syms_from_objfile): Ditto.
7454 (symbol_file_add_with_addrs_or_offsets): Ditto.
7455 (symfile_map_offsets_to_segments): Constify data parameter.
7456 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7457 delta parameters of member relocate.
7458 (struct sym_probe_fns): Constify new_offsets,
7459 delta parameters of member sym_relocate_probe.
7460 (struct sym_fns): Constify section_addr_info parameter of member
7462 (relative_addr_info_to_section_offsets): Update declaration.
7463 (default_symfile_offsets): Ditto.
7464 (syms_from_objfile): Ditto.
7465 (symfile_map_offsets_to_segments): Ditto.
7467 * symfile.c (syms_from_objfile_1): Use correct section count when
7468 objfile->sf == NULL.
7470 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7472 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7474 2013-05-06 Doug Evans <dje@google.com>
7476 * psympriv.h (struct partial_symtab): Augment comment for member
7479 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7481 Reimplement shared library support on ppc-aix...
7482 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7483 * features/library-list-aix.dtd: New file.
7484 * solib-aix.h, solib-aix.c: New file.
7485 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7486 (rs6000_find_toc_address_hook): Delete.
7487 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7488 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7489 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7491 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7492 (vmap_symtab, fixup_breakpoints): Delete.
7493 (rs6000_xfer_shared_libraries): New function.
7494 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7495 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7496 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7497 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7498 (rs6000_xfer_shared_library): New function.
7499 (find_toc_address): Delete.
7500 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7501 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7502 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7503 before creating minimal symbol. Adjust function description
7505 (scan_xcoff_symtab): Replace call to
7506 prim_record_minimal_symbol_and_info by call to
7507 record_minimal_symbol.
7508 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7509 around default_symfile_offsets.
7510 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7511 powerpc-aix targets.
7512 * config/rs6000/nm-rs6000.h: Delete.
7513 * config/powerpc/aix.mh (NAT_FILE): Delete.
7514 (NATDEPFILES): Remove xcoffsolib.o.
7515 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7516 (ALL_TARGET_OBS): Add solib-aix.o.
7517 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7518 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7519 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7520 * xcoffsolib.h, xcoffsolib.c: Delete.
7522 * solib.c (reload_shared_libraries): Remove reference to
7523 SOLIB_CREATE_INFERIOR_HOOK.
7524 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7525 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7526 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7528 * corelow.c (deprecated_core_resize_section_table): Delete.
7529 * exec.c: Remove include of xcoffsolib.h".
7530 (map_vmap, vmap): Delete.
7531 (exec_close_1): Remove references to vmap.
7532 (exec_file_attach): Remove vmap handling code, and reference
7533 to DEPRECATED_IBM6000_TARGET.
7534 (bfdsec_to_vmap): Delete.
7535 (exec_files_info): Remove block of code handling VMAP.
7536 * infcmd.c (post_create_inferior): Remove reference to
7537 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7538 * infrun.c (follow_exec): Remove reference to
7539 SOLIB_CREATE_INFERIOR_HOOK.
7540 * stack.c (print_frame): Remove reference to PC_SOLIB.
7541 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7542 (dsbt_relocate_main_executable): Likewise.
7543 * solib-frv.c (frv_current_sos): Likewise.
7545 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7547 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7548 to target_write_memory and target_read_memory.
7550 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7552 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7553 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7555 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7557 * darwin-nat.c: Replace all "%x" instances in format strings
7558 into "0x%x" throughout.
7560 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7562 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7563 gdb_assert by call to MACH_CHECK_ERROR.
7564 (darwin_attach_pid): Raise an error rather than a failed
7565 assertion when various system calls failed. Report a warning
7566 instead of raising a failed assertion when PREV_NOT is not NULL
7567 after call to mach_port_request_notification.
7568 (darwin_ptrace_me): Raise an error rather than a failed
7569 assertion when read returns nonzero.
7571 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7573 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7575 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7577 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7579 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7581 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7582 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7583 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7584 a stale cleanup. Fix double free of NAME.
7586 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7588 * windows-nat.c (windows_delete_thread): Accept an additional
7589 argument, the thread's exit code, and announce thread death when
7590 print_thread_events is non-zero and we are deleting a thread that
7591 is not the main thread.
7592 (get_windows_debug_event): Pass thread exit code to
7593 windows_delete_thread.
7595 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7597 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7598 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7599 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7600 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7601 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7602 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7603 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7604 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7605 (gdbarch_tdep): New struct.
7606 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7608 (v850e3v5_register_name): New function.
7609 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7610 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7611 code handling the struct return conventions for the RH850 ABI.
7613 (v850_eight_byte_align_p): New function.
7614 (v850_push_call_dummy): Push structs by value, not by reference
7615 for the RH850 ABI. Add support for eight byte alignment.
7616 (v850_dbtrap_breakpoint_from_pc): New function.
7617 (v850_gdbarch_init): Add ABI detection code. Register
7618 v850e3v5_register_name for the v850e3v5 architecture. Set the
7619 number of registers for v850e3v5. Register
7620 v850_dbtrap_breakpoint_from_pc as appropriate.
7621 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7623 2013-05-03 Doug Evans <dje@google.com>
7625 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7626 of bfd_count_sections.
7627 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7628 * symfile.c (default_symfile_offsets): Ditto.
7629 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7630 one entry, not bfd_count_sections entries.
7632 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7634 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7635 `save' and `restore' register groups. Don't include SPL
7636 or SPH in these groups.
7637 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7638 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7639 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7640 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7641 dwarf2_append_unwinders().
7643 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7645 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7646 ignore SIGINT and SIGTRAP in case these internal signals are
7649 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7651 * darwin-nat.c (darwin_read_write_inferior): Change types
7652 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7653 of copy_count to "mach_msg_type_number_t".
7654 (darwin_read_dyld_info): Change type of parameter
7655 rdaddr to "gdb_byte *".
7657 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7659 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7660 of &info->load_map from "char *" to "gdb_byte *".
7662 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7664 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7665 from "char *" to "gdb_byte *".
7666 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7668 2013-04-30 Doug Evans <dje@google.com>
7670 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7671 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7672 DWO stub. If DWO isn't found, just use stub.
7673 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7675 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7676 calling init_cutu_and_read_dies.
7678 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7680 * target-descriptions.c (maint_print_c_tdesc_cmd):
7681 Add case to parse structures as register types and
7684 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7686 * MAINTAINERS (Write After Approval): Add myself to the list.
7688 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7690 * sol-thread.c (rw_common): Change type of parameter "buf"
7692 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7693 rw_common to "gdb_byte *" instead of "char *".
7695 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7697 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7698 of local variable msym to const struct bound_minimal_symbol.
7699 Adjust use accordingly.
7700 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7702 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7704 * i386gnu-nat.c (CREG_OFFSET): New macro.
7705 (creg_offset): New array.
7706 (CREG_ADDR): Use creg_offset instead of reg_offset.
7708 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7710 * mep-tdep.c (mep_write_pc): Delete.
7711 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7712 Add call to set_gdbarch_pc_regnum.
7714 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7716 * common/filestuff.c: Replace #include <dirent.h> by
7717 #include "gdb_dirent.h".
7719 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7721 * common/filestuff.c: Replace #include <sys/stat.h> by
7722 #include "gdb_stat.h".
7724 2013-04-29 Pierre Muller <muller@sourceware.org>
7726 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7727 editCase function rule.
7728 (get_DW_AT_signature_type): Likewise.
7730 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7732 * m32r-tdep.c (m32r_write_pc): Delete.
7733 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7734 Add call to set_gdbarch_pc_regnum.
7736 2013-04-29 Pierre Muller <muller@sourceware.org>
7738 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7740 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7742 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7744 2013-04-28 Yao Qi <yao@codesourcery.com>
7746 * solib-dsbt.c (fetch_loadmap): Re-indent.
7747 (displacement_from_map, enable_break2): Likewise.
7748 (dsbt_relocate_section_addresses): Likewise.
7750 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7754 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7757 * dwarf2read.c (process_full_comp_unit): Always create a static
7760 2013-04-25 Hui Zhu <hui@codesourcery.com>
7762 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7763 to loc->cmd_bytecode.
7765 2013-04-24 Doug Evans <dje@google.com>
7767 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7769 2013-04-22 Keith Seitz <keiths@redhat.com>
7771 * tracepoint.c (trace_save): Call the writer's start method.
7773 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7776 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7779 2013-04-23 Tom Tromey <tromey@redhat.com>
7781 * common/filestuff.c: Check USE_WIN32API before including
7783 (HAVE_F_GETFD): New define.
7784 (mark_cloexec): Check HAVE_F_GETFD.
7785 (gdb_open_cloexec): Change 'mode' to unsigned long.
7786 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7787 (gdb_pipe_cloexec): Check HAVE_PIPE.
7788 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7791 2013-04-23 Hui Zhu <hui@codesourcery.com>
7794 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7796 2013-04-23 Hui Zhu <hui@codesourcery.com>
7799 * breakpoint.c (dprintf_print_recreate): New.
7800 (save_breakpoints): Let it not save dprintf commands.
7801 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7803 2013-04-22 Tom Tromey <tromey@redhat.com>
7806 * Makefile.in (SFILES): Add filestuff.c
7807 (COMMON_OBS): Add filestuff.o.
7808 (filestuff.o): New target.
7809 * auto-load.c (auto_load_objfile_script_1): Use
7811 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7812 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7813 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7814 * common/agent.c (gdb_connect_sync_socket): Use
7816 * common/filestuff.c: New file.
7817 * common/filestuff.h: New file.
7818 * common/linux-osdata.c (linux_common_core_of_thread)
7819 (command_from_pid, commandline_from_pid, print_source_lines)
7820 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7821 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7823 * common/linux-procfs.c (linux_proc_get_int)
7824 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7825 * config.in, configure: Rebuild.
7826 * configure.ac: Don't check for sys/socket.h. Check for
7828 * corelow.c (core_open): Use gdb_open_cloexec.
7829 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7830 * fork-child.c (fork_inferior): Call close_most_fds.
7831 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7832 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7833 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7834 Use gdb_fopen_cloexec.
7835 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7837 (linux_async_pipe): Use gdb_pipe_cloexec.
7838 * remote-fileio.c (remote_fileio_func_open): Use
7840 * remote.c (remote_file_put, remote_file_get): Use
7842 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7844 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7845 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7846 * solib.c (solib_find): Use gdb_open_cloexec.
7847 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7848 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7849 (tfile_open): Use gdb_open_cloexec.
7850 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7851 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7852 * xml-support.c (xml_fetch_content_from_file): Use
7854 * main.c (captured_main): Call notice_open_fds.
7856 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7858 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7859 'char *' to 'gdb_byte *'.
7860 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7863 2013-04-22 Yao Qi <yao@codesourcery.com>
7865 * infrun.c: Fix typo in comment.
7867 2013-04-22 Andrew Haley <aph@redhat.com>
7869 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7872 2013-04-20 Yao Qi <yao@codesourcery.com>
7874 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7875 'char *' to 'gdb_byte *'. Cast the return value of
7876 'bt_ctf_get_char_array' to 'gdb_byte *'.
7878 2013-04-19 Pedro Alves <palves@redhat.com>
7880 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7882 * configure: Regenerate.
7884 2013-04-19 Pedro Alves <palves@redhat.com>
7886 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7889 2013-04-19 Pedro Alves <palves@redhat.com>
7891 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7892 Change type of 'myaddr' parameter to gdb_byte pointer.
7893 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7894 to 'long long' pointer instead of to 'unsigned long long'.
7895 (monitor_write_memory_block, monitor_read_memory_single)
7896 (monitor_read_memory): Change type of 'myaddr' parameter to
7899 2013-04-19 Pedro Alves <palves@redhat.com>
7901 * record.c (validate_history_size): Make parameter 'setting'
7904 2013-04-19 Pedro Alves <palves@redhat.com>
7906 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7909 2013-04-19 Pedro Alves <palves@redhat.com>
7911 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7914 2013-04-19 Pedro Alves <palves@redhat.com>
7916 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7917 * ada-tasks.c (read_fat_string_value): Likewise.
7919 2013-04-19 Pedro Alves <palves@redhat.com>
7921 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7922 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7923 'offset', and adjust.
7925 2013-04-19 Pedro Alves <palves@redhat.com>
7927 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7928 (read_index_from_section): Add cast to 'char *'.
7930 2013-04-19 Pedro Alves <palves@redhat.com>
7932 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7934 2013-04-19 Pedro Alves <palves@redhat.com>
7936 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7938 2013-04-19 Pedro Alves <palves@redhat.com>
7940 * record-full.c (record_full_get_bookmark): Change local 'ret'
7941 type to char * and add cast to gdb_byte *.
7942 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7944 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7946 2013-04-19 Pedro Alves <palves@redhat.com>
7948 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7949 * python/py-prettyprint.c (print_string_repr): Change type of
7950 'output' local to char *. Add cast to gdb_byte * in
7951 LA_PRINT_STRING call.
7952 (print_children): Change type of 'output' local to char *.
7953 * python/py-value.c (valpy_string): Add cast to const char * in
7954 PyUnicode_Decode call.
7956 2013-04-19 Pedro Alves <palves@redhat.com>
7958 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7959 and change its type to 'const char *'. Adjust.
7960 (mips_send_packet): Add cast to 'char *', and remove cast to
7962 (mips_receive_packet): Remove cast to 'unsigned char *'.
7963 (mips_load_srec): Use bfd_byte.
7964 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7965 (pmon_checkset): Make 'value' parameter unsigned.
7967 2013-04-19 Pedro Alves <palves@redhat.com>
7969 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7971 2013-04-19 Pedro Alves <palves@redhat.com>
7973 * remote.c (remote_write_bytes_aux, compare_sections_command)
7975 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7976 (remote_hostio_readlink, remote_bfd_iovec_pread)
7977 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7978 binary buffer, and char when buffer is used as string.
7979 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7980 (trace_save, tfile_open, traceframe_walk_blocks)
7981 (tfile_fetch_registers): Likewise.
7983 2013-04-19 Pedro Alves <palves@redhat.com>
7985 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7986 buffer and size_t size. Adjust.
7987 * ser-base.h (ser_base_write): Adjust.
7988 * ser-go32.c (cnts): Change type to size_t.
7989 (dos_write): Change prototype -- take 'void *'
7990 buffer and size_t size. Adjust.
7991 (dos_info): Print elements of 'cnts' as unsigned long.
7992 * serial.c (serial_write): Likewise.
7993 * serial.h (serial_write): Adjust.
7994 (struct serial_ops) <write>: Change prototype -- take 'void *'
7995 buffer and size_t size. Adjust.
7997 2013-04-19 Pedro Alves <palves@redhat.com>
7999 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8001 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8003 2013-04-19 Pedro Alves <palves@redhat.com>
8005 * alpha-tdep.c (alpha_extract_return_value): Use
8006 regcache_cooked_read_unsigned to read 'v0'.
8008 2013-04-19 Pedro Alves <palves@redhat.com>
8010 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8011 parameters 'at', 'as' and 'offset' to uint32_t.
8013 2013-04-19 Pedro Alves <palves@redhat.com>
8015 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8016 'is64' to signed 'int'.
8018 2013-04-19 Pedro Alves <palves@redhat.com>
8020 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8023 2013-04-19 Pedro Alves <palves@redhat.com>
8025 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8026 'insnbuf' buffer type to unsigned int[].
8028 2013-04-19 Pedro Alves <palves@redhat.com>
8030 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8032 2013-04-19 Pedro Alves <palves@redhat.com>
8034 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8037 2013-04-19 Pedro Alves <palves@redhat.com>
8039 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8040 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8042 * mips-tdep.c (heuristic_fence_post): Change type to int.
8043 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8045 2013-04-19 Pedro Alves <palves@redhat.com>
8047 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8048 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8049 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8051 2013-04-19 Pedro Alves <palves@redhat.com>
8053 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8054 it to get a string view of the byte buffer.
8055 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8056 type to gdb_byte *. Adjust.
8057 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8058 Change local to char *.
8059 * solib-darwin.c (find_program_interpreter): Change return type to
8061 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8062 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8063 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8064 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8065 * solib-svr4.c (find_program_interpreter): Change return type to
8067 (enable_break): Change local 'interp_name' to char *.
8068 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8069 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8070 (spu_pseudo_register_write_spu): Use char for string buffer.
8072 (info_spu_event_command, info_spu_signal_command): Add casts to
8075 2013-04-19 Pedro Alves <palves@redhat.com>
8077 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8079 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8080 * ada-lang.c (ada_value_assign): Use gdb_byte.
8081 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8082 (alphanbsd_sigtramp_offset): Use gdb_byte.
8083 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8084 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8085 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8086 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8087 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8088 * arm-tdep.c (arm_stub_unwind_sniffer)
8089 (arm_displaced_init_closure): Use gdb_byte.
8090 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8091 (arm_default_thumb_le_breakpoint)
8092 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8093 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8094 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8095 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8096 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8097 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8098 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8099 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8100 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8101 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8102 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8103 (cris_store_return_value, cris_extract_return_value): Use
8105 (constraint): Change type of parameter to char * from signed
8106 char*. Use gdb_byte.
8107 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8108 of local buffer to gdb_byte *.
8109 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8110 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8111 (add_address_entry): Change type of local buffer to gdb_byte[].
8112 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8113 (frv_push_dummy_call): Use gdb_byte.
8114 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8115 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8116 (hppa_hpux_supply_save_state): Use gdb_byte.
8117 * hppa-tdep.c (hppa32_push_dummy_call)
8118 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8119 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8120 (slotN_contents, replace_slotN_contents): Change type of parameter
8122 (fetch_instruction, ia64_pseudo_register_write)
8123 (ia64_register_to_value, ia64_value_to_register)
8124 (ia64_extract_return_value, ia64_store_return_value)
8125 (ia64_push_dummy_call): Use gdb_byte.
8126 * m32c-tdep.c (m32c_return_value): Remove cast.
8127 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8128 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8130 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8131 * mn10300-tdep.c (mn10300_store_return_value)
8132 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8134 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8135 (moxie_process_record): Remove casts.
8136 * ppc-ravenscar-thread.c (supply_register_at_address)
8137 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8138 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8139 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8140 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8141 * remote.c (compare_sections_command): Use gdb_byte.
8142 * score-tdep.c (score7_free_memblock): Change type of parameter to
8144 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8145 gdb_byte *. Use gdb_byte.
8146 (sh_push_dummy_call_fpu): Use gdb_byte.
8147 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8148 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8149 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8150 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8151 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8152 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8153 (sh64_store_return_value, sh64_register_convert_to_virtual):
8154 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8155 (sh64_pseudo_register_write): Use gdb_byte.
8156 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8157 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8159 (irix_current_sos): Use gdb_byte.
8160 * solib-som.c (som_current_sos): Use gdb_byte.
8161 * sparc-ravenscar-thread.c (supply_register_at_address)
8162 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8163 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8164 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8165 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8167 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8169 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8170 * xstormy16-tdep.c (xstormy16_extract_return_value)
8171 (xstormy16_store_return_value): Change parameter type to
8172 'gdb_byte *'. Adjust.
8173 (xstormy16_push_dummy_call): Use gdb_byte.
8174 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8175 (call0_analyze_prologue, execute_code): Use gdb_byte.
8177 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8178 Pedro Alves <palves@redhat.com>
8180 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8183 2013-04-17 Doug Evans <dje@google.com>
8185 * dwarf2read.c (struct signatured_type): New member type.
8186 (struct attribute): Replace member signatured_type with signature.
8187 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8188 (read_call_site_scope): Call follow_die_ref instead of
8189 follow_die_ref_or_sig.
8190 (read_structure_type): Rewrite handling of signatured types.
8191 (read_enumeration_type): Ditto.
8192 (read_attribute_value): Update.
8193 (build_error_marker_type): New function.
8194 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8195 Don't call error for bad types, just build an error marker type.
8196 (dump_die_shallow): Update.
8197 (follow_die_sig_1): Renamed from follow_die_sig.
8198 Don't call error for bad types, instead return NULL.
8199 (follow_die_sig): New function.
8200 (get_signatured_type, get_DW_AT_signature_type): New functions.
8202 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8204 * aarch64-tdep.c (aarch64_write_pc): Removed.
8205 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8208 2013-04-17 Yao Qi <yao@codesourcery.com>
8210 * top.c (print_gdb_configuration): Print configure-time
8211 parameter on using libbabeltrace or not.
8213 2013-04-16 Pedro Alves <palves@redhat.com>
8215 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8217 2013-04-16 Pedro Alves <palves@redhat.com>
8219 * common/glibc_thread_db.h: Update from upstream glibc
8220 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8222 2013-04-16 Pedro Alves <palves@redhat.com>
8224 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8225 * common/glibc_thread_db.h: ... this new file ...
8226 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8228 2013-04-16 Will Newton <will.newton@gmail.com>
8229 Pedro Alves <palves@redhat.com>
8233 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8234 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8237 2013-04-16 Pedro Alves <palves@redhat.com>
8238 Eli Zaretskii <eliz@gnu.org>
8240 * NEWS: Mention "set foo unlimited".
8242 2013-04-15 Doug Evans <dje@google.com>
8244 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8245 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8246 (create_dwo_cu_reader): Renamed from
8247 create_dwo_debug_info_hash_table_reader.
8248 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8249 Remove support for multiple CUs in a DWO file.
8250 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8252 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8254 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8255 (create_dwo_in_dwp): Ditto.
8257 2013-04-15 Tom Tromey <tromey@redhat.com>
8259 * NEWS: Move recent entries into "since 7.6" section.
8261 2013-04-15 Tom Tromey <tromey@redhat.com>
8265 * break-catch-throw.c (struct exception_catchpoint)
8266 <exception_rx, pattern>: New fields.
8267 (fetch_probe_arguments, dtor_exception_catchpoint)
8268 (check_status_exception_catchpoint)
8269 (print_one_detail_exception_catchpoint): New functions.
8270 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8271 Compile regular expression if needed.
8272 (extract_exception_regexp): New function.
8273 (catch_exception_command_1): Use extract_exception_regexp.
8274 (compute_exception): Use fetch_probe_arguments.
8275 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8276 and check_status fields.
8277 * cp-abi.c (cplus_typename_from_type_info): New function.
8278 * cp-abi.h (cplus_typename_from_type_info): Declare.
8279 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8280 * gdb_regex.h (compile_rx_or_error): Declare.
8281 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8283 (init_gnuv3_ops): Set get_type_from_type_info field.
8284 * probe.c (compile_rx_or_error): Move...
8285 * utils.c (compile_rx_or_error): ... here.
8287 2013-04-15 Tom Tromey <tromey@redhat.com>
8291 * break-catch-throw.c (compute_exception): New function.
8292 (exception_funcs): New global.
8293 (_initialize_break_catch_throw): Create $_exception.
8294 * cp-abi.c (cplus_type_from_type_info): New function.
8295 * cp-abi.h (cplus_type_from_type_info): Declare.
8296 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8297 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8298 (gnuv3_get_type_from_type_info): New functions.
8299 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8301 2013-04-15 Tom Tromey <tromey@redhat.com>
8303 * break-catch-throw.c (struct exception_names): New.
8304 (exception_functions): Change type.
8305 (re_set_exception_catchpoint): Look for SDT probes.
8307 2013-04-15 Tom Tromey <tromey@redhat.com>
8310 * break-catch-throw.c (exception_functions): New global.
8311 (gnu_v3_exception_catchpoint_ops): Move earlier.
8312 (struct exception_catchpoint): New.
8313 (classify_exception_breakpoint): Rewrite.
8314 (re_set_exception_catchpoint): New function.
8315 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8316 Allocate a struct exception_catchpoint.
8317 (catch_exception_command_1): Update.
8318 (initialize_throw_catchpoint_ops): Set 're_set' method.
8320 2013-04-15 Tom Tromey <tromey@redhat.com>
8322 * Makefile.in (SFILES): Add break-catch-throw.c
8323 (COMMON_OBS): Add break-catch-throw.o.
8324 * break-catch-throw.c: New file.
8325 * breakpoint.c: Move exception-catching code to new file.
8326 (ep_parse_optional_if_clause): No longer static.
8327 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8329 2013-04-15 Tom Tromey <tromey@redhat.com>
8333 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8334 * c-exp.y (TYPEID): New token.
8335 (exp): Add new TYPEID productions.
8336 (ident_tokens): Add "typeid".
8337 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8338 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8339 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8340 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8341 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8343 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8344 (build_std_type_info_type, gnuv3_get_typeid_type)
8345 (gnuv3_get_typeid): New functions.
8346 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8347 new fields on ABI object.
8348 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8349 * std-operator.def (OP_TYPEID): New.
8351 2013-04-15 Tom Tromey <tromey@redhat.com>
8353 * elfread.c (elf_symtab_read): Install versioned symbol under
8354 unversioned name as well.
8356 2013-04-15 Tom Tromey <tromey@redhat.com>
8359 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8360 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8361 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8362 (gdb_demangle): New function.
8363 * cp-support.h (gdb_demangle): Declare.
8364 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8365 (dwarf2_name): Use gdb_demangle.
8366 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8367 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8369 (gnuv3_print_method_ptr): Use gdb_demangle.
8370 * jv-lang.c (java_demangle): Use gdb_demangle.
8371 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8372 * language.c (unk_lang_demangle): Use gdb_demangle.
8373 * symtab.c (symbol_find_demangled_name)
8374 (demangle_for_lookup): Use gdb_demangle.
8376 2013-04-15 Tom Tromey <tromey@redhat.com>
8380 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8382 (classify_exception_breakpoint): New function.
8383 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8384 (print_mention_exception_catchpoint)
8385 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8386 (catch_exception_command_1): Handle "rethrow" catchpoint.
8387 (catch_rethrow_command): New function.
8388 (_initialize_breakpoint): Add "catch rethrow" command.
8390 2013-04-15 Pierre Muller <muller@sourceware.org>
8392 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8393 set_gdbarch_write_pc as deprecated anymore.
8395 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8397 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8400 2013-04-13 Yao Qi <yao@codesourcery.com>
8402 * ctf.c (_initialize_ctf): Include "completer.h".
8403 Call add_target_with_completer instead of add_target.
8405 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8407 Fix GDB regression related to PR binutils/14813.
8408 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8409 * minidebug.c (lzma_close): Add return value comment.
8410 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8411 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8412 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8414 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8416 * config.in: Regenerate.
8418 2013-04-12 Tom Tromey <tromey@redhat.com>
8420 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8422 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8423 (struct die_reader_specs) <buffer>: Likewise.
8424 (die_reader_func_ftype): Make 'info_ptr' const.
8425 (struct line_header) <include_dirs, statement_program_start,
8426 statement_program_end>: Now const.
8427 (struct file_entry) <name>: Likewise.
8428 (struct partial_die_info) <sibling>: Likewise.
8429 (struct dwarf_block) <data>: Likewise.
8430 (dwarf2_read_section): Remove cast.
8431 (dwarf2_get_section_info): Make 'bufp' const.
8432 (read_index_from_section): Constify.
8433 (dw2_get_file_names_reader): Make 'info_ptr' const.
8434 (dw2_get_primary_filename_reader): Likewise.
8435 (read_comp_unit_head): Make 'info_ptr' and return type const.
8436 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8438 (read_abbrev_offset): Constify.
8439 (dwarf2_create_include_psymtab): Make 'name' const.
8440 (create_debug_types_hash_table): Update.
8441 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8442 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8444 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8445 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8446 (read_comp_units_from_section): Constify.
8447 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8448 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8450 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8451 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8452 (create_dwp_hash_table, dwarf2_ranges_read)
8453 (dwarf2_record_block_ranges): Constify.
8454 (read_die_and_children, read_die_and_siblings_1)
8455 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8457 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8458 (abbrev_table_read_table): Constify.
8459 (load_partial_dies): Make 'info_ptr' const.
8460 (read_partial_die, read_attribute_value, read_attribute): Make
8461 'info_ptr' and return type const.
8462 (read_address, read_initial_length)
8463 (read_checked_initial_length_and_offset, read_offset)
8464 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8466 (read_direct_string): Make 'buf' and return type const.
8467 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8468 (read_indirect_string): Make return type const.
8469 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8470 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8472 (read_str_index): Make return type const.
8473 (add_include_dir): Make 'include_dir' const.
8474 (add_file_name): Make 'name' const.
8475 (dwarf_decode_line_header): Constify.
8476 (psymtab_include_file_name): Make return type const.
8477 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8478 (dwarf2_start_subfile): Make 'filename' const.
8479 (dwarf2_const_value_attr): Make 'bytes' const.
8480 (read_signatured_type_reader): Make 'info_ptr' const.
8481 (decode_locdesc): Constify.
8482 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8484 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8485 'mac_end', and return type const.
8486 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8487 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8489 (per_cu_header_read_in): Constify.
8490 * symfile.h (dwarf2_get_section_info): Update.
8492 2013-04-12 Tom Tromey <tromey@redhat.com>
8494 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8496 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8498 * NEWS: Mention "show configuration", --configuration.
8499 * top.c (print_gdb_configuration): New function, displays the
8500 details about GDB configure-time parameters.
8501 (print_gdb_version): Mention "show configuration".
8502 * cli/cli-cmds.c (show_configuration): New function.
8503 (_initialize_cli_cmds): Add the "show configuration" command.
8504 * main.c (captured_main) <print_configuration>: New static var.
8505 <long_options>: Use it.
8506 If --configuration was given, call print_gdb_configuration.
8508 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8509 Pedro Alves <palves@redhat.com>
8511 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8512 (generated_files): Add gcore.
8513 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8514 HAVE_NATIVE_GCORE_HOST.
8516 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8517 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8518 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8519 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8520 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8521 Add HAVE_NATIVE_GCORE_HOST.
8522 * configure: Regenerate.
8523 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8524 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8525 AC_CONFIG_FILES for gcore.
8526 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8528 * gdb_gcore.sh: Rename to ...
8529 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8530 and GCORE_TRANSFORM_NAME substitutions.
8532 Fix parsing tabs in ${gdb_target_obs}.
8533 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8535 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8537 * remote.c (unpush_and_perror): Add output message final dot.
8539 2013-04-11 Yao Qi <yao@codesourcery.com>
8541 * tracepoint.c (tfile_interp_line): Fit parameters line and
8544 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8546 * solib.c (solib_map_sections): Remove code overwriting
8547 SO->SO_NAME with the bfd's filename.
8549 2013-04-10 Pedro Alves <palves@redhat.com>
8551 * cli/cli-decode.c (integer_unlimited_completer): New function.
8552 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8553 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8555 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8556 (is_unlimited_literal): New function.
8557 (do_set_command): Handle literal "unlimited" arguments.
8558 * frame.c (_initialize_frame) <set backtrace limit>: Document
8560 * printcmd.c (_initialize_printcmd) <set print
8561 max-symbolic-offset>: Add help text.
8562 * record-full.c (_initialize_record_full) <set record full
8563 insn-number-max>: Likewise.
8564 * record.c (_initialize_record) <set record
8565 instruction-history-size, set record function-call-history-size>:
8567 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8569 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8571 * source.c (_initialize_source) <set listsize>: Add help text.
8572 * utils.c (initialize_utils) <set height, set width>: Likewise.
8573 <set pagination>: Mention "set height unlimited".
8574 * valprint.c (_initialize_valprint) <set print elements, set print
8575 repeats>: Document "unlimited".
8577 2013-04-10 Pedro Alves <palves@redhat.com>
8579 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8580 instead of disconnect_tracing.
8581 * infcmd.c (detach_command, disconnect_command): Call
8582 query_if_trace_running. Adjust.
8583 * top.c: Include "tracepoint.h".
8584 (quit_target): Delete. Contents moved ...
8585 (quit_force): ... here. Wrap each stage of teardown in
8586 TRY_CATCH. Call disconnect_tracing before detaching.
8588 2013-04-10 Hui Zhu <hui@codesourcery.com>
8589 Yao Qi <yao@codesourcery.com>
8591 * configure.ac: Check libbabeltrace is installed.
8592 * config.in: Regenerate.
8593 * configure: Regenerate.
8594 * Makefile.in (LIBBABELTRACE): New.
8595 (CLIBS): Add LIBBABELTRACE.
8596 * ctf.c: Include "exec.h".
8597 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8598 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8599 (ctf_save_metadata_header): Define new type aliases in
8601 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8602 in metadata. Start a new faked packet for trace status.
8603 (ctf_write_status): Write trace status to CTF.
8604 (ctf_write_uploaded_tsv): Write TSV to CTF.
8605 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8606 (ctf_write_definition_end): End the faked packet.
8608 (ctx, ctf_iter, trace_dirname): New.
8609 (start_pos): New variable.
8610 (ctf_destroy, ctf_open_dir, ctf_open): New.
8611 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8613 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8614 (ctf_fetch_registers, ctf_xfer_partial): New.
8615 (ctf_get_trace_state_variable_value): New.
8616 (ctf_get_tpnum_from_frame_event): New.
8617 (ctf_get_traceframe_address): New.
8618 (ctf_trace_find, ctf_has_stack): New.
8619 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8620 (ctf_get_trace_status, ctf_read_status): New.
8621 (_initialize_ctf): New.
8622 * tracepoint.c (get_tracepoint_number): New
8623 (get_uploaded_tsv): Remove 'static'.
8624 (struct traceframe_info, trace_regblock_size): Move it to ...
8625 * tracepoint.h: ... here.
8626 (get_tracepoint_number): Declare it.
8627 (get_uploaded_tsv): Declare it.
8629 * NEWS: Mention new configure option.
8631 2013-04-10 Pedro Alves <palves@redhat.com>
8632 Hui Zhu <hui@codesourcery.com>
8634 * breakpoint.c (dprintf_re_set): New.
8635 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8638 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8640 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8641 Remove solib-svr4.o from the list.
8643 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8645 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8646 Use gdb_assert_not_reached instead of invalid boolean expression.
8648 2013-04-09 Pedro Alves <palves@redhat.com>
8650 * remote.c (unpush_and_perror): New function.
8651 (readchar, remote_serial_write): Use it.
8653 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8655 * NEWS: Mention new btrace RSP packets.
8657 2013-04-08 Tom Tromey <tromey@redhat.com>
8659 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8662 2013-04-08 Tom Tromey <tromey@redhat.com>
8664 * maint.c (print_bfd_section_info): Print the section index.
8665 * symmisc.c (dump_msymbols): Print the section index.
8667 2013-04-08 Tom Tromey <tromey@redhat.com>
8670 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8671 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8672 * breakpoint.c (resolve_sal_pc): Update.
8673 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8674 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8675 (minsym_lookup_iterator_cb): Use it.
8676 (default_read_var_value): Update.
8677 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8679 * infcmd.c (jump_command): Update.
8680 * linespec.c (minsym_found): Update.
8681 * maint.c (maintenance_translate_address): Update.
8682 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8683 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8684 * parse.c (write_exp_msymbol): Update.
8685 * printcmd.c (address_info): Update.
8686 * psymtab.c (find_pc_sect_psymbol): Update.
8687 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8689 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8690 Don't initialize SYMBOL_OBJ_SECTION.
8691 * spu-tdep.c (spu_catch_start): Update.
8692 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8693 * symmisc.c (dump_msymbols, print_symbol): Update.
8694 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8695 how fallback section is computed.
8696 (fixup_symbol_section): Update.
8697 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8699 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8700 Initialize SYMBOL_SECTION.
8701 * symtab.h (struct general_symbol_info) <section>: Update comment.
8702 <obj_section>: Remove.
8703 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8704 (SYMBOL_OBJFILE): New macro.
8706 2013-04-08 Tom Tromey <tromey@redhat.com>
8708 * coffread.c (record_minimal_symbol): Update.
8709 * dbxread.c (record_minimal_symbol): Update.
8710 * elfread.c (record_minimal_symbol): Update.
8711 * machoread.c (macho_symtab_add_minsym): Update.
8712 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8714 * minsyms.c (prim_record_minimal_symbol): Update.
8715 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8717 (prim_record_minimal_symbol_and_info): Likewise.
8718 * minsyms.h (prim_record_minimal_symbol_full)
8719 (prim_record_minimal_symbol_and_info): Update.
8720 * symtab.c (allocate_symbol, initialize_symbol)
8721 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8722 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8725 2013-04-08 Tom Tromey <tromey@redhat.com>
8728 * solib-som.c (som_solib_section_offsets): Use BFD section
8729 indices. Set offsets for all sections.
8730 * somread.c (som_symtab_read): Compute BFD section for
8731 symbol. Use prim_record_minimal_symbol_and_info.
8732 (som_symfile_read): Fix comment.
8733 (struct find_section_offset_arg): New.
8734 (find_section_offset, set_section_index): New functions.
8735 (som_symfile_offsets): Use set_section_index to compute
8738 2013-04-08 Tom Tromey <tromey@redhat.com>
8740 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8741 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8742 gdb_bfd_section_index.
8743 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8745 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8747 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8749 * objfiles.c (add_to_objfile_sections_full): New function.
8750 (add_to_objfile_sections): Use it.
8751 (build_section_table): Rewrite.
8752 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8753 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8754 (struct objfile) <sections>: Update comment.
8755 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8757 (ALL_OBJSECTIONS): Use it.
8758 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8759 * solib-frv.c (frv_relocate_main_executable): Update.
8760 * solib-target.c (solib_target_relocate_section_addresses):
8761 Use gdb_bfd_section_index.
8762 * symfile.c (build_section_addr_info_from_section_table):
8763 Use gdb_bfd_section_index.
8764 (build_section_addr_info_from_bfd, place_section): Likewise.
8765 * symtab.c (fixup_section): Update.
8766 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8768 2013-04-08 Tom Tromey <tromey@redhat.com>
8770 * minsyms.h (struct bound_minimal_symbol): New.
8771 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8772 Remove objfile argument.
8773 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8774 Return bound_minimal_symbol.
8775 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8776 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8777 Return bound_minimal_symbol.
8778 (in_gnu_ifunc_stub): Update.
8779 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8780 Remove 'objfile_p' argument.
8781 (lookup_solib_trampoline_symbol_by_pc): Update.
8782 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8783 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8784 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8785 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8786 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8787 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8788 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8789 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8790 stack.c, symtab.c, tui/tui-disasm.c: Update.
8792 2013-04-08 Tom Tromey <tromey@redhat.com>
8794 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8795 Use symbol's obstack, not an objfile.
8796 * coffread.c (process_coff_symbol): Update.
8797 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8798 * jv-lang.c (add_class_symbol): Update.
8799 * mdebugread.c (new_symbol): Update.
8800 * minsyms.c (prim_record_minimal_symbol_full)
8801 (terminate_minimal_symbol_table): Update.
8802 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8803 * stabsread.c (define_symbol, read_enum_type): Update.
8804 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8805 Handle Ada specially.
8806 (symbol_set_language): Add 'obstack' argument.
8807 (symbol_set_names): Update.
8808 (symbol_natural_name, symbol_demangled_name): Always use
8810 * symtab.h (struct general_symbol_info)
8811 <language_specific::obstack>: New field.
8812 <ada_mangled>: New field.
8813 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8814 (symbol_set_language): Update.
8816 2013-04-08 Tom Tromey <tromey@redhat.com>
8818 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8819 Take an obstack, not an objfile.
8820 (symbol_set_names): Update.
8821 * symtab.h (symbol_set_demangled_name): Update.
8823 2013-04-08 Tom Tromey <tromey@redhat.com>
8825 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8827 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8828 (read_func_scope): Call allocate_template_symbol.
8829 (new_symbol_full): Call allocate_symbol.
8830 * jit.c (finalize_symtab): Call allocate_symbol.
8831 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8832 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8833 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8834 (common_block_end): Call allocate_symbol.
8835 * symtab.c (allocate_symbol, initialize_symbol)
8836 (allocate_template_symbol): New functions.
8837 * symtab.c (allocate_symbol, initialize_symbol)
8838 (allocate_template_symbol): Declare.
8839 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8841 2013-04-08 Pedro Alves <palves@redhat.com>
8842 Keith Seitz <keiths@redhat.com>
8844 * breakpoint.c (create_breakpoint): Rename
8845 "parse_condition_and_thread" parameter to "parse_arg". Update
8846 describing comment. If !PARSE_ARG, then error out if ARG is not
8847 the empty string after extracting the location.
8848 * breakpoint.h (create_breakpoint): Rename
8849 "parse_condition_and_thread" parameter to "parse_arg".
8851 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8853 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8855 2013-04-07 Yao Qi <yao@codesourcery.com>
8857 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8858 and 'addr2' to CORE_ADDR.
8859 * target.c (update_current_target): Update.
8860 * target.h (struct target_ops) <to_trace_find>: Change parameter
8862 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8863 'addr2' to CORE_ADDR.
8864 (tfile_trace_find): Likewise.
8865 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8866 Change local variable 'addr' to type CORE_ADDR.
8867 * tracepoint.h (tfind_1): Update declaration.
8869 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8871 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8872 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8875 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8877 * main.h (windows_get_absolute_argv0): ...to here.
8879 2013-04-05 Doug Evans <dje@google.com>
8881 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8882 (read_cutu_die_from_dwo): Add comments.
8883 (read_structure_type): Update comment.
8884 (read_enumeration_type, read_namespace_type): Update comment.
8885 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8887 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8889 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8890 * Makefile.in (gdb.z): Remove.
8891 (install-only): Remove $(man1dir) and gdb.1 installation.
8894 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8896 Fix compatibility with Linux kernel 3.8.3.
8897 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8898 to more inner block. Remove parsing of NUMBER from outer block.
8899 Parse NUMBER only if KEYWORD has been identified.
8901 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8903 Fix variable name shadowing.
8904 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8905 filename to mapsfilename and update its uses.
8907 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8909 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8910 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8911 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8912 details of the problem.
8914 2013-04-04 Pedro Alves <palves@redhat.com>
8915 Hui Zhu <hui@codesourcery.com>
8917 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8918 tracepoint, reset its STEP_COUNT and call validate_actionline.
8920 2013-04-03 Doug Evans <dje@google.com>
8922 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8923 read_die_and_siblings.
8924 (read_die_and_siblings): New function.
8925 (read_cutu_die_from_dwo): Dump die if requested.
8926 (read_die_and_children): Call read_full_die_1 and
8927 read_die_and_siblings_1.
8928 (read_full_die): Dump die if requested.
8930 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8932 * dwarf2read.c (struct dwo_file): New member comp_dir.
8933 Rename member name to dwo_name. All uses updated.
8934 (hash_dwo_file): Include comp_dir in computation.
8935 (eq_dwo_file): Ditto.
8936 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8937 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8939 * psymtab.c (read_psymtabs_with_fullname): Don't call
8940 psymtab_to_fullname if the basenames are different.
8942 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8944 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8945 New entry about "fullname" presence.
8947 2013-04-03 Pedro Alves <palves@redhat.com>
8949 * NEWS: Mention x86_64/Cygwin as new native configuration.
8951 2013-04-02 Doug Evans <dje@google.com>
8953 * dwarf2read.c (read_structure_type): Fix typo in comment.
8955 2013-04-02 Pedro Alves <palves@redhat.com>
8957 * NEWS: Mention "set/show debug aarch64", "set/show debug
8958 coff-pe-read" and "set/show debug mach-o".
8960 2013-04-02 Pedro Alves <palves@redhat.com>
8962 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8964 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8966 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8967 gdb_string.h is now in common/.
8969 2013-04-02 Pedro Alves <palves@redhat.com>
8971 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8972 under "New options".
8974 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8978 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8980 2013-04-02 Pedro Alves <palves@redhat.com>
8984 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8985 (remote_serial_write): New function.
8986 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8988 2013-04-01 Jiong Wang <jiwang@tilera.com>
8990 * NEWS: Mention TILE-Gx in "New native configurations" and
8991 "New targets" sections.
8993 2013-04-01 Doug Evans <dje@google.com>
8995 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8996 (process_enumeration_scope): Simplify.
8998 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9000 (struct signatured_type): ... to here.
9001 (sig_type_ptr): New typedef.
9002 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9003 out of union 't'. All uses updated.
9004 (dw2_get_file_names_reader): Assert not called for a type unit.
9005 (dw2_get_file_names): Assert not called for a type unit or type
9007 (build_type_psymtabs_reader): Assert called for a type unit.
9008 (build_type_psymtab_dependencies): Assert called for a type unit group.
9010 * dwarf2read.c (free_dwo_file): Add comment.
9011 (dwarf2_per_objfile_free): Unref dwp bfd.
9013 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9015 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9016 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9017 (read_pe_exported_syms): Remove unused 'exportix'.
9018 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9019 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9020 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9022 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9024 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9025 (print_it_watchpoint): Remove unused 'bl'.
9026 (say_where): Remove unused 'uiout'.
9027 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9028 (bkpt_breakpoint_hit): Remove unused 'b'.
9029 (internal_bkpt_print_it): Remove unused 'uiout'.
9030 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9032 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9035 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9037 2013-03-29 Doug Evans <dje@google.com>
9039 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9040 Delete arg is_dwp. All callers updated.
9041 (open_dwp_file): New function.
9042 (open_and_init_dwp_file): Call it.
9043 (get_dwp_file): New function.
9044 (lookup_dwo_cutu): Call it.
9046 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9047 unnecessary, cleanup.
9049 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9051 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9052 (lookup_dwo_unit): New function.
9053 (init_cutu_and_read_dies): Move DWO handling to new functions.
9055 * dwarf2read.c (struct signatured_type): Tweak comment.
9056 (struct dwo_unit): Tweak comment.
9057 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9058 (create_dwo_debug_info_hash_table): Tweak comment.
9059 (dwarf2_per_cu_offset_and_type): Tweak comment.
9061 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9062 missing .debug_types section.
9064 2013-03-29 Yao Qi <yao@codesourcery.com>
9066 * corelow.c: Include "completer.h".
9067 (_initialize_corelow): Call add_target_with_completer with
9068 argument 'filename_completer'.
9069 * tracepoint.c: Likewise.
9070 * exec.c (_initialize_exec): Likewise.
9071 * target.c (add_target): Rename to ...
9072 (add_target_with_completer): ... this. Call set_cmd_completer
9073 if parameter completer is not NULL.
9075 * target.h: Include "command.h".
9076 (add_target_with_completer): Declare it.
9078 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9080 * coffread.c (is_import_fixup_symbol): New function.
9081 (record_minimal_symbol): Use is_import_fixup_symbol to
9082 detect import fixup symbols, and discard them.
9084 2013-03-28 Doug Evans <dje@google.com>
9086 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9087 types hash table until we know we need it.
9089 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9092 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9093 All callers updated.
9094 (dw2_print_stats): Print #read CUs too.
9095 (dump_die_shallow): Print signatured types better.
9097 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9098 info_or_types_section to section. All uses updated.
9099 (struct dwo_unit): Ditto.
9101 2013-03-28 Pedro Alves <palves@redhat.com>
9103 * NEWS (New options): New section.
9104 (New options): Mention set/show remote trace-status-packet.
9105 * remote.c (PACKET_qTStatus): New enumeration value.
9106 (remote_get_trace_status): Skip sending qTStatus if the packet is
9107 disabled. Use packet_ok.
9108 (_initialize_remote): Register a configuration command for
9111 2013-03-28 Doug Evans <dje@google.com>
9113 * symfile.c (find_separate_debug_file): Add comment.
9114 (terminate_after_last_dir_separator): Tweak comment.
9116 * dwarf2read.c (create_partial_symtab): Add forward decl.
9117 (create_partial_symtab): Move to be closer to other psymtab functions.
9118 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9120 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9121 (compute_symtab_includes): Remove unnecessary forward declaration.
9122 (die_needs_namespace): Add comment marking group of functions for
9123 dwarf2 name computation.
9125 * typeprint.c (_initialize_typeprint): Improve type help text.
9127 * python/python.c (finish_python_initialization): Provide suggestion
9128 for how to tell gdb to find its python files.
9130 2013-03-28 Pedro Alves <palves@redhat.com>
9134 * source.c (_initialize_source): Change back "set listsize" to an
9137 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9140 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9142 2013-03-27 Pedro Alves <palves@redhat.com>
9144 * top.c (history_size): Rename to ...
9145 (history_size_setshow_var): ... this. Add comment.
9146 (show_commands): Use readline's 'history_length' instead of
9147 computing the history length by calling history_get in a loop.
9148 (set_history_size_command): Error out for sizes over INT_MAX.
9149 Restore previous history size on invalid size.
9150 (init_history): If HISTSIZE is negative, leave the history size as
9152 (init_main): Adjust.
9154 2013-03-27 Pedro Alves <palves@redhat.com>
9156 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9157 coff_pe_read" command to "set debug coff-pe-read".
9159 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9161 * record.c (command_size_to_target_size): Fix size comparison.
9162 Change parameter type from pointer to integer to integer.
9165 2013-03-27 Pierre Muller <muller@sourceware.org>
9167 * windows-nat.c (handle_output_debug_string): Avoid typecast
9168 from integer of different size warning.
9170 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9172 * windows-nat.c (handle_output_debug_string): Add empty line
9173 after local block variable definition.
9175 2013-03-26 Pedro Alves <palves@redhat.com>
9177 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9178 (net_open): Make 'polls' local unsigned.
9180 2013-03-26 Pedro Alves <palves@redhat.com>
9182 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9183 a zuinteger command instead of uinteger.
9185 2013-03-26 Pedro Alves <palves@redhat.com>
9187 * record-full.c (record_full_insn_num): Make it unsigned.
9188 (record_full_check_insn_num, record_full_message)
9189 (record_full_registers_change, record_full_xfer_partial): Remove
9190 record_full_insn_max_num check (it's always != 0).
9191 (record_full_info, record_full_restore): Use %u as format string.
9192 (): Use %u as format string.
9193 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9194 check (it's always != 0).
9196 2013-03-26 Pedro Alves <palves@redhat.com>
9198 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9199 and "set dcache size" commands zuinteger instead of uinteger.
9201 2013-03-26 Pedro Alves <palves@redhat.com>
9203 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9204 command zuinteger instead of uinteger.
9206 2013-03-26 Pedro Alves <palves@redhat.com>
9208 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9209 zuinteger instead of uinteger.
9211 2013-03-26 Pedro Alves <palves@redhat.com>
9213 * record.c (record_insn_history_size_setshow_var)
9214 (record_call_history_size_setshow_var): New globals.
9215 (command_size_to_target_size): New function.
9216 (cmd_record_insn_history, cmd_record_call_history): Use
9217 command_size_to_target_size instead of cast.
9218 (validate_history_size, set_record_insn_history_size)
9219 (set_record_call_history_size): New functions.
9220 (_initialize_record): Install set_record_insn_history_size and
9221 set_record_call_history_size as "set" hooks of "set record
9222 instruction-history-size" and "set record
9223 function-call-history-size".
9225 2013-03-26 Pedro Alves <palves@redhat.com>
9227 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9228 use with history_max_entries use. Remove FIXME note.
9230 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9232 * record-btrace.c (record_btrace_close): Call
9233 record_btrace_auto_disable.
9235 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9237 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9239 2013-03-25 Doug Evans <dje@google.com>
9241 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9243 2013-03-25 Tom Tromey <tromey@redhat.com>
9246 * c-exp.y (exp): Add new productions for destructors after '.' and
9248 (write_destructor_name): New function.
9250 2013-03-25 Tom Tromey <tromey@redhat.com>
9253 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9254 value_struct_elt, not lookup_struct_elt_type.
9255 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9256 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9257 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9259 2013-03-25 Yao Qi <yao@codesourcery.com>
9261 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9262 instead of '_mkdir'.
9264 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9266 * windows-nat.c (windows_get_absolute_argv0): New function.
9267 * windows-nat.h: Add its prototype.
9269 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9270 Use IS_DIR_SEPARATOR instead of looking for a character inside
9271 SLASH_STRING. Include filenames.h.
9272 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9273 relocate_gdb_directory works when passed gdb_program_name.
9274 Include windows-nat.h.
9276 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9278 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9279 * remote.c (trace_error): Remove the special handling of '2'.
9280 (readchar) <SERIAL_EOF>
9281 (readchar) <SERIAL_ERROR>
9282 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9283 (remote_get_trace_status): Call throw_exception if EX is
9285 * utils.c (perror_with_name): Rename to ...
9286 (throw_perror_with_name): ... here. New parameter errcode, describe it
9287 in the function comment.
9288 (perror_with_name): New function wrapper.
9289 * utils.h (enum errors): New stub declaration.
9290 (throw_perror_with_name): New declaration.
9292 2013-03-22 Pedro Alves <palves@redhat.com>
9293 Yao Qi <yao@codesourcery.com>
9294 Mark Kettenis <kettenis@gnu.org>
9296 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9297 Don't let the user set the value to UINT_MAX directly.
9298 <var_integer>: Don't let the user set the value to INT_MAX
9301 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9303 * remote.c (remote_unpush_target): New function.
9304 (remote_open_1): Remove two pop_target calls, update one comment, add
9305 comment to target_preopen call. Replace pop_target call by
9306 remote_unpush_target call.
9307 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9308 pop_target calls by remote_unpush_target calls.
9310 2013-03-22 Pedro Alves <palves@redhat.com>
9312 * linux-nat.c (linux_child_follow_fork): Don't call
9313 linux_enable_event_reporting.
9314 (linux_handle_extended_wait): Don't call
9315 linux_enable_event_reporting.
9317 2013-03-22 Pedro Alves <palves@redhat.com>
9319 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9320 use it to rewrite the trampoline buffers with type gdb_byte[], and
9321 undefine the macro. Remove char* cast.
9323 2013-03-21 Doug Evans <dje@google.com>
9325 New commands "mt set per-command {space,time,symtab} {on,off}".
9327 * event-top.c: #include "maint.h".
9328 * main.c: #include "maint.h".
9329 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9330 timeval-utils.h, maint.h, cli/cli-setshow.h.
9331 (per_command_time, per_command_space): New static globals.
9332 (per_command_symtab): New static global.
9333 (per_command_setlist, per_command_showlist): New static globals.
9334 (struct cmd_stats): Move here from utils.c.
9335 (set_per_command_time): Renamed from set_display_time in utils.c
9336 and moved here. All callers updated.
9337 (set_per_command_space): Renamed from set_display_space in utils.c
9338 and moved here. All callers updated.
9339 (count_symtabs_and_blocks): New function.
9340 (report_command_stats): Moved here from utils.c. Add support for
9341 printing symtab stats. Only print data if enabled before command
9343 (make_command_stats_cleanup): Ditto.
9344 (sert_per_command_cmd, show_per_command_cmd): New functions.
9345 (_initialize_maint_cmds): Add new commands
9346 mt set per-command {space,time,symtab} {on,off}.
9347 * maint.h: New file.
9348 * top.c: #include "maint.h".
9349 * utils.c (reset_prompt_for_continue_wait_time): New function.
9350 (get_prompt_for_continue_wait_time): New function.
9351 * utils.h (reset_prompt_for_continue_wait_time): Declare
9352 (get_prompt_for_continue_wait_time): Declare.
9353 (make_command_stats_cleanup): Moved to maint.h.
9354 (set_display_time, set_display_space): Moved to maint.h and renamed
9355 to set_per_command_time, set_per_command_space.
9356 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9357 parse_binary_operation and made non-static. Don't call error,
9358 just return an error marker. All callers updated.
9359 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9361 2013-03-21 Tom Tromey <tromey@redhat.com>
9363 * symfile.c (alloc_section_addr_info): Update header. Don't set
9364 'num_sections' field.
9365 (build_section_addr_info_from_section_table): Set 'num_sections'.
9366 (build_section_addr_info_from_bfd): Likewise.
9367 (build_section_addr_info_from_objfile): Remove dead loop
9369 (free_section_addr_info): Unconditionally call xfree.
9370 (relative_addr_info_to_section_offsets, addrs_section_sort)
9371 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9373 (syms_from_objfile_1): Remove dead 'if' condition. Check
9375 (add_symbol_file_command): Set 'num_sections'.
9376 * symfile-mem.c (symbol_file_add_from_memory): Set
9378 * somread.c (som_symfile_offsets): Remove dead loop condition.
9379 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9380 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9382 2013-03-21 Tom Tromey <tromey@redhat.com>
9384 * tracepoint.h (decode_agent_options): Add 'trace_string'
9386 * tracepoint.c (decode_agent_options): Add 'trace_string'
9388 (validate_actionline): Update.
9389 (collect_symbol): Add 'trace_string' argument.
9390 (struct add_local_symbols_data) <trace_string>: New field.
9391 (do_collect_symbol): Update.
9392 (add_local_symbols): Add 'trace_string' argument.
9393 (encode_actions_1): Update.
9394 (trace_dump_actions): Update.
9395 * dwarf2loc.c (access_memory): Update.
9396 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9397 * ax-general.c (new_agent_expr): Update.
9398 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9399 (gen_trace_for_return_address): Add argument.
9400 (trace_kludge, trace_string_kludge): Remove.
9401 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9402 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9403 (gen_trace_for_var): Add 'trace_string' argument.
9404 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9405 (gen_printf, agent_eval_command_one): Update.
9407 2013-03-21 Tom Tromey <tromey@redhat.com>
9410 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9411 Handle FILENAME token.
9413 2013-03-21 Tom Tromey <tromey@redhat.com>
9415 * c-exp.y (YYPRINT): Define.
9416 (c_print_token): New function.
9418 2013-03-21 Tom Tromey <tromey@redhat.com>
9420 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9422 2013-03-21 Yao Qi <yao@codesourcery.com>
9424 * ctf.c: Include "gdb_stat.h".
9425 [USE_WIN32API]: New macro 'mkdir'.
9426 (ctf_start): Use permission bits macros if they are defined.
9428 2013-03-20 Keith Seitz <keiths@redhat.com>
9430 * breakpoint.h (struct breakpoint): Add comment to
9431 extra_string indicating that this member is mallod'd.
9432 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9434 2013-03-20 Pedro Alves <palves@redhat.com>
9438 * cli/cli-setshow.c (do_set_command)
9439 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9440 the result of parsing the command argument. Throw error if the
9441 value is greater than UINT_MAX. Print the invalid value with
9443 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9444 result of parsing the command argument. Throw error if the value
9445 is greater than INT_MAX, not greater or equal. Also throw error
9446 if the value is less than INT_MIN. Print the invalid value with
9448 <var_zuinteger_unlimited>: Throw error if the value is greater
9449 than INT_MAX, not greater or equal.
9450 (do_show_command) <var_integer, var_zinteger,
9451 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9453 2013-03-20 Tom Tromey <tromey@redhat.com>
9455 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9457 * dwarf2read.c (read_func_scope): Remove old FIXME.
9458 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9460 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9461 Unconditionally call via computed ops, if possible.
9462 * printcmd.c (address_info): Unconditionally call via computed ops,
9464 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9466 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9467 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9470 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9471 Tom Tromey <tromey@redhat.com>
9474 * coffread.c (coff_register_index): New global.
9475 (process_coff_symbol, coff_read_enum_type): Set
9476 SYMBOL_ACLASS_INDEX.
9477 (_initialize_coffread): Initialize new global.
9478 * dwarf2loc.c (locexpr_find_frame_base_location)
9479 (dwarf2_block_frame_base_locexpr_funcs)
9480 (loclist_find_frame_base_location)
9481 (dwarf2_block_frame_base_loclist_funcs): New.
9482 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9483 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9484 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9485 (dwarf2_block_frame_base_loclist_funcs): New.
9486 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9487 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9489 (read_func_scope): Update.
9490 (fixup_go_packaging, mark_common_block_symbol_computed)
9491 (var_decode_location, new_symbol_full, dwarf2_const_value):
9492 Set SYMBOL_ACLASS_INDEX.
9493 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9494 (_initialize_dwarf2_read): Initialize new globals.
9495 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9496 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9497 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9499 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9500 (_initialize_mdebugread): Initialize new globals.
9501 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9502 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9503 (stab_register_index, stab_regparm_index): New globals.
9504 (define_symbol, read_enum_type, common_block_end): Set
9505 SYMBOL_ACLASS_INDEX.
9506 (_initialize_stabsread): Initialize new globals.
9507 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9509 (MAX_SYMBOL_IMPLS): New define.
9510 (register_symbol_computed_impl, register_symbol_block_impl)
9511 (register_symbol_register_impl)
9512 (initialize_ordinary_address_classes): New functions.
9513 (_initialize_symtab): Call initialize_ordinary_address_classes.
9514 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9515 (struct symbol_impl): New.
9516 (SYMBOL_ACLASS_BITS): New define.
9517 (struct symbol) <aclass, ops>: Remove fields.
9518 <aclass_index>: New field.
9519 (symbol_impls): Declare.
9520 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9521 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9522 (register_symbol_computed_impl, register_symbol_block_impl)
9523 (register_symbol_register_impl): Declare.
9524 (struct symbol_computed_ops): Add location_has_loclist.
9525 (struct symbol_block_ops): New.
9526 (SYMBOL_BLOCK_OPS): New.
9527 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9529 2013-03-20 Tom Tromey <tromey@redhat.com>
9531 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9532 (print_partial_symbols, recursively_search_psymtabs): Use
9535 2013-03-20 Pierre Muller <muller@sourceware.org>
9537 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9538 addtion, subtraction, multiplication and division binary operator.
9540 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9543 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9544 * bsd-kvm.c (bsd_kvm_close): Likewise.
9545 * bsd-uthread.c (bsd_uthread_close): Likewise.
9546 * corelow.c (core_close): Likewise.
9547 (core_close_cleanup): Remove parameter quitting from a caller.
9548 * event-top.c (async_disconnect): Likewise.
9549 * exec.c (exec_close_1): Remove parameter quitting.
9550 * go32-nat.c (go32_close): Likewise.
9551 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9552 parameter quitting from a caller.
9553 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9555 (mips_linux_close): Remove parameter quitting. Remove parameter
9556 quitting from a caller.
9557 * monitor.c (monitor_close): Remove parameter quitting.
9558 * monitor.h (monitor_close): Likewise.
9559 * record-btrace.c (record_btrace_close): Likewise.
9560 * record-full.c (record_full_close): Likewise.
9561 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9562 it also from fprintf_unfiltered.
9563 * remote-mips.c (mips_close): Remove parameter quitting.
9564 (mips_detach): Remove parameter quitting from a caller.
9565 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9566 (gdbsim_close): Remove duplicate function comment. Remove parameter
9567 quitting and remove it also from printf_filtered.
9568 * remote.c (remote_close): Remove parameter quitting.
9569 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9570 * target.c (update_current_target): Remove parameter int from to_close
9572 (push_target, unpush_target, pop_target): Remove parameter quitting from
9574 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9575 Remove parameter quitting from a caller.
9576 (target_preopen): Remove parameter quitting from a caller.
9577 (target_close): Remove parameter quitting. Remove parameter quitting
9578 from a caller two times. Remove parameter quitting also from
9580 * target.h (struct target_ops): Remove parameter quitting and as int
9581 from fields to_xclose and to_close.
9582 (extern struct target_ops current_target):
9583 (target_close, pop_all_targets): Remove parameter quitting. Update the
9585 (pop_all_targets_above): Remove parameter quitting.
9586 * top.c (quit_target): Remove parameter quitting from a caller.
9587 * tracepoint.c (tfile_close): Remove parameter quitting.
9588 * windows-nat.c (windows_close): Remove parameter quitting.
9590 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9592 * windows-nat.c (handle_output_debug_string): Replace call
9593 to string_to_core_addr with call to strtoull.
9595 2013-03-20 Yao Qi <yao@codesourcery.com>
9597 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9598 and write it to CTF metadata.
9600 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9602 * windows-nat.c (handle_output_debug_string): Change type of n to
9603 SIZE_T to avoid crash on 64 bit systems.
9605 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9607 * python/python-internal.h (HAVE_SNPRINTF)
9608 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9609 about redefinition of snprintf by pyerrors.h.
9611 2013-03-15 Steve Ellcey <sellcey@mips.com>
9613 * remote-sim.c (sim_command_completer): Make char arguments const.
9615 2013-03-15 Tom Tromey <tromey@redhat.com>
9618 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9620 2013-03-14 Tom Tromey <tromey@redhat.com>
9622 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9624 (get_file_crc): Move from symfile.c.
9625 (gdb_bfd_crc): New function.
9626 * gdb_bfd.h (gdb_bfd_crc): Declare.
9627 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9628 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9629 (separate_debug_file_exists): Use gdb_bfd_crc.
9631 2013-03-14 Tom Tromey <tromey@redhat.com>
9633 * symfile.c (get_debug_link_info): Remove.
9634 (find_separate_debug_file_by_debuglink): Use
9635 bfd_get_debug_link_info.
9637 2013-03-14 Tom Tromey <tromey@redhat.com>
9639 * symtab.c (error_in_psymtab_expansion): New function.
9640 (lookup_symbol_aux_quick)
9641 (basic_lookup_transparent_type_quick): Remove "last resort"
9642 code. Use error_in_psymtab_expansion.
9644 2013-03-14 Doug Evans <dje@google.com>
9645 Jan Kratochvil <jan.kratochvil@redhat.com>
9647 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9648 any successful compare_filenames_for_search or FILENAME_CMP.
9649 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9650 * symtab.c (iterate_over_some_symtabs): Likewise.
9652 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9654 * source.c (print_source_lines_base): Make a local copy of
9657 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9658 Jan Kratochvil <jan.kratochvil@redhat.com>
9660 * source.c (print_source_lines_base): Suppress "file" for TUI.
9662 2013-03-14 Keith Seitz <keiths@redhat.com>
9663 Alan Matsuoka <alanm@redhat.com>
9667 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9669 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9672 2013-03-14 Yao Qi <yao@codesourcery.com>
9674 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9675 status to tfile if trace is stopped by command 'tstop'.
9677 2013-03-14 Yao Qi <yao@codesourcery.com>
9679 * tracepoint.c (tfile_write_status): Write trace notes and user
9680 name into tfile if they are not NULL.
9682 2013-03-14 Hui Zhu <hui@codesourcery.com>
9683 Yao Qi <yao@codesourcery.com>
9685 * Makefile.in (REMOTE_OBS): Add ctf.o.
9686 (SFILES): Add ctf.c.
9687 (HFILES_NO_SRCDIR): Add ctf.h.
9688 * ctf.c, ctf.h: New files.
9689 * tracepoint.c: Include 'ctf.h'.
9690 (collect_pseudocommand): Remove static.
9691 (trace_save_command): Parse option "-ctf".
9692 Produce different trace file writers per option.
9693 Adjust output message.
9694 (trace_save_tfile, trace_save_ctf): New.
9695 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9696 * mi/mi-main.c: Include 'ctf.h'.
9697 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9698 trace_save_tfile or trace_save_ctf.
9699 * NEWS: Mention these changes.
9701 2013-03-14 Yao Qi <yao@codesourcery.com>
9703 * tracepoint.c (trace_file_writer_xfree): New.
9704 (struct tfile_writer_data): New.
9705 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9706 (tfile_write_header, tfile_write_regblock_type): New.
9707 (tfile_write_status, tfile_write_uploaded_tsv): New.
9708 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9709 (tfile_write_raw_data, (tfile_end): New.
9710 (tfile_write_ops): New global variable.
9711 (TRACE_WRITE_R_BLOCK): New macro.
9712 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9713 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9714 (TRACE_WRITE_V_BLOCK): New macro.
9715 (trace_save): Add extra one parameter WRITER. Make it static.
9716 Use WRITER to writer trace.
9717 (tfile_trace_file_writer_new): New.
9718 (trace_save_command): Caller update.
9719 (trace_save_tfile): Write trace data in TFILE format.
9720 * tracepoint.h (struct trace_frame_write_ops): New.
9721 (struct trace_file_write_ops): New.
9722 (struct trace_file_writer): New.
9723 (trace_save): Remove its declaration.
9724 (trace_save_tfile): Declare it.
9725 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9726 instead of trace_save.
9728 2013-03-13 Pedro Alves <palves@redhat.com>
9730 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9732 2013-03-13 Pedro Alves <palves@redhat.com>
9734 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9736 * demangle.c (current_demangling_style_string): Make it const.
9737 (set_demangling_command): Assert the demangling style is known.
9738 Remove all handling of unknown styles. Set
9739 'current_demangling_style_string' to an element of the
9740 demangling_style_names array.
9741 (set_demangling_style): Delete.
9742 (_initialize_demangler): Set current_demangling_style_string to the
9743 element of the demangling_style_names array that corresponds to
9744 the default demangling style. Remove FIXME note. Don't call
9745 set_demangling_style.
9746 * gdb-demangle.h (set_demangling_style): Remove declaration.
9748 2013-03-13 Pedro Alves <palves@redhat.com>
9750 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9752 (ada_make_symbol_completion_list): Make "text0" parameter const.
9753 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9754 * breakpoint.c (condition_completer): Make "text" and "word"
9755 parameters const. Adjust.
9756 (check_tracepoint_command): Adjust to validate_actionline
9758 (catch_syscall_completer): Make "text" and "word" parameters
9760 * cli/cli-cmds.c (show_user): Make "comname" local const.
9761 (valid_command_p): Make "command" parameter const.
9762 (alias_command): Make "alias_prefix" and "command_prefix" locals
9764 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9765 (add_alias_cmd): Make "name" and "oldname" parameters const.
9766 Adjust. No longer make copy of OLDNAME.
9767 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9768 (add_setshow_cmd_full, add_setshow_enum_cmd)
9769 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9770 (add_setshow_filename_cmd, add_setshow_string_cmd)
9771 (add_setshow_string_noescape_cmd)
9772 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9773 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9774 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9775 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9776 Make "name" parameter const.
9777 (help_cmd): Rename "command" parameter to "arg". New const local
9779 (find_cmd): Make "command" parameter const.
9780 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9781 deprecated_cmd_warning prototype change.
9782 (undef_cmd_error): Make "cmdtype" parameter const.
9783 (lookup_cmd): Make "line" parameter const.
9784 (deprecated_cmd_warning): Change type of "text" parameter to
9785 pointer to const char, from pointer to pointer to char. Adjust.
9786 (lookup_cmd_composition): Make "text" parameter const.
9787 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9789 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9791 * cli/cli-script.c (validate_comname): Make "tem" local const.
9792 (define_command): New const local "tem_c". Use it in calls to
9794 (document_command): Make "tem" and "comfull" locals const.
9795 (show_user_1): Make "prefix" and "name" parameters const.
9796 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9798 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9799 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9800 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9801 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9802 (complete_on_enum, add_setshow_enum_cmd)
9803 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9804 (add_setshow_filename_cmd, add_setshow_string_cmd)
9805 (add_setshow_string_noescape_cmd)
9806 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9807 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9808 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9809 Change prototypes, constifying strings.
9810 * completer.c (noop_completer, filename_completer): Make "text"
9811 and "prefix" parameters const.
9812 (location_completer, expression_completer)
9813 (complete_line_internal): Make "text" and "prefix" parameters
9815 (command_completer, signal_completer): Make "text" and "prefix"
9817 * completer.h (noop_completer, filename_completer)
9818 (expression_completer, location_completer, command_completer)
9819 (signal_completer): Change prototypes.
9820 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9822 * cp-abi.c (cp_abi_completer): Likewise.
9823 * expression.h (parse_expression_for_completion): Change
9825 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9827 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9828 * infrun.c (handle_completer): Make "text" and "word" parameters
9830 * interps.c (interpreter_completer): Make "text" and "word"
9832 * language.h (struct language_defn)
9833 <la_make_symbol_completion_list>: Make "text" and "word"
9835 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9836 (parse_exp_in_context): Rename to ...
9837 (parse_exp_in_context_1): ... this.
9838 (parse_exp_in_context): Reimplement, with const hack from
9840 (parse_expression_for_completion): Make "string" parameter const.
9841 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9842 to pointer to const char. Adjust.
9843 (print_command_1): Make "exp" parameter const.
9844 (output_command): Rename to ...
9845 (output_command_const): ... this. Make "exp" parameter const.
9846 (output_command): Reimplement.
9847 (x_command): Adjust.
9848 (display_command): Rename "exp" parameter to "arg". New "exp"
9849 local, const version of "arg".
9850 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9851 "cmd_name" local const.
9852 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9854 (cmdpy_completer): Make "text" and "word" parameters const.
9855 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9856 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9858 * remote.c (_initialize_remote): Make "cmd_name" local const.
9859 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9860 parameters const. Adjust.
9861 (completion_list_add_fields): Make "sym_text", "text" and "word"
9863 (struct add_name_data) <sym_text, text, word>: Make fields const.
9864 (default_make_symbol_completion_list_break_on): Make "text" and
9865 "word" parameters const. Adjust locals.
9866 (default_make_symbol_completion_list)
9867 (make_symbol_completion_list, make_symbol_completion_type)
9868 (make_symbol_completion_list_fn): Make "text" and "word"
9870 (make_file_symbol_completion_list): Make "text", "word" and
9871 "srcfile" parameters const. Adjust locals.
9872 (add_filename_to_list): Make "text" and "word" parameters const.
9873 (struct add_partial_filename_data) <text, word>: Make fields
9875 (make_source_files_completion_list): Make "text" and "word"
9877 * symtab.h (default_make_symbol_completion_list_break_on)
9878 (default_make_symbol_completion_list, make_symbol_completion_list)
9879 (make_symbol_completion_type enum type_code)
9880 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9881 (make_source_files_completion_list): Change prototype.
9882 * top.c (execute_command): Adjust to pass pointer to pointer to
9883 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9885 (set_verbose): Make "cmdname" local const.
9886 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9888 (validate_actionline): Make "line" parameter a pointer to const
9890 (encode_actions_1): Make "action_exp" local const, and adjust.
9891 (encode_actions): Adjust.
9892 (replace_comma): Delete.
9893 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9894 const, and adjust. Don't frob the action string while splitting
9895 it at commas. Instead, make a copy of each split substring in
9897 (trace_dump_command): Adjust to validate_actionline prototype
9899 * tracepoint.h (decode_agent_options, decode_agent_options)
9900 (encode_actions, validate_actionline): Change prototypes.
9901 * valprint.h (output_command): Delete declaration.
9902 (output_command_const): Declare.
9903 * value.c (function_destroyer): Cast const away in xfree call.
9905 2013-03-13 Pedro Alves <palves@redhat.com>
9907 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9908 rather than casting 'const char * const *' to 'const char **'.
9909 * ada-lex.l (processInt): Make "trailer" local const. Remove
9910 'const char **' cast.
9911 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9912 locals, and use those as strtol output pointer, instead than doing
9913 invalid casts to from 'const char **' to 'char **'.
9914 (_initialize_demangle): Remove cast.
9915 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9916 locals, and use those as strtol output pointer, instead than doing
9917 invalid casts to from 'const char **' to 'char **'.
9918 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9920 * stap-probe.c (stap_parse_register_operand)
9921 (stap_parse_single_operand): Likewise.
9923 2013-03-13 Yao Qi <yao@codesourcery.com>
9925 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9926 the last matched 'V' blcok in trace frame.
9928 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9930 * NEWS: Create a new section for the next release branch.
9931 Rename the section of the current branch, now that it has
9934 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9936 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9937 * version.in: Bump version to 7.6.50.20130312-cvs.
9939 2013-03-12 Keith Seitz <keiths@redhat.com>
9941 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9942 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9943 Remove temporary copy of input string.
9944 (mi_execute_command_wrapper): Make "cmd" const.
9945 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9946 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9948 (mi_parse): Make "cmd" const.
9950 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9952 2013-03-12 Keith Seitz <keiths@redhat.com>
9954 * ada-lang.c (ada_read_renaming_var_value): Pass const
9955 pointer to expression string to parse_exp_1.
9956 (create_excep_cond_exprs): Likewise.
9957 * ax-gdb.c (agent_eval_command_one): Likewise.
9958 (maint_agent_printf_command): Likewise.
9959 Constify much of the string handling/parsing.
9960 * breakpoint.c (set_breakpoint_condition): Pass const
9961 pointer to expression string to parse_exp_1.
9962 (update_watchpoint): Likewise.
9963 (parse_cmd_to_aexpr): Constify string handling.
9964 Pass const pointer to parse_exp_1.
9965 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9966 (find_condition_and_thread): Likewise.
9968 (watch_command_1): Make "arg" const.
9969 Constify string handling.
9970 Copy the expression string instead of changing the input
9972 (update_breakpoint_location): Pass const pointer to
9974 * eval.c (parse_and_eval_address): Make "exp" const.
9975 (parse_to_comma_and_eval): Make "expp" const.
9976 (parse_and_eval): Make "exp" const.
9977 * expression.h (parse_expression): Make argument const.
9978 (parse_exp_1): Make first argument const.
9979 * findcmd.c (parse_find_args): Treat "args" as const.
9980 * linespec.c (parse_linespec): Pass const pointer to
9981 linespec_expression_to_pc.
9982 (linespec_expression_to_pc): Make "exp_ptr" const.
9983 * parse.c (parse_exp_1): Make "stringptr" const.
9984 Make a copy of the expression to pass to parse_exp_in_context until
9985 this whole interface can be constified.
9986 (parse_expression): Make "string" const.
9987 * printcmd.c (ui_printf): Treat "arg" as const.
9988 Handle const strings.
9989 * tracepoint.c (validate_actionline): Pass const pointer to
9990 all calls to parse_exp_1.
9991 (encode_actions_1): Likewise.
9992 * value.h (parse_to_comma_and_eval): Make argument const.
9993 (parse_and_eval_address): Likewise.
9994 (parse_and_eval): Likewise.
9995 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9996 (varobj_set_value): Likewise.
9997 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9998 constify string handling.
9999 Pass const pointers to parse_and_eval_address and
10000 parse_to_comman_and_eval.
10001 * cli/cli-utils.c (skip_to_space): Rename to ...
10002 (skip_to_space_const): ... this. Handle const strings.
10003 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10004 skip_to_space_const.
10005 (skip_to_space_const): Declare.
10006 * common/format.c (parse_format_string): Make "arg" const.
10007 Handle const strings.
10008 * common/format.h (parse_format_string): Make "arg" const.
10009 * gdbserver/ax.c (ax_printf): Make "format" const.
10010 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10011 of the expression string.
10013 2013-03-12 Hui Zhu <hui@codesourcery.com>
10015 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10017 2013-03-12 Yao Qi <yao@codesourcery.com>
10018 Hui Zhu <hui@codesourcery.com>
10020 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10021 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10024 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10026 * ada-lex.l (rules): Only recognize 'thread' as a
10027 delimiter when followed by numerals, as for c-exp.y.
10028 Use new rewind_to_char function to rewind the input for
10029 expression-delimiting tokens.
10030 (rewind_to_char): New function.
10032 2013-03-11 Pedro Alves <palves@redhat.com>
10033 Jan Kratochvil <jan.kratochvil@redhat.com>
10035 * configure: Regenerate.
10036 * configure.ac (check dynamic export flag): Link python test with
10039 2013-03-11 Doug Evans <dje@google.com>
10040 Keith Seitz <keiths@redhat.com>
10042 * linespec.c (find_linespec_symbols): Call find_function_symbols
10043 first, and then call lookup_prefix_sym/find_method.
10045 2013-03-11 Pedro Alves <palves@redhat.com>
10047 * charset.c (convert_between_encodings): Don't cast between
10048 different pointer to pointer types. Instead, make the 'inp' local
10049 be of the type iconv expects.
10050 (wchar_iterate): Don't cast between different pointer to pointer
10051 types. Instead, use new pointer local of the type iconv expects.
10052 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10053 Add new local of type char pointer, and use it to get a
10054 char/string view of the byte buffer, instead of casting between
10055 pointer to pointer types.
10057 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10059 * remote.c (remote_set_trace_buffer_size): Move != operator
10060 to the start of next line to fix an ARI warning.
10062 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10064 * NEWS: Add record changes.
10066 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10068 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10069 the instruction history disassembly.
10070 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10071 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10073 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10075 * Makefile.in (SFILES): Add record-btrace.c
10076 (COMMON_OBS): Add record-btrace.o
10077 * record-btrace.c: New.
10078 * objfiles.c: Include btrace.h.
10079 (free_objfile): call btrace_free_objfile.
10081 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10083 * target.c (target_call_history, target_call_history_from,
10084 target_call_history_range): New.
10085 * target.h (target_ops) <to_call_history, to_call_history_from,
10086 to_call_history_range>: New fields.
10087 (target_call_history, target_call_history_from,
10088 target_call_history_range): New declaration.
10089 * record.c (get_call_history_modifiers, cmd_record_call_history,
10090 record_call_history_size): New.
10091 (_initialize_record): Add the "record function-call-history" command.
10092 Add "set/show record function-call-history-size" commands.
10093 * record.h (record_print_flag): New.
10095 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10097 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10098 to_insn_history_range>: New fields.
10099 (target_insn_history): New.
10100 (target_insn_history_from): New.
10101 (target_insn_history_range): New.
10102 * target.c (target_insn_history): New.
10103 (target_insn_history_from): New.
10104 (target_insn_history_range): New.
10105 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10106 (record_insn_history_size): New.
10107 (get_insn_number): New.
10108 (get_context_size): New.
10110 (get_insn_history_modifiers): New.
10111 (cmd_record_insn_history): New.
10112 (_initialize_record): Add "set/show record instruction-history-size"
10113 command. Add "record instruction-history" command.
10115 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10117 * record.h (record_disconnect): New.
10118 (record_detach): New.
10119 (record_mourn_inferior): New.
10120 (record_kill): New.
10121 * record-full.c (record_disconnect, record_detach,
10122 record_mourn_inferior, record_kill): Move to...
10123 * record.c: ...here.
10125 (record_stop): New.
10126 (record_unpush): New.
10127 (cmd_record_stop): Call record_stop. Replace unpush_target
10128 call with record_unpush call.
10129 (record_disconnect, record_detach): Assert that the target
10130 is of record stratum. Call record_unpush, record_stop, and
10132 (record_mourn_inferior, record_kill): Assert that the target
10133 is of record stratum. Call record_unpush and DEBUG.
10135 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10137 * record-full.h, record-full.c (record_memory_query): Rename
10139 (record_full_memory_query): ...this. Update all users.
10140 (record_arch_list_add_reg): Rename to ...
10141 (record_full_arch_list_add_reg): ...this. Update all users.
10142 (record_arch_list_add_mem): Rename to ...
10143 (record_full_arch_list_add_mem): ...this. Update all users.
10144 (record_arch_list_add_end): Rename to ...
10145 (record_full_arch_list_add_end): ...this. Update all users.
10146 (record_gdb_operation_disable_set): Rename to ...
10147 (record_full_gdb_operation_disable_set): ...this.
10150 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10152 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10153 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10154 (RECORD_IS_REPLAY): Renamed to ...
10155 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10156 (RECORD_FILE_MAGIC): Renamed to ...
10157 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10158 (record_mem_entry): Renamed to ...
10159 (record_full_mem_entry): ... this. Updated all users.
10160 (record_reg_entry): Renamed to ...
10161 (record_full_reg_entry): ... this. Updated all users.
10162 (record_end_entry): Renamed to ...
10163 (record_full_end_entry): ... this. Updated all users.
10164 (record_type) <record_end, record_reg, record_mem>: Renamed
10166 (record_full_type) <record_full_end, record_full_reg,
10167 record_full_mem>: ... this. Updated all users.
10168 (record_entry): Renamed to ...
10169 (record_full_entry): ... this. Updated all users.
10170 (record_core_buf_entry): Renamed to ...
10171 (record_full_core_buf_entry): ... this. Updated all users.
10172 (record_core_regbuf): Renamed to ...
10173 (record_full_core_regbuf): ... this. Updated all users.
10174 (record_core_start): Renamed to ...
10175 (record_full_core_start): ... this. Updated all users.
10176 (record_core_end): Renamed to ...
10177 (record_full_core_end): ... this. Updated all users.
10178 (record_core_buf_list): Renamed to ...
10179 (record_full_core_buf_list): ... this. Updated all users.
10180 (record_first): Renamed to ...
10181 (record_full_first): ... this. Updated all users.
10182 (record_list): Renamed to ...
10183 (record_full_list): ... this. Updated all users.
10184 (record_arch_list_head): Renamed to ...
10185 (record_full_arch_list_head): ... this. Updated all users.
10186 (record_arch_list_tail): Renamed to ...
10187 (record_full_arch_list_tail): ... this. Updated all users.
10188 (record_stop_at_limit): Renamed to ...
10189 (record_full_stop_at_limit): ... this. Updated all users.
10190 (record_insn_max_num): Renamed to ...
10191 (record_full_insn_max_num): ... this. Updated all users.
10192 (record_insn_num): Renamed to ...
10193 (record_full_insn_num): ... this. Updated all users.
10194 (record_insn_count): Renamed to ...
10195 (record_full_insn_count): ... this. Updated all users.
10196 (record_ops): Renamed to ...
10197 (record_full_ops): ... this. Updated all users.
10198 (record_core_ops): Renamed to ...
10199 (record_full_core_ops): ... this. Updated all users.
10200 (set_record_cmdlist): Renamed to ...
10201 (set_record_full_cmdlist): ... this. Updated all users.
10202 (show_record_cmdlist): Renamed to ...
10203 (show_record_full_cmdlist): ... this. Updated all users.
10204 (record_cmdlist): Renamed to ...
10205 (record_full_cmdlist): ... this. Updated all users.
10206 (record_beneath_to_resume_ops): Renamed to ...
10207 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10208 (record_beneath_to_resume): Renamed to ...
10209 (record_full_beneath_to_resume): ... this. Updated all users.
10210 (record_beneath_to_wait_ops): Renamed to ...
10211 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10212 (record_beneath_to_wait): Renamed to ...
10213 (record_full_beneath_to_wait): ... this. Updated all users.
10214 (record_beneath_to_store_registers_ops): Renamed to ...
10215 (record_full_beneath_to_store_registers_ops): ... this.
10217 (record_beneath_to_store_registers): Renamed to ...
10218 (record_full_beneath_to_store_registers): ... this.
10220 (record_beneath_to_xfer_partial_ops): Renamed to ...
10221 (record_full_beneath_to_xfer_partial_ops): ... this.
10223 (record_beneath_to_xfer_partial): Renamed to ...
10224 (record_full_beneath_to_xfer_partial): ... this.
10226 (record_beneath_to_insert_breakpoint): Renamed to ...
10227 (record_full_beneath_to_insert_breakpoint): ... this.
10229 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10230 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10232 (record_beneath_to_stopped_data_address): Renamed to ...
10233 (record_full_beneath_to_stopped_data_address): ... this.
10235 (record_beneath_to_async): Renamed to ...
10236 (record_full_beneath_to_async): ... this. Updated all users.
10237 (record_goto_insn): Renamed to ...
10238 (record_full_goto_insn): ... this. Updated all users.
10239 (record_save): Renamed to ...
10240 (record_full_save): ... this. Updated all users.
10241 (record_reg_alloc): Renamed to ...
10242 (record_full_reg_alloc): ... this. Updated all users.
10243 (record_reg_release): Renamed to ...
10244 (record_full_reg_release): ... this. Updated all users.
10245 (record_mem_alloc): Renamed to ...
10246 (record_full_mem_alloc): ... this. Updated all users.
10247 (record_mem_release): Renamed to ...
10248 (record_full_mem_release): ... this. Updated all users.
10249 (record_end_alloc): Renamed to ...
10250 (record_full_end_alloc): ... this. Updated all users.
10251 (record_end_release): Renamed to ...
10252 (record_full_end_release): ... this. Updated all users.
10253 (record_entry_release): Renamed to ...
10254 (record_full_entry_release): ... this. Updated all users.
10255 (record_list_release): Renamed to ...
10256 (record_full_list_release): ... this. Updated all users.
10257 (record_list_release_following): Renamed to ...
10258 (record_full_list_release_following): ... this.
10260 (record_list_release_first): Renamed to ...
10261 (record_full_list_release_first): ... this. Updated all users.
10262 (record_arch_list_add): Renamed to ...
10263 (record_full_arch_list_add): ... this. Updated all users.
10264 (record_get_loc): Renamed to ...
10265 (record_full_get_loc): ... this. Updated all users.
10266 (record_check_insn_num): Renamed to ...
10267 (record_full_check_insn_num): ... this. Updated all users.
10268 (record_arch_list_cleanups): Renamed to ...
10269 (record_full_arch_list_cleanups): ... this. Updated all users.
10270 (record_message): Renamed to ...
10271 (record_full_message): ... this. Updated all users.
10272 (record_message_wrapper): Renamed to ...
10273 (record_full_message_wrapper): ... this. Updated all users.
10274 (record_message_wrapper_safe): Renamed to ...
10275 (record_full_message_wrapper_safe): ... this. Updated all users.
10276 (record_gdb_operation_disable): Renamed to ...
10277 (record_full_gdb_operation_disable): ... this. Updated all users.
10278 (record_hw_watchpoint): Renamed to ...
10279 (record_full_hw_watchpoint): ... this. Updated all users.
10280 (record_exec_insn): Renamed to ...
10281 (record_full_exec_insn): ... this. Updated all users.
10282 (record_restore): Renamed to ...
10283 (record_full_restore): ... this. Updated all users.
10284 (record_async_inferior_event_token): Renamed to ...
10285 (record_full_async_inferior_event_token): ... this.
10287 (record_async_inferior_event_handler): Renamed to ...
10288 (record_full_async_inferior_event_handler): ... this.
10290 (record_core_open_1): Renamed to ...
10291 (record_full_core_open_1): ... this. Updated all users.
10292 (record_open_1): Renamed to ...
10293 (record_full_open_1): ... this. Updated all users.
10294 (record_open): Renamed to ...
10295 (record_full_open): ... this. Updated all users.
10296 (record_close): Renamed to ...
10297 (record_full_close): ... this. Updated all users.
10298 (record_resume_step): Renamed to ...
10299 (record_full_resume_step): ... this. Updated all users.
10300 (record_resumed): Renamed to ...
10301 (record_full_resumed): ... this. Updated all users.
10302 (record_execution_dir): Renamed to ...
10303 (record_full_execution_dir): ... this. Updated all users.
10304 (record_resume): Renamed to ...
10305 (record_full_resume): ... this. Updated all users.
10306 (record_get_sig): Renamed to ...
10307 (record_full_get_sig): ... this. Updated all users.
10308 (record_sig_handler): Renamed to ...
10309 (record_full_sig_handler): ... this. Updated all users.
10310 (record_wait_cleanups): Renamed to ...
10311 (record_full_wait_cleanups): ... this. Updated all users.
10312 (record_wait_1): Renamed to ...
10313 (record_full_wait_1): ... this. Updated all users.
10314 (record_wait): Renamed to ...
10315 (record_full_wait): ... this. Updated all users.
10316 (record_stopped_by_watchpoint): Renamed to ...
10317 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10318 (record_disconnect): Renamed to ...
10319 (record_full_disconnect): ... this. Updated all users.
10320 (record_detach): Renamed to ...
10321 (record_full_detach): ... this. Updated all users.
10322 (record_mourn_inferior): Renamed to ...
10323 (record_full_mourn_inferior): ... this. Updated all users.
10324 (record_kill): Renamed to ...
10325 (record_full_kill): ... this. Updated all users.
10326 (record_stopped_data_address): Renamed to ...
10327 (record_full_stopped_data_address): ... this. Updated all users.
10328 (record_registers_change): Renamed to ...
10329 (record_full_registers_change): ... this. Updated all users.
10330 (record_store_registers): Renamed to ...
10331 (record_full_store_registers): ... this. Updated all users.
10332 (record_xfer_partial): Renamed to ...
10333 (record_full_xfer_partial): ... this. Updated all users.
10334 (record_breakpoint): Renamed to ...
10335 (record_full_breakpoint): ... this. Updated all users.
10336 (record_breakpoint_p): Renamed to ...
10337 (record_full_breakpoint_p): ... this. Updated all users.
10338 (record_breakpoints): Renamed to ...
10339 (record_full_breakpoints): ... this. Updated all users.
10340 (record_sync_record_breakpoints): Renamed to ...
10341 (record_full_sync_record_breakpoints): ... this.
10343 (record_init_record_breakpoints): Renamed to ...
10344 (record_full_init_record_breakpoints): ... this.
10346 (record_insert_breakpoint): Renamed to ...
10347 (record_full_insert_breakpoint): ... this. Updated all users.
10348 (record_remove_breakpoint): Renamed to ...
10349 (record_full_remove_breakpoint): ... this. Updated all users.
10350 (record_can_execute_reverse): Renamed to ...
10351 (record_full_can_execute_reverse): ... this. Updated all users.
10352 (record_get_bookmark): Renamed to ...
10353 (record_full_get_bookmark): ... this. Updated all users.
10354 (record_goto_bookmark): Renamed to ...
10355 (record_full_goto_bookmark): ... this. Updated all users.
10356 (record_async): Renamed to ...
10357 (record_full_async): ... this. Updated all users.
10358 (record_can_async_p): Renamed to ...
10359 (record_full_can_async_p): ... this. Updated all users.
10360 (record_is_async_p): Renamed to ...
10361 (record_full_is_async_p): ... this. Updated all users.
10362 (record_execution_direction): Renamed to ...
10363 (record_full_execution_direction): ... this. Updated all users.
10364 (record_info): Renamed to ...
10365 (record_full_info): ... this. Updated all users.
10366 (record_delete): Renamed to ...
10367 (record_full_delete): ... this. Updated all users.
10368 (record_is_replaying): Renamed to ...
10369 (record_full_is_replaying): ... this. Updated all users.
10370 (record_goto_entry): Renamed to ...
10371 (record_full_goto_entry): ... this. Updated all users.
10372 (record_goto_begin): Renamed to ...
10373 (record_full_goto_begin): ... this. Updated all users.
10374 (record_goto_end): Renamed to ...
10375 (record_full_goto_end): ... this. Updated all users.
10376 (record_goto): Renamed to ...
10377 (record_full_goto): ... this. Updated all users.
10378 (init_record_ops): Renamed to ...
10379 (init_record_full_ops): ... this. Updated all users.
10380 (record_core_resume): Renamed to ...
10381 (record_full_core_resume): ... this. Updated all users.
10382 (record_core_kill): Renamed to ...
10383 (record_full_core_kill): ... this. Updated all users.
10384 (record_core_fetch_registers): Renamed to ...
10385 (record_full_core_fetch_registers): ... this. Updated all users.
10386 (record_core_prepare_to_store): Renamed to ...
10387 (record_full_core_prepare_to_store): ... this. Updated all users.
10388 (record_core_store_registers): Renamed to ...
10389 (record_full_core_store_registers): ... this. Updated all users.
10390 (record_core_xfer_partial): Renamed to ...
10391 (record_full_core_xfer_partial): ... this. Updated all users.
10392 (record_core_insert_breakpoint): Renamed to ...
10393 (record_full_core_insert_breakpoint): ... this. Updated all users.
10394 (record_core_remove_breakpoint): Renamed to ...
10395 (record_full_core_remove_breakpoint): ... this. Updated all users.
10396 (record_core_has_execution): Renamed to ...
10397 (record_full_core_has_execution): ... this. Updated all users.
10398 (init_record_core_ops): Renamed to ...
10399 (init_record_full_core_ops): ... this. Updated all users.
10400 (cmd_record_restore): Renamed to ...
10401 (cmd_record_full_restore): ... this. Updated all users.
10402 (record_save_cleanups): Renamed to ...
10403 (record_full_save_cleanups): ... this. Updated all users.
10404 (cmd_record_start): Renamed to ...
10405 (cmd_record_full_start): ... this. Updated all users.
10406 (set_record_insn_max_num): Renamed to ...
10407 (set_record_full_insn_max_num): ... this. Updated all users.
10408 (set_record_command): Renamed to ...
10409 (set_record_full_command): ... this. Updated all users.
10410 (show_record_command): Renamed to ...
10411 (show_record_full_command): ... this. Updated all users.
10412 (_initialize_record): Renamed to ...
10413 (_initialize_record_full): ... this. Updated all users.
10415 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10417 * record.h: Split into this and ...
10418 * record-full.h: ... this.
10419 * record.c: Split into this and ...
10420 * record-full.c: ... this.
10421 * target.h (target_ops): Add new fields to_info_record,
10422 to_save_record, to_delete_record, to_record_is_replaying,
10423 to_goto_record_begin, to_goto_record_end, to_goto_record.
10424 (target_info_record): New.
10425 (target_save_record): New.
10426 (target_supports_delete_record): New.
10427 (target_delete_record): New.
10428 (target_record_is_replaying): New.
10429 (target_goto_record_begin): New.
10430 (target_goto_record_end): New.
10431 (target_goto_record): New.
10432 * target.c (target_info_record): New.
10433 (target_save_record): New.
10434 (target_supports_delete_record): New.
10435 (target_delete_record): New.
10436 (target_record_is_replaying): New.
10437 (target_goto_record_begin): New.
10438 (target_goto_record_end): New.
10439 (target_goto_record): New.
10440 * record.h: Declare struct cmd_list_element.
10441 (record_cmdlist): New declaration.
10442 (set_record_cmdlist): New declaration.
10443 (show_record_cmdlist): New declaration.
10444 (info_record_cmdlist): New declaration.
10445 (cmd_record_goto): New declaration.
10446 * record.c: Remove unnecessary includes.
10447 Include inferior.h.
10448 (cmd_record_goto): Remove declaration.
10449 (record_cmdlist): Now extern. Initialize.
10450 (set_record_cmdlist): Now extern. Initialize.
10451 (show_record_cmdlist): Now extern. Initialize.
10452 (info_record_cmdlist): Now extern. Initialize.
10453 (find_record_target): New.
10454 (require_record_target): New.
10455 (cmd_record_start): Update.
10456 (cmd_record_delete): Remove target-specific code.
10457 Call target_delete_record.
10458 (cmd_record_stop): Unpush any record target.
10459 (set_record_insn_max_num): Move to record-full.c
10460 (set_record_command): Add comment.
10461 (show_record_command): Add comment.
10462 (info_record_command): Update comment.
10463 Remove target-specific code.
10464 Call the record target's to_info_record.
10465 (cmd_record_start): New.
10466 (cmd_record_goto): Now extern.
10467 Remove target-specific code.
10468 Call target_goto_begin, target_goto_end, or target_goto.
10469 (_initialize_record): Move record target ops initialization to
10471 Change "record" command help text.
10472 Move "record restore", "record set", and "record show" commands to
10474 * Makefile.in (SFILES): Add record-full.c.
10475 (HFILES_NO_SRCDIR): Add record-full.h.
10476 (COMMON_OBS): Add record-full.o.
10477 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10478 * arm-tdep.c: Include record-full.h.
10479 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10480 * i386-tdep.c: Include record-full.h.
10481 * infrun.c: Include record-full.h.
10482 * linux-record.c: Include record-full.h.
10483 * moxie-tdep.c: Include record-full.h.
10484 * record-full.c: Include record-full.h.
10485 Change module comment.
10486 (set_record_full_cmdlist): New.
10487 (show_record_full_cmdlist): New.
10488 (record_full_cmdlist): New.
10489 (record_goto_insn): New declaration.
10490 (record_save): New declaration.
10491 (record_check_insn_num): Change query string.
10492 (record_info): New.
10493 (record_delete): New.
10494 (record_is_replaying): New.
10495 (record_goto_entry): New.
10496 (record_goto_begin): New.
10497 (record_goto_end): New.
10498 (record_goto): New.
10499 (init_record_ops): Update.
10500 (init_record_core_ops): Update.
10501 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10502 (cmd_record_start): New.
10503 (set_record_insn_max_num): Moved from record.c
10504 (set_record_full_command): New.
10505 (show_record_full_command): New.
10506 (_initialize_record_full): New.
10508 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10510 * target.h (add_deprecated_target_alias): New.
10511 * target.c (add_deprecated_target_alias): New.
10513 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10515 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10517 (linux_supports_btrace): Add kernel and
10519 (kernel_supports_btrace): New function.
10520 (cpu_supports_btrace): New function.
10521 (intel_supports_btrace): New function.
10523 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10525 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10526 * remote.c: Include btrace.h.
10527 (struct btrace_target_info): New struct.
10528 (remote_supports_btrace): New function.
10529 (send_Qbtrace): New function.
10530 (remote_enable_btrace): New function.
10531 (remote_disable_btrace): New function.
10532 (remote_teardown_btrace): New function.
10533 (remote_read_btrace): New function.
10534 (init_remote_ops): Add btrace ops.
10535 (enum <unnamed>): Add btrace packets.
10536 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10537 (_initialize_remote): Add packet configuration for branch tracing.
10539 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10541 * features/btrace.dtd: New file.
10542 * Makefile.in (XMLFILES): Add btrace.dtd.
10543 * btrace.h (parse_xml_btrace): New declaration.
10544 * btrace.c: Include xml-support.h.
10545 (parse_xml_btrace): New function.
10546 (parse_xml_btrace_block): New function.
10547 (block_attributes): New struct.
10548 (btrace_attributes): New struct.
10549 (btrace_children): New struct.
10550 (btrace_elements): New struct.
10552 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10554 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10555 (amd64_linux_enable_btrace): New.
10556 (amd64_linux_disable_btrace): New.
10557 (amd64_linux_teardown_btrace): New.
10558 (_initialize_amd64_linux_nat): Initialize btrace ops.
10559 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10560 (i386_linux_enable_btrace): New.
10561 (i386_linux_disable_btrace): New.
10562 (i386_linux_teardown_btrace): New.
10563 (_initialize_i386_linux_nat): Initialize btrace ops.
10564 * config/i386/linux.mh: Add linux-btrace.o.
10565 * config/i386/linux64.mh: Add linux-btrace.o.
10567 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10569 * common/linux_btrace.h: New file.
10570 * common/linux_btrace.c: New file.
10571 * Makefile.in (SFILES): Add btrace.c.
10572 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10573 (COMMON_OBS): Add btrace.o.
10574 (linux-btrace.o): New rule.
10576 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10578 * target.h: Include btrace.h.
10579 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10580 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10581 * target.c (target_supports_btrace): New function.
10582 (target_enable_btrace): New function.
10583 (target_disable_btrace): New function.
10584 (target_teardown_btrace): New function.
10585 (target_read_btrace): New function.
10586 * btrace.h: New file.
10587 * btrace.c: New file.
10588 * Makefile.in: Add btrace.c.
10589 * gdbthread.h: Include btrace.h.
10590 (struct thread_info): Add btrace field.
10591 * thread.c: Include btrace.h.
10592 (clear_thread_inferior_resources): Call target_teardown_btrace.
10593 * common/btrace-common.h: New file.
10595 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10597 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10598 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10599 kill_status to outer block.
10601 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10603 Fix entry-values if the callee called a noreturn function.
10604 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10605 get_frame_address_in_block. Add new comment.
10607 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 Fix entry-values in C++ across CUs.
10610 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10611 lookup_minimal_symbol. Add a comment.
10613 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10614 DW_AT_linkage_name.
10616 2013-03-08 Yao Qi <yao@codesourcery.com>
10618 * tracepoint.c (_initialize_tracepoint): Indent the code.
10620 2013-03-08 Pedro Alves <palves@redhat.com>
10622 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10623 (parse_find_args, find_command): Change type of pattern buffer
10624 locals to 'gdb_byte *'.
10626 2013-03-08 Stan Shebs <stan@codesourcery.com>
10627 Hafiz Abid Qadeer <abidh@codesourcery.com>
10629 * NEWS: Mention set and show trace-buffer-size commands.
10630 Mention new packet.
10631 * target.h (struct target_ops): New method
10632 to_set_trace_buffer_size.
10633 (target_set_trace_buffer_size): New macro.
10634 * target.c (update_current_target): Set up new method.
10635 * tracepoint.c (trace_buffer_size): New global.
10636 (start_tracing): Send it to the target.
10637 (set_trace_buffer_size): New function.
10638 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10639 * remote.c (remote_set_trace_buffer_size): New function.
10640 (_initialize_remote): Use it.
10641 (QTBuffer:size) New remote command.
10642 (PACKET_QTBuffer_size): New enum.
10643 (remote_protocol_features): Add an entry for
10644 PACKET_QTBuffer_size.
10646 2013-03-08 Tom Tromey <tromey@redhat.com>
10648 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10651 2013-03-07 Pedro Alves <palves@redhat.com>
10653 * target.c (target_read_stralloc, target_fileio_read_alloc):
10654 *Cast pointer to 'gdb_byte *' in target call.
10656 2013-03-07 Pedro Alves <palves@redhat.com>
10658 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10661 2013-03-07 Keith Seitz <keiths@redhat.com>
10663 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10664 (trace_pass_command): Likewise.
10665 * cli/cli-cmds.c: Include cli/cli-utils.h.
10666 (source_command): Use skip-spaces.
10667 (disassemble_command): Likewise.
10668 * findcmd.c: Include cli/cli-utils.h.
10669 (parse_find_args): Use skip_spaces.
10670 * go32-nat.c: Include cli/cli-utils.h.
10671 (go32_sldt): Use skip_spaces.
10672 (go32_sgdt): Likewise.
10673 (go32_sidt): Likewise.
10674 (go32_pde): Likewise.
10675 (go32_pte): Likewise.
10676 (go32_pte_for_address): Likewise.
10677 * infcmd.c: Include cli/cli-utils.h.
10678 (registers_info): Use skip_spaces.
10679 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10680 (linux_info_proc): Likewise.
10681 * linux-thread-db.c: Include cli/cli-utils.h.
10682 (info_auto_load_libthread_db): Use skip_spaces_const.
10683 * m32r-rom.c: Include cli/cli-utils.h.
10684 (m32r_upload_command): Use skip_spaces.
10685 * maint.c: Include cli/cli-utils.h.
10686 (maintenance_translate_address): Use skip_spaces.
10687 * mi/mi-parse.c: Include cli/cli-utils.h.
10688 (mi_parse_argv): Use skip_spaces.
10689 (mi_parse): Likewise.
10690 * minsyms.c: Include cli/cli-utils.h.
10691 (msymbol_hash_iw): Use skip_spaces_const.
10692 * objc-lang.c: Include cli/cli-utils.h.
10693 (parse_selector): Use skip_spaces.
10694 (parse_method): Likewise.
10695 * python/python.c: Include cli/cli-utils.h.
10696 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10697 (python_command)[HAVE_PYTHON]: Likewise.
10698 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10699 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10700 (m32r_load): Use skip_spaces.
10701 * serial.c: Include cli/cli-utils.h.
10702 (serial_open): Use skip_spaces_const.
10703 * stack.c: Include cli/cli-utils.h.
10704 (parse_frame_specification_1): Use skip_spaces_const.
10705 * symfile.c: Include cli/cli-utils.h.
10706 (set_ext_lang_command): Use skip_spaces.
10707 * symtab.c: Include cli/cli-utils.h.
10708 (rbreak_command): Use skip_spaces.
10709 * thread.c (thread_name_command): Use skip_spaces.
10710 * tracepoint.c (validate_actionline): Use skip_spaces.
10711 (encode_actions_1): Likewise.
10712 (trace_find_range_command): Likewise.
10713 (trace_find_outside_command): Likewise.
10714 (trace_dump_actions): Likewise.
10716 2013-03-07 Pedro Alves <palves@redhat.com>
10718 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10719 * expprint.c (print_subexp_standard): Likewise.
10720 * utils.c (host_char_to_target): Likewise.
10721 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10722 * varobj.c (value_get_print_value): Change type of local to char*.
10723 Cast it gdb_byte * in call to language printer.
10725 2013-03-07 Pedro Alves <palves@redhat.com>
10727 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10729 (make_wchar_iterator): Remove cast to char*.
10730 (wchar_iterate): Change type of local.
10732 2013-03-07 Pedro Alves <palves@redhat.com>
10734 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10735 for 'regcache->register_status'.
10737 2013-03-07 Pedro Alves <palves@redhat.com>
10739 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10742 2013-03-07 Pedro Alves <palves@redhat.com>
10744 * stap-probe.c (handle_stap_probe): Add cast to char*.
10746 2013-03-07 Pedro Alves <palves@redhat.com>
10748 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10749 RECORD_MSGRCV>: Pass a signed variable to
10750 regcache_raw_read_signed, instead of an unsigned one.
10752 2013-03-07 Pedro Alves <palves@redhat.com>
10754 * remote-notif.c (notif_debug): Change type to int.
10755 * remote-notif.h (notif_debug): Likewise.
10757 2013-03-07 Pedro Alves <palves@redhat.com>
10759 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10761 2013-03-07 Pedro Alves <palves@redhat.com>
10763 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10764 * remote.h (hex2bin, bin2hex): ... here.
10765 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10767 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10769 * utils.c (initialize_utils): Improve doc strings of "set/show
10770 width", "set/show height", and "set/show pagination".
10772 2013-03-06 Keith Seitz <keiths@redhat.com>
10774 * ax-gdb.c (gen_printf): Make FORMAT const.
10775 * ax-gdb.h (gen_printf): Likewise.
10776 * ax-general.c (ax_string): Make STR const.
10777 * ax.h (ax_string): Likewise.
10779 2013-03-06 Doug Evans <dje@google.com>
10781 * elfread.c (elf_symfile_read): Move debugging printf to more
10784 2013-03-06 Pedro Alves <palves@redhat.com>
10786 * python/py-utils.c (target_string_to_unicode): Delete function.
10787 * python/python-internal.h (target_string_to_unicode): Delete
10790 2013-03-06 Pierre Muller <muller@sourceware.org>
10792 * linespec.c (get_current_search_block): ARI fix, use (void)
10793 for empty parameter list.
10795 2013-03-05 Doug Evans <dje@google.com>
10797 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10798 of old ada_lookup_symbol_list. In !full_search case, don't
10799 search superblocks.
10800 (ada_lookup_symbol_list): Delete arg full_search, all callers
10801 updated. Call ada_lookup_symbol_list_worker.
10802 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10803 * ada-lang.h (ada_lookup_symbol_list): Update.
10804 * language.h (language_defn): Update comment for
10805 la_iterate_over_symbols.
10806 * linespec.c (iterate_over_file_blocks): New function.
10807 (iterate_over_all_matching_symtabs): Call it.
10808 (lookup_prefix_sym): Ditto.
10809 (get_current_search_block): New function.
10810 (get_search_block): Delete.
10811 (find_label_symbols): Call get_current_search_block.
10812 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10813 * symtab.c (iterate_over_symbols): Don't search superblocks.
10815 2013-03-05 Yao Qi <yao@codesourcery.com>
10817 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10818 parameter VAR's type from "unsigned int" to "int".
10819 * command.h (var_zuinteger_unlimited): Update its comments.
10820 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10822 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10824 * NEWS: Mention new target x86_64-*-cygwin*.
10826 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10828 * configure.host: Add x86_64-*-cygwin* as host.
10829 * configure.tgt: Add x86_64-*-cygwin* as target.
10830 * config/i386/cygwin64.mh: New file.
10832 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10836 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10838 * linespec.c (struct linespec_canonical_name): New.
10839 (struct linespec_state): Change canonical_names type to it.
10840 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10841 xrealloc element size. Initialize the different CANONICAL fields.
10842 (canonical_to_fullform): New.
10843 (filter_results): Use it. Add variables canonical, fullform and
10845 (struct decode_line_2_item, decode_line_2_compare_items): New.
10846 (decode_line_2): Remove variables iter and item_names, add variables
10847 items and items_count. Modify the code for these new variables.
10849 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10851 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10852 calling do_cleanup.
10854 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10856 * tracepoint.c (build_traceframe_info): Add code for byte order.
10858 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10860 * v850-tdep.c: (v850e2_register_name): Revise system register
10861 names to match current V850E2M architecture specifications.
10862 Update register number enum comments too.
10864 2013-03-01 Jiong Wang <jiwang@tilera.com>
10865 Pedro Alves <palves@redhat.com>
10867 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10869 (tilegx_skip_prologue): Limit prologue analysis to section end.
10871 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10873 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10876 2013-03-01 Pedro Alves <palves@redhat.com>
10878 Use gdb_byte for bytes from the program being debugged.
10880 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10881 Change type of local 'buf' to gdb_byte.
10882 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10883 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10884 * cris-tdep.c (cris_sigcontext_addr)
10885 (cris_sigtramp_frame_unwind_cache): Likewise.
10886 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10887 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10889 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10890 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10891 (hppa32_hpux_search_dummy_call_sequence)
10892 (hppa_hpux_supply_save_state): Likewise.
10893 * hppa-linux-tdep.c (insns_match_pattern)
10894 (hppa_linux_find_global_pointer): Likewise.
10895 * hppa-tdep.c (hppa_in_function_epilogue_p)
10896 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10897 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10898 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10899 (i386fbsd_collect_uthread): Likewise.
10900 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10901 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10902 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10903 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10904 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10905 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10906 (ia64_libunwind_frame_prev_register)
10907 (ia64_libunwind_sigtramp_frame_this_id)
10908 (ia64_find_global_pointer_from_dynamic_section)
10909 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10910 (ia64_unwind_pc): Likewise.
10911 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10912 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10913 (m68hc11_extract_return_value): Likewise.
10914 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10915 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10916 (mep_get_insn, mep_push_dummy_call): Likewise.
10917 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10918 (mips_linux_in_dynsym_stub): Likewise.
10919 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10920 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10921 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10923 * remote-mips.c (mips_set_register): Likewise.
10924 * remote-sim.c (gdbsim_fetch_register): Likewise.
10925 * score-tdep.c (score7_fetch_inst): Change type of parameter
10926 'memblock' and local 'buf' to gdb_byte.
10927 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10928 Change type of local 'buf' to gdb_byte. Adjust.
10929 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10931 (score7_analyze_prologue): Change type of 'memblock' and
10932 'memblock_ptr' locals to gdb_byte*.
10933 * sh64-tdep.c (sh64_extract_return_value)
10934 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10935 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10936 * solib-pa64.c (pa64_solib_create_inferior_hook)
10937 (pa64_open_symbol_file_object): Remove local 'buf'.
10938 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10939 (som_open_symbol_file_object): Likewise.
10940 * solib-spu.c (spu_current_sos): Likewise.
10941 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10942 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10943 (spu_store_registers): Likewise.
10944 * target.c (debug_print_register): Likewise.
10945 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10946 * xstormy16-tdep.c (xstormy16_store_return_value)
10947 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10948 (xstormy16_find_jmp_table_entry): Likewise.
10950 2013-03-01 Jiong Wang <jiwang@tilera.com>
10952 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10953 (tilegx_gdbarch_init): Install it.
10955 2013-02-28 Tom Tromey <tromey@redhat.com>
10957 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10960 2013-02-28 Doug Evans <dje@google.com>
10962 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10963 * python/python.c (gdbpy_find_pc_line): Ditto.
10965 2013-02-28 Tom Tromey <tromey@redhat.com>
10967 * contrib/excheck.py: New file.
10968 * contrib/exsummary.py: New file.
10969 * contrib/gcc-with-excheck: New file.
10971 2013-02-28 Tom Tromey <tromey@redhat.com>
10973 * python/python.c (gdbpy_print_stack): Call begin_line and
10974 fprintf_filtered inside TRY_CATCH.
10976 2013-02-28 Tom Tromey <tromey@redhat.com>
10978 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10981 2013-02-28 Tom Tromey <tromey@redhat.com>
10983 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10984 frame_object_to_frame_info inside TRY_CATCH.
10986 2013-02-28 Tom Tromey <tromey@redhat.com>
10988 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10991 2013-02-28 Tom Tromey <tromey@redhat.com>
10993 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10995 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10997 * windows-nat.c: Throughout, fix format strings and casts of
10998 printf-like functions to avoid type related warnings on all
11000 (handle_output_debug_string): Fetch context information address
11001 from debug string using string_to_core_addr.
11003 2013-02-27 Jiong Wang <jiwang@tilera.com>
11005 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11006 * regformats/reg-tilegx32.dat: New.
11008 2013-02-27 Jiong Wang <jiwang@tilera.com>
11010 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11012 2013-02-27 Jiong Wang <jiwang@tilera.com>
11014 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11016 2013-02-27 Yao Qi <yao@codesourcery.com>
11017 Pedro Alves <palves@redhat.com>
11019 * tracepoint.c (tfile_trace_find): For tfind
11020 pc/tp/range/outside, look for the next trace frame instead of
11021 always starting from frame 0.
11023 2013-02-26 Anthony Green <green@moxielogic.com>
11025 * configure.tgt: Add support for moxie-*-rtems* target.
11027 2013-02-25 Pedro Alves <palves@redhat.com>
11029 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11032 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11034 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11035 if $fp is used as the virtual frame pointer.
11037 2013-02-23 Alan Modra <amodra@gmail.com>
11039 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11041 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11042 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11043 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11044 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11046 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11049 * elfread.c (build_id_bfd_get): Make the return type const.
11050 (build_id_verify): Make the check parameter const.
11051 (build_id_to_debug_filename): Make the build_id parameter and variable
11053 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11055 2013-02-21 Alan Modra <amodra@gmail.com>
11057 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11059 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11061 Add a new method 'disassemble' to gdb.Architecture class.
11062 * python/py-arch.c (archpy_disassmble): Implementation of the
11063 new method gdb.Architecture.disassemble.
11064 (arch_object_methods): Add entry for the new method.
11066 2013-02-20 Jiong Wang <jiwang@tilera.com>
11068 * MAINTAINERS (Write After Approval): Add myself to the list.
11070 2013-02-19 Pedro Alves <palves@redhat.com>
11072 Garbage collect 'struct monitor_ops'::load_routine.
11074 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11075 * monitor.c (monitor_load): No longer call
11076 current_monitor->load_routine.
11077 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11078 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11079 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11081 2013-02-19 Pedro Alves <palves@redhat.com>
11085 Harmonize with generic_load.
11087 * monitor.c: Include "readline/readline.h".
11088 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11089 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11090 long/strtol for the 'load_offset' local. Error out if no argument
11091 is given or if too many arguments are given. Tilde expand the
11092 passed in file name.
11094 2013-02-19 Kai Tietz <ktietz@redhat.com>
11097 * symfile.c (load_section_data): Change type of load_offset
11099 (generic_load): User strtoulst instead of strtoul for conversion
11102 2013-02-19 Jiong Wang <jiwang@tilera.com>
11104 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11105 for return address, "lr" register, saved on stack.
11106 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11107 after we invoke tilegx_analyze_prologue.
11109 2013-02-19 Jiong Wang <jiwang@tilera.com>
11111 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11113 2013-02-19 Jiong Wang <jiwang@tilera.com>
11115 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11117 2013-02-19 Jiong Wang <jiwang@tilera.com>
11119 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11120 (tilegx_write_pc): New function.
11121 (tilegx_cannot_reference_register): Return zero if REGNO
11122 is TILEGX_FAULTNUM_REGNUM.
11123 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11124 (tilegx_register_name): Add handling of "faultnum" register.
11125 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11126 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11127 handling of TILEGX_FAULTNUM_REGNUM.
11128 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11130 2013-02-19 Jiong Wang <jiwang@tilera.com>
11132 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11133 should be aligned to 64bit.
11135 2013-02-19 Kai Tietz <ktietz@redhat.com>
11137 * windows-nat.c (windows_xfer_memory): Fix debug-output
11140 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11142 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11143 Don't check DSP register number if HAVE_DSP is not set.
11145 2013-02-19 Alan Modra <amodra@gmail.com>
11147 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11148 throughout file instead.
11149 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11150 Don't xmalloc return value.
11151 (build_id_verify): Similarly. Don't xfree.
11152 (build_id_to_debug_filename): Update.
11153 (find_separate_debug_file_by_buildid): Update, don't xfree.
11155 2013-02-18 Tom Tromey <tromey@redhat.com>
11158 * dwarf2read.c (read_subrange_type): Use result of
11161 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11163 * frame.c: Remove one extra white space after #include
11166 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11168 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11170 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11172 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11173 and dir commands into an if block.
11175 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11177 * python/py-breakpoint (struct pybp_code): Use int instead of
11180 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11181 Hafiz Abid Qadeer <abidh@codesourcery.com>
11183 * NEWS: Mention new field "trace-file".
11184 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11185 (tfile_open): Record the trace file's filename in the trace
11187 (tfile_files_info): Mention the name of the trace file.
11188 Check the "filename" field explicitely.
11189 (trace_status_command): Explicitely check "filename" field.
11190 (trace_find_command): Ditto.
11191 (trace_find_pc_command): Ditto.
11192 (trace_find_tracepoint_command): Ditto.
11193 (trace_find_line_command): Ditto.
11194 (trace_find_range_command): Ditto.
11195 (trace_find_outside_command): Ditto.
11196 * tracepoint.h (struct trace_status) <from_file>: Rename it
11197 to "filename" and make it hold the trace file's filename
11198 instead of a boolean.
11199 * remote.c (remote_get_trace_status): Initialize "filename"
11200 field with NULL instead of 0.
11202 2013-02-15 Yao Qi <yao@codesourcery.com>
11204 * remote.c: Fix a typo.
11206 2013-02-14 Pierre Muller <muller@sourceware.org>
11208 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11210 2013-02-14 Pedro Alves <palves@redhat.com>
11212 * utils.c (savestring): Don't #undef it. Move function to
11213 common/common-utils.c.
11214 * common/common-utils.c: Include gdb_string.h.
11215 (savestring): Move here from utils.c.
11216 * common/common-utils.h (savestring): Declare.
11218 2013-02-14 Pedro Alves <palves@redhat.com>
11220 * utils.c (savestring): Rename parameter 'size' to 'len'.
11222 2013-02-14 Pedro Alves <palves@redhat.com>
11223 Yufeng Zhang <yufeng.zhang@arm.com>
11225 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11226 (aarch64_inferior_data, struct aarch64_inferior_data):
11228 (struct aarch64_process_info): New.
11229 (aarch64_process_list): New global.
11230 (aarch64_find_process_pid, aarch64_add_process)
11231 (aarch64_process_info_get): New functions.
11232 (aarch64_inferior_data_get): Delete.
11233 (aarch64_process_info_get): New function.
11234 (aarch64_forget_process): New function.
11235 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11236 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11237 aarch64_get_debug_reg_state.
11238 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11239 instead of linux_nat_iterate_watchpoint_lwps.
11240 (aarch64_linux_new_fork): New function.
11241 (aarch64_linux_child_post_startup_inferior): Use
11242 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11243 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11244 (aarch64_linux_remove_hw_breakpoint)
11245 (aarch64_handle_aligned_watchpoint)
11246 (aarch64_handle_unaligned_watchpoint)
11247 (aarch64_linux_insert_watchpoint)
11248 (aarch64_linux_remove_watchpoint)
11249 (aarch64_linux_stopped_data_address): Adjust to pass the current
11250 process id to aarch64_debug_reg_state.
11251 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11252 linux_nat_new_fork hook, and aarch64_forget_process as
11253 linux_nat_forget_process hook; remove the call to
11254 register_inferior_data_with_cleanup.
11256 2013-02-14 Pedro Alves <palves@redhat.com>
11258 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11259 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11262 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11263 Hafiz Abid Qadeer <abidh@codesourcery.com>
11265 * tracepoint.h (validate_trace_state_variable_name): Declare.
11266 * tracepoint.c (validate_trace_state_variable_name): New.
11267 (trace_variable_command): Parse the trace state variable's name
11268 without using parse_expression. Do several validations.
11269 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11270 trace state variable's name with parse_expression. Validate it.
11272 2013-02-14 Yao Qi <yao@codesourcery.com>
11274 * infcmd.c (breakpoint_proceeded): Remove it.
11276 2013-02-14 Yao Qi <yao@codesourcery.com>
11278 * tracepoint.c (end_actions_pseudocommand): Make it static.
11279 (while_stepping_pseudocommand): Likewise.
11280 * tracepoint.h (end_actions_pseudocommand): Remove the
11282 (while_stepping_pseudocommand): Likewise.
11284 2013-02-14 Yao Qi <yao@codesourcery.com>
11286 * cli/cli-decode.c (help_cmd): Remove the declaration of
11288 (help_all): Likewise.
11290 2013-02-13 Pedro Alves <palves@redhat.com>
11292 * amd64-linux-nat.c (update_debug_registers_callback):
11294 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11296 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11297 i386_debug_reg_state.
11298 (amd64_linux_new_fork): New function.
11299 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11300 linux_nat_new_fork hook, and i386_forget_process as
11301 linux_nat_forget_process hook.
11302 * i386-linux-nat.c (update_debug_registers_callback):
11304 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11306 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11307 i386_debug_reg_state.
11308 (i386_linux_new_fork): New function.
11309 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11310 linux_nat_new_fork hook, and i386_forget_process as
11311 linux_nat_forget_process hook.
11312 * i386-nat.c (i386_init_dregs): Delete.
11313 (i386_inferior_data, struct i386_inferior_data):
11315 (struct i386_process_info): New.
11316 (i386_process_list): New global.
11317 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11319 (i386_inferior_data_get): Delete.
11320 (i386_process_info_get): New function.
11321 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11322 (i386_forget_process): New function.
11323 (i386_cleanup_dregs): Rewrite.
11324 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11325 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11326 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11327 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11328 to i386_debug_reg_state.
11329 (i386_use_watchpoints): Don't register inferior data.
11330 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11332 (i386_forget_process): Declare.
11333 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11334 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11335 New static globals.
11336 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11337 (add_initial_lwp): New, factored out from ...
11338 (add_lwp): ... this. Don't check the number of lwps before
11339 calling linux_nat_new_thread.
11340 (linux_nat_iterate_watchpoint_lwps): Delete.
11341 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11342 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11344 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11346 (linux_nat_kill, linux_nat_mourn_inferior): Call
11347 linux_nat_forget_process.
11348 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11349 (linux_nat_forget_process): New functions.
11350 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11352 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11353 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11355 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11356 (linux_nat_forget_process): New declarations.
11358 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11359 (amd64fbsd_mourn_inferior): New function.
11360 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11361 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11363 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11365 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11368 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11370 * aarch64-linux-nat.c (debug_reg_change_callback)
11371 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11374 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11376 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11379 2013-02-13 Pedro Alves <palves@redhat.com>
11380 Hafiz Abid Qadeer <abidh@codesourcery.com>
11382 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11384 2013-02-12 Tom Tromey <tromey@redhat.com>
11387 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11389 (classify_inner_name): Remove 'first_name' argument, add
11390 'context'. Remove unused variable.
11391 (yylex): Explicitly maintain the context type. Exit loop earlier
11392 if NAME result is seen.
11394 2013-02-12 Pedro Alves <palves@redhat.com>
11396 * amd64-darwin-tdep.c: Add (C) after Copyright.
11397 * cli/cli-cmds.h: Ditto.
11398 * cli/cli-decode.c: Ditto.
11399 * cli/cli-decode.h: Ditto.
11400 * cli/cli-dump.c: Ditto.
11401 * cli/cli-dump.h: Ditto.
11402 * cli/cli-interp.c: Ditto.
11403 * cli/cli-logging.c: Ditto.
11404 * cli/cli-script.c: Ditto.
11405 * cli/cli-script.h: Ditto.
11406 * cli/cli-setshow.c: Ditto.
11407 * cli/cli-setshow.h: Ditto.
11408 * cli/cli-utils.c: Ditto.
11409 * cli/cli-utils.h: Ditto.
11410 * config/alpha/nm-osf3.h: Ditto.
11411 * config/djgpp/djconfig.sh: Ditto.
11412 * config/i386/nm-fbsd.h: Ditto.
11413 * config/i386/nm-i386gnu.h: Ditto.
11414 * config/nm-linux.h: Ditto.
11415 * config/nm-nto.h: Ditto.
11416 * config/rs6000/nm-rs6000.h: Ditto.
11417 * config/sparc/nm-sol2.h: Ditto.
11418 * darwin-nat-info.c: Ditto.
11421 * gdb-demangle.h: Ditto.
11422 * i386-darwin-nat.c: Ditto.
11423 * i386-darwin-tdep.c: Ditto.
11424 * linux-fork.h: Ditto.
11425 * m32c-tdep.c: Ditto.
11426 * microblaze-linux-tdep.c: Ditto.
11427 * microblaze-rom.c: Ditto.
11428 * microblaze-tdep.c: Ditto.
11429 * microblaze-tdep.h: Ditto.
11430 * mips-linux-tdep.h: Ditto.
11431 * ppc-ravenscar-thread.c: Ditto.
11432 * ppc-ravenscar-thread.h: Ditto.
11433 * prologue-value.c: Ditto.
11434 * prologue-value.h: Ditto.
11435 * ravenscar-thread.c: Ditto.
11436 * ravenscar-thread.h: Ditto.
11437 * sparc-ravenscar-thread.c: Ditto.
11438 * sparc-ravenscar-thread.h: Ditto.
11439 * tilegx-linux-tdep.c: Ditto.
11440 * unwind_stop_reasons.def: Ditto.
11441 * windows-nat.h: Ditto.
11442 * xtensa-linux-tdep.c: Ditto.
11443 * xtensa-xtregs.c: Ditto.
11444 * regformats/regdat.sh: Ditto.
11445 * regformats/regdef.h: Ditto.
11447 2013-02-12 Pedro Alves <palves@redhat.com>
11449 * break-catch-sig.c: Update copyright years.
11451 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11453 Add support for a destructor for ui_out data and use it to
11454 provide a ui_out destructor.
11455 * ui-out.h: Declare the new ui_out destructor.
11456 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11457 * ui-out.c (default_data_destroy): Add a default data destructor
11458 which does nothing.
11459 (default_ui_out_impl): Set the new data_destroy field to
11460 default_data_destroy
11461 (uo_data_destroy): Local function which invokes the data
11462 destructor if present.
11463 (clear_table): Local function which clears the table data of a
11465 (ui_out_destroy): Public function which frees a ui_out object.
11466 (ui_out_table_end): Use the new clear_table function.
11467 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11469 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11472 2013-02-11 Doug Evans <dje@google.com>
11474 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11475 (printf_decfloat): New function. Broken out from ui_printf.
11476 Remove unnecessary code to shift the entire format string down.
11477 (printf_pointer): New function.
11478 (ui_printf): Code to print C strings, wide C strings, decfloats,
11479 and pointers moved to separate functions.
11481 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11483 * valops.c (value_assign): Handling bitfield offset in
11484 `lval_internalvar_component' case.
11486 2013-02-08 Doug Evans <dje@google.com>
11488 * common/format.c (parse_format_string): Fix whitespace.
11490 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11492 * stack.c (return_command): Work around uninitialized variable
11495 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11497 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11498 number of the registers from 36 to 34.
11500 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11502 * NEWS: Mention new AArch64 native and target support.
11504 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11506 * MAINTAINERS (Write After Approval): Add myself.
11508 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11509 Marcus Shawcroft <marcus.shawcroft@arm.com>
11510 Nigel Stephens <nigel.stephens@arm.com>
11511 Yufeng Zhang <yufeng.zhang@arm.com>
11513 * aarch64-linux-nat.c: New file.
11514 * config/aarch64/linux.mh: New file.
11515 * configure.host: Add AArch64.
11516 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11518 2013-02-07 Doug Evans <dje@google.com>
11520 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11521 disassemble command.
11523 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11525 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11526 set_gdbarch_fetch_tls_load_module_address.
11528 2013-02-06 David S. Miller <davem@davemloft.net>
11530 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11531 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11532 * value.c (struct_return_convention): New function.
11533 (using_struct_return): Implement in terms of struct_return_convention.
11534 * value.h (struct_return_convention): Declare.
11535 * stack.c (return_command): Allow successful overriding of the return
11536 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11538 2013-02-06 Tom Tromey <tromey@redhat.com>
11540 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11541 outside of TRY_CATCH.
11543 2013-02-06 Yao Qi <yao@codesourcery.com>
11545 * mi/mi-interp.c: Include "tracepoint.h".
11546 (mi_tsv_modified): Declare.
11547 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11548 (mi_interpreter_init): Call observer_attach_tsv_modified.
11549 (mi_tsv_modified): New.
11550 (mi_tsv_created, mi_tsv_deleted): Update.
11551 * tracepoint.c (trace_variable_command): Call
11552 observer_notify_tsv_modified if the initial value of tsv is
11554 (delete_trace_state_variable): Call
11555 observer_notify_tsv_deleted earlier.
11556 (trace_variable_command): Caller update.
11557 (create_tsv_from_upload): Likewise.
11558 * observer.sh: Declare "struct trace_state_variable".
11560 * NEWS: Mention the new MI notification "=tsv-modified".
11562 2013-02-05 Doug Evans <dje@google.com>
11564 * completer.c (location_completer): Fix typo in comment.
11566 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11568 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11571 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11573 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11574 Refactor if statement to avoid trailing || operator.
11576 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11578 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11580 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11582 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11583 * configure.host: Add powerpc*-*-freebsd* target.
11584 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11585 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11586 * config/powerpc/fbsd.mh: New file.
11588 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11589 Denys Vlasenko <dvlasenk@redhat.com>
11590 Pedro Alves <palves@redhat.com>
11592 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11593 (struct elf_internal_linux_prpsinfo): Forward declare.
11594 * gdbarch.h, gdbarch.c: Regenerate.
11595 * linux-tdep.c: Include `cli/cli-utils.h'.
11596 (linux_fill_prpsinfo): New function.
11597 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11598 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11599 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11600 depending on gdbarch pointer bitness.
11601 * ppc-linux-tdep.c: Include elf-bfd.h.
11602 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11605 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11606 Marcus Shawcroft <marcus.shawcroft@arm.com>
11607 Nigel Stephens <nigel.stephens@arm.com>
11608 Yufeng Zhang <yufeng.zhang@arm.com>
11610 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11612 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11613 Marcus Shawcroft <marcus.shawcroft@arm.com>
11614 Nigel Stephens <nigel.stephens@arm.com>
11615 Yufeng Zhang <yufeng.zhang@arm.com>
11617 * aarch64-newlib-tdep.c: New file.
11618 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11620 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11621 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11622 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11623 * osabi.c (gdb_osabi_names): Add "Newlib".
11625 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11626 Marcus Shawcroft <marcus.shawcroft@arm.com>
11627 Nigel Stephens <nigel.stephens@arm.com>
11628 Yufeng Zhang <yufeng.zhang@arm.com>
11630 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11631 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11632 * aarch64-linux-tdep.c: New file.
11633 * aarch64-linux-tdep.h: New file.
11634 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11635 * configure.tgt: Add aarch64-none-linux-gnu.
11637 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11638 Marcus Shawcroft <marcus.shawcroft@arm.com>
11639 Nigel Stephens <nigel.stephens@arm.com>
11640 Yufeng Zhang <yufeng.zhang@arm.com>
11642 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11643 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11644 (ALLDEPFILES): Add aarch64-tdep.c.
11645 * aarch64-tdep.c: New file.
11646 * aarch64-tdep.h: New file.
11647 * configure.tgt: Add AArch64.
11648 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11649 (aarch64-expedite): New definition.
11650 * features/aarch64-core.xml: New file.
11651 * features/aarch64-fpu.xml: New file.
11652 * features/aarch64-without-fpu.c: New file (generated).
11653 * features/aarch64-without-fpu.xml: New file.
11654 * features/aarch64.c: New file (generated).
11655 * features/aarch64.xml: New file.
11656 * regformats/aarch64-without-fpu.dat: New file (generated).
11657 * regformats/aarch64.dat: New file (generated).
11659 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11661 * contrib/expect-read1.c: New file.
11662 * contrib/expect-read1.sh: New file.
11664 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11666 * dwarf2read.c (file_file_name): New function with code from
11668 (file_full_name): Move most of the code to file_file_name.
11669 (macro_start_file): Rename variable full_name to file_name and use
11670 file_file_name for it. Add comp_dir parameter to new_macro_table.
11671 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11672 macro_source_file->filename access by macro_source_fullname call.
11673 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11675 * macrotab.c (struct macro_table): New field comp_dir.
11676 (macro_include): New variables link_fullname and source_fullname.
11677 Replace any macro_source_file->filename access by macro_source_fullname
11679 (macro_lookup_inclusion): Remove the partial filenames checking code.
11680 (check_for_redefinition): New variables source_fullname and
11681 found_key_fullname. Replace any macro_source_file->filename access by
11682 macro_source_fullname call.
11683 (macro_undef): New variables source_fullname and key_fullname. Replace
11684 any macro_source_file->filename access by macro_source_fullname call.
11685 (macro_lookup_definition): New variables retval and source_fullname.
11686 Replace any macro_source_file->filename access by macro_source_fullname
11688 (foreach_macro): New variable key_fullname. Replace any
11689 macro_source_file->filename access by macro_source_fullname call.
11690 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11691 macro_source_file->filename access by macro_source_fullname call.
11692 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11693 (macro_source_fullname): New function.
11694 * macrotab.h (struct macro_source_file): Extent the filename field
11696 (new_macro_table): New parameter comp_dir, add a comment for it.
11697 (macro_source_fullname): new declaration.
11699 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11701 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11702 this_real_name to outer block. Use it also for
11703 compare_filenames_for_search.
11704 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11705 with dw2_get_real_path for file_matcher, considering also
11706 BASENAMES_MAY_DIFFER.
11707 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11709 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11711 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11712 to the file_matcher parameter. Pass 0 to it.
11713 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11714 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11715 NULL psymtab_to_fullname result.
11716 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11717 an expected filename instead.
11718 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11719 file_matcher parameter. Call also psymtab_to_fullname, after newly
11720 considering BASENAMES_MAY_DIFFER.
11721 * source.c (rewrite_source_path): Remove static.
11722 * source.h (rewrite_source_path): New declaration.
11723 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11724 the expand_symtabs_matching field. Comment it.
11725 * symtab.c (file_matches): New function comment. Add parameter
11726 basenames, implement it.
11727 (search_symbols_file_matches): Add basenames parameter. Update the
11728 file_matches caller.
11729 (search_symbols): Match FILES also against symtab_to_fullname.
11730 Optimize it for BASENAMES_MAY_DIFFER.
11732 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11734 * source.c (print_source_lines_base): Print for TUI also "fullname".
11735 * tui/tui-data.c (init_content_element): Change tui_locator_element
11736 field to full_name.
11737 * tui/tui-data.h (struct tui_locator_element): Likewise.
11738 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11739 tui_update_locator_filename calls to tui_update_locator_fullname.
11740 Replace symtab->filename refererence by symtab_to_fullname call.
11741 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11742 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11743 field to full_name. Replace symtab->filename refererence by
11744 symtab_to_fullname call.
11745 (tui_show_symtab_source): Rename parameter to fullname. Change
11746 tui_locator_element field to full_name.
11747 * tui/tui-stack.c: Include source.h.
11748 (tui_set_locator_filename): Rename the declaration to ...
11749 (tui_set_locator_fullname): ... here. Rename its parameter to
11750 fullname, updates its comment.
11751 (tui_set_locator_info): Rename its parameter to fullname.
11752 (tui_set_locator_filename): Rename the definition to ...
11753 (tui_set_locator_fullname): ... here. Rename its parameter to
11754 fullname, updates its comment. Change tui_locator_element field to
11756 (tui_set_locator_info): Rename its parameter to fullname.
11757 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11758 (tui_update_locator_filename): Rename to ...
11759 (tui_update_locator_fullname): ... here. Rename callee to
11760 tui_set_locator_fullname.
11761 (tui_show_frame_info): Replace symtab->filename refererence by
11762 symtab_to_fullname call.
11763 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11764 (tui_update_locator_fullname): ... here.
11765 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11766 tui_update_locator_fullname. Replace symtab->filename refererence by
11767 symtab_to_fullname call.
11768 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11769 Rename the callee to tui_update_locator_fullname.
11770 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11772 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11774 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11775 by symtab_to_filename_for_display calls.
11776 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11777 (clear_command): New variable sal_fullname, initialize it. Replace
11778 compare_filenames_for_search by filename_cmp with sal_fullname.
11779 (say_where, update_static_tracepoint): Replace symtab->filename
11780 refererences by symtab_to_filename_for_display calls.
11781 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11783 * dwarf2read.c: Include source.h.
11784 (fixup_go_packaging): Replace symtab->filename refererences by
11785 symtab_to_filename_for_display calls.
11786 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11787 Replace symtab->filename refererences by symtab_to_filename_for_display
11789 (create_sals_line_offset, convert_linespec_to_sals): New variable
11790 fullname, initialize it, replace symtab->filename reference by the
11792 * linux-fork.c: Include source.h.
11793 (info_checkpoints_command): Replace symtab->filename refererences by
11794 symtab_to_filename_for_display calls.
11795 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11796 by symtab_to_filename_for_display calls.
11797 * mdebugread.c: Include source.h.
11798 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11799 symtab_to_filename_for_display calls.
11800 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11801 (mi_cmd_file_list_exec_source_files): Likewise.
11802 * printcmd.c: Include source.h.
11803 (build_address_symbolic): Replace symtab->filename refererences by
11804 symtab_to_filename_for_display calls.
11805 * psymtab.c (partial_map_symtabs_matching_filename)
11806 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11807 with psymtab_to_fullname.
11808 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11809 by symtab_to_filename_for_display calls.
11810 (stpy_get_filename): New variable filename, initialize it, use instead
11811 of symtab->filename refererences.
11812 (salpy_str): Make variable filename const char *. Replace
11813 symtab->filename refererences by symtab_to_filename_for_display calls.
11814 * skip.c: Include source.h and filenames.h.
11815 (skip_file_command): Remove const from the symtab variable. Replace
11816 symtab->filename refererences by symtab_to_fullname call.
11817 (function_name_is_marked_for_skip): New variables searched_for_fullname
11818 and fullname. Use them to search also with symtab's fullname.
11819 * source.c (find_source_lines): Replace symtab->filename refererences
11820 by symtab_to_filename_for_display calls.
11821 (print_source_lines_base): New variable filename, use it instead of
11822 symtab->filename. Replace symtab->filename refererences by
11823 symtab_to_filename_for_display calls.
11824 (line_info, forward_search_command): Replace symtab->filename
11825 refererences by symtab_to_filename_for_display calls.
11826 (reverse_search_command): Replace symtab->filename refererences by
11827 symtab_to_filename_for_display calls. New variable filename for it.
11828 * stack.c (frame_info): Likewise.
11829 * symmisc.c: Include source.h.
11830 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11831 (maintenance_info_symtabs): Replace symtab->filename refererences by
11832 symtab_to_filename_for_display calls.
11833 * symtab.c (iterate_over_some_symtabs): Call
11834 compare_filenames_for_search also with symtab_to_fullname.
11835 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11836 symtab->filename refererences by symtab_to_filename_for_display calls.
11837 (find_line_symtab): Replace symtab->filename refererences by
11838 symtab_to_filename_for_display calls.
11839 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11840 (print_symbol_info): Make the last parameter const char *. New
11841 variable s_filename. Use it in the function.
11842 (symtab_symbol_info): Make the last_filename variable const char *.
11843 Replace symtab->filename refererences by symtab_to_filename_for_display
11845 (rbreak_command): New variable fullname. Use it. Replace
11846 symtab->filename refererence by symtab_to_filename_for_display call.
11847 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11848 (print_one_static_tracepoint_marker): Replace symtab->filename
11849 refererences by symtab_to_filename_for_display calls.
11850 * tui/tui-source.c (tui_set_source_content): New variables filename and
11851 s_filename. Replace symtab->filename refererences by this variable.
11852 Replace other symtab->filename refererences by
11853 symtab_to_filename_for_display calls.
11855 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11856 Jan Kratochvil <jan.kratochvil@redhat.com>
11858 Add a new variable that controls a way in which filenames are
11860 * NEWS (set filename-display): New entry.
11861 * source.c (filename_display_basename, filename_display_relative)
11862 (filename_display_absolute, filename_display_kind_names)
11863 (filename_display_string, show_filename_display_string)
11864 (symtab_to_filename_for_display): New.
11865 (_initialize_source): Added initialization of 'filename-display'
11867 * source.h (symtab_to_filename_for_display): Added declaration.
11868 * stack.c (print_frame): Added new variable and calling of a new
11869 function and condition with this variable. Changed third argument of
11870 calling of a function.
11872 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11874 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11875 Rename field reference filename to fullname.
11876 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11877 fullname. New comment for it.
11878 * tui/tui-source.c (tui_set_source_content): Rename field reference
11879 filename to fullname. Initialize field by symtab_to_fullname now.
11880 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11881 reference filename to fullname. Use symtab_to_fullname during
11884 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11887 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11888 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11889 filename to fullname. Rename variable this_name to this_fullname.
11890 Lowercase FILENAME_CMP call.
11891 (dw2_find_symbol_file): New comment for the returned string.
11892 (dwarf2_gdb_index_functions): Rename the function to
11893 dw2_expand_symtabs_with_fullname.
11894 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11895 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11897 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11898 * symfile.h (struct quick_symbol_functions): Rename field
11899 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11900 parameter filename to fullname. Document returned string meaning for
11902 * symtab.c (find_line_symtab): Rename the called function to
11903 expand_symtabs_with_fullname.
11905 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11908 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11909 call of filename_cmp with compare_filenames_for_search.
11910 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11911 is_abs, unify the call of FILENAME_CMP with
11912 compare_filenames_for_search. New gdb_asserts for real_path and name.
11913 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11914 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11915 * symfile.h (struct quick_symbol_functions): Extend the comment for
11916 map_symtabs_matching_filename.
11917 * symtab.c (compare_filenames_for_search): Remove the function comment
11918 relative path requirement. Handle absolute filenames, with a comment.
11919 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11920 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11921 real_path and name. Unify the call of compare_filenames_for_search
11923 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11925 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11928 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11929 source_file references by symtab field references. Remove variables
11931 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11932 (clear_command, say_where): Replace bp_location field source_file
11933 references by symtab field references.
11934 (bp_location_dtor): Remove the source_file reference.
11935 (update_static_tracepoint): Replace bp_location field source_file
11936 references by symtab field references.
11937 (breakpoint_free_objfile): New function.
11938 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11939 Replace the field source_file by field symtab, extend its comment.
11940 (breakpoint_free_objfile): New declaration.
11941 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11942 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11943 field source_file references by symtab field references.
11945 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11947 Replace xfullpath calls by gdb_realpath calls.
11948 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11950 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11951 Remove it from the iterate_over_some_symtabs call.
11952 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11953 Remove it from the dw2_map_expand_apply calls, remove a block handling
11955 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11956 Remove it from the iterate_over_some_symtabs call.
11957 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11958 Remove it from the partial_map_expand_apply calls, remove a block
11959 handling it. Drop gdb_realpath call and cleanups from the real_path
11961 * source.c (openp): Drop the comment part about xfullpath. Replace
11962 xfullpath calls by gdb_realpath calls.
11963 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11964 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11965 from method map_symtabs_matching_filename and its comment.
11966 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11968 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11969 remove it also from the function comment, remove a block handling it.
11970 Drop gdb_realpath call and cleanups from the real_path handling.
11971 (iterate_over_symtabs): Drop variable full_path and its use.
11972 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11973 * utils.c (xfullpath): Remove.
11974 * utils.h (xfullpath): Remove.
11976 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11978 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11979 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11980 (ALLDEPFILES): Add ppc64-tdep.c.
11981 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11982 ppc64-tdep.o to gdb_target_obs.
11983 * ppc64-tdep.h: New file.
11984 * ppc64-tdep.c: New file.
11985 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11986 ppc-linux-tdep.c to here.
11987 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11988 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11989 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11990 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11991 from ppc-linux-tdep.c to here.
11992 (ppc64_convert_from_func_ptr_addr): Rename from
11993 ppc64_linux_convert_from_func_ptr_addr to
11994 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11997 (read_insn): Move from ppc-linux-tdep.c to here.
11998 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11999 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12000 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12001 Removed above functions.
12002 (ppc_linux_init_abi): Adjust.
12004 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12006 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12008 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12010 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12012 2013-02-01 Pedro Alves <palves@redhat.com>
12014 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12015 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12017 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12019 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12020 files with no separate debug info.
12021 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12022 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12023 only for files with no separate debug info.
12025 2013-01-31 Tom Tromey <tromey@redhat.com>
12027 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12029 (struct jit_program_space_data): Rename from jit_inferior_data.
12031 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12032 Change return type. Attach data to program space.
12033 (jit_program_space_data_cleanup): Rename from
12034 jit_inferior_data_cleanup; change argument type.
12035 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12037 (jit_register_code): Update.
12038 (jit_update_inferior_cache): Remove.
12039 (jit_breakpoint_deleted): Get jit data from the location's program
12041 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12042 'ps_data', change type.
12043 (jit_inferior_init, jit_breakpoint_re_set_internal)
12044 (jit_event_handler): Update.
12045 (free_objfile_data): Get data from objfile's program space.
12046 (_initialize_jit): Update.
12048 2013-01-31 Tom Tromey <tromey@redhat.com>
12051 * jit.c (struct jit_inferior_data) <cached_code_address,
12052 jit_breakpoint>: New fields.
12053 (jit_breakpoint_re_set_internal): Fix logging. Only create
12054 breakpoint if cached address has changed.
12055 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12057 (_initialize_jit): Register breakpoint deleted observer.
12059 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12061 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12062 (save_infcall_suspend_state): Ifdef out unused inf.
12063 (restore_infcall_suspend_state): Ifdef out unused inf.
12064 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12065 (jit_frame_sniffer): Remove unused inf_data.
12067 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12069 * c-exp.y (classify_inner_name): Remove unused type.
12070 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12071 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12073 (c_get_string): Remove unused kind.
12074 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12076 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12078 * charset.c (intermediate_encoding): Remove unused i.
12079 * completer.c (signal_completer): Remove unused i.
12080 * continuations.c (discard_my_continuations_1): Remove unused
12082 * corelow.c (core_close): Remove unuseD name.
12083 (get_core_siginfo): Remove unused pid.
12084 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12086 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12087 (loclist_describe_location): Remove unused first.
12088 * event-top.c (command_line_handler): Remove unused got_eof.
12089 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12090 (resize_section_table): Remove unused old_value.
12091 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12092 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12093 * i386-tdep.c (i386_process_record): Remove unused rex.
12094 * infcmd.c (get_return_value): Remove unused uiout.
12095 * jv-lang.c (type_from_class): Remove unused is_array.
12096 * jv-valprint.c (java_val_print): Remove unused i.
12097 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12098 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12099 * m2-typeprint.c (m2_print_type): Remove unused code.
12100 * macroexp.c (get_character_constant): Remove unused body_start.
12101 (macro_stringify): Remove unused result.
12102 * objc-lang.c (find_methods): Remove unused gdbarch.
12103 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12104 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12105 * stack.c (print_frame_args): Remove unused summary.
12106 * thread.c (thread_apply_command): Remove unused p.
12107 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12108 * valops.c (search_struct_method): Remove unused skip.
12109 * valprint.c (generic_val_print): Remove unused byte_order.
12110 * varobj.c (varobj_update): Remove unused changed.
12111 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12112 (alias_command): Remove unused c.
12113 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12114 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12116 (mi_cmd_data_write_memory): Remove unused word_format.
12117 (mi_cmd_data_write_memory_bytes): Remove unused r.
12118 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12120 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12121 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12124 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12126 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12127 * symtab.c (iterate_over_symtabs): Remove unused s.
12128 (find_pc_sect_symtab): Remove unused pspAce.
12129 (find_pc_sect_line): Remove unused alt_symtab.
12130 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12131 (completion_list_add_name): Remove unused newsize.
12133 2013-01-31 Tom Tromey <tromey@redhat.com>
12136 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12139 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12141 * target.c (target_read_string): Remove unused origlen.
12143 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12145 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12146 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12147 * ax-general.c (ax_print): Remove unused is_float.
12148 * blockframe.c (block_innermost_frame): Remove unused start, end.
12149 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12151 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12153 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12154 (svr4_read_so_list): Remove unused lmo.
12155 * solib-target.c (solib_target_relocate_section_addresses): Remove
12158 2013-01-30 Tom Tromey <tromey@redhat.com>
12160 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12162 2013-01-30 Tom Tromey <tromey@redhat.com>
12164 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12165 * utils.c (gnu_debuglink_crc32): Remove.
12166 * utils.h (gnu_debuglink_crc32): Don't declare.
12168 2013-01-30 Tom Tromey <tromey@redhat.com>
12170 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12171 (read_structure_type, read_enumeration_type): Remove cast.
12173 2013-01-30 Tom Tromey <tromey@redhat.com>
12175 * dwarf2read.c (read_namespace_type): Remove cast.
12176 (read_typedef): Likewise.
12178 2013-01-29 Tom Tromey <tromey@redhat.com>
12180 * dwarf2read.c (free_dwo_file): Remove assert.
12182 2013-01-29 Tom Tromey <tromey@redhat.com>
12184 * value.c (deprecated_set_value_modifiable): Remove.
12185 * value.h (deprecated_set_value_modifiable): Remove.
12187 2013-01-28 Doug Evans <dje@google.com>
12189 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12190 to addresses from dwo files.
12192 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12194 * valops.c (find_overload_match): Remove unused argument 'lax'.
12195 * value.h: Remove unused argument 'lax' from the declaration of
12196 find_overload_match.
12197 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12198 to find_overload_match.
12199 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12200 argument to find_overload_match.
12202 2013-01-25 Tom Tromey <tromey@redhat.com>
12204 * dwarf2read.c (processing_has_namespace_info): Remove.
12205 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12206 (process_die, read_func_scope, dwarf2_start_symtab)
12207 (new_symbol_full): Update.
12209 2013-01-25 Tom Tromey <tromey@redhat.com>
12211 * cp-namespace.c (cp_set_block_scope): Remove.
12212 * cp-support.h (cp_set_block_scope): Remove.
12213 * dbxread.c: Include block.h.
12214 (cp_set_block_scope): New function.
12215 (process_one_symbol): Update.
12216 * dwarf2read.c (read_func_scope): Use block_set_scope.
12218 2013-01-25 Pedro Alves <palves@redhat.com>
12220 * remote.c (add_current_inferior_and_thread): Tweak comment.
12222 2013-01-25 Tom Tromey <tromey@redhat.com>
12224 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12225 (cp_add_using_directive): Add 'copy_names' argument.
12226 * cp-support.h (cp_add_using_directive): Update.
12227 (struct using_direct) <import_src, import_dest, alias,
12228 declaration>: Now const.
12229 * dwarf2read.c (read_import_statement): Use obconcat.
12230 Don't copy names passed to cp_add_using_directive.
12232 2013-01-25 Tom Tromey <tromey@redhat.com>
12234 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12236 2013-01-25 Pedro Alves <palves@redhat.com>
12238 * remote.c (stop_reply_extract_thread): New.
12239 (add_current_inferior_and_thread): New parameter 'wait_status'.
12241 (remote_start_remote): Pass wait status to
12242 add_current_inferior_and_thread.
12243 (extended_remote_run): Update comment.
12244 (extended_remote_create_inferior_1): Pass wait status to
12245 add_current_inferior_and_thread.
12247 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12248 Ulrich Weigand <uweigand@de.ibm.com>
12250 * valarith.c (value_vector_widen): New function for replicating a
12251 scalar into a vector.
12252 (value_binop): Use value_vector_widen to widen scalar to vector
12253 rather than casting, this better matches gcc C behaviour.
12254 * valops.c (value_casst): Update logic for casting between vector
12255 types, and for casting from scalar to vector, try to match gcc C
12257 * value.h (value_vector_widen): Declare.
12258 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12259 function, handle special case for casting scalar to vector.
12260 (opencl_relop): Use opencl_value_cast.
12261 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12262 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12263 in order to use opencl_value_cast.
12265 2013-01-25 Yao Qi <yao@codesourcery.com>
12267 * event-loop.c: Include "queue.h".
12268 (gdb_event_p): New typedef.
12269 (DECLARE_QUEUE_P): Use.
12270 (DEFINE_QUEUE_P): Use.
12271 (async_queue_event): Remove.
12272 (gdb_event_xfree): New.
12273 (initialize_event_loop): New.
12274 (process_event): Use QUEUE macros.
12275 (event_queue): Remove.
12276 (gdb_wait_for_event): Caller update.
12277 (check_async_event_handlers): Likewise.
12278 (poll_timers): Likewise.
12279 * event-loop.h (initialize_event_loop): Declare.
12280 * event-loop.c (gdb_event_xfree): New.
12281 * top.c (gdb_init): Call initialize_event_loop.
12283 2013-01-25 Yao Qi <yao@codesourcery.com>
12285 * event-loop.c (async_queue_event): Remove one parameter
12286 'position'. Remove code handling 'position' == TAIL.
12287 (gdb_wait_for_event): Caller update.
12288 (check_async_event_handlers): Caller update.
12289 (poll_timers): Caller update.
12290 * event-loop.h (enum queue_position): Remove.
12292 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12294 * MAINTAINERS: Update my email.
12296 2013-01-25 Yao Qi <yao@codesourcery.com>
12298 * main.c (print_gdb_help): Remove "--epoch" from the help
12301 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12303 * symtab.c (skip_prologue_using_sal): Consider a file
12304 change the same as an increased line number
12306 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12308 * MAINTAINERS (Write After Approval): Add myself to the list.
12310 2013-01-24 Tom Tromey <tromey@redhat.com>
12312 * ada-lang.h (ada_decode_symbol): Make return type const.
12313 * ada-lang.c (ada_decode_symbol): Likewise.
12315 2013-01-23 Doug Evans <dje@google.com>
12317 * linespec.c (find_linespec_symbols): Make static.
12319 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12321 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12322 type on float conversion for complex type.
12324 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12326 Add a new class gdb.Architecture which exposes GDB's
12327 internal representation of architecture via GDB Python API.
12328 * Makefile.in: Add entries corresponding to the new file
12330 * NEWS (Python Scripting): Add entries for the new class
12331 gdb.Architecture and the new method gdb.Frame.architecture.
12332 * python/py-arch.c: Implement gdb.Architecture class.
12333 * python/py-frame.c (frapy_arch): Implement the method
12334 gdb.Frame.architecture().
12335 (frame_object_methods): Add 'architecture' to the method table.
12336 * python/python-internal.h: Add declarations of new utility
12338 * python/python.c (_initialize_python): Initialize
12339 gdb.Architecture class.
12341 2013-01-23 Doug Evans <dje@google.com>
12343 Work around binutils/15021.
12344 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12345 type_unit_group out of union s. All uses updated.
12346 (read_index_from_section): Watch for index version 8.
12347 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12348 an imported symtab.
12349 (write_psymtabs_to_index): Increment version number to 8.
12351 2013-01-22 Pedro Alves <palves@redhat.com>
12353 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12356 2013-01-22 Pedro Alves <palves@redhat.com>
12358 * annotate.c (annotate_breakpoints_changed): Rename to ...
12359 (annotate_breakpoints_invalid): ... this. Make static.
12360 (breakpoint_changed): Adjust.
12361 (_initialize_annotate): Always install the observers. Install a
12362 "breakpoint_created" observer.
12363 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12364 * breakpoint.c (set_breakpoint_condition)
12365 (breakpoint_set_commands, do_map_commands_command)
12366 (init_raw_breakpoint, clear_command, set_ignore_count)
12367 (enable_breakpoint_disp): No longer call
12368 annotate_breakpoints_changed.
12370 2013-01-22 Pedro Alves <palves@redhat.com>
12372 * annotate.c: Include "inferior.h".
12373 (frames_invalid_emitted)
12374 (breakpoints_invalid_emitted): New globals.
12375 (async_background_execution_p): New function.
12376 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12377 emitting the annotation if it has already been emitted.
12378 (annotate_display_prompt): New function.
12379 * annotate.h (annotate_display_prompt): New declaration.
12380 * event-top.c: Include annotate.h.
12381 (display_gdb_prompt): Call annotate_display_prompt.
12383 2013-01-22 Pedro Alves <palves@redhat.com>
12385 * annotate.c (ignore_count_changed): Delete.
12386 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12387 (annotate_ignore_count_change): Delete.
12388 (annotate_stopped): Don't emit a delayed breakpoints-changed
12390 * annotate.h (annotate_ignore_count_change): Delete.
12391 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12392 annotate_ignore_count_change.
12394 2013-01-22 Tom Tromey <tromey@redhat.com>
12396 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12397 require_rvalue for a register location.
12399 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12401 * breakpoint.c (print_one_breakpoint_location): Add MI
12402 field 'thread-groups' when printing a breakpoint.
12403 (output_thread_groups): New function.
12405 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12407 * python/lib/gdb/commands/explore.py
12408 (CompoundExplorer.explore_expr): Correct the name of a method
12410 (ExploreTypeCommand.invoke): Add a missing 'return'.
12412 2013-01-21 Tom Tromey <tromey@redhat.com>
12414 * gdb_obstack.h (obconcat): Move declaration here, from...
12415 * symfile.h (obconcat): ... here.
12416 * gdb_obstack.c: New file.
12417 (obconcat): Move from...
12418 * symfile.c (obconcat): ... here.
12419 * Makefile.in (SFILES): Add gdb_obstack.c.
12420 (COMMON_OBS): Add gdb_obstack.o.
12422 2013-01-21 Tom Tromey <tromey@redhat.com>
12424 * symfile.h (obsavestring): Don't declare.
12425 * symfile.c (obsavestring): Remove.
12426 * ada-exp.y: Use obstack_copy0, not obsavestring.
12427 * ada-lang.c: Use obstack_copy0, not obsavestring.
12428 * coffread.c: Use obstack_copy0, not obsavestring.
12429 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12430 * dbxread.c: Use obstack_copy0, not obsavestring.
12431 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12432 * jit.c: Use obstack_copy0, not obsavestring.
12433 * mdebugread.c: Use obstack_copy0, not obsavestring.
12434 * psymtab.c: Use obstack_copy0, not obsavestring.
12435 * stabsread.c: Use obstack_copy0, not obsavestring.
12436 * xcoffread.c: Use obstack_copy0, not obsavestring.
12438 2013-01-21 Tom Tromey <tromey@redhat.com>
12440 * dwarf2read.c (fixup_go_packaging): Save package name
12441 on objfile obstack.
12442 * gdbtypes.c (init_type): Don't copy name.
12444 2013-01-21 Tom Tromey <tromey@redhat.com>
12446 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12448 (struct attribute) <u.str>: Now const.
12449 (struct fnfieldlist) <name>: Now const.
12450 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12451 (partial_die_parent_scope): Make return type const.
12452 (partial_die_full_name, add_partial_symbol): Update.
12453 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12455 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12456 (read_file_scope, read_func_scope, dwarf2_add_field)
12457 (dwarf2_add_member_fn, read_structure_type)
12458 (process_enumeration_scope, read_array_type, read_module_type)
12459 (read_base_type, read_subrange_type): Update.
12460 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12461 (new_symbol_full, guess_full_die_structure_name): Update.
12462 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12463 (dwarf2_name): Return const type.
12464 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12467 2013-01-21 Tom Tromey <tromey@redhat.com>
12469 * gdbtypes.c (init_type): Make 'name' const.
12470 * gdbtypes.h (init_type): Update.
12472 2013-01-21 Tom Tromey <tromey@redhat.com>
12474 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12475 (start_symtab): Make 'name' and 'dirname' const. Use
12476 set_last_source_file.
12477 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12478 (last_source_file): Define. Now static.
12479 (set_last_source_file, get_last_source_file): New functions.
12480 * buildsym.h (last_source_file): Don't declare.
12481 (start_symtab): Update.
12482 (set_last_source_file, get_last_source_file): Declare.
12483 * coffread.c (complete_symtab): Use set_last_source_file.
12484 (coff_end_symtab): Likewise.
12485 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12486 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12487 set_last_source_file.
12488 (process_one_symbol): Use get_last_source_file.
12489 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12490 (psymtab_to_symtab_1): Use get_last_source_file.
12491 * xcoffread.c (process_linenos): Use get_last_source_file.
12492 (complete_symtab): Use set_last_source_file.
12493 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12494 (scan_xcoff_symtab): Use set_last_source_file.
12496 2013-01-21 Tom Tromey <tromey@redhat.com>
12498 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12499 (symbol_set_names): Remove casts. Handle field const-ness.
12501 2013-01-21 Tom Tromey <tromey@redhat.com>
12503 * dwarf2read.c (new_symbol_full): Remove cast.
12504 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12505 * symtab.h (symbol_set_demangled_name): Update.
12507 2013-01-21 Tom Tromey <tromey@redhat.com>
12509 * main.c (captured_main): Call bfd_init.
12511 2013-01-21 Tom Tromey <tromey@redhat.com>
12513 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12514 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12515 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12518 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12520 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12522 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12524 Fix gdb.fortran/common-block.exp crash in PIE mode.
12525 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12527 * f-valprint.c (info_common_command_for_block): Expect
12528 LOC_COMMON_BLOCK in gdb_assert.
12529 * symtab.h (struct general_symbol_info): Update comment for the
12530 common_block member.
12531 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12532 (enum address_class): New member LOC_COMMON_BLOCK.
12534 2013-01-18 David Blaikie <dblaikie@gmail.com>
12536 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12538 2013-01-18 Tom Tromey <tromey@redhat.com>
12541 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12542 Call require_rvalue.
12544 2013-01-18 Yao Qi <yao@codesourcery.com>
12546 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12547 (dbx_read_symtab): New declaration.
12548 (dbx_psymtab_to_symtab): Delete.
12549 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12550 Rename parameter PST to SELF. Exchanged two parameters.
12551 (start_psymtab): Caller update.
12552 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12553 (dwarf2_read_symtab): New declaration.
12554 (dwarf2_psymtab_to_symtab): Delete.
12555 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12556 Rename parameter PST to SELF. Exchanged two parameters.
12557 (create_partial_symtab): Caller update.
12558 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12559 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12560 Rename parameter PST to SELF. Exchanged two parameters.
12561 (parse_partial_symbols, new_psymtab): Caller update.
12562 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12564 * psymtab.c (psymtab_to_symtab): Caller update.
12565 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12566 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12567 Rename parameter PST to SELF. Exchanged two parameters.
12568 (xcoff_start_psymtab): Caller update.
12570 2013-01-18 Yao Qi <yao@codesourcery.com>
12572 * infrun.c (proceed): Rename local variable 'oneproc' to
12575 2013-01-17 Doug Evans <dje@google.com>
12577 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12578 (dw2_build_type_unit_groups): Delete. All uses updated.
12580 * symtab.h (struct symbol_search): Add comment.
12582 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12584 * symtab.c (compare_filenames_for_search): New comment for
12587 2013-01-17 Tom Tromey <tromey@redhat.com>
12589 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12591 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12593 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12594 initialize it by existing make_cleanup. Call new do_cleanups.
12596 2013-01-17 Tom Tromey <tromey@redhat.com>
12598 * cp-abi.c (cp_abi_completer): New function.
12599 (_initialize_cp_abi): Set completer for "set cp-abi".
12601 2013-01-17 Tom Tromey <tromey@redhat.com>
12603 * mem-break.c: Remove obsolete comment.
12604 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12606 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12608 * jit.c (jit_reader_load_command): Interpret the jit reader name
12609 as an absolute path if it begins with a forward slash.
12611 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12615 * jit.c (finalize_symtab): Ensure that only the global block has a
12618 2013-01-17 Pedro Alves <palves@redhat.com>
12620 * acinclude.m4: Include ../config/plugins.m4,
12621 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12622 * Makefile.in (aclocal_m4_deps): Update.
12623 * aclocal.m4: Renegerate.
12625 2013-01-16 Doug Evans <dje@google.com>
12627 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12629 2013-01-16 Pedro Alves <palves@redhat.com>
12630 Tom Tromey <tromey@redhat.com>
12633 * NEWS: Add "catch signal".
12634 * breakpoint.c (base_breakpoint_ops): No longer static.
12635 (bpstat_explains_signal): New function.
12636 (init_catchpoint): No longer static.
12637 (base_breakpoint_explains_signal): New function.
12638 (base_breakpoint_ops): Initialize new field.
12639 * breakpoint.h (enum bpstat_signal_value): New.
12640 (struct breakpoint_ops) <explains_signal>: New field.
12641 (bpstat_explains_signal): Remove macro, declare as function.
12642 (base_breakpoint_ops, init_catchpoint): Declare.
12643 * break-catch-sig.c: New file.
12644 * inferior.h (signal_catch_update): Declare.
12645 * infrun.c (signal_catch): New global.
12646 (handle_syscall_event): Update for change to
12647 bpstat_explains_signal.
12648 (handle_inferior_event): Likewise. Always handle random signals
12650 (signal_cache_update): Check signal_catch.
12651 (signal_catch_update): New function.
12652 (_initialize_infrun): Initialize signal_catch.
12653 * Makefile.in (SFILES): Add break-catch-sig.c.
12654 (COMMON_OBS): Add break-catch-sig.o.
12656 2013-01-16 Tom Tromey <tromey@redhat.com>
12658 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12659 (print_one_catch_solib, print_one_catch_syscall)
12660 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12663 2013-01-16 Yao Qi <yao@codesourcery.com>
12665 * printcmd.c (current_display_number): Make it static.
12667 2013-01-16 Yao Qi <yao@codesourcery.com>
12669 * infcmd.c (step_once): Don't check '!single_inst' as it was
12672 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12674 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12676 2013-01-14 Tom Tromey <tromey@redhat.com>
12678 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12680 * command.h (add_setshow_string_noescape_cmd): Update.
12681 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12682 (complete_set_gnutarget): New function.
12683 (_initialize_core): Set the "set gnutarget" completer.
12685 2013-01-14 Tom Tromey <tromey@redhat.com>
12688 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12689 (c_type_print_modifier): Likewise.
12690 * dwarf2read.c (read_tag_restrict_type): New function.
12691 (read_type_die_1): Handle DW_TAG_restrict_type.
12692 * gdbtypes.c (make_restrict_type): New function.
12693 (recursive_dump_type): Handle TYPE_RESTRICT.
12694 * gdbtypes.h (enum type_flag_values): Renumber.
12695 (enum type_instance_flag_value): Add
12696 TYPE_INSTANCE_FLAG_RESTRICT.
12697 (TYPE_RESTRICT): New macro.
12698 (make_restrict_type): Declare.
12700 2013-01-14 Tom Tromey <tromey@redhat.com>
12703 * psymtab.c (struct psymtab_state): New.
12704 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12706 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12707 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12709 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12710 Pedro Alves <palves@redhat.com>
12714 * remote.c (remote_threads_info): Make a copy of the reply from
12715 qfThreadInfo and use that instead of rs->buf.
12717 2013-01-14 Yao Qi <yao@codesourcery.com>
12719 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12720 (dbx_psymtab_to_symtab): Likewise.
12721 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12722 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12723 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12725 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12727 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12728 make_cleanup_restore_current_language. Call set_language. Move
12729 OLD_CHAIN and INNER_CHAIN cleanups.
12730 * utils.c (do_restore_current_language)
12731 (make_cleanup_restore_current_language): New functions.
12732 * utils.h (make_cleanup_restore_current_language): New declaration.
12734 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12736 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12737 non-existing files.
12739 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12740 non-existing files if FILENAME is already absolute.
12742 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12744 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12745 fputs_filtered. Append trailing newline.
12747 2013-01-11 Yao Qi <yao@codesourcery.com>
12748 Stan Shebs <stan@codesourcery.com>
12750 * psymtab.c (init_psymbol_list): Clarify the comment.
12752 2013-01-11 Yao Qi <yao@codesourcery.com>
12754 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12755 (update_dprintf_command_list): Assert that 'printf_line' is
12756 non-null. Remove condition check.
12758 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12761 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12763 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12765 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12767 2013-01-09 Anthony Green <green@moxielogic.com>
12769 * cp-abi.c (cplus_print_vtable): Don't return value from void
12771 * ada-lang.c (re_set_catch_assert): Ditto.
12773 2013-01-09 Doug Evans <dje@google.com>
12775 * symfile.h (quick_symbol_functions): Delete member
12776 pre_expand_symtabs_matching. All uses removed.
12777 * dwarf2read.c (dw2_lookup_symbol): Implement.
12778 (dw2_do_expand_symtabs_matching): Delete.
12779 (dw2_pre_expand_symtabs_matching): Delete.
12780 (struct dw2_symtab_iterator): New type.
12781 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12782 (dw2_expand_symtabs_for_function): Rewrite.
12783 (dwarf2_gdb_index_functions): Update.
12784 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12785 (psym_functions): Update.
12787 2013-01-09 Tom Tromey <tromey@redhat.com>
12789 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12790 * configure: Rebuild.
12791 * configure.ac: Add somread.o to the build if BFD has SOM
12793 * somread.c: Include som/aout.h, not syms.h.
12794 (som_symtab_read): Use som_external_symbol_dictionary_record.
12795 Unpack records manually.
12796 (_initialize_somread): Declare.
12798 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12800 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12801 Cast return_address to 64bits.
12803 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12805 * printcmd.c: Remove define of function output_command.
12806 * tracepoint.c: Remove extern of function output_command.
12807 * valprint.h: (output_command): New extern.
12809 2013-01-07 Tom Tromey <tromey@redhat.com>
12811 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12813 (objc_language_defn): Use c_printchar, c_printstr,
12816 2013-01-07 Tom Tromey <tromey@redhat.com>
12820 * ada-valprint.c (printstr, print_field_values): Remove
12822 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12824 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12826 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12827 * main.c (captured_main): Remove "epoch" argument.
12828 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12829 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12830 * p-valprint.c (pascal_object_print_value_fields): Remove
12832 * printcmd.c (print_command_1): Remove 'inspect' argument.
12833 (print_command, call_command): Update.
12834 (inspect_command): Remove.
12835 (_initialize_printcmd): Make "inspect" an alias for "print".
12836 * top.c (epoch_interface): Remove.
12837 * top.h (epoch_interface): Remove.
12838 * valprint.c (user_print_options): Update.
12839 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12840 * valprint.h (struct value_print_options) <inspect_it>: Remove
12843 2013-01-04 Tom Tromey <tromey@redhat.com>
12845 * valprint.h (read_string): Add 'extern'.
12847 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12849 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12850 used to decide whether to define darwin_read_dyld_info or not.
12852 2013-01-03 Pierre Muller <muller@sourceware.org>
12854 * main.c (relocate_gdb_directory): Avoid calling stat function
12857 2013-01-03 Yao Qi <yao@codesourcery.com>
12859 * psymtab.c (fixup_psymbol_section): Update declaration.
12860 (fixup_psymbol_section): Remove code returning value.
12862 2013-01-03 Yao Qi <yao@codesourcery.com>
12864 * symtab.h: Remove some out of date comments.
12865 (enum exception_event_kind): Move it ...
12866 * breakpoint.c: ... here.
12868 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12871 * darwin-nat.c (darwin_read_dyld_info): Only build if
12872 TASK_DYLD_INFO_COUNT is defined.
12873 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12874 TASK_DYLD_INFO_COUNT is defined.
12876 2013-01-02 Tom Tromey <tromey@redhat.com>
12878 * symfile.h (struct ecoff_debug_hack): Remove.
12879 * objfiles.c: Don't include mdebugread.h.
12881 2013-01-02 Tom Tromey <tromey@redhat.com>
12883 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12884 * configure.ac: Check for Mach-O support in BFD. Update
12886 * configure: Rebuild.
12888 2013-01-02 Tom Tromey <tromey@redhat.com>
12890 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12891 * configure.ac: Use GDB_AC_CHECK_BFD.
12892 * configure: Rebuild.
12894 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12896 * MAINTAINERS: Update my email.
12898 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12900 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12902 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12904 * rs6000-nat.c (bss_data_overlap): New function.
12905 (vmap_symtab): Use it to adjust the .bss section's offset.
12907 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12909 Update year range in copyright notice of all files.
12911 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12913 * top.c (print_gdb_version): Update copyright year.
12915 For older changes see ChangeLog-2012.
12921 version-control: never