1 2013-12-06 Tom Tromey <tromey@redhat.com>
3 * objfiles.h (objfile_to_front): Remove.
4 * objfiles.c (objfile_to_front): Remove.
6 2013-12-06 Tom Tromey <tromey@redhat.com>
8 * minsyms.c (get_symbol_leading_char): Remove unnecessary
11 2013-12-06 Tom Tromey <tromey@redhat.com>
13 * psympriv.h (struct partial_symtab) <user>: Move earlier.
15 2013-12-06 Tom Tromey <tromey@redhat.com>
17 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
18 (list_command): Likewise.
20 2013-12-06 Tom Tromey <tromey@redhat.com>
22 * psymtab.c (allocate_psymtab): Put the filename in the filename
25 2013-12-06 Tom Tromey <tromey@redhat.com>
27 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
28 * symtab.h (struct symtab) <dirname>: Now const.
30 2013-12-06 Tom Tromey <tromey@redhat.com>
32 * symfile.c (allocate_symtab): Remove cast.
33 * symtab.h (struct symtab) <filename>: Now const.
35 2013-12-06 Tom Tromey <tromey@redhat.com>
37 * break-catch-throw.c (fetch_probe_arguments): Use
38 get_probe_argument_count and evaluate_probe_argument.
39 * elfread.c (elf_get_probe_argument_count)
40 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
41 (elf_compile_to_ax): Remove.
42 (elf_probe_fns): Update.
43 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
44 (evaluate_probe_argument): Call method on probe, not via sym
46 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
47 evaluate_probe_argument.
48 (compile_probe_arg): Use get_probe_argument_count. Call method on
49 probe, not via sym functions.
50 * symfile-debug.c (debug_sym_get_probe_argument_count)
51 (debug_can_evaluate_probe_arguments)
52 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
54 (debug_sym_probe_fns): Remove.
55 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
56 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
57 sym_compile_to_ax>: Remove fields.
59 2013-12-06 Pierre Muller <muller@sourceware.org>
61 Fix completion for pascal language.
62 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
63 (exp : field_exp name COMPLETE): New rule.
64 (exp : SIZEOF): Set correct current_type.
65 (last_was_structop): Remove static variable.
66 (yylex): Remove saw_structop local variable.
67 Adapt code to removal of variables above.
69 2013-12-06 Joel Brobecker <brobecker@adacore.com>
71 * frame.c (get_prev_frame_1): Delete variable "this_id".
72 Replace its use by a call to get_frame_id.
74 2013-12-05 Anthony Green <green@moxielogic.com>
76 * moxie-tdep.c (moxie_software_single_step): New function.
77 (INST2OFFSET): New helper macro.
78 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
79 (moxie_process_readu): Move this up in the file.
81 2013-12-05 Doug Evans <xdje42@gmail.com>
83 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
85 2013-12-05 Joel Brobecker <brobecker@adacore.com>
86 Tristan Gingold <gingold@adacore.com>
88 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
89 Accept version 2. Ignore operations using opcode 6.
91 2013-12-05 Joel Brobecker <brobecker@adacore.com>
93 * ada-lex.l (find_dot_all): Fix coding style violations.
95 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
97 * NEWS: Add section for Intel(R) Architecture Instructions
98 Extesions mentioning MPX.
100 2013-12-03 Joel Brobecker <brobecker@adacore.com>
102 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
104 2013-12-03 Joel Brobecker <brobecker@adacore.com>
106 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
107 when parse_exp_1 threw an error. Add comment.
109 2013-12-03 Joel Brobecker <brobecker@adacore.com>
111 * NEWS: Mention "-list-features" in the entry documenting
112 the support for the "--language" option.
114 2013-12-03 Tom Tromey <tromey@redhat.com>
115 Jan Kratochvil <jan.kratochvil@redhat.com>
116 Doug Evans <dje@google.com>
117 Samuel Bronson <naesten@gmail.com>
119 Bring back gdb-add-index as a contrib script.
120 * contrib/gdb-add-index.sh: New file.
121 * NEWS: Note the addition.
123 2013-12-03 Samuel Bronson <naesten@gmail.com>
125 * MAINTAINERS (Write After Approval): Add myself to the list.
127 2013-12-03 Joel Brobecker <brobecker@adacore.com>
129 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
131 2013-12-03 Joel Brobecker <brobecker@adacore.com>
133 * mi/mi-main.c: Remove trailing spaces throughout.
135 2013-12-03 Pedro Alves <palves@redhat.com>
136 Joel Brobecker <brobecker@adacore.com>
138 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
139 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
140 of a regular error when the GDB/MI command does not exist.
141 * mi/mi-main.c (mi_cmd_list_features): Add
142 "undefined-command-error-code".
143 (mi_print_exception): Print an "undefined-command"
144 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
145 * NEWS: Add entry documenting the new "code" variable in
146 "^error" result records.
148 2013-12-03 Joel Brobecker <brobecker@adacore.com>
150 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
151 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
152 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
153 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
154 field to output of "-list-features".
156 * NEWS: Add entry for new -info-gdb-mi-command.
158 2013-12-02 Doug Evans <dje@google.com>
159 Jan Kratochvil <jan.kratochvil@redhat.com>
161 * objfiles.c (allocate_objfile): Save original_name as an absolute
163 * objfiles.h (struct objfile): Expand comment on original_name.
164 * source.c (openp): Call gdb_abspath.
165 * utils.c (gdb_abspath): New function.
166 * utils.h (gdb_abspath): Declare.
168 2013-12-02 Pedro Alves <palves@redhat.com>
170 * dcache.c (dcache_read_line): Use target_read_raw_memory.
171 * target.c (target_read_raw_memory): New function.
172 (target_read_stack, target_write_memory, target_write_raw_memory):
174 (target_read_code): Add comment.
175 * target.h (target_read_raw_memory): Declare.
177 2013-12-02 Pedro Alves <palves@redhat.com>
179 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
182 2013-12-02 Pedro Alves <pedro@codesourcery.com>
183 Maciej W. Rozycki <macro@codesourcery.com>
185 * remote.c (putpkt_for_catch_errors): Remove function.
186 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
189 2013-12-02 Pedro Alves <palves@redhat.com>
192 * remote-notif.c (handle_notification): Return early if no
193 notification is found.
195 2013-12-02 Joel Brobecker <brobecker@adacore.com>
197 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
200 2013-12-02 Joel Brobecker <brobecker@adacore.com>
202 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
204 2013-12-02 Joel Brobecker <brobecker@adacore.com>
206 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
207 * ctf.c (ctf_start): Remove obsolete comment.
209 2013-12-02 Joel Brobecker <brobecker@adacore.com>
211 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
213 2013-11-30 Doug Evans <xdje42@gmail.com>
215 * auto-load.h (script_language): New members name, auto_load_enabled.
216 Add missing comments on struct members.
217 (auto_load_objfile_script): Delete.
218 * auto-load.c: #include "cli/cli-cmds.h".
219 (auto_load_gdb_scripts_enabled): New function.
220 (script_language_gdb): Update, add new members.
221 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
222 and call to maybe_add_script moved to caller.
223 (auto_load_objfile_script_1): Auto-load safe-checking and
224 call to maybe_add_script moved here.
225 (auto_load_objfile_script): Make static. Early exit if support for
226 scripting language hasn't been compiled in, or auto-loading has been
228 (source_section_scripts): Argument "source_name" renamed to
229 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
230 with section_name. Skip loading script if support for scripting
231 language hasn't been compiled in, or auto-loading has been disabled.
232 Call language->source_script_for_objfile instead of calling
233 source_python_script_for_objfile directly.
234 (load_auto_scripts_for_objfile): Update.
235 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
236 (gdbpy_load_auto_script_for_objfile): Delete.
237 (auto_load_python_scripts_enabled): New function.
238 (script_language_python): Update, add new members.
239 (gdbpy_script_language_defn): New function.
240 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
241 (gdbpy_script_language_defn): Declare.
243 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
244 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
245 (source_section_scripts): Moved here from py-auto-load.c.
246 (auto_load_section_scripts): Ditto.
247 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
248 auto-load.c, renamed AUTO_SECTION_NAME.
249 (source_section_scripts, auto_load_section_scripts): Moved to
252 2013-11-30 Yao Qi <yao@codesourcery.com>
254 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
256 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
258 * gdbarch.sh: Remove include of "gdb_string.h", replace by
261 2013-11-29 Doug Evans <xdje42@gmail.com>
263 * python/py-auto-load.c (source_section_scripts): Move comment to
264 more relevant location.
267 * python/py-breakpoint.c: Remove trailing whitespace.
268 * python/py-cmd.c: Ditto.
269 * python/py-evts.c: Ditto.
270 * python/py-finishbreakpoint.c: Ditto.
271 * python/py-frame.c: Ditto.
272 * python/py-function.c: Ditto.
273 * python/py-inferior.c: Ditto.
274 * python/py-infthread.c: Ditto.
275 * python/py-param.c: Ditto.
276 * python/py-prettyprint.c: Ditto.
277 * python/py-symbol.c: Ditto.
278 * python/py-type.c: Ditto.
279 * python/py-utils.c: Ditto.
280 * python/py-value.c: Ditto.
281 * python/python-internal.h: Ditto.
282 * python/python.c: Ditto.
284 2013-11-29 Pedro Alves <palves@redhat.com>
286 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
288 2013-11-29 Pedro Alves <palves@redhat.com>
290 * breakpoint.c (build_target_condition_list): Release previous
292 (build_target_command_list): Release previous commands.
293 (bp_location_dtor): Release target conditions and commands.
294 * remote.c (remote_add_target_side_condition): Don't release
296 (remote_add_target_side_commands): Don't release commands.
298 2013-11-29 Yao Qi <yao@codesourcery.com>
299 Pedro Alves <palves@redhat.com>
301 * dcache.c (dcache_read_line): Use current_target.beneath
302 instead of ¤t_target.
303 * target.c (memory_xfer_partial_1): Factor code out to ...
304 (raw_memory_xfer_partial): ... it. New function.
305 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
306 is TARGET_OBJECT_RAW_MEMORY.
308 2013-11-28 Doug Evans <xdje42@gmail.com>
310 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
311 breakpoint_object. All uses updated.
312 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
313 breakpoint_object. All uses updated.
314 * python.c (*): All uses of breakpoint_object updated.
315 * python.h (*): All uses of breakpoint_object updated.
316 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
317 * python/py-finishbreakpoint.c (*): Ditto.
319 2013-11-28 Doug Evans <xdje42@gmail.com>
321 * configure.ac: Add comments delineating libpython and libmcheck.
322 * configure: Regenerate.
324 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
325 Pedro Alves <palves@redhat.com>
327 * valprint.c (value_check_printable): If the value is entirely
328 unavailable, print a single "<unavailable>" instead of printing
331 2013-11-28 Pedro Alves <palves@redhat.com>
333 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
334 Add "set debug frame" output.
335 (frame_stop_reason_symbol_string): New function.
337 2013-11-28 Pedro Alves <palves@redhat.com>
339 * frame-unwind.c (default_frame_unwind_stop_reason): Return
340 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
341 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
343 2013-11-28 Pedro Alves <palves@redhat.com>
345 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
346 set the unwind stop reason to UNWIND_OUTERMOST, not
347 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
349 2013-11-28 Pedro Alves <palves@redhat.com>
351 * frame.c (frame_unwind_register): Say the register was "not
352 saved" instead of "optimized out".
354 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
357 * configure: Rebuild.
358 * configure.ac: Tighten cygwin detection check.
360 2013-11-27 Pedro Alves <palves@redhat.com>
362 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
363 register in the previous frame's arch.
365 2013-11-27 Pedro Alves <palves@redhat.com>
367 * frame-unwind.c (frame_unwind_got_optimized): Return
368 an lval_register value instead of a not_lval value.
370 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
372 * frame.c: Include "valprint.h".
373 (frame_unwind_register_value): Use value_optimized_out.
374 * value.c (value_fetch_lazy): Likewise.
376 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
378 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
380 2013-11-26 Tom Tromey <tromey@redhat.com>
382 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
385 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
387 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
388 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
389 (HAS_MPX): New macro.
390 (HAS_AVX): New macro.
391 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
393 2013-11-25 Keith Seitz <keiths@redhat.com>
396 * c-exp.y (classify_inner_name): If no matching symbol was
397 found, try looking up the token as a base class.
398 Likewise if a constructor was found.
399 * cp-namespace.c (find_type_baseclass_by_name): New function.
400 * cp-support.h (find_type_baseclass_by_name): Declare.
401 * valops.c (value_struct_elt_for_reference): If we get
402 a non-static field, try to get a value based on the
403 current instance, if any.
405 2013-11-24 Yao Qi <yao@codesourcery.com>
407 * disasm.c (dis_asm_read_memory): Call target_read_code
408 instead of target_read_memory.
410 2013-11-24 Yao Qi <yao@codesourcery.com>
412 * NEWS: Add note on new "set code-cache" option.
413 * target-dcache.c (code_cache_enabled_1): New variable.
414 (code_cache_enabled): New variable.
415 (show_code_cache, set_code_cache): New function.
416 (code_cache_enabled_p): New function.
417 (_initialize_target_dcache): Register command.
418 * target-dcache.h (code_cache_enabled_p): Declare.
419 * target.c (memory_xfer_partial_1):Handle
420 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
421 (target_read_code): New function.
422 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
424 (target_read_code): Declare.
426 2013-11-24 Yao Qi <yao@codesourcery.com>
428 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
429 (stack_cache_enabled_1): ... this. New variable.
430 (stack_cache_enabled_p): Rename to ...
431 (stack_cache_enabled): ... this. New variable.
432 (set_stack_cache_enabled_p): Rename to ...
433 (set_stack_cache): ... this. Update caller.
434 (show_stack_cache_enabled_p): Rename to ...
435 (show_stack_cache): ... this. Update caller.
436 (stack_cache_enabled): Rename to ...
437 (stack_cache_enabled_p): ... this. Update caller.
438 (_initialize_target_dcache): Replace "data cache" with
439 "target memory cache".
440 * target-dcache.h (stack_cache_enabled): Remove declaration.
441 (stack_cache_enabled_p): Add declaration.
443 2013-11-23 Doug Evans <xdje42@gmail.com>
445 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
448 2013-11-23 Doug Evans <xdje42@gmail.com>
450 * python/py-frame.c (frapy_block): Fix error message text.
452 2013-11-23 Doug Evans <xdje42@gmail.com>
454 * cli/cli-script.c (multi_line_command_p): New function.
455 (recurse_read_control_structure, read_command_lines_1): Call it.
456 (execute_control_command): Consistently have a blank line between
459 2013-11-22 Sterling Augustine <saugustine@google.com>
462 * valprint.c (read_string): Set new variable fetchlen based on
463 fetchlimit and size. Use it in call to partial_memory_read.
466 2013-11-22 Tom Tromey <tromey@redhat.com>
469 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
470 the return address column is unspecified.
472 2013-11-22 Tom Tromey <tromey@redhat.com>
473 Pedro Alves <palves@redhat.com>
476 * value.c (value_fetch_lazy): Internal error if
477 get_frame_register_value returns the same register.
479 2013-11-22 Pedro Alves <palves@redhat.com>
480 Tom Tromey <tromey@redhat.com>
482 * frame.c (frame_stash_add): Now returns whether a frame with the
483 same ID was already known.
484 (compute_frame_id): New function, factored out from get_frame_id.
485 (get_frame_id): No longer lazilly compute the frame id here.
486 (get_prev_frame_if_no_cycle): New function. Detects wider stack
488 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
489 and checking for stack cycles here.
491 2013-11-22 Pedro Alves <palves@redhat.com>
494 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
495 this frame and the new previous frame, not between this frame and
498 2013-11-22 Pedro Alves <palves@redhat.com>
501 * dwarf2-frame.c (struct dwarf2_frame_cache)
502 <checked_tailcall_bottom, entry_cfa_sp_offset,
503 entry_cfa_sp_offset_p>: New fields.
504 (dwarf2_frame_cache): Adjust to use the new cache fields instead
505 of locals. Don't call dwarf2_tailcall_sniffer_first here.
506 (dwarf2_frame_prev_register): Call it here, but only once.
508 2013-11-21 Doug Evans <xdje42@gmail.com>
510 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
511 (type_equality_entry): Move here from python/py-type.c.
512 (type_equality_entry_d): Ditto.
513 (compare_maybe_null_strings, check_types_equal): Ditto.
514 (check_types_worklist, types_deeply_equal): Ditto.
515 * gdbtypes.h (types_deeply_equal): Declare.
516 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
517 (typy_richcompare): Update.
519 2013-11-20 Joel Brobecker <brobecker@adacore.com>
521 * python/py-value.c (is_intlike): Delete.
522 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
523 by use of is_integral_type.
524 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
525 by use of is_integral_type and check for TYPE_CODE_PTR.
527 2013-11-20 Tom Tromey <tromey@redhat.com>
529 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
531 * gnulib/aclocal.m4: Update.
532 * gnulib/config.in: Update.
533 * gnulib/configure: Update.
534 * gnulib/import/Makefile.am: Update.
535 * gnulib/import/Makefile.in: Update.
536 * gnulib/import/errno.in.h: Remove.
537 * gnulib/import/intprops.h: Remove.
538 * gnulib/import/m4/errno_h.m4: Remove.
539 * gnulib/import/m4/gnulib-cache.m4: Update.
540 * gnulib/import/m4/gnulib-comp.m4: Update.
541 * gnulib/import/m4/strerror.m4: Remove.
542 * gnulib/import/m4/sys_socket_h.m4: Remove.
543 * gnulib/import/strerror-override.c: Remove.
544 * gnulib/import/strerror-override.h: Remove.
545 * gnulib/import/strerror.c: Remove.
546 * gnulib/update-gnulib.sh: Update.
548 2013-11-20 Yao Qi <yao@codesourcery.com>
550 * target-dcache.c (target_dcache_get_or_init): Call
551 set_address_space_data if 'dcache' is NULL.
553 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
555 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
557 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
559 * python/lib/gdb/command/bound_register.py: New file.
560 * data-directory/Makefile.in: Copy bond_register.py to the right path
561 to be initialized at gdb startup.
563 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
565 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
567 (amd64_linux_read_description): Add initialization for MPX and
569 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
570 (amd64_linux_gregset_reg_offset): Add MPX registers.
571 (amd64_linux_core_read_description): Add initialization for MPX
573 (_initialize_amd64_linux_tdep): Initialize MPX targets.
574 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
575 register on the list.
576 (tdesc_amd64_mpx_linux) Add new target for MPX.
577 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
578 (amd64_mpx_names): MPX register names.
579 (amd64_init_abi): Add MPX register while initializing the ABI.
580 (_initialize_amd64_tdep): Initialize MPX targets.
581 * amd64-tdep.h (amd64_regnum): Add MPX registers.
582 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
584 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
586 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
587 registers on the range of registers to be read from
589 (i386_linux_read_description): Add case for MPX.
590 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
591 (i386_linux_gregset_reg_offset): Add MPX registers.
592 (i386_linux_core_read_description): Initialize also MPX.
593 (_initialize_i386_linux_tdep): Add mpx initialization.
594 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
596 (i386_regnum): Add MPX registers.
597 (I386_MPX_NUM_REGS): New macro.
598 (i386_bnd_regnum_p): New function.
599 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
600 number of registers to be the number of BNDSTATUS.
601 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
602 * i386-tdep.c: Include features/i386/i386-mpx.c.
603 (i386_mpx_names): Add MPX register names array.
604 (i386_bnd_names): Add bnd pseudo register names array.
605 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
607 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
608 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
610 (i386_bnd_type): New function.
611 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
613 (i386_pseudo_register_read_into_value): Add bnd case.
614 (i386_pseudo_register_write): Add bnd pseudo registers.
615 (i386_register_reggroup_p): Add MPX register to the group all.
616 (i386_validate_tdesc_p): Add MPX to the target description
618 (i386_pseudo_register_name): Add bnd pseudo registers.
619 (i386_gdbarch_init): Add MPX for architecture initialization.
620 (_initia_initialize_i386_tdep): Add mpx initialization.
621 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
623 (XSAVE_MPX_ADDR): New macro.
624 (i387_supply_xsave): Add MPX case.
625 (i387_collect_xsave): Add MPX case.
626 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
627 (I387_BNDCFGU_REGNUM): New macro.
628 (I387_NUM_MPX_REGS): New macro.
629 (I387_NUM_BND_REGS): New macro.
630 (I387_NUM_MPX_CTRL_REGS): New macro.
631 (I387_MPXEND_REGNUM): New macro.
632 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
633 (I386_XSTATE_BNDCFG): Likewise.
634 (I386_XSTATE_MPX_MASK): Likewise.
635 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
636 (I386_XSTATE_BNDREGS_SIZE): New macro.
637 (I386_XSTATE_BNDCFG_SIZE): Likewise.
638 (I386_XSTATE_SIZE): Adapt for MPX.
639 (I386_XSTATE_MAX_SIZE): Likewise.
641 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
643 * features/i386/Makefile: Adapts for using MPX registers.
644 * features/i386/32bit-mpx.xml: New file.
645 * features/i386/64bit-mpx.xml: Likewise.
646 * features/i386/amd64-mpx-linux.c: Likewise.
647 * features/i386/amd64-mpx-linux.xml: Likewise.
648 * features/i386/amd64-mpx.c: Likewise.
649 * features/i386/amd64-mpx.xml: Likewise.
650 * features/i386/i386-mpx-linux.c: Likewise.
651 * features/i386/i386-mpx-linux.xml: Likewise.
652 * features/i386/i386-mpx.c: Likewise.
653 * features/i386/i386-mpx.xml: Likewise.
654 * regformats/i386/amd64-mpx-linux.dat: New file.
655 * regformats/i386/amd64-mpx.dat: Likewise.
656 * regformats/i386/i386-mpx-linux.dat: Likewise.
657 * regformats/i386/i386-mpx.dat: Likewise.
659 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
661 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
662 Modified logic of creating a bitfield to be in sync with
665 2013-11-20 Will Newton <will.newton@linaro.org>
667 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
670 2013-11-20 Yao Qi <yao@codesourcery.com>
672 * progspace.h (struct address_space_data): Declare.
673 * target-dcache.c: Include "progspace.h".
674 (target_dache): Remove.
675 (target_dcache_aspace_key): New.
676 (target_dcache_cleanup): New function.
677 (target_dcache_init_p): Get data through
678 target_dcache_aspace_key.
679 (target_dcache_invalidate): Likewise.
680 (target_dcache_get): Likewise.
681 (target_dcache_get_or_init): Likewise.
682 (_initialize_target_dcache): Initialize
683 target_dcache_aspace_key.
685 2013-11-20 Yao Qi <yao@codesourcery.com>
687 * progspace.c (struct address_space): Update comments.
688 <REGISTRY_FIELDS>: New fields.
689 DEFINE_REGISTRY for address_space.
690 (new_address_space): Call address_space_alloc_data.
691 (free_address_space): Call address_space_free_data.
692 * progspace.h: Use DECLARE_REGISTRY.
694 2013-11-20 Yao Qi <yao@codesourcery.com>
696 * Makefile.in (SFILES):Add target-dcache.c.
697 (HFILES_NO_SRCDIR): Add target-dcache.h.
698 (COMMON_OBS): Add target-dcache.o.
699 * dcache.c: Remove inclusion to "target.h". Include
701 * memattr.c: Include "target-dcache.h".
703 * tracepoint.c: Likewise.
704 * target.c: (stack_cache_enabled_p_1): Move to
706 (stack_cache_enabled_p): Likewise.
707 (set_stack_cache_enabled_p): Likewise.
708 (show_stack_cache_enabled_p): Likewise.
709 (target_dcache, target_dcache_init_p): Likewise.
710 (target_dcache_invalidate): Likewise.
711 (target_dcache_get, target_dcache_get_or_init): Likewise.
712 (memory_xfer_partial_1): Call function stack_cache_enabled.
713 (initialize_target): Move code to target-dcache.c.
714 * target.h (target_dcache_invalidate): Move to
716 (target_dcache_get): Likewise.
717 * target-dcache.c: New.
718 * target-dcache.h: New.
720 2013-11-20 Yao Qi <yao@codesourcery.com>
722 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
725 2013-11-20 Yao Qi <yao@codesourcery.com>
727 * dcache.c (last_cache): Remove.
728 (dcache_free, dcache_init): Update.
730 (dcache_print_line): Add parameter 'dcache'. Replace
731 'target_dcache' with 'dcache'.
732 (dcache_info): Move code to dcache_info_1. Call
734 (dcache_info_1): New function.
735 (set_dcache_size): Call target_dcache_invalidate.
736 (set_dcache_line_size): Call target_dcache_invalidate.
737 * target.c (target_dcache_init_p): New function.
738 (target_dcache_invalidate): Check target_dcache_init_p first.
739 (target_dcache_get, target_dcache_get_or_init): New function.
740 (memory_xfer_partial_1): Adjust.
741 (initialize_target): Don't initialize 'target_dcache'.
742 * target.h (struct dcache_struct): Declare.
743 (target_dcache_get): Declare.
745 2013-11-19 Yao Qi <yao@codesourcery.com>
747 * varobj.c (varobj_get_type): Fix typo.
749 2013-11-19 Joel Brobecker <brobecker@adacore.com>
751 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
753 2013-11-19 Joel Brobecker <brobecker@adacore.com>
755 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
758 2013-11-18 Tom Tromey <tromey@redhat.com>
760 * common/gdb_stat.h: Remove.
761 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
762 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
763 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
764 * corefile.c: Use sys/stat.h, not gdb_stat.h.
765 * ctf.c: Use sys/stat.h, not gdb_stat.h.
766 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
767 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
768 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
769 * exec.c: Use sys/stat.h, not gdb_stat.h.
770 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
771 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
772 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
773 * jit.c: Use sys/stat.h, not gdb_stat.h.
774 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
775 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
776 * main.c: Use sys/stat.h, not gdb_stat.h.
777 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
778 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
779 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
780 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
781 * procfs.c: Use sys/stat.h, not gdb_stat.h.
782 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
783 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
784 * remote.c: Use sys/stat.h, not gdb_stat.h.
785 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
786 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
787 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
788 * source.c: Use sys/stat.h, not gdb_stat.h.
789 * symfile.c: Use sys/stat.h, not gdb_stat.h.
790 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
791 * symtab.c: Use sys/stat.h, not gdb_stat.h.
792 * top.c: Use sys/stat.h, not gdb_stat.h.
793 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
795 2013-11-18 Tom Tromey <tromey@redhat.com>
797 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
799 * gnulib/aclocal.m4: Update.
800 * gnulib/config.in: Update.
801 * gnulib/configure: Update.
802 * gnulib/import/Makefile.am: Update.
803 * gnulib/import/Makefile.in: Update.
804 * gnulib/import/m4/gnulib-cache.m4: Update.
805 * gnulib/import/m4/gnulib-comp.m4: Update.
806 * gnulib/import/m4/sys_stat_h.m4: New.
807 * gnulib/import/m4/time_h.m4: New.
808 * gnulib/import/sys_stat.in.h: New.
809 * gnulib/import/time.in.h: New.
811 2013-11-18 Tom Tromey <tromey@redhat.com>
813 * configure: Rebuild.
814 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
816 2013-11-18 Tom Tromey <tromey@redhat.com>
818 * configure: Rebuild.
819 * configure.ac: Don't check for unistd.h.
821 2013-11-18 Tom Tromey <tromey@redhat.com>
823 * configure: Rebuild.
824 * configure.ac: Don't check for stdlib.h
825 * defs.h: Include stdlib.h unconditionally.
827 2013-11-18 Tom Tromey <tromey@redhat.com>
829 * config.in: Rebuild.
830 * configure: Rebuild.
831 * configure.ac: Don't check for stddef.h.
832 * defs.h: Unconditionally include stddef.h. Remove duplicate
835 2013-11-18 Tom Tromey <tromey@redhat.com>
837 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
838 * common/gdb_dirent.h: Remove.
839 * common/filestuff.c: Use dirent.h.
840 * common/linux-osdata.c: Use dirent.h.
842 * config.in: Rebuild.
843 * configure: Rebuild.
844 * configure.ac: Don't use AC_HEADER_DIRENT.
845 * linux-fork.c: Use dirent.h
846 * linux-nat.c: Use dirent.h.
847 * nto-procfs.c: Use dirent.h.
848 * procfs.c: Use dirent.h.
850 2013-11-18 Tom Tromey <tromey@redhat.com>
852 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
853 * gnulib/aclocal.m4: Update.
854 * gnulib/config.in: Update.
855 * gnulib/configure: Update.
856 * gnulib/import/Makefile.am: Update.
857 * gnulib/import/Makefile.in: Update.
858 * gnulib/import/dirent.in.h: New.
859 * gnulib/import/m4/dirent_h.m4: New.
860 * gnulib/import/m4/gnulib-cache.m4: Update.
861 * gnulib/import/m4/gnulib-comp.m4: Update.
863 2013-11-18 Tom Tromey <tromey@redhat.com>
865 * configure: Rebuild.
866 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
869 2013-11-18 Tom Tromey <tromey@redhat.com>
871 * common/gdb_string.h: Remove.
872 * aarch64-tdep.c: Use string.h, not gdb_string.h.
873 * ada-exp.y: Use string.h, not gdb_string.h.
874 * ada-lang.c: Use string.h, not gdb_string.h.
875 * ada-lex.l: Use string.h, not gdb_string.h.
876 * ada-typeprint.c: Use string.h, not gdb_string.h.
877 * ada-valprint.c: Use string.h, not gdb_string.h.
878 * aix-thread.c: Use string.h, not gdb_string.h.
879 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
880 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
881 * alpha-nat.c: Use string.h, not gdb_string.h.
882 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
883 * alpha-tdep.c: Use string.h, not gdb_string.h.
884 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
885 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
886 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
887 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
888 * amd64-nat.c: Use string.h, not gdb_string.h.
889 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
890 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
891 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
892 * arch-utils.c: Use string.h, not gdb_string.h.
893 * arm-linux-nat.c: Use string.h, not gdb_string.h.
894 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
895 * arm-tdep.c: Use string.h, not gdb_string.h.
896 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
897 * armbsd-tdep.c: Use string.h, not gdb_string.h.
898 * armnbsd-nat.c: Use string.h, not gdb_string.h.
899 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
900 * armobsd-tdep.c: Use string.h, not gdb_string.h.
901 * avr-tdep.c: Use string.h, not gdb_string.h.
902 * ax-gdb.c: Use string.h, not gdb_string.h.
903 * ax-general.c: Use string.h, not gdb_string.h.
904 * bcache.c: Use string.h, not gdb_string.h.
905 * bfin-tdep.c: Use string.h, not gdb_string.h.
906 * breakpoint.c: Use string.h, not gdb_string.h.
907 * build-id.c: Use string.h, not gdb_string.h.
908 * buildsym.c: Use string.h, not gdb_string.h.
909 * c-exp.y: Use string.h, not gdb_string.h.
910 * c-lang.c: Use string.h, not gdb_string.h.
911 * c-typeprint.c: Use string.h, not gdb_string.h.
912 * c-valprint.c: Use string.h, not gdb_string.h.
913 * charset.c: Use string.h, not gdb_string.h.
914 * cli-out.c: Use string.h, not gdb_string.h.
915 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
916 * cli/cli-decode.c: Use string.h, not gdb_string.h.
917 * cli/cli-dump.c: Use string.h, not gdb_string.h.
918 * cli/cli-interp.c: Use string.h, not gdb_string.h.
919 * cli/cli-logging.c: Use string.h, not gdb_string.h.
920 * cli/cli-script.c: Use string.h, not gdb_string.h.
921 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
922 * cli/cli-utils.c: Use string.h, not gdb_string.h.
923 * coffread.c: Use string.h, not gdb_string.h.
924 * common/common-utils.c: Use string.h, not gdb_string.h.
925 * common/filestuff.c: Use string.h, not gdb_string.h.
926 * common/linux-procfs.c: Use string.h, not gdb_string.h.
927 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
928 * common/signals.c: Use string.h, not gdb_string.h.
929 * common/vec.h: Use string.h, not gdb_string.h.
930 * core-regset.c: Use string.h, not gdb_string.h.
931 * corefile.c: Use string.h, not gdb_string.h.
932 * corelow.c: Use string.h, not gdb_string.h.
933 * cp-abi.c: Use string.h, not gdb_string.h.
934 * cp-support.c: Use string.h, not gdb_string.h.
935 * cp-valprint.c: Use string.h, not gdb_string.h.
936 * cris-tdep.c: Use string.h, not gdb_string.h.
937 * d-lang.c: Use string.h, not gdb_string.h.
938 * dbxread.c: Use string.h, not gdb_string.h.
939 * dcache.c: Use string.h, not gdb_string.h.
940 * demangle.c: Use string.h, not gdb_string.h.
941 * dicos-tdep.c: Use string.h, not gdb_string.h.
942 * disasm.c: Use string.h, not gdb_string.h.
943 * doublest.c: Use string.h, not gdb_string.h.
944 * dsrec.c: Use string.h, not gdb_string.h.
945 * dummy-frame.c: Use string.h, not gdb_string.h.
946 * dwarf2-frame.c: Use string.h, not gdb_string.h.
947 * dwarf2loc.c: Use string.h, not gdb_string.h.
948 * dwarf2read.c: Use string.h, not gdb_string.h.
949 * elfread.c: Use string.h, not gdb_string.h.
950 * environ.c: Use string.h, not gdb_string.h.
951 * eval.c: Use string.h, not gdb_string.h.
952 * event-loop.c: Use string.h, not gdb_string.h.
953 * exceptions.c: Use string.h, not gdb_string.h.
954 * exec.c: Use string.h, not gdb_string.h.
955 * expprint.c: Use string.h, not gdb_string.h.
956 * f-exp.y: Use string.h, not gdb_string.h.
957 * f-lang.c: Use string.h, not gdb_string.h.
958 * f-typeprint.c: Use string.h, not gdb_string.h.
959 * f-valprint.c: Use string.h, not gdb_string.h.
960 * fbsd-nat.c: Use string.h, not gdb_string.h.
961 * findcmd.c: Use string.h, not gdb_string.h.
962 * findvar.c: Use string.h, not gdb_string.h.
963 * fork-child.c: Use string.h, not gdb_string.h.
964 * frame.c: Use string.h, not gdb_string.h.
965 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
966 * frv-tdep.c: Use string.h, not gdb_string.h.
967 * gdb.c: Use string.h, not gdb_string.h.
968 * gdb_bfd.c: Use string.h, not gdb_string.h.
969 * gdbarch.c: Use string.h, not gdb_string.h.
970 * gdbtypes.c: Use string.h, not gdb_string.h.
971 * gnu-nat.c: Use string.h, not gdb_string.h.
972 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
973 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
974 * go-exp.y: Use string.h, not gdb_string.h.
975 * go-lang.c: Use string.h, not gdb_string.h.
976 * go32-nat.c: Use string.h, not gdb_string.h.
977 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
978 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
979 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
980 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
981 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
982 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
983 * i386-linux-nat.c: Use string.h, not gdb_string.h.
984 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
985 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
986 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
987 * i386-tdep.c: Use string.h, not gdb_string.h.
988 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
989 * i386gnu-nat.c: Use string.h, not gdb_string.h.
990 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
991 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
992 * i387-tdep.c: Use string.h, not gdb_string.h.
993 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
994 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
995 * inf-child.c: Use string.h, not gdb_string.h.
996 * inf-ptrace.c: Use string.h, not gdb_string.h.
997 * inf-ttrace.c: Use string.h, not gdb_string.h.
998 * infcall.c: Use string.h, not gdb_string.h.
999 * infcmd.c: Use string.h, not gdb_string.h.
1000 * inflow.c: Use string.h, not gdb_string.h.
1001 * infrun.c: Use string.h, not gdb_string.h.
1002 * interps.c: Use string.h, not gdb_string.h.
1003 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1004 * irix5-nat.c: Use string.h, not gdb_string.h.
1005 * jv-exp.y: Use string.h, not gdb_string.h.
1006 * jv-lang.c: Use string.h, not gdb_string.h.
1007 * jv-typeprint.c: Use string.h, not gdb_string.h.
1008 * jv-valprint.c: Use string.h, not gdb_string.h.
1009 * language.c: Use string.h, not gdb_string.h.
1010 * linux-fork.c: Use string.h, not gdb_string.h.
1011 * linux-nat.c: Use string.h, not gdb_string.h.
1012 * lm32-tdep.c: Use string.h, not gdb_string.h.
1013 * m2-exp.y: Use string.h, not gdb_string.h.
1014 * m2-typeprint.c: Use string.h, not gdb_string.h.
1015 * m32c-tdep.c: Use string.h, not gdb_string.h.
1016 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1017 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1018 * m32r-rom.c: Use string.h, not gdb_string.h.
1019 * m32r-tdep.c: Use string.h, not gdb_string.h.
1020 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1021 * m68k-tdep.c: Use string.h, not gdb_string.h.
1022 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1023 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1024 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1025 * m88k-tdep.c: Use string.h, not gdb_string.h.
1026 * macrocmd.c: Use string.h, not gdb_string.h.
1027 * main.c: Use string.h, not gdb_string.h.
1028 * mdebugread.c: Use string.h, not gdb_string.h.
1029 * mem-break.c: Use string.h, not gdb_string.h.
1030 * memattr.c: Use string.h, not gdb_string.h.
1031 * memory-map.c: Use string.h, not gdb_string.h.
1032 * mep-tdep.c: Use string.h, not gdb_string.h.
1033 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1034 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1035 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1036 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1037 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1038 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1039 * mi/mi-console.c: Use string.h, not gdb_string.h.
1040 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1041 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1042 * mi/mi-main.c: Use string.h, not gdb_string.h.
1043 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1044 * microblaze-rom.c: Use string.h, not gdb_string.h.
1045 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1046 * mingw-hdep.c: Use string.h, not gdb_string.h.
1047 * minidebug.c: Use string.h, not gdb_string.h.
1048 * minsyms.c: Use string.h, not gdb_string.h.
1049 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1050 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1051 * mips-tdep.c: Use string.h, not gdb_string.h.
1052 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1053 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1054 * mipsread.c: Use string.h, not gdb_string.h.
1055 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1056 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1057 * monitor.c: Use string.h, not gdb_string.h.
1058 * moxie-tdep.c: Use string.h, not gdb_string.h.
1059 * mt-tdep.c: Use string.h, not gdb_string.h.
1060 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1061 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1062 * nto-procfs.c: Use string.h, not gdb_string.h.
1063 * nto-tdep.c: Use string.h, not gdb_string.h.
1064 * objc-lang.c: Use string.h, not gdb_string.h.
1065 * objfiles.c: Use string.h, not gdb_string.h.
1066 * opencl-lang.c: Use string.h, not gdb_string.h.
1067 * osabi.c: Use string.h, not gdb_string.h.
1068 * osdata.c: Use string.h, not gdb_string.h.
1069 * p-exp.y: Use string.h, not gdb_string.h.
1070 * p-lang.c: Use string.h, not gdb_string.h.
1071 * p-typeprint.c: Use string.h, not gdb_string.h.
1072 * parse.c: Use string.h, not gdb_string.h.
1073 * posix-hdep.c: Use string.h, not gdb_string.h.
1074 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1075 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1076 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1077 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1078 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1079 * printcmd.c: Use string.h, not gdb_string.h.
1080 * procfs.c: Use string.h, not gdb_string.h.
1081 * prologue-value.c: Use string.h, not gdb_string.h.
1082 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1083 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1084 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1085 * regcache.c: Use string.h, not gdb_string.h.
1086 * registry.c: Use string.h, not gdb_string.h.
1087 * remote-fileio.c: Use string.h, not gdb_string.h.
1088 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1089 * remote-mips.c: Use string.h, not gdb_string.h.
1090 * remote-sim.c: Use string.h, not gdb_string.h.
1091 * remote.c: Use string.h, not gdb_string.h.
1092 * reverse.c: Use string.h, not gdb_string.h.
1093 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1094 * ser-base.c: Use string.h, not gdb_string.h.
1095 * ser-go32.c: Use string.h, not gdb_string.h.
1096 * ser-mingw.c: Use string.h, not gdb_string.h.
1097 * ser-pipe.c: Use string.h, not gdb_string.h.
1098 * ser-tcp.c: Use string.h, not gdb_string.h.
1099 * ser-unix.c: Use string.h, not gdb_string.h.
1100 * serial.c: Use string.h, not gdb_string.h.
1101 * sh-tdep.c: Use string.h, not gdb_string.h.
1102 * sh64-tdep.c: Use string.h, not gdb_string.h.
1103 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1104 * skip.c: Use string.h, not gdb_string.h.
1105 * sol-thread.c: Use string.h, not gdb_string.h.
1106 * solib-dsbt.c: Use string.h, not gdb_string.h.
1107 * solib-frv.c: Use string.h, not gdb_string.h.
1108 * solib-osf.c: Use string.h, not gdb_string.h.
1109 * solib-spu.c: Use string.h, not gdb_string.h.
1110 * solib-target.c: Use string.h, not gdb_string.h.
1111 * solib.c: Use string.h, not gdb_string.h.
1112 * somread.c: Use string.h, not gdb_string.h.
1113 * source.c: Use string.h, not gdb_string.h.
1114 * sparc-nat.c: Use string.h, not gdb_string.h.
1115 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1116 * sparc-tdep.c: Use string.h, not gdb_string.h.
1117 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1118 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1119 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1120 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1121 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1122 * spu-multiarch.c: Use string.h, not gdb_string.h.
1123 * spu-tdep.c: Use string.h, not gdb_string.h.
1124 * stabsread.c: Use string.h, not gdb_string.h.
1125 * stack.c: Use string.h, not gdb_string.h.
1126 * std-regs.c: Use string.h, not gdb_string.h.
1127 * symfile.c: Use string.h, not gdb_string.h.
1128 * symmisc.c: Use string.h, not gdb_string.h.
1129 * symtab.c: Use string.h, not gdb_string.h.
1130 * target.c: Use string.h, not gdb_string.h.
1131 * thread.c: Use string.h, not gdb_string.h.
1132 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1133 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1134 * top.c: Use string.h, not gdb_string.h.
1135 * tracepoint.c: Use string.h, not gdb_string.h.
1136 * tui/tui-command.c: Use string.h, not gdb_string.h.
1137 * tui/tui-data.c: Use string.h, not gdb_string.h.
1138 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1139 * tui/tui-file.c: Use string.h, not gdb_string.h.
1140 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1141 * tui/tui-out.c: Use string.h, not gdb_string.h.
1142 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1143 * tui/tui-source.c: Use string.h, not gdb_string.h.
1144 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1145 * tui/tui-win.c: Use string.h, not gdb_string.h.
1146 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1147 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1148 * typeprint.c: Use string.h, not gdb_string.h.
1149 * ui-file.c: Use string.h, not gdb_string.h.
1150 * ui-out.c: Use string.h, not gdb_string.h.
1151 * user-regs.c: Use string.h, not gdb_string.h.
1152 * utils.c: Use string.h, not gdb_string.h.
1153 * v850-tdep.c: Use string.h, not gdb_string.h.
1154 * valarith.c: Use string.h, not gdb_string.h.
1155 * valops.c: Use string.h, not gdb_string.h.
1156 * valprint.c: Use string.h, not gdb_string.h.
1157 * value.c: Use string.h, not gdb_string.h.
1158 * varobj.c: Use string.h, not gdb_string.h.
1159 * vax-tdep.c: Use string.h, not gdb_string.h.
1160 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1161 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1162 * windows-nat.c: Use string.h, not gdb_string.h.
1163 * xcoffread.c: Use string.h, not gdb_string.h.
1164 * xml-support.c: Use string.h, not gdb_string.h.
1165 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1166 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1168 2013-11-18 Tom Tromey <tromey@redhat.com>
1170 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1172 * gnulib/aclocal.m4: Update.
1173 * gnulib/config.in: Update.
1174 * gnulib/configure: Update.
1175 * gnulib/import/Makefile.am: Update.
1176 * gnulib/import/Makefile.in: Update.
1177 * gnulib/import/errno.in.h: New.
1178 * gnulib/import/intprops.h: New.
1179 * gnulib/import/m4/errno_h.m4: New.
1180 * gnulib/import/m4/gnulib-cache.m4: Update.
1181 * gnulib/import/m4/gnulib-comp.m4: Update.
1182 * gnulib/import/m4/strerror.m4: New.
1183 * gnulib/import/m4/strstr.m4: New.
1184 * gnulib/import/m4/sys_socket_h.m4: New.
1185 * gnulib/import/strerror-override.c: New.
1186 * gnulib/import/strerror-override.h: New.
1187 * gnulib/import/strerror.c: New.
1188 * gnulib/import/strstr.c: New.
1190 2013-11-18 Tom Tromey <tromey@redhat.com>
1192 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1195 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1197 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1198 * sparc-tdep.h: And its prototype.
1200 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1202 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1204 2013-11-18 Pedro Alves <palves@redhat.com>
1206 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1209 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1211 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1212 to -list-features output.
1214 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1216 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1217 <read_addr_from_reg>: Renames "read_reg".
1218 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1220 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1221 Use read_addr_from_reg in place of read_reg.
1222 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1223 in place of read_reg.
1224 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1225 dwarf_expr_read_reg.
1226 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1227 with dwarf_expr_read_addr_from_reg.
1228 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1229 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1230 needs_frame_read_addr_from_reg.
1232 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1236 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1238 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1241 2013-11-15 Tom Tromey <tromey@redhat.com>
1244 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1245 (classify_name): Likewise. Prefer a field of "this" over a
1247 (classify_inner_name, yylex): Update.
1249 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1251 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1252 Extend the documentation a bit.
1253 <get_reg_value>: New field.
1254 * dwarf2loc.c (dwarf_expr_get_reg_value)
1255 (needs_frame_get_reg_value): New functions.
1256 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1258 * dwarf2-frame.c (get_reg_value): New function.
1259 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1260 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1261 Use new callback to compute result_val.
1263 2013-11-15 Alan Modra <amodra@gmail.com>
1265 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1266 (ppc64_desc_entry_point): ..this. Update comments here and at
1268 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1269 ppc64_standard_linkage3): Update comments.
1270 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1271 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1273 (ppc64_standard_linkage4_target): New function.
1274 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1275 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1276 nop match. Fix comment wrap.
1278 2013-11-14 Pedro Alves <palves@redhat.com>
1280 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1281 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1283 2013-11-14 Pedro Alves <palves@redhat.com>
1285 * infrun.c (struct execution_control_state)
1286 <stepped_after_stopped_by_watchpoint>: New field.
1287 (get_inferior_stop_soon): New function.
1288 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1289 moved to struct execution_control_state -- adjust. Use
1290 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1292 (handle_signal_stop): New function, factored out from
1293 handle_inferior_event.
1295 2013-11-14 Pedro Alves <palves@redhat.com>
1297 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1299 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1301 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1302 Adjust to return a boolean.
1303 * breakpoint.h (enum bpstat_signal_value): Delete.
1304 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1305 (bpstat_explains_signal): Likewise.
1306 * infrun.c (handle_inferior_event) <random signal checks>:
1307 bpstat_explains_signal now returns a boolean - adjust. No longer
1308 consider hiding signals.
1310 2013-11-14 Pedro Alves <palves@redhat.com>
1312 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1313 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1314 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1316 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1317 instead of BPSTAT_SIGNAL_HIDE.
1318 * infrun.c (handle_inferior_event): Rework random signal checks.
1320 2013-11-14 Pedro Alves <palves@redhat.com>
1322 * infrun.c (struct execution_control_state): Remove
1323 'random_signal' field.
1324 (handle_syscall_event): Use bpstat_causes_stop instead of
1325 bpstat_explains_signal. Don't set ecs->random_signal.
1326 (handle_inferior_event): New 'random_signal' local.
1327 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1328 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1329 bpstat_explains_signal. Don't set ecs->random_signal.
1330 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1333 2013-11-14 Pedro Alves <palves@redhat.com>
1335 * infrun.c (handle_inferior_event): Move comment from the
1336 function's body to the function's description, adjusted.
1338 2013-11-14 Pedro Alves <palves@redhat.com>
1340 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1341 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1342 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1345 2013-11-14 Tom Tromey <tromey@redhat.com>
1347 * python/py-linetable.c (ltpy_has_line)
1348 (ltpy_get_all_source_lines): Fix loop termination condition.
1350 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1352 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1353 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1354 PARSE->LANGUAGE during command execution, if set.
1355 * mi/mi-parse.c: Add "language.h" #include.
1356 (mi_parse): Add parsing of "--language" command option.
1358 * NEWS: Add entry mentioning the new "--language" command option.
1360 2013-11-14 Pedro Alves <palves@redhat.com>
1361 Joel Brobecker <brobecker@adacore.com>
1363 * cli/cli-utils.h (extract_arg_const): Add declaration.
1364 * cli/cli-utils.c (extract_arg_const): New function.
1365 (extract_arg): Reimplement using extract_arg_const.
1367 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1369 * language.h: Add "symtab.h" #include.
1371 2013-11-13 Doug Evans <xdje42@gmail.com>
1373 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1374 specific breakpoints, don't evaluate breakpoint condition if
1377 2013-11-13 Keith Seitz <keiths@redhat.com>
1381 * cp-support.c (insepct_type): Add support for substituting
1382 namespace aliases, too.
1383 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1384 for DW_TAG_imported_declaration.
1385 (add_partial_symbol): Likewise.
1386 (process_die): Handle namespace aliases with
1387 read_namespace_alias.
1388 (die_needs_namespace): Add DW_TAG_imported_declaration.
1389 (read_namespace_alias): New function.
1390 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1391 (new_symbol_full): Handle DW_TAG_imported_declaration.
1393 2013-11-13 Keith Seitz <keiths@redhat.com>
1395 * p-exp.y (uptok): Make first parameter const.
1396 (yylex): Make `tokstart' and `tokptr' const.
1397 Don't copy the lexer input to a temporary buffer.
1399 Remove const workaround for parse_escape.
1400 Create a temporary buffer for a convenience variable instead
1401 of doing in-place modification of the input.
1402 If a match is found with a different case from the input,
1403 do not change the input at all.
1404 Use `tmp' to construct the resultant stoken instead of
1407 2013-11-13 Doug Evans <xdje42@gmail.com>
1409 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1411 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1413 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1414 entry with "ada-exceptions".
1416 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1418 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1419 after re-initialization of OBJFILE's obstack.
1421 2013-11-12 Doug Evans <xdje42@gmail.com>
1423 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1424 bs->stop != 0 on entry. Update function comment. Simplify early
1425 exit for frame mismatch. Reindent rest of function.
1427 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1432 2013-11-12 Doug Evans <dje@google.com>
1434 Work around gold/15646.
1435 * dwarf2read.c (read_index_from_section): Update comment.
1436 (struct dw2_symtab_iterator): New member global_seen.
1437 (dw2_symtab_iter_init): Initialize it.
1438 (dw2_symtab_iter_next): Skip duplicate global symbols.
1439 (dw2_expand_symtabs_matching): Ditto.
1441 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1443 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1444 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1446 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1447 (mi_cmd_info_ada_exceptions): New function.
1448 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1450 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1452 * ada-lang.h: #include "vec.h".
1453 (struct ada_exc_info): New.
1454 (ada_exc_info): New typedef.
1455 (DEF_VEC_O(ada_exc_info)): New vector.
1456 (ada_exceptions_list): Add declaration.
1457 * ada-lang.c (ada_is_exception_sym)
1458 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1459 (sort_remove_dups_ada_exceptions_list)
1460 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1461 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1462 (ada_exceptions_list_1, ada_exceptions_list)
1463 (info_exceptions_command): New function.
1464 (_initialize_ada_language): Add "info exception" command.
1466 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1469 * NEWS: Add linetable feature.
1470 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1471 * python/py-linetable.c: New file.
1472 * python/py-symtab.c (stpy_get_linetable): New function.
1473 * python/python-internal.h (symtab_to_linetable_object): Declare.
1474 (gdbpy_initialize_linetable): Ditto.
1475 * python/python.c (_initialize_python): Call
1476 gdbpy_initialize_linetable.
1478 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1480 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1481 the documentation of fields "except_string" and "condition".
1482 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1483 CONDITION on the heap before passing it to
1484 create_ada_exception_catchpoint.
1485 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1488 2013-11-11 Tom Tromey <tromey@redhat.com>
1490 * config.in, configure: Rebuild.
1491 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1493 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1495 * remote-sim.c (gdbsim_detach): Break declaration into
1496 shorter lines. No code change.
1498 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1500 * remote-sim.c (gdbsim_detach): Fix prototype.
1502 2013-11-08 Doug Evans <dje@google.com>
1504 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1505 (create_debug_types_hash_table): Only print debugging messages for
1506 each TU if dwarf2-read >= 2.
1507 (process_queue): Ditto.
1508 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1511 2013-11-08 Tom Tromey <tromey@redhat.com>
1513 * configure: Rebuild.
1514 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1516 2013-11-08 Tom Tromey <tromey@redhat.com>
1518 * configure, config.in: Rebuild.
1519 * configure.ac: Remove unused configury.
1521 2013-11-08 Tom Tromey <tromey@redhat.com>
1523 * m32c-tdep.c: Use gdb_string.h.
1525 2013-11-08 Tom Tromey <tromey@redhat.com>
1527 * configure, config.in: Rebuild.
1528 * configure.ac: Remove all link.h-related checks.
1530 2013-11-08 Tom Tromey <tromey@redhat.com>
1532 * acinclude.m4: Include common.m4.
1533 * common/common.m4: New file.
1534 * configure, config.in: Rebuild.
1535 * configure.ac: Use GDB_AC_COMMON.
1537 2013-11-08 Doug Evans <dje@google.com>
1539 * NEWS: Mention that "set debug symtab-create" now accepts a
1541 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1542 to set the symtab's primary flag.
1543 * jit.c (finalize_symtab): Ditto.
1544 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1545 * symfile.c (allocate_symtab): Only print debugging messages for
1546 symtab_create_debug levels 2 and higher.
1547 * symtab.c (symtab_create_debug): Change type to unsigned int.
1548 (set_symtab_primary): New function.
1549 (_initialize_symtab): Change "set debug symtab-create" to a
1551 * symtab.h (set_symtab_primary): Declare.
1552 (symtab_create_debug): Update decl.
1554 2013-11-08 Tom Tromey <tromey@redhat.com>
1556 * aix-thread.c (aix_thread_detach): Update.
1557 * corelow.c (core_detach): Update.
1558 * darwin-nat.c (darwin_detach): Update.
1559 * dec-thread.c (dec_thread_detach): Update.
1560 * gnu-nat.c (gnu_detach): Update.
1561 * go32-nat.c (go32_detach): Update.
1562 * inf-ptrace.c (inf_ptrace_detach): Update.
1563 * inf-ttrace.c (inf_ttrace_detach): Update.
1564 * linux-fork.c (linux_fork_detach): Update.
1565 * linux-fork.h (linux_fork_detach): Update.
1566 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1567 local for const-correctness.
1568 * linux-thread-db.c (thread_db_detach): Update.
1569 * monitor.c (monitor_detach): Update.
1570 * nto-procfs.c (procfs_detach): Update.
1571 * procfs.c (procfs_detach): Update.
1572 * record.c (record_detach): Update.
1573 * record.h (record_detach): Update.
1574 * remote-m32r-sdi.c (m32r_detach): Update.
1575 * remote-mips.c (mips_detach): Update.
1576 * remote-sim.c (gdbsim_detach): Update.
1577 * remote.c (remote_detach_1, remote_detach)
1578 (extended_remote_detach): Update.
1579 * sol-thread.c (sol_thread_detach): Update.
1580 * target.c (target_detach): Make "args" const.
1581 (init_dummy_target): Update.
1582 * target.h (struct target_ops) <to_detach>: Make argument const.
1583 (target_detach): Likewise.
1584 * windows-nat.c (windows_detach): Update.
1586 2013-11-07 Doug Evans <dje@google.com>
1589 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1590 and align fields for PT_GNU_RELRO segments.
1592 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1595 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1597 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1599 * NEWS: Document Python temporary breakpoint support.
1600 * python/py-breakpoint.c (bppy_get_temporary): New function.
1601 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1602 to temporary if True.
1604 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1606 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1607 removed to allow analyzing unconditional branch instructions
1608 with PC-relative offsets of zero.
1610 2013-11-07 Yao Qi <yao@codesourcery.com>
1612 * mi/mi-cmd-var.c: Include "language.h".
1613 (mi_cmd_var_info_expression): Get language name from
1615 * varobj.c (varobj_language_string): Remove.
1616 (variable_language): Remove declaration.
1617 (languages): Remove.
1618 (varobj_get_language): Change the type of return value.
1619 (variable_language): Remove.
1620 * varobj.h (enum varobj_languages): Remove.
1621 (varobj_language_string): Remove declaration.
1622 (varobj_get_language): Update declaration.
1624 2013-11-07 Yao Qi <yao@codesourcery.com>
1626 * language.h (struct language_defn) <la_natural_name>: New
1628 * ada-lang.c (ada_language_defn): Initialize field
1630 * c-lang.c (c_language_defn): Likewise.
1631 (cplus_language_defn, asm_language_defn): Likewise.
1632 * d-lang.c (d_language_defn): Likewise.
1633 * f-lang.c (f_language_defn): Likewise.
1634 * go-lang.c (go_language_defn): Likewise.
1635 * jv-lang.c (java_language_defn): Likewise.
1636 * language.c (unknown_language_defn ): Likewise.
1637 (auto_language_defn): Likewise.
1638 * m2-lang.c (m2_language_defn): Likewise.
1639 * objc-lang.c (objc_language_defn): Likewise.
1640 * opencl-lang.c (opencl_language_defn): Likewise.
1641 * p-lang.c (pascal_language_defn): Likewise.
1643 2013-11-07 Yao Qi <yao@codesourcery.com>
1645 * language.c (language_str): Return const char *.
1646 (add_language): Add const to 'language_names'
1647 * language.h (struct language_defn) <la_name>: Add const.
1648 (language_str: Update declaration.
1650 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1652 * s390-linux-nat.c (s390_read_description): Consider the TE field
1653 in the HWCAP for determining 'have_regset_tdb'.
1655 2013-11-06 Will Newton <will.newton@linaro.org>
1658 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1659 values. (read_partial_die): Likewise.
1661 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1664 * top.c (command_line_input): Unify interactivity tests to use
1665 input_from_terminal_p.
1666 * event-top.c (command_line_handler): Likewise.
1668 2013-11-06 Yao Qi <yao@codesourcery.com>
1670 * Makefile.in (check-perf): New target.
1672 2013-11-05 Will Newton <will.newton@linaro.org>
1675 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1676 (arm_print_float_info): Likewise.
1678 2013-11-04 Anton Blanchard <anton@samba.org>
1680 * target.c (memory_xfer_partial): Cap write to 4KB.
1682 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1684 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1685 probe scan even when the arch provides no get_longjmp_target.
1687 2013-10-31 Pedro Alves <palves@redhat.com>
1689 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1690 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1691 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1692 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1693 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1694 <bpstat handling>: If the bpstat chain wants the signal to be
1695 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1698 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1700 * breakpoint.c (update_watchpoint): Update error message and add
1701 an additional error message.
1703 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1705 * s390-tdep.h: Rename to...
1706 * s390-linux-tdep.h: ...here.
1707 * s390-tdep.c: Rename to...
1708 * s390-linux-tdep.c: ...here. Adjust #include.
1709 * s390-nat.c: Rename to...
1710 * s390-linux-nat.c: ...here. Adjust #include.
1711 * config/s390/s390.mh: Rename to...
1712 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1714 * configure.host: Reflect host rename "s390" -> "linux".
1715 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1716 * Makefile.in (ALL_TARGET_OBS): Likewise.
1717 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1719 (ALLDEPFILES): Reflect rename of .c files.
1721 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1723 * s390-nat.c: Whitespace cleanup.
1724 * s390-tdep.c: Likewise.
1725 * s390-tdep.h: Remove empty line at end of file.
1727 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1729 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1732 2013-10-29 Tom Tromey <tromey@redhat.com>
1734 * utils.c (reg): Move undefinition...
1735 * gdb_curses.h: ... here. Update comment to mention AIX.
1737 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1739 * exec.h (add_target_sections_of_objfile): New declaration.
1740 * exec.c (add_target_sections_of_objfile): New function.
1741 * symfile.c (add_symbol_file_command): Update current target sections.
1742 (remove_symbol_file_command): New command.
1743 (symfile_free_objfile): New function.
1744 (_initialize_symfile): Register observer for free_objfile events.
1745 * NEWS: Add description of the remove-symbol-file command.
1746 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1747 * objfiles.c (free_objfile): Notify free_objfile.
1748 (is_addr_in_objfile): New function.
1749 * objfiles.h (is_addr_in_objfile): New declaration.
1750 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1751 events instead of solib_unloaded events.
1752 (_initialize_printcmd): Register observer for free_objfile instead
1753 of solib_unloaded notifications.
1754 * solib.c (remove_user_added_objfile): New function.
1755 (_initialize_symfile): Add remove-symbol-file.
1757 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1759 * infcmd.c (default_print_one_register_info): Use val_print to
1760 print all values even optimized out or unavailable ones. Don't
1761 try to print a raw form of optimized out or unavailable values.
1763 2013-10-29 Yao Qi <yao@codesourcery.com>
1765 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1766 parameter 'arg' instead of from program_space_data.
1767 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1768 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1769 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1770 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1771 * inflow.c (inflow_inferior_data_cleanup): Get data from
1772 parameter 'arg' instead of inferior_data.
1773 * registry.h: Add comments.
1775 2013-10-28 Pedro Alves <palves@redhat.com>
1777 * breakpoint.c (watchpoints_triggered)
1778 <!target_stopped_data_address>: Hardcode return 1.
1780 2013-10-28 Pedro Alves <palves@redhat.com>
1782 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1785 2013-10-28 Pedro Alves <palves@redhat.com>
1787 * infrun.c (process_event_stop_test): New function, factored out
1788 from handle_inferior_event.
1789 (handle_inferior_event): 'process_event_stop_test' is now a
1790 function instead of a goto label -- adjust.
1792 2013-10-28 Pedro Alves <palves@redhat.com>
1794 * infrun.c (handle_inferior_event): Move process_event_stop_test
1795 goto label to the else branch of the ecs->random_signal check,
1796 along with FRAME and GDBARCH re-fetching.
1798 2013-10-28 Pedro Alves <palves@redhat.com>
1800 * infrun.c (switch_back_to_stepped_thread): New function, factored
1801 out from handle_inferior_event.
1802 (handle_inferior_event): Adjust to call
1803 switch_back_to_stepped_thread. Call it also at the tail of the
1804 random signal handling, and return, instead of also handling
1805 random signals just before the stepping tests.
1807 2013-10-28 Pedro Alves <palves@redhat.com>
1809 * infrun.c (clear_stop_func): Delete.
1810 (handle_inferior_event): Don't call clear_stop_func and don't
1811 clear 'ecs->random_signal'.
1813 2013-10-27 Yao Qi <yao@codesourcery.com>
1815 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1816 (varobj_create, varobj_get_path_expr): Update.
1817 (varobj_value_has_mutated, varobj_update): Likewise.
1818 (create_child_with_value, new_root_variable): Likewise.
1819 (number_of_children, name_of_variable): Likewise.
1820 (value_of_child, my_value_of_variable): Likewise.
1821 (varobj_value_is_changeable_p): Likewise.
1823 2013-10-25 Yao Qi <yao@codesourcery.com>
1825 * language.h (struct lang_varobj_ops): Declare.
1826 (struct language_defn) <la_varobj_ops>: New field.
1827 * ada-lang.c: Include "varobj.h"
1828 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1830 * c-lang.c: Include "varobj.h"
1831 (c_language_defn): Initialize field 'la_varobj_ops' with
1833 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1835 (asm_language_defn): Initialize field 'la_varobj_ops' with
1837 (minimal_language_defn): Likewise.
1838 * d-lang.c (d_language_defn): Likewise.
1839 * f-lang.c (f_language_defn): Likewise.
1840 * go-lang.c (go_language_defn): Likewise.
1841 * m2-lang.c (m2_language_defn): Likewise.
1842 * objc-lang.c (objc_language_defn): Likewise.
1843 * opencl-lang.c (opencl_language_defn): Likewise.
1844 * p-lang.c (pascal_language_defn): Likewise.
1845 * language.c (unknown_language_defn): Likewise.
1846 (auto_language_defn): Likewise.
1847 (local_language_defn): Likewise.
1848 * jv-lang.c (java_language_defn): Initialize field
1849 'la_varobj_ops' with java_varobj_ops.
1850 * varobj.c (varobj_create): Update.
1851 * varobj.h (default_varobj_ops): Define macro.
1853 2013-10-25 Pedro Alves <palves@redhat.com>
1855 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1857 (cp_print_static_field): If the value is entirely optimized out,
1858 print <optimized out> here.
1859 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1861 * p-valprint.c (pascal_object_print_static_field): If the value is
1862 entirely optimized out, print <optimized out> here.
1863 * valops.c (do_search_struct_field)
1864 (value_struct_elt_for_reference): No longer handle a NULL static
1866 * value.c (value_static_field): Return an optimized out value
1869 2013-10-25 Yao Qi <yao@codesourcery.com>
1871 * remote.c (remote_traceframe_info): Return early if
1872 traceframe is not selected.
1874 2013-10-25 Yao Qi <yao@codesourcery.com>
1876 * tracepoint.c (traceframe_fun): Remove.
1877 (traceframe_sal): Remove.
1878 (set_traceframe_context): Add local variables.
1880 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1882 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1885 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1887 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1888 failure from register information collection.
1890 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1892 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1894 (linux_corefile_thread_callback): Update accordingly.
1895 (linux_make_corefile_notes): Likewise.
1897 2013-10-24 Pedro Alves <palves@redhat.com>
1899 * NEWS (New options): Mention set/show startup-with-shell.
1900 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1902 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1903 startup-with-shell'.
1904 (show_startup_with_shell): New function.
1905 (_initialize_fork_child): Register the set/show startup-with-shell
1907 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1908 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1909 * procfs.c (procfs_init_inferior): Remove comment.
1910 * infcmd.c (startup_with_shell): New global.
1911 * inferior.h (startup_with_shell): Declare global.
1912 (STARTUP_WITH_SHELL): Delete.
1913 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1915 2013-10-23 Pedro Alves <palves@redhat.com>
1917 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1918 * common/signals.c: Include "gdb_assert.h".
1919 (signals): New field 'symbol'.
1920 (SET): Use the 'symbol' parameter.
1921 (gdb_signal_to_symbol_string): New function.
1922 * infrun.c (handle_inferior_event) <random signal>: In debug
1923 output, print the random signal enum as string in addition to its
1925 * target/waitstatus.c (target_waitstatus_to_string): Print the
1926 signal's enum value as string instead of the (POSIX) signal name.
1928 2013-10-23 Gary Benson <gbenson@redhat.com>
1931 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1932 from 32 to 18. Adjusted fscanf format string accordingly.
1933 (Avoids leaving cmd unterminated.)
1934 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1935 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1936 that local_address and remote_address will not overflow.
1937 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1938 leaving dependencies unterminated. Parse size as "%u" to match
1941 2013-10-22 Pedro Alves <palves@redhat.com>
1943 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1944 set ecs->random signal.
1946 2013-10-22 Pedro Alves <palves@redhat.com>
1948 * infrun.c (keep_going): Update comments.
1950 2013-10-22 Pedro Alves <palves@redhat.com>
1952 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1953 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1955 2013-10-22 Pedro Alves <palves@redhat.com>
1957 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1959 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1960 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1961 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1962 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1963 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1964 (GDB_SIGNAL_LAST): Change description string.
1965 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1966 Adjust to signal renaming.
1967 * darwin-nat.c (darwin_decode_message): Likewise.
1969 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1971 * MAINTAINERS (Write After Approval): Add myself to the list.
1973 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1975 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1976 forced off, downgrade them to software watchpoints if possible,
1977 and error out if not possible.
1978 (watch_command_1): Move watchpoint type selection closer to
1979 watchpoint creation, and extend the comments.
1981 2013-10-18 Pedro Alves <palves@redhat.com>
1984 * infrun.c (handle_inferior_event): Keep going if we got a random
1985 signal we should not stop for, instead of falling through to the
1988 2013-10-18 Yao Qi <yao@codesourcery.com>
1990 * c-varobj.c (cplus_number_of_children): Fix indentation.
1992 2013-10-17 Tom Tromey <tromey@redhat.com>
1995 * printcmd.c (printcmd): Call gdb_flush.
1997 2013-10-17 Tom Tromey <tromey@redhat.com>
1999 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2000 (elf_locate_sections): Update.
2002 2013-10-17 Yao Qi <yao@codesourcery.com>
2004 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2005 * ada-varobj.c: Remove the include of ada-varobj.h.
2006 (ada_varobj_get_number_of_children): Declare.
2007 (ada_varobj_get_name_of_child): Make it static.
2008 (ada_varobj_get_path_expr_of_child): Likewise.
2009 (ada_varobj_get_value_of_child): Likewise.
2010 (ada_varobj_get_type_of_child): Likewise.
2011 (ada_varobj_get_value_of_array_variable): Likewise.
2012 * ada-varobj.h: Remove.
2014 2013-10-17 Yao Qi <yao@codesourcery.com>
2016 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2017 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2018 * ada-varobj.c: Include "varobj.h".
2019 (ada_number_of_children): New. Moved from varobj.c.
2020 (ada_name_of_variable, ada_name_of_child): Likewise.
2021 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2022 (ada_type_of_child, ada_value_of_variable): Likewise.
2023 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2024 (ada_varobj_ops): New.
2025 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2026 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2027 * gdbtypes.h (get_target_type): Declare.
2028 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2030 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2031 (ANONYMOUS_UNION_NAME): Likewise.
2032 (get_type, get_value_type, get_target_type): Remove declarations.
2033 (value_get_print_value, varobj_value_get_print_value): Likewise.
2034 (c_number_of_children, c_name_of_variable): Likewise.
2035 (c_name_of_child, c_path_expr_of_child): Likewise.
2036 (c_value_of_child, c_type_of_child): Likewise.
2037 (c_value_of_variable, cplus_number_of_children): Likewise.
2038 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2039 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2040 (cplus_value_of_child, cplus_type_of_child): Likewise.
2041 (cplus_value_of_variable, java_number_of_children): Likewise.
2042 (java_name_of_variable, java_name_of_child): Likewise.
2043 (java_path_expr_of_child, java_value_of_child): Likewise.
2044 (java_type_of_child, java_value_of_variable): Likewise.
2045 (ada_number_of_children, ada_name_of_variable): Likewise.
2046 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2047 (ada_value_of_child, ada_type_of_child): Likewise.
2048 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2049 (ada_value_has_mutated): Likewise.
2050 (struct language_specific): Move it to varobj.h.
2051 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2052 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2054 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2056 (is_anonymous_child): Move it to c-varobj.c and rename to
2057 varobj_is_anonymous_child. Caller update.
2058 (get_type): Move it to c-varobj.c.
2059 (get_value_type): Rename it varobj_get_value_type. Make it
2061 (get_target_type): Move it gdbtypes.c.
2062 (varobj_formatted_print_options): New function.
2063 (value_get_print_value): Rename it to
2064 varobj_value_get_print_value and make it extern.
2065 (varobj_value_is_changeable_p): Make it extern.
2066 (adjust_value_for_child_access): Move it to c-varobj.c.
2067 (default_value_is_changeable_p): Rename it to
2068 varobj_default_value_is_changeable_p. Make it extern.
2069 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2070 (c_name_of_child, c_path_expr_of_child): Likewise.
2071 (c_value_of_child, c_type_of_child): Likewise.
2072 (c_value_of_variable, cplus_number_of_children): Likewise.
2073 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2074 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2075 (cplus_value_of_child, cplus_type_of_child): Likewise.
2076 (cplus_value_of_variable): Likewise.
2077 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2078 (java_name_of_child, java_path_expr_of_child): Likewise.
2079 (java_value_of_child, java_type_of_child): Likewise.
2080 (java_value_of_variable): Likewise.
2081 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2082 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2083 (ada_value_of_child, ada_type_of_child): Likewise.
2084 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2085 (ada_value_has_mutated): Likewise.
2086 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2087 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2088 (c_varobj_ops, cplus_varobj_ops): Declare.
2089 (java_varobj_ops, ada_varobj_ops): Declare.
2090 (varobj_default_value_is_changeable_p): Declare.
2091 (varobj_value_is_changeable_p): Declare.
2092 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2093 (varobj_get_path_expr_parent): Declare.
2094 (varobj_value_get_print_value): Declare.
2095 (varobj_formatted_print_options): Declare.
2096 (varobj_restrict_range): Declare.
2098 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2100 * target/waitstatus.h (target_waitkind): Remove spurious
2101 character from the comments.
2103 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2105 * gdbarch.sh (get_longjmp_target): Add method documentation.
2106 * gdbarch.h: Regenerate.
2108 2013-10-16 Tom Tromey <tromey@redhat.com>
2110 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2113 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2115 * gcore.in: Call GDB using the full path to the gcore script.
2116 Error out if the GDB binary is not found.
2118 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2121 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2124 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2127 * target.c (target_disable_btrace): Fix invalid return value for
2129 (target_teardown_btrace): Likewise.
2131 2013-10-14 Yao Qi <yao@codesourcery.com>
2133 * varobj.c (struct varobj): Move most of the fields to
2135 (struct varobj_dynamic): New struct.
2136 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2137 (varobj_has_more): Likewise.
2138 (dynamic_varobj_has_child_method): Likewise.
2139 (update_dynamic_varobj_children): Likewise.
2140 (varobj_get_num_children): Likewise.
2141 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2142 (install_new_value_visualizer): Likewise.
2143 (install_new_value_visualizer, install_new_value): Likewise.
2144 (varobj_update, new_variable, free_variable): Likewise.
2145 (my_value_of_variable, value_get_print_value): Likewise.
2146 (install_visualizer): Change the type of parameter 'var' to
2147 'struct varobjd_dynamic *'. Callers update.
2148 * varobj.h (struct varobj): Moved from varobj.c.
2149 (struct varobj) <dynamic>: New field.
2151 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2153 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2154 as the preferred name of r30.
2155 * nios2-linux-tdep.c (reg_offsets): Likewise.
2156 * features/nios2-cpu.xml: Likewise.
2157 * features/nios2-linux.c: Regenerated.
2158 * features/nios2.c: Regenerated.
2159 * regformats/nios2-linux.dat: Regenerated.
2161 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2163 Canonicalize directories for EXEC_FILENAME.
2164 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2166 * utils.c (gdb_realpath_keepfile): New function.
2167 * utils.h (gdb_realpath_keepfile): New declaration.
2169 2013-10-11 Doug Evans <dje@google.com>
2171 * Makefile.in (GDBFLAGS): New variable.
2174 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2176 * NEWS: Add entry documenting the new "-catch-assert" and
2177 "-catch-exception" GDB/MI commands.
2179 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2181 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2183 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2184 "enabled". Set B->ENABLE_STATE accordingly.
2185 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2187 (create_ada_exception_catchpoint): Add declaration.
2188 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2189 (create_ada_exception_catchpoint): Make non-static. Add new
2190 parameter "disabled". Use it in call to
2191 init_ada_exception_breakpoint.
2192 (catch_ada_exception_command): Add parameter "enabled" in call
2193 to create_ada_exception_catchpoint.
2194 (catch_assert_command): Likewise.
2196 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2198 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2199 "catch-exception" commands.
2200 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2201 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2203 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2205 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2206 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2207 of all its enumerates with "ada_". Update the rest of this
2210 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2212 * ada-lang.c (ada_decode_exception_location): Delete.
2213 (create_ada_exception_catchpoint): Remove arguments "sal",
2214 "addr_string" and "ops". Add argument "ex_kind" instead.
2215 Adjust implementation accordingly, calling ada_exception_sal
2216 to get the entities it no longer gets passed as arguments.
2217 Document the function's arguments.
2218 (catch_ada_exception_command): Use catch_ada_exception_command_split
2219 instead of ada_decode_exception_location, and update call to
2220 create_ada_exception_catchpoint.
2221 (catch_ada_assert_command_split): Renames
2222 ada_decode_assert_location. Remove parameters "addr_string" and
2223 "ops", and now returns void. Adjust implementation accordingly.
2224 Update the function documentation.
2225 (catch_assert_command): Use catch_ada_assert_command_split
2226 instead of ada_decode_assert_location. Update call to
2227 create_ada_exception_catchpoint.
2229 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2231 * utils.h (perror_warning_with_name): Add declaration.
2232 * utils.c (perror_warning_with_name): New function.
2233 * cli/cli-cmds.c (source_script_with_search): Add call to
2234 perror_warning_with_name if from_tty is nul.
2236 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2238 * utils.c (perror_string): New function, extracted out of
2239 throw_perror_with_name.
2240 (throw_perror_with_name): Rework to use perror_string.
2242 2013-10-11 Yao Qi <yao@codesourcery.com>
2244 * remote.c (discard_pending_stop_replies_in_queue): Update
2246 (struct stop_reply) <rs>: New field.
2247 (remove_stop_reply_of_remote_state): New function.
2248 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2249 Callers update. Pass remove_stop_reply_of_remote_state to
2251 (remote_parse_stop_reply): Initialize field 'rs'.
2253 2013-10-10 Will Newton <will.newton@linaro.org>
2255 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2258 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2260 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2261 serial_baud_show_cmd.
2262 (_initialize_cli_cmds): Delete the code creating the
2263 "set/show remotebaud" commands.
2264 * serial.c (baud_rate): Move here from top.c.
2265 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2266 (_initialize_serial): Create "set/show serial baud" commands.
2267 Add "set/show remotebaud" command aliases.
2268 * top.c (baud_rate): Moved to serial.c.
2269 * NEWS: Document the new "set/show serial baud" commands,
2270 replacing "set/show remotebaud".
2272 2013-10-09 Pedro Alves <palves@redhat.com>
2274 * breakpoint.c (insert_bp_location): Use memory_error_message to
2275 build the memory error string.
2276 * c-lang.c: Include "gdbcore.h".
2277 (c_get_string): Use memory_error to throw error.
2278 (target_xfer_memory_error): Delete.
2279 (memory_error_message): New, factored out from
2280 target_xfer_memory_error.
2281 (memory_error): Change parameter type to target_xfer_error.
2283 (read_memory): Use memory_error instead of
2284 target_xfer_memory_error.
2285 * gdbcore.h: Include "target.h".
2286 (memory_error): Change parameter type to target_xfer_error.
2287 (memory_error_message): Declare function.
2288 * target.c (target_read_memory, target_read_stack)
2289 (target_write_memory, target_write_raw_memory): Return
2290 TARGET_XFER_E_IO on error. Adjust comments.
2291 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2293 * target.h (target_read, target_insert_breakpoint)
2294 (target_remove_breakpoint): Adjust comments.
2295 * valprint.c (partial_memory_read): Rename parameter, and adjust
2297 (val_print_string): Use memory_error_message to build the memory
2300 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2303 result variable. Rename variable fopen_e_ever_failed to
2304 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2306 2013-10-09 Pedro Alves <palves@redhat.com>
2308 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2309 (monitor_write_memory_longlongs, monitor_write_memory_block):
2310 Constify 'myaddr' parameter.
2311 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2313 (monitor_xfer_partial): New function.
2314 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2315 hook. Install a to_xfer_partial hook.
2317 2013-10-09 Tom Tromey <tromey@redhat.com>
2319 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2320 bfd_get_alt_debug_link_info.
2322 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2324 New flag OBJF_NOT_FILENAME.
2325 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2326 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2328 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2329 symbol_file_add_from_bfd.
2330 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2332 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2334 * objfiles.h (OBJF_NOT_FILENAME): New.
2336 2013-10-08 Tom Tromey <tromey@redhat.com>
2338 * Makefile.in (SFILES): Add build-id.c.
2339 (HFILES_NO_SRCDIR): Add build-id.h.
2340 * build-id.c: New file, largely from elfread.c. Modified
2342 * build-id.h: New file.
2343 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2344 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2345 Search for dwz file using build-id.
2346 * elfread.c (build_id_bfd_get, build_id_verify)
2347 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2349 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2351 * ada-lang.c (compare_names_with_case): Renamed from
2352 compare_names, adding a new parameter "casing" and its handling.
2353 New function documentation.
2354 (compare_names): New function, implemented using
2355 compare_names_with_case.
2357 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2359 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2361 2013-10-07 Tom Tromey <tromey@redhat.com>
2363 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2364 demangled_names_hash.
2365 (free_objfile): Don't delete the demangled_names_hash.
2366 * objfiles.h (struct objfile_per_bfd_storage)
2367 <demangled_names_hash>: New field.
2368 (struct objfile) <demangled_names_hash>: Move to
2369 objfile_per_bfd_storage.
2370 * symfile.c (reread_symbols): Don't delete the
2371 demangled_names_hash.
2372 * symtab.c (create_demangled_names_hash): Update.
2373 (symbol_set_names): Update.
2375 2013-10-07 Tom Tromey <tromey@redhat.com>
2377 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2378 needs_relocations>: New fields.
2379 (gdb_bfd_requires_relocations): New function.
2380 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2381 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2382 the BFD needs relocations applied.
2384 2013-10-07 Pedro Alves <palves@redhat.com>
2386 PR breakpoints/11568
2387 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2388 the thread list" instead of "gone".
2390 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2392 * NEWS: Mention new convenience variable $_exitsignal.
2393 * corelow.c (core_open): Reset exit convenience variables. Set
2394 $_exitsignal to the uncaught signal which generated the corefile.
2395 * infrun.c (handle_inferior_event): Reset exit convenience
2396 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2397 (clear_exit_convenience_vars): New function.
2398 * inferior.h (clear_exit_convenience_vars): New prototype.
2400 2013-10-06 Yao Qi <yao@codesourcery.com>
2402 * varobj.h: Add comments to enum varobj_languages.
2404 2013-10-04 Doug Evans <dje@google.com>
2406 Add support for DWP file format version 2.
2407 * NEWS: Mention support for DWP file format version 2.
2408 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2409 union of asection, containing_section. New fields virtual_offset
2410 and is_virtual. Change type of readin filed from int to char.
2411 (dwo_sections, dwo_file): Tweak comments.
2412 (dwp_v2_section_ids): New enum.
2413 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2415 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2417 (virtual_v2_dwo_sections): New struct.
2418 (dwp_hash_table): New fields version, nr_columns. Change type of
2419 section_pool field to a union.
2420 (dwp_file): New field version.
2421 (dwarf2_has_info): Check for virtual sections.
2422 (get_containing_section): New function.
2423 (get_section_bfd_owner, get_section_bfd_section): Call it.
2424 (dwarf2_locate_sections): Update.
2425 (dwarf2_section_empty_p): Update.
2426 (dwarf2_read_section): Handle virtual sections.
2427 (locate_dwz_sections): Update.
2428 (create_dwp_hash_table): Document and handle V2 format.
2429 (locate_v1_virtual_dwo_sections): Renamed from
2430 locate_virtual_dwo_sections and update. All callers updated.
2431 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2432 Delete arg htab. Rename arg section_index to unit_index.
2433 All callers updated.
2434 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2436 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2437 (lookup_dwo_unit_in_dwp): Add V2 support.
2438 (dwarf2_locate_dwo_sections): Update.
2439 (dwarf2_locate_common_dwp_sections): Renamed from
2440 dwarf2_locate_dwp_sections and update. All callers updated.
2441 (dwarf2_locate_v2_dwp_sections): New function.
2442 (open_and_init_dwp_file): Add V2 support.
2443 (read_str_index): New locals str_section, str_offsets_section.
2445 2013-10-04 Pedro Alves <palves@redhat.com>
2447 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2448 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2449 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2450 describing comments with references to ptid.h.
2451 * common/ptid.h: Remove intro description of constructors,
2452 accessors and predicates.
2453 (struct ptid): Reformat.
2454 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2455 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2456 describing comments.
2458 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2460 * aix-thread.c (sync_threadlists): Add missing ')' in call
2463 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2465 * procfs.c (procfs_init_inferior): Fix typo causing the build
2468 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2470 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2472 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2474 * mi/mi-main.c (run_one_inferior): Add function description.
2475 Make ARG a pointer to an integer whose value determines whether
2476 we should "run" or "start" the program.
2477 (mi_cmd_exec_run): Add handling of the "--start" option.
2478 Reject all other command-line options.
2479 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2481 2013-10-04 Yao Qi <yao@codesourcery.com>
2483 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2484 (struct notif_client) <pending_event>: Moved
2485 to struct remote_notif_state.
2487 (struct remote_notif_state) <pending_event>: New field.
2488 (notif_event_xfree): Declare.
2489 * remote-notif.c (handle_notification): Adjust.
2490 (notif_event_xfree): New function.
2491 (do_notif_event_xfree): Call notif_event_xfree.
2492 (remote_notif_state_xfree): Call notif_event_xfree to free
2493 each element in field pending_event.
2494 * remote.c (discard_pending_stop_replies): Remove declaration.
2495 (discard_pending_stop_replies_in_queue): Declare.
2496 (remote_close): Call discard_pending_stop_replies_in_queue
2497 instead of discard_pending_stop_replies.
2498 (remote_start_remote): Adjust.
2499 (stop_reply_xfree): Call notif_event_xfree.
2500 (notif_client_stop): Adjust initialization.
2501 (remote_notif_remove_all): Rename it to ...
2502 (remove_stop_reply_for_inferior): ... this. Update comments.
2503 Don't check INF is NULL.
2504 (discard_pending_stop_replies): Return early if notif_state is
2505 NULL. Adjust. Don't check INF is NULL.
2506 (remote_notif_get_pending_events): Adjust.
2507 (discard_pending_stop_replies_in_queue): New function.
2508 (remote_wait_ns): Likewise.
2510 2013-10-04 Yao Qi <yao@codesourcery.com>
2512 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2513 (notif_queue): Remove.
2514 (remote_notif_process): Add one parameter 'notif_queue'.
2515 Update comments. Callers update.
2516 (remote_async_get_pending_events_token): Remove.
2517 (remote_notif_register_async_event_handler): Remove.
2518 (remote_notif_unregister_async_event_handler): Remove.
2519 (handle_notification): Add parameter 'notif_queue'. Update
2520 comments. Callers update.
2521 (notif_xfree): Remove.
2522 (remote_notif_state_allocate): New function.
2523 (remote_notif_state_xfree): New function.
2524 (_initialize_notif): Remove code to allocate queue.
2525 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2526 (struct remote_notif_state): New.
2527 (handle_notification): Update declaration.
2528 (remote_notif_process): Likewise.
2529 (remote_notif_register_async_event_handler): Remove.
2530 (remote_notif_unregister_async_event_handler): Remove.
2531 (remote_notif_state_allocate): Declare.
2532 (remote_notif_state_xfree): Declare.
2533 * remote.c (struct remote_state) <notif_state>: New field.
2534 (remote_close): Don't call
2535 remote_notif_unregister_async_event_handler. Call
2536 remote_notif_state_xfree.
2537 (remote_open_1): Don't call
2538 remote_notif_register_async_event_handler. Call
2539 remote_notif_state_allocate.
2541 2013-10-04 Yao Qi <yao@codesourcery.com>
2543 * varobj.c (create_child_with_value): Remove 'const' from the
2544 type of parameter 'name'.
2545 (varobj_add_child): Likewise.
2546 (install_dynamic_child): Remove 'const' from the type of
2548 (varobj_add_child): Likewise.
2549 (create_child_with_value): Likewise. Update comments. Don't
2551 (update_dynamic_varobj_children): Duplicate 'name'
2552 and pass it to install_dynamic_child.
2554 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2556 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2557 conversion logic to occur after PyLong_Check. Comment on order
2558 change significance.
2559 * python/py-arch.c (archpy_disassemble): Comment on order of
2560 conversion for integers and longs.
2562 2013-10-03 Pedro Alves <palves@redhat.com>
2564 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2565 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2566 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2567 PTRACE_O_TRACEFORK is not supported.
2568 (linux_test_for_tracesysgood): New function.
2569 (linux_test_for_tracefork): New function, factored out from
2570 linux_check_ptrace_features, and also don't kill child_pid here.
2572 2013-10-03 Tristan Gingold <gingold@adacore.com>
2574 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2575 Remove verbose error reporting. Use detected state to
2576 thread_set_state call.
2577 (i386_darwin_dr_get): Fix return type. Remove verbose error
2579 Remove trailing spaces.
2581 2013-10-02 Pedro Alves <palves@redhat.com>
2583 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2584 val_print_optimized_out.
2585 * jv-valprint.c (java_print_value_fields): Likewise.
2586 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2587 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2588 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2589 new optimized out value.
2590 * findvar.c (address_from_register): Likewise.
2591 * frame.c (put_frame_register): Tweak error string to say the
2592 register was not saved, rather than optimized out.
2593 * infcmd.c (default_print_one_register_info): Adjust call to
2594 val_print_optimized_out. Use value_of_register instead of
2595 get_frame_register_value.
2596 * mi/mi-main.c (output_register): Use value_of_register instead of
2597 get_frame_register_value.
2598 * valprint.c (valprint_check_validity): Likewise.
2599 (val_print_optimized_out): New value parameter. If the value is
2600 lval_register, print <not saved> instead.
2601 (value_check_printable, val_print_scalar_formatted): Adjust calls
2602 to val_print_optimized_out.
2603 * valprint.h (val_print_optimized_out): New value parameter.
2604 * value.c (struct value) <optimized_out>: Extend comment.
2605 (error_value_optimized_out): New function.
2606 (require_not_optimized_out): Use it. Use a different string for
2607 lval_register values.
2608 * value.h (error_value_optimized_out): New declaration.
2609 * NEWS: Mention <not saved>.
2611 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2613 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2614 strcmp to compare two symtab filenames.
2616 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2618 * symtab.c (search_symbols_equal): Delete.
2619 (sort_search_symbols_remove_dups): Replace call to
2620 search_symbols_equal by call to compare_search_syms,
2621 adjusting as necessary.
2623 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2626 * python/python.c: Document gdb.execute command in Python help.
2628 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2630 * python/py-frame.c (frame_info_to_frame_object): Use
2631 gdbpy_convert_exception. Clean up Python object on failure.
2633 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2635 * python/lib/gdb/command/frame_filters.py
2636 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2637 (ShowFrameFilterPriority.invoke): Ditto.
2639 2013-10-01 Keith Seitz <keiths@redhat.com>
2641 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2642 (parse_linespec): Make 'argptr' const.
2643 Remove temporary cast of 'argptr' to const char **.
2644 (decode_line_full): Pass const pointer to parse_linespec.
2645 (decode_line_1): Likewise.
2646 (decode_objc): Make local variable 'new_argptr' const.
2647 (find_function_symbols): Remove temporary cast to char *
2649 * objc-lang.c (find_imps): Make argument 'method' const.
2651 * objc-lang.h (find_imps): Likewise.
2653 2013-10-01 Keith Seitz <keiths@redhat.com>
2655 * completer.c (skip_quoted_chars): Make all arguments const.
2657 (skip_quoted): Likewise.
2658 * completer.h (skip_quoted_chars): Likewise.
2659 (skip_quoted): Likewise.
2660 * defs.h (skip_quoted): Remove duplicate declaration.
2661 * jv-exp.y: Include completer.h.
2662 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2663 * p-exp.y: Include completer.h.
2665 2013-10-01 Keith Seitz <keiths@redhat.com>
2667 * c-exp.y (parse_number): Make first argument const.
2668 Make a copy of the input to manipulate.
2669 (c_parse_escape): Make first argument const.
2670 Make local variable 'tokptr' const.
2671 (parse_string_or_char): Make first two arguments const.
2672 (macro_original_text): Make const.
2673 (lex_one_token): Make local variable 'tokstart' const.
2674 Likewise for local variables named 'p'.
2675 Cast away const for struct stoken (temporary).
2676 * c-lang.h (c_parse_escpae): Make first argument const.
2677 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2679 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2681 * f-exp.y (parse_number): Make first argument const.
2682 (match_string_literal): Make local variable 'tokstart'
2684 (yylex): Make local variable 'p' const.
2685 Cast away const for struct stoken (temporary).
2686 * go-exp.y (parse_number): Make first argument const.
2687 (parse_string_or_char): Likewise.
2688 Make local variable 'tokstart' const.
2689 (lex_one_token): Likewise for numerous locals called 'p'.
2690 Cast away const for struct stoken (temporary).
2691 * jv-exp.y (parse_number): Make first argument const.
2692 Make local variables 'tokstart' and 'tokptr' const.
2693 Cast away const for call to skip_quoted (temporary).
2694 (yylex): Make local variable 'p' const.
2695 Cast away const for struct stoken (temporary).
2696 * m2-exp.y (parse_number): Make local variable 'p' const.
2697 (yylex): Likewise for 'tokstart'.
2698 Cast away const for struct stoken (temporary).
2699 Make local variable 'p' const.
2700 * macroexp.c (get_character_constant): Pass a const string
2702 (get_string_literal): Likewise.
2703 (macro_expand_next): Make first argument const.
2704 Cast away const for init_shared_buffer.
2705 * macroexp.h (macro_expand_next): Make first argument const.
2706 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2707 Pass a const string to c_parse_escape.
2708 Make local variables 'p' and 'namestart' const.
2709 * parse.c (lexptr): Make const.
2710 (prev_lexptr): Likewise.
2711 (find_template_name_end): Return const.
2712 Make argument const, too.
2713 (parse_exp_in_context): Make first argument const.
2714 Remove the entire const_hack.
2715 (parse_exp_in_context_1): Make first argument const.
2716 * parser-defs.h (find_template_name_end): Return const.
2717 Make argument const, too.
2718 (lexptr): Make const.
2719 (prev_lexptr): Likewise.
2720 * utils.c (parse_escape): Make second argument const.
2721 * utils.h (parse_escape): Likewise.
2723 2013-10-01 Keith Seitz <keiths@redhat.com>
2725 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2727 (block_lookup): Make 'raw_name' and 'name' const.
2728 * ada-lex.l (processString): Update for struct stoken.ptr.
2729 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2730 (operator_stoken): Likewise.
2731 (lex_one_token): Remove temporary cast to char * for
2733 * f-exp.y (yylex): Likewise.
2734 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2735 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2736 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2738 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2739 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2740 * linespec.c (struct ls_parser): Make 'stream' const.
2741 (find_parameter_list_end): Make argument 'input' and local
2743 (linespec_lexer_lex_string): Make local variables 'start' and
2745 Use skip_spaces_const instead of skip_spaces.
2746 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2748 (parse_linespec): Temporarily cast 'argptr' to const for
2749 'parser->lexer.stream'.
2750 * m2-exp.y (yylex): Remove temporary cast to char * for
2752 * objc-lang.c (add_msglist): Make local variable 'p' const.
2753 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2754 (exp : STRING): Make 'sp' const.
2755 (parse_number): Make argument 'p' const.
2756 * parser-defs.h (struct stoken): Make 'ptr' const.
2758 2013-10-01 Doug Evans <dje@google.com>
2760 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2762 2013-10-01 Yao Qi <yao@codesourcery.com>
2764 * varobj.c (c_value_of_root): Remove declaration.
2765 (cplus_value_of_root, java_value_of_root): Likewise.
2766 (ada_value_of_root): Likewise.
2767 (struct language_specific) <value_of_root>: Remove.
2768 (languages): Update initialization.
2769 (check_scope): Move earlier.
2770 (c_value_of_root): Move earlier and rename to ...
2771 (value_of_root_1): ... this.
2772 (value_of_root): Caller update.
2773 (cplus_value_of_root, java_value_of_root): Remove.
2774 (ada_value_of_root): Remove.
2776 2013-10-01 Yao Qi <yao@codesourcery.com>
2778 * varobj.c (varobj_format_string): Remove "unknown".
2779 (languages): Remove the first element.
2780 * varobj.h (enum varobj_languages): Remove vlang_c.
2782 2013-10-01 Yao Qi <yao@codesourcery.com>
2784 * varobj.c (struct language_specific) <language>: Remove.
2785 (languages): Update the initialization.
2787 2013-10-01 Yao Qi <yao@codesourcery.com>
2789 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2790 "solib-target.h". Include "windows-tdep.h".
2791 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2792 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2793 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2794 windows-tdep.o to gdb_target_obs.
2796 2013-10-01 Yao Qi <yao@codesourcery.com>
2798 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2800 (amd64_windows_init_abi): Don't call set_solib_ops and
2801 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2802 windows_init_abi instead.
2803 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2805 (i386_cygwin_init_abi): Don't call set_solib_ops,
2806 set_gdbarch_has_dos_based_file_system and
2807 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2808 windows_init_abi instead.
2809 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2810 (windows_init_abi): New function.
2811 (windows_iterate_over_objfiles_in_search_order): Make it
2813 * windows-tdep.h (windows_init_abi): Declare.
2814 (windows_iterate_over_objfiles_in_search_order): Remove
2817 2013-10-01 Jerome Guitton <guitton@adacore.com>
2819 Checked in by Joel Brobecker <brobecker@adacore.com>
2820 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2821 incomplete dictionnary instead of None in case of missing
2822 environment variables.
2823 (elinos_init): in case of an incomplete environment, best
2824 effort to load system libraries instead of abort.
2826 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2828 * ada-lang.c (ada_has_this_exception_support): Ignore
2829 mst_solib_trampoline minimal symbols.
2831 2013-09-30 Tristan Gingold <gingold@adacore.com>
2833 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2834 hardware watchpoint.
2835 (i386_darwin_dr_set): Support 32 and 64 bit states.
2836 (i386_darwin_dr_get): Likewise.
2837 (i386_darwin_dr_set_control): Make static.
2838 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2839 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2841 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2843 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2844 Replace TIDGET with ptid_get_lwp.
2845 Replace GET_LWP with ptid_get_lwp.
2846 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2847 Replace BUILD_THREAD with ptid_build.
2848 Replace BUILD_LWP with ptid_build.
2849 Replace PIDGET with ptid_get_pid.
2850 Replace TIDGET with ptid_get_lwp.
2851 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2852 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2853 Replace TIDGET with ptid_get_lwp.
2854 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2855 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2856 Replace TIDGET with ptid_get_lwp.
2857 Replace GET_LWP with ptid_get_lwp.
2858 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2860 * breakpoint.c: Likewise.
2861 * common/ptid.c (ptid_is_pid): Condense check for
2862 null_ptid and minus_one_ptid.
2863 (ptid_lwp_p): New function.
2864 (ptid_tid_p): New function.
2865 * common/ptid.h: Update comments for accessors.
2866 (ptid_lwp_p): New prototype.
2867 (ptid_tid_p): New prototype.
2868 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2869 * gcore.c: Replace PIDGET with ptid_get_pid.
2870 * gdbthread.h: Likewise.
2871 * gnu-nat.c: Likewise.
2872 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2873 Replace TIDGET with ptid_get_lwp.
2874 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2875 * hppanbsd-nat.c: Likewise.
2876 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2877 Replace TIDGET with ptid_get_lwp.
2878 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2879 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2880 * infcmd.c: Likewise.
2881 * inferior.h: Likewise.
2882 * inflow.c: Likewise.
2883 * infrun.c: Likewise.
2884 * linux-fork.c: Likewise.
2885 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2886 Replace GET_PID with ptid_get_pid.
2887 Replace is_lwp with ptid_lwp_p.
2888 Replace GET_LWP with ptid_get_lwp.
2889 Replace BUILD_LWP with ptid_build.
2891 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2893 * common/linux-btrace.c: Move sys/syscall.h out of the
2894 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2895 Also check for SYS_perf_event_open before attempting to buid.
2897 2013-09-27 Doug Evans <dje@google.com>
2899 * dwarf2read.c (dwarf2_section_info): Add comment.
2900 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2902 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2903 (dwarf2_read_section): Delete unused local "header". Add section
2904 name to error message.
2905 (create_dwo_in_dwp): Tweak comment.
2906 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2908 * dwarf2read.c (die_reader_specs): Tweak comment.
2909 (get_section_bfd_owner, get_section_bfd_section): New functions.
2910 (get_section_name, get_section_file_name): New functions.
2911 (get_section_id, get_section_flags): New functions.
2912 (*): Use new functions to access section fields.
2914 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2915 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2916 arg "htab". All callers updated.
2917 (create_debug_types_hash_table): Remove redundant copy of
2919 (create_dwo_in_dwp): Tweak comments.
2920 (read_str_index): Tweak comment. Record dwarf form name in static
2923 2013-09-27 Pedro Alves <palves@redhat.com>
2925 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2926 (remote_filename_p): Add comment.
2927 * remote.c (remote_filename_p): Adjust to use
2928 REMOTE_SYSROOT_PREFIX.
2929 * solib.c (solib_find): When deciding whether we need to add a
2930 directory separator, check whether the sysroot is "remote:"
2931 instead of checking whether the patch has a drive spec. Add
2934 2013-09-27 Pedro Alves <palves@redhat.com>
2936 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2938 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2941 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2943 Fix set debug frame output.
2944 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2945 SENTINEL_FRAME entry lower to match enum frame_type order.
2947 2013-09-26 Pierre Muller <muller@sourceware.org>
2949 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2950 AMD64_R15_REGNUM when a register index is expected.
2951 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2952 Substitute in array.
2953 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2954 (amd64_push_arguments): Substitute in integer_regnum array.
2956 2013-09-25 Doug Evans <dje@google.com>
2958 * objfiles.c (allocate_objfile): Move comment to better place.
2960 New option "set debug symfile on".
2961 * NEWS: Mention "set debug symfile".
2962 * Makefile.in (SFILES): Add symfile-debug.c.
2963 (COMMON_OBS): Add symfile-debug.o.
2964 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2965 objfile's symbol functions.
2966 * objfiles.h (objfile_set_sym_fns): Declare.
2967 * symfile-debug.c: New file.
2968 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2969 objfile's symbol functions.
2970 (reread_symbols): Ditto.
2972 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2974 (add_symtab_fns): Update prototype.
2975 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2976 (registered_sym_fns): ... this.
2977 (symtab_fns): Update.
2978 (add_symtab_fns): New arg "flavour". All callers updated.
2979 (find_sym_fns): Rewrite to use new sym_fns registry.
2981 * symfile.h (struct sym_fns): Add "objfile" argument to
2982 sym_read_linetable. All uses updated.
2984 * symtab.c (domain_name, search_domain_name): New functions.
2985 * symtab.h (domain_name, search_domain_name): Declare.
2987 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2988 map_matching_symbols so objfile is first. All uses updated.
2989 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2990 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2992 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2995 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2998 2013-09-24 Doug Evans <dje@google.com>
3000 * objfiles.c (free_objfile): Move comment.
3002 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3004 * ada-exp.y (string_to_operator): Delete.
3005 (dummy_string_to_ada_operator): Delete.
3007 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3010 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3012 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3013 call_dummy_integer_regs, and classify.
3014 * amd64-tdep.h (amd64_classify): Add declaration.
3015 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3016 (amd64_reg_class): Delete, moved to i386-tdep.h.
3017 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3018 Replace call to amd64_classify by call to tdep->classify.
3019 (amd64_push_arguments): Get the list of registers to use for
3020 passing integer parameters from the gdbarch tdep structure,
3021 rather than using a hardcoded one. Replace calls to amd64_classify
3022 by calls to tdep->classify.
3023 (amd64_push_dummy_call): Get the register number used for
3024 the "hidden" argument from tdep->call_dummy_integer_regs.
3025 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3026 and tdep->call_dummy_integer_regs. Set tdep->classify.
3028 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3031 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3032 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3033 where tdep->memory_args_by_pointer is non-zero.
3035 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3038 * i386-tdep.h (struct gdbarch_tdep): Add new field
3039 integer_param_regs_saved_in_caller_frame.
3040 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3041 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3043 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3045 * amd64-windows-tdep.c: #include "value.h"
3046 (amd64_windows_classify): Delete.
3047 (amd64_windows_passed_by_integer_register)
3048 (amd64_windows_passed_by_xmm_register)
3049 (amd64_windows_passed_by_pointer)
3050 (amd64_windows_adjust_args_passed_by_pointer)
3051 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3052 (amd64_windows_push_dummy_call): New functions.
3053 (amd64_windows_init_abi): Remove setting of
3054 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3055 tdep->classify, tdep->memory_args_by_pointer and
3056 tdep->integer_param_regs_saved_in_caller_frame.
3057 Add call to set_gdbarch_push_dummy_call.
3059 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3061 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3062 objfile->original_name.
3064 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3066 Pass down original filename for objfile.
3067 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3068 * elfread.c (elf_symfile_read): Likewise.
3069 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3070 longer set ORIGINAL_NAME.
3071 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3072 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3073 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3074 symbol_file_add_from_bfd call.
3075 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3076 (macho_check_dsym): Add parameter filenamep. Change function comment.
3078 (macho_symfile_read): New variable dsym_filename. Update
3079 macho_check_dsym call. Use it for symbol_file_add_separate.
3080 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3081 it. Use it for objfile->original_name.
3082 (objfile_name): Return OBFD's filename, if available.
3083 * objfiles.h (allocate_objfile): Add new parameter name.
3084 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3085 * symfile-mem.c (symbol_file_add_from_memory): Update
3086 symbol_file_add_from_bfd call.
3087 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3089 (symbol_file_add_with_addrs): New parameter name, add function comment
3090 for it. Remove variable name. Update allocate_objfile call.
3091 (symbol_file_add_separate): New parameter name, add function comment
3092 for it. Update symbol_file_add_with_addrs call.
3093 (symbol_file_add_from_bfd): New parameter name. Update
3094 symbol_file_add_with_addrs call.
3095 (symbol_file_add): Update symbol_file_add_from_bfd call.
3096 (reread_symbols): New variable original_name. Save
3097 objfile->original_name by it.
3098 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3101 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Code cleanup: Add objfile_name accessor function.
3104 * ada-lang.c (is_known_support_routine): Use objfile_name.
3105 * auto-load.c (source_gdb_script_for_objfile)
3106 (auto_load_objfile_script): Likewise.
3107 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3108 * dbxread.c (dbx_symfile_read): Likewise.
3109 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3110 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3111 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3112 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3113 (lookup_dwp_signatured_type, lookup_dwo_unit)
3114 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3115 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3116 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3117 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3118 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3119 (read_subrange_type, load_partial_dies, read_partial_die)
3120 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3121 (die_containing_type, build_error_marker_type, lookup_die_type)
3122 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3123 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3124 (get_DW_AT_signature_type, write_psymtabs_to_index)
3125 (save_gdb_index_command): Likewise.
3126 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3128 * expprint.c (dump_subexp_body_standard): Likewise.
3129 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3130 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3132 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3133 obj_name, use objfile_name for it, use the variable.
3134 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3136 * machoread.c (macho_symtab_read, macho_check_dsym)
3137 (macho_symfile_relocate): Likewise.
3138 * maint.c (maintenance_translate_address): Likewise.
3139 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3140 * minsyms.c (install_minimal_symbols): Likewise.
3141 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3143 (filter_overlapping_sections): Use objfile_name.
3144 (objfile_name): New function.
3145 * objfiles.h (struct objfile): Rename field name to original_name.
3146 (objfile_name): New prototype.
3147 * printcmd.c (sym_info, address_info): Use objfile_name.
3148 * probe.c (parse_probes, collect_probes, compare_probes)
3149 (info_probes_for_ops): Likewise.
3150 * progspace.c (clone_program_space): Likewise.
3151 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3152 (maintenance_info_psymtabs): Likewise.
3153 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3154 (source_section_scripts): Likewise.
3155 * python/py-objfile.c (objfpy_get_filename): Likewise.
3156 * python/py-progspace.c (pspy_get_filename): Likewise.
3157 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3158 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3159 * solib.c (solib_read_symbols): Likewise.
3160 * stabsread.c (scan_file_globals): Likewise.
3161 * stap-probe.c (handle_stap_probe): Likewise.
3162 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3163 (find_separate_debug_file_by_debuglink): Likewise.
3164 (reread_symbols): Likewise. Use the objfile field name renamed to
3166 (allocate_symtab): Use objfile_name.
3167 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3168 (dump_objfile, dump_msymbols, dump_symtab_1)
3169 (maintenance_print_msymbols, maintenance_print_objfiles)
3170 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3171 * target.c (target_translate_tls_address, target_info): Likewise.
3172 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3175 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3178 * probe.c (parse_probes): Rename variable objfile_name to
3181 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 Remove solib-sunos.c.
3184 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3185 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3186 * objfiles.c (rt_common_objfile): Remove.
3187 (free_objfile): Remove rt_common_objfile comparison.
3188 * objfiles.h (rt_common_objfile): Remove.
3189 * solib-sunos.c: Remove.
3190 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3192 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3194 Remove a.out NetBSD and OpenBSD hosts.
3195 * NEWS (Removed native configurations): New.
3196 * config/arm/nbsdaout.mh: Remove.
3197 * config/i386/nbsdaout.mh: Remove.
3198 * config/i386/obsdaout.mh: Remove.
3199 * config/m68k/nbsdaout.mh: Remove.
3200 * config/sparc/nbsdaout.mh: Remove.
3201 * config/vax/nbsdaout.mh: Remove.
3202 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3203 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3204 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3206 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3207 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3208 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3210 2013-09-23 Tom Tromey <tromey@redhat.com>
3212 * linespec.c (struct minsym_and_objfile): Remove.
3213 (minsym_and_objfile_d): Remove.
3214 (struct linespec, struct collect_info, linespec_parse_basic)
3215 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3216 (compare_msymbols, find_method, find_function_symbols)
3217 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3218 (add_minsym, search_minsyms_for_name): Update.
3220 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3222 * regcache.c: Add include of valprint.h.
3223 (dump_endian_bytes): Delete.
3224 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3226 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3228 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3230 2013-09-19 Pedro Alves <palves@redhat.com>
3232 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3235 2013-09-19 Pedro Alves <palves@redhat.com>
3236 Thomas Schwinge <thomas@codesourcery.com>
3237 Yue Lu <hacklu.newborn@gmail.com>
3239 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3240 Take a gdb_byte pointer instead of a char pointer.
3242 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3243 gnu_xfer_partial helper.
3244 (gnu_xfer_partial): New function.
3245 (gnu_target): Don't install a deprecated_xfer_memory hook.
3246 Install a to_xfer_partial hook.
3248 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 * main.c (captured_main): Replace catch_command_errors by
3252 catch_command_errors_const. Twice.
3253 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3254 (symbol_file_add): Make name parameter const.
3255 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3256 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3257 variable name. Change their usage accordingly.
3258 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3260 (symbol_file_add_main): Make args parameter const.
3262 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3263 Ulrich Weigand <uweigand@de.ibm.com>
3265 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3267 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3269 2013-09-18 Pedro Alves <palves@redhat.com>
3270 Yue Lu <hacklu.newborn@gmail.com>
3272 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3273 (gnu_create_inferior)
3274 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3275 (set_sig_thread_cmd): Use the lwpid field of ptids to
3276 store/extract thread ids instead of the tid field.
3277 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3279 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3281 * infcmd.c (default_print_one_register_info): Add detection of
3282 optimized out values.
3283 (default_print_registers_info): Switch to using
3284 get_frame_register_value.
3286 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3288 * infrun.c (handle_inferior_event): Check if we know the
3289 function start address before setting a resume breakpoint.
3291 2013-09-18 Pedro Alves <palves@redhat.com>
3293 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3294 minus_one_ptid instead of looking at the ptid's tid field and
3295 comparing that to -1.
3297 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3299 * main.h (get_gdb_program_name): Remove extra whitespace.
3301 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3303 * main.h (get_gdb_program_name): Add declaration.
3304 * main.c (get_gdb_program_name): Add definition.
3306 2013-09-17 Doug Evans <dje@google.com>
3308 * dwarf2read.c: Move definitions of complaint functions to after
3309 forward declarations of local functions.
3311 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3312 Pedro Alves <palves@redhat.com>
3315 * breakpoint.c (remove_threaded_breakpoints): New function.
3316 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3317 as thread_exit observer.
3319 2013-09-17 Pedro Alves <palves@redhat.com>
3322 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3323 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3324 * corelow.c (core_open):
3325 * frame.h (print_stack_frame, print_frame_info): New
3326 'set_current_sal' parameter.
3327 * infcmd.c (finish_command, kill_command): Adjust call to
3329 * inferior.c (inferior_command): Likewise.
3330 * infrun.c (normal_stop): Likewise.
3331 * linux-fork.c (linux_fork_context): Likewise.
3332 * record-full.c (record_full_goto_entry, record_full_restore):
3334 * remote-mips.c (common_open): Likewise.
3335 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3337 (print_frame_info): New 'set_current_sal' parameter. Set the last
3338 displayed sal depending on the new paremeter instead of looking at
3340 (backtrace_command_1, select_and_print_frame, frame_command)
3341 (current_frame_command, up_command, down_command): Adjust call to
3343 * thread.c (print_thread_info, restore_selected_frame)
3344 (do_captured_thread_select): Adjust call to print_stack_frame.
3345 * tracepoint.c (tfind_1): Likewise.
3346 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3347 (mi_cmd_stack_info_frame): Likewise.
3348 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3349 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3351 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3353 * value.c (isvoid_internal_fn): Replace "parameter" with
3356 2013-09-16 Stan Shebs <stan@codesourcery.com>
3358 * README: Update references to writing code for GDB.
3359 * configure.ac (build_warnings): Remove obsolete comment.
3360 * configure: Regenerate.
3361 * gdbarch.sh: Remove references to gdbint.texinfo.
3362 * gdbarch.h: Regenerate.
3363 * gdbtypes.c (objfile_type): Remove comments referencing internals
3366 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3368 * NEWS: Mention new convenience function $_isvoid.
3369 * value.c (isvoid_internal_fn): New function.
3370 (_initialize_values): Add new convenience function $_isvoid.
3372 2013-09-16 Pierre Muller <muller@sourceware.org>
3374 * arm-linux-tdep.c: Add "elf/common.h" header.
3375 Remove AT_HWCAP macro definintion as it is provided in
3377 * s390-tdep.c: Remove system header <elf.h>
3378 Add "elf/common.h" header for AT_HWCAP definition.
3379 (s390_core_read_description): Use correct CORE_ADDR
3380 for hwcap local variable used as third parameter
3381 of function target_auxv_search.
3383 2013-09-14 Pierre Muller <muller@sourceware.org>
3384 Tom Tromey <tromey@redhat.com>
3385 Pedro Alves <palves@redhat.com>
3387 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3388 mode if operating system doesn't know O_CLOEXEC.
3390 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3393 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3396 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3398 * NEWS: Mention TDB support.
3399 * features/s390-tdb.xml: New file.
3400 * features/s390-te-linux64.xml: New file.
3401 * features/s390x-te-linux64.xml: New file.
3402 * features/Makefile (WHICH): Add new tdescs above.
3403 (s390-te-linux64-expedite): Set.
3404 (s390x-te-linux64-expedite): Set.
3405 * features/s390-te-linux64.c: New file (generated).
3406 * features/s390x-te-linux64.c: New file (generated).
3407 * regformats/s390-te-linux64.dat: New file (generated).
3408 * regformats/s390x-te-linux64.dat: New file (generated).
3409 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3410 (HWCAP_S390_TE): Likewise.
3411 (S390_TDB_DWORD0_REGNUM): Likewise.
3412 (S390_TDB_DWORD0_REGNUM): Likewise.
3413 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3414 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3415 (S390_TDB_ATIA_REGNUM): Likewise.
3416 (S390_TDB_R0_REGNUM): Likewise.
3417 (S390_TDB_R1_REGNUM): Likewise.
3418 (S390_TDB_R2_REGNUM): Likewise.
3419 (S390_TDB_R3_REGNUM): Likewise.
3420 (S390_TDB_R4_REGNUM): Likewise.
3421 (S390_TDB_R5_REGNUM): Likewise.
3422 (S390_TDB_R6_REGNUM): Likewise.
3423 (S390_TDB_R7_REGNUM): Likewise.
3424 (S390_TDB_R8_REGNUM): Likewise.
3425 (S390_TDB_R9_REGNUM): Likewise.
3426 (S390_TDB_R10_REGNUM): Likewise.
3427 (S390_TDB_R11_REGNUM): Likewise.
3428 (S390_TDB_R12_REGNUM): Likewise.
3429 (S390_TDB_R13_REGNUM): Likewise.
3430 (S390_TDB_R14_REGNUM): Likewise.
3431 (S390_TDB_R15_REGNUM): Likewise.
3432 (S390_NUM_REGS): Increase.
3433 (S390_IS_TDBREGSET_REGNUM): New macro.
3434 (s390_regmap_tdb): Declare.
3435 (s390_sizeof_tdbregset): Define.
3436 (tdesc_s390_te_linux64): Declare.
3437 (tdesc_s390x_te_linux64): Likewise.
3438 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3439 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3440 (s390_regmap_tdb): New regmap.
3441 (s390_supply_tdb_regset): New function.
3442 (s390_tdb_regset): New regset.
3443 (s390_linux64v2_regset_sections): Add TDB regset to list.
3444 (s390x_linux64v2_regset_sections): Likewise.
3445 (s390_regset_from_core_section): Recognize TDB core note section.
3446 (s390_core_read_description): If HWCAP indicates TE support,
3447 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3448 (s390_gdbarch_init): Handle TDB regset.
3449 (_initialize_s390_tdep): Initialize new tdescs.
3450 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3451 (have_regset_tdb): New variable.
3452 (s390_native_supply): Support register invalidation.
3453 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3454 (check_regset): Treat ENODATA as "regset exists".
3455 (s390_linux_fetch_inferior_registers): Add TDB.
3456 (s390_read_description): Check for TDB existence and select
3458 * gdbserver/Makefile.in (clean): Add removal of new makefile
3460 (s390-te-linux64.c): New makefile target.
3461 (s390x-te-linux64.c): Likewise.
3462 * gdbserver/configure.srv (srv_regobj): Append new objects
3463 s390-te-linux64.o and s390x-te-linux64.o.
3464 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3465 s390x-te-linux64.xml, and s390-tdb.xml.
3466 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3468 (tdesc_s390_te_linux64): Likewise.
3469 (init_registers_s390x_te_linux64): Likewise.
3470 (tdesc_s390x_te_linux64): Likewise.
3471 (s390_check_regset): Treat ENODATA as "regset exists".
3472 (s390_arch_setup): Add TDB regset support.
3473 (initialize_low_arch): Initialize registers for new tdescs.
3475 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3477 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3478 (S390_IS_FPREGSET_REGNUM): New macro.
3479 * s390-tdep.c (s390_dwarf_regmap): Make const.
3480 (regnum_is_gpr_full): New function for replacing repeated code.
3481 (s390_pseudo_register_name): Use it.
3482 (s390_pseudo_register_type): Likewise.
3483 (s390_pseudo_register_read): Likewise.
3484 (s390_pseudo_register_write): Likewise.
3485 (s390_unwind_pseudo_register): Likewise.
3486 (s390_regmap_gregset): New format for regmap.
3487 (s390x_regmap_gregset): Likewise.
3488 (s390_regmap_fpregset): Likewise.
3489 (s390_regmap_upper): Likewise.
3490 (s390_regmap_last_break): Likewise.
3491 (s390_regmap_system_call): Likewise.
3492 (s390_supply_regset): Adjust to new regmap format.
3493 (s390_collect_regset): Likewise.
3494 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3495 (s390_native_collect): Likewise.
3496 (supply_gregset): Likewise.
3497 (fill_gregset): Likewise.
3498 (supply_fpregset): Likewise.
3499 (fill_fpregset): Likewise.
3500 (fetch_regset): Likewise.
3501 (store_regset): Likewise.
3502 (s390_linux_fetch_inferior_registers): Likewise.
3503 (s390_linux_fetch_inferior_registers): Likewise.
3505 2013-09-12 Andrew Pinski <apinski@cavium.com>
3507 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3509 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3511 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3513 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3515 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3517 2013-09-06 Pedro Alves <palves@redhat.com>
3519 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3520 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3521 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3522 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3523 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3526 2013-09-06 Pedro Alves <palves@redhat.com>
3528 * remote-sim.c (dump_mem): Constify buf parameter.
3529 gdbsim_xfer_inferior_memory): Rename to ...
3530 (gdbsim_xfer_memory): ... this. Adjust interface as
3531 target_xfer_partial helper.
3532 (gdbsim_xfer_partial): New function.
3533 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3534 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3536 2013-09-06 Pedro Alves <palves@redhat.com>
3538 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3539 host_address_to_string, and send debug output to gdb_stdlog.
3541 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3543 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3544 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3545 gdb_target_obs for cris target.
3546 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3547 (cris_gdbarch_init): Move calls to
3548 set_gdbarch_fetch_tls_load_module_address and
3549 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3550 Add call to gdbarch_init_osabi.
3551 * cris-linux-tdep.c: New file.
3552 * cris-tdep.h: New file.
3554 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3556 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3557 to deprecated_init_ui_hook.
3559 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3561 * cli/cli-interp.c (_initialize_cli_interp): Add a
3562 command_loop_proc to interp_procs.
3563 * event-top.c (cli_command_loop): Change signature to match
3564 interp_command_loop_ftype.
3565 * event-top.h (cli_command_loop): Same.
3566 * interps.c (interp_new): Require every interpreter to have a
3568 (current_interp_command_loop): Just call the command_loop_proc on
3569 the current interpreter.
3570 * tui/tui-interp.c (_initialize_tui_interp): Add a
3571 command_loop_proc to interp_procs.
3573 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3575 * cris-tdep.c (cris_gdbarch_init): Add call to
3576 get_gdbarch_fetch_tls_load_module_address.
3578 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3580 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3581 (cris_elf_gregset_t): Rename from elf_gregset_t.
3582 (crisv32_elf_gregset_t): Adjust.
3583 (cris_supply_gregset, fetch_core_registers): Adjust.
3585 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3587 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3589 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3591 * defs.h (deprecated_command_loop_hook): Remove, including
3592 references in comments.
3593 * interps.c (current_interp_command_loop): No longer use
3594 deprecated_command_loop_hook.
3595 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3597 * top.c (deprecated_command_loop_hook): Remove.
3599 2013-09-05 Pedro Alves <palves@redhat.com>
3601 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3602 local is now int instead of ULONGEST. Print it with %d
3603 instead of paddress.
3605 2013-09-05 Tristan Gingold <gingold@adacore.com>
3607 * MAINTAINERS: Remove avr maintainership.
3609 2013-09-05 Pedro Alves <palves@redhat.com>
3611 * findvar.c (value_of_register): Rework in terms of
3612 value_of_register_lazy.
3614 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3616 * symfile.c (add_symbol_file_command): Remove trailing
3617 whitespaces and blank line after comment.
3619 2013-09-05 Pedro Alves <palves@redhat.com>
3621 * tui/tui-regs.c (tui_register_format): Don't look at the
3622 register's name here. Return string representing register
3623 value instead of storing it in the data element.
3624 (tui_get_register): Compare register string representations
3625 instead of register value states and contents.
3627 2013-09-05 Pedro Alves <palves@redhat.com>
3630 * tui/tui-regs.c (tui_show_registers): Show registers of the
3631 selected frame, not the current frame.
3633 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3635 * MAINTAINERS (Write After Approval): Add myself to the list.
3637 2013-09-04 Doug Evans <dje@google.com>
3639 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3640 (queue_and_load_dwo_tu): New function.
3641 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3642 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3643 Make dependent_cu optional.
3644 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3645 and an older .gdb_index is in use, queue and load all its TUs too.
3647 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3650 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3651 variable search_flags.
3652 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3653 (OPF_RETURN_REALPATH): ... here.
3654 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3655 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3657 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3659 * solib.c (solib_find): Likewise. Four times.
3660 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3661 in the function comment and for the realpath_fptr variable.
3662 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3663 (find_and_open_source): Likewise. Twice.
3664 * symfile.c (symfile_bfd_open): Likewise, also twice.
3666 2013-09-04 Doug Evans <dje@google.com>
3668 * progspace.c (save_current_space_and_thread): Remove unnecessary
3669 call to save_current_inferior.
3671 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3673 * sh64-tdep.c (sh64_do_register): Return after printing message
3674 about unavailable register contents.
3676 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3677 Pedro Alves <palves@redhat.com>
3679 * symfile.c (add_symbol_file_command): Error out on unknown
3680 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3681 options and collapse into single conditional branch.
3683 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3685 * inf-child.c (inf_child_follow_fork): New parameter
3687 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3688 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3689 * inferior.h (detach_fork): Remove.
3690 * infrun.c (detach_fork): Adjust comment and make it
3692 (follow_fork): Pass detach_fork parameter to
3694 * linux-nat.c (linux_child_follow_fork): New parameter
3696 * target.c (target_follow_fork): New parameter detach_fork.
3697 Pass detach_fork as parameter and print its value.
3698 * target.h (struct target_ops) <to_follow_fork>: New int
3700 (target_follow_fork): New parameter detach_fork.
3702 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3704 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3705 Replace sec->bfd by sec->the_bfd_section->owner.
3707 2013-09-03 Yao Qi <yao@codesourcery.com>
3709 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3710 from linux_has_shared_address_space.
3711 (linux_has_shared_address_space): Call linux_is_uclinux.
3712 * linux-tdep.h (linux_is_uclinux): Declare.
3713 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3716 2013-09-03 Yao Qi <yao@codesourcery.com>
3718 * config/djgpp/fnchange.lst: Remove entry of
3719 i386-interix-nat.c and i386-interix-tdep.c.
3720 * configure.ac: Remove '*-*-interix*'.
3721 * configure: Re-generated.
3722 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3723 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3725 * osabi.c (gdb_osabi_names): Remove "Interix".
3727 2013-09-03 Yao Qi <yao@codesourcery.com>
3729 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3731 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3733 * record.h (record_print_flag) <record_print_src_line,
3734 record_print_insn_range>: Rename into ...
3735 (record_print_flag) <record_print_src_line,
3736 record_print_insn_range>: ... this. Update all users.
3738 2013-09-02 Pierre Muller <muller@sourceware.org>
3740 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3743 2013-09-02 Pierre Muller <muller@sourceware.org>
3745 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3746 by use of plongest function.
3748 2013-09-02 Tristan Gingold <gingold@adacore.com>
3750 * NEWS: Add entry mentioning support for native Windows x64
3753 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3754 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3755 (struct amd64_windows_frame_cache): New struct.
3756 (amd64_windows_w2gdb_regnum): New global.
3757 (pc_in_range, amd64_windows_frame_decode_epilogue)
3758 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3759 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3760 (amd64_windows_frame_this_id): New functions.
3761 (amd64_windows_frame_unwind): New static global.
3762 (amd64_windows_skip_prologue): New function.
3763 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3764 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3765 with amd64_windows_skip_prologue.
3767 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3771 2013-08-30 Pedro Alves <palves@redhat.com>
3773 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3776 2013-08-30 Pedro Alves <palves@redhat.com>
3778 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3781 2013-08-30 Pedro Alves <palves@redhat.com>
3783 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3784 Adjust arguments to print_stack_frame.
3786 2013-08-30 Pedro Alves <palves@redhat.com>
3788 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3790 2013-08-30 Pedro Alves <palves@redhat.com>
3792 * frame.h (show_and_print_stack_frame): Delete declaration.
3794 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3797 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3798 (archpy_name): Check for valid architecture.
3799 (archpy_disassemble): Ditto.
3801 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3803 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3804 instead of "long long" in call to ptrace64.
3806 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3808 * mi/mi-interp.c (mi_command_loop): Change signature to match
3809 interp_command_loop_ftype.
3810 (mi1_command_loop): Remove.
3811 (mi2_command_loop): Remove.
3812 (mi3_command_loop): Remove.
3813 (mi_interpreter_resume): Remove setting of
3814 deprecated_command_loop_hook.
3815 (_initialize_mi_interp): Set mi_command_loop as the command loop
3818 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3820 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3823 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3825 * value.c (allocate_value_contents): Make static.
3826 * value.h (allocate_value_contents): Remove prototype.
3828 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3831 of assembling value via allocate_value_lazy and attribute setter.
3832 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3833 assembling value via allocate_value_lazy and attribute setter.
3834 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3835 assembling value via allocate_value_lazy and attribute setter.
3837 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3839 * value.c (value_from_contents_and_address): Replace allocate_value and
3840 memcpy with value_from_contents.
3842 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3844 * python/py-framefilter.c (py_print_frame): Remove usage of
3845 PyString_AsString. Use python_string_to_host_string instead.
3846 Refactor function to work with a string as a new allocation
3847 instead of a pointer.
3848 (py_print_frame): Ditto.
3849 * python/lib/gdb/frames.py (return_list): Cain iterators together
3850 instead of adding them as a list.
3851 (_sort_list): Call return_list, and remove duplicate code.
3852 (execute_frame_filters): Convert iterator to a list with list().
3853 * python/lib/gdb/command/frame_filters.py
3854 (SetFrameFilterPriority._set_filter_priority): Convert priority
3855 attribute to an integer.
3856 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3857 wrapper function __next__.
3858 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3861 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3864 * python/py-framefilter.c (apply_frame_filter): Check
3865 gdb_python_initialized. Exit if the Python frame-filter code
3866 cannot be initialized.
3868 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3871 * top.c (print_gdb_version): Remove erroneous newline after help
3874 2013-08-29 Yao Qi <yao@codesourcery.com>
3876 * varobj.c (install_dynamic_child): Remove trailing space.
3877 Add one blank line after variable declaration.
3879 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 * corefile.c (get_exec_file): Use exec_filename.
3883 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3884 * exec.c (exec_close): Free EXEC_FILENAME.
3885 (exec_file_attach): New variable canonical_pathname. Use
3886 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3888 * exec.h (exec_filename): New.
3889 * inferior.c (print_inferior, inferior_command): Use
3890 PSPACE_EXEC_FILENAME.
3891 * mi/mi-main.c (print_one_inferior): Likewise.
3892 * progspace.c (clone_program_space, print_program_space): Likewise.
3893 * progspace.h (struct program_space): New field pspace_exec_filename.
3894 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3895 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3897 2013-08-28 Will Newton <will.newton@linaro.org>
3899 * common/linux-ptrace.c: Include stdint.h unconditionally.
3901 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3904 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3906 2013-08-28 Yao Qi <yao@codesourcery.com>
3907 Pedro Alves <palves@redhat.com>
3909 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3910 instead of stdio_fileopen.
3911 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3912 .Call stderr_fileopen instead of stdio_fileopen.
3913 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3914 [__MINGW32__] (stderr_file_fputs): New function.
3915 (stderr_fileopen): New function.
3916 * ui-file.h (stderr_fileopen): Declare.
3918 2013-08-27 Doug Evans <dje@google.com>
3920 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3921 (struct dwarf2_per_cu_data): Ditto.
3922 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3923 (process_imported_unit_die): Ditto.
3924 (follow_die_sig_1): Simplify assert.
3926 2013-08-27 Pedro Alves <palves@redhat.com>
3928 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3929 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3930 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3931 windows_xfer_memory directly.
3932 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3934 2013-08-27 Pedro Alves <palves@redhat.com>
3936 * darwin-nat.c (darwin_xfer_memory): Delete.
3937 (_initialize_darwin_inferior): Don't install a
3938 deprecated_xfer_memory method.
3940 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3941 Yao Qi <yao@codesourcery.com>
3943 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3944 (parse_no_frames_option): Remove.
3945 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3946 (mi_cmd_stack_list_args): Adjust.
3947 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3948 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3949 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3951 (list_args_or_locals): New parameter 'skip_unavailable'.
3953 * valprint.c (scalar_type_p): Rename to ...
3954 (val_print_scalar_type_p): ... this. Make extern.
3955 (val_print, value_check_printable): Adjust.
3956 * valprint.h (val_print_scalar_type_p): Declare.
3957 * value.c (value_entirely_unavailable): New function.
3958 * value.h (value_entirely_unavailable): Declare.
3960 * NEWS: Mention the new option "--skip-unavailable" to MI
3961 commands '-stack-list-locals', '-stack-list-arguments' and
3962 '-stack-list-variables'.
3964 2013-08-27 Yao Qi <yao@codesourcery.com>
3966 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3967 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3969 * mi/mi-getopt.c (mi_getopt): Remove.
3970 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3972 (mi_getopt): Call mi_getopt_1.
3973 (mi_getopt_silent): New.
3974 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3976 2013-08-26 Doug Evans <dje@google.com>
3979 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3980 .gdb_index is in use.
3981 * symfile.c (reread_symbols): Reset objfile->sf.
3983 * NEWS: Document "mt print objfiles" now takes optional regexp.
3984 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3985 regexp of objfiles to print.
3986 (_initialize_symmisc): Update doc string for "mt print objfiles".
3988 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3989 missing debug info checks.
3991 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3992 Ulrich Weigand <uweigand@de.ibm.com>
3994 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3995 line tables generated by XLC compiled binaries.
3997 2013-08-23 Doug Evans <dje@google.com>
3999 * symmisc.c (dump_symtab): Delete prototype.
4000 (dump_msymbols, dump_objfile): Ditto.
4001 (maintenance_info_symtabs): Mark as dont_repeat.
4002 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4004 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4005 debugging printf to better location.
4007 2013-08-23 Pedro Alves <palves@redhat.com>
4009 * target.c (target_read_live_memory): Change type of 'ret' local
4012 2013-08-23 Pedro Alves <palves@redhat.com>
4014 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4015 (remote_read_bytes): Change return type to LONGEST, and adjust to
4016 return a target_xfer_error on error.
4017 (remote_xfer_memory): Delete.
4018 (remote_flash_write): Change type of 'ret' local to LONGEST.
4019 (remote_xfer_partial, remote_xfer_partial): Adjust.
4020 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4022 2013-08-23 Pierre Muller <muller@sourceware.org>
4024 ARI fix: Push # directives to start of line.
4025 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4027 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4030 * breakpoint.c (enable_command, disable_command): Iterate over
4031 all specified breakpoint locations.
4033 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4035 * common/linux-ptrace.c (linux_fork_to_function): Push #
4036 directives to the start of the line.
4037 (linux_check_ptrace_features): Fix warning message to use
4040 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4042 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4043 nat/linux-waitpid.h.
4044 (linux-waitpid.o): New object file rule.
4045 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4046 (current_ptrace_options): Moved from linux-nat.c.
4047 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4049 (linux_fork_to_function): New function.
4050 (linux_grandchild_function): Likewise.
4051 (linux_child_function): Likewise.
4052 (linux_check_ptrace_features): New function, heavily
4053 based on linux-nat.c:linux_test_for_tracefork.
4054 (linux_enable_event_reporting): New function.
4055 (ptrace_supports_feature): Likewise.
4056 (linux_supports_tracefork): Likewise.
4057 (linux_supports_traceclone): Likewise.
4058 (linux_supports_tracevforkdone): Likewise.
4059 (linux_supports_tracesysgood): Likewise.
4060 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4061 gdbserver/linux-low.c.
4062 (linux_enable_event_reporting): New declaration.
4063 (linux_supports_tracefork): Likewise.
4064 (linux_supports_traceclone): Likewise.
4065 (linux_supports_tracevforkdone): Likewise.
4066 (linux_supports_tracesysgood): Likewise.
4067 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4068 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4069 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4070 * config/arm/linux.mh (NATDEPFILES): Likewise.
4071 * config/i386/linux.mh (NATDEPFILES): Likewise.
4072 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4073 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4074 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4075 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4076 * config/mips/linux.mh (NATDEPFILES): Likewise.
4077 * config/pa/linux.mh (NATDEPFILES): Likewise..
4078 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4079 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4080 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4081 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4082 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4083 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4084 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4085 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4086 ptrace's 4th argument's types.
4087 Check the type of PTRACE_TYPE_ARG4.
4088 * configure: Regenerate.
4089 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4090 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4091 (linux_supports_tracefork_flag): Remove.
4092 (linux_supports_tracesysgood_flag): Likewise.
4093 (linux_supports_tracevforkdone_flag): Likewise.
4094 (current_ptrace_options): Moved to
4095 common/linux-ptrace.c.
4096 (linux_tracefork_child): Remove.
4097 (my_waitpid): Remove.
4098 (linux_test_for_tracefork): Renamed to
4099 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4100 (linux_test_for_tracesysgood): Remove.
4101 (linux_supports_tracesysgood): Remove.
4102 (linux_supports_tracefork): Remove.
4103 (linux_supports_tracevforkdone): Remove.
4104 (linux_enable_tracesysgood): Remove.
4105 (linux_enable_event_reporting): Remove.
4106 (linux_init_ptrace): New function.
4107 (linux_child_post_attach): Call linux_init_ptrace.
4108 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4109 (linux_child_follow_fork): Call linux_supports_tracefork
4110 and linux_supports_tracevforkdone.
4111 (linux_child_insert_fork_catchpoint): Call
4112 linux_supports_tracefork.
4113 (linux_child_insert_vfork_catchpoint): Likewise.
4114 (linux_child_set_syscall_catchpoint): Call
4115 linux_supports_tracesysgood.
4116 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4117 * nat/linux-nat.h: New file.
4118 * nat/linux-waitpid.c: New file.
4119 * nat/linux-waitpid.h: New file.
4121 2013-08-22 Samuel Bronson <naesten@gmail.com>
4123 ARM Linux support for `catch syscall'.
4124 * syscalls/arm-linux.py: New file.
4125 * syscalls/arm-linux.xml: Likewise.
4126 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4127 (arm_linux_init_abi): Register the new function and syscall xml file.
4128 * data-directory/Makefile.in: Install the new syscall xml file.
4129 * NEWS: Brag about this.
4131 2013-08-22 Pedro Alves <palves@redhat.com>
4134 * corefile.c (target_xfer_memory_error): New function.
4135 (memory_error): Defer EIO to target_memory_error.
4136 (read_memory): Use target_xfer_partial, and handle finer-grained
4138 * target.c (target_xfer_error_to_string): New function.
4139 (memory_xfer_partial_1): If memory is known to be
4140 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4141 (target_xfer_partial): Make extern.
4142 * target.h (enum target_xfer_error): New enum.
4143 (target_xfer_error_to_string): Declare function.
4144 (target_xfer_partial): Declare function.
4145 (struct target_ops) <xfer_partial>: Adjust describing comment.
4147 2013-08-22 Alan Modra <amodra@gmail.com>
4149 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4150 * configure.tgt: Likewise as targets.
4152 2013-08-20 Doug Evans <dje@google.com>
4154 * buildsym.c (subfile_stack): Move here from buildsym.h.
4155 (pending_macros): Ditto.
4156 (get_macro_table): New function.
4157 (buildsym_init): Initialize subfile_stack.
4158 * coffread.c (type_vector,type_vector_length): Moved here from
4160 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4161 (coff_symtab_read): Use it.
4162 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4163 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4164 with call to get_macro_table.
4165 * stabsread.c (type_vector,type_vector_length): Moved here from
4167 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4168 * buildsym.h (get_macro_table): Declare.
4170 2013-08-20 Tom Tromey <tromey@redhat.com>
4172 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4174 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4176 2013-08-20 Doug Evans <dje@google.com>
4178 * blockframe.c: Remove #include "psymtab.h".
4179 * cp-support.c: Ditto.
4183 2013-08-20 Tom Tromey <tromey@redhat.com>
4186 * exceptions.h (return_mask): Now an enum.
4187 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4190 2013-08-20 Tom Tromey <tromey@redhat.com>
4192 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4194 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4195 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4196 * jit.c (jit_object_close_impl): Update.
4197 * jv-lang.c (get_dynamics_objfile): Update.
4198 * linespec.c (add_minsym): Use get_dynamics_objfile.
4199 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4200 (allocate_objfile): Don't initialize 'gdbarch' field.
4201 (get_objfile_arch): Update.
4202 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4204 (struct objfile) <gdbarch>: ... here. Remove.
4205 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4207 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4209 2013-08-20 Alan Modra <amodra@gmail.com>
4211 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4212 for IBM long double nan and inf.
4213 (floatformat_is_negative, floatformat_classify,
4214 floatformat_mantissa): Similarly.
4215 (floatformat_ieee_single, floatformat_ieee_double,
4216 floatformat_ieee_quad, floatformat_arm_ext,
4217 floatformat_ia64_spill): Delete unused vars.
4218 (_initialize_doublest): Delete unused function.
4219 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4220 little-endian variants of floatformat_ibm_long_double.
4222 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4224 * Makefile.in (SFILES): Remove common/target-common.c and
4225 add target/waitstatus.c.
4226 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4227 target/resume.h, target/wait.h and target/waitstatus.h.
4228 (COMMON_OBS): Remove target-common.o and add
4230 (target-common.o): Remove.
4231 (waitstatus.o): New target object file.
4232 * common/target-common.c: Move contents to
4233 target/waitstatus.c and remove.
4234 * common/target-common.h: Move contents to other files and
4236 (enum resume_kind: Move to target/resume.h.
4237 (TARGET_WNOHANG): Move to target/wait.h.
4238 (enum target_waitkind): Move to target/waitstatus.h.
4239 (struct target_waitstatus): Likewise.
4240 * target.h: Do not include target-common.h and
4241 include target/resume.h, target/wait.h and
4242 target/waitstatus.h.
4243 * target/resume.h: New file.
4244 * target/wait.h: New file.
4245 * target/waitstatus.h: New file.
4246 * target/waitstatus.c: New file.
4248 2013-08-19 Pedro Alves <palves@redhat.com>
4250 * linux-nat.c (linux_test_for_tracefork)
4251 (linux_test_for_tracesysgood, linux_child_follow_fork)
4252 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4253 (linux_nat_wait_1): Extend comment.
4254 (linux_async_pipe): Add comment.
4256 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4258 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4259 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4260 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4261 Update to account for fact that PC is now a pseudo-register.
4262 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4263 cases for RL78_PC_REGNUM.
4265 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4268 * top.c (quit_force): Skip writing history file
4269 if input is not from terminal.
4271 2013-08-14 Tom Tromey <tromey@redhat.com>
4273 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4274 resultthreadlist>: New fields.
4275 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4276 (remote_get_threadlist, remote_threadlist_iterator): Use
4277 new fields. Remove static variables.
4279 2013-08-14 Tom Tromey <tromey@redhat.com>
4281 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4282 remote_watch_data_address>: New fields.
4283 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4284 (process_stop_reply, remote_wait_as)
4285 (remote_check_watch_resources, remote_stopped_data_address): Update.
4287 2013-08-14 Tom Tromey <tromey@redhat.com>
4289 * remote.c (struct remote_state) <async_client_callback,
4290 async_client_context>: New fields.
4291 (async_client_callback, async_client_context): Remove.
4292 (remote_async_serial_handler, remote_async): Update.
4294 2013-08-14 Tom Tromey <tromey@redhat.com>
4296 * remote.c (sizeof_pkt): Remove.
4297 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4299 2013-08-14 Tom Tromey <tromey@redhat.com>
4301 * remote.c (struct remote_state) <use_threadinfo_query,
4302 use_threadextra_query>: New fields.
4303 (remote_threads_info, remote_threads_extra_info)
4304 (remote_open_1): Update.
4306 2013-08-14 Tom Tromey <tromey@redhat.com>
4308 * remote.c (struct remote_state) <finished_object,
4309 finished_annex, finished_offset>: New fields.
4310 (remote_read_qxfer): Use remote_state fields; remove static
4313 2013-08-14 Tom Tromey <tromey@redhat.com>
4315 * remote.c (struct remote_state) <last_sent_step>:
4317 (last_sent_step): Remove.
4318 (remote_resume, remote_wait_as): Update.
4320 2013-08-14 Tom Tromey <tromey@redhat.com>
4322 * remote.c (struct remote_state) <last_sent_signal>:
4324 (last_sent_signal): Remove.
4325 (new_remote_state, remote_resume, remote_wait_as): Update.
4327 2013-08-14 Tom Tromey <tromey@redhat.com>
4329 * remote.c (struct remote_state) <last_program_signals_packet>:
4331 (last_program_signals_packet): Remove.
4332 (remote_program_signals, remote_open_1): Update.
4334 2013-08-14 Tom Tromey <tromey@redhat.com>
4336 * remote.c (struct remote_state) <last_pass_packet>:
4338 (last_pass_packet): Remove.
4339 (remote_pass_signals, remote_open_1): Update.
4341 2013-08-14 Tom Tromey <tromey@redhat.com>
4343 * remote.c (struct remote_state) <remote_traceframe_number>:
4345 (remote_traceframe_number): Remove.
4346 (new_remote_state, remote_open_1, set_remote_traceframe)
4347 (remote_trace_find): Update.
4349 2013-08-14 Tom Tromey <tromey@redhat.com>
4351 * remote.c (struct remote_state) <general_thread, continue_thread>:
4353 (general_thread, continue_thread): Remove.
4354 (record_currthread, set_thread, set_general_process)
4355 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4356 (extended_remote_mourn_1): Update.
4358 2013-08-14 Tom Tromey <tromey@redhat.com>
4360 * remote.c (struct remote_state) <remote_desc>: New field.
4361 (remote_desc): Remove.
4362 (remote_threads_info, remote_threads_extra_info, remote_close)
4363 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4364 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4365 (remote_hostio_send_command, remote_file_put, remote_file_get)
4366 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4367 (remote_async, remote_new_objfile, set_range_stepping): Update.
4369 2013-08-14 Tom Tromey <tromey@redhat.com>
4371 * remote.c (remote_state): Now a pointer.
4372 (get_remote_state_raw): Update.
4373 (new_remote_state): New function.
4374 (_initialize_remote): Use new_remote_state.
4376 2013-08-14 Tom Tromey <tromey@redhat.com>
4378 * remote.c (remote_protocol_features): Now const.
4380 2013-08-14 Tom Tromey <tromey@redhat.com>
4382 * remote.c (crc32_table, crc32): Remove.
4383 (remote_verify_memory): Use xcrc32.
4385 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4387 * value.h (create_internalvar_type_lazy): Adjust prototype
4390 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4392 * common/format.c (parse_format_string): Don't allow '#' flag for
4393 pointer arguments in format string.
4395 2013-08-13 Pierre Muller <muller@sourceware.org>
4397 * utils.c (init_page_info): Only call tgetnum function
4398 if rl_get_screen_size did not return useful values.
4400 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4402 PR breakpoints/15117
4403 * linespec.c (linespec_parse_basic): Check for convenience
4404 variable or history value while parsing.
4406 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4408 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4410 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4411 different signals between the generic Linux kernel implementation
4413 (avr_linux_gdb_signal_from_target): Delete.
4414 (avr_linux_gdb_signal_to_target): Delete.
4415 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4417 2013-08-09 Doug Evans <dje@google.com>
4419 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4422 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4424 * linux-tdep.c: Define enum with generic signal numbers.
4425 (linux_gdb_signal_from_target): New function.
4426 (linux_gdb_signal_to_target): Likewise.
4427 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4428 methods to the functions above.
4429 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4430 (linux_gdb_signal_to_target): Likewise.
4431 * alpha-linux-tdep.c: Define new enum with signals different
4432 from generic Linux kernel.
4433 (alpha_linux_gdb_signal_from_target): New function.
4434 (alpha_linux_gdb_signal_to_target): Likewise.
4435 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4436 with the functions mentioned above.
4437 * avr-tdep.c: Define enum with differences between Linux kernel
4439 (avr_linux_gdb_signal_from_target): New function.
4440 (avr_linux_gdb_signal_to_target): Likewise.
4441 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4442 the functions mentioned above.
4443 * sparc-linux-tdep.c: Define enum with differences between SPARC
4444 and generic Linux kernel signal numbers.
4445 (sparc32_linux_gdb_signal_from_target): New function.
4446 (sparc32_linux_gdb_signal_to_target): Likewise.
4447 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4448 to the functions defined above.
4449 * xtensa-linux-tdep.c: Define enum with differences between
4450 Xtensa and Linux kernel generic signals.
4451 (xtensa_linux_gdb_signal_from_target): New function.
4452 (xtensa_linux_gdb_signal_to_target): Likewise.
4453 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4454 to the functions defined above.
4455 * mips-linux-tdep.c: Define enum with differences between
4456 signals in MIPS and Linux kernel generic ones.
4457 (mips_gdb_signal_to_target): New function.
4458 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4459 only different signals from the Linux kernel generic.
4460 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4461 the functions defined above.
4462 * mips-linux-tdep.h (enum mips_signals): Remove.
4464 2013-08-09 Pedro Alves <palves@redhat.com>
4466 * avr-tdep.c (XMALLOC): Delete macro.
4467 * cli/cli-dump.c (XMALLOC): Delete macro.
4469 2013-08-09 Pedro Alves <palves@redhat.com>
4471 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4472 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4473 (fopen_with_cleanup, add_dump_command): Make static.
4474 * cli/cli-dump.h: Delete file.
4475 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4478 2013-08-09 Pedro Alves <palves@redhat.com>
4480 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4483 2013-08-09 Pedro Alves <palves@redhat.com>
4485 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4488 2013-08-09 Pedro Alves <palves@redhat.com>
4490 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4491 (gcore_command): Use tilde_expand here, and when showing the
4492 filename to the user, show the expanded version.
4494 2013-08-09 Yao Qi <yao@codesourcery.com>
4496 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4499 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4501 * gcore.c (create_gcore_bfd): Use tilde_expand.
4503 2013-08-08 Yao Qi <yao@codesourcery.com>
4505 * frame.h (read_frame_local): Declare.
4506 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4508 * stack.c (read_frame_local): New.
4510 2013-08-08 Yao Qi <yao@codesourcery.com>
4512 * mi/mi-cmd-stack.c: Update comments to function
4513 list_args_or_locals.
4515 2013-08-07 Tom Tromey <tromey@redhat.com>
4518 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4519 (process_psymtab_comp_unit_reader): Use it.
4520 (process_psymtab_comp_unit): Update. Add "pretend_language"
4522 (dwarf2_build_psymtabs_hard): Update.
4523 (scan_partial_symbols): Pass CU's language to
4524 process_psymtab_comp_unit.
4526 2013-08-07 Tom Tromey <tromey@redhat.com>
4528 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4529 (dwarf2_gdb_index_functions): Update.
4530 * psymtab.c (find_symbol_file_from_partial): Remove.
4531 (psym_functions): Update.
4532 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4535 2013-08-07 Tom Tromey <tromey@redhat.com>
4537 * symfile.c (set_initial_language): Look up "main" symbol
4538 and use its language.
4539 * symtab.c (find_main_filename): Remove.
4540 * symtab.h (find_main_filename): Remove.
4542 2013-08-07 Tom Tromey <tromey@redhat.com>
4544 * dwarf2read.c (recursively_compute_inclusions): Add
4545 "immediate_parent" argument. Set symtab's "user" field
4547 (compute_symtab_includes): Update.
4549 2013-08-07 Tom Tromey <tromey@redhat.com>
4551 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4552 when adding label symbols.
4554 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4555 Ulrich Weigand <uweigand@de.ibm.com>
4557 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4558 * configure.host (powerpc64-*-aix*): Likewise.
4560 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4561 Ulrich Weigand <uweigand@de.ibm.com>
4563 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4565 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4566 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4567 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4568 * configure.ac: Check for ptrace64.
4569 * configure, config.in: Regenerate.
4571 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4572 Ulrich Weigand <uweigand@de.ibm.com>
4574 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4575 Call ptrace64 instead of ptrace if defined.
4576 Add macro addr_ptr to take care of ptrace address argument.
4577 (pdc_read_regs): Likewise.
4578 (pdc_write_regs): Likewise.
4579 (aix_thread_resume): Likewise.
4580 (fetch_regs_kernel_thread): Likewise.
4581 (store_regs_kernel_thread): Likewise.
4583 2013-08-07 Anton Blanchard <anton@samba.org>
4585 * MAINTAINERS: Add myself to Write After Approval.
4587 2013-08-05 Tom Tromey <tromey@redhat.com>
4589 * aix-thread.c (_initialize_aix_thread): Use
4590 complete_target_initialization.
4591 * bsd-uthread.c (_initialize_bsd_uthread): Use
4592 complete_target_initialization.
4593 * dec-thread.c (_initialize_dec_thread): Use
4594 complete_target_initialization.
4595 * ravenscar-thread.c (_initialize_ravenscar): Use
4596 complete_target_initialization.
4597 * sol-thread.c (_initialize_sol_thread): Use
4598 complete_target_initialization.
4599 * spu-multiarch.c (_initialize_spu_multiarch): Use
4600 complete_target_initialization.
4602 2013-08-05 Tom Tromey <tromey@redhat.com>
4604 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4605 * ada-lang.c (ada_lookup_simple_minsym): Return
4606 bound_minimal_symbol.
4607 * ada-lang.h (ada_lookup_simple_minsym): Update.
4608 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4609 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4610 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4611 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4612 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4613 * minsyms.c (msymbol_objfile): Remove.
4614 (lookup_minimal_symbol_internal): New function, from
4615 lookup_minimal_symbol.
4616 (lookup_minimal_symbol): Rewrite using
4617 lookup_minimal_symbol_internal.
4618 (lookup_bound_minimal_symbol): New function.
4619 * minsyms.h (msymbol_objfile): Remove.
4620 (lookup_bound_minimal_symbol): Declare.
4621 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4622 * parse.c (write_exp_msymbol): Change parameter to a
4623 bound_minimal_symbol.
4624 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4625 * parser-defs.h (write_exp_msymbol): Update.
4626 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4627 * symfile.c (simple_read_overlay_table): Use
4628 lookup_bound_minimal_symbol.
4629 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4630 (search_symbols): Likewise.
4631 (print_msymbol_info): Take a bound_minimal_symbol argument.
4632 (symtab_symbol_info, rbreak_command): Update.
4633 * symtab.h (struct symbol_search) <msymbol>: Change type
4634 to bound_minimal_symbol.
4635 * valops.c (find_function_in_inferior): Use
4636 lookup_bound_minimal_symbol.
4637 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4639 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4644 (async_cleanup_sigint_signal_handler): ... this.
4645 (initialize_sigint_signal_handler): Remove declaration.
4646 (handle_remote_sigint): Rename the declaration to ...
4647 (async_handle_remote_sigint): ... this.
4648 (handle_remote_sigint_twice): Rename the declaration to ...
4649 (async_handle_remote_sigint_twice): ... this.
4650 (async_remote_interrupt, async_remote_interrupt_twice)
4651 (remote_interrupt): Remove the declarations.
4652 (remote_interrupt_twice): Rename the declaration ...
4653 (sync_remote_interrupt_twice): ... this.
4654 (sigint_remote_twice_token): Rename the variable to ...
4655 (async_sigint_remote_twice_token): ... this.
4656 (sigint_remote_token): Rename the variable to ...
4657 (async_sigint_remote_token): ... this.
4658 (initialize_sigint_signal_handler): Rename the function to ...
4659 (async_initialize_sigint_signal_handler): ... this. Update the name
4661 (handle_remote_sigint): Rename the function to ...
4662 (async_handle_remote_sigint): ... this. Update the names inside.
4663 (handle_remote_sigint_twice): Rename the function to ...
4664 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4665 (cleanup_sigint_signal_handler): Rename the function to ...
4666 (async_cleanup_sigint_signal_handler): ... this.
4667 (remote_interrupt): Rename the function to ...
4668 (sync_remote_interrupt): this. Update the names inside.
4669 (remote_interrupt_twice): Rename the function to ...
4670 (sync_remote_interrupt_twice): this. Update the names inside.
4671 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4672 (_initialize_remote): Update the names inside.
4674 2013-08-02 Tom Tromey <tromey@redhat.com>
4677 * breakpoint.c (update_watchpoint, watchpoint_check)
4678 (watch_command_1): Update.
4679 * eval.c (fetch_subexp_value): Add "preserve_errors"
4681 * ppc-linux-nat.c (check_condition): Update.
4682 * value.h (fetch_subexp_value): Update.
4684 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4686 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4689 2013-08-01 Doug Evans <dje@google.com>
4692 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4693 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4694 Add assert of sig_entry->dwo_unit == NULL.
4695 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4696 had already been read.
4697 (read_signatured_type): Set per_cu.tu_read.
4700 * valops.c (value_struct_elt): Add missing call to check_typedef.
4701 (value_find_oload_method_list): Ditto.
4703 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4704 effectively, struct symbol_search **.
4705 (make_cleanup_free_search_symbols): Change arg to struct
4706 symbol_search **. All callers updated.
4707 (compare_search_syms): Compare symtab file name and block as well.
4708 (search_symbols_equal): New function.
4709 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4710 New args new_head, new_tail. Result is now void. Remove dups after
4711 sorting the symbols.
4712 (search_symbols): Sort all found symbols once, after all have been
4713 found, and remove duplicates. Simplify cleanup tracking of result.
4714 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4716 Further workarounds for binutils/15021.
4717 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4718 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4719 Watch for duplicate symtabs coming from type units.
4720 (compute_symtab_includes): Update call to
4721 recursively_compute_inclusions. Build vector of included symtabs
4723 * symtab.h (symtab_ptr): New typedef.
4724 (DEF_VEC_P (symtab_ptr)): New VEC type.
4725 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4728 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4730 * cli/cli-script.c (script_from_file): Remove use of
4732 * main.c (captured_main): Remove use of error_pre_print and
4734 * utils.c (error_pre_print, quit_pre_print): Remove.
4735 * utils.h (error_pre_print, quit_pre_print): Likewise.
4737 2013-08-01 Yao Qi <yao@codesourcery.com>
4739 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4741 (mi_cmd_stack_list_variables): Likewise.
4743 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4745 * exceptions.c (deprecated_throw_reason): Remove.
4746 * exceptions.h (deprecated_throw_reason): Remove.
4748 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4750 * remote-mips.c (mips_error): Replace use of
4751 deprecated_throw_reason with throw_verror. Use the error message
4752 passed to mips_error as the error message for throw_verror.
4754 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4756 * monitor.c (monitor_interrupt_query): Replace use of
4757 deprecated_throw_reason with quit.
4758 * nto-procfs.c (interrupt_query): Likewise.
4759 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4760 * remote-mips.c (mips_kill): Likewise.
4761 * remote.c (interrupt_query): Likewise.
4763 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4765 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4768 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4769 Yao Qi <yao@codesourcery.com>
4771 * tracepoint.c (trace_dump_command): Select the current frame.
4773 2013-07-30 Doug Evans <dje@google.com>
4775 * dwarf2read.c (process_queue): Add type signature to debug output.
4777 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4779 * value.c (value_fetch_lazy): Mark optimized out values as such
4780 rather than raising an error.
4782 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4784 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4785 before checking which bits of the parent, not the child, value are
4788 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4791 * top.c: Include "filenames.h".
4792 (set_history_filename): New function.
4793 (init_main): Install it as set hook of the "set history filename"
4796 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4798 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4799 attribute parameter.
4800 (dwarf2_const_value_data): Constify struct attribute parameter.
4801 (dwarf2_const_value): Constify struct attribute parameter.
4802 (dwarf2_const_value_attr): Constify struct attribute parameter.
4803 (lookup_die_type): Constify struct attribute parameter.
4804 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4805 (follow_die_ref_or_sig): Constify struct attribute parameter.
4806 (follow_die_ref): Constify struct attribute parameter.
4807 (follow_die_sig): Constify struct attribute parameter.
4808 (get_DW_AT_signature_type): Constify struct attribute parameter.
4809 (get_type_unit_group): Constify struct attribute parameter.
4810 (fill_in_loclist_baton): Constify struct attribute parameter.
4811 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4812 (type_unit_group): Constify struct attribute parameter.
4814 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4816 * dwarf2read.c (attr_form_is_block): Make argument const.
4817 (attr_form_is_section_offset): Make argument const.
4818 (attr_form_is_constant): Make argument const.
4819 (attr_form_is_ref): Make argument const.
4821 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4823 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4825 (attr_form_is_ref): Moved below attr_form_is_constant.
4827 2013-07-29 Doug Evans <dje@google.com>
4829 * main.c (captured_command_loop): Tweak comment.
4831 * target.c (target_async_permitted_1): Fix comment.
4833 * symtab.c (iterate_over_some_symtabs): Add comment.
4835 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4837 2013-07-27 Yao Qi <yao@codesourcery.com>
4839 * NEWS: Mention that GDBserver now supports hardware
4840 watchpoints on the MIPS GNU/Linux target.
4842 2013-07-27 Yao Qi <yao@codesourcery.com>
4844 * Makefile.in (HFILES_NO_SRCDIR): Add
4845 common/mips-linux-watch.h.
4846 (mips-linux-watch.o): New rule.
4847 * common/mips-linux-watch.c: New.
4848 * common/mips-linux-watch.h: New.
4849 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4850 * mips-linux-nat.c: Include mips-linux-watch.h.
4851 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4852 to common/mips-linux-watch.h.
4853 (MAX_DEBUG_REGISTER): Likewise.
4854 (enum pt_watch_style): Likewise.
4855 (struct mips32_watch_regs): Likewise.
4856 (struct mips64_watch_regs): Likewise.
4857 (struct pt_watch_regs): Likewise.
4858 (struct mips_watchpoint): Likewise.
4859 (mips_linux_watch_get_irw_mask): Move to
4860 common/mips-linux-watch.c.
4861 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4862 (mips_linux_watch_get_watchlo): Likewise.
4863 (mips_linux_watch_set_watchlo): Likewise.
4864 (mips_linux_watch_get_watchhi): Likewise.
4865 (mips_linux_watch_set_watchhi): Likewise.
4866 (mips_linux_read_watch_registers): Likewise.
4867 (mips_linux_watch_type_to_irw): Likewise.
4868 (mips_linux_stopped_data_address, fill_mask): Likewise.
4869 (mips_linux_watch_try_one_watch): Likewise.
4870 (mips_linux_watch_populate_regs): Likewise.
4872 2013-07-27 Yao Qi <yao@codesourcery.com>
4874 * mips-linux-nat.c (get_irw_mask): Rename to ...
4875 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4876 'set' to 'n'. Update function comment. All callers changed.
4877 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4878 function comment. All callers changed.
4879 (get_num_valid): Rename to ...
4880 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4881 'set' to 'n'. Update function comment. All callers changed.
4882 (get_watchlo): Rename to ...
4883 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4884 'set' to 'n'. Update function comment. All callers changed.
4885 (set_watchlo): Rename to ...
4886 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4887 'set' to 'n'. Update function comment. All callers changed.
4888 (get_watchhi): Rename to ...
4889 (mips_linux_watch_get_watchhi): ... this. Update function
4890 comment. All callers changed.
4891 (set_watchhi): Rename to ...
4892 (mips_linux_watch_set_watchhi): ... this. Update function
4893 comment. All callers changed.
4894 (mips_linux_read_watch_registers): Update function comment.
4895 Add new parameters 'lwpid', 'watch_readback', and
4896 'watch_readback_valid'. Update.
4897 (type_to_irw): Rename to ...
4898 (mips_linux_watch_type_to_irw): ... this. Update function
4899 comment. All callers changed.
4900 (fill_mask): Update function comment.
4901 (try_one_watch): Rename to ...
4902 (mips_linux_watch_try_one_watch): ... this. Change the type
4903 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4904 (populate_regs_from_watches): Rename to ...
4905 (mips_linux_watch_populate_regs): ... this. Add parameter
4906 'current_watches'. All callers changed.
4908 2013-07-27 Yao Qi <yao@codesourcery.com>
4910 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4912 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4913 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4914 (struct pt_watch_regs): Likewise.
4915 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4916 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4917 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4918 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4919 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4921 2013-07-27 Yao Qi <yao@codesourcery.com>
4923 * breakpoint.h: Include break-common.h.
4924 (enum target_hw_bp_type): Move to ...
4925 * common/break-common.h: ... here. New.
4927 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4929 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4930 process group regardless of having tty on stdin.
4932 2013-07-25 Doug Evans <dje@google.com>
4934 * linux-fork.h (detach_fork): Delete.
4936 2013-07-25 Tom Tromey <tromey@redhat.com>
4938 PR remote/15256, PR remote/15266:
4939 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4940 * monitor.c (monitor_detach): Use unpush_target.
4941 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4942 * remote-mips.c (mips_detach): Use unpush_target. Don't
4944 * remote-sim.c (gdbsim_detach): Use unpush_target.
4945 * target.c (pop_target): Remove.
4946 (pop_all_targets_above): Don't call target_close.
4947 (target_close): Assert that the target is unpushed.
4948 * target.h (pop_target): Don't declare.
4949 * tracepoint.c (tfile_open): Use unpush_target.
4951 2013-07-25 Tom Tromey <tromey@redhat.com>
4953 * linux-thread-db.c (init_thread_db_ops): Call
4954 complete_target_initialization.
4955 (_initialize_thread_db): Don't call add_target.
4956 * target.c (complete_target_initialization): New function.
4957 (add_target_with_completer): Call it.
4958 * target.h (complete_target_initialization): Declare.
4960 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4962 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4963 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4964 (HPPANBSD_SIZEOF_GREGS): New define.
4965 (hppaobsd_supply_gregset): Handle additional registers.
4966 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4967 we provide more registers now.
4968 (hppabsd_supply_gregset): Supply additional registers.
4969 (hppabsd_collect_gregset): Collect additional registers.
4971 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4973 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4974 (hppabsd_dwarf2_frame_init_reg): New function.
4975 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4977 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4979 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4980 'z' format code. Remove error for optimized out values, standard
4981 code will handle these fine.
4983 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4985 * NEWS: Mention new 'z' formatter.
4986 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4987 (_initialize_printcmd): Mention 'z' formatter in help text of the
4990 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4992 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4995 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4997 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4998 interface can evaluate arguments. Fallback to the old mode if it
5000 (create_exception_master_breakpoint): Likewise.
5001 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5002 (struct sym_probe_fns elf_probe_fns): Export function above to the
5004 * probe.c (can_evaluate_probe_arguments): New function.
5005 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5007 (can_evaluate_probe_arguments): New function prototype.
5008 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5009 probe interface can evaluate arguments. Fallback to the old mode
5011 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5012 interface can evaluate arguments. Warning the user if it cannot.
5013 (stap_can_evaluate_probe_arguments): New function.
5014 (struct probe_ops stap_probe_ops): Export function above to the
5016 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5017 New function pointer.
5019 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5021 * Makefile.in (SFILES): Add common/target-common.c.
5022 Add common/target-common.h to headers.
5023 (COMMON_OBS): Add target-common.o.
5024 (target-common.o): New target.
5025 * linux-nat.h (resume_kind): Move to common/target-common.h.
5026 * target.c (target_waitstatus_to_string): Move to
5027 common/target-common.c.
5028 * target.h: Include target-common.h.
5029 (target_waitkind): Move to common/target-common.h.
5030 (target_waitstatus): Likewise.
5031 (TARGET_WNOHANG): Likewise.
5032 * common/target-common.c: New file.
5033 * common/target-common.h: New file.
5035 2013-07-24 Doug Evans <dje@google.com>
5037 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5040 2013-07-23 Yao Qi <yao@codesourcery.com>
5042 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5043 parameter 'gdbarch'.
5044 (i386_stack_tramp_frame_sniffer): Caller update.
5045 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5046 parameter 'gdbarch' and 'target'.
5047 (i386_linux_core_read_description): Caller update.
5048 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5050 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5053 2013-07-23 Tom Tromey <tromey@redhat.com>
5055 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5058 2013-07-22 Doug Evans <dje@google.com>
5060 * exec.h (remove_target_sections): Delete arg abfd.
5061 * exec.c (exec_close): Update call to remove_target_sections.
5062 (remove_target_sections): Delete arg abfd.
5063 * solib.c (update_solib_list): Ditto.
5064 (reload_shared_libraries_1): Ditto.
5065 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5066 * target.h (struct target_section): Rename key to owner.
5069 2013-07-22 Tom Tromey <tromey@redhat.com>
5071 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5073 2013-07-22 Tom Tromey <tromey@redhat.com>
5075 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5076 Simplify cleanup handling.
5078 2013-07-22 Tom Tromey <tromey@redhat.com>
5080 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5081 on all return paths.
5083 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5085 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5086 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5087 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5089 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5091 * top.c (print_gdb_version): Add help, apropos description and
5092 url to online documentation.
5094 2013-07-19 Hui Zhu <hui@codesourcery.com>
5097 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5099 2013-07-19 Yao Qi <yao@codesourcery.com>
5101 * target.c (update_current_target): Change the default action
5102 of 'to_traceframe_info' from tcomplain to return_zero.
5103 * target.h (struct target_ops) <to_traceframe_info>: Add more
5105 * valops.c (read_value_memory): Call
5106 traceframe_available_memory unconditionally.
5108 2013-07-18 Yao Qi <yao@codesourcery.com>
5110 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5111 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5112 symbol without prefix. If found, set its type to
5113 'mst_solib_trampoline'.
5115 2013-07-17 Doug Evans <dje@google.com>
5117 * NEWS: Mention "set print raw frame-arguments".
5118 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5119 * stack.c (print_raw_frame_arguments): New static global.
5120 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5121 (_initialize_stack): New command "set/show print raw frame-arguments".
5122 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5123 (set_print_raw, show_print_raw): New functions.
5124 (_initialize_valprint): New prefix command "set/show print raw".
5125 * valprint.h (value_print_options): Improve comments.
5127 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5128 of all *list variables.
5130 * gdbcmd.h (togglelist): Delete.
5131 * cli/cli-cmds.c (togglelist): Delete.
5132 (init_cmd_lists): Update.
5133 * cli/cli-cmds.h (togglelist): Delete.
5135 2013-07-17 Tom Tromey <tromey@redhat.com>
5137 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5140 2013-07-16 Doug Evans <dje@google.com>
5142 * nto-tdep.c (nto_relocate_section_addresses): Update,
5143 target_section.bfd deleted.
5144 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5145 * s390-tdep.c (s390_load): Ditto.
5146 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5148 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5150 * common/format.c (parse_format_string): Add checks for NULL
5151 character before calling strchr.
5153 2013-07-16 Doug Evans <dje@google.com>
5155 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5156 temp_pathname argument.
5157 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5158 when opening the file fails.
5160 * target.h (struct target_section): Delete member bfd.
5161 All users updated to use the_bfd_section->owner instead.
5162 * exec.c (add_to_section_table): Assert bfd is expected value.
5163 Remove initialization of target_section.bfd.
5164 (remove_target_sections): Update.
5165 (section_table_available_memory): Update.
5166 (section_table_xfer_memory_partial): Update.
5167 (print_section_info): Update.
5168 (exec_set_section_address): Update.
5169 * record-full.c (record_full_core_xfer_partial): Update.
5170 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5171 * solib-target.c (solib_target_relocate_section_addresses): Update.
5172 * symfile.c (build_section_addr_info_from_section_table): Update.
5173 * target.c (memory_xfer_live_readonly_partial): Update.
5174 (memory_xfer_partial_1): Update.
5176 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5178 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5179 now available for embedded (BookE) and server (BookS) processors,
5180 correct mentions of 'booke' and adjust comments accordingly in order to
5181 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5182 (have_ptrace_booke_interface): Rename function and variable
5183 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5184 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5185 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5186 'hwdebug_point_cmp'. Update all uses.
5187 (booke_find_thread_points_by_tid): Rename function
5188 'booke_find_thread_points_by_tid' to
5189 'hwdebug_find_thread_points_by_tid'. Update all uses.
5190 (booke_insert_point): Rename function 'booke_insert_point' to
5191 'hwdebug_insert_point'. Update all uses.
5192 (booke_remove_point): Rename function 'booke_remove_point' to
5193 'hwdebug_remove_point'. Update all uses.
5195 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5197 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5198 numbers with enum values.
5200 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5203 * thread.c (thread_apply_all_command): Check for valid threads
5205 (thread_array_cleanup): New struct.
5206 (set_thread_refcount): New function.
5208 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5210 * infcmd.c (default_print_one_register_info): Reuse function
5213 2013-07-10 Tom Tromey <tromey@redhat.com>
5215 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5216 (ada-exp.o): New target.
5218 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5220 * mt-tdep.c (mt_registers_info): Call
5221 get_no_prettyformat_print_options instead of
5222 get_raw_print_options (regression by last patch from Doug
5225 2013-07-09 Pedro Alves <palves@redhat.com>
5227 Checked in by Joel Brobecker <brobecker@adacore.com>.
5228 * ada-lang.c (coerce_unspec_val_to_type): Use
5229 value_optimized_out_const.
5230 * value.c (value_optimized_out_const): New function.
5231 * value.h (value_optimized_out_const): New declaration.
5233 2013-07-09 Doug Evans <dje@google.com>
5235 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5236 Enum values rename as well. All uses updated.
5237 * valprint.h (value_print_options): Rename member pretty to
5238 pretty format. Rename member prettyprint_arrays to
5239 prettyformat_arrays. Rename member prettyprint_structs to
5240 prettyformat_structs. All uses updated.
5241 (get_no_prettyformat_print_options): Renamed from
5242 get_raw_print_options.
5243 * valprint.c (get_no_prettyformat_print_options): Renamed from
5244 get_raw_print_options. All callers updated.
5245 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5246 All callers updated.
5247 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5248 All callers updated.
5249 (_initialize_valprint): Improve help text for "set print pretty" and
5252 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5254 * value.c (value_bits_valid): Revert previous change, and change
5255 by Pedro on 2013-07-04, due to regressions in
5256 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5258 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5259 Pedro Alves <palves@redhat.com>
5261 * value.c (value_bits_valid): If the value is not lval_computed
5262 or has no check validity handler then the answer is the
5263 optimized_out flag, otherwise defer to the handler.
5265 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5267 * top.c (print_gdb_configuration): Explain in output of
5268 --configuration what does "relocatable" mean.
5270 * main.c (print_gdb_help): Regroup options in the --help text.
5271 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5272 the relevant discussions.
5274 2013-07-06 Yao Qi <yao@codesourcery.com>
5276 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5277 Remove parameter 'lsal'.
5278 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5279 to inner block. Caller update.
5280 (base_breakpoint_create_breakpoints_sal): Update.
5281 (bkpt_create_breakpoints_sal): Likewise.
5282 (tracepoint_create_breakpoints_sal): Likewise.
5283 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5284 element 0 of vector 'canonical->sals'.
5286 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5288 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5289 register number instead of the pseudo register one.
5290 (rs6000_dwarf2_reg_to_regnum): Likewise.
5292 2013-07-04 Pedro Alves <palves@redhat.com>
5294 * findvar.c (value_of_register): Use allocate_optimized_out_value
5295 if the register has been optimized out, instead of
5296 set_value_optimized_out.
5297 * frame-unwind.c (frame_unwind_got_optimized): Use
5298 allocate_optimized_out_value.
5300 2013-07-04 Pedro Alves <palves@redhat.com>
5302 * value.c (value_bits_valid): If the value is not lval_computed,
5303 or doesn't have a check_validity hook, assume the value is entirely
5306 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5308 * stack.c (read_frame_arg): No longer fetch lazy values.
5309 * value.c (value_optimized_out): If the value is not already
5310 marked optimized out, and is lazy then fetch it.
5311 (value_primitive_field): Move optimized out check to later in the
5312 function, after we have loaded any lazy values.
5313 (value_fetch_lazy): Use optimized out flag directly rather than
5314 calling optimized_out method.
5316 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5318 * valops.c: Don't include "user-regs.h".
5319 (value_fetch_lazy): Moved to value.c.
5320 * value.c: Include "user-regs.h".
5321 (value_fetch_lazy): Moved from valops.c.
5323 2013-07-04 Yao Qi <yao@codesourcery.com>
5326 2013-06-27 Yao Qi <yao@codesourcery.com>
5328 * common/create-version.sh: Update comments. Handle the case
5329 that TARGET_ALIAS is empty.
5331 2013-07-03 Pedro Alves <palves@redhat.com>
5333 * Makefile.in (config.status): Depend on development.sh.
5334 (aclocal_m4_deps): Add libmcheck.m4.
5335 * acinclude.m4: Include libmcheck.m4.
5336 * configure.ac: Source development.sh instead of setting
5337 'development' here. --enable-libmcheck/--disable-libmcheck code
5338 factored out to GDB_AC_LIBMCHECK. Run it.
5339 * development.sh: New file.
5340 * libmcheck.m4: New file.
5341 * configure: Regenerate.
5343 2013-07-02 Tom Tromey <tromey@redhat.com>
5345 * contrib/ari/update-web-ari.sh: Update for version.in change.
5347 2013-07-02 Tom Tromey <tromey@redhat.com>
5349 * common/ptid.h: Comment fixes.
5351 2013-07-01 Tom Tromey <tromey@redhat.com>
5353 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5354 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5355 (dwarf2_read_index, create_all_comp_units): Update.
5357 2013-07-01 Tom Tromey <tromey@redhat.com>
5359 * configure.ac (build_warnings): Add -Wold-style-definition.
5360 * configure: Rebuild.
5361 * machoread.c (_initialize_machoread): Use "(void)".
5362 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5365 2013-07-01 Tom Tromey <tromey@redhat.com>
5367 * configure.ac (build_warnings): Add -Wold-style-declaration.
5368 * configure: Rebuild.
5369 * dsrec.c (make_srec): Use "static const", not "const static".
5370 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5372 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5373 Use "static const", not "const static".
5374 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5376 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5378 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5380 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5382 (v850_dbtrap_breakpoint_from_pc): Likewise.
5383 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5386 2013-07-01 Tom Tromey <tromey@redhat.com>
5388 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5389 * configure: Rebuild.
5391 2013-07-01 Pedro Alves <palves@redhat.com>
5393 * defs.h: Include "pathmax.h".
5394 * utils.c: Don't include sys/param.h.
5395 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5396 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5397 instead of MAXPATHLEN.
5398 * solib-sunos.c: Don't include sys/param.h.
5399 * xcoffread.c: Don't include sys/param.h.
5400 * bsd-kvm.c: Don't include sys/param.h.
5401 * darwin-nat.c: Don't include sys/param.h.
5402 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5403 * darwin-nat-info.c: Don't include sys/param.h.
5404 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5406 * i386obsd-nat.c: Don't include sys/param.h.
5407 * inf-child.c: Don't include sys/param.h.
5408 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5409 * linux-fork.c: Don't include sys/param.h.
5410 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5411 * linux-nat.c: Don't include sys/param.h.
5412 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5413 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5414 * m68klinux-nat.c: Don't include sys/param.h.
5415 * nbsd-nat.c: Don't include sys/param.h.
5416 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5417 * ppc-linux-nat.c: Don't include sys/param.h.
5418 * rs6000-nat.c: Don't include sys/param.h.
5419 * spu-linux-nat.c. Don't include sys/param.h.
5420 * windows-nat.c: Don't include sys/param.h.
5421 * xtensa-linux-nat.c: Don't include sys/param.h.
5422 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5424 2013-07-01 Pedro Alves <palves@redhat.com>
5426 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5427 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5428 * gnulib/aclocal.m4: Regenerate.
5429 * gnulib/config.in: Regenerate.
5430 * gnulib/configure: Regenerate.
5431 * gnulib/import/pathmax.h: New file.
5432 * gnulib/import/Makefile.am: Regenerate.
5433 * gnulib/import/Makefile.in: Regenerate.
5434 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5435 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5436 * gnulib/import/m4/pathmax.m4: New file.
5438 2013-07-01 Pedro Alves <palves@redhat.com>
5440 * configure.ac (GDBINIT): Define, depending on host.
5441 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5442 * top.c (PATH_MAX): Delete fallback definition.
5443 (GDBINIT_FILENAME): Delete.
5444 (gdbinit): Reimplement as const char array set to the GDBINIT
5446 * top.h (gdbinit): Make const.
5447 * configure, config.in: Regenerate.
5449 2013-07-01 Pedro Alves <palves@redhat.com>
5451 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5452 * cli/cli-cmds.h (source_script): Likewise.
5453 * exceptions.c (catch_command_errors_const): New function.
5454 * exceptions.h (catch_command_errors_const): Declare.
5455 * main.c (get_init_files): Make parameters const, and adjust.
5456 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5457 'local_gdbinit' locals const. Adjust to use
5458 catch_command_errors_const.
5459 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5460 'local_gdbinit' locals const.
5462 2013-07-01 Pedro Alves <palves@redhat.com>
5464 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5465 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5466 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5469 2013-07-01 Pedro Alves <palves@redhat.com>
5471 Import the "unistd" gnulib module.
5472 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5473 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5474 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5475 import/m4/unistd_h.m4.
5476 * gnulib/aclocal.m4: Renenerate.
5477 * gnulib/config.in: Renenerate.
5478 * gnulib/configure: Renenerate.
5479 * gnulib/import/Makefile.am: Renenerate.
5480 * gnulib/import/Makefile.in: Renenerate.
5481 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5482 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5483 * gnulib/import/m4/off_t.m4: New file.
5484 * gnulib/import/m4/ssize_t.m4: New file.
5485 * gnulib/import/m4/sys_types_h.m4: New file.
5486 * gnulib/import/m4/unistd_h.m4: New file.
5487 * gnulib/import/sys_types.in.h: New file.
5488 * gnulib/import/unistd.c: New file.
5489 * gnulib/import/unistd.in.h: New file.
5491 2013-07-01 Pedro Alves <palves@redhat.com>
5493 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5494 defined instead of checking HAVE_UNISTD_H.
5496 2013-07-01 Pedro Alves <palves@redhat.com>
5498 Reimport gnulib from scratch.
5499 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5500 import/m4/onceonly.m4.
5501 * gnulib/aclocal.m4: Renegerate.
5502 * gnulib/config.in: Renegerate.
5503 * gnulib/configure: Renegerate.
5504 * gnulib/import/Makefile.in: Renegerate.
5505 * gnulib/import/extra/update-copyright: Renegerate.
5506 * gnulib/import/m4/onceonly.m4: Delete.
5508 2013-07-01 Pedro Alves <palves@redhat.com>
5510 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5512 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5515 * remote.c (async_remote_interrupt_twice): Make it static.
5516 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5518 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5520 * ia64-linux-tdep.c: Include <ctype.h>.
5521 (ia64_linux_stap_is_single_operand): New function.
5522 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5524 2013-06-28 Tom Tromey <tromey@redhat.com>
5526 * Makefile.in (version.c): Use version.in, not
5528 * common/create-version.sh: Likewise.
5529 * common/version.in: Move...
5530 * version.in: ...here.
5532 2013-06-28 Pedro Alves <palves@redhat.com>
5534 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5536 * utils.h (pagination_enabled): Declare.
5538 2013-06-28 Pedro Alves <palves@redhat.com>
5540 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5541 Move higher up in file.
5543 2013-06-28 Tom Tromey <tromey@redhat.com>
5545 * tracepoint.c (deprecated_readline_begin_hook)
5546 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5549 2013-06-28 Pedro Alves <palves@redhat.com>
5552 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5553 checking if they're available.
5554 * value.c (value_available_contents_eq): Change comment.
5555 * value.h (value_available_contents_eq): Expand comment.
5557 2013-06-27 Tom Tromey <tromey@redhat.com>
5559 * target.c (find_run_target): Remove.
5560 * target.h (find_run_target): Remove.
5562 2013-06-27 Tom Tromey <tromey@redhat.com>
5564 * corelow.c (core_gdbarch): Now static.
5566 2013-06-27 Tom Tromey <tromey@redhat.com>
5568 * target.c (target_struct_index): Remove.
5570 2013-06-27 Pedro Alves <palves@redhat.com>
5572 * infrun.c: Remove comment describing the 'stepping over runtime
5573 loader dynamic symbol resolution code' mechanism; moved to
5576 2013-06-27 Pedro Alves <palves@redhat.com>
5578 * exceptions.c (catch_command_errors): Remove spurious space.
5579 * exceptions.h (catch_command_errors): Second parameter is "arg",
5582 2013-06-27 Yao Qi <yao@codesourcery.com>
5584 * common/create-version.sh: Update comments. Handle the case
5585 that TARGET_ALIAS is empty.
5587 2013-06-26 Pedro Alves <palves@redhat.com>
5589 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5592 2013-06-26 Pedro Alves <palves@redhat.com>
5594 * infrun.c: Update comments on stepping over runtime loader
5595 dynamic symbol resolution code.
5597 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5599 * ax-gdb.h (union exp_element): Forward declare.
5600 * parser-defs.h: Include expression.h.
5602 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5604 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5606 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5608 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5610 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5612 Fix trace-status to output proper start-time and stop-time.
5613 * tracepoint.c (trace_status_command): Fix type of printf arg to
5614 prevent improper type conversion.
5615 (trace_status_mi): Likewise.
5617 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5619 * mips-tdep.c (mips_next_pc): Fix a typo.
5621 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5623 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5625 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5626 Yao Qi <yao@codesourcery.com>
5628 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5629 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5630 * mi/mi-main.c (print_variable_or_computed): New function.
5631 (mi_cmd_trace_frame_collected): New function.
5632 * tracepoint.c (find_trace_state_variable_by_number): New.
5633 (struct traceframe_info): Move to tracepoint.h
5634 (struct collection_list): Likewise.
5635 (do_collect_symbol): Include locals and arguments in the
5636 collected variables list.
5637 (clear_collection_list): Clear wholly collected variables list
5638 and computed variables list.
5639 (append_exp): New function.
5640 (encode_actions_1): Include variables in the wholly
5641 collected variables list. Include memory ranges and
5642 full-fledged expressions in the computed expressions list.
5643 (encode_actions): Move some code to ...
5644 Return the cleanup chain.
5645 (encode_actions_rsp): ... here. New function.
5646 (get_traceframe_location, get_traceframe_info): Remove static.
5647 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5648 (struct collection_list): Moved from tracepoint.c. Add two
5649 new fields 'wholly_collected' and 'computed'.
5650 (find_trace_state_variable_by_number): Declare.
5651 (encode_actions): Adjust declaration.
5652 (encode_actions_rsp): Declare.
5653 (get_traceframe_info, get_traceframe_location): Declare.
5655 * NEWS: Mention new MI command -trace-frame-collected.
5657 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5658 Yao Qi <yao@codesourcery.com>
5660 * ctf.c (ctf_traceframe_info): Push trace state variables
5661 present in the trace data into the traceframe info object.
5662 * breakpoint.c (DEF_VEC_I): Remove.
5663 * common/filestuff.c (DEF_VEC_I): Likewise.
5664 * dwarf2loc.c (DEF_VEC_I): Likewise.
5665 * mi/mi-main.c (DEF_VEC_I): Likewise.
5666 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5667 * features/traceframe-info.dtd: Add tvar element and its
5669 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5670 (build_traceframe_info): Push trace state variables present in
5671 the trace data into the traceframe info object.
5672 (traceframe_info_start_tvar): New function.
5673 (tvar_attributes): New.
5674 (traceframe_info_children): Add "tvar" element.
5675 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5677 * NEWS: Mention the change in GDB and GDBserver.
5679 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5680 Yao Qi <yao@codesourcery.com>
5682 * tracepoint.c (trace_dump_command): Move code to ...
5683 (get_traceframe_location): ... here. New.
5685 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5686 Yao Qi <yao@codesourcery.com>
5688 * tracepoint.c (trace_dump_command): GDB emits an error
5689 instead of a warning when a traceframe is not selected.
5691 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5692 Yao Qi <yao@codesourcery.com>
5694 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5695 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5697 (do_clear_collection_list, init_collection_list): New.
5698 (encode_actions): Add local variables 'tracepoint_list' and
5699 'stepping_list'. Call init_collection_list and make cleanup
5700 which calls do_clear_collection_list. Don't call
5701 clear_collection_list.
5702 (_initialize_tracepoint): Delete references to
5703 'tracepoint_list' and 'stepping_list'.
5705 2013-06-25 Tom Tromey <tromey@redhat.com>
5707 * common/create-version.sh (date): Use "$", not "$$" in sed
5710 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5712 * NEWS (New targets): Add entry for TI MSP430.
5714 2013-06-25 Yao Qi <yao@codesourcery.com>
5716 * remote.c (remote_start_remote): Move code to upload tsv
5719 2013-06-25 Yao Qi <yao@codesourcery.com>
5720 Hui Zhu <hui@codesourcery.com>
5721 Pedro Alves <palves@redhat.com>
5723 PR breakpoints/15075
5724 PR breakpoints/15434
5725 * breakpoint.c (bpstat_stop_status): Call
5726 b->ops->after_condition_true.
5727 (update_dprintf_command_list): Don't append "continue" command
5728 to the command list of dprintf breakpoint.
5729 (base_breakpoint_after_condition_true): New function.
5730 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5731 (dprintf_after_condition_true): New function.
5732 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5733 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5735 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5737 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5738 (ALLDEPFILES): Add msp430-tdep.c.
5739 * configure.tgt (msp430*-*-elf): New target.
5740 * msp430-tdep.c: New file.
5742 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5744 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5745 microMIPS synthetic symbols.
5747 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5749 * objfiles.h (pc_in_section): New prototype.
5750 (in_plt_section): Remove name argument, replace prototype with
5751 static inline function.
5752 * mips-tdep.h: Include "objfiles.h".
5753 (in_mips_stubs_section): New function.
5754 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5755 in_solib_call_trampoline member.
5756 (hppa_in_solib_call_trampoline): Remove name argument.
5757 * objfiles.c (pc_in_section): New function.
5758 (in_plt_section): Remove function.
5759 * mips-linux-tdep.c: Include "objfiles.h".
5760 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5761 name argument. Return 1 rather than the low 16-bit halfword of
5762 any instruction examined.
5763 (mips_linux_in_dynsym_resolve_code): Update
5764 mips_linux_in_dynsym_stub call accordingly.
5765 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5766 rather than an equivalent hand-coded sequence.
5767 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5768 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5769 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5770 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5772 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5773 on call to tdep->in_solib_call_trampoline.
5774 (hppa_in_solib_call_trampoline): Remove name argument, update
5775 according to in_plt_section change.
5776 (hppa_skip_trampoline_code): Update according to in_plt_section
5778 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5779 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5781 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5782 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5783 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5784 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5785 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5786 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5787 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5788 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5789 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5790 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5791 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5792 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5793 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5795 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5797 * common/create-version.sh: Fix expansion of $host_alias
5798 and $target_alias in generation of HOST_NAME and TARGET_NAME
5801 2013-06-24 Tom Tromey <tromey@redhat.com>
5803 * common/create-version.sh: New file.
5804 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5806 (HFILES_NO_SRCDIR): Use common/version.h.
5807 * version.in: Move to ...
5808 * common/version.in: ... here. Replace date with "DATE".
5809 * version.h: Move to ...
5810 * common/version.h: ... here.
5812 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5814 * gdb/gnulib/Makefile.in: Update date in copyright header.
5815 * gdb/gnulib/configure.ac: Ditto.
5816 * gdb/gnulib/update-gnulib.sh: Ditto.
5818 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5820 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5821 "gdb/gnulib/import".
5823 2013-06-21 Will Newton <will.newton@linaro.org>
5825 * doublest.c (ldfrexp): Remove function.
5826 (convert_doublest_to_floatformat): Call frexpl instead of
5829 2013-06-21 Will Newton <will.newton@linaro.org>
5831 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5832 * gnulib/aclocal.m4: Regenerate.
5833 * gnulib/config.in: Regenerate.
5834 * gnulib/configure: Regenerate.
5835 * gnulib/import/Makefile.am: Update.
5836 * gnulib/import/Makefile.in: Update.
5837 * gnulib/import/m4/gnulib-cache.m4: Update.
5838 * gnulib/import/m4/gnulib-comp.m4: Update.
5839 * gnulib/import/float+.h: Import.
5840 * gnulib/import/float.c: Import.
5841 * gnulib/import/float.in.h: Import.
5842 * gnulib/import/fpucw.h: Import.
5843 * gnulib/import/frexp.c: Import.
5844 * gnulib/import/frexpl.c: Import.
5845 * gnulib/import/isnan.c: Import.
5846 * gnulib/import/isnand-nolibm.h: Import.
5847 * gnulib/import/isnand.c: Import.
5848 * gnulib/import/isnanl-nolibm.h: Import.
5849 * gnulib/import/isnanl.c: Import.
5850 * gnulib/import/itold.c: Import.
5851 * gnulib/import/m4/exponentd.m4: Import.
5852 * gnulib/import/m4/exponentl.m4: Import.
5853 * gnulib/import/m4/float_h.m4: Import.
5854 * gnulib/import/m4/fpieee.m4: Import.
5855 * gnulib/import/m4/frexp.m4: Import.
5856 * gnulib/import/m4/frexpl.m4: Import.
5857 * gnulib/import/m4/isnand.m4: Import.
5858 * gnulib/import/m4/isnanl.m4: Import.
5859 * gnulib/import/m4/math_h.m4: Import.
5860 * gnulib/import/math.c: Import.
5861 * gnulib/import/math.in.h: Import.
5863 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5865 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5866 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5867 signature_INTEL_edx comparisons.
5869 2013-06-20 Doug Evans <dje@google.com>
5872 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5873 All callers updated.
5874 (open_dwp_file): If we can't find the dwp file, search the basename
5875 in debug-file-directory.
5877 * dwarf2read.c (struct dwp_file): Fix comment.
5878 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5880 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5883 2013-06-20 Yao Qi <yao@codesourcery.com>
5885 * breakpoint.c (create_breakpoint): Fix code indentation.
5887 2013-06-20 Yao Qi <yao@codesourcery.com>
5889 * breakpoint.c (create_breakpoints_sal_default): Remove
5890 parameter 'lsal'. Update declaration.
5891 (bkpt_create_breakpoints_sal): Caller update.
5892 (tracepoint_create_breakpoints_sal): Likewise.
5894 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5897 * NEWS: Mention the new option '--skip-unavailable' of command
5898 -data-list-register-values.
5899 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5900 --skip-unavailable option. Adjust to use output_register.
5901 (output_register): Add new 'skip_unavailable' parameter.
5904 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5906 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5907 common/i386-gcc-cpuid.h.
5908 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5909 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5910 Copy the latest version from upstream gcc.
5911 * common/linux-btrace.c: Include i386-cpuid.h.
5912 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5914 (cpu_supports_btrace): Likewise.
5915 * go32-nat.c: Include i386-cpuid.h.
5916 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5918 2013-06-19 Doug Evans <dje@google.com>
5920 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5921 (get_section_index): Ditto.
5923 2013-06-19 Tom Tromey <tromey@redhat.com>
5925 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5928 2013-06-18 Doug Evans <dje@google.com>
5930 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5932 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5933 Move test of cu_index closer to use. Print complaint if cu_index
5936 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5938 * machoread.c (oso_vector): Delete this global.
5939 (macho_register_oso): Add new parameter "oso_vector_ptr".
5940 Use it instead of the "oso_vector" global.
5941 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5942 (macho_symfile_read): Use a local oso_vector, to be free'ed
5943 at the end of this function, in place of the old "oso_vector"
5944 global. Update various function calls accordingly. Use one
5945 single cleanup chain for the entire function.
5947 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5949 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5950 DWARF2_PER_OBJFILE by uses of DATA instead.
5952 2013-06-18 Tom Tromey <tromey@redhat.com>
5954 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5956 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5957 Special case signals other than GDB_SIGNAL_TRAP.
5958 (explains_signal_watchpoint): New function.
5959 (base_breakpoint_explains_signal): Add 'sig' argument.
5960 (initialize_breakpoint_ops): Set 'explains_signal' method for
5962 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5964 (bpstat_explains_signal): Likewise.
5965 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5967 2013-06-18 Tom Tromey <tromey@redhat.com>
5969 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5971 2013-06-18 Tom Tromey <tromey@redhat.com>
5973 * python/python.c (finish_python_initialization): Decref
5974 'pythondir' on failure path as well.
5976 2013-06-18 Tom Tromey <tromey@redhat.com>
5979 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5980 after taking bits_to_skip into account. Sign extend byte_offset.
5981 * utils.h (gdb_sign_extend): Declare.
5982 * utils.c (gdb_sign_extend): New function.
5984 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5986 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5988 2013-06-17 Pierre Muller <muller@sourceware.org>
5990 * corelow.c (core_open): Print GDB signal name instead of target
5993 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5995 * .gitignore: Add /gcore.
5997 2013-06-13 Doug Evans <dje@google.com>
5999 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6000 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6002 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6004 * stack.c (backtrace_command_1): Fix indentation.
6006 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6008 * window-nat.c (thread_rec): Add missing empty line after
6009 local variable declaration.
6011 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6013 * windows-nat.c (thread_rec): Revert format used to print
6014 error code returned by SuspendThread from %d back to %u.
6016 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6018 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6020 (get_windows_debug_event): Likewise, for all debug traces.
6022 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6024 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6027 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6028 Yao Qi <yao@codesourcery.com>
6030 * mi/mi-main.c (get_register): Remove declaration.
6031 (output_register): Declare.
6032 (mi_cmd_data_list_register_values): Remove local variable
6033 'tuple_cleanup'. Move some code into output_register.
6034 (get_register): Renamed to ...
6035 (output_register): ... this. Output the register's
6036 "number" ui_out tuple here.
6038 2013-06-07 Pedro Alves <palves@redhat.com>
6040 * darwin-nat.c: Fix formating in copyright header.
6041 * darwin-nat.h: Likewise.
6042 * gnu-nat.c: Likewise.
6043 * machoread.c: Likewise.
6045 2013-06-07 Pedro Alves <palves@redhat.com>
6048 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6049 static. Output a global target description pointer.
6050 (init_registers_${name}): Adjust to initialize a
6051 target description structure.
6053 2013-06-07 Will Newton <will.newton@linaro.org>
6055 * printcmd.c (build_address_symbolic): Call
6056 gdbarch_addr_bits_remove for text minimal symbols.
6058 2013-06-07 Will Newton <will.newton@linaro.org>
6060 * MAINTAINERS: Add myself to Write After Approval.
6062 2013-06-07 Yao Qi <yao@codesourcery.com>
6064 * tracepoint.c (start_tracing): Move code to ...
6065 (trace_reset_local_state): ... here. New.
6066 (disconnect_tracing): Don't call set_current_traceframe,
6067 set_tracepoint_num, and set_traceframe_context. Call
6068 trace_reset_local_state instead.
6069 (tfile_close): Call trace_reset_local_state.
6070 * ctf.c (ctf_close): Likewise.
6071 * remote.c (remote_close): Likewise.
6072 * tracepoint.h (trace_reset_local_state): Declare.
6074 2013-06-06 Doug Evans <dje@google.com>
6076 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6077 and fix header docs.
6079 2013-06-05 Doug Evans <dje@google.com>
6080 Keith Seitz <keiths@redhat.com>
6083 * cp-namespace.c (find_symbol_in_baseclass): Call
6084 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6085 Check result of call to lookup_symbol_static.
6086 Call lookup_static_symbol_aux unconditionally.
6087 Call check_typedef on base types before accessing them.
6088 (cp_lookup_nested_symbol): Fix comment.
6090 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6092 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6093 minimal symbols pointing to function descriptors.
6095 2013-06-05 Tom Tromey <tromey@redhat.com>
6097 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6099 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6100 Pedro Alves <palves@redhat.com>
6102 * remote.c (remote_wait_as): Restore signal handler before returning
6103 when GDB gets a notification.
6105 2013-06-04 Gary Benson <gbenson@redhat.com>
6108 * breakpoint.h (handle_solib_event): Moved function declaration
6110 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6111 (bpstat_stop_status): Pass new argument to handle_solib_event.
6112 * solib.h (update_solib_breakpoints): New function declaration.
6113 (handle_solib_event): Moved function declaration from
6115 * solib.c (update_solib_breakpoints): New function.
6116 (handle_solib_event): Moved function from breakpoint.c.
6117 Updated to call solib_ops->handle_event if not NULL.
6118 * solist.h (target_so_ops): New fields "update_breakpoints" and
6120 * infrun.c (set_stop_on_solib_events): New function.
6121 (_initialize_infrun): Use the above for "set
6122 stop-on-solib-events".
6123 (handle_inferior_event): Pass new argument to handle_solib_event.
6124 * solib-svr4.c (probe.h): New include.
6125 (svr4_free_library_list): New forward declaration.
6126 (probe_action): New enum.
6127 (probe_info): New struct.
6128 (probe_info): New static variable.
6129 (NUM_PROBES): New definition.
6130 (svr4_info): New fields "using_xfer", "probes_table" and
6132 (free_probes_table): New function.
6133 (free_solib_list): New function.
6134 (svr4_pspace_data_cleanup): Free probes table and solib list.
6135 (svr4_copy_library_list): New function.
6136 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6137 (svr4_read_so_list): New parameter "prev_lm".
6138 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6139 (svr4_current_sos): New function.
6140 (probe_and_action): New struct.
6141 (hash_probe_and_action): New function.
6142 (equal_probe_and_action): Likewise.
6143 (register_solib_event_probe): Likewise.
6144 (solib_event_probe_at): Likewise.
6145 (solib_event_probe_action): Likewise.
6146 (solist_update_full): Likewise.
6147 (solist_update_incremental): Likewise.
6148 (disable_probes_interface_cleanup): Likewise.
6149 (svr4_handle_solib_event): Likewise.
6150 (svr4_update_solib_event_breakpoint): Likewise.
6151 (svr4_update_solib_event_breakpoints): Likewise.
6152 (svr4_create_solib_event_breakpoints): Likewise.
6153 (enable_break): Free probes table before creating breakpoints.
6154 Use svr4_create_solib_event_breakpoints to create breakpoints.
6155 (svr4_solib_create_inferior_hook): Free the solib list.
6156 (_initialize_svr4_solib): Initialise
6157 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6159 2013-06-04 Gary Benson <gbenson@redhat.com>
6161 * target.h (target_ops): New field
6162 "to_augmented_libraries_svr4_read".
6163 (target_augmented_libraries_svr4_read): New macro.
6164 * target.c (update_current_target): Handle
6165 to_augmented_libraries_svr4_read.
6166 * remote.c (remote_state): New field
6167 "augmented_libraries_svr4_read".
6168 (remote_augmented_libraries_svr4_read_feature): New function.
6169 (remote_protocol_features): Add entry for
6170 "augmented-libraries-svr4-read".
6171 (remote_augmented_libraries_svr4_read): New function.
6172 (init_remote_ops): Initialize
6173 remote_ops.to_augmented_libraries_svr4_read.
6175 2013-06-04 Gary Benson <gbenson@redhat.com>
6179 2013-06-04 Gary Benson <gbenson@redhat.com>
6181 * objfiles.h (inhibit_section_map_updates): New function
6183 (resume_section_map_updates): Likewise.
6184 (resume_section_map_updates_cleanup): Likewise.
6185 * objfiles.c (objfile_pspace_info): Removed field
6186 "objfiles_changed_p". New fields "new_objfiles_available",
6187 "section_map_dirty" and "inhibit_updates".
6188 (allocate_objfile): Set new_objfiles_available.
6189 (free_objfile): Set section_map_dirty.
6190 (objfile_relocate1): Likewise.
6191 (in_plt_section): Likewise.
6192 (find_pc_section): Update the conditions under which the
6193 section map will be updated.
6194 (inhibit_section_map_updates): New function.
6195 (resume_section_map_updates): Likewise.
6196 (resume_section_map_updates_cleanup): Likewise.
6198 2013-06-04 Gary Benson <gbenson@redhat.com>
6200 * probe.h (get_probe_argument_count): New declaration.
6201 (evaluate_probe_argument): Likewise.
6202 * probe.c (get_probe_argument_count): New function.
6203 (evaluate_probe_argument): Likewise.
6204 (probe_safe_evaluate_at_pc): Use the above new functions.
6206 2013-06-04 Alan Modra <amodra@gmail.com>
6208 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6209 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6210 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6211 target mem reads on optional insns.
6212 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6213 ppc_insns_match_pattern calls.
6214 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6215 Add match for power7 thread safety insns, and new order of
6216 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6217 invocation in comment, and update rest of comment.
6218 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6219 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6220 (ppc64_standard_linkage2_target): Update insn offsets.
6221 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6222 stubs first. Update calls.
6224 2013-06-04 Yao Qi <yao@codesourcery.com>
6226 * solib.c (solib_find): Don't need dir separator if path has
6229 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6231 Revert (indirectly causes a SIGSEGV):
6232 * machoread.c (macho_symfile_read): Assign first cleanup to
6235 2013-06-03 Yao Qi <yao@codesourcery.com>
6237 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6238 mi-parse.c. Make them static.
6239 (mi_all_values): Likewise.
6240 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6241 mi_parse_print_values. Make it external.
6242 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6243 Remove the declarations.
6244 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6245 * mi/mi-parse.h (mi_parse_print_values): Declare.
6246 * mi/mi-cmd-stack.c: Include mi-parse.h.
6247 (parse_print_values): Remove
6248 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6249 of parse_print_values.
6250 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6252 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6253 Yao Qi <yao@codesourcery.com>
6255 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6256 (encode_actions): Move code to ...
6257 (all_tracepoint_actions_and_cleanup): ... here. New.
6258 (trace_dump_command): Likewise.
6260 2013-05-30 Tom Tromey <tromey@redhat.com>
6262 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6264 2013-05-30 Tom Tromey <tromey@redhat.com>
6266 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6267 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6268 'old_chain' argument. Add 'parser_result' argument.
6269 (gdb_xml_create_parser_and_cleanup): Remove old version.
6270 (gdb_xml_parse_quick): Update.
6271 (xml_process_xincludes): Update.
6272 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6275 2013-05-30 Tom Tromey <tromey@redhat.com>
6277 * probe.c (collect_probes): Check arguments for NULL before
6278 calling compile_rx_or_error.
6279 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6282 2013-05-30 Tom Tromey <tromey@redhat.com>
6284 * infrun.c (adjust_pc_after_break): Introduce an outer null
6287 2013-05-30 Tom Tromey <tromey@redhat.com>
6289 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6291 2013-05-30 Tom Tromey <tromey@redhat.com>
6293 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6294 for 'old_chain'. Do not check 'head' before processing
6297 2013-05-30 Tom Tromey <tromey@redhat.com>
6299 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6302 2013-05-30 Tom Tromey <tromey@redhat.com>
6304 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6305 inner scope. Unconditionally call do_cleanups.
6307 2013-05-30 Tom Tromey <tromey@redhat.com>
6309 * source.c (find_and_open_source): Call do_cleanups.
6311 2013-05-30 Tom Tromey <tromey@redhat.com>
6313 * linux-thread-db.c (thread_db_load_search): Unconditionally
6316 2013-05-30 Tom Tromey <tromey@redhat.com>
6318 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6319 for 'cleanup'; instead use a later one.
6321 2013-05-30 Tom Tromey <tromey@redhat.com>
6323 * python/py-breakpoint.c (bppy_get_commands): Use
6324 explicit, unconditional return.
6325 * python/py-frame.c (frapy_read_var): Likewise.
6326 * python/python.c (gdbpy_decode_line): Likewise.
6328 2013-05-30 Tom Tromey <tromey@redhat.com>
6330 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6331 do_cleanups on all return paths.
6333 2013-05-30 Tom Tromey <tromey@redhat.com>
6335 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6337 2013-05-30 Tom Tromey <tromey@redhat.com>
6339 * stabsread.c (read_struct_type): Call do_cleanups along
6342 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6344 * mips-linux-tdep.c: Adjust formatting throughout.
6346 2013-05-30 Tom Tromey <tromey@redhat.com>
6348 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6349 along all return paths.
6351 2013-05-30 Tom Tromey <tromey@redhat.com>
6353 * symfile.c (find_separate_debug_file): Call do_cleanups
6354 along all return paths.
6356 2013-05-30 Tom Tromey <tromey@redhat.com>
6358 * symtab.c (search_symbols): Introduce a null cleanup for
6361 2013-05-30 Tom Tromey <tromey@redhat.com>
6363 * python/py-value.c (valpy_binop): Call do_cleanups before
6366 2013-05-30 Tom Tromey <tromey@redhat.com>
6368 * python/py-prettyprint.c (print_children): Remove extra
6371 2013-05-30 Tom Tromey <tromey@redhat.com>
6373 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6376 2013-05-30 Tom Tromey <tromey@redhat.com>
6378 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6379 along all return paths.
6381 2013-05-30 Tom Tromey <tromey@redhat.com>
6383 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6386 2013-05-30 Tom Tromey <tromey@redhat.com>
6388 * varobj.c (c_value_of_root): Call do_cleanups along all
6391 2013-05-30 Tom Tromey <tromey@redhat.com>
6393 * tracepoint.c (trace_dump_command): Unconditionally call
6396 2013-05-30 Tom Tromey <tromey@redhat.com>
6398 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6399 do_cleanups earlier.
6401 2013-05-30 Tom Tromey <tromey@redhat.com>
6403 * machoread.c (macho_symfile_read): Assign first cleanup to
6406 2013-05-30 Tom Tromey <tromey@redhat.com>
6408 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6410 2013-05-30 Tom Tromey <tromey@redhat.com>
6412 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6414 2013-05-30 Tom Tromey <tromey@redhat.com>
6416 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6417 call discard_cleanups.
6418 (inf_ptrace_attach): Likewise.
6420 2013-05-30 Tom Tromey <tromey@redhat.com>
6422 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6424 (mips_initialize): Likewise.
6425 (common_open): Call do_cleanups.
6427 2013-05-30 Tom Tromey <tromey@redhat.com>
6429 * utils.c (internal_vproblem): Call do_cleanups.
6431 2013-05-30 Tom Tromey <tromey@redhat.com>
6433 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6435 2013-05-30 Tom Tromey <tromey@redhat.com>
6437 * cli/cli-script.c (setup_user_args): Don't return after error.
6439 2013-05-30 Tom Tromey <tromey@redhat.com>
6441 * somread.c (som_symtab_read): Call do_cleanups.
6443 2013-05-30 Tom Tromey <tromey@redhat.com>
6445 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6447 2013-05-30 Tom Tromey <tromey@redhat.com>
6449 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6450 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6451 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6452 * source.c (show_substitute_path_command): Call do_cleanups.
6453 (unset_substitute_path_command, set_substitute_path_command):
6455 * symfile.c (load_command): Call do_cleanups.
6457 2013-05-30 Tom Tromey <tromey@redhat.com>
6459 * contrib/cleanup_check.py: New file.
6460 * contrib/gcc-with-excheck: Add option parsing.
6462 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6464 * windows-nat.c (windows_delete_thread): Add missing space
6467 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6469 * inferior.c (top level): Include tilde.h.
6470 (add_inferior_command): Call tilde_expand on the value of 'exec'
6473 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6474 Yao Qi <yao@codesourcery.com>
6476 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6478 (encode_actions): Likewise.
6479 * remote.c (remote_download_tracepoint): Caller update.
6480 * tracepoint.h (encode_actions): Update declaration.
6482 2013-05-30 Pedro Alves <palves@redhat.com>
6484 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6487 2013-05-30 Yao Qi <yao@codesourcery.com>
6489 * remote.c (remote_check_symbols): Remove unused parameter
6492 (remote_start_remote, remote_new_objfile): Caller update.
6494 2013-05-30 Yao Qi <yao@codesourcery.com>
6496 * mi/mi-cmds.c (mi_cmds): Define MI command
6497 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6500 2013-05-29 Pedro Alves <palves@redhat.com>
6502 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6503 (remote_insert_watchpoint, remote_remove_watchpoint)
6504 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6505 (remote_verify_memory, compare_sections_command)
6506 (remote_search_memory): Set the general process/thread on the
6509 2013-05-29 Pedro Alves <palves@redhat.com>
6511 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6512 (_initialize_aarch64_tdep): Don't call
6513 initialize_tdesc_aarch64_without_fpu.
6514 * features/Makefile (WHICH): Remove reference to
6515 aarch64-without-fpu.
6516 * features/aarch64-without-fpu.c: Delete file.
6517 * regformats/aarch64-without-fpu.dat: Delete file.
6519 2013-05-28 Yao Qi <yao@codesourcery.com>
6521 * tracepoint.c (stringify_collection_list): Remove parameter
6523 (encode_actions): Caller update. Remove local variables.
6525 2013-05-24 Yao Qi <yao@codesourcery.com>
6527 * tracepoint.c (TFILE_PID): Remove.
6528 (tfile_open): Don't add thread and inferior.
6529 (tfile_close): Don't set 'inferior_ptid'. Don't call
6530 exit_inferior_silent.
6531 (tfile_thread_alive): Remove.
6532 (init_tfile_ops): Don't set field 'to_thread_alive' of
6535 2013-05-23 Doug Evans <dje@google.com>
6537 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6539 2013-05-23 Pedro Alves <palves@redhat.com>
6541 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6542 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6543 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6544 Only define if HAVE_SOCKETS is defined.
6545 * configure.ac: Check for sys/socket.h.
6546 * config.in, configure: Regenerate.
6548 2013-05-23 Pedro Alves <palves@redhat.com>
6550 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6551 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6552 printing uint32_t variables.
6554 2013-05-23 Pedro Alves <palves@redhat.com>
6556 * NEWS: Mention GDBserver range stepping support.
6558 2013-05-23 Yao Qi <yao@codesourcery.com>
6559 Pedro Alves <palves@redhat.com>
6561 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6563 * infcmd.c (step_once, until_next_command): Enable range stepping.
6564 * infrun.c (displaced_step_prepare): Disable range stepping.
6565 (resume): Disable range stepping if stepping over a breakpoint or
6566 we have software watchpoints. If range stepping is enabled,
6567 assert the thread is in the stepping range.
6568 (clear_proceed_status_thread): Clear may_range_step.
6569 (handle_inferior_event): Disable range stepping as soon as we know
6570 the thread that hit the event. Re-enable it whenever we're going
6571 to step with a step range.
6572 * remote.c (struct vCont_action_support) <r>: New field.
6573 (use_range_stepping): New global.
6574 (remote_vcont_probe): Handle 'r' action.
6575 (append_resumption): Append an 'r' action if the thread may range
6577 (show_range_stepping): New function.
6578 (set_range_stepping): New function.
6579 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6580 'set range-stepping' and 'show range-stepping' commands.
6581 * NEWS: Mention range stepping, the new vCont;r action, and the
6582 new "set/show range-stepping" commands.
6584 2013-05-23 Yao Qi <yao@codesourcery.com>
6585 Pedro Alves <palves@redhat.com>
6587 * remote.c (struct vCont_action_support): New struct.
6588 (struct remote_state) <support_vCont_t>: Remove field.
6589 <vCont_actions_support>: New field.
6590 (remote_vcont_probe, remote_stop_ns): Update.
6592 2013-05-23 Yao Qi <yao@codesourcery.com>
6593 Pedro Alves <palves@redhat.com>
6595 * gdbthread.h (pc_in_thread_step_range): New declaration.
6596 * thread.c (pc_in_thread_step_range): New function.
6597 * infrun.c (handle_inferior_event): Use it.
6599 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6601 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6604 2013-05-22 Keith Seitz <keiths@redhat.com>
6606 * ada-lang.c (is_known_support_routine): Add explicit free of
6607 'func_name' from find_frame_funname.
6608 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6609 for func_name from find_frame_funname.
6610 * python/py-frame.c (frapy_name): Add explicit free of
6611 'name' from find_frame_funname.
6612 * stack.c (find_frame_funname): Add comment explaining that
6613 funcp must be freed by the caller.
6614 Return copy of symbol names instead of pointers.
6615 (print_frame): Add a cleanup for 'funname' from
6617 * stack.h (find_frame_funname): Remove "const" from
6618 'funname' parameter.
6620 2013-05-22 Tom Tromey <tromey@redhat.com>
6623 * c-valprint.c (c_value_print): Use value_addr for
6624 references. Convert back to reference type with value_ref.
6626 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6628 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6629 unloaded DLL, it will be done by handle_solib_event. See
6630 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6633 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6635 * ui-out.c: Create typedef ui_out_level_p and define vector
6636 operations for that type.
6637 (struct ui_out): Use a vector instead of an array.
6638 (current_level): Return level from a vector.
6639 (push_level): Create a level in a vector.
6640 (pop_level): Delete a level in a vector.
6641 (ui_out_new): Create initial level zero level, and store in a
6643 (ui_out_destroy): Add vector cleanup.
6645 2013-05-22 Pedro Alves <palves@redhat.com>
6647 * python/python-internal.h (gdb_Py_DECREF): Tag with
6648 "ARI: editCase function".
6650 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6652 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6654 2013-05-21 Pedro Alves <palves@redhat.com>
6656 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6657 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6658 * python/py-utils.c (py_decref): Don't check for NULL before
6661 2013-05-21 Pedro Alves <palves@redhat.com>
6663 * python/py-utils.c (py_decref): Remove extra braces.
6664 (gdb_pymodule_addobject): Remove extra braces.
6665 * python-internal.h (gdb_Py_DECREF): New static inline function.
6666 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6668 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6670 * breakpoints.c (detach_breakpoints): Do not
6671 detach breakpoints locations with loc_type bp_loc_other.
6673 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6675 Workaround Python 2.6.
6676 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6679 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6681 Code cleanup: constification.
6682 * solib.c (solib_ops): Make return type and ops variable type const.
6683 (set_solib_ops): Make the new_ops parameter and ops variable const.
6684 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6685 (solib_add, solib_keep_data_in_core, clear_solib)
6686 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6687 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6689 * solib.h (set_solib_ops): Make the new_ops parameter const.
6691 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6693 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6695 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6696 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6697 (SYSTEM_GDBINIT_FILES): New variables.
6698 (all): Add stamp-system-gdbinit.
6699 (stamp-system-gdbinit): New rule.
6700 (clean-system-gdbinit, install-system-gdbinit)
6701 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6702 (install-only): Add dependency on install-system-gdbinit.
6703 (uninstall): Add dependency on uninstall-system-gdbinit.
6704 (clean): Add dependency on clean-system-gdbinit.
6705 * system-gdbinit/elinos.py: New file.
6706 * system-gdbinit/wrs-linux.py: New file.
6708 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6710 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6712 2013-05-21 Hui Zhu <hui@codesourcery.com>
6714 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6715 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6716 * mi/mi-cmd-break.c (ctype.h): New include.
6717 (gdb_obstack.h): New include.
6718 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6719 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6720 (mi_cmd_dprintf_insert): New.
6721 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6722 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6724 2013-05-20 Tom Tromey <tromey@redhat.com>
6726 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6728 2013-05-20 Tom Tromey <tromey@redhat.com>
6730 * python/py-value.c (valpy_get_dynamic_type): Simplify
6731 dynamic_type assignment. Use Py_XINCREF.
6733 2013-05-20 Tom Tromey <tromey@redhat.com>
6735 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6737 2013-05-20 Tom Tromey <tromey@redhat.com>
6739 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6740 (gdbpy_selected_frame): Move object-construction code
6743 2013-05-20 Tom Tromey <tromey@redhat.com>
6745 * python/py-arch.c (gdbpy_initialize_arch): Use
6746 gdb_pymodule_addobject.
6747 * python/py-block.c (gdbpy_initialize_blocks): Use
6748 gdb_pymodule_addobject.
6749 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6750 gdb_pymodule_addobject.
6751 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6752 gdb_pymodule_addobject.
6753 * python/py-event.c (gdbpy_initialize_event_generic): Use
6754 gdb_pymodule_addobject.
6755 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6756 gdb_pymodule_addobject.
6757 * python/py-evts.c (add_new_registry): Use
6758 gdb_pymodule_addobject.
6759 (gdbpy_initialize_py_events): Likewise.
6760 * python/py-finishbreakpoint.c
6761 (gdbpy_initialize_finishbreakpoints): Use
6762 gdb_pymodule_addobject.
6763 * python/py-frame.c (gdbpy_initialize_frames): Use
6764 gdb_pymodule_addobject.
6765 * python/py-function.c (gdbpy_initialize_functions): Use
6766 gdb_pymodule_addobject.
6767 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6768 gdb_pymodule_addobject.
6769 * python/py-infthread.c (gdbpy_initialize_thread): Use
6770 gdb_pymodule_addobject.
6771 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6772 gdb_pymodule_addobject.
6773 * python/py-param.c (gdbpy_initialize_parameters): Use
6774 gdb_pymodule_addobject.
6775 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6776 gdb_pymodule_addobject.
6777 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6778 gdb_pymodule_addobject.
6779 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6780 gdb_pymodule_addobject.
6781 * python/py-type.c (gdbpy_initialize_types): Use
6782 gdb_pymodule_addobject.
6783 * python/py-utils.c (gdb_pymodule_addobject): New function.
6784 * python/py-value.c (gdbpy_initialize_values): Use
6785 gdb_pymodule_addobject.
6786 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6787 * python/python.c (_initialize_python): Use
6788 gdb_pymodule_addobject.
6790 2013-05-20 Tom Tromey <tromey@redhat.com>
6792 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6793 * python/py-param.c (get_set_value, get_show_value): Use
6795 * python/python.c (start_type_printers, apply_type_printers):
6796 Use explicit decrefs.
6798 2013-05-20 Tom Tromey <tromey@redhat.com>
6800 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6803 2013-05-20 Tom Tromey <tromey@redhat.com>
6805 * python/python.c (gdbpy_run_events): Decref the result
6806 of PyObject_CallObject.
6808 2013-05-20 Tom Tromey <tromey@redhat.com>
6810 * python/py-symtab.c (set_sal): Use
6811 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6812 (symtab_and_line_to_sal_object): Update.
6814 2013-05-20 Tom Tromey <tromey@redhat.com>
6816 * python/py-param.c (compute_enum_values): Decref 'item'.
6818 2013-05-20 Tom Tromey <tromey@redhat.com>
6820 * mi/mi-main.c: Include python-internal.h.
6821 (mi_cmd_list_features): Check gdb_python_initialized.
6822 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6823 (python_inferior_exit, python_new_objfile, add_thread_object)
6824 (delete_thread_object, py_free_inferior): Check
6825 gdb_python_initialized.
6826 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6827 gdb_python_initialized.
6828 * python/py-type.c (save_objfile_types): Check
6829 gdb_python_initialized.
6830 * python/python-internal.h (gdb_python_initialized): Declare.
6831 * python/python.c (ensure_python_env): Throw exception if
6832 Python not initialized.
6833 (before_prompt_hook, source_python_script_for_objfile)
6834 (start_type_printers, apply_type_printers,
6835 free_type_printers): Check gdb_python_initialized.
6836 * varobj.c (varobj_get_display_hint)
6837 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6838 (install_new_value_visualizer, varobj_set_visualizer)
6839 (value_get_print_value): Check gdb_python_initialized.
6841 2013-05-20 Tom Tromey <tromey@redhat.com>
6843 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6845 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6846 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6848 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6850 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6852 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6854 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6855 init function to return 'int'.
6856 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6857 Return 'int'. Check errors.
6858 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6860 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6861 Return 'int'. Check errors.
6862 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6864 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6866 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6868 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6870 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6872 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6874 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6876 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6878 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6880 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6882 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6884 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6886 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6888 * python/python-internal.h (gdbpy_initialize_auto_load,
6889 gdbpy_initialize_values, gdbpy_initialize_frames,
6890 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6891 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6892 gdbpy_initialize_blocks, gdbpy_initialize_types,
6893 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6894 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6895 gdbpy_initialize_finishbreakpoints,
6896 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6897 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6898 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6899 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6900 gdbpy_initialize_signal_event,
6901 gdbpy_initialize_breakpoint_event,
6902 gdbpy_initialize_continue_event,
6903 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6904 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6905 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6906 * python/python.c (gdb_python_initialized): New global.
6907 (gdbpy_initialize_events): Return 'int'. Check errors.
6908 (_initialize_python): Check errors. Set
6909 gdb_python_initialized.
6911 2013-05-20 Tom Tromey <tromey@redhat.com>
6913 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6914 Decref the reslut of PyObject_CallMethod.
6916 2013-05-20 Tom Tromey <tromey@redhat.com>
6918 * python/py-event.c (gdbpy_initialize_event_generic): Return
6919 early if PyType_Ready fails.
6921 2013-05-20 Tom Tromey <tromey@redhat.com>
6923 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6924 as 'default' in the switch.
6926 2013-05-20 Tom Tromey <tromey@redhat.com>
6928 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6929 get_addr_from_python calls out of TRY_CATCH.
6930 (infpy_write_memory, infpy_search_memory): Likewise.
6931 * python/py-utils.c (get_addr_from_python): Return negative
6932 value on error. Use TRY_CATCH.
6933 * python/python-internal.h (get_addr_from_python): Use
6934 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6936 2013-05-20 Tom Tromey <tromey@redhat.com>
6938 * python/py-event.c (evpy_emit_event): Decref the
6939 result of PyObject_CallFunctionObjArgs.
6941 2013-05-20 Tom Tromey <tromey@redhat.com>
6943 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6946 2013-05-20 Tom Tromey <tromey@redhat.com>
6948 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6950 2013-05-20 Tom Tromey <tromey@redhat.com>
6952 * python/py-event.h (gdbpy_initialize_event_generic): Use
6953 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6954 * python/py-evts.c (add_new_registry): Use
6955 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6956 * python/python-internal.h
6957 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6959 2013-05-20 Tom Tromey <tromey@redhat.com>
6961 * python/py-arch.c (archpy_disassemble): Update.
6962 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6963 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6964 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6965 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6967 (GDB_PY_HANDLE_EXCEPTION): Update.
6968 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6970 2013-05-20 Tom Tromey <tromey@redhat.com>
6972 * python/python-internal.h (events_object_type): Remove.
6974 2013-05-20 Tom Tromey <tromey@redhat.com>
6976 * python/py-event.h (evpy_emit_event): Use
6977 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6978 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6981 2013-05-20 Tom Tromey <tromey@redhat.com>
6983 * py-evtregistry.c (create_event_object): Decref
6984 eventregistry_object if PyList_New fails.
6986 2013-05-20 Tom Tromey <tromey@redhat.com>
6988 * py-cmd.c (gdbpy_string_to_argv): Check result of
6991 2013-05-20 Tom Tromey <tromey@redhat.com>
6993 * python/python.c (before_prompt_hook): Add cleanup to
6996 2013-05-20 Tom Tromey <tromey@redhat.com>
6998 * python/py-function.c (fnpy_init): Decref result of
6999 PyObject_GetAttrString.
7001 2013-05-20 Tom Tromey <tromey@redhat.com>
7003 * python/py-threadevent.c (get_event_thread): Use
7004 CPYCHECKER_RETURNS_BORROWED_REF.
7005 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7007 (pspace_to_pspace_object, objfile_to_objfile_object)
7008 (find_thread_object): Use it.
7010 2013-05-20 Tom Tromey <tromey@redhat.com>
7012 * python/py-arch.c (arch_object_type): Use
7013 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7014 * python/py-block.c (block_syms_iterator_object_type):
7015 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7016 * python/py-bpevent.c (breakpoint_event_object_type):
7017 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7018 * python/py-cmd.c (cmdpy_object_type): Use
7019 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7020 * python/py-continueevent.c (continue_event_object_type):
7021 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7022 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7023 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7024 * python/py-events.h (thread_event_object_type):
7025 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7026 * python/py-evtregistry.c (eventregistry_object_type): Use
7027 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7028 * python/py-exitedevent.c (exited_event_object_type):
7029 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7030 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7031 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7032 * python/py-function.c (fnpy_object_type): Use
7033 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7034 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7035 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7036 * python/py-infthread.c (thread_object_type): Use
7037 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7038 * python/py-lazy-string.c (lazy_string_object_type):
7039 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7040 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7041 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7042 * python/py-objfile.c (objfile_object_type): Use
7043 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7044 * python/py-param.c (parmpy_object_type):
7045 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7046 * python/py-progspace.c (pspace_object_type):
7047 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7048 * python/py-signalevent.c (signal_event_object_type):
7049 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7050 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7051 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7052 * python/py-type.c (type_object_type, field_object_type)
7053 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7054 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7056 (value_object_type, block_object_type, symbol_object_type)
7057 (event_object_type, stop_event_object_type, breakpoint_object_type)
7058 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7060 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7062 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7063 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7065 2013-05-20 Doug Evans <dje@google.com>
7067 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7069 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7070 reading_dwo_directly.
7071 (struct signatured_type): New member dwo_unit.
7072 (struct die_reader_specs): New member comp_dir.
7073 (create_signatured_type_table_from_index): Use malloc for
7074 all_type_units instead of objfile's obstack.
7075 (create_all_type_units): Ditto.
7076 (fill_in_sig_entry_from_dwo_entry): New function.
7077 (add_type_unit): New function.
7078 (lookup_dwo_signatured_type): New function.
7079 (lookup_dwp_signatured_type): New function.
7080 (lookup_signatured_type): New arg cu. All callers updated.
7081 (init_cu_die_reader): Initialize comp_dir.
7082 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7083 Change assert of matching type signatures to call error on mismatch.
7084 (lookup_dwo_unit): Add assert.
7085 (init_tu_and_read_dwo_dies): New function.
7086 (init_cutu_and_read_dies): Call it.
7087 (build_type_unit_groups): Handle case of no type unit groups created.
7088 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7089 (lookup_dwo_cutu): Tweak complaint.
7090 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7091 (dwarf2_per_objfile_free): Free all_type_units.
7093 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7095 * windows-nat.c (handle_unload_dll): Add missing empty line.
7097 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7099 * dwarf2read.c (prototyped_function_p): New function.
7100 (read_subroutine_type): Use it.
7102 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7104 * rs6000-aix-tdep.c: De-indent some example code provided
7107 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7109 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7110 region is ok for a hardware watchpoint using the new ptrace interface
7113 2013-05-17 Doug Evans <dje@google.com>
7115 * NEWS: Mention new maintenance commands check-symtabs, and
7116 expand-symtabs, and renamed check-psymtabs.
7117 * psymtab.c (maintenance_check_psymtabs): Renamed from
7118 maintenance_check_symtabs. Only process already-expanded symbol
7120 (_initialize_psymtab): Update.
7121 * symmisc.c (maintenance_check_symtabs): New function.
7122 (maintenance_expand_name_matcher): New function
7123 (maintenance_expand_file_matcher): New function
7124 (maintenance_expand_symtabs): New function.
7125 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7128 2013-05-17 Tom Tromey <tromey@redhat.com>
7130 * python/py-inferior.c (infpy_read_memory): Don't call
7131 PyErr_SetString if PyObject_New fails.
7132 * python/py-frame.c (frame_info_to_frame_object): Don't call
7133 PyErr_SetString if PyObject_New fails.
7135 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7137 * acinclude.m4: Add check for dlopen in libdl.
7138 * configure.ac: Ditto.
7139 * configure: Regenerate.
7141 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7143 * frame.c (frame_stash): Convert to htab.
7144 (frame_addr_hash): New function.
7145 (frame_addr_hash_eq): New function.
7146 (frame_stash_create): Convert function to create
7148 (frame_stash_add): Convert function to add an entry to a hash
7150 (frame_stash_find): Convert function to search the hash table.
7151 (frame_stash_invalidate): Convert function to empty the hash
7153 (get_frame_id): Only add to stash if a frame_id is created.
7154 (_initialize_frame): Call frame_stash_create.
7156 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7158 * configure.ac: Ensure MIG is available when building for GNU Hurd
7160 * configure: Regenerate.
7162 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7164 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7166 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7168 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7169 all cleanups are done before returning from this function.
7171 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7173 * utils.h: #include "exceptions.h".
7174 (enum errors): Remove partial declaration.
7176 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7178 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7179 * gdbarch.h, gdbarch.c: Regenerate.
7180 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7183 * rs6000-aix-tdep.h: New file.
7184 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7185 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7187 (struct field_info, struct ld_info_desc): New types.
7188 (ld_info32_desc, ld_info64_desc): New static constants.
7189 (struct ld_info): New type.
7190 (rs6000_aix_extract_ld_info): New function.
7191 (rs6000_aix_shared_library_to_xml): Likewise.
7192 (rs6000_aix_ld_info_to_xml): Likewise.
7193 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7194 (rs6000_aix_init_osabi): Add call to
7195 set_gdbarch_core_xfer_shared_libraries_aix.
7196 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7197 Remove "xml-utils.h" include.
7198 (LdInfo): Delete typedef.
7199 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7201 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7202 Adjust code accordingly.
7203 (rs6000_core_ldinfo): Delete, folded into
7204 rs6000_aix_core_xfer_shared_libraries_aix.
7205 (rs6000_xfer_shared_library): Delete.
7206 (rs6000_xfer_shared_libraries): Reimplement.
7208 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7210 * record.c (record_goto_cmdlist): New.
7211 (cmd_record_goto): Split into this ...
7212 (cmd_record_goto_begin): ... this
7213 (cmd_record_goto_end): ... and this.
7214 (_initialize_record): Change "record goto" to prefix command.
7215 Add commands for "record goto begin" and "record goto end".
7216 Add an alias for "record goto start" to "record goto begin".
7218 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7220 * linespec.c (convert_linespec_to_sals): New comment for
7221 SOURCE_FILENAME assignment.
7223 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7228 2013-05-14 Tom Tromey <tromey@redhat.com>
7230 * eval.c (parse_and_eval_long): Make 'exp' const.
7231 * value.h (parse_and_eval_long): Update.
7233 2013-05-14 Tom Tromey <tromey@redhat.com>
7235 * ui-file.c (gdb_fopen): Make arguments const.
7236 * ui-file.h (gdb_fopen): Make arguments const.
7238 2013-05-14 Tom Tromey <tromey@redhat.com>
7240 * remote.c (remote_set_trace_notes): Make arguments const.
7241 * target.c (update_current_target): Update cast.
7242 * target.h (to_set_trace_notes): Make arguments const.
7244 2013-05-14 Tom Tromey <tromey@redhat.com>
7246 * go32-nat.c (go32_terminal_info): Make 'args' const.
7247 * inferior.h (child_terminal_info): Update.
7248 * inflow.c (child_terminal_info): Make 'args' const.
7249 * target.c (default_terminal_info): Make 'args' const.
7250 (debug_to_terminal_save_ours): Likewise.
7251 * target.h (struct target_ops) <to_terminal_info>: Make argument
7254 2013-05-13 Tom Tromey <tromey@redhat.com>
7256 * gcore.c (create_gcore_bfd): Make 'filename' const.
7257 * gcore.h (create_gcore_bfd): Make 'filename' const.
7258 * record-full.c (record_full_save): Make 'recfilename' const.
7259 * target.c (target_save_record): Make 'filename' const.
7260 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7262 (target_save_record): Likewise.
7264 2013-05-13 Tom Tromey <tromey@redhat.com>
7267 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7268 ranges section has been read.
7270 2013-05-13 Tom Tromey <tromey@redhat.com>
7273 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7274 STRUCTOP_PTR>: Return a not_lval value for
7275 EVAL_AVOID_SIDE_EFFECTS.
7276 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7277 for EVAL_AVOID_SIDE_EFFECTS.
7279 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7281 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7282 floating point registers to register type before storing
7284 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7287 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7288 Tom Tromey <tromey@redhat.com>
7290 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7292 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7294 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7295 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7296 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7297 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7299 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7300 Tom Tromey <tromey@redhat.com>
7303 * configure: Rebuild.
7304 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7307 2013-05-10 Pedro Alves <palves@redhat.com>
7309 * remote.c (_initialize_remote): Fix spelling of
7310 qXfer:traceframe-info:read packet in packet config command.
7312 2013-05-10 David Taylor <dtaylor@emc.com>
7316 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7317 "QTro" at start of packet.
7319 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7321 * solib-aix.c (solib_aix_relocate_section_addresses):
7322 For the .bss section action, apply the same offset as
7325 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7327 * solib-aix.c (solib_aix_relocate_section_addresses):
7328 Remove FIXME comment.
7330 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7333 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7334 New functions, directly copied from sparc-sol-thread.c.
7335 * sparc-sol-thread.c: Delete.
7336 * configure.ac: Remove code handling sparc-solaris-thread.c.
7337 * configure: Regenerate.
7339 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7341 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7343 (backtrace_command): Add "no-filters" option parsing.
7344 (_initialize_stack): Alter help to reflect "no-filters" option.
7345 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7346 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7347 (py-frame.o): Add target
7348 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7350 * python/python.h: Add new frame filter constants, and flag enum.
7351 (apply_frame_filter): Add definition.
7352 * python/python.c (apply_frame_filter): New non-Python
7354 * python/py-utils.c (py_xdecref): New function.
7355 (make_cleanup_py_xdecref): Ditto.
7356 * python/py-objfile.c: Declare frame_filters dictionary.
7357 (objfpy_dealloc): Add frame_filters dealloc.
7358 (objfpy_new): Initialize frame_filters attribute.
7359 (objfile_to_objfile_object): Ditto.
7360 (objfpy_get_frame_filters): New function.
7361 (objfpy_set_frame_filters): New function.
7362 * python/py-progspace.c: Declare frame_filters dictionary.
7363 (pspy_dealloc): Add frame_filters dealloc.
7364 (pspy_new): Initialize frame_filters attribute.
7365 (pspacee_to_pspace_object): Ditto.
7366 (pspy_get_frame_filters): New function.
7367 (pspy_set_frame_filters): New function.
7368 * python/py-framefilter.c: New file.
7369 * python/lib/gdb/command/frame_filters.py: New file.
7370 * python/lib/gdb/frames.py: New file.
7371 * python/lib/gdb/__init__.py: Initialize global frame_filters
7373 * python/lib/gdb/FrameDecorator.py: New file.
7374 * python/lib/gdb/FrameIterator.py: New file.
7375 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7376 * mi/mi-cmds.h: Declare.
7377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7378 --no-frame-filter logic, and Python frame filter logic.
7379 (stack_enable_frame_filters): New function.
7380 (parse_no_frame_option): Ditto.
7381 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7383 (mi_cmd_stack_list_locals): Ditto.
7384 (mi_cmd_stack_list_args): Ditto.
7385 (mi_cmd_stack_list_variables): Ditto.
7386 * NEWS: Add frame filter note.
7388 2013-05-09 Doug Evans <dje@google.com>
7390 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7391 All callers updated.
7392 (syms_from_objfile): Ditto. Make static.
7393 (symbol_file_add_with_addrs): Renamed from
7394 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7395 num_offsets. All callers updated.
7396 * symfile.h (syms_from_objfile): Delete.
7398 * symfile.c (decrement_reading_symtab): Add assert.
7399 (increment_reading_symtab): Ditto.
7401 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7403 * source.c (forward_search_command): Replace call to getc
7405 (reverse_search_command): Likewise.
7407 2013-05-08 Doug Evans <dje@google.com>
7409 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7412 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7414 * sol-thread.c (info_cb): Factorize the code a little.
7416 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7418 * sol-thread.c (info_cb): Rework the output of the "maintenance
7419 info sol-threads" command a bit.
7421 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7423 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7424 Replace ti.ti_startfunc by ti.ti_pc.
7426 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7428 * solib-aix.c (solib_aix_free_library_list): New function
7429 for the case where HAVE_LIBEXPAT is not defined.
7431 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7433 PR breakpoints/15413:
7434 * breakpoint.c (condition_completer): Simplify the code to
7435 disconsider multiple locations of breakpoints when completing the
7436 "condition" command.
7438 2013-05-07 Pierre Muller <muller@sourceware.org>
7440 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7441 instead of <sys/wait.h>.
7443 2013-05-07 Pierre Muller <muller@sourceware.org>
7445 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7446 trailing new line from warning message.
7448 2013-05-07 Pierre Muller <muller@sourceware.org>
7450 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7451 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7453 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7455 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7456 error message (ARI fix).
7458 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7460 * features/library-list-aix.dtd: Replace library-list by
7462 * rs6000-nat.c: Replace library-list by library-list-aix
7464 * solib-aix.c: Likewise.
7466 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7468 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7469 Renames TARGET_OBJECT_AIX_LIBRARIES.
7470 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7471 TARGET_OBJECT_LIBRARIES_AIX throughout.
7472 * solib-aix.c: Likwise.
7474 2013-05-07 Yao Qi <yao@codesourcery.com>
7476 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7477 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7479 2013-05-07 Yao Qi <yao@codesourcery.com>
7481 * solib-dsbt.c (enable_break): Declare.
7482 (dsbt_current_sos): Remove call to enable_break2.
7483 (enable_break2): Rename to enable_break. Set solib breakpoint
7484 on '_dl_debug_state'.
7485 (enable_break): Remove.
7487 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7489 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7490 debug state prior to replicating existing hardware watchpoints or
7493 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 * gcore.c (gcore_create_callback): Ignore sections with
7496 separate_debug_objfile_backlink != NULL.
7498 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7499 Andrew Jenner <andrew@codesourcery.com>
7500 Chung-Lin Tang <cltang@codesourcery.com>
7501 Julian Brown <julian@codesourcery.com>
7503 Based on the nios2-elf port from Altera Corporation.
7505 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7507 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7508 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7509 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7510 * nios2-tdep.h: New.
7511 * nios2-tdep.c: New.
7512 * nios2-linux-tdep.c: New.
7513 * features/Makefile (WHICH): Add nios2-linux.
7514 (nios2-linux-expedite): Set.
7515 * features/nios2-cpu.xml: New.
7516 * features/nios2.xml: New.
7517 * features/nios2-linux.xml: New.
7518 * features/nios2.c: New (autogenerated).
7519 * features/nios2-linux.c: New (autogenerated).
7520 * regformats/nios2-linux.dat: New (autogenerated).
7521 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7524 2013-05-06 Doug Evans <dje@google.com>
7526 * symfile.c: Whitespace cleanup.
7528 * solist.h (struct target_so_ops): New member clear_so.
7529 * solib-svr4.c (svr4_clear_so): New function.
7530 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7531 * solib.c (clear_so): Renamed from free_so_symbols.
7532 All callers updated. Call target clear_so if it exists.
7534 2013-05-06 Tom Tromey <tromey@redhat.com>
7536 * ada-lang.c (ada_value_primitive_packed_val): Don't
7538 * value.c (set_value_parent): Incref the new parent and decref
7540 (value_copy, value_primitive_field): Use set_value_parent.
7542 2013-05-06 Tom Tromey <tromey@redhat.com>
7544 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7545 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7547 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7548 * dwarf2read.c (write_constant_as_bytes)
7549 (dwarf2_fetch_constant_bytes): New functions.
7551 2013-05-06 Tom Tromey <tromey@redhat.com>
7553 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7555 (dwarf2_const_value_attr): Update.
7557 2013-05-06 Tom Tromey <tromey@redhat.com>
7559 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7560 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7561 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7564 2013-05-06 Tom Tromey <tromey@redhat.com>
7566 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7569 2013-05-06 Doug Evans <dje@google.com>
7571 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7572 * stabsread.h (process_one_symbol): Update declaration.
7573 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7574 * elfread.c (elf_symfile_relocate_probe): Ditto.
7575 * psymtab.c (relocate_psymtabs): Ditto.
7576 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7577 (objfile_relocate): Ditto.
7578 * objfiles.h (objfile_relocate): Update declaration.
7579 * symfile.c (relative_addr_info_to_section_offsets): Constify
7581 (default_symfile_offsets): Ditto.
7582 (syms_from_objfile_1): Constify offsets parameter.
7583 (syms_from_objfile): Ditto.
7584 (symbol_file_add_with_addrs_or_offsets): Ditto.
7585 (symfile_map_offsets_to_segments): Constify data parameter.
7586 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7587 delta parameters of member relocate.
7588 (struct sym_probe_fns): Constify new_offsets,
7589 delta parameters of member sym_relocate_probe.
7590 (struct sym_fns): Constify section_addr_info parameter of member
7592 (relative_addr_info_to_section_offsets): Update declaration.
7593 (default_symfile_offsets): Ditto.
7594 (syms_from_objfile): Ditto.
7595 (symfile_map_offsets_to_segments): Ditto.
7597 * symfile.c (syms_from_objfile_1): Use correct section count when
7598 objfile->sf == NULL.
7600 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7602 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7604 2013-05-06 Doug Evans <dje@google.com>
7606 * psympriv.h (struct partial_symtab): Augment comment for member
7609 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7611 Reimplement shared library support on ppc-aix...
7612 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7613 * features/library-list-aix.dtd: New file.
7614 * solib-aix.h, solib-aix.c: New file.
7615 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7616 (rs6000_find_toc_address_hook): Delete.
7617 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7618 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7619 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7621 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7622 (vmap_symtab, fixup_breakpoints): Delete.
7623 (rs6000_xfer_shared_libraries): New function.
7624 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7625 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7626 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7627 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7628 (rs6000_xfer_shared_library): New function.
7629 (find_toc_address): Delete.
7630 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7631 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7632 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7633 before creating minimal symbol. Adjust function description
7635 (scan_xcoff_symtab): Replace call to
7636 prim_record_minimal_symbol_and_info by call to
7637 record_minimal_symbol.
7638 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7639 around default_symfile_offsets.
7640 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7641 powerpc-aix targets.
7642 * config/rs6000/nm-rs6000.h: Delete.
7643 * config/powerpc/aix.mh (NAT_FILE): Delete.
7644 (NATDEPFILES): Remove xcoffsolib.o.
7645 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7646 (ALL_TARGET_OBS): Add solib-aix.o.
7647 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7648 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7649 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7650 * xcoffsolib.h, xcoffsolib.c: Delete.
7652 * solib.c (reload_shared_libraries): Remove reference to
7653 SOLIB_CREATE_INFERIOR_HOOK.
7654 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7655 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7656 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7658 * corelow.c (deprecated_core_resize_section_table): Delete.
7659 * exec.c: Remove include of xcoffsolib.h".
7660 (map_vmap, vmap): Delete.
7661 (exec_close_1): Remove references to vmap.
7662 (exec_file_attach): Remove vmap handling code, and reference
7663 to DEPRECATED_IBM6000_TARGET.
7664 (bfdsec_to_vmap): Delete.
7665 (exec_files_info): Remove block of code handling VMAP.
7666 * infcmd.c (post_create_inferior): Remove reference to
7667 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7668 * infrun.c (follow_exec): Remove reference to
7669 SOLIB_CREATE_INFERIOR_HOOK.
7670 * stack.c (print_frame): Remove reference to PC_SOLIB.
7671 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7672 (dsbt_relocate_main_executable): Likewise.
7673 * solib-frv.c (frv_current_sos): Likewise.
7675 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7677 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7678 to target_write_memory and target_read_memory.
7680 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7682 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7683 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7685 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7687 * darwin-nat.c: Replace all "%x" instances in format strings
7688 into "0x%x" throughout.
7690 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7692 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7693 gdb_assert by call to MACH_CHECK_ERROR.
7694 (darwin_attach_pid): Raise an error rather than a failed
7695 assertion when various system calls failed. Report a warning
7696 instead of raising a failed assertion when PREV_NOT is not NULL
7697 after call to mach_port_request_notification.
7698 (darwin_ptrace_me): Raise an error rather than a failed
7699 assertion when read returns nonzero.
7701 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7703 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7705 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7707 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7709 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7711 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7712 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7713 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7714 a stale cleanup. Fix double free of NAME.
7716 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7718 * windows-nat.c (windows_delete_thread): Accept an additional
7719 argument, the thread's exit code, and announce thread death when
7720 print_thread_events is non-zero and we are deleting a thread that
7721 is not the main thread.
7722 (get_windows_debug_event): Pass thread exit code to
7723 windows_delete_thread.
7725 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7727 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7728 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7729 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7730 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7731 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7732 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7733 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7734 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7735 (gdbarch_tdep): New struct.
7736 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7738 (v850e3v5_register_name): New function.
7739 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7740 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7741 code handling the struct return conventions for the RH850 ABI.
7743 (v850_eight_byte_align_p): New function.
7744 (v850_push_call_dummy): Push structs by value, not by reference
7745 for the RH850 ABI. Add support for eight byte alignment.
7746 (v850_dbtrap_breakpoint_from_pc): New function.
7747 (v850_gdbarch_init): Add ABI detection code. Register
7748 v850e3v5_register_name for the v850e3v5 architecture. Set the
7749 number of registers for v850e3v5. Register
7750 v850_dbtrap_breakpoint_from_pc as appropriate.
7751 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7753 2013-05-03 Doug Evans <dje@google.com>
7755 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7756 of bfd_count_sections.
7757 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7758 * symfile.c (default_symfile_offsets): Ditto.
7759 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7760 one entry, not bfd_count_sections entries.
7762 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7764 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7765 `save' and `restore' register groups. Don't include SPL
7766 or SPH in these groups.
7767 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7768 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7769 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7770 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7771 dwarf2_append_unwinders().
7773 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7775 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7776 ignore SIGINT and SIGTRAP in case these internal signals are
7779 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7781 * darwin-nat.c (darwin_read_write_inferior): Change types
7782 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7783 of copy_count to "mach_msg_type_number_t".
7784 (darwin_read_dyld_info): Change type of parameter
7785 rdaddr to "gdb_byte *".
7787 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7789 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7790 of &info->load_map from "char *" to "gdb_byte *".
7792 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7794 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7795 from "char *" to "gdb_byte *".
7796 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7798 2013-04-30 Doug Evans <dje@google.com>
7800 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7801 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7802 DWO stub. If DWO isn't found, just use stub.
7803 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7805 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7806 calling init_cutu_and_read_dies.
7808 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7810 * target-descriptions.c (maint_print_c_tdesc_cmd):
7811 Add case to parse structures as register types and
7814 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7816 * MAINTAINERS (Write After Approval): Add myself to the list.
7818 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7820 * sol-thread.c (rw_common): Change type of parameter "buf"
7822 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7823 rw_common to "gdb_byte *" instead of "char *".
7825 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7827 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7828 of local variable msym to const struct bound_minimal_symbol.
7829 Adjust use accordingly.
7830 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7832 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7834 * i386gnu-nat.c (CREG_OFFSET): New macro.
7835 (creg_offset): New array.
7836 (CREG_ADDR): Use creg_offset instead of reg_offset.
7838 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7840 * mep-tdep.c (mep_write_pc): Delete.
7841 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7842 Add call to set_gdbarch_pc_regnum.
7844 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7846 * common/filestuff.c: Replace #include <dirent.h> by
7847 #include "gdb_dirent.h".
7849 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7851 * common/filestuff.c: Replace #include <sys/stat.h> by
7852 #include "gdb_stat.h".
7854 2013-04-29 Pierre Muller <muller@sourceware.org>
7856 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7857 editCase function rule.
7858 (get_DW_AT_signature_type): Likewise.
7860 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7862 * m32r-tdep.c (m32r_write_pc): Delete.
7863 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7864 Add call to set_gdbarch_pc_regnum.
7866 2013-04-29 Pierre Muller <muller@sourceware.org>
7868 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7870 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7872 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7874 2013-04-28 Yao Qi <yao@codesourcery.com>
7876 * solib-dsbt.c (fetch_loadmap): Re-indent.
7877 (displacement_from_map, enable_break2): Likewise.
7878 (dsbt_relocate_section_addresses): Likewise.
7880 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7884 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7887 * dwarf2read.c (process_full_comp_unit): Always create a static
7890 2013-04-25 Hui Zhu <hui@codesourcery.com>
7892 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7893 to loc->cmd_bytecode.
7895 2013-04-24 Doug Evans <dje@google.com>
7897 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7899 2013-04-22 Keith Seitz <keiths@redhat.com>
7901 * tracepoint.c (trace_save): Call the writer's start method.
7903 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7906 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7909 2013-04-23 Tom Tromey <tromey@redhat.com>
7911 * common/filestuff.c: Check USE_WIN32API before including
7913 (HAVE_F_GETFD): New define.
7914 (mark_cloexec): Check HAVE_F_GETFD.
7915 (gdb_open_cloexec): Change 'mode' to unsigned long.
7916 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7917 (gdb_pipe_cloexec): Check HAVE_PIPE.
7918 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7921 2013-04-23 Hui Zhu <hui@codesourcery.com>
7924 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7926 2013-04-23 Hui Zhu <hui@codesourcery.com>
7929 * breakpoint.c (dprintf_print_recreate): New.
7930 (save_breakpoints): Let it not save dprintf commands.
7931 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7933 2013-04-22 Tom Tromey <tromey@redhat.com>
7936 * Makefile.in (SFILES): Add filestuff.c
7937 (COMMON_OBS): Add filestuff.o.
7938 (filestuff.o): New target.
7939 * auto-load.c (auto_load_objfile_script_1): Use
7941 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7942 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7943 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7944 * common/agent.c (gdb_connect_sync_socket): Use
7946 * common/filestuff.c: New file.
7947 * common/filestuff.h: New file.
7948 * common/linux-osdata.c (linux_common_core_of_thread)
7949 (command_from_pid, commandline_from_pid, print_source_lines)
7950 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7951 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7953 * common/linux-procfs.c (linux_proc_get_int)
7954 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7955 * config.in, configure: Rebuild.
7956 * configure.ac: Don't check for sys/socket.h. Check for
7958 * corelow.c (core_open): Use gdb_open_cloexec.
7959 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7960 * fork-child.c (fork_inferior): Call close_most_fds.
7961 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7962 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7963 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7964 Use gdb_fopen_cloexec.
7965 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7967 (linux_async_pipe): Use gdb_pipe_cloexec.
7968 * remote-fileio.c (remote_fileio_func_open): Use
7970 * remote.c (remote_file_put, remote_file_get): Use
7972 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7974 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7975 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7976 * solib.c (solib_find): Use gdb_open_cloexec.
7977 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7978 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7979 (tfile_open): Use gdb_open_cloexec.
7980 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7981 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7982 * xml-support.c (xml_fetch_content_from_file): Use
7984 * main.c (captured_main): Call notice_open_fds.
7986 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7988 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7989 'char *' to 'gdb_byte *'.
7990 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7993 2013-04-22 Yao Qi <yao@codesourcery.com>
7995 * infrun.c: Fix typo in comment.
7997 2013-04-22 Andrew Haley <aph@redhat.com>
7999 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8002 2013-04-20 Yao Qi <yao@codesourcery.com>
8004 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8005 'char *' to 'gdb_byte *'. Cast the return value of
8006 'bt_ctf_get_char_array' to 'gdb_byte *'.
8008 2013-04-19 Pedro Alves <palves@redhat.com>
8010 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8012 * configure: Regenerate.
8014 2013-04-19 Pedro Alves <palves@redhat.com>
8016 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8019 2013-04-19 Pedro Alves <palves@redhat.com>
8021 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8022 Change type of 'myaddr' parameter to gdb_byte pointer.
8023 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8024 to 'long long' pointer instead of to 'unsigned long long'.
8025 (monitor_write_memory_block, monitor_read_memory_single)
8026 (monitor_read_memory): Change type of 'myaddr' parameter to
8029 2013-04-19 Pedro Alves <palves@redhat.com>
8031 * record.c (validate_history_size): Make parameter 'setting'
8034 2013-04-19 Pedro Alves <palves@redhat.com>
8036 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8039 2013-04-19 Pedro Alves <palves@redhat.com>
8041 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8044 2013-04-19 Pedro Alves <palves@redhat.com>
8046 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8047 * ada-tasks.c (read_fat_string_value): Likewise.
8049 2013-04-19 Pedro Alves <palves@redhat.com>
8051 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8052 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8053 'offset', and adjust.
8055 2013-04-19 Pedro Alves <palves@redhat.com>
8057 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8058 (read_index_from_section): Add cast to 'char *'.
8060 2013-04-19 Pedro Alves <palves@redhat.com>
8062 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8064 2013-04-19 Pedro Alves <palves@redhat.com>
8066 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8068 2013-04-19 Pedro Alves <palves@redhat.com>
8070 * record-full.c (record_full_get_bookmark): Change local 'ret'
8071 type to char * and add cast to gdb_byte *.
8072 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8074 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8076 2013-04-19 Pedro Alves <palves@redhat.com>
8078 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8079 * python/py-prettyprint.c (print_string_repr): Change type of
8080 'output' local to char *. Add cast to gdb_byte * in
8081 LA_PRINT_STRING call.
8082 (print_children): Change type of 'output' local to char *.
8083 * python/py-value.c (valpy_string): Add cast to const char * in
8084 PyUnicode_Decode call.
8086 2013-04-19 Pedro Alves <palves@redhat.com>
8088 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8089 and change its type to 'const char *'. Adjust.
8090 (mips_send_packet): Add cast to 'char *', and remove cast to
8092 (mips_receive_packet): Remove cast to 'unsigned char *'.
8093 (mips_load_srec): Use bfd_byte.
8094 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8095 (pmon_checkset): Make 'value' parameter unsigned.
8097 2013-04-19 Pedro Alves <palves@redhat.com>
8099 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8101 2013-04-19 Pedro Alves <palves@redhat.com>
8103 * remote.c (remote_write_bytes_aux, compare_sections_command)
8105 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8106 (remote_hostio_readlink, remote_bfd_iovec_pread)
8107 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8108 binary buffer, and char when buffer is used as string.
8109 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8110 (trace_save, tfile_open, traceframe_walk_blocks)
8111 (tfile_fetch_registers): Likewise.
8113 2013-04-19 Pedro Alves <palves@redhat.com>
8115 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8116 buffer and size_t size. Adjust.
8117 * ser-base.h (ser_base_write): Adjust.
8118 * ser-go32.c (cnts): Change type to size_t.
8119 (dos_write): Change prototype -- take 'void *'
8120 buffer and size_t size. Adjust.
8121 (dos_info): Print elements of 'cnts' as unsigned long.
8122 * serial.c (serial_write): Likewise.
8123 * serial.h (serial_write): Adjust.
8124 (struct serial_ops) <write>: Change prototype -- take 'void *'
8125 buffer and size_t size. Adjust.
8127 2013-04-19 Pedro Alves <palves@redhat.com>
8129 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8131 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8133 2013-04-19 Pedro Alves <palves@redhat.com>
8135 * alpha-tdep.c (alpha_extract_return_value): Use
8136 regcache_cooked_read_unsigned to read 'v0'.
8138 2013-04-19 Pedro Alves <palves@redhat.com>
8140 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8141 parameters 'at', 'as' and 'offset' to uint32_t.
8143 2013-04-19 Pedro Alves <palves@redhat.com>
8145 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8146 'is64' to signed 'int'.
8148 2013-04-19 Pedro Alves <palves@redhat.com>
8150 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8153 2013-04-19 Pedro Alves <palves@redhat.com>
8155 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8156 'insnbuf' buffer type to unsigned int[].
8158 2013-04-19 Pedro Alves <palves@redhat.com>
8160 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8162 2013-04-19 Pedro Alves <palves@redhat.com>
8164 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8167 2013-04-19 Pedro Alves <palves@redhat.com>
8169 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8170 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8172 * mips-tdep.c (heuristic_fence_post): Change type to int.
8173 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8175 2013-04-19 Pedro Alves <palves@redhat.com>
8177 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8178 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8179 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8181 2013-04-19 Pedro Alves <palves@redhat.com>
8183 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8184 it to get a string view of the byte buffer.
8185 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8186 type to gdb_byte *. Adjust.
8187 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8188 Change local to char *.
8189 * solib-darwin.c (find_program_interpreter): Change return type to
8191 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8192 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8193 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8194 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8195 * solib-svr4.c (find_program_interpreter): Change return type to
8197 (enable_break): Change local 'interp_name' to char *.
8198 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8199 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8200 (spu_pseudo_register_write_spu): Use char for string buffer.
8202 (info_spu_event_command, info_spu_signal_command): Add casts to
8205 2013-04-19 Pedro Alves <palves@redhat.com>
8207 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8209 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8210 * ada-lang.c (ada_value_assign): Use gdb_byte.
8211 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8212 (alphanbsd_sigtramp_offset): Use gdb_byte.
8213 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8214 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8215 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8216 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8217 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8218 * arm-tdep.c (arm_stub_unwind_sniffer)
8219 (arm_displaced_init_closure): Use gdb_byte.
8220 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8221 (arm_default_thumb_le_breakpoint)
8222 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8223 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8224 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8225 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8226 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8227 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8228 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8229 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8230 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8231 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8232 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8233 (cris_store_return_value, cris_extract_return_value): Use
8235 (constraint): Change type of parameter to char * from signed
8236 char*. Use gdb_byte.
8237 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8238 of local buffer to gdb_byte *.
8239 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8240 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8241 (add_address_entry): Change type of local buffer to gdb_byte[].
8242 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8243 (frv_push_dummy_call): Use gdb_byte.
8244 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8245 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8246 (hppa_hpux_supply_save_state): Use gdb_byte.
8247 * hppa-tdep.c (hppa32_push_dummy_call)
8248 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8249 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8250 (slotN_contents, replace_slotN_contents): Change type of parameter
8252 (fetch_instruction, ia64_pseudo_register_write)
8253 (ia64_register_to_value, ia64_value_to_register)
8254 (ia64_extract_return_value, ia64_store_return_value)
8255 (ia64_push_dummy_call): Use gdb_byte.
8256 * m32c-tdep.c (m32c_return_value): Remove cast.
8257 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8258 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8260 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8261 * mn10300-tdep.c (mn10300_store_return_value)
8262 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8264 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8265 (moxie_process_record): Remove casts.
8266 * ppc-ravenscar-thread.c (supply_register_at_address)
8267 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8268 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8269 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8270 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8271 * remote.c (compare_sections_command): Use gdb_byte.
8272 * score-tdep.c (score7_free_memblock): Change type of parameter to
8274 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8275 gdb_byte *. Use gdb_byte.
8276 (sh_push_dummy_call_fpu): Use gdb_byte.
8277 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8278 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8279 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8280 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8281 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8282 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8283 (sh64_store_return_value, sh64_register_convert_to_virtual):
8284 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8285 (sh64_pseudo_register_write): Use gdb_byte.
8286 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8287 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8289 (irix_current_sos): Use gdb_byte.
8290 * solib-som.c (som_current_sos): Use gdb_byte.
8291 * sparc-ravenscar-thread.c (supply_register_at_address)
8292 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8293 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8294 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8295 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8297 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8299 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8300 * xstormy16-tdep.c (xstormy16_extract_return_value)
8301 (xstormy16_store_return_value): Change parameter type to
8302 'gdb_byte *'. Adjust.
8303 (xstormy16_push_dummy_call): Use gdb_byte.
8304 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8305 (call0_analyze_prologue, execute_code): Use gdb_byte.
8307 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8308 Pedro Alves <palves@redhat.com>
8310 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8313 2013-04-17 Doug Evans <dje@google.com>
8315 * dwarf2read.c (struct signatured_type): New member type.
8316 (struct attribute): Replace member signatured_type with signature.
8317 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8318 (read_call_site_scope): Call follow_die_ref instead of
8319 follow_die_ref_or_sig.
8320 (read_structure_type): Rewrite handling of signatured types.
8321 (read_enumeration_type): Ditto.
8322 (read_attribute_value): Update.
8323 (build_error_marker_type): New function.
8324 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8325 Don't call error for bad types, just build an error marker type.
8326 (dump_die_shallow): Update.
8327 (follow_die_sig_1): Renamed from follow_die_sig.
8328 Don't call error for bad types, instead return NULL.
8329 (follow_die_sig): New function.
8330 (get_signatured_type, get_DW_AT_signature_type): New functions.
8332 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8334 * aarch64-tdep.c (aarch64_write_pc): Removed.
8335 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8338 2013-04-17 Yao Qi <yao@codesourcery.com>
8340 * top.c (print_gdb_configuration): Print configure-time
8341 parameter on using libbabeltrace or not.
8343 2013-04-16 Pedro Alves <palves@redhat.com>
8345 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8347 2013-04-16 Pedro Alves <palves@redhat.com>
8349 * common/glibc_thread_db.h: Update from upstream glibc
8350 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8352 2013-04-16 Pedro Alves <palves@redhat.com>
8354 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8355 * common/glibc_thread_db.h: ... this new file ...
8356 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8358 2013-04-16 Will Newton <will.newton@gmail.com>
8359 Pedro Alves <palves@redhat.com>
8363 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8364 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8367 2013-04-16 Pedro Alves <palves@redhat.com>
8368 Eli Zaretskii <eliz@gnu.org>
8370 * NEWS: Mention "set foo unlimited".
8372 2013-04-15 Doug Evans <dje@google.com>
8374 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8375 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8376 (create_dwo_cu_reader): Renamed from
8377 create_dwo_debug_info_hash_table_reader.
8378 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8379 Remove support for multiple CUs in a DWO file.
8380 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8382 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8384 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8385 (create_dwo_in_dwp): Ditto.
8387 2013-04-15 Tom Tromey <tromey@redhat.com>
8389 * NEWS: Move recent entries into "since 7.6" section.
8391 2013-04-15 Tom Tromey <tromey@redhat.com>
8395 * break-catch-throw.c (struct exception_catchpoint)
8396 <exception_rx, pattern>: New fields.
8397 (fetch_probe_arguments, dtor_exception_catchpoint)
8398 (check_status_exception_catchpoint)
8399 (print_one_detail_exception_catchpoint): New functions.
8400 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8401 Compile regular expression if needed.
8402 (extract_exception_regexp): New function.
8403 (catch_exception_command_1): Use extract_exception_regexp.
8404 (compute_exception): Use fetch_probe_arguments.
8405 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8406 and check_status fields.
8407 * cp-abi.c (cplus_typename_from_type_info): New function.
8408 * cp-abi.h (cplus_typename_from_type_info): Declare.
8409 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8410 * gdb_regex.h (compile_rx_or_error): Declare.
8411 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8413 (init_gnuv3_ops): Set get_type_from_type_info field.
8414 * probe.c (compile_rx_or_error): Move...
8415 * utils.c (compile_rx_or_error): ... here.
8417 2013-04-15 Tom Tromey <tromey@redhat.com>
8421 * break-catch-throw.c (compute_exception): New function.
8422 (exception_funcs): New global.
8423 (_initialize_break_catch_throw): Create $_exception.
8424 * cp-abi.c (cplus_type_from_type_info): New function.
8425 * cp-abi.h (cplus_type_from_type_info): Declare.
8426 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8427 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8428 (gnuv3_get_type_from_type_info): New functions.
8429 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8431 2013-04-15 Tom Tromey <tromey@redhat.com>
8433 * break-catch-throw.c (struct exception_names): New.
8434 (exception_functions): Change type.
8435 (re_set_exception_catchpoint): Look for SDT probes.
8437 2013-04-15 Tom Tromey <tromey@redhat.com>
8440 * break-catch-throw.c (exception_functions): New global.
8441 (gnu_v3_exception_catchpoint_ops): Move earlier.
8442 (struct exception_catchpoint): New.
8443 (classify_exception_breakpoint): Rewrite.
8444 (re_set_exception_catchpoint): New function.
8445 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8446 Allocate a struct exception_catchpoint.
8447 (catch_exception_command_1): Update.
8448 (initialize_throw_catchpoint_ops): Set 're_set' method.
8450 2013-04-15 Tom Tromey <tromey@redhat.com>
8452 * Makefile.in (SFILES): Add break-catch-throw.c
8453 (COMMON_OBS): Add break-catch-throw.o.
8454 * break-catch-throw.c: New file.
8455 * breakpoint.c: Move exception-catching code to new file.
8456 (ep_parse_optional_if_clause): No longer static.
8457 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8459 2013-04-15 Tom Tromey <tromey@redhat.com>
8463 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8464 * c-exp.y (TYPEID): New token.
8465 (exp): Add new TYPEID productions.
8466 (ident_tokens): Add "typeid".
8467 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8468 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8469 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8470 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8471 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8473 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8474 (build_std_type_info_type, gnuv3_get_typeid_type)
8475 (gnuv3_get_typeid): New functions.
8476 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8477 new fields on ABI object.
8478 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8479 * std-operator.def (OP_TYPEID): New.
8481 2013-04-15 Tom Tromey <tromey@redhat.com>
8483 * elfread.c (elf_symtab_read): Install versioned symbol under
8484 unversioned name as well.
8486 2013-04-15 Tom Tromey <tromey@redhat.com>
8489 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8490 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8491 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8492 (gdb_demangle): New function.
8493 * cp-support.h (gdb_demangle): Declare.
8494 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8495 (dwarf2_name): Use gdb_demangle.
8496 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8497 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8499 (gnuv3_print_method_ptr): Use gdb_demangle.
8500 * jv-lang.c (java_demangle): Use gdb_demangle.
8501 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8502 * language.c (unk_lang_demangle): Use gdb_demangle.
8503 * symtab.c (symbol_find_demangled_name)
8504 (demangle_for_lookup): Use gdb_demangle.
8506 2013-04-15 Tom Tromey <tromey@redhat.com>
8510 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8512 (classify_exception_breakpoint): New function.
8513 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8514 (print_mention_exception_catchpoint)
8515 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8516 (catch_exception_command_1): Handle "rethrow" catchpoint.
8517 (catch_rethrow_command): New function.
8518 (_initialize_breakpoint): Add "catch rethrow" command.
8520 2013-04-15 Pierre Muller <muller@sourceware.org>
8522 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8523 set_gdbarch_write_pc as deprecated anymore.
8525 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8527 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8530 2013-04-13 Yao Qi <yao@codesourcery.com>
8532 * ctf.c (_initialize_ctf): Include "completer.h".
8533 Call add_target_with_completer instead of add_target.
8535 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8537 Fix GDB regression related to PR binutils/14813.
8538 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8539 * minidebug.c (lzma_close): Add return value comment.
8540 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8541 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8542 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8544 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8546 * config.in: Regenerate.
8548 2013-04-12 Tom Tromey <tromey@redhat.com>
8550 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8552 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8553 (struct die_reader_specs) <buffer>: Likewise.
8554 (die_reader_func_ftype): Make 'info_ptr' const.
8555 (struct line_header) <include_dirs, statement_program_start,
8556 statement_program_end>: Now const.
8557 (struct file_entry) <name>: Likewise.
8558 (struct partial_die_info) <sibling>: Likewise.
8559 (struct dwarf_block) <data>: Likewise.
8560 (dwarf2_read_section): Remove cast.
8561 (dwarf2_get_section_info): Make 'bufp' const.
8562 (read_index_from_section): Constify.
8563 (dw2_get_file_names_reader): Make 'info_ptr' const.
8564 (dw2_get_primary_filename_reader): Likewise.
8565 (read_comp_unit_head): Make 'info_ptr' and return type const.
8566 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8568 (read_abbrev_offset): Constify.
8569 (dwarf2_create_include_psymtab): Make 'name' const.
8570 (create_debug_types_hash_table): Update.
8571 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8572 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8574 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8575 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8576 (read_comp_units_from_section): Constify.
8577 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8578 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8580 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8581 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8582 (create_dwp_hash_table, dwarf2_ranges_read)
8583 (dwarf2_record_block_ranges): Constify.
8584 (read_die_and_children, read_die_and_siblings_1)
8585 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8587 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8588 (abbrev_table_read_table): Constify.
8589 (load_partial_dies): Make 'info_ptr' const.
8590 (read_partial_die, read_attribute_value, read_attribute): Make
8591 'info_ptr' and return type const.
8592 (read_address, read_initial_length)
8593 (read_checked_initial_length_and_offset, read_offset)
8594 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8596 (read_direct_string): Make 'buf' and return type const.
8597 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8598 (read_indirect_string): Make return type const.
8599 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8600 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8602 (read_str_index): Make return type const.
8603 (add_include_dir): Make 'include_dir' const.
8604 (add_file_name): Make 'name' const.
8605 (dwarf_decode_line_header): Constify.
8606 (psymtab_include_file_name): Make return type const.
8607 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8608 (dwarf2_start_subfile): Make 'filename' const.
8609 (dwarf2_const_value_attr): Make 'bytes' const.
8610 (read_signatured_type_reader): Make 'info_ptr' const.
8611 (decode_locdesc): Constify.
8612 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8614 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8615 'mac_end', and return type const.
8616 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8617 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8619 (per_cu_header_read_in): Constify.
8620 * symfile.h (dwarf2_get_section_info): Update.
8622 2013-04-12 Tom Tromey <tromey@redhat.com>
8624 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8626 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8628 * NEWS: Mention "show configuration", --configuration.
8629 * top.c (print_gdb_configuration): New function, displays the
8630 details about GDB configure-time parameters.
8631 (print_gdb_version): Mention "show configuration".
8632 * cli/cli-cmds.c (show_configuration): New function.
8633 (_initialize_cli_cmds): Add the "show configuration" command.
8634 * main.c (captured_main) <print_configuration>: New static var.
8635 <long_options>: Use it.
8636 If --configuration was given, call print_gdb_configuration.
8638 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8639 Pedro Alves <palves@redhat.com>
8641 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8642 (generated_files): Add gcore.
8643 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8644 HAVE_NATIVE_GCORE_HOST.
8646 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8647 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8648 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8649 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8650 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8651 Add HAVE_NATIVE_GCORE_HOST.
8652 * configure: Regenerate.
8653 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8654 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8655 AC_CONFIG_FILES for gcore.
8656 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8658 * gdb_gcore.sh: Rename to ...
8659 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8660 and GCORE_TRANSFORM_NAME substitutions.
8662 Fix parsing tabs in ${gdb_target_obs}.
8663 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8665 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8667 * remote.c (unpush_and_perror): Add output message final dot.
8669 2013-04-11 Yao Qi <yao@codesourcery.com>
8671 * tracepoint.c (tfile_interp_line): Fit parameters line and
8674 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8676 * solib.c (solib_map_sections): Remove code overwriting
8677 SO->SO_NAME with the bfd's filename.
8679 2013-04-10 Pedro Alves <palves@redhat.com>
8681 * cli/cli-decode.c (integer_unlimited_completer): New function.
8682 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8683 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8685 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8686 (is_unlimited_literal): New function.
8687 (do_set_command): Handle literal "unlimited" arguments.
8688 * frame.c (_initialize_frame) <set backtrace limit>: Document
8690 * printcmd.c (_initialize_printcmd) <set print
8691 max-symbolic-offset>: Add help text.
8692 * record-full.c (_initialize_record_full) <set record full
8693 insn-number-max>: Likewise.
8694 * record.c (_initialize_record) <set record
8695 instruction-history-size, set record function-call-history-size>:
8697 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8699 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8701 * source.c (_initialize_source) <set listsize>: Add help text.
8702 * utils.c (initialize_utils) <set height, set width>: Likewise.
8703 <set pagination>: Mention "set height unlimited".
8704 * valprint.c (_initialize_valprint) <set print elements, set print
8705 repeats>: Document "unlimited".
8707 2013-04-10 Pedro Alves <palves@redhat.com>
8709 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8710 instead of disconnect_tracing.
8711 * infcmd.c (detach_command, disconnect_command): Call
8712 query_if_trace_running. Adjust.
8713 * top.c: Include "tracepoint.h".
8714 (quit_target): Delete. Contents moved ...
8715 (quit_force): ... here. Wrap each stage of teardown in
8716 TRY_CATCH. Call disconnect_tracing before detaching.
8718 2013-04-10 Hui Zhu <hui@codesourcery.com>
8719 Yao Qi <yao@codesourcery.com>
8721 * configure.ac: Check libbabeltrace is installed.
8722 * config.in: Regenerate.
8723 * configure: Regenerate.
8724 * Makefile.in (LIBBABELTRACE): New.
8725 (CLIBS): Add LIBBABELTRACE.
8726 * ctf.c: Include "exec.h".
8727 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8728 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8729 (ctf_save_metadata_header): Define new type aliases in
8731 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8732 in metadata. Start a new faked packet for trace status.
8733 (ctf_write_status): Write trace status to CTF.
8734 (ctf_write_uploaded_tsv): Write TSV to CTF.
8735 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8736 (ctf_write_definition_end): End the faked packet.
8738 (ctx, ctf_iter, trace_dirname): New.
8739 (start_pos): New variable.
8740 (ctf_destroy, ctf_open_dir, ctf_open): New.
8741 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8743 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8744 (ctf_fetch_registers, ctf_xfer_partial): New.
8745 (ctf_get_trace_state_variable_value): New.
8746 (ctf_get_tpnum_from_frame_event): New.
8747 (ctf_get_traceframe_address): New.
8748 (ctf_trace_find, ctf_has_stack): New.
8749 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8750 (ctf_get_trace_status, ctf_read_status): New.
8751 (_initialize_ctf): New.
8752 * tracepoint.c (get_tracepoint_number): New
8753 (get_uploaded_tsv): Remove 'static'.
8754 (struct traceframe_info, trace_regblock_size): Move it to ...
8755 * tracepoint.h: ... here.
8756 (get_tracepoint_number): Declare it.
8757 (get_uploaded_tsv): Declare it.
8759 * NEWS: Mention new configure option.
8761 2013-04-10 Pedro Alves <palves@redhat.com>
8762 Hui Zhu <hui@codesourcery.com>
8764 * breakpoint.c (dprintf_re_set): New.
8765 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8768 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8770 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8771 Remove solib-svr4.o from the list.
8773 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8775 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8776 Use gdb_assert_not_reached instead of invalid boolean expression.
8778 2013-04-09 Pedro Alves <palves@redhat.com>
8780 * remote.c (unpush_and_perror): New function.
8781 (readchar, remote_serial_write): Use it.
8783 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8785 * NEWS: Mention new btrace RSP packets.
8787 2013-04-08 Tom Tromey <tromey@redhat.com>
8789 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8792 2013-04-08 Tom Tromey <tromey@redhat.com>
8794 * maint.c (print_bfd_section_info): Print the section index.
8795 * symmisc.c (dump_msymbols): Print the section index.
8797 2013-04-08 Tom Tromey <tromey@redhat.com>
8800 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8801 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8802 * breakpoint.c (resolve_sal_pc): Update.
8803 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8804 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8805 (minsym_lookup_iterator_cb): Use it.
8806 (default_read_var_value): Update.
8807 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8809 * infcmd.c (jump_command): Update.
8810 * linespec.c (minsym_found): Update.
8811 * maint.c (maintenance_translate_address): Update.
8812 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8813 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8814 * parse.c (write_exp_msymbol): Update.
8815 * printcmd.c (address_info): Update.
8816 * psymtab.c (find_pc_sect_psymbol): Update.
8817 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8819 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8820 Don't initialize SYMBOL_OBJ_SECTION.
8821 * spu-tdep.c (spu_catch_start): Update.
8822 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8823 * symmisc.c (dump_msymbols, print_symbol): Update.
8824 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8825 how fallback section is computed.
8826 (fixup_symbol_section): Update.
8827 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8829 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8830 Initialize SYMBOL_SECTION.
8831 * symtab.h (struct general_symbol_info) <section>: Update comment.
8832 <obj_section>: Remove.
8833 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8834 (SYMBOL_OBJFILE): New macro.
8836 2013-04-08 Tom Tromey <tromey@redhat.com>
8838 * coffread.c (record_minimal_symbol): Update.
8839 * dbxread.c (record_minimal_symbol): Update.
8840 * elfread.c (record_minimal_symbol): Update.
8841 * machoread.c (macho_symtab_add_minsym): Update.
8842 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8844 * minsyms.c (prim_record_minimal_symbol): Update.
8845 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8847 (prim_record_minimal_symbol_and_info): Likewise.
8848 * minsyms.h (prim_record_minimal_symbol_full)
8849 (prim_record_minimal_symbol_and_info): Update.
8850 * symtab.c (allocate_symbol, initialize_symbol)
8851 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8852 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8855 2013-04-08 Tom Tromey <tromey@redhat.com>
8858 * solib-som.c (som_solib_section_offsets): Use BFD section
8859 indices. Set offsets for all sections.
8860 * somread.c (som_symtab_read): Compute BFD section for
8861 symbol. Use prim_record_minimal_symbol_and_info.
8862 (som_symfile_read): Fix comment.
8863 (struct find_section_offset_arg): New.
8864 (find_section_offset, set_section_index): New functions.
8865 (som_symfile_offsets): Use set_section_index to compute
8868 2013-04-08 Tom Tromey <tromey@redhat.com>
8870 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8871 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8872 gdb_bfd_section_index.
8873 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8875 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8877 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8879 * objfiles.c (add_to_objfile_sections_full): New function.
8880 (add_to_objfile_sections): Use it.
8881 (build_section_table): Rewrite.
8882 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8883 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8884 (struct objfile) <sections>: Update comment.
8885 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8887 (ALL_OBJSECTIONS): Use it.
8888 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8889 * solib-frv.c (frv_relocate_main_executable): Update.
8890 * solib-target.c (solib_target_relocate_section_addresses):
8891 Use gdb_bfd_section_index.
8892 * symfile.c (build_section_addr_info_from_section_table):
8893 Use gdb_bfd_section_index.
8894 (build_section_addr_info_from_bfd, place_section): Likewise.
8895 * symtab.c (fixup_section): Update.
8896 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8898 2013-04-08 Tom Tromey <tromey@redhat.com>
8900 * minsyms.h (struct bound_minimal_symbol): New.
8901 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8902 Remove objfile argument.
8903 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8904 Return bound_minimal_symbol.
8905 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8906 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8907 Return bound_minimal_symbol.
8908 (in_gnu_ifunc_stub): Update.
8909 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8910 Remove 'objfile_p' argument.
8911 (lookup_solib_trampoline_symbol_by_pc): Update.
8912 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8913 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8914 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8915 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8916 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8917 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8918 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8919 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8920 stack.c, symtab.c, tui/tui-disasm.c: Update.
8922 2013-04-08 Tom Tromey <tromey@redhat.com>
8924 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8925 Use symbol's obstack, not an objfile.
8926 * coffread.c (process_coff_symbol): Update.
8927 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8928 * jv-lang.c (add_class_symbol): Update.
8929 * mdebugread.c (new_symbol): Update.
8930 * minsyms.c (prim_record_minimal_symbol_full)
8931 (terminate_minimal_symbol_table): Update.
8932 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8933 * stabsread.c (define_symbol, read_enum_type): Update.
8934 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8935 Handle Ada specially.
8936 (symbol_set_language): Add 'obstack' argument.
8937 (symbol_set_names): Update.
8938 (symbol_natural_name, symbol_demangled_name): Always use
8940 * symtab.h (struct general_symbol_info)
8941 <language_specific::obstack>: New field.
8942 <ada_mangled>: New field.
8943 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8944 (symbol_set_language): Update.
8946 2013-04-08 Tom Tromey <tromey@redhat.com>
8948 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8949 Take an obstack, not an objfile.
8950 (symbol_set_names): Update.
8951 * symtab.h (symbol_set_demangled_name): Update.
8953 2013-04-08 Tom Tromey <tromey@redhat.com>
8955 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8957 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8958 (read_func_scope): Call allocate_template_symbol.
8959 (new_symbol_full): Call allocate_symbol.
8960 * jit.c (finalize_symtab): Call allocate_symbol.
8961 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8962 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8963 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8964 (common_block_end): Call allocate_symbol.
8965 * symtab.c (allocate_symbol, initialize_symbol)
8966 (allocate_template_symbol): New functions.
8967 * symtab.c (allocate_symbol, initialize_symbol)
8968 (allocate_template_symbol): Declare.
8969 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8971 2013-04-08 Pedro Alves <palves@redhat.com>
8972 Keith Seitz <keiths@redhat.com>
8974 * breakpoint.c (create_breakpoint): Rename
8975 "parse_condition_and_thread" parameter to "parse_arg". Update
8976 describing comment. If !PARSE_ARG, then error out if ARG is not
8977 the empty string after extracting the location.
8978 * breakpoint.h (create_breakpoint): Rename
8979 "parse_condition_and_thread" parameter to "parse_arg".
8981 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8983 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8985 2013-04-07 Yao Qi <yao@codesourcery.com>
8987 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8988 and 'addr2' to CORE_ADDR.
8989 * target.c (update_current_target): Update.
8990 * target.h (struct target_ops) <to_trace_find>: Change parameter
8992 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8993 'addr2' to CORE_ADDR.
8994 (tfile_trace_find): Likewise.
8995 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8996 Change local variable 'addr' to type CORE_ADDR.
8997 * tracepoint.h (tfind_1): Update declaration.
8999 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9001 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9002 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9005 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9007 * main.h (windows_get_absolute_argv0): ...to here.
9009 2013-04-05 Doug Evans <dje@google.com>
9011 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9012 (read_cutu_die_from_dwo): Add comments.
9013 (read_structure_type): Update comment.
9014 (read_enumeration_type, read_namespace_type): Update comment.
9015 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9017 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9019 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9020 * Makefile.in (gdb.z): Remove.
9021 (install-only): Remove $(man1dir) and gdb.1 installation.
9024 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 Fix compatibility with Linux kernel 3.8.3.
9027 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9028 to more inner block. Remove parsing of NUMBER from outer block.
9029 Parse NUMBER only if KEYWORD has been identified.
9031 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 Fix variable name shadowing.
9034 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9035 filename to mapsfilename and update its uses.
9037 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9039 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9040 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9041 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9042 details of the problem.
9044 2013-04-04 Pedro Alves <palves@redhat.com>
9045 Hui Zhu <hui@codesourcery.com>
9047 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9048 tracepoint, reset its STEP_COUNT and call validate_actionline.
9050 2013-04-03 Doug Evans <dje@google.com>
9052 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9053 read_die_and_siblings.
9054 (read_die_and_siblings): New function.
9055 (read_cutu_die_from_dwo): Dump die if requested.
9056 (read_die_and_children): Call read_full_die_1 and
9057 read_die_and_siblings_1.
9058 (read_full_die): Dump die if requested.
9060 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9062 * dwarf2read.c (struct dwo_file): New member comp_dir.
9063 Rename member name to dwo_name. All uses updated.
9064 (hash_dwo_file): Include comp_dir in computation.
9065 (eq_dwo_file): Ditto.
9066 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9067 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9069 * psymtab.c (read_psymtabs_with_fullname): Don't call
9070 psymtab_to_fullname if the basenames are different.
9072 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9074 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9075 New entry about "fullname" presence.
9077 2013-04-03 Pedro Alves <palves@redhat.com>
9079 * NEWS: Mention x86_64/Cygwin as new native configuration.
9081 2013-04-02 Doug Evans <dje@google.com>
9083 * dwarf2read.c (read_structure_type): Fix typo in comment.
9085 2013-04-02 Pedro Alves <palves@redhat.com>
9087 * NEWS: Mention "set/show debug aarch64", "set/show debug
9088 coff-pe-read" and "set/show debug mach-o".
9090 2013-04-02 Pedro Alves <palves@redhat.com>
9092 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9094 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9096 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9097 gdb_string.h is now in common/.
9099 2013-04-02 Pedro Alves <palves@redhat.com>
9101 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9102 under "New options".
9104 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9108 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9110 2013-04-02 Pedro Alves <palves@redhat.com>
9114 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9115 (remote_serial_write): New function.
9116 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9118 2013-04-01 Jiong Wang <jiwang@tilera.com>
9120 * NEWS: Mention TILE-Gx in "New native configurations" and
9121 "New targets" sections.
9123 2013-04-01 Doug Evans <dje@google.com>
9125 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9126 (process_enumeration_scope): Simplify.
9128 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9130 (struct signatured_type): ... to here.
9131 (sig_type_ptr): New typedef.
9132 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9133 out of union 't'. All uses updated.
9134 (dw2_get_file_names_reader): Assert not called for a type unit.
9135 (dw2_get_file_names): Assert not called for a type unit or type
9137 (build_type_psymtabs_reader): Assert called for a type unit.
9138 (build_type_psymtab_dependencies): Assert called for a type unit group.
9140 * dwarf2read.c (free_dwo_file): Add comment.
9141 (dwarf2_per_objfile_free): Unref dwp bfd.
9143 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9145 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9146 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9147 (read_pe_exported_syms): Remove unused 'exportix'.
9148 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9149 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9150 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9152 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9154 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9155 (print_it_watchpoint): Remove unused 'bl'.
9156 (say_where): Remove unused 'uiout'.
9157 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9158 (bkpt_breakpoint_hit): Remove unused 'b'.
9159 (internal_bkpt_print_it): Remove unused 'uiout'.
9160 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9162 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9164 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9165 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9167 2013-03-29 Doug Evans <dje@google.com>
9169 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9170 Delete arg is_dwp. All callers updated.
9171 (open_dwp_file): New function.
9172 (open_and_init_dwp_file): Call it.
9173 (get_dwp_file): New function.
9174 (lookup_dwo_cutu): Call it.
9176 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9177 unnecessary, cleanup.
9179 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9181 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9182 (lookup_dwo_unit): New function.
9183 (init_cutu_and_read_dies): Move DWO handling to new functions.
9185 * dwarf2read.c (struct signatured_type): Tweak comment.
9186 (struct dwo_unit): Tweak comment.
9187 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9188 (create_dwo_debug_info_hash_table): Tweak comment.
9189 (dwarf2_per_cu_offset_and_type): Tweak comment.
9191 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9192 missing .debug_types section.
9194 2013-03-29 Yao Qi <yao@codesourcery.com>
9196 * corelow.c: Include "completer.h".
9197 (_initialize_corelow): Call add_target_with_completer with
9198 argument 'filename_completer'.
9199 * tracepoint.c: Likewise.
9200 * exec.c (_initialize_exec): Likewise.
9201 * target.c (add_target): Rename to ...
9202 (add_target_with_completer): ... this. Call set_cmd_completer
9203 if parameter completer is not NULL.
9205 * target.h: Include "command.h".
9206 (add_target_with_completer): Declare it.
9208 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9210 * coffread.c (is_import_fixup_symbol): New function.
9211 (record_minimal_symbol): Use is_import_fixup_symbol to
9212 detect import fixup symbols, and discard them.
9214 2013-03-28 Doug Evans <dje@google.com>
9216 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9217 types hash table until we know we need it.
9219 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9222 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9223 All callers updated.
9224 (dw2_print_stats): Print #read CUs too.
9225 (dump_die_shallow): Print signatured types better.
9227 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9228 info_or_types_section to section. All uses updated.
9229 (struct dwo_unit): Ditto.
9231 2013-03-28 Pedro Alves <palves@redhat.com>
9233 * NEWS (New options): New section.
9234 (New options): Mention set/show remote trace-status-packet.
9235 * remote.c (PACKET_qTStatus): New enumeration value.
9236 (remote_get_trace_status): Skip sending qTStatus if the packet is
9237 disabled. Use packet_ok.
9238 (_initialize_remote): Register a configuration command for
9241 2013-03-28 Doug Evans <dje@google.com>
9243 * symfile.c (find_separate_debug_file): Add comment.
9244 (terminate_after_last_dir_separator): Tweak comment.
9246 * dwarf2read.c (create_partial_symtab): Add forward decl.
9247 (create_partial_symtab): Move to be closer to other psymtab functions.
9248 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9250 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9251 (compute_symtab_includes): Remove unnecessary forward declaration.
9252 (die_needs_namespace): Add comment marking group of functions for
9253 dwarf2 name computation.
9255 * typeprint.c (_initialize_typeprint): Improve type help text.
9257 * python/python.c (finish_python_initialization): Provide suggestion
9258 for how to tell gdb to find its python files.
9260 2013-03-28 Pedro Alves <palves@redhat.com>
9264 * source.c (_initialize_source): Change back "set listsize" to an
9267 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9270 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9272 2013-03-27 Pedro Alves <palves@redhat.com>
9274 * top.c (history_size): Rename to ...
9275 (history_size_setshow_var): ... this. Add comment.
9276 (show_commands): Use readline's 'history_length' instead of
9277 computing the history length by calling history_get in a loop.
9278 (set_history_size_command): Error out for sizes over INT_MAX.
9279 Restore previous history size on invalid size.
9280 (init_history): If HISTSIZE is negative, leave the history size as
9282 (init_main): Adjust.
9284 2013-03-27 Pedro Alves <palves@redhat.com>
9286 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9287 coff_pe_read" command to "set debug coff-pe-read".
9289 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9291 * record.c (command_size_to_target_size): Fix size comparison.
9292 Change parameter type from pointer to integer to integer.
9295 2013-03-27 Pierre Muller <muller@sourceware.org>
9297 * windows-nat.c (handle_output_debug_string): Avoid typecast
9298 from integer of different size warning.
9300 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9302 * windows-nat.c (handle_output_debug_string): Add empty line
9303 after local block variable definition.
9305 2013-03-26 Pedro Alves <palves@redhat.com>
9307 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9308 (net_open): Make 'polls' local unsigned.
9310 2013-03-26 Pedro Alves <palves@redhat.com>
9312 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9313 a zuinteger command instead of uinteger.
9315 2013-03-26 Pedro Alves <palves@redhat.com>
9317 * record-full.c (record_full_insn_num): Make it unsigned.
9318 (record_full_check_insn_num, record_full_message)
9319 (record_full_registers_change, record_full_xfer_partial): Remove
9320 record_full_insn_max_num check (it's always != 0).
9321 (record_full_info, record_full_restore): Use %u as format string.
9322 (): Use %u as format string.
9323 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9324 check (it's always != 0).
9326 2013-03-26 Pedro Alves <palves@redhat.com>
9328 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9329 and "set dcache size" commands zuinteger instead of uinteger.
9331 2013-03-26 Pedro Alves <palves@redhat.com>
9333 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9334 command zuinteger instead of uinteger.
9336 2013-03-26 Pedro Alves <palves@redhat.com>
9338 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9339 zuinteger instead of uinteger.
9341 2013-03-26 Pedro Alves <palves@redhat.com>
9343 * record.c (record_insn_history_size_setshow_var)
9344 (record_call_history_size_setshow_var): New globals.
9345 (command_size_to_target_size): New function.
9346 (cmd_record_insn_history, cmd_record_call_history): Use
9347 command_size_to_target_size instead of cast.
9348 (validate_history_size, set_record_insn_history_size)
9349 (set_record_call_history_size): New functions.
9350 (_initialize_record): Install set_record_insn_history_size and
9351 set_record_call_history_size as "set" hooks of "set record
9352 instruction-history-size" and "set record
9353 function-call-history-size".
9355 2013-03-26 Pedro Alves <palves@redhat.com>
9357 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9358 use with history_max_entries use. Remove FIXME note.
9360 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9362 * record-btrace.c (record_btrace_close): Call
9363 record_btrace_auto_disable.
9365 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9367 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9369 2013-03-25 Doug Evans <dje@google.com>
9371 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9373 2013-03-25 Tom Tromey <tromey@redhat.com>
9376 * c-exp.y (exp): Add new productions for destructors after '.' and
9378 (write_destructor_name): New function.
9380 2013-03-25 Tom Tromey <tromey@redhat.com>
9383 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9384 value_struct_elt, not lookup_struct_elt_type.
9385 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9386 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9387 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9389 2013-03-25 Yao Qi <yao@codesourcery.com>
9391 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9392 instead of '_mkdir'.
9394 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9396 * windows-nat.c (windows_get_absolute_argv0): New function.
9397 * windows-nat.h: Add its prototype.
9399 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9400 Use IS_DIR_SEPARATOR instead of looking for a character inside
9401 SLASH_STRING. Include filenames.h.
9402 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9403 relocate_gdb_directory works when passed gdb_program_name.
9404 Include windows-nat.h.
9406 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9408 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9409 * remote.c (trace_error): Remove the special handling of '2'.
9410 (readchar) <SERIAL_EOF>
9411 (readchar) <SERIAL_ERROR>
9412 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9413 (remote_get_trace_status): Call throw_exception if EX is
9415 * utils.c (perror_with_name): Rename to ...
9416 (throw_perror_with_name): ... here. New parameter errcode, describe it
9417 in the function comment.
9418 (perror_with_name): New function wrapper.
9419 * utils.h (enum errors): New stub declaration.
9420 (throw_perror_with_name): New declaration.
9422 2013-03-22 Pedro Alves <palves@redhat.com>
9423 Yao Qi <yao@codesourcery.com>
9424 Mark Kettenis <kettenis@gnu.org>
9426 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9427 Don't let the user set the value to UINT_MAX directly.
9428 <var_integer>: Don't let the user set the value to INT_MAX
9431 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9433 * remote.c (remote_unpush_target): New function.
9434 (remote_open_1): Remove two pop_target calls, update one comment, add
9435 comment to target_preopen call. Replace pop_target call by
9436 remote_unpush_target call.
9437 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9438 pop_target calls by remote_unpush_target calls.
9440 2013-03-22 Pedro Alves <palves@redhat.com>
9442 * linux-nat.c (linux_child_follow_fork): Don't call
9443 linux_enable_event_reporting.
9444 (linux_handle_extended_wait): Don't call
9445 linux_enable_event_reporting.
9447 2013-03-22 Pedro Alves <palves@redhat.com>
9449 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9450 use it to rewrite the trampoline buffers with type gdb_byte[], and
9451 undefine the macro. Remove char* cast.
9453 2013-03-21 Doug Evans <dje@google.com>
9455 New commands "mt set per-command {space,time,symtab} {on,off}".
9457 * event-top.c: #include "maint.h".
9458 * main.c: #include "maint.h".
9459 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9460 timeval-utils.h, maint.h, cli/cli-setshow.h.
9461 (per_command_time, per_command_space): New static globals.
9462 (per_command_symtab): New static global.
9463 (per_command_setlist, per_command_showlist): New static globals.
9464 (struct cmd_stats): Move here from utils.c.
9465 (set_per_command_time): Renamed from set_display_time in utils.c
9466 and moved here. All callers updated.
9467 (set_per_command_space): Renamed from set_display_space in utils.c
9468 and moved here. All callers updated.
9469 (count_symtabs_and_blocks): New function.
9470 (report_command_stats): Moved here from utils.c. Add support for
9471 printing symtab stats. Only print data if enabled before command
9473 (make_command_stats_cleanup): Ditto.
9474 (sert_per_command_cmd, show_per_command_cmd): New functions.
9475 (_initialize_maint_cmds): Add new commands
9476 mt set per-command {space,time,symtab} {on,off}.
9477 * maint.h: New file.
9478 * top.c: #include "maint.h".
9479 * utils.c (reset_prompt_for_continue_wait_time): New function.
9480 (get_prompt_for_continue_wait_time): New function.
9481 * utils.h (reset_prompt_for_continue_wait_time): Declare
9482 (get_prompt_for_continue_wait_time): Declare.
9483 (make_command_stats_cleanup): Moved to maint.h.
9484 (set_display_time, set_display_space): Moved to maint.h and renamed
9485 to set_per_command_time, set_per_command_space.
9486 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9487 parse_binary_operation and made non-static. Don't call error,
9488 just return an error marker. All callers updated.
9489 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9491 2013-03-21 Tom Tromey <tromey@redhat.com>
9493 * symfile.c (alloc_section_addr_info): Update header. Don't set
9494 'num_sections' field.
9495 (build_section_addr_info_from_section_table): Set 'num_sections'.
9496 (build_section_addr_info_from_bfd): Likewise.
9497 (build_section_addr_info_from_objfile): Remove dead loop
9499 (free_section_addr_info): Unconditionally call xfree.
9500 (relative_addr_info_to_section_offsets, addrs_section_sort)
9501 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9503 (syms_from_objfile_1): Remove dead 'if' condition. Check
9505 (add_symbol_file_command): Set 'num_sections'.
9506 * symfile-mem.c (symbol_file_add_from_memory): Set
9508 * somread.c (som_symfile_offsets): Remove dead loop condition.
9509 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9510 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9512 2013-03-21 Tom Tromey <tromey@redhat.com>
9514 * tracepoint.h (decode_agent_options): Add 'trace_string'
9516 * tracepoint.c (decode_agent_options): Add 'trace_string'
9518 (validate_actionline): Update.
9519 (collect_symbol): Add 'trace_string' argument.
9520 (struct add_local_symbols_data) <trace_string>: New field.
9521 (do_collect_symbol): Update.
9522 (add_local_symbols): Add 'trace_string' argument.
9523 (encode_actions_1): Update.
9524 (trace_dump_actions): Update.
9525 * dwarf2loc.c (access_memory): Update.
9526 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9527 * ax-general.c (new_agent_expr): Update.
9528 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9529 (gen_trace_for_return_address): Add argument.
9530 (trace_kludge, trace_string_kludge): Remove.
9531 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9532 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9533 (gen_trace_for_var): Add 'trace_string' argument.
9534 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9535 (gen_printf, agent_eval_command_one): Update.
9537 2013-03-21 Tom Tromey <tromey@redhat.com>
9540 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9541 Handle FILENAME token.
9543 2013-03-21 Tom Tromey <tromey@redhat.com>
9545 * c-exp.y (YYPRINT): Define.
9546 (c_print_token): New function.
9548 2013-03-21 Tom Tromey <tromey@redhat.com>
9550 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9552 2013-03-21 Yao Qi <yao@codesourcery.com>
9554 * ctf.c: Include "gdb_stat.h".
9555 [USE_WIN32API]: New macro 'mkdir'.
9556 (ctf_start): Use permission bits macros if they are defined.
9558 2013-03-20 Keith Seitz <keiths@redhat.com>
9560 * breakpoint.h (struct breakpoint): Add comment to
9561 extra_string indicating that this member is mallod'd.
9562 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9564 2013-03-20 Pedro Alves <palves@redhat.com>
9568 * cli/cli-setshow.c (do_set_command)
9569 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9570 the result of parsing the command argument. Throw error if the
9571 value is greater than UINT_MAX. Print the invalid value with
9573 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9574 result of parsing the command argument. Throw error if the value
9575 is greater than INT_MAX, not greater or equal. Also throw error
9576 if the value is less than INT_MIN. Print the invalid value with
9578 <var_zuinteger_unlimited>: Throw error if the value is greater
9579 than INT_MAX, not greater or equal.
9580 (do_show_command) <var_integer, var_zinteger,
9581 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9583 2013-03-20 Tom Tromey <tromey@redhat.com>
9585 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9587 * dwarf2read.c (read_func_scope): Remove old FIXME.
9588 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9590 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9591 Unconditionally call via computed ops, if possible.
9592 * printcmd.c (address_info): Unconditionally call via computed ops,
9594 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9596 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9597 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9600 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9601 Tom Tromey <tromey@redhat.com>
9604 * coffread.c (coff_register_index): New global.
9605 (process_coff_symbol, coff_read_enum_type): Set
9606 SYMBOL_ACLASS_INDEX.
9607 (_initialize_coffread): Initialize new global.
9608 * dwarf2loc.c (locexpr_find_frame_base_location)
9609 (dwarf2_block_frame_base_locexpr_funcs)
9610 (loclist_find_frame_base_location)
9611 (dwarf2_block_frame_base_loclist_funcs): New.
9612 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9613 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9614 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9615 (dwarf2_block_frame_base_loclist_funcs): New.
9616 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9617 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9619 (read_func_scope): Update.
9620 (fixup_go_packaging, mark_common_block_symbol_computed)
9621 (var_decode_location, new_symbol_full, dwarf2_const_value):
9622 Set SYMBOL_ACLASS_INDEX.
9623 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9624 (_initialize_dwarf2_read): Initialize new globals.
9625 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9626 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9627 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9629 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9630 (_initialize_mdebugread): Initialize new globals.
9631 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9632 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9633 (stab_register_index, stab_regparm_index): New globals.
9634 (define_symbol, read_enum_type, common_block_end): Set
9635 SYMBOL_ACLASS_INDEX.
9636 (_initialize_stabsread): Initialize new globals.
9637 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9639 (MAX_SYMBOL_IMPLS): New define.
9640 (register_symbol_computed_impl, register_symbol_block_impl)
9641 (register_symbol_register_impl)
9642 (initialize_ordinary_address_classes): New functions.
9643 (_initialize_symtab): Call initialize_ordinary_address_classes.
9644 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9645 (struct symbol_impl): New.
9646 (SYMBOL_ACLASS_BITS): New define.
9647 (struct symbol) <aclass, ops>: Remove fields.
9648 <aclass_index>: New field.
9649 (symbol_impls): Declare.
9650 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9651 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9652 (register_symbol_computed_impl, register_symbol_block_impl)
9653 (register_symbol_register_impl): Declare.
9654 (struct symbol_computed_ops): Add location_has_loclist.
9655 (struct symbol_block_ops): New.
9656 (SYMBOL_BLOCK_OPS): New.
9657 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9659 2013-03-20 Tom Tromey <tromey@redhat.com>
9661 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9662 (print_partial_symbols, recursively_search_psymtabs): Use
9665 2013-03-20 Pierre Muller <muller@sourceware.org>
9667 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9668 addtion, subtraction, multiplication and division binary operator.
9670 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9673 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9674 * bsd-kvm.c (bsd_kvm_close): Likewise.
9675 * bsd-uthread.c (bsd_uthread_close): Likewise.
9676 * corelow.c (core_close): Likewise.
9677 (core_close_cleanup): Remove parameter quitting from a caller.
9678 * event-top.c (async_disconnect): Likewise.
9679 * exec.c (exec_close_1): Remove parameter quitting.
9680 * go32-nat.c (go32_close): Likewise.
9681 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9682 parameter quitting from a caller.
9683 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9685 (mips_linux_close): Remove parameter quitting. Remove parameter
9686 quitting from a caller.
9687 * monitor.c (monitor_close): Remove parameter quitting.
9688 * monitor.h (monitor_close): Likewise.
9689 * record-btrace.c (record_btrace_close): Likewise.
9690 * record-full.c (record_full_close): Likewise.
9691 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9692 it also from fprintf_unfiltered.
9693 * remote-mips.c (mips_close): Remove parameter quitting.
9694 (mips_detach): Remove parameter quitting from a caller.
9695 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9696 (gdbsim_close): Remove duplicate function comment. Remove parameter
9697 quitting and remove it also from printf_filtered.
9698 * remote.c (remote_close): Remove parameter quitting.
9699 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9700 * target.c (update_current_target): Remove parameter int from to_close
9702 (push_target, unpush_target, pop_target): Remove parameter quitting from
9704 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9705 Remove parameter quitting from a caller.
9706 (target_preopen): Remove parameter quitting from a caller.
9707 (target_close): Remove parameter quitting. Remove parameter quitting
9708 from a caller two times. Remove parameter quitting also from
9710 * target.h (struct target_ops): Remove parameter quitting and as int
9711 from fields to_xclose and to_close.
9712 (extern struct target_ops current_target):
9713 (target_close, pop_all_targets): Remove parameter quitting. Update the
9715 (pop_all_targets_above): Remove parameter quitting.
9716 * top.c (quit_target): Remove parameter quitting from a caller.
9717 * tracepoint.c (tfile_close): Remove parameter quitting.
9718 * windows-nat.c (windows_close): Remove parameter quitting.
9720 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9722 * windows-nat.c (handle_output_debug_string): Replace call
9723 to string_to_core_addr with call to strtoull.
9725 2013-03-20 Yao Qi <yao@codesourcery.com>
9727 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9728 and write it to CTF metadata.
9730 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9732 * windows-nat.c (handle_output_debug_string): Change type of n to
9733 SIZE_T to avoid crash on 64 bit systems.
9735 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9737 * python/python-internal.h (HAVE_SNPRINTF)
9738 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9739 about redefinition of snprintf by pyerrors.h.
9741 2013-03-15 Steve Ellcey <sellcey@mips.com>
9743 * remote-sim.c (sim_command_completer): Make char arguments const.
9745 2013-03-15 Tom Tromey <tromey@redhat.com>
9748 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9750 2013-03-14 Tom Tromey <tromey@redhat.com>
9752 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9754 (get_file_crc): Move from symfile.c.
9755 (gdb_bfd_crc): New function.
9756 * gdb_bfd.h (gdb_bfd_crc): Declare.
9757 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9758 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9759 (separate_debug_file_exists): Use gdb_bfd_crc.
9761 2013-03-14 Tom Tromey <tromey@redhat.com>
9763 * symfile.c (get_debug_link_info): Remove.
9764 (find_separate_debug_file_by_debuglink): Use
9765 bfd_get_debug_link_info.
9767 2013-03-14 Tom Tromey <tromey@redhat.com>
9769 * symtab.c (error_in_psymtab_expansion): New function.
9770 (lookup_symbol_aux_quick)
9771 (basic_lookup_transparent_type_quick): Remove "last resort"
9772 code. Use error_in_psymtab_expansion.
9774 2013-03-14 Doug Evans <dje@google.com>
9775 Jan Kratochvil <jan.kratochvil@redhat.com>
9777 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9778 any successful compare_filenames_for_search or FILENAME_CMP.
9779 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9780 * symtab.c (iterate_over_some_symtabs): Likewise.
9782 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9784 * source.c (print_source_lines_base): Make a local copy of
9787 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9788 Jan Kratochvil <jan.kratochvil@redhat.com>
9790 * source.c (print_source_lines_base): Suppress "file" for TUI.
9792 2013-03-14 Keith Seitz <keiths@redhat.com>
9793 Alan Matsuoka <alanm@redhat.com>
9797 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9799 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9802 2013-03-14 Yao Qi <yao@codesourcery.com>
9804 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9805 status to tfile if trace is stopped by command 'tstop'.
9807 2013-03-14 Yao Qi <yao@codesourcery.com>
9809 * tracepoint.c (tfile_write_status): Write trace notes and user
9810 name into tfile if they are not NULL.
9812 2013-03-14 Hui Zhu <hui@codesourcery.com>
9813 Yao Qi <yao@codesourcery.com>
9815 * Makefile.in (REMOTE_OBS): Add ctf.o.
9816 (SFILES): Add ctf.c.
9817 (HFILES_NO_SRCDIR): Add ctf.h.
9818 * ctf.c, ctf.h: New files.
9819 * tracepoint.c: Include 'ctf.h'.
9820 (collect_pseudocommand): Remove static.
9821 (trace_save_command): Parse option "-ctf".
9822 Produce different trace file writers per option.
9823 Adjust output message.
9824 (trace_save_tfile, trace_save_ctf): New.
9825 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9826 * mi/mi-main.c: Include 'ctf.h'.
9827 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9828 trace_save_tfile or trace_save_ctf.
9829 * NEWS: Mention these changes.
9831 2013-03-14 Yao Qi <yao@codesourcery.com>
9833 * tracepoint.c (trace_file_writer_xfree): New.
9834 (struct tfile_writer_data): New.
9835 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9836 (tfile_write_header, tfile_write_regblock_type): New.
9837 (tfile_write_status, tfile_write_uploaded_tsv): New.
9838 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9839 (tfile_write_raw_data, (tfile_end): New.
9840 (tfile_write_ops): New global variable.
9841 (TRACE_WRITE_R_BLOCK): New macro.
9842 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9843 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9844 (TRACE_WRITE_V_BLOCK): New macro.
9845 (trace_save): Add extra one parameter WRITER. Make it static.
9846 Use WRITER to writer trace.
9847 (tfile_trace_file_writer_new): New.
9848 (trace_save_command): Caller update.
9849 (trace_save_tfile): Write trace data in TFILE format.
9850 * tracepoint.h (struct trace_frame_write_ops): New.
9851 (struct trace_file_write_ops): New.
9852 (struct trace_file_writer): New.
9853 (trace_save): Remove its declaration.
9854 (trace_save_tfile): Declare it.
9855 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9856 instead of trace_save.
9858 2013-03-13 Pedro Alves <palves@redhat.com>
9860 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9862 2013-03-13 Pedro Alves <palves@redhat.com>
9864 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9866 * demangle.c (current_demangling_style_string): Make it const.
9867 (set_demangling_command): Assert the demangling style is known.
9868 Remove all handling of unknown styles. Set
9869 'current_demangling_style_string' to an element of the
9870 demangling_style_names array.
9871 (set_demangling_style): Delete.
9872 (_initialize_demangler): Set current_demangling_style_string to the
9873 element of the demangling_style_names array that corresponds to
9874 the default demangling style. Remove FIXME note. Don't call
9875 set_demangling_style.
9876 * gdb-demangle.h (set_demangling_style): Remove declaration.
9878 2013-03-13 Pedro Alves <palves@redhat.com>
9880 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9882 (ada_make_symbol_completion_list): Make "text0" parameter const.
9883 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9884 * breakpoint.c (condition_completer): Make "text" and "word"
9885 parameters const. Adjust.
9886 (check_tracepoint_command): Adjust to validate_actionline
9888 (catch_syscall_completer): Make "text" and "word" parameters
9890 * cli/cli-cmds.c (show_user): Make "comname" local const.
9891 (valid_command_p): Make "command" parameter const.
9892 (alias_command): Make "alias_prefix" and "command_prefix" locals
9894 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9895 (add_alias_cmd): Make "name" and "oldname" parameters const.
9896 Adjust. No longer make copy of OLDNAME.
9897 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9898 (add_setshow_cmd_full, add_setshow_enum_cmd)
9899 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9900 (add_setshow_filename_cmd, add_setshow_string_cmd)
9901 (add_setshow_string_noescape_cmd)
9902 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9903 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9904 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9905 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9906 Make "name" parameter const.
9907 (help_cmd): Rename "command" parameter to "arg". New const local
9909 (find_cmd): Make "command" parameter const.
9910 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9911 deprecated_cmd_warning prototype change.
9912 (undef_cmd_error): Make "cmdtype" parameter const.
9913 (lookup_cmd): Make "line" parameter const.
9914 (deprecated_cmd_warning): Change type of "text" parameter to
9915 pointer to const char, from pointer to pointer to char. Adjust.
9916 (lookup_cmd_composition): Make "text" parameter const.
9917 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9919 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9921 * cli/cli-script.c (validate_comname): Make "tem" local const.
9922 (define_command): New const local "tem_c". Use it in calls to
9924 (document_command): Make "tem" and "comfull" locals const.
9925 (show_user_1): Make "prefix" and "name" parameters const.
9926 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9928 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9929 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9930 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9931 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9932 (complete_on_enum, add_setshow_enum_cmd)
9933 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9934 (add_setshow_filename_cmd, add_setshow_string_cmd)
9935 (add_setshow_string_noescape_cmd)
9936 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9937 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9938 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9939 Change prototypes, constifying strings.
9940 * completer.c (noop_completer, filename_completer): Make "text"
9941 and "prefix" parameters const.
9942 (location_completer, expression_completer)
9943 (complete_line_internal): Make "text" and "prefix" parameters
9945 (command_completer, signal_completer): Make "text" and "prefix"
9947 * completer.h (noop_completer, filename_completer)
9948 (expression_completer, location_completer, command_completer)
9949 (signal_completer): Change prototypes.
9950 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9952 * cp-abi.c (cp_abi_completer): Likewise.
9953 * expression.h (parse_expression_for_completion): Change
9955 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9957 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9958 * infrun.c (handle_completer): Make "text" and "word" parameters
9960 * interps.c (interpreter_completer): Make "text" and "word"
9962 * language.h (struct language_defn)
9963 <la_make_symbol_completion_list>: Make "text" and "word"
9965 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9966 (parse_exp_in_context): Rename to ...
9967 (parse_exp_in_context_1): ... this.
9968 (parse_exp_in_context): Reimplement, with const hack from
9970 (parse_expression_for_completion): Make "string" parameter const.
9971 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9972 to pointer to const char. Adjust.
9973 (print_command_1): Make "exp" parameter const.
9974 (output_command): Rename to ...
9975 (output_command_const): ... this. Make "exp" parameter const.
9976 (output_command): Reimplement.
9977 (x_command): Adjust.
9978 (display_command): Rename "exp" parameter to "arg". New "exp"
9979 local, const version of "arg".
9980 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9981 "cmd_name" local const.
9982 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9984 (cmdpy_completer): Make "text" and "word" parameters const.
9985 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9986 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9988 * remote.c (_initialize_remote): Make "cmd_name" local const.
9989 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9990 parameters const. Adjust.
9991 (completion_list_add_fields): Make "sym_text", "text" and "word"
9993 (struct add_name_data) <sym_text, text, word>: Make fields const.
9994 (default_make_symbol_completion_list_break_on): Make "text" and
9995 "word" parameters const. Adjust locals.
9996 (default_make_symbol_completion_list)
9997 (make_symbol_completion_list, make_symbol_completion_type)
9998 (make_symbol_completion_list_fn): Make "text" and "word"
10000 (make_file_symbol_completion_list): Make "text", "word" and
10001 "srcfile" parameters const. Adjust locals.
10002 (add_filename_to_list): Make "text" and "word" parameters const.
10003 (struct add_partial_filename_data) <text, word>: Make fields
10005 (make_source_files_completion_list): Make "text" and "word"
10007 * symtab.h (default_make_symbol_completion_list_break_on)
10008 (default_make_symbol_completion_list, make_symbol_completion_list)
10009 (make_symbol_completion_type enum type_code)
10010 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10011 (make_source_files_completion_list): Change prototype.
10012 * top.c (execute_command): Adjust to pass pointer to pointer to
10013 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10015 (set_verbose): Make "cmdname" local const.
10016 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10018 (validate_actionline): Make "line" parameter a pointer to const
10020 (encode_actions_1): Make "action_exp" local const, and adjust.
10021 (encode_actions): Adjust.
10022 (replace_comma): Delete.
10023 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10024 const, and adjust. Don't frob the action string while splitting
10025 it at commas. Instead, make a copy of each split substring in
10027 (trace_dump_command): Adjust to validate_actionline prototype
10029 * tracepoint.h (decode_agent_options, decode_agent_options)
10030 (encode_actions, validate_actionline): Change prototypes.
10031 * valprint.h (output_command): Delete declaration.
10032 (output_command_const): Declare.
10033 * value.c (function_destroyer): Cast const away in xfree call.
10035 2013-03-13 Pedro Alves <palves@redhat.com>
10037 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10038 rather than casting 'const char * const *' to 'const char **'.
10039 * ada-lex.l (processInt): Make "trailer" local const. Remove
10040 'const char **' cast.
10041 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10042 locals, and use those as strtol output pointer, instead than doing
10043 invalid casts to from 'const char **' to 'char **'.
10044 (_initialize_demangle): Remove cast.
10045 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10046 locals, and use those as strtol output pointer, instead than doing
10047 invalid casts to from 'const char **' to 'char **'.
10048 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10050 * stap-probe.c (stap_parse_register_operand)
10051 (stap_parse_single_operand): Likewise.
10053 2013-03-13 Yao Qi <yao@codesourcery.com>
10055 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10056 the last matched 'V' blcok in trace frame.
10058 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10060 * NEWS: Create a new section for the next release branch.
10061 Rename the section of the current branch, now that it has
10064 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10066 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10067 * version.in: Bump version to 7.6.50.20130312-cvs.
10069 2013-03-12 Keith Seitz <keiths@redhat.com>
10071 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10072 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10073 Remove temporary copy of input string.
10074 (mi_execute_command_wrapper): Make "cmd" const.
10075 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10076 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10078 (mi_parse): Make "cmd" const.
10080 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10082 2013-03-12 Keith Seitz <keiths@redhat.com>
10084 * ada-lang.c (ada_read_renaming_var_value): Pass const
10085 pointer to expression string to parse_exp_1.
10086 (create_excep_cond_exprs): Likewise.
10087 * ax-gdb.c (agent_eval_command_one): Likewise.
10088 (maint_agent_printf_command): Likewise.
10089 Constify much of the string handling/parsing.
10090 * breakpoint.c (set_breakpoint_condition): Pass const
10091 pointer to expression string to parse_exp_1.
10092 (update_watchpoint): Likewise.
10093 (parse_cmd_to_aexpr): Constify string handling.
10094 Pass const pointer to parse_exp_1.
10095 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10096 (find_condition_and_thread): Likewise.
10098 (watch_command_1): Make "arg" const.
10099 Constify string handling.
10100 Copy the expression string instead of changing the input
10102 (update_breakpoint_location): Pass const pointer to
10104 * eval.c (parse_and_eval_address): Make "exp" const.
10105 (parse_to_comma_and_eval): Make "expp" const.
10106 (parse_and_eval): Make "exp" const.
10107 * expression.h (parse_expression): Make argument const.
10108 (parse_exp_1): Make first argument const.
10109 * findcmd.c (parse_find_args): Treat "args" as const.
10110 * linespec.c (parse_linespec): Pass const pointer to
10111 linespec_expression_to_pc.
10112 (linespec_expression_to_pc): Make "exp_ptr" const.
10113 * parse.c (parse_exp_1): Make "stringptr" const.
10114 Make a copy of the expression to pass to parse_exp_in_context until
10115 this whole interface can be constified.
10116 (parse_expression): Make "string" const.
10117 * printcmd.c (ui_printf): Treat "arg" as const.
10118 Handle const strings.
10119 * tracepoint.c (validate_actionline): Pass const pointer to
10120 all calls to parse_exp_1.
10121 (encode_actions_1): Likewise.
10122 * value.h (parse_to_comma_and_eval): Make argument const.
10123 (parse_and_eval_address): Likewise.
10124 (parse_and_eval): Likewise.
10125 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10126 (varobj_set_value): Likewise.
10127 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10128 constify string handling.
10129 Pass const pointers to parse_and_eval_address and
10130 parse_to_comman_and_eval.
10131 * cli/cli-utils.c (skip_to_space): Rename to ...
10132 (skip_to_space_const): ... this. Handle const strings.
10133 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10134 skip_to_space_const.
10135 (skip_to_space_const): Declare.
10136 * common/format.c (parse_format_string): Make "arg" const.
10137 Handle const strings.
10138 * common/format.h (parse_format_string): Make "arg" const.
10139 * gdbserver/ax.c (ax_printf): Make "format" const.
10140 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10141 of the expression string.
10143 2013-03-12 Hui Zhu <hui@codesourcery.com>
10145 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10147 2013-03-12 Yao Qi <yao@codesourcery.com>
10148 Hui Zhu <hui@codesourcery.com>
10150 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10151 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10154 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10156 * ada-lex.l (rules): Only recognize 'thread' as a
10157 delimiter when followed by numerals, as for c-exp.y.
10158 Use new rewind_to_char function to rewind the input for
10159 expression-delimiting tokens.
10160 (rewind_to_char): New function.
10162 2013-03-11 Pedro Alves <palves@redhat.com>
10163 Jan Kratochvil <jan.kratochvil@redhat.com>
10165 * configure: Regenerate.
10166 * configure.ac (check dynamic export flag): Link python test with
10169 2013-03-11 Doug Evans <dje@google.com>
10170 Keith Seitz <keiths@redhat.com>
10172 * linespec.c (find_linespec_symbols): Call find_function_symbols
10173 first, and then call lookup_prefix_sym/find_method.
10175 2013-03-11 Pedro Alves <palves@redhat.com>
10177 * charset.c (convert_between_encodings): Don't cast between
10178 different pointer to pointer types. Instead, make the 'inp' local
10179 be of the type iconv expects.
10180 (wchar_iterate): Don't cast between different pointer to pointer
10181 types. Instead, use new pointer local of the type iconv expects.
10182 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10183 Add new local of type char pointer, and use it to get a
10184 char/string view of the byte buffer, instead of casting between
10185 pointer to pointer types.
10187 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10189 * remote.c (remote_set_trace_buffer_size): Move != operator
10190 to the start of next line to fix an ARI warning.
10192 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10194 * NEWS: Add record changes.
10196 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10198 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10199 the instruction history disassembly.
10200 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10201 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10203 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10205 * Makefile.in (SFILES): Add record-btrace.c
10206 (COMMON_OBS): Add record-btrace.o
10207 * record-btrace.c: New.
10208 * objfiles.c: Include btrace.h.
10209 (free_objfile): call btrace_free_objfile.
10211 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10213 * target.c (target_call_history, target_call_history_from,
10214 target_call_history_range): New.
10215 * target.h (target_ops) <to_call_history, to_call_history_from,
10216 to_call_history_range>: New fields.
10217 (target_call_history, target_call_history_from,
10218 target_call_history_range): New declaration.
10219 * record.c (get_call_history_modifiers, cmd_record_call_history,
10220 record_call_history_size): New.
10221 (_initialize_record): Add the "record function-call-history" command.
10222 Add "set/show record function-call-history-size" commands.
10223 * record.h (record_print_flag): New.
10225 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10227 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10228 to_insn_history_range>: New fields.
10229 (target_insn_history): New.
10230 (target_insn_history_from): New.
10231 (target_insn_history_range): New.
10232 * target.c (target_insn_history): New.
10233 (target_insn_history_from): New.
10234 (target_insn_history_range): New.
10235 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10236 (record_insn_history_size): New.
10237 (get_insn_number): New.
10238 (get_context_size): New.
10240 (get_insn_history_modifiers): New.
10241 (cmd_record_insn_history): New.
10242 (_initialize_record): Add "set/show record instruction-history-size"
10243 command. Add "record instruction-history" command.
10245 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10247 * record.h (record_disconnect): New.
10248 (record_detach): New.
10249 (record_mourn_inferior): New.
10250 (record_kill): New.
10251 * record-full.c (record_disconnect, record_detach,
10252 record_mourn_inferior, record_kill): Move to...
10253 * record.c: ...here.
10255 (record_stop): New.
10256 (record_unpush): New.
10257 (cmd_record_stop): Call record_stop. Replace unpush_target
10258 call with record_unpush call.
10259 (record_disconnect, record_detach): Assert that the target
10260 is of record stratum. Call record_unpush, record_stop, and
10262 (record_mourn_inferior, record_kill): Assert that the target
10263 is of record stratum. Call record_unpush and DEBUG.
10265 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10267 * record-full.h, record-full.c (record_memory_query): Rename
10269 (record_full_memory_query): ...this. Update all users.
10270 (record_arch_list_add_reg): Rename to ...
10271 (record_full_arch_list_add_reg): ...this. Update all users.
10272 (record_arch_list_add_mem): Rename to ...
10273 (record_full_arch_list_add_mem): ...this. Update all users.
10274 (record_arch_list_add_end): Rename to ...
10275 (record_full_arch_list_add_end): ...this. Update all users.
10276 (record_gdb_operation_disable_set): Rename to ...
10277 (record_full_gdb_operation_disable_set): ...this.
10280 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10282 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10283 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10284 (RECORD_IS_REPLAY): Renamed to ...
10285 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10286 (RECORD_FILE_MAGIC): Renamed to ...
10287 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10288 (record_mem_entry): Renamed to ...
10289 (record_full_mem_entry): ... this. Updated all users.
10290 (record_reg_entry): Renamed to ...
10291 (record_full_reg_entry): ... this. Updated all users.
10292 (record_end_entry): Renamed to ...
10293 (record_full_end_entry): ... this. Updated all users.
10294 (record_type) <record_end, record_reg, record_mem>: Renamed
10296 (record_full_type) <record_full_end, record_full_reg,
10297 record_full_mem>: ... this. Updated all users.
10298 (record_entry): Renamed to ...
10299 (record_full_entry): ... this. Updated all users.
10300 (record_core_buf_entry): Renamed to ...
10301 (record_full_core_buf_entry): ... this. Updated all users.
10302 (record_core_regbuf): Renamed to ...
10303 (record_full_core_regbuf): ... this. Updated all users.
10304 (record_core_start): Renamed to ...
10305 (record_full_core_start): ... this. Updated all users.
10306 (record_core_end): Renamed to ...
10307 (record_full_core_end): ... this. Updated all users.
10308 (record_core_buf_list): Renamed to ...
10309 (record_full_core_buf_list): ... this. Updated all users.
10310 (record_first): Renamed to ...
10311 (record_full_first): ... this. Updated all users.
10312 (record_list): Renamed to ...
10313 (record_full_list): ... this. Updated all users.
10314 (record_arch_list_head): Renamed to ...
10315 (record_full_arch_list_head): ... this. Updated all users.
10316 (record_arch_list_tail): Renamed to ...
10317 (record_full_arch_list_tail): ... this. Updated all users.
10318 (record_stop_at_limit): Renamed to ...
10319 (record_full_stop_at_limit): ... this. Updated all users.
10320 (record_insn_max_num): Renamed to ...
10321 (record_full_insn_max_num): ... this. Updated all users.
10322 (record_insn_num): Renamed to ...
10323 (record_full_insn_num): ... this. Updated all users.
10324 (record_insn_count): Renamed to ...
10325 (record_full_insn_count): ... this. Updated all users.
10326 (record_ops): Renamed to ...
10327 (record_full_ops): ... this. Updated all users.
10328 (record_core_ops): Renamed to ...
10329 (record_full_core_ops): ... this. Updated all users.
10330 (set_record_cmdlist): Renamed to ...
10331 (set_record_full_cmdlist): ... this. Updated all users.
10332 (show_record_cmdlist): Renamed to ...
10333 (show_record_full_cmdlist): ... this. Updated all users.
10334 (record_cmdlist): Renamed to ...
10335 (record_full_cmdlist): ... this. Updated all users.
10336 (record_beneath_to_resume_ops): Renamed to ...
10337 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10338 (record_beneath_to_resume): Renamed to ...
10339 (record_full_beneath_to_resume): ... this. Updated all users.
10340 (record_beneath_to_wait_ops): Renamed to ...
10341 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10342 (record_beneath_to_wait): Renamed to ...
10343 (record_full_beneath_to_wait): ... this. Updated all users.
10344 (record_beneath_to_store_registers_ops): Renamed to ...
10345 (record_full_beneath_to_store_registers_ops): ... this.
10347 (record_beneath_to_store_registers): Renamed to ...
10348 (record_full_beneath_to_store_registers): ... this.
10350 (record_beneath_to_xfer_partial_ops): Renamed to ...
10351 (record_full_beneath_to_xfer_partial_ops): ... this.
10353 (record_beneath_to_xfer_partial): Renamed to ...
10354 (record_full_beneath_to_xfer_partial): ... this.
10356 (record_beneath_to_insert_breakpoint): Renamed to ...
10357 (record_full_beneath_to_insert_breakpoint): ... this.
10359 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10360 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10362 (record_beneath_to_stopped_data_address): Renamed to ...
10363 (record_full_beneath_to_stopped_data_address): ... this.
10365 (record_beneath_to_async): Renamed to ...
10366 (record_full_beneath_to_async): ... this. Updated all users.
10367 (record_goto_insn): Renamed to ...
10368 (record_full_goto_insn): ... this. Updated all users.
10369 (record_save): Renamed to ...
10370 (record_full_save): ... this. Updated all users.
10371 (record_reg_alloc): Renamed to ...
10372 (record_full_reg_alloc): ... this. Updated all users.
10373 (record_reg_release): Renamed to ...
10374 (record_full_reg_release): ... this. Updated all users.
10375 (record_mem_alloc): Renamed to ...
10376 (record_full_mem_alloc): ... this. Updated all users.
10377 (record_mem_release): Renamed to ...
10378 (record_full_mem_release): ... this. Updated all users.
10379 (record_end_alloc): Renamed to ...
10380 (record_full_end_alloc): ... this. Updated all users.
10381 (record_end_release): Renamed to ...
10382 (record_full_end_release): ... this. Updated all users.
10383 (record_entry_release): Renamed to ...
10384 (record_full_entry_release): ... this. Updated all users.
10385 (record_list_release): Renamed to ...
10386 (record_full_list_release): ... this. Updated all users.
10387 (record_list_release_following): Renamed to ...
10388 (record_full_list_release_following): ... this.
10390 (record_list_release_first): Renamed to ...
10391 (record_full_list_release_first): ... this. Updated all users.
10392 (record_arch_list_add): Renamed to ...
10393 (record_full_arch_list_add): ... this. Updated all users.
10394 (record_get_loc): Renamed to ...
10395 (record_full_get_loc): ... this. Updated all users.
10396 (record_check_insn_num): Renamed to ...
10397 (record_full_check_insn_num): ... this. Updated all users.
10398 (record_arch_list_cleanups): Renamed to ...
10399 (record_full_arch_list_cleanups): ... this. Updated all users.
10400 (record_message): Renamed to ...
10401 (record_full_message): ... this. Updated all users.
10402 (record_message_wrapper): Renamed to ...
10403 (record_full_message_wrapper): ... this. Updated all users.
10404 (record_message_wrapper_safe): Renamed to ...
10405 (record_full_message_wrapper_safe): ... this. Updated all users.
10406 (record_gdb_operation_disable): Renamed to ...
10407 (record_full_gdb_operation_disable): ... this. Updated all users.
10408 (record_hw_watchpoint): Renamed to ...
10409 (record_full_hw_watchpoint): ... this. Updated all users.
10410 (record_exec_insn): Renamed to ...
10411 (record_full_exec_insn): ... this. Updated all users.
10412 (record_restore): Renamed to ...
10413 (record_full_restore): ... this. Updated all users.
10414 (record_async_inferior_event_token): Renamed to ...
10415 (record_full_async_inferior_event_token): ... this.
10417 (record_async_inferior_event_handler): Renamed to ...
10418 (record_full_async_inferior_event_handler): ... this.
10420 (record_core_open_1): Renamed to ...
10421 (record_full_core_open_1): ... this. Updated all users.
10422 (record_open_1): Renamed to ...
10423 (record_full_open_1): ... this. Updated all users.
10424 (record_open): Renamed to ...
10425 (record_full_open): ... this. Updated all users.
10426 (record_close): Renamed to ...
10427 (record_full_close): ... this. Updated all users.
10428 (record_resume_step): Renamed to ...
10429 (record_full_resume_step): ... this. Updated all users.
10430 (record_resumed): Renamed to ...
10431 (record_full_resumed): ... this. Updated all users.
10432 (record_execution_dir): Renamed to ...
10433 (record_full_execution_dir): ... this. Updated all users.
10434 (record_resume): Renamed to ...
10435 (record_full_resume): ... this. Updated all users.
10436 (record_get_sig): Renamed to ...
10437 (record_full_get_sig): ... this. Updated all users.
10438 (record_sig_handler): Renamed to ...
10439 (record_full_sig_handler): ... this. Updated all users.
10440 (record_wait_cleanups): Renamed to ...
10441 (record_full_wait_cleanups): ... this. Updated all users.
10442 (record_wait_1): Renamed to ...
10443 (record_full_wait_1): ... this. Updated all users.
10444 (record_wait): Renamed to ...
10445 (record_full_wait): ... this. Updated all users.
10446 (record_stopped_by_watchpoint): Renamed to ...
10447 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10448 (record_disconnect): Renamed to ...
10449 (record_full_disconnect): ... this. Updated all users.
10450 (record_detach): Renamed to ...
10451 (record_full_detach): ... this. Updated all users.
10452 (record_mourn_inferior): Renamed to ...
10453 (record_full_mourn_inferior): ... this. Updated all users.
10454 (record_kill): Renamed to ...
10455 (record_full_kill): ... this. Updated all users.
10456 (record_stopped_data_address): Renamed to ...
10457 (record_full_stopped_data_address): ... this. Updated all users.
10458 (record_registers_change): Renamed to ...
10459 (record_full_registers_change): ... this. Updated all users.
10460 (record_store_registers): Renamed to ...
10461 (record_full_store_registers): ... this. Updated all users.
10462 (record_xfer_partial): Renamed to ...
10463 (record_full_xfer_partial): ... this. Updated all users.
10464 (record_breakpoint): Renamed to ...
10465 (record_full_breakpoint): ... this. Updated all users.
10466 (record_breakpoint_p): Renamed to ...
10467 (record_full_breakpoint_p): ... this. Updated all users.
10468 (record_breakpoints): Renamed to ...
10469 (record_full_breakpoints): ... this. Updated all users.
10470 (record_sync_record_breakpoints): Renamed to ...
10471 (record_full_sync_record_breakpoints): ... this.
10473 (record_init_record_breakpoints): Renamed to ...
10474 (record_full_init_record_breakpoints): ... this.
10476 (record_insert_breakpoint): Renamed to ...
10477 (record_full_insert_breakpoint): ... this. Updated all users.
10478 (record_remove_breakpoint): Renamed to ...
10479 (record_full_remove_breakpoint): ... this. Updated all users.
10480 (record_can_execute_reverse): Renamed to ...
10481 (record_full_can_execute_reverse): ... this. Updated all users.
10482 (record_get_bookmark): Renamed to ...
10483 (record_full_get_bookmark): ... this. Updated all users.
10484 (record_goto_bookmark): Renamed to ...
10485 (record_full_goto_bookmark): ... this. Updated all users.
10486 (record_async): Renamed to ...
10487 (record_full_async): ... this. Updated all users.
10488 (record_can_async_p): Renamed to ...
10489 (record_full_can_async_p): ... this. Updated all users.
10490 (record_is_async_p): Renamed to ...
10491 (record_full_is_async_p): ... this. Updated all users.
10492 (record_execution_direction): Renamed to ...
10493 (record_full_execution_direction): ... this. Updated all users.
10494 (record_info): Renamed to ...
10495 (record_full_info): ... this. Updated all users.
10496 (record_delete): Renamed to ...
10497 (record_full_delete): ... this. Updated all users.
10498 (record_is_replaying): Renamed to ...
10499 (record_full_is_replaying): ... this. Updated all users.
10500 (record_goto_entry): Renamed to ...
10501 (record_full_goto_entry): ... this. Updated all users.
10502 (record_goto_begin): Renamed to ...
10503 (record_full_goto_begin): ... this. Updated all users.
10504 (record_goto_end): Renamed to ...
10505 (record_full_goto_end): ... this. Updated all users.
10506 (record_goto): Renamed to ...
10507 (record_full_goto): ... this. Updated all users.
10508 (init_record_ops): Renamed to ...
10509 (init_record_full_ops): ... this. Updated all users.
10510 (record_core_resume): Renamed to ...
10511 (record_full_core_resume): ... this. Updated all users.
10512 (record_core_kill): Renamed to ...
10513 (record_full_core_kill): ... this. Updated all users.
10514 (record_core_fetch_registers): Renamed to ...
10515 (record_full_core_fetch_registers): ... this. Updated all users.
10516 (record_core_prepare_to_store): Renamed to ...
10517 (record_full_core_prepare_to_store): ... this. Updated all users.
10518 (record_core_store_registers): Renamed to ...
10519 (record_full_core_store_registers): ... this. Updated all users.
10520 (record_core_xfer_partial): Renamed to ...
10521 (record_full_core_xfer_partial): ... this. Updated all users.
10522 (record_core_insert_breakpoint): Renamed to ...
10523 (record_full_core_insert_breakpoint): ... this. Updated all users.
10524 (record_core_remove_breakpoint): Renamed to ...
10525 (record_full_core_remove_breakpoint): ... this. Updated all users.
10526 (record_core_has_execution): Renamed to ...
10527 (record_full_core_has_execution): ... this. Updated all users.
10528 (init_record_core_ops): Renamed to ...
10529 (init_record_full_core_ops): ... this. Updated all users.
10530 (cmd_record_restore): Renamed to ...
10531 (cmd_record_full_restore): ... this. Updated all users.
10532 (record_save_cleanups): Renamed to ...
10533 (record_full_save_cleanups): ... this. Updated all users.
10534 (cmd_record_start): Renamed to ...
10535 (cmd_record_full_start): ... this. Updated all users.
10536 (set_record_insn_max_num): Renamed to ...
10537 (set_record_full_insn_max_num): ... this. Updated all users.
10538 (set_record_command): Renamed to ...
10539 (set_record_full_command): ... this. Updated all users.
10540 (show_record_command): Renamed to ...
10541 (show_record_full_command): ... this. Updated all users.
10542 (_initialize_record): Renamed to ...
10543 (_initialize_record_full): ... this. Updated all users.
10545 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10547 * record.h: Split into this and ...
10548 * record-full.h: ... this.
10549 * record.c: Split into this and ...
10550 * record-full.c: ... this.
10551 * target.h (target_ops): Add new fields to_info_record,
10552 to_save_record, to_delete_record, to_record_is_replaying,
10553 to_goto_record_begin, to_goto_record_end, to_goto_record.
10554 (target_info_record): New.
10555 (target_save_record): New.
10556 (target_supports_delete_record): New.
10557 (target_delete_record): New.
10558 (target_record_is_replaying): New.
10559 (target_goto_record_begin): New.
10560 (target_goto_record_end): New.
10561 (target_goto_record): New.
10562 * target.c (target_info_record): New.
10563 (target_save_record): New.
10564 (target_supports_delete_record): New.
10565 (target_delete_record): New.
10566 (target_record_is_replaying): New.
10567 (target_goto_record_begin): New.
10568 (target_goto_record_end): New.
10569 (target_goto_record): New.
10570 * record.h: Declare struct cmd_list_element.
10571 (record_cmdlist): New declaration.
10572 (set_record_cmdlist): New declaration.
10573 (show_record_cmdlist): New declaration.
10574 (info_record_cmdlist): New declaration.
10575 (cmd_record_goto): New declaration.
10576 * record.c: Remove unnecessary includes.
10577 Include inferior.h.
10578 (cmd_record_goto): Remove declaration.
10579 (record_cmdlist): Now extern. Initialize.
10580 (set_record_cmdlist): Now extern. Initialize.
10581 (show_record_cmdlist): Now extern. Initialize.
10582 (info_record_cmdlist): Now extern. Initialize.
10583 (find_record_target): New.
10584 (require_record_target): New.
10585 (cmd_record_start): Update.
10586 (cmd_record_delete): Remove target-specific code.
10587 Call target_delete_record.
10588 (cmd_record_stop): Unpush any record target.
10589 (set_record_insn_max_num): Move to record-full.c
10590 (set_record_command): Add comment.
10591 (show_record_command): Add comment.
10592 (info_record_command): Update comment.
10593 Remove target-specific code.
10594 Call the record target's to_info_record.
10595 (cmd_record_start): New.
10596 (cmd_record_goto): Now extern.
10597 Remove target-specific code.
10598 Call target_goto_begin, target_goto_end, or target_goto.
10599 (_initialize_record): Move record target ops initialization to
10601 Change "record" command help text.
10602 Move "record restore", "record set", and "record show" commands to
10604 * Makefile.in (SFILES): Add record-full.c.
10605 (HFILES_NO_SRCDIR): Add record-full.h.
10606 (COMMON_OBS): Add record-full.o.
10607 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10608 * arm-tdep.c: Include record-full.h.
10609 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10610 * i386-tdep.c: Include record-full.h.
10611 * infrun.c: Include record-full.h.
10612 * linux-record.c: Include record-full.h.
10613 * moxie-tdep.c: Include record-full.h.
10614 * record-full.c: Include record-full.h.
10615 Change module comment.
10616 (set_record_full_cmdlist): New.
10617 (show_record_full_cmdlist): New.
10618 (record_full_cmdlist): New.
10619 (record_goto_insn): New declaration.
10620 (record_save): New declaration.
10621 (record_check_insn_num): Change query string.
10622 (record_info): New.
10623 (record_delete): New.
10624 (record_is_replaying): New.
10625 (record_goto_entry): New.
10626 (record_goto_begin): New.
10627 (record_goto_end): New.
10628 (record_goto): New.
10629 (init_record_ops): Update.
10630 (init_record_core_ops): Update.
10631 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10632 (cmd_record_start): New.
10633 (set_record_insn_max_num): Moved from record.c
10634 (set_record_full_command): New.
10635 (show_record_full_command): New.
10636 (_initialize_record_full): New.
10638 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10640 * target.h (add_deprecated_target_alias): New.
10641 * target.c (add_deprecated_target_alias): New.
10643 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10645 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10647 (linux_supports_btrace): Add kernel and
10649 (kernel_supports_btrace): New function.
10650 (cpu_supports_btrace): New function.
10651 (intel_supports_btrace): New function.
10653 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10655 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10656 * remote.c: Include btrace.h.
10657 (struct btrace_target_info): New struct.
10658 (remote_supports_btrace): New function.
10659 (send_Qbtrace): New function.
10660 (remote_enable_btrace): New function.
10661 (remote_disable_btrace): New function.
10662 (remote_teardown_btrace): New function.
10663 (remote_read_btrace): New function.
10664 (init_remote_ops): Add btrace ops.
10665 (enum <unnamed>): Add btrace packets.
10666 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10667 (_initialize_remote): Add packet configuration for branch tracing.
10669 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10671 * features/btrace.dtd: New file.
10672 * Makefile.in (XMLFILES): Add btrace.dtd.
10673 * btrace.h (parse_xml_btrace): New declaration.
10674 * btrace.c: Include xml-support.h.
10675 (parse_xml_btrace): New function.
10676 (parse_xml_btrace_block): New function.
10677 (block_attributes): New struct.
10678 (btrace_attributes): New struct.
10679 (btrace_children): New struct.
10680 (btrace_elements): New struct.
10682 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10684 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10685 (amd64_linux_enable_btrace): New.
10686 (amd64_linux_disable_btrace): New.
10687 (amd64_linux_teardown_btrace): New.
10688 (_initialize_amd64_linux_nat): Initialize btrace ops.
10689 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10690 (i386_linux_enable_btrace): New.
10691 (i386_linux_disable_btrace): New.
10692 (i386_linux_teardown_btrace): New.
10693 (_initialize_i386_linux_nat): Initialize btrace ops.
10694 * config/i386/linux.mh: Add linux-btrace.o.
10695 * config/i386/linux64.mh: Add linux-btrace.o.
10697 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10699 * common/linux_btrace.h: New file.
10700 * common/linux_btrace.c: New file.
10701 * Makefile.in (SFILES): Add btrace.c.
10702 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10703 (COMMON_OBS): Add btrace.o.
10704 (linux-btrace.o): New rule.
10706 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10708 * target.h: Include btrace.h.
10709 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10710 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10711 * target.c (target_supports_btrace): New function.
10712 (target_enable_btrace): New function.
10713 (target_disable_btrace): New function.
10714 (target_teardown_btrace): New function.
10715 (target_read_btrace): New function.
10716 * btrace.h: New file.
10717 * btrace.c: New file.
10718 * Makefile.in: Add btrace.c.
10719 * gdbthread.h: Include btrace.h.
10720 (struct thread_info): Add btrace field.
10721 * thread.c: Include btrace.h.
10722 (clear_thread_inferior_resources): Call target_teardown_btrace.
10723 * common/btrace-common.h: New file.
10725 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10727 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10728 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10729 kill_status to outer block.
10731 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10733 Fix entry-values if the callee called a noreturn function.
10734 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10735 get_frame_address_in_block. Add new comment.
10737 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10739 Fix entry-values in C++ across CUs.
10740 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10741 lookup_minimal_symbol. Add a comment.
10743 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10744 DW_AT_linkage_name.
10746 2013-03-08 Yao Qi <yao@codesourcery.com>
10748 * tracepoint.c (_initialize_tracepoint): Indent the code.
10750 2013-03-08 Pedro Alves <palves@redhat.com>
10752 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10753 (parse_find_args, find_command): Change type of pattern buffer
10754 locals to 'gdb_byte *'.
10756 2013-03-08 Stan Shebs <stan@codesourcery.com>
10757 Hafiz Abid Qadeer <abidh@codesourcery.com>
10759 * NEWS: Mention set and show trace-buffer-size commands.
10760 Mention new packet.
10761 * target.h (struct target_ops): New method
10762 to_set_trace_buffer_size.
10763 (target_set_trace_buffer_size): New macro.
10764 * target.c (update_current_target): Set up new method.
10765 * tracepoint.c (trace_buffer_size): New global.
10766 (start_tracing): Send it to the target.
10767 (set_trace_buffer_size): New function.
10768 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10769 * remote.c (remote_set_trace_buffer_size): New function.
10770 (_initialize_remote): Use it.
10771 (QTBuffer:size) New remote command.
10772 (PACKET_QTBuffer_size): New enum.
10773 (remote_protocol_features): Add an entry for
10774 PACKET_QTBuffer_size.
10776 2013-03-08 Tom Tromey <tromey@redhat.com>
10778 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10781 2013-03-07 Pedro Alves <palves@redhat.com>
10783 * target.c (target_read_stralloc, target_fileio_read_alloc):
10784 *Cast pointer to 'gdb_byte *' in target call.
10786 2013-03-07 Pedro Alves <palves@redhat.com>
10788 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10791 2013-03-07 Keith Seitz <keiths@redhat.com>
10793 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10794 (trace_pass_command): Likewise.
10795 * cli/cli-cmds.c: Include cli/cli-utils.h.
10796 (source_command): Use skip-spaces.
10797 (disassemble_command): Likewise.
10798 * findcmd.c: Include cli/cli-utils.h.
10799 (parse_find_args): Use skip_spaces.
10800 * go32-nat.c: Include cli/cli-utils.h.
10801 (go32_sldt): Use skip_spaces.
10802 (go32_sgdt): Likewise.
10803 (go32_sidt): Likewise.
10804 (go32_pde): Likewise.
10805 (go32_pte): Likewise.
10806 (go32_pte_for_address): Likewise.
10807 * infcmd.c: Include cli/cli-utils.h.
10808 (registers_info): Use skip_spaces.
10809 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10810 (linux_info_proc): Likewise.
10811 * linux-thread-db.c: Include cli/cli-utils.h.
10812 (info_auto_load_libthread_db): Use skip_spaces_const.
10813 * m32r-rom.c: Include cli/cli-utils.h.
10814 (m32r_upload_command): Use skip_spaces.
10815 * maint.c: Include cli/cli-utils.h.
10816 (maintenance_translate_address): Use skip_spaces.
10817 * mi/mi-parse.c: Include cli/cli-utils.h.
10818 (mi_parse_argv): Use skip_spaces.
10819 (mi_parse): Likewise.
10820 * minsyms.c: Include cli/cli-utils.h.
10821 (msymbol_hash_iw): Use skip_spaces_const.
10822 * objc-lang.c: Include cli/cli-utils.h.
10823 (parse_selector): Use skip_spaces.
10824 (parse_method): Likewise.
10825 * python/python.c: Include cli/cli-utils.h.
10826 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10827 (python_command)[HAVE_PYTHON]: Likewise.
10828 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10829 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10830 (m32r_load): Use skip_spaces.
10831 * serial.c: Include cli/cli-utils.h.
10832 (serial_open): Use skip_spaces_const.
10833 * stack.c: Include cli/cli-utils.h.
10834 (parse_frame_specification_1): Use skip_spaces_const.
10835 * symfile.c: Include cli/cli-utils.h.
10836 (set_ext_lang_command): Use skip_spaces.
10837 * symtab.c: Include cli/cli-utils.h.
10838 (rbreak_command): Use skip_spaces.
10839 * thread.c (thread_name_command): Use skip_spaces.
10840 * tracepoint.c (validate_actionline): Use skip_spaces.
10841 (encode_actions_1): Likewise.
10842 (trace_find_range_command): Likewise.
10843 (trace_find_outside_command): Likewise.
10844 (trace_dump_actions): Likewise.
10846 2013-03-07 Pedro Alves <palves@redhat.com>
10848 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10849 * expprint.c (print_subexp_standard): Likewise.
10850 * utils.c (host_char_to_target): Likewise.
10851 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10852 * varobj.c (value_get_print_value): Change type of local to char*.
10853 Cast it gdb_byte * in call to language printer.
10855 2013-03-07 Pedro Alves <palves@redhat.com>
10857 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10859 (make_wchar_iterator): Remove cast to char*.
10860 (wchar_iterate): Change type of local.
10862 2013-03-07 Pedro Alves <palves@redhat.com>
10864 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10865 for 'regcache->register_status'.
10867 2013-03-07 Pedro Alves <palves@redhat.com>
10869 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10872 2013-03-07 Pedro Alves <palves@redhat.com>
10874 * stap-probe.c (handle_stap_probe): Add cast to char*.
10876 2013-03-07 Pedro Alves <palves@redhat.com>
10878 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10879 RECORD_MSGRCV>: Pass a signed variable to
10880 regcache_raw_read_signed, instead of an unsigned one.
10882 2013-03-07 Pedro Alves <palves@redhat.com>
10884 * remote-notif.c (notif_debug): Change type to int.
10885 * remote-notif.h (notif_debug): Likewise.
10887 2013-03-07 Pedro Alves <palves@redhat.com>
10889 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10891 2013-03-07 Pedro Alves <palves@redhat.com>
10893 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10894 * remote.h (hex2bin, bin2hex): ... here.
10895 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10897 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10899 * utils.c (initialize_utils): Improve doc strings of "set/show
10900 width", "set/show height", and "set/show pagination".
10902 2013-03-06 Keith Seitz <keiths@redhat.com>
10904 * ax-gdb.c (gen_printf): Make FORMAT const.
10905 * ax-gdb.h (gen_printf): Likewise.
10906 * ax-general.c (ax_string): Make STR const.
10907 * ax.h (ax_string): Likewise.
10909 2013-03-06 Doug Evans <dje@google.com>
10911 * elfread.c (elf_symfile_read): Move debugging printf to more
10914 2013-03-06 Pedro Alves <palves@redhat.com>
10916 * python/py-utils.c (target_string_to_unicode): Delete function.
10917 * python/python-internal.h (target_string_to_unicode): Delete
10920 2013-03-06 Pierre Muller <muller@sourceware.org>
10922 * linespec.c (get_current_search_block): ARI fix, use (void)
10923 for empty parameter list.
10925 2013-03-05 Doug Evans <dje@google.com>
10927 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10928 of old ada_lookup_symbol_list. In !full_search case, don't
10929 search superblocks.
10930 (ada_lookup_symbol_list): Delete arg full_search, all callers
10931 updated. Call ada_lookup_symbol_list_worker.
10932 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10933 * ada-lang.h (ada_lookup_symbol_list): Update.
10934 * language.h (language_defn): Update comment for
10935 la_iterate_over_symbols.
10936 * linespec.c (iterate_over_file_blocks): New function.
10937 (iterate_over_all_matching_symtabs): Call it.
10938 (lookup_prefix_sym): Ditto.
10939 (get_current_search_block): New function.
10940 (get_search_block): Delete.
10941 (find_label_symbols): Call get_current_search_block.
10942 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10943 * symtab.c (iterate_over_symbols): Don't search superblocks.
10945 2013-03-05 Yao Qi <yao@codesourcery.com>
10947 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10948 parameter VAR's type from "unsigned int" to "int".
10949 * command.h (var_zuinteger_unlimited): Update its comments.
10950 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10952 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10954 * NEWS: Mention new target x86_64-*-cygwin*.
10956 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10958 * configure.host: Add x86_64-*-cygwin* as host.
10959 * configure.tgt: Add x86_64-*-cygwin* as target.
10960 * config/i386/cygwin64.mh: New file.
10962 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10964 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10966 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10968 * linespec.c (struct linespec_canonical_name): New.
10969 (struct linespec_state): Change canonical_names type to it.
10970 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10971 xrealloc element size. Initialize the different CANONICAL fields.
10972 (canonical_to_fullform): New.
10973 (filter_results): Use it. Add variables canonical, fullform and
10975 (struct decode_line_2_item, decode_line_2_compare_items): New.
10976 (decode_line_2): Remove variables iter and item_names, add variables
10977 items and items_count. Modify the code for these new variables.
10979 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10981 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10982 calling do_cleanup.
10984 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10986 * tracepoint.c (build_traceframe_info): Add code for byte order.
10988 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10990 * v850-tdep.c: (v850e2_register_name): Revise system register
10991 names to match current V850E2M architecture specifications.
10992 Update register number enum comments too.
10994 2013-03-01 Jiong Wang <jiwang@tilera.com>
10995 Pedro Alves <palves@redhat.com>
10997 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10999 (tilegx_skip_prologue): Limit prologue analysis to section end.
11001 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11003 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11006 2013-03-01 Pedro Alves <palves@redhat.com>
11008 Use gdb_byte for bytes from the program being debugged.
11010 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11011 Change type of local 'buf' to gdb_byte.
11012 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11013 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11014 * cris-tdep.c (cris_sigcontext_addr)
11015 (cris_sigtramp_frame_unwind_cache): Likewise.
11016 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11017 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11019 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11020 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11021 (hppa32_hpux_search_dummy_call_sequence)
11022 (hppa_hpux_supply_save_state): Likewise.
11023 * hppa-linux-tdep.c (insns_match_pattern)
11024 (hppa_linux_find_global_pointer): Likewise.
11025 * hppa-tdep.c (hppa_in_function_epilogue_p)
11026 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11027 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11028 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11029 (i386fbsd_collect_uthread): Likewise.
11030 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11031 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11032 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11033 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11034 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11035 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11036 (ia64_libunwind_frame_prev_register)
11037 (ia64_libunwind_sigtramp_frame_this_id)
11038 (ia64_find_global_pointer_from_dynamic_section)
11039 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11040 (ia64_unwind_pc): Likewise.
11041 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11042 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11043 (m68hc11_extract_return_value): Likewise.
11044 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11045 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11046 (mep_get_insn, mep_push_dummy_call): Likewise.
11047 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11048 (mips_linux_in_dynsym_stub): Likewise.
11049 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11050 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11051 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11053 * remote-mips.c (mips_set_register): Likewise.
11054 * remote-sim.c (gdbsim_fetch_register): Likewise.
11055 * score-tdep.c (score7_fetch_inst): Change type of parameter
11056 'memblock' and local 'buf' to gdb_byte.
11057 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11058 Change type of local 'buf' to gdb_byte. Adjust.
11059 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11061 (score7_analyze_prologue): Change type of 'memblock' and
11062 'memblock_ptr' locals to gdb_byte*.
11063 * sh64-tdep.c (sh64_extract_return_value)
11064 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11065 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11066 * solib-pa64.c (pa64_solib_create_inferior_hook)
11067 (pa64_open_symbol_file_object): Remove local 'buf'.
11068 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11069 (som_open_symbol_file_object): Likewise.
11070 * solib-spu.c (spu_current_sos): Likewise.
11071 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11072 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11073 (spu_store_registers): Likewise.
11074 * target.c (debug_print_register): Likewise.
11075 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11076 * xstormy16-tdep.c (xstormy16_store_return_value)
11077 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11078 (xstormy16_find_jmp_table_entry): Likewise.
11080 2013-03-01 Jiong Wang <jiwang@tilera.com>
11082 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11083 (tilegx_gdbarch_init): Install it.
11085 2013-02-28 Tom Tromey <tromey@redhat.com>
11087 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11090 2013-02-28 Doug Evans <dje@google.com>
11092 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11093 * python/python.c (gdbpy_find_pc_line): Ditto.
11095 2013-02-28 Tom Tromey <tromey@redhat.com>
11097 * contrib/excheck.py: New file.
11098 * contrib/exsummary.py: New file.
11099 * contrib/gcc-with-excheck: New file.
11101 2013-02-28 Tom Tromey <tromey@redhat.com>
11103 * python/python.c (gdbpy_print_stack): Call begin_line and
11104 fprintf_filtered inside TRY_CATCH.
11106 2013-02-28 Tom Tromey <tromey@redhat.com>
11108 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11111 2013-02-28 Tom Tromey <tromey@redhat.com>
11113 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11114 frame_object_to_frame_info inside TRY_CATCH.
11116 2013-02-28 Tom Tromey <tromey@redhat.com>
11118 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11121 2013-02-28 Tom Tromey <tromey@redhat.com>
11123 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11125 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11127 * windows-nat.c: Throughout, fix format strings and casts of
11128 printf-like functions to avoid type related warnings on all
11130 (handle_output_debug_string): Fetch context information address
11131 from debug string using string_to_core_addr.
11133 2013-02-27 Jiong Wang <jiwang@tilera.com>
11135 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11136 * regformats/reg-tilegx32.dat: New.
11138 2013-02-27 Jiong Wang <jiwang@tilera.com>
11140 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11142 2013-02-27 Jiong Wang <jiwang@tilera.com>
11144 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11146 2013-02-27 Yao Qi <yao@codesourcery.com>
11147 Pedro Alves <palves@redhat.com>
11149 * tracepoint.c (tfile_trace_find): For tfind
11150 pc/tp/range/outside, look for the next trace frame instead of
11151 always starting from frame 0.
11153 2013-02-26 Anthony Green <green@moxielogic.com>
11155 * configure.tgt: Add support for moxie-*-rtems* target.
11157 2013-02-25 Pedro Alves <palves@redhat.com>
11159 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11162 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11164 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11165 if $fp is used as the virtual frame pointer.
11167 2013-02-23 Alan Modra <amodra@gmail.com>
11169 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11171 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11172 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11173 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11174 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11176 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11179 * elfread.c (build_id_bfd_get): Make the return type const.
11180 (build_id_verify): Make the check parameter const.
11181 (build_id_to_debug_filename): Make the build_id parameter and variable
11183 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11185 2013-02-21 Alan Modra <amodra@gmail.com>
11187 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11189 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11191 Add a new method 'disassemble' to gdb.Architecture class.
11192 * python/py-arch.c (archpy_disassmble): Implementation of the
11193 new method gdb.Architecture.disassemble.
11194 (arch_object_methods): Add entry for the new method.
11196 2013-02-20 Jiong Wang <jiwang@tilera.com>
11198 * MAINTAINERS (Write After Approval): Add myself to the list.
11200 2013-02-19 Pedro Alves <palves@redhat.com>
11202 Garbage collect 'struct monitor_ops'::load_routine.
11204 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11205 * monitor.c (monitor_load): No longer call
11206 current_monitor->load_routine.
11207 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11208 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11209 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11211 2013-02-19 Pedro Alves <palves@redhat.com>
11215 Harmonize with generic_load.
11217 * monitor.c: Include "readline/readline.h".
11218 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11219 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11220 long/strtol for the 'load_offset' local. Error out if no argument
11221 is given or if too many arguments are given. Tilde expand the
11222 passed in file name.
11224 2013-02-19 Kai Tietz <ktietz@redhat.com>
11227 * symfile.c (load_section_data): Change type of load_offset
11229 (generic_load): User strtoulst instead of strtoul for conversion
11232 2013-02-19 Jiong Wang <jiwang@tilera.com>
11234 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11235 for return address, "lr" register, saved on stack.
11236 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11237 after we invoke tilegx_analyze_prologue.
11239 2013-02-19 Jiong Wang <jiwang@tilera.com>
11241 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11243 2013-02-19 Jiong Wang <jiwang@tilera.com>
11245 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11247 2013-02-19 Jiong Wang <jiwang@tilera.com>
11249 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11250 (tilegx_write_pc): New function.
11251 (tilegx_cannot_reference_register): Return zero if REGNO
11252 is TILEGX_FAULTNUM_REGNUM.
11253 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11254 (tilegx_register_name): Add handling of "faultnum" register.
11255 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11256 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11257 handling of TILEGX_FAULTNUM_REGNUM.
11258 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11260 2013-02-19 Jiong Wang <jiwang@tilera.com>
11262 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11263 should be aligned to 64bit.
11265 2013-02-19 Kai Tietz <ktietz@redhat.com>
11267 * windows-nat.c (windows_xfer_memory): Fix debug-output
11270 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11272 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11273 Don't check DSP register number if HAVE_DSP is not set.
11275 2013-02-19 Alan Modra <amodra@gmail.com>
11277 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11278 throughout file instead.
11279 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11280 Don't xmalloc return value.
11281 (build_id_verify): Similarly. Don't xfree.
11282 (build_id_to_debug_filename): Update.
11283 (find_separate_debug_file_by_buildid): Update, don't xfree.
11285 2013-02-18 Tom Tromey <tromey@redhat.com>
11288 * dwarf2read.c (read_subrange_type): Use result of
11291 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11293 * frame.c: Remove one extra white space after #include
11296 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11298 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11300 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11302 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11303 and dir commands into an if block.
11305 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11307 * python/py-breakpoint (struct pybp_code): Use int instead of
11310 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11311 Hafiz Abid Qadeer <abidh@codesourcery.com>
11313 * NEWS: Mention new field "trace-file".
11314 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11315 (tfile_open): Record the trace file's filename in the trace
11317 (tfile_files_info): Mention the name of the trace file.
11318 Check the "filename" field explicitely.
11319 (trace_status_command): Explicitely check "filename" field.
11320 (trace_find_command): Ditto.
11321 (trace_find_pc_command): Ditto.
11322 (trace_find_tracepoint_command): Ditto.
11323 (trace_find_line_command): Ditto.
11324 (trace_find_range_command): Ditto.
11325 (trace_find_outside_command): Ditto.
11326 * tracepoint.h (struct trace_status) <from_file>: Rename it
11327 to "filename" and make it hold the trace file's filename
11328 instead of a boolean.
11329 * remote.c (remote_get_trace_status): Initialize "filename"
11330 field with NULL instead of 0.
11332 2013-02-15 Yao Qi <yao@codesourcery.com>
11334 * remote.c: Fix a typo.
11336 2013-02-14 Pierre Muller <muller@sourceware.org>
11338 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11340 2013-02-14 Pedro Alves <palves@redhat.com>
11342 * utils.c (savestring): Don't #undef it. Move function to
11343 common/common-utils.c.
11344 * common/common-utils.c: Include gdb_string.h.
11345 (savestring): Move here from utils.c.
11346 * common/common-utils.h (savestring): Declare.
11348 2013-02-14 Pedro Alves <palves@redhat.com>
11350 * utils.c (savestring): Rename parameter 'size' to 'len'.
11352 2013-02-14 Pedro Alves <palves@redhat.com>
11353 Yufeng Zhang <yufeng.zhang@arm.com>
11355 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11356 (aarch64_inferior_data, struct aarch64_inferior_data):
11358 (struct aarch64_process_info): New.
11359 (aarch64_process_list): New global.
11360 (aarch64_find_process_pid, aarch64_add_process)
11361 (aarch64_process_info_get): New functions.
11362 (aarch64_inferior_data_get): Delete.
11363 (aarch64_process_info_get): New function.
11364 (aarch64_forget_process): New function.
11365 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11366 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11367 aarch64_get_debug_reg_state.
11368 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11369 instead of linux_nat_iterate_watchpoint_lwps.
11370 (aarch64_linux_new_fork): New function.
11371 (aarch64_linux_child_post_startup_inferior): Use
11372 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11373 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11374 (aarch64_linux_remove_hw_breakpoint)
11375 (aarch64_handle_aligned_watchpoint)
11376 (aarch64_handle_unaligned_watchpoint)
11377 (aarch64_linux_insert_watchpoint)
11378 (aarch64_linux_remove_watchpoint)
11379 (aarch64_linux_stopped_data_address): Adjust to pass the current
11380 process id to aarch64_debug_reg_state.
11381 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11382 linux_nat_new_fork hook, and aarch64_forget_process as
11383 linux_nat_forget_process hook; remove the call to
11384 register_inferior_data_with_cleanup.
11386 2013-02-14 Pedro Alves <palves@redhat.com>
11388 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11389 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11392 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11393 Hafiz Abid Qadeer <abidh@codesourcery.com>
11395 * tracepoint.h (validate_trace_state_variable_name): Declare.
11396 * tracepoint.c (validate_trace_state_variable_name): New.
11397 (trace_variable_command): Parse the trace state variable's name
11398 without using parse_expression. Do several validations.
11399 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11400 trace state variable's name with parse_expression. Validate it.
11402 2013-02-14 Yao Qi <yao@codesourcery.com>
11404 * infcmd.c (breakpoint_proceeded): Remove it.
11406 2013-02-14 Yao Qi <yao@codesourcery.com>
11408 * tracepoint.c (end_actions_pseudocommand): Make it static.
11409 (while_stepping_pseudocommand): Likewise.
11410 * tracepoint.h (end_actions_pseudocommand): Remove the
11412 (while_stepping_pseudocommand): Likewise.
11414 2013-02-14 Yao Qi <yao@codesourcery.com>
11416 * cli/cli-decode.c (help_cmd): Remove the declaration of
11418 (help_all): Likewise.
11420 2013-02-13 Pedro Alves <palves@redhat.com>
11422 * amd64-linux-nat.c (update_debug_registers_callback):
11424 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11426 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11427 i386_debug_reg_state.
11428 (amd64_linux_new_fork): New function.
11429 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11430 linux_nat_new_fork hook, and i386_forget_process as
11431 linux_nat_forget_process hook.
11432 * i386-linux-nat.c (update_debug_registers_callback):
11434 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11436 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11437 i386_debug_reg_state.
11438 (i386_linux_new_fork): New function.
11439 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11440 linux_nat_new_fork hook, and i386_forget_process as
11441 linux_nat_forget_process hook.
11442 * i386-nat.c (i386_init_dregs): Delete.
11443 (i386_inferior_data, struct i386_inferior_data):
11445 (struct i386_process_info): New.
11446 (i386_process_list): New global.
11447 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11449 (i386_inferior_data_get): Delete.
11450 (i386_process_info_get): New function.
11451 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11452 (i386_forget_process): New function.
11453 (i386_cleanup_dregs): Rewrite.
11454 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11455 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11456 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11457 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11458 to i386_debug_reg_state.
11459 (i386_use_watchpoints): Don't register inferior data.
11460 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11462 (i386_forget_process): Declare.
11463 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11464 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11465 New static globals.
11466 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11467 (add_initial_lwp): New, factored out from ...
11468 (add_lwp): ... this. Don't check the number of lwps before
11469 calling linux_nat_new_thread.
11470 (linux_nat_iterate_watchpoint_lwps): Delete.
11471 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11472 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11474 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11476 (linux_nat_kill, linux_nat_mourn_inferior): Call
11477 linux_nat_forget_process.
11478 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11479 (linux_nat_forget_process): New functions.
11480 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11482 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11483 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11485 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11486 (linux_nat_forget_process): New declarations.
11488 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11489 (amd64fbsd_mourn_inferior): New function.
11490 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11491 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11493 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11495 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11498 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11500 * aarch64-linux-nat.c (debug_reg_change_callback)
11501 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11504 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11506 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11509 2013-02-13 Pedro Alves <palves@redhat.com>
11510 Hafiz Abid Qadeer <abidh@codesourcery.com>
11512 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11514 2013-02-12 Tom Tromey <tromey@redhat.com>
11517 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11519 (classify_inner_name): Remove 'first_name' argument, add
11520 'context'. Remove unused variable.
11521 (yylex): Explicitly maintain the context type. Exit loop earlier
11522 if NAME result is seen.
11524 2013-02-12 Pedro Alves <palves@redhat.com>
11526 * amd64-darwin-tdep.c: Add (C) after Copyright.
11527 * cli/cli-cmds.h: Ditto.
11528 * cli/cli-decode.c: Ditto.
11529 * cli/cli-decode.h: Ditto.
11530 * cli/cli-dump.c: Ditto.
11531 * cli/cli-dump.h: Ditto.
11532 * cli/cli-interp.c: Ditto.
11533 * cli/cli-logging.c: Ditto.
11534 * cli/cli-script.c: Ditto.
11535 * cli/cli-script.h: Ditto.
11536 * cli/cli-setshow.c: Ditto.
11537 * cli/cli-setshow.h: Ditto.
11538 * cli/cli-utils.c: Ditto.
11539 * cli/cli-utils.h: Ditto.
11540 * config/alpha/nm-osf3.h: Ditto.
11541 * config/djgpp/djconfig.sh: Ditto.
11542 * config/i386/nm-fbsd.h: Ditto.
11543 * config/i386/nm-i386gnu.h: Ditto.
11544 * config/nm-linux.h: Ditto.
11545 * config/nm-nto.h: Ditto.
11546 * config/rs6000/nm-rs6000.h: Ditto.
11547 * config/sparc/nm-sol2.h: Ditto.
11548 * darwin-nat-info.c: Ditto.
11551 * gdb-demangle.h: Ditto.
11552 * i386-darwin-nat.c: Ditto.
11553 * i386-darwin-tdep.c: Ditto.
11554 * linux-fork.h: Ditto.
11555 * m32c-tdep.c: Ditto.
11556 * microblaze-linux-tdep.c: Ditto.
11557 * microblaze-rom.c: Ditto.
11558 * microblaze-tdep.c: Ditto.
11559 * microblaze-tdep.h: Ditto.
11560 * mips-linux-tdep.h: Ditto.
11561 * ppc-ravenscar-thread.c: Ditto.
11562 * ppc-ravenscar-thread.h: Ditto.
11563 * prologue-value.c: Ditto.
11564 * prologue-value.h: Ditto.
11565 * ravenscar-thread.c: Ditto.
11566 * ravenscar-thread.h: Ditto.
11567 * sparc-ravenscar-thread.c: Ditto.
11568 * sparc-ravenscar-thread.h: Ditto.
11569 * tilegx-linux-tdep.c: Ditto.
11570 * unwind_stop_reasons.def: Ditto.
11571 * windows-nat.h: Ditto.
11572 * xtensa-linux-tdep.c: Ditto.
11573 * xtensa-xtregs.c: Ditto.
11574 * regformats/regdat.sh: Ditto.
11575 * regformats/regdef.h: Ditto.
11577 2013-02-12 Pedro Alves <palves@redhat.com>
11579 * break-catch-sig.c: Update copyright years.
11581 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11583 Add support for a destructor for ui_out data and use it to
11584 provide a ui_out destructor.
11585 * ui-out.h: Declare the new ui_out destructor.
11586 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11587 * ui-out.c (default_data_destroy): Add a default data destructor
11588 which does nothing.
11589 (default_ui_out_impl): Set the new data_destroy field to
11590 default_data_destroy
11591 (uo_data_destroy): Local function which invokes the data
11592 destructor if present.
11593 (clear_table): Local function which clears the table data of a
11595 (ui_out_destroy): Public function which frees a ui_out object.
11596 (ui_out_table_end): Use the new clear_table function.
11597 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11599 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11602 2013-02-11 Doug Evans <dje@google.com>
11604 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11605 (printf_decfloat): New function. Broken out from ui_printf.
11606 Remove unnecessary code to shift the entire format string down.
11607 (printf_pointer): New function.
11608 (ui_printf): Code to print C strings, wide C strings, decfloats,
11609 and pointers moved to separate functions.
11611 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11613 * valops.c (value_assign): Handling bitfield offset in
11614 `lval_internalvar_component' case.
11616 2013-02-08 Doug Evans <dje@google.com>
11618 * common/format.c (parse_format_string): Fix whitespace.
11620 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11622 * stack.c (return_command): Work around uninitialized variable
11625 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11627 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11628 number of the registers from 36 to 34.
11630 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11632 * NEWS: Mention new AArch64 native and target support.
11634 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11636 * MAINTAINERS (Write After Approval): Add myself.
11638 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11639 Marcus Shawcroft <marcus.shawcroft@arm.com>
11640 Nigel Stephens <nigel.stephens@arm.com>
11641 Yufeng Zhang <yufeng.zhang@arm.com>
11643 * aarch64-linux-nat.c: New file.
11644 * config/aarch64/linux.mh: New file.
11645 * configure.host: Add AArch64.
11646 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11648 2013-02-07 Doug Evans <dje@google.com>
11650 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11651 disassemble command.
11653 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11655 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11656 set_gdbarch_fetch_tls_load_module_address.
11658 2013-02-06 David S. Miller <davem@davemloft.net>
11660 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11661 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11662 * value.c (struct_return_convention): New function.
11663 (using_struct_return): Implement in terms of struct_return_convention.
11664 * value.h (struct_return_convention): Declare.
11665 * stack.c (return_command): Allow successful overriding of the return
11666 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11668 2013-02-06 Tom Tromey <tromey@redhat.com>
11670 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11671 outside of TRY_CATCH.
11673 2013-02-06 Yao Qi <yao@codesourcery.com>
11675 * mi/mi-interp.c: Include "tracepoint.h".
11676 (mi_tsv_modified): Declare.
11677 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11678 (mi_interpreter_init): Call observer_attach_tsv_modified.
11679 (mi_tsv_modified): New.
11680 (mi_tsv_created, mi_tsv_deleted): Update.
11681 * tracepoint.c (trace_variable_command): Call
11682 observer_notify_tsv_modified if the initial value of tsv is
11684 (delete_trace_state_variable): Call
11685 observer_notify_tsv_deleted earlier.
11686 (trace_variable_command): Caller update.
11687 (create_tsv_from_upload): Likewise.
11688 * observer.sh: Declare "struct trace_state_variable".
11690 * NEWS: Mention the new MI notification "=tsv-modified".
11692 2013-02-05 Doug Evans <dje@google.com>
11694 * completer.c (location_completer): Fix typo in comment.
11696 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11698 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11701 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11703 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11704 Refactor if statement to avoid trailing || operator.
11706 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11708 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11710 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11712 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11713 * configure.host: Add powerpc*-*-freebsd* target.
11714 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11715 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11716 * config/powerpc/fbsd.mh: New file.
11718 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11719 Denys Vlasenko <dvlasenk@redhat.com>
11720 Pedro Alves <palves@redhat.com>
11722 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11723 (struct elf_internal_linux_prpsinfo): Forward declare.
11724 * gdbarch.h, gdbarch.c: Regenerate.
11725 * linux-tdep.c: Include `cli/cli-utils.h'.
11726 (linux_fill_prpsinfo): New function.
11727 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11728 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11729 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11730 depending on gdbarch pointer bitness.
11731 * ppc-linux-tdep.c: Include elf-bfd.h.
11732 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11735 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11736 Marcus Shawcroft <marcus.shawcroft@arm.com>
11737 Nigel Stephens <nigel.stephens@arm.com>
11738 Yufeng Zhang <yufeng.zhang@arm.com>
11740 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11742 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11743 Marcus Shawcroft <marcus.shawcroft@arm.com>
11744 Nigel Stephens <nigel.stephens@arm.com>
11745 Yufeng Zhang <yufeng.zhang@arm.com>
11747 * aarch64-newlib-tdep.c: New file.
11748 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11750 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11751 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11752 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11753 * osabi.c (gdb_osabi_names): Add "Newlib".
11755 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11756 Marcus Shawcroft <marcus.shawcroft@arm.com>
11757 Nigel Stephens <nigel.stephens@arm.com>
11758 Yufeng Zhang <yufeng.zhang@arm.com>
11760 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11761 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11762 * aarch64-linux-tdep.c: New file.
11763 * aarch64-linux-tdep.h: New file.
11764 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11765 * configure.tgt: Add aarch64-none-linux-gnu.
11767 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11768 Marcus Shawcroft <marcus.shawcroft@arm.com>
11769 Nigel Stephens <nigel.stephens@arm.com>
11770 Yufeng Zhang <yufeng.zhang@arm.com>
11772 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11773 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11774 (ALLDEPFILES): Add aarch64-tdep.c.
11775 * aarch64-tdep.c: New file.
11776 * aarch64-tdep.h: New file.
11777 * configure.tgt: Add AArch64.
11778 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11779 (aarch64-expedite): New definition.
11780 * features/aarch64-core.xml: New file.
11781 * features/aarch64-fpu.xml: New file.
11782 * features/aarch64-without-fpu.c: New file (generated).
11783 * features/aarch64-without-fpu.xml: New file.
11784 * features/aarch64.c: New file (generated).
11785 * features/aarch64.xml: New file.
11786 * regformats/aarch64-without-fpu.dat: New file (generated).
11787 * regformats/aarch64.dat: New file (generated).
11789 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11791 * contrib/expect-read1.c: New file.
11792 * contrib/expect-read1.sh: New file.
11794 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11796 * dwarf2read.c (file_file_name): New function with code from
11798 (file_full_name): Move most of the code to file_file_name.
11799 (macro_start_file): Rename variable full_name to file_name and use
11800 file_file_name for it. Add comp_dir parameter to new_macro_table.
11801 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11802 macro_source_file->filename access by macro_source_fullname call.
11803 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11805 * macrotab.c (struct macro_table): New field comp_dir.
11806 (macro_include): New variables link_fullname and source_fullname.
11807 Replace any macro_source_file->filename access by macro_source_fullname
11809 (macro_lookup_inclusion): Remove the partial filenames checking code.
11810 (check_for_redefinition): New variables source_fullname and
11811 found_key_fullname. Replace any macro_source_file->filename access by
11812 macro_source_fullname call.
11813 (macro_undef): New variables source_fullname and key_fullname. Replace
11814 any macro_source_file->filename access by macro_source_fullname call.
11815 (macro_lookup_definition): New variables retval and source_fullname.
11816 Replace any macro_source_file->filename access by macro_source_fullname
11818 (foreach_macro): New variable key_fullname. Replace any
11819 macro_source_file->filename access by macro_source_fullname call.
11820 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11821 macro_source_file->filename access by macro_source_fullname call.
11822 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11823 (macro_source_fullname): New function.
11824 * macrotab.h (struct macro_source_file): Extent the filename field
11826 (new_macro_table): New parameter comp_dir, add a comment for it.
11827 (macro_source_fullname): new declaration.
11829 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11831 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11832 this_real_name to outer block. Use it also for
11833 compare_filenames_for_search.
11834 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11835 with dw2_get_real_path for file_matcher, considering also
11836 BASENAMES_MAY_DIFFER.
11837 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11839 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11841 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11842 to the file_matcher parameter. Pass 0 to it.
11843 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11844 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11845 NULL psymtab_to_fullname result.
11846 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11847 an expected filename instead.
11848 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11849 file_matcher parameter. Call also psymtab_to_fullname, after newly
11850 considering BASENAMES_MAY_DIFFER.
11851 * source.c (rewrite_source_path): Remove static.
11852 * source.h (rewrite_source_path): New declaration.
11853 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11854 the expand_symtabs_matching field. Comment it.
11855 * symtab.c (file_matches): New function comment. Add parameter
11856 basenames, implement it.
11857 (search_symbols_file_matches): Add basenames parameter. Update the
11858 file_matches caller.
11859 (search_symbols): Match FILES also against symtab_to_fullname.
11860 Optimize it for BASENAMES_MAY_DIFFER.
11862 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11864 * source.c (print_source_lines_base): Print for TUI also "fullname".
11865 * tui/tui-data.c (init_content_element): Change tui_locator_element
11866 field to full_name.
11867 * tui/tui-data.h (struct tui_locator_element): Likewise.
11868 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11869 tui_update_locator_filename calls to tui_update_locator_fullname.
11870 Replace symtab->filename refererence by symtab_to_fullname call.
11871 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11872 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11873 field to full_name. Replace symtab->filename refererence by
11874 symtab_to_fullname call.
11875 (tui_show_symtab_source): Rename parameter to fullname. Change
11876 tui_locator_element field to full_name.
11877 * tui/tui-stack.c: Include source.h.
11878 (tui_set_locator_filename): Rename the declaration to ...
11879 (tui_set_locator_fullname): ... here. Rename its parameter to
11880 fullname, updates its comment.
11881 (tui_set_locator_info): Rename its parameter to fullname.
11882 (tui_set_locator_filename): Rename the definition to ...
11883 (tui_set_locator_fullname): ... here. Rename its parameter to
11884 fullname, updates its comment. Change tui_locator_element field to
11886 (tui_set_locator_info): Rename its parameter to fullname.
11887 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11888 (tui_update_locator_filename): Rename to ...
11889 (tui_update_locator_fullname): ... here. Rename callee to
11890 tui_set_locator_fullname.
11891 (tui_show_frame_info): Replace symtab->filename refererence by
11892 symtab_to_fullname call.
11893 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11894 (tui_update_locator_fullname): ... here.
11895 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11896 tui_update_locator_fullname. Replace symtab->filename refererence by
11897 symtab_to_fullname call.
11898 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11899 Rename the callee to tui_update_locator_fullname.
11900 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11902 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11904 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11905 by symtab_to_filename_for_display calls.
11906 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11907 (clear_command): New variable sal_fullname, initialize it. Replace
11908 compare_filenames_for_search by filename_cmp with sal_fullname.
11909 (say_where, update_static_tracepoint): Replace symtab->filename
11910 refererences by symtab_to_filename_for_display calls.
11911 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11913 * dwarf2read.c: Include source.h.
11914 (fixup_go_packaging): Replace symtab->filename refererences by
11915 symtab_to_filename_for_display calls.
11916 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11917 Replace symtab->filename refererences by symtab_to_filename_for_display
11919 (create_sals_line_offset, convert_linespec_to_sals): New variable
11920 fullname, initialize it, replace symtab->filename reference by the
11922 * linux-fork.c: Include source.h.
11923 (info_checkpoints_command): Replace symtab->filename refererences by
11924 symtab_to_filename_for_display calls.
11925 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11926 by symtab_to_filename_for_display calls.
11927 * mdebugread.c: Include source.h.
11928 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11929 symtab_to_filename_for_display calls.
11930 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11931 (mi_cmd_file_list_exec_source_files): Likewise.
11932 * printcmd.c: Include source.h.
11933 (build_address_symbolic): Replace symtab->filename refererences by
11934 symtab_to_filename_for_display calls.
11935 * psymtab.c (partial_map_symtabs_matching_filename)
11936 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11937 with psymtab_to_fullname.
11938 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11939 by symtab_to_filename_for_display calls.
11940 (stpy_get_filename): New variable filename, initialize it, use instead
11941 of symtab->filename refererences.
11942 (salpy_str): Make variable filename const char *. Replace
11943 symtab->filename refererences by symtab_to_filename_for_display calls.
11944 * skip.c: Include source.h and filenames.h.
11945 (skip_file_command): Remove const from the symtab variable. Replace
11946 symtab->filename refererences by symtab_to_fullname call.
11947 (function_name_is_marked_for_skip): New variables searched_for_fullname
11948 and fullname. Use them to search also with symtab's fullname.
11949 * source.c (find_source_lines): Replace symtab->filename refererences
11950 by symtab_to_filename_for_display calls.
11951 (print_source_lines_base): New variable filename, use it instead of
11952 symtab->filename. Replace symtab->filename refererences by
11953 symtab_to_filename_for_display calls.
11954 (line_info, forward_search_command): Replace symtab->filename
11955 refererences by symtab_to_filename_for_display calls.
11956 (reverse_search_command): Replace symtab->filename refererences by
11957 symtab_to_filename_for_display calls. New variable filename for it.
11958 * stack.c (frame_info): Likewise.
11959 * symmisc.c: Include source.h.
11960 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11961 (maintenance_info_symtabs): Replace symtab->filename refererences by
11962 symtab_to_filename_for_display calls.
11963 * symtab.c (iterate_over_some_symtabs): Call
11964 compare_filenames_for_search also with symtab_to_fullname.
11965 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11966 symtab->filename refererences by symtab_to_filename_for_display calls.
11967 (find_line_symtab): Replace symtab->filename refererences by
11968 symtab_to_filename_for_display calls.
11969 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11970 (print_symbol_info): Make the last parameter const char *. New
11971 variable s_filename. Use it in the function.
11972 (symtab_symbol_info): Make the last_filename variable const char *.
11973 Replace symtab->filename refererences by symtab_to_filename_for_display
11975 (rbreak_command): New variable fullname. Use it. Replace
11976 symtab->filename refererence by symtab_to_filename_for_display call.
11977 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11978 (print_one_static_tracepoint_marker): Replace symtab->filename
11979 refererences by symtab_to_filename_for_display calls.
11980 * tui/tui-source.c (tui_set_source_content): New variables filename and
11981 s_filename. Replace symtab->filename refererences by this variable.
11982 Replace other symtab->filename refererences by
11983 symtab_to_filename_for_display calls.
11985 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11986 Jan Kratochvil <jan.kratochvil@redhat.com>
11988 Add a new variable that controls a way in which filenames are
11990 * NEWS (set filename-display): New entry.
11991 * source.c (filename_display_basename, filename_display_relative)
11992 (filename_display_absolute, filename_display_kind_names)
11993 (filename_display_string, show_filename_display_string)
11994 (symtab_to_filename_for_display): New.
11995 (_initialize_source): Added initialization of 'filename-display'
11997 * source.h (symtab_to_filename_for_display): Added declaration.
11998 * stack.c (print_frame): Added new variable and calling of a new
11999 function and condition with this variable. Changed third argument of
12000 calling of a function.
12002 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12004 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12005 Rename field reference filename to fullname.
12006 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12007 fullname. New comment for it.
12008 * tui/tui-source.c (tui_set_source_content): Rename field reference
12009 filename to fullname. Initialize field by symtab_to_fullname now.
12010 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12011 reference filename to fullname. Use symtab_to_fullname during
12014 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12017 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12018 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12019 filename to fullname. Rename variable this_name to this_fullname.
12020 Lowercase FILENAME_CMP call.
12021 (dw2_find_symbol_file): New comment for the returned string.
12022 (dwarf2_gdb_index_functions): Rename the function to
12023 dw2_expand_symtabs_with_fullname.
12024 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12025 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12027 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12028 * symfile.h (struct quick_symbol_functions): Rename field
12029 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12030 parameter filename to fullname. Document returned string meaning for
12032 * symtab.c (find_line_symtab): Rename the called function to
12033 expand_symtabs_with_fullname.
12035 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12038 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12039 call of filename_cmp with compare_filenames_for_search.
12040 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12041 is_abs, unify the call of FILENAME_CMP with
12042 compare_filenames_for_search. New gdb_asserts for real_path and name.
12043 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12044 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12045 * symfile.h (struct quick_symbol_functions): Extend the comment for
12046 map_symtabs_matching_filename.
12047 * symtab.c (compare_filenames_for_search): Remove the function comment
12048 relative path requirement. Handle absolute filenames, with a comment.
12049 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12050 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12051 real_path and name. Unify the call of compare_filenames_for_search
12053 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12055 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12058 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12059 source_file references by symtab field references. Remove variables
12061 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12062 (clear_command, say_where): Replace bp_location field source_file
12063 references by symtab field references.
12064 (bp_location_dtor): Remove the source_file reference.
12065 (update_static_tracepoint): Replace bp_location field source_file
12066 references by symtab field references.
12067 (breakpoint_free_objfile): New function.
12068 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12069 Replace the field source_file by field symtab, extend its comment.
12070 (breakpoint_free_objfile): New declaration.
12071 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12072 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12073 field source_file references by symtab field references.
12075 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12077 Replace xfullpath calls by gdb_realpath calls.
12078 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12080 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12081 Remove it from the iterate_over_some_symtabs call.
12082 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12083 Remove it from the dw2_map_expand_apply calls, remove a block handling
12085 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12086 Remove it from the iterate_over_some_symtabs call.
12087 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12088 Remove it from the partial_map_expand_apply calls, remove a block
12089 handling it. Drop gdb_realpath call and cleanups from the real_path
12091 * source.c (openp): Drop the comment part about xfullpath. Replace
12092 xfullpath calls by gdb_realpath calls.
12093 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12094 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12095 from method map_symtabs_matching_filename and its comment.
12096 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12098 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12099 remove it also from the function comment, remove a block handling it.
12100 Drop gdb_realpath call and cleanups from the real_path handling.
12101 (iterate_over_symtabs): Drop variable full_path and its use.
12102 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12103 * utils.c (xfullpath): Remove.
12104 * utils.h (xfullpath): Remove.
12106 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12108 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12109 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12110 (ALLDEPFILES): Add ppc64-tdep.c.
12111 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12112 ppc64-tdep.o to gdb_target_obs.
12113 * ppc64-tdep.h: New file.
12114 * ppc64-tdep.c: New file.
12115 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12116 ppc-linux-tdep.c to here.
12117 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12118 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12119 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12120 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12121 from ppc-linux-tdep.c to here.
12122 (ppc64_convert_from_func_ptr_addr): Rename from
12123 ppc64_linux_convert_from_func_ptr_addr to
12124 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12127 (read_insn): Move from ppc-linux-tdep.c to here.
12128 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12129 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12130 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12131 Removed above functions.
12132 (ppc_linux_init_abi): Adjust.
12134 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12136 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12138 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12140 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12142 2013-02-01 Pedro Alves <palves@redhat.com>
12144 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12145 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12147 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12149 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12150 files with no separate debug info.
12151 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12152 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12153 only for files with no separate debug info.
12155 2013-01-31 Tom Tromey <tromey@redhat.com>
12157 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12159 (struct jit_program_space_data): Rename from jit_inferior_data.
12161 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12162 Change return type. Attach data to program space.
12163 (jit_program_space_data_cleanup): Rename from
12164 jit_inferior_data_cleanup; change argument type.
12165 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12167 (jit_register_code): Update.
12168 (jit_update_inferior_cache): Remove.
12169 (jit_breakpoint_deleted): Get jit data from the location's program
12171 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12172 'ps_data', change type.
12173 (jit_inferior_init, jit_breakpoint_re_set_internal)
12174 (jit_event_handler): Update.
12175 (free_objfile_data): Get data from objfile's program space.
12176 (_initialize_jit): Update.
12178 2013-01-31 Tom Tromey <tromey@redhat.com>
12181 * jit.c (struct jit_inferior_data) <cached_code_address,
12182 jit_breakpoint>: New fields.
12183 (jit_breakpoint_re_set_internal): Fix logging. Only create
12184 breakpoint if cached address has changed.
12185 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12187 (_initialize_jit): Register breakpoint deleted observer.
12189 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12191 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12192 (save_infcall_suspend_state): Ifdef out unused inf.
12193 (restore_infcall_suspend_state): Ifdef out unused inf.
12194 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12195 (jit_frame_sniffer): Remove unused inf_data.
12197 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12199 * c-exp.y (classify_inner_name): Remove unused type.
12200 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12201 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12203 (c_get_string): Remove unused kind.
12204 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12206 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12208 * charset.c (intermediate_encoding): Remove unused i.
12209 * completer.c (signal_completer): Remove unused i.
12210 * continuations.c (discard_my_continuations_1): Remove unused
12212 * corelow.c (core_close): Remove unuseD name.
12213 (get_core_siginfo): Remove unused pid.
12214 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12216 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12217 (loclist_describe_location): Remove unused first.
12218 * event-top.c (command_line_handler): Remove unused got_eof.
12219 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12220 (resize_section_table): Remove unused old_value.
12221 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12222 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12223 * i386-tdep.c (i386_process_record): Remove unused rex.
12224 * infcmd.c (get_return_value): Remove unused uiout.
12225 * jv-lang.c (type_from_class): Remove unused is_array.
12226 * jv-valprint.c (java_val_print): Remove unused i.
12227 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12228 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12229 * m2-typeprint.c (m2_print_type): Remove unused code.
12230 * macroexp.c (get_character_constant): Remove unused body_start.
12231 (macro_stringify): Remove unused result.
12232 * objc-lang.c (find_methods): Remove unused gdbarch.
12233 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12234 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12235 * stack.c (print_frame_args): Remove unused summary.
12236 * thread.c (thread_apply_command): Remove unused p.
12237 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12238 * valops.c (search_struct_method): Remove unused skip.
12239 * valprint.c (generic_val_print): Remove unused byte_order.
12240 * varobj.c (varobj_update): Remove unused changed.
12241 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12242 (alias_command): Remove unused c.
12243 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12244 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12246 (mi_cmd_data_write_memory): Remove unused word_format.
12247 (mi_cmd_data_write_memory_bytes): Remove unused r.
12248 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12250 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12251 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12254 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12256 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12257 * symtab.c (iterate_over_symtabs): Remove unused s.
12258 (find_pc_sect_symtab): Remove unused pspAce.
12259 (find_pc_sect_line): Remove unused alt_symtab.
12260 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12261 (completion_list_add_name): Remove unused newsize.
12263 2013-01-31 Tom Tromey <tromey@redhat.com>
12266 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12269 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12271 * target.c (target_read_string): Remove unused origlen.
12273 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12275 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12276 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12277 * ax-general.c (ax_print): Remove unused is_float.
12278 * blockframe.c (block_innermost_frame): Remove unused start, end.
12279 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12281 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12283 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12284 (svr4_read_so_list): Remove unused lmo.
12285 * solib-target.c (solib_target_relocate_section_addresses): Remove
12288 2013-01-30 Tom Tromey <tromey@redhat.com>
12290 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12292 2013-01-30 Tom Tromey <tromey@redhat.com>
12294 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12295 * utils.c (gnu_debuglink_crc32): Remove.
12296 * utils.h (gnu_debuglink_crc32): Don't declare.
12298 2013-01-30 Tom Tromey <tromey@redhat.com>
12300 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12301 (read_structure_type, read_enumeration_type): Remove cast.
12303 2013-01-30 Tom Tromey <tromey@redhat.com>
12305 * dwarf2read.c (read_namespace_type): Remove cast.
12306 (read_typedef): Likewise.
12308 2013-01-29 Tom Tromey <tromey@redhat.com>
12310 * dwarf2read.c (free_dwo_file): Remove assert.
12312 2013-01-29 Tom Tromey <tromey@redhat.com>
12314 * value.c (deprecated_set_value_modifiable): Remove.
12315 * value.h (deprecated_set_value_modifiable): Remove.
12317 2013-01-28 Doug Evans <dje@google.com>
12319 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12320 to addresses from dwo files.
12322 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12324 * valops.c (find_overload_match): Remove unused argument 'lax'.
12325 * value.h: Remove unused argument 'lax' from the declaration of
12326 find_overload_match.
12327 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12328 to find_overload_match.
12329 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12330 argument to find_overload_match.
12332 2013-01-25 Tom Tromey <tromey@redhat.com>
12334 * dwarf2read.c (processing_has_namespace_info): Remove.
12335 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12336 (process_die, read_func_scope, dwarf2_start_symtab)
12337 (new_symbol_full): Update.
12339 2013-01-25 Tom Tromey <tromey@redhat.com>
12341 * cp-namespace.c (cp_set_block_scope): Remove.
12342 * cp-support.h (cp_set_block_scope): Remove.
12343 * dbxread.c: Include block.h.
12344 (cp_set_block_scope): New function.
12345 (process_one_symbol): Update.
12346 * dwarf2read.c (read_func_scope): Use block_set_scope.
12348 2013-01-25 Pedro Alves <palves@redhat.com>
12350 * remote.c (add_current_inferior_and_thread): Tweak comment.
12352 2013-01-25 Tom Tromey <tromey@redhat.com>
12354 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12355 (cp_add_using_directive): Add 'copy_names' argument.
12356 * cp-support.h (cp_add_using_directive): Update.
12357 (struct using_direct) <import_src, import_dest, alias,
12358 declaration>: Now const.
12359 * dwarf2read.c (read_import_statement): Use obconcat.
12360 Don't copy names passed to cp_add_using_directive.
12362 2013-01-25 Tom Tromey <tromey@redhat.com>
12364 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12366 2013-01-25 Pedro Alves <palves@redhat.com>
12368 * remote.c (stop_reply_extract_thread): New.
12369 (add_current_inferior_and_thread): New parameter 'wait_status'.
12371 (remote_start_remote): Pass wait status to
12372 add_current_inferior_and_thread.
12373 (extended_remote_run): Update comment.
12374 (extended_remote_create_inferior_1): Pass wait status to
12375 add_current_inferior_and_thread.
12377 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12378 Ulrich Weigand <uweigand@de.ibm.com>
12380 * valarith.c (value_vector_widen): New function for replicating a
12381 scalar into a vector.
12382 (value_binop): Use value_vector_widen to widen scalar to vector
12383 rather than casting, this better matches gcc C behaviour.
12384 * valops.c (value_casst): Update logic for casting between vector
12385 types, and for casting from scalar to vector, try to match gcc C
12387 * value.h (value_vector_widen): Declare.
12388 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12389 function, handle special case for casting scalar to vector.
12390 (opencl_relop): Use opencl_value_cast.
12391 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12392 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12393 in order to use opencl_value_cast.
12395 2013-01-25 Yao Qi <yao@codesourcery.com>
12397 * event-loop.c: Include "queue.h".
12398 (gdb_event_p): New typedef.
12399 (DECLARE_QUEUE_P): Use.
12400 (DEFINE_QUEUE_P): Use.
12401 (async_queue_event): Remove.
12402 (gdb_event_xfree): New.
12403 (initialize_event_loop): New.
12404 (process_event): Use QUEUE macros.
12405 (event_queue): Remove.
12406 (gdb_wait_for_event): Caller update.
12407 (check_async_event_handlers): Likewise.
12408 (poll_timers): Likewise.
12409 * event-loop.h (initialize_event_loop): Declare.
12410 * event-loop.c (gdb_event_xfree): New.
12411 * top.c (gdb_init): Call initialize_event_loop.
12413 2013-01-25 Yao Qi <yao@codesourcery.com>
12415 * event-loop.c (async_queue_event): Remove one parameter
12416 'position'. Remove code handling 'position' == TAIL.
12417 (gdb_wait_for_event): Caller update.
12418 (check_async_event_handlers): Caller update.
12419 (poll_timers): Caller update.
12420 * event-loop.h (enum queue_position): Remove.
12422 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12424 * MAINTAINERS: Update my email.
12426 2013-01-25 Yao Qi <yao@codesourcery.com>
12428 * main.c (print_gdb_help): Remove "--epoch" from the help
12431 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12433 * symtab.c (skip_prologue_using_sal): Consider a file
12434 change the same as an increased line number
12436 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12438 * MAINTAINERS (Write After Approval): Add myself to the list.
12440 2013-01-24 Tom Tromey <tromey@redhat.com>
12442 * ada-lang.h (ada_decode_symbol): Make return type const.
12443 * ada-lang.c (ada_decode_symbol): Likewise.
12445 2013-01-23 Doug Evans <dje@google.com>
12447 * linespec.c (find_linespec_symbols): Make static.
12449 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12451 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12452 type on float conversion for complex type.
12454 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12456 Add a new class gdb.Architecture which exposes GDB's
12457 internal representation of architecture via GDB Python API.
12458 * Makefile.in: Add entries corresponding to the new file
12460 * NEWS (Python Scripting): Add entries for the new class
12461 gdb.Architecture and the new method gdb.Frame.architecture.
12462 * python/py-arch.c: Implement gdb.Architecture class.
12463 * python/py-frame.c (frapy_arch): Implement the method
12464 gdb.Frame.architecture().
12465 (frame_object_methods): Add 'architecture' to the method table.
12466 * python/python-internal.h: Add declarations of new utility
12468 * python/python.c (_initialize_python): Initialize
12469 gdb.Architecture class.
12471 2013-01-23 Doug Evans <dje@google.com>
12473 Work around binutils/15021.
12474 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12475 type_unit_group out of union s. All uses updated.
12476 (read_index_from_section): Watch for index version 8.
12477 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12478 an imported symtab.
12479 (write_psymtabs_to_index): Increment version number to 8.
12481 2013-01-22 Pedro Alves <palves@redhat.com>
12483 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12486 2013-01-22 Pedro Alves <palves@redhat.com>
12488 * annotate.c (annotate_breakpoints_changed): Rename to ...
12489 (annotate_breakpoints_invalid): ... this. Make static.
12490 (breakpoint_changed): Adjust.
12491 (_initialize_annotate): Always install the observers. Install a
12492 "breakpoint_created" observer.
12493 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12494 * breakpoint.c (set_breakpoint_condition)
12495 (breakpoint_set_commands, do_map_commands_command)
12496 (init_raw_breakpoint, clear_command, set_ignore_count)
12497 (enable_breakpoint_disp): No longer call
12498 annotate_breakpoints_changed.
12500 2013-01-22 Pedro Alves <palves@redhat.com>
12502 * annotate.c: Include "inferior.h".
12503 (frames_invalid_emitted)
12504 (breakpoints_invalid_emitted): New globals.
12505 (async_background_execution_p): New function.
12506 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12507 emitting the annotation if it has already been emitted.
12508 (annotate_display_prompt): New function.
12509 * annotate.h (annotate_display_prompt): New declaration.
12510 * event-top.c: Include annotate.h.
12511 (display_gdb_prompt): Call annotate_display_prompt.
12513 2013-01-22 Pedro Alves <palves@redhat.com>
12515 * annotate.c (ignore_count_changed): Delete.
12516 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12517 (annotate_ignore_count_change): Delete.
12518 (annotate_stopped): Don't emit a delayed breakpoints-changed
12520 * annotate.h (annotate_ignore_count_change): Delete.
12521 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12522 annotate_ignore_count_change.
12524 2013-01-22 Tom Tromey <tromey@redhat.com>
12526 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12527 require_rvalue for a register location.
12529 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12531 * breakpoint.c (print_one_breakpoint_location): Add MI
12532 field 'thread-groups' when printing a breakpoint.
12533 (output_thread_groups): New function.
12535 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12537 * python/lib/gdb/commands/explore.py
12538 (CompoundExplorer.explore_expr): Correct the name of a method
12540 (ExploreTypeCommand.invoke): Add a missing 'return'.
12542 2013-01-21 Tom Tromey <tromey@redhat.com>
12544 * gdb_obstack.h (obconcat): Move declaration here, from...
12545 * symfile.h (obconcat): ... here.
12546 * gdb_obstack.c: New file.
12547 (obconcat): Move from...
12548 * symfile.c (obconcat): ... here.
12549 * Makefile.in (SFILES): Add gdb_obstack.c.
12550 (COMMON_OBS): Add gdb_obstack.o.
12552 2013-01-21 Tom Tromey <tromey@redhat.com>
12554 * symfile.h (obsavestring): Don't declare.
12555 * symfile.c (obsavestring): Remove.
12556 * ada-exp.y: Use obstack_copy0, not obsavestring.
12557 * ada-lang.c: Use obstack_copy0, not obsavestring.
12558 * coffread.c: Use obstack_copy0, not obsavestring.
12559 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12560 * dbxread.c: Use obstack_copy0, not obsavestring.
12561 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12562 * jit.c: Use obstack_copy0, not obsavestring.
12563 * mdebugread.c: Use obstack_copy0, not obsavestring.
12564 * psymtab.c: Use obstack_copy0, not obsavestring.
12565 * stabsread.c: Use obstack_copy0, not obsavestring.
12566 * xcoffread.c: Use obstack_copy0, not obsavestring.
12568 2013-01-21 Tom Tromey <tromey@redhat.com>
12570 * dwarf2read.c (fixup_go_packaging): Save package name
12571 on objfile obstack.
12572 * gdbtypes.c (init_type): Don't copy name.
12574 2013-01-21 Tom Tromey <tromey@redhat.com>
12576 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12578 (struct attribute) <u.str>: Now const.
12579 (struct fnfieldlist) <name>: Now const.
12580 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12581 (partial_die_parent_scope): Make return type const.
12582 (partial_die_full_name, add_partial_symbol): Update.
12583 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12585 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12586 (read_file_scope, read_func_scope, dwarf2_add_field)
12587 (dwarf2_add_member_fn, read_structure_type)
12588 (process_enumeration_scope, read_array_type, read_module_type)
12589 (read_base_type, read_subrange_type): Update.
12590 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12591 (new_symbol_full, guess_full_die_structure_name): Update.
12592 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12593 (dwarf2_name): Return const type.
12594 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12597 2013-01-21 Tom Tromey <tromey@redhat.com>
12599 * gdbtypes.c (init_type): Make 'name' const.
12600 * gdbtypes.h (init_type): Update.
12602 2013-01-21 Tom Tromey <tromey@redhat.com>
12604 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12605 (start_symtab): Make 'name' and 'dirname' const. Use
12606 set_last_source_file.
12607 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12608 (last_source_file): Define. Now static.
12609 (set_last_source_file, get_last_source_file): New functions.
12610 * buildsym.h (last_source_file): Don't declare.
12611 (start_symtab): Update.
12612 (set_last_source_file, get_last_source_file): Declare.
12613 * coffread.c (complete_symtab): Use set_last_source_file.
12614 (coff_end_symtab): Likewise.
12615 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12616 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12617 set_last_source_file.
12618 (process_one_symbol): Use get_last_source_file.
12619 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12620 (psymtab_to_symtab_1): Use get_last_source_file.
12621 * xcoffread.c (process_linenos): Use get_last_source_file.
12622 (complete_symtab): Use set_last_source_file.
12623 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12624 (scan_xcoff_symtab): Use set_last_source_file.
12626 2013-01-21 Tom Tromey <tromey@redhat.com>
12628 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12629 (symbol_set_names): Remove casts. Handle field const-ness.
12631 2013-01-21 Tom Tromey <tromey@redhat.com>
12633 * dwarf2read.c (new_symbol_full): Remove cast.
12634 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12635 * symtab.h (symbol_set_demangled_name): Update.
12637 2013-01-21 Tom Tromey <tromey@redhat.com>
12639 * main.c (captured_main): Call bfd_init.
12641 2013-01-21 Tom Tromey <tromey@redhat.com>
12643 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12644 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12645 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12648 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12650 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12652 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12654 Fix gdb.fortran/common-block.exp crash in PIE mode.
12655 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12657 * f-valprint.c (info_common_command_for_block): Expect
12658 LOC_COMMON_BLOCK in gdb_assert.
12659 * symtab.h (struct general_symbol_info): Update comment for the
12660 common_block member.
12661 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12662 (enum address_class): New member LOC_COMMON_BLOCK.
12664 2013-01-18 David Blaikie <dblaikie@gmail.com>
12666 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12668 2013-01-18 Tom Tromey <tromey@redhat.com>
12671 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12672 Call require_rvalue.
12674 2013-01-18 Yao Qi <yao@codesourcery.com>
12676 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12677 (dbx_read_symtab): New declaration.
12678 (dbx_psymtab_to_symtab): Delete.
12679 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12680 Rename parameter PST to SELF. Exchanged two parameters.
12681 (start_psymtab): Caller update.
12682 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12683 (dwarf2_read_symtab): New declaration.
12684 (dwarf2_psymtab_to_symtab): Delete.
12685 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12686 Rename parameter PST to SELF. Exchanged two parameters.
12687 (create_partial_symtab): Caller update.
12688 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12689 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12690 Rename parameter PST to SELF. Exchanged two parameters.
12691 (parse_partial_symbols, new_psymtab): Caller update.
12692 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12694 * psymtab.c (psymtab_to_symtab): Caller update.
12695 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12696 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12697 Rename parameter PST to SELF. Exchanged two parameters.
12698 (xcoff_start_psymtab): Caller update.
12700 2013-01-18 Yao Qi <yao@codesourcery.com>
12702 * infrun.c (proceed): Rename local variable 'oneproc' to
12705 2013-01-17 Doug Evans <dje@google.com>
12707 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12708 (dw2_build_type_unit_groups): Delete. All uses updated.
12710 * symtab.h (struct symbol_search): Add comment.
12712 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12714 * symtab.c (compare_filenames_for_search): New comment for
12717 2013-01-17 Tom Tromey <tromey@redhat.com>
12719 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12721 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12723 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12724 initialize it by existing make_cleanup. Call new do_cleanups.
12726 2013-01-17 Tom Tromey <tromey@redhat.com>
12728 * cp-abi.c (cp_abi_completer): New function.
12729 (_initialize_cp_abi): Set completer for "set cp-abi".
12731 2013-01-17 Tom Tromey <tromey@redhat.com>
12733 * mem-break.c: Remove obsolete comment.
12734 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12736 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12738 * jit.c (jit_reader_load_command): Interpret the jit reader name
12739 as an absolute path if it begins with a forward slash.
12741 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12745 * jit.c (finalize_symtab): Ensure that only the global block has a
12748 2013-01-17 Pedro Alves <palves@redhat.com>
12750 * acinclude.m4: Include ../config/plugins.m4,
12751 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12752 * Makefile.in (aclocal_m4_deps): Update.
12753 * aclocal.m4: Renegerate.
12755 2013-01-16 Doug Evans <dje@google.com>
12757 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12759 2013-01-16 Pedro Alves <palves@redhat.com>
12760 Tom Tromey <tromey@redhat.com>
12763 * NEWS: Add "catch signal".
12764 * breakpoint.c (base_breakpoint_ops): No longer static.
12765 (bpstat_explains_signal): New function.
12766 (init_catchpoint): No longer static.
12767 (base_breakpoint_explains_signal): New function.
12768 (base_breakpoint_ops): Initialize new field.
12769 * breakpoint.h (enum bpstat_signal_value): New.
12770 (struct breakpoint_ops) <explains_signal>: New field.
12771 (bpstat_explains_signal): Remove macro, declare as function.
12772 (base_breakpoint_ops, init_catchpoint): Declare.
12773 * break-catch-sig.c: New file.
12774 * inferior.h (signal_catch_update): Declare.
12775 * infrun.c (signal_catch): New global.
12776 (handle_syscall_event): Update for change to
12777 bpstat_explains_signal.
12778 (handle_inferior_event): Likewise. Always handle random signals
12780 (signal_cache_update): Check signal_catch.
12781 (signal_catch_update): New function.
12782 (_initialize_infrun): Initialize signal_catch.
12783 * Makefile.in (SFILES): Add break-catch-sig.c.
12784 (COMMON_OBS): Add break-catch-sig.o.
12786 2013-01-16 Tom Tromey <tromey@redhat.com>
12788 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12789 (print_one_catch_solib, print_one_catch_syscall)
12790 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12793 2013-01-16 Yao Qi <yao@codesourcery.com>
12795 * printcmd.c (current_display_number): Make it static.
12797 2013-01-16 Yao Qi <yao@codesourcery.com>
12799 * infcmd.c (step_once): Don't check '!single_inst' as it was
12802 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12804 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12806 2013-01-14 Tom Tromey <tromey@redhat.com>
12808 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12810 * command.h (add_setshow_string_noescape_cmd): Update.
12811 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12812 (complete_set_gnutarget): New function.
12813 (_initialize_core): Set the "set gnutarget" completer.
12815 2013-01-14 Tom Tromey <tromey@redhat.com>
12818 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12819 (c_type_print_modifier): Likewise.
12820 * dwarf2read.c (read_tag_restrict_type): New function.
12821 (read_type_die_1): Handle DW_TAG_restrict_type.
12822 * gdbtypes.c (make_restrict_type): New function.
12823 (recursive_dump_type): Handle TYPE_RESTRICT.
12824 * gdbtypes.h (enum type_flag_values): Renumber.
12825 (enum type_instance_flag_value): Add
12826 TYPE_INSTANCE_FLAG_RESTRICT.
12827 (TYPE_RESTRICT): New macro.
12828 (make_restrict_type): Declare.
12830 2013-01-14 Tom Tromey <tromey@redhat.com>
12833 * psymtab.c (struct psymtab_state): New.
12834 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12836 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12837 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12839 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12840 Pedro Alves <palves@redhat.com>
12844 * remote.c (remote_threads_info): Make a copy of the reply from
12845 qfThreadInfo and use that instead of rs->buf.
12847 2013-01-14 Yao Qi <yao@codesourcery.com>
12849 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12850 (dbx_psymtab_to_symtab): Likewise.
12851 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12852 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12853 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12855 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12857 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12858 make_cleanup_restore_current_language. Call set_language. Move
12859 OLD_CHAIN and INNER_CHAIN cleanups.
12860 * utils.c (do_restore_current_language)
12861 (make_cleanup_restore_current_language): New functions.
12862 * utils.h (make_cleanup_restore_current_language): New declaration.
12864 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12866 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12867 non-existing files.
12869 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12870 non-existing files if FILENAME is already absolute.
12872 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12874 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12875 fputs_filtered. Append trailing newline.
12877 2013-01-11 Yao Qi <yao@codesourcery.com>
12878 Stan Shebs <stan@codesourcery.com>
12880 * psymtab.c (init_psymbol_list): Clarify the comment.
12882 2013-01-11 Yao Qi <yao@codesourcery.com>
12884 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12885 (update_dprintf_command_list): Assert that 'printf_line' is
12886 non-null. Remove condition check.
12888 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12891 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12893 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12895 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12897 2013-01-09 Anthony Green <green@moxielogic.com>
12899 * cp-abi.c (cplus_print_vtable): Don't return value from void
12901 * ada-lang.c (re_set_catch_assert): Ditto.
12903 2013-01-09 Doug Evans <dje@google.com>
12905 * symfile.h (quick_symbol_functions): Delete member
12906 pre_expand_symtabs_matching. All uses removed.
12907 * dwarf2read.c (dw2_lookup_symbol): Implement.
12908 (dw2_do_expand_symtabs_matching): Delete.
12909 (dw2_pre_expand_symtabs_matching): Delete.
12910 (struct dw2_symtab_iterator): New type.
12911 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12912 (dw2_expand_symtabs_for_function): Rewrite.
12913 (dwarf2_gdb_index_functions): Update.
12914 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12915 (psym_functions): Update.
12917 2013-01-09 Tom Tromey <tromey@redhat.com>
12919 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12920 * configure: Rebuild.
12921 * configure.ac: Add somread.o to the build if BFD has SOM
12923 * somread.c: Include som/aout.h, not syms.h.
12924 (som_symtab_read): Use som_external_symbol_dictionary_record.
12925 Unpack records manually.
12926 (_initialize_somread): Declare.
12928 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12930 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12931 Cast return_address to 64bits.
12933 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12935 * printcmd.c: Remove define of function output_command.
12936 * tracepoint.c: Remove extern of function output_command.
12937 * valprint.h: (output_command): New extern.
12939 2013-01-07 Tom Tromey <tromey@redhat.com>
12941 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12943 (objc_language_defn): Use c_printchar, c_printstr,
12946 2013-01-07 Tom Tromey <tromey@redhat.com>
12950 * ada-valprint.c (printstr, print_field_values): Remove
12952 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12954 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12956 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12957 * main.c (captured_main): Remove "epoch" argument.
12958 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12959 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12960 * p-valprint.c (pascal_object_print_value_fields): Remove
12962 * printcmd.c (print_command_1): Remove 'inspect' argument.
12963 (print_command, call_command): Update.
12964 (inspect_command): Remove.
12965 (_initialize_printcmd): Make "inspect" an alias for "print".
12966 * top.c (epoch_interface): Remove.
12967 * top.h (epoch_interface): Remove.
12968 * valprint.c (user_print_options): Update.
12969 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12970 * valprint.h (struct value_print_options) <inspect_it>: Remove
12973 2013-01-04 Tom Tromey <tromey@redhat.com>
12975 * valprint.h (read_string): Add 'extern'.
12977 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12979 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12980 used to decide whether to define darwin_read_dyld_info or not.
12982 2013-01-03 Pierre Muller <muller@sourceware.org>
12984 * main.c (relocate_gdb_directory): Avoid calling stat function
12987 2013-01-03 Yao Qi <yao@codesourcery.com>
12989 * psymtab.c (fixup_psymbol_section): Update declaration.
12990 (fixup_psymbol_section): Remove code returning value.
12992 2013-01-03 Yao Qi <yao@codesourcery.com>
12994 * symtab.h: Remove some out of date comments.
12995 (enum exception_event_kind): Move it ...
12996 * breakpoint.c: ... here.
12998 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13001 * darwin-nat.c (darwin_read_dyld_info): Only build if
13002 TASK_DYLD_INFO_COUNT is defined.
13003 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13004 TASK_DYLD_INFO_COUNT is defined.
13006 2013-01-02 Tom Tromey <tromey@redhat.com>
13008 * symfile.h (struct ecoff_debug_hack): Remove.
13009 * objfiles.c: Don't include mdebugread.h.
13011 2013-01-02 Tom Tromey <tromey@redhat.com>
13013 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13014 * configure.ac: Check for Mach-O support in BFD. Update
13016 * configure: Rebuild.
13018 2013-01-02 Tom Tromey <tromey@redhat.com>
13020 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13021 * configure.ac: Use GDB_AC_CHECK_BFD.
13022 * configure: Rebuild.
13024 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13026 * MAINTAINERS: Update my email.
13028 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13030 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13032 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13034 * rs6000-nat.c (bss_data_overlap): New function.
13035 (vmap_symtab): Use it to adjust the .bss section's offset.
13037 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13039 Update year range in copyright notice of all files.
13041 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13043 * top.c (print_gdb_version): Update copyright year.
13045 For older changes see ChangeLog-2012.
13051 version-control: never