1 2013-11-18 Joel Brobecker <brobecker@adacore.com>
3 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
4 to -list-features output.
6 2013-11-17 Joel Brobecker <brobecker@adacore.com>
8 * dwarf2expr.h (struct dwarf_expr_context_funcs)
9 <read_addr_from_reg>: Renames "read_reg".
10 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
12 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
13 Use read_addr_from_reg in place of read_reg.
14 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
16 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
18 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
19 with dwarf_expr_read_addr_from_reg.
20 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
21 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
22 needs_frame_read_addr_from_reg.
24 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
26 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
28 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
30 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
33 2013-11-15 Tom Tromey <tromey@redhat.com>
36 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
37 (classify_name): Likewise. Prefer a field of "this" over a
39 (classify_inner_name, yylex): Update.
41 2013-11-15 Joel Brobecker <brobecker@adacore.com>
43 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
44 Extend the documentation a bit.
45 <get_reg_value>: New field.
46 * dwarf2loc.c (dwarf_expr_get_reg_value)
47 (needs_frame_get_reg_value): New functions.
48 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
50 * dwarf2-frame.c (get_reg_value): New function.
51 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
52 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
53 Use new callback to compute result_val.
55 2013-11-15 Alan Modra <amodra@gmail.com>
57 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
58 (ppc64_desc_entry_point): ..this. Update comments here and at
60 (ppc64_standard_linkage1, ppc64_standard_linkage2,
61 ppc64_standard_linkage3): Update comments.
62 (ppc64_standard_linkage4, ppc64_standard_linkage5,
63 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
65 (ppc64_standard_linkage4_target): New function.
66 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
67 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
68 nop match. Fix comment wrap.
70 2013-11-14 Pedro Alves <palves@redhat.com>
72 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
73 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
75 2013-11-14 Pedro Alves <palves@redhat.com>
77 * infrun.c (struct execution_control_state)
78 <stepped_after_stopped_by_watchpoint>: New field.
79 (get_inferior_stop_soon): New function.
80 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
81 moved to struct execution_control_state -- adjust. Use
82 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
84 (handle_signal_stop): New function, factored out from
85 handle_inferior_event.
87 2013-11-14 Pedro Alves <palves@redhat.com>
89 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
91 * breakpoint.c (bpstat_explains_signal): Adjust to return a
93 (explains_signal_watchpoint, base_breakpoint_explains_signal):
94 Adjust to return a boolean.
95 * breakpoint.h (enum bpstat_signal_value): Delete.
96 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
97 (bpstat_explains_signal): Likewise.
98 * infrun.c (handle_inferior_event) <random signal checks>:
99 bpstat_explains_signal now returns a boolean - adjust. No longer
100 consider hiding signals.
102 2013-11-14 Pedro Alves <palves@redhat.com>
104 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
105 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
106 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
108 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
109 instead of BPSTAT_SIGNAL_HIDE.
110 * infrun.c (handle_inferior_event): Rework random signal checks.
112 2013-11-14 Pedro Alves <palves@redhat.com>
114 * infrun.c (struct execution_control_state): Remove
115 'random_signal' field.
116 (handle_syscall_event): Use bpstat_causes_stop instead of
117 bpstat_explains_signal. Don't set ecs->random_signal.
118 (handle_inferior_event): New 'random_signal' local.
119 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
120 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
121 bpstat_explains_signal. Don't set ecs->random_signal.
122 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
125 2013-11-14 Pedro Alves <palves@redhat.com>
127 * infrun.c (handle_inferior_event): Move comment from the
128 function's body to the function's description, adjusted.
130 2013-11-14 Pedro Alves <palves@redhat.com>
132 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
133 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
134 Assert we never fall through out of the TARGET_WAITKIND_LOADED
137 2013-11-14 Tom Tromey <tromey@redhat.com>
139 * python/py-linetable.c (ltpy_has_line)
140 (ltpy_get_all_source_lines): Fix loop termination condition.
142 2013-11-14 Joel Brobecker <brobecker@adacore.com>
144 * mi/mi-parse.h (struct mi_parse) <language>: New field.
145 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
146 PARSE->LANGUAGE during command execution, if set.
147 * mi/mi-parse.c: Add "language.h" #include.
148 (mi_parse): Add parsing of "--language" command option.
150 * NEWS: Add entry mentioning the new "--language" command option.
152 2013-11-14 Pedro Alves <palves@redhat.com>
153 Joel Brobecker <brobecker@adacore.com>
155 * cli/cli-utils.h (extract_arg_const): Add declaration.
156 * cli/cli-utils.c (extract_arg_const): New function.
157 (extract_arg): Reimplement using extract_arg_const.
159 2013-11-14 Joel Brobecker <brobecker@adacore.com>
161 * language.h: Add "symtab.h" #include.
163 2013-11-13 Doug Evans <xdje42@gmail.com>
165 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
166 specific breakpoints, don't evaluate breakpoint condition if
169 2013-11-13 Keith Seitz <keiths@redhat.com>
173 * cp-support.c (insepct_type): Add support for substituting
174 namespace aliases, too.
175 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
176 for DW_TAG_imported_declaration.
177 (add_partial_symbol): Likewise.
178 (process_die): Handle namespace aliases with
179 read_namespace_alias.
180 (die_needs_namespace): Add DW_TAG_imported_declaration.
181 (read_namespace_alias): New function.
182 (load_partial_dies): Load DW_TAG_imported_declaration, too.
183 (new_symbol_full): Handle DW_TAG_imported_declaration.
185 2013-11-13 Keith Seitz <keiths@redhat.com>
187 * p-exp.y (uptok): Make first parameter const.
188 (yylex): Make `tokstart' and `tokptr' const.
189 Don't copy the lexer input to a temporary buffer.
191 Remove const workaround for parse_escape.
192 Create a temporary buffer for a convenience variable instead
193 of doing in-place modification of the input.
194 If a match is found with a different case from the input,
195 do not change the input at all.
196 Use `tmp' to construct the resultant stoken instead of
199 2013-11-13 Doug Evans <xdje42@gmail.com>
201 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
203 2013-11-13 Joel Brobecker <brobecker@adacore.com>
205 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
206 entry with "ada-exceptions".
208 2013-11-13 Joel Brobecker <brobecker@adacore.com>
210 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
211 after re-initialization of OBJFILE's obstack.
213 2013-11-12 Doug Evans <xdje42@gmail.com>
215 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
216 bs->stop != 0 on entry. Update function comment. Simplify early
217 exit for frame mismatch. Reindent rest of function.
219 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
221 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
224 2013-11-12 Doug Evans <dje@google.com>
226 Work around gold/15646.
227 * dwarf2read.c (read_index_from_section): Update comment.
228 (struct dw2_symtab_iterator): New member global_seen.
229 (dw2_symtab_iter_init): Initialize it.
230 (dw2_symtab_iter_next): Skip duplicate global symbols.
231 (dw2_expand_symtabs_matching): Ditto.
233 2013-11-12 Joel Brobecker <brobecker@adacore.com>
235 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
236 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
238 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
239 (mi_cmd_info_ada_exceptions): New function.
240 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
242 2013-11-12 Joel Brobecker <brobecker@adacore.com>
244 * ada-lang.h: #include "vec.h".
245 (struct ada_exc_info): New.
246 (ada_exc_info): New typedef.
247 (DEF_VEC_O(ada_exc_info)): New vector.
248 (ada_exceptions_list): Add declaration.
249 * ada-lang.c (ada_is_exception_sym)
250 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
251 (sort_remove_dups_ada_exceptions_list)
252 (ada_exc_search_name_matches, ada_add_standard_exceptions)
253 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
254 (ada_exceptions_list_1, ada_exceptions_list)
255 (info_exceptions_command): New function.
256 (_initialize_ada_language): Add "info exception" command.
258 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
261 * NEWS: Add linetable feature.
262 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
263 * python/py-linetable.c: New file.
264 * python/py-symtab.c (stpy_get_linetable): New function.
265 * python/python-internal.h (symtab_to_linetable_object): Declare.
266 (gdbpy_initialize_linetable): Ditto.
267 * python/python.c (_initialize_python): Call
268 gdbpy_initialize_linetable.
270 2013-11-11 Joel Brobecker <brobecker@adacore.com>
272 * ada-lang.c (create_ada_exception_catchpoint): Enhance
273 the documentation of fields "except_string" and "condition".
274 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
275 CONDITION on the heap before passing it to
276 create_ada_exception_catchpoint.
277 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
280 2013-11-11 Tom Tromey <tromey@redhat.com>
282 * config.in, configure: Rebuild.
283 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
285 2013-11-11 Joel Brobecker <brobecker@adacore.com>
287 * remote-sim.c (gdbsim_detach): Break declaration into
288 shorter lines. No code change.
290 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
292 * remote-sim.c (gdbsim_detach): Fix prototype.
294 2013-11-08 Doug Evans <dje@google.com>
296 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
297 (create_debug_types_hash_table): Only print debugging messages for
298 each TU if dwarf2-read >= 2.
299 (process_queue): Ditto.
300 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
303 2013-11-08 Tom Tromey <tromey@redhat.com>
305 * configure: Rebuild.
306 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
308 2013-11-08 Tom Tromey <tromey@redhat.com>
310 * configure, config.in: Rebuild.
311 * configure.ac: Remove unused configury.
313 2013-11-08 Tom Tromey <tromey@redhat.com>
315 * m32c-tdep.c: Use gdb_string.h.
317 2013-11-08 Tom Tromey <tromey@redhat.com>
319 * configure, config.in: Rebuild.
320 * configure.ac: Remove all link.h-related checks.
322 2013-11-08 Tom Tromey <tromey@redhat.com>
324 * acinclude.m4: Include common.m4.
325 * common/common.m4: New file.
326 * configure, config.in: Rebuild.
327 * configure.ac: Use GDB_AC_COMMON.
329 2013-11-08 Doug Evans <dje@google.com>
331 * NEWS: Mention that "set debug symtab-create" now accepts a
333 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
334 to set the symtab's primary flag.
335 * jit.c (finalize_symtab): Ditto.
336 * mdebugread.c (psymtab_to_symtab_1): Ditto.
337 * symfile.c (allocate_symtab): Only print debugging messages for
338 symtab_create_debug levels 2 and higher.
339 * symtab.c (symtab_create_debug): Change type to unsigned int.
340 (set_symtab_primary): New function.
341 (_initialize_symtab): Change "set debug symtab-create" to a
343 * symtab.h (set_symtab_primary): Declare.
344 (symtab_create_debug): Update decl.
346 2013-11-08 Tom Tromey <tromey@redhat.com>
348 * aix-thread.c (aix_thread_detach): Update.
349 * corelow.c (core_detach): Update.
350 * darwin-nat.c (darwin_detach): Update.
351 * dec-thread.c (dec_thread_detach): Update.
352 * gnu-nat.c (gnu_detach): Update.
353 * go32-nat.c (go32_detach): Update.
354 * inf-ptrace.c (inf_ptrace_detach): Update.
355 * inf-ttrace.c (inf_ttrace_detach): Update.
356 * linux-fork.c (linux_fork_detach): Update.
357 * linux-fork.h (linux_fork_detach): Update.
358 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
359 local for const-correctness.
360 * linux-thread-db.c (thread_db_detach): Update.
361 * monitor.c (monitor_detach): Update.
362 * nto-procfs.c (procfs_detach): Update.
363 * procfs.c (procfs_detach): Update.
364 * record.c (record_detach): Update.
365 * record.h (record_detach): Update.
366 * remote-m32r-sdi.c (m32r_detach): Update.
367 * remote-mips.c (mips_detach): Update.
368 * remote-sim.c (gdbsim_detach): Update.
369 * remote.c (remote_detach_1, remote_detach)
370 (extended_remote_detach): Update.
371 * sol-thread.c (sol_thread_detach): Update.
372 * target.c (target_detach): Make "args" const.
373 (init_dummy_target): Update.
374 * target.h (struct target_ops) <to_detach>: Make argument const.
375 (target_detach): Likewise.
376 * windows-nat.c (windows_detach): Update.
378 2013-11-07 Doug Evans <dje@google.com>
381 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
382 and align fields for PT_GNU_RELRO segments.
384 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
387 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
389 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
391 * NEWS: Document Python temporary breakpoint support.
392 * python/py-breakpoint.c (bppy_get_temporary): New function.
393 (bppy_init): New keyword: temporary. Parse it and set breakpoint
394 to temporary if True.
396 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
398 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
399 removed to allow analyzing unconditional branch instructions
400 with PC-relative offsets of zero.
402 2013-11-07 Yao Qi <yao@codesourcery.com>
404 * mi/mi-cmd-var.c: Include "language.h".
405 (mi_cmd_var_info_expression): Get language name from
407 * varobj.c (varobj_language_string): Remove.
408 (variable_language): Remove declaration.
410 (varobj_get_language): Change the type of return value.
411 (variable_language): Remove.
412 * varobj.h (enum varobj_languages): Remove.
413 (varobj_language_string): Remove declaration.
414 (varobj_get_language): Update declaration.
416 2013-11-07 Yao Qi <yao@codesourcery.com>
418 * language.h (struct language_defn) <la_natural_name>: New
420 * ada-lang.c (ada_language_defn): Initialize field
422 * c-lang.c (c_language_defn): Likewise.
423 (cplus_language_defn, asm_language_defn): Likewise.
424 * d-lang.c (d_language_defn): Likewise.
425 * f-lang.c (f_language_defn): Likewise.
426 * go-lang.c (go_language_defn): Likewise.
427 * jv-lang.c (java_language_defn): Likewise.
428 * language.c (unknown_language_defn ): Likewise.
429 (auto_language_defn): Likewise.
430 * m2-lang.c (m2_language_defn): Likewise.
431 * objc-lang.c (objc_language_defn): Likewise.
432 * opencl-lang.c (opencl_language_defn): Likewise.
433 * p-lang.c (pascal_language_defn): Likewise.
435 2013-11-07 Yao Qi <yao@codesourcery.com>
437 * language.c (language_str): Return const char *.
438 (add_language): Add const to 'language_names'
439 * language.h (struct language_defn) <la_name>: Add const.
440 (language_str: Update declaration.
442 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
444 * s390-linux-nat.c (s390_read_description): Consider the TE field
445 in the HWCAP for determining 'have_regset_tdb'.
447 2013-11-06 Will Newton <will.newton@linaro.org>
450 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
451 values. (read_partial_die): Likewise.
453 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
456 * top.c (command_line_input): Unify interactivity tests to use
457 input_from_terminal_p.
458 * event-top.c (command_line_handler): Likewise.
460 2013-11-06 Yao Qi <yao@codesourcery.com>
462 * Makefile.in (check-perf): New target.
464 2013-11-05 Will Newton <will.newton@linaro.org>
467 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
468 (arm_print_float_info): Likewise.
470 2013-11-04 Anton Blanchard <anton@samba.org>
472 * target.c (memory_xfer_partial): Cap write to 4KB.
474 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
476 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
477 probe scan even when the arch provides no get_longjmp_target.
479 2013-10-31 Pedro Alves <palves@redhat.com>
481 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
482 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
483 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
484 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
485 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
486 <bpstat handling>: If the bpstat chain wants the signal to be
487 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
490 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
492 * breakpoint.c (update_watchpoint): Update error message and add
493 an additional error message.
495 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
497 * s390-tdep.h: Rename to...
498 * s390-linux-tdep.h: ...here.
499 * s390-tdep.c: Rename to...
500 * s390-linux-tdep.c: ...here. Adjust #include.
501 * s390-nat.c: Rename to...
502 * s390-linux-nat.c: ...here. Adjust #include.
503 * config/s390/s390.mh: Rename to...
504 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
506 * configure.host: Reflect host rename "s390" -> "linux".
507 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
508 * Makefile.in (ALL_TARGET_OBS): Likewise.
509 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
511 (ALLDEPFILES): Reflect rename of .c files.
513 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
515 * s390-nat.c: Whitespace cleanup.
516 * s390-tdep.c: Likewise.
517 * s390-tdep.h: Remove empty line at end of file.
519 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
521 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
524 2013-10-29 Tom Tromey <tromey@redhat.com>
526 * utils.c (reg): Move undefinition...
527 * gdb_curses.h: ... here. Update comment to mention AIX.
529 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
531 * exec.h (add_target_sections_of_objfile): New declaration.
532 * exec.c (add_target_sections_of_objfile): New function.
533 * symfile.c (add_symbol_file_command): Update current target sections.
534 (remove_symbol_file_command): New command.
535 (symfile_free_objfile): New function.
536 (_initialize_symfile): Register observer for free_objfile events.
537 * NEWS: Add description of the remove-symbol-file command.
538 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
539 * objfiles.c (free_objfile): Notify free_objfile.
540 (is_addr_in_objfile): New function.
541 * objfiles.h (is_addr_in_objfile): New declaration.
542 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
543 events instead of solib_unloaded events.
544 (_initialize_printcmd): Register observer for free_objfile instead
545 of solib_unloaded notifications.
546 * solib.c (remove_user_added_objfile): New function.
547 (_initialize_symfile): Add remove-symbol-file.
549 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
551 * infcmd.c (default_print_one_register_info): Use val_print to
552 print all values even optimized out or unavailable ones. Don't
553 try to print a raw form of optimized out or unavailable values.
555 2013-10-29 Yao Qi <yao@codesourcery.com>
557 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
558 parameter 'arg' instead of from program_space_data.
559 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
560 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
561 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
562 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
563 * inflow.c (inflow_inferior_data_cleanup): Get data from
564 parameter 'arg' instead of inferior_data.
565 * registry.h: Add comments.
567 2013-10-28 Pedro Alves <palves@redhat.com>
569 * breakpoint.c (watchpoints_triggered)
570 <!target_stopped_data_address>: Hardcode return 1.
572 2013-10-28 Pedro Alves <palves@redhat.com>
574 * infrun.c (process_event_stop_test): Remove unnecessary scoping
577 2013-10-28 Pedro Alves <palves@redhat.com>
579 * infrun.c (process_event_stop_test): New function, factored out
580 from handle_inferior_event.
581 (handle_inferior_event): 'process_event_stop_test' is now a
582 function instead of a goto label -- adjust.
584 2013-10-28 Pedro Alves <palves@redhat.com>
586 * infrun.c (handle_inferior_event): Move process_event_stop_test
587 goto label to the else branch of the ecs->random_signal check,
588 along with FRAME and GDBARCH re-fetching.
590 2013-10-28 Pedro Alves <palves@redhat.com>
592 * infrun.c (switch_back_to_stepped_thread): New function, factored
593 out from handle_inferior_event.
594 (handle_inferior_event): Adjust to call
595 switch_back_to_stepped_thread. Call it also at the tail of the
596 random signal handling, and return, instead of also handling
597 random signals just before the stepping tests.
599 2013-10-28 Pedro Alves <palves@redhat.com>
601 * infrun.c (clear_stop_func): Delete.
602 (handle_inferior_event): Don't call clear_stop_func and don't
603 clear 'ecs->random_signal'.
605 2013-10-27 Yao Qi <yao@codesourcery.com>
607 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
608 (varobj_create, varobj_get_path_expr): Update.
609 (varobj_value_has_mutated, varobj_update): Likewise.
610 (create_child_with_value, new_root_variable): Likewise.
611 (number_of_children, name_of_variable): Likewise.
612 (value_of_child, my_value_of_variable): Likewise.
613 (varobj_value_is_changeable_p): Likewise.
615 2013-10-25 Yao Qi <yao@codesourcery.com>
617 * language.h (struct lang_varobj_ops): Declare.
618 (struct language_defn) <la_varobj_ops>: New field.
619 * ada-lang.c: Include "varobj.h"
620 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
622 * c-lang.c: Include "varobj.h"
623 (c_language_defn): Initialize field 'la_varobj_ops' with
625 (cplus_language_defn): Initialize field 'la_varobj_ops' with
627 (asm_language_defn): Initialize field 'la_varobj_ops' with
629 (minimal_language_defn): Likewise.
630 * d-lang.c (d_language_defn): Likewise.
631 * f-lang.c (f_language_defn): Likewise.
632 * go-lang.c (go_language_defn): Likewise.
633 * m2-lang.c (m2_language_defn): Likewise.
634 * objc-lang.c (objc_language_defn): Likewise.
635 * opencl-lang.c (opencl_language_defn): Likewise.
636 * p-lang.c (pascal_language_defn): Likewise.
637 * language.c (unknown_language_defn): Likewise.
638 (auto_language_defn): Likewise.
639 (local_language_defn): Likewise.
640 * jv-lang.c (java_language_defn): Initialize field
641 'la_varobj_ops' with java_varobj_ops.
642 * varobj.c (varobj_create): Update.
643 * varobj.h (default_varobj_ops): Define macro.
645 2013-10-25 Pedro Alves <palves@redhat.com>
647 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
649 (cp_print_static_field): If the value is entirely optimized out,
650 print <optimized out> here.
651 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
653 * p-valprint.c (pascal_object_print_static_field): If the value is
654 entirely optimized out, print <optimized out> here.
655 * valops.c (do_search_struct_field)
656 (value_struct_elt_for_reference): No longer handle a NULL static
658 * value.c (value_static_field): Return an optimized out value
661 2013-10-25 Yao Qi <yao@codesourcery.com>
663 * remote.c (remote_traceframe_info): Return early if
664 traceframe is not selected.
666 2013-10-25 Yao Qi <yao@codesourcery.com>
668 * tracepoint.c (traceframe_fun): Remove.
669 (traceframe_sal): Remove.
670 (set_traceframe_context): Add local variables.
672 2013-10-25 Joel Brobecker <brobecker@adacore.com>
674 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
677 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
679 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
680 failure from register information collection.
682 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
684 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
686 (linux_corefile_thread_callback): Update accordingly.
687 (linux_make_corefile_notes): Likewise.
689 2013-10-24 Pedro Alves <palves@redhat.com>
691 * NEWS (New options): Mention set/show startup-with-shell.
692 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
694 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
696 (show_startup_with_shell): New function.
697 (_initialize_fork_child): Register the set/show startup-with-shell
699 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
700 * inf-ttrace.c (inf_ttrace_him): Remove comment.
701 * procfs.c (procfs_init_inferior): Remove comment.
702 * infcmd.c (startup_with_shell): New global.
703 * inferior.h (startup_with_shell): Declare global.
704 (STARTUP_WITH_SHELL): Delete.
705 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
707 2013-10-23 Pedro Alves <palves@redhat.com>
709 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
710 * common/signals.c: Include "gdb_assert.h".
711 (signals): New field 'symbol'.
712 (SET): Use the 'symbol' parameter.
713 (gdb_signal_to_symbol_string): New function.
714 * infrun.c (handle_inferior_event) <random signal>: In debug
715 output, print the random signal enum as string in addition to its
717 * target/waitstatus.c (target_waitstatus_to_string): Print the
718 signal's enum value as string instead of the (POSIX) signal name.
720 2013-10-23 Gary Benson <gbenson@redhat.com>
723 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
724 from 32 to 18. Adjusted fscanf format string accordingly.
725 (Avoids leaving cmd unterminated.)
726 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
727 trun, retn or extra. (Avoids leaving extra unterminated.) Check
728 that local_address and remote_address will not overflow.
729 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
730 leaving dependencies unterminated. Parse size as "%u" to match
733 2013-10-22 Pedro Alves <palves@redhat.com>
735 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
736 set ecs->random signal.
738 2013-10-22 Pedro Alves <palves@redhat.com>
740 * infrun.c (keep_going): Update comments.
742 2013-10-22 Pedro Alves <palves@redhat.com>
744 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
745 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
747 2013-10-22 Pedro Alves <palves@redhat.com>
749 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
751 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
752 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
753 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
754 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
755 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
756 (GDB_SIGNAL_LAST): Change description string.
757 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
758 Adjust to signal renaming.
759 * darwin-nat.c (darwin_decode_message): Likewise.
761 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
763 * MAINTAINERS (Write After Approval): Add myself to the list.
765 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
767 * breakpoint.c (update_watchpoint): If hardware watchpoints are
768 forced off, downgrade them to software watchpoints if possible,
769 and error out if not possible.
770 (watch_command_1): Move watchpoint type selection closer to
771 watchpoint creation, and extend the comments.
773 2013-10-18 Pedro Alves <palves@redhat.com>
776 * infrun.c (handle_inferior_event): Keep going if we got a random
777 signal we should not stop for, instead of falling through to the
780 2013-10-18 Yao Qi <yao@codesourcery.com>
782 * c-varobj.c (cplus_number_of_children): Fix indentation.
784 2013-10-17 Tom Tromey <tromey@redhat.com>
787 * printcmd.c (printcmd): Call gdb_flush.
789 2013-10-17 Tom Tromey <tromey@redhat.com>
791 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
792 (elf_locate_sections): Update.
794 2013-10-17 Yao Qi <yao@codesourcery.com>
796 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
797 * ada-varobj.c: Remove the include of ada-varobj.h.
798 (ada_varobj_get_number_of_children): Declare.
799 (ada_varobj_get_name_of_child): Make it static.
800 (ada_varobj_get_path_expr_of_child): Likewise.
801 (ada_varobj_get_value_of_child): Likewise.
802 (ada_varobj_get_type_of_child): Likewise.
803 (ada_varobj_get_value_of_array_variable): Likewise.
804 * ada-varobj.h: Remove.
806 2013-10-17 Yao Qi <yao@codesourcery.com>
808 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
809 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
810 * ada-varobj.c: Include "varobj.h".
811 (ada_number_of_children): New. Moved from varobj.c.
812 (ada_name_of_variable, ada_name_of_child): Likewise.
813 (ada_path_expr_of_child, ada_value_of_child): Likewise.
814 (ada_type_of_child, ada_value_of_variable): Likewise.
815 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
816 (ada_varobj_ops): New.
817 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
818 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
819 * gdbtypes.h (get_target_type): Declare.
820 * varobj.c: Remove the inclusion of "ada-varobj.h" and
822 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
823 (ANONYMOUS_UNION_NAME): Likewise.
824 (get_type, get_value_type, get_target_type): Remove declarations.
825 (value_get_print_value, varobj_value_get_print_value): Likewise.
826 (c_number_of_children, c_name_of_variable): Likewise.
827 (c_name_of_child, c_path_expr_of_child): Likewise.
828 (c_value_of_child, c_type_of_child): Likewise.
829 (c_value_of_variable, cplus_number_of_children): Likewise.
830 (cplus_class_num_children, cplus_name_of_variable): Likewise.
831 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
832 (cplus_value_of_child, cplus_type_of_child): Likewise.
833 (cplus_value_of_variable, java_number_of_children): Likewise.
834 (java_name_of_variable, java_name_of_child): Likewise.
835 (java_path_expr_of_child, java_value_of_child): Likewise.
836 (java_type_of_child, java_value_of_variable): Likewise.
837 (ada_number_of_children, ada_name_of_variable): Likewise.
838 (ada_name_of_child, ada_path_expr_of_child): Likewise.
839 (ada_value_of_child, ada_type_of_child): Likewise.
840 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
841 (ada_value_has_mutated): Likewise.
842 (struct language_specific): Move it to varobj.h.
843 (CPLUS_FAKE_CHILD): Move it to varobj.h.
844 (restrict_range): Rename it varobj_restrict_range. Make it extern.
846 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
848 (is_anonymous_child): Move it to c-varobj.c and rename to
849 varobj_is_anonymous_child. Caller update.
850 (get_type): Move it to c-varobj.c.
851 (get_value_type): Rename it varobj_get_value_type. Make it
853 (get_target_type): Move it gdbtypes.c.
854 (varobj_formatted_print_options): New function.
855 (value_get_print_value): Rename it to
856 varobj_value_get_print_value and make it extern.
857 (varobj_value_is_changeable_p): Make it extern.
858 (adjust_value_for_child_access): Move it to c-varobj.c.
859 (default_value_is_changeable_p): Rename it to
860 varobj_default_value_is_changeable_p. Make it extern.
861 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
862 (c_name_of_child, c_path_expr_of_child): Likewise.
863 (c_value_of_child, c_type_of_child): Likewise.
864 (c_value_of_variable, cplus_number_of_children): Likewise.
865 (cplus_class_num_children, cplus_name_of_variable): Likewise.
866 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
867 (cplus_value_of_child, cplus_type_of_child): Likewise.
868 (cplus_value_of_variable): Likewise.
869 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
870 (java_name_of_child, java_path_expr_of_child): Likewise.
871 (java_value_of_child, java_type_of_child): Likewise.
872 (java_value_of_variable): Likewise.
873 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
874 (ada_name_of_child, ada_path_expr_of_child): Likewise.
875 (ada_value_of_child, ada_type_of_child): Likewise.
876 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
877 (ada_value_has_mutated): Likewise.
878 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
879 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
880 (c_varobj_ops, cplus_varobj_ops): Declare.
881 (java_varobj_ops, ada_varobj_ops): Declare.
882 (varobj_default_value_is_changeable_p): Declare.
883 (varobj_value_is_changeable_p): Declare.
884 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
885 (varobj_get_path_expr_parent): Declare.
886 (varobj_value_get_print_value): Declare.
887 (varobj_formatted_print_options): Declare.
888 (varobj_restrict_range): Declare.
890 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
892 * target/waitstatus.h (target_waitkind): Remove spurious
893 character from the comments.
895 2013-10-17 Joel Brobecker <brobecker@adacore.com>
897 * gdbarch.sh (get_longjmp_target): Add method documentation.
898 * gdbarch.h: Regenerate.
900 2013-10-16 Tom Tromey <tromey@redhat.com>
902 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
905 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
907 * gcore.in: Call GDB using the full path to the gcore script.
908 Error out if the GDB binary is not found.
910 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
913 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
916 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
919 * target.c (target_disable_btrace): Fix invalid return value for
921 (target_teardown_btrace): Likewise.
923 2013-10-14 Yao Qi <yao@codesourcery.com>
925 * varobj.c (struct varobj): Move most of the fields to
927 (struct varobj_dynamic): New struct.
928 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
929 (varobj_has_more): Likewise.
930 (dynamic_varobj_has_child_method): Likewise.
931 (update_dynamic_varobj_children): Likewise.
932 (varobj_get_num_children): Likewise.
933 (varobj_list_children, varobj_pretty_printed_p): Likewise.
934 (install_new_value_visualizer): Likewise.
935 (install_new_value_visualizer, install_new_value): Likewise.
936 (varobj_update, new_variable, free_variable): Likewise.
937 (my_value_of_variable, value_get_print_value): Likewise.
938 (install_visualizer): Change the type of parameter 'var' to
939 'struct varobjd_dynamic *'. Callers update.
940 * varobj.h (struct varobj): Moved from varobj.c.
941 (struct varobj) <dynamic>: New field.
943 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
945 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
946 as the preferred name of r30.
947 * nios2-linux-tdep.c (reg_offsets): Likewise.
948 * features/nios2-cpu.xml: Likewise.
949 * features/nios2-linux.c: Regenerated.
950 * features/nios2.c: Regenerated.
951 * regformats/nios2-linux.dat: Regenerated.
953 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
955 Canonicalize directories for EXEC_FILENAME.
956 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
958 * utils.c (gdb_realpath_keepfile): New function.
959 * utils.h (gdb_realpath_keepfile): New declaration.
961 2013-10-11 Doug Evans <dje@google.com>
963 * Makefile.in (GDBFLAGS): New variable.
966 2013-10-11 Joel Brobecker <brobecker@adacore.com>
968 * NEWS: Add entry documenting the new "-catch-assert" and
969 "-catch-exception" GDB/MI commands.
971 2013-10-11 Joel Brobecker <brobecker@adacore.com>
973 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
975 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
976 "enabled". Set B->ENABLE_STATE accordingly.
977 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
979 (create_ada_exception_catchpoint): Add declaration.
980 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
981 (create_ada_exception_catchpoint): Make non-static. Add new
982 parameter "disabled". Use it in call to
983 init_ada_exception_breakpoint.
984 (catch_ada_exception_command): Add parameter "enabled" in call
985 to create_ada_exception_catchpoint.
986 (catch_assert_command): Likewise.
988 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
990 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
991 "catch-exception" commands.
992 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
993 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
995 2013-10-11 Joel Brobecker <brobecker@adacore.com>
997 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
998 "enum exception_catchpoint_kind". Replace the "ex_" prefix
999 of all its enumerates with "ada_". Update the rest of this
1002 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1004 * ada-lang.c (ada_decode_exception_location): Delete.
1005 (create_ada_exception_catchpoint): Remove arguments "sal",
1006 "addr_string" and "ops". Add argument "ex_kind" instead.
1007 Adjust implementation accordingly, calling ada_exception_sal
1008 to get the entities it no longer gets passed as arguments.
1009 Document the function's arguments.
1010 (catch_ada_exception_command): Use catch_ada_exception_command_split
1011 instead of ada_decode_exception_location, and update call to
1012 create_ada_exception_catchpoint.
1013 (catch_ada_assert_command_split): Renames
1014 ada_decode_assert_location. Remove parameters "addr_string" and
1015 "ops", and now returns void. Adjust implementation accordingly.
1016 Update the function documentation.
1017 (catch_assert_command): Use catch_ada_assert_command_split
1018 instead of ada_decode_assert_location. Update call to
1019 create_ada_exception_catchpoint.
1021 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1023 * utils.h (perror_warning_with_name): Add declaration.
1024 * utils.c (perror_warning_with_name): New function.
1025 * cli/cli-cmds.c (source_script_with_search): Add call to
1026 perror_warning_with_name if from_tty is nul.
1028 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1030 * utils.c (perror_string): New function, extracted out of
1031 throw_perror_with_name.
1032 (throw_perror_with_name): Rework to use perror_string.
1034 2013-10-11 Yao Qi <yao@codesourcery.com>
1036 * remote.c (discard_pending_stop_replies_in_queue): Update
1038 (struct stop_reply) <rs>: New field.
1039 (remove_stop_reply_of_remote_state): New function.
1040 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1041 Callers update. Pass remove_stop_reply_of_remote_state to
1043 (remote_parse_stop_reply): Initialize field 'rs'.
1045 2013-10-10 Will Newton <will.newton@linaro.org>
1047 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1050 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1052 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1053 serial_baud_show_cmd.
1054 (_initialize_cli_cmds): Delete the code creating the
1055 "set/show remotebaud" commands.
1056 * serial.c (baud_rate): Move here from top.c.
1057 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1058 (_initialize_serial): Create "set/show serial baud" commands.
1059 Add "set/show remotebaud" command aliases.
1060 * top.c (baud_rate): Moved to serial.c.
1061 * NEWS: Document the new "set/show serial baud" commands,
1062 replacing "set/show remotebaud".
1064 2013-10-09 Pedro Alves <palves@redhat.com>
1066 * breakpoint.c (insert_bp_location): Use memory_error_message to
1067 build the memory error string.
1068 * c-lang.c: Include "gdbcore.h".
1069 (c_get_string): Use memory_error to throw error.
1070 (target_xfer_memory_error): Delete.
1071 (memory_error_message): New, factored out from
1072 target_xfer_memory_error.
1073 (memory_error): Change parameter type to target_xfer_error.
1075 (read_memory): Use memory_error instead of
1076 target_xfer_memory_error.
1077 * gdbcore.h: Include "target.h".
1078 (memory_error): Change parameter type to target_xfer_error.
1079 (memory_error_message): Declare function.
1080 * target.c (target_read_memory, target_read_stack)
1081 (target_write_memory, target_write_raw_memory): Return
1082 TARGET_XFER_E_IO on error. Adjust comments.
1083 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1085 * target.h (target_read, target_insert_breakpoint)
1086 (target_remove_breakpoint): Adjust comments.
1087 * valprint.c (partial_memory_read): Rename parameter, and adjust
1089 (val_print_string): Use memory_error_message to build the memory
1092 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1095 result variable. Rename variable fopen_e_ever_failed to
1096 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1098 2013-10-09 Pedro Alves <palves@redhat.com>
1100 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1101 (monitor_write_memory_longlongs, monitor_write_memory_block):
1102 Constify 'myaddr' parameter.
1103 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1105 (monitor_xfer_partial): New function.
1106 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1107 hook. Install a to_xfer_partial hook.
1109 2013-10-09 Tom Tromey <tromey@redhat.com>
1111 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1112 bfd_get_alt_debug_link_info.
1114 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1116 New flag OBJF_NOT_FILENAME.
1117 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1118 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1120 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1121 symbol_file_add_from_bfd.
1122 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1124 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1126 * objfiles.h (OBJF_NOT_FILENAME): New.
1128 2013-10-08 Tom Tromey <tromey@redhat.com>
1130 * Makefile.in (SFILES): Add build-id.c.
1131 (HFILES_NO_SRCDIR): Add build-id.h.
1132 * build-id.c: New file, largely from elfread.c. Modified
1134 * build-id.h: New file.
1135 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1136 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1137 Search for dwz file using build-id.
1138 * elfread.c (build_id_bfd_get, build_id_verify)
1139 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1141 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1143 * ada-lang.c (compare_names_with_case): Renamed from
1144 compare_names, adding a new parameter "casing" and its handling.
1145 New function documentation.
1146 (compare_names): New function, implemented using
1147 compare_names_with_case.
1149 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1151 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1153 2013-10-07 Tom Tromey <tromey@redhat.com>
1155 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1156 demangled_names_hash.
1157 (free_objfile): Don't delete the demangled_names_hash.
1158 * objfiles.h (struct objfile_per_bfd_storage)
1159 <demangled_names_hash>: New field.
1160 (struct objfile) <demangled_names_hash>: Move to
1161 objfile_per_bfd_storage.
1162 * symfile.c (reread_symbols): Don't delete the
1163 demangled_names_hash.
1164 * symtab.c (create_demangled_names_hash): Update.
1165 (symbol_set_names): Update.
1167 2013-10-07 Tom Tromey <tromey@redhat.com>
1169 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1170 needs_relocations>: New fields.
1171 (gdb_bfd_requires_relocations): New function.
1172 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1173 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1174 the BFD needs relocations applied.
1176 2013-10-07 Pedro Alves <palves@redhat.com>
1178 PR breakpoints/11568
1179 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1180 the thread list" instead of "gone".
1182 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1184 * NEWS: Mention new convenience variable $_exitsignal.
1185 * corelow.c (core_open): Reset exit convenience variables. Set
1186 $_exitsignal to the uncaught signal which generated the corefile.
1187 * infrun.c (handle_inferior_event): Reset exit convenience
1188 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1189 (clear_exit_convenience_vars): New function.
1190 * inferior.h (clear_exit_convenience_vars): New prototype.
1192 2013-10-06 Yao Qi <yao@codesourcery.com>
1194 * varobj.h: Add comments to enum varobj_languages.
1196 2013-10-04 Doug Evans <dje@google.com>
1198 Add support for DWP file format version 2.
1199 * NEWS: Mention support for DWP file format version 2.
1200 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1201 union of asection, containing_section. New fields virtual_offset
1202 and is_virtual. Change type of readin filed from int to char.
1203 (dwo_sections, dwo_file): Tweak comments.
1204 (dwp_v2_section_ids): New enum.
1205 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1207 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1209 (virtual_v2_dwo_sections): New struct.
1210 (dwp_hash_table): New fields version, nr_columns. Change type of
1211 section_pool field to a union.
1212 (dwp_file): New field version.
1213 (dwarf2_has_info): Check for virtual sections.
1214 (get_containing_section): New function.
1215 (get_section_bfd_owner, get_section_bfd_section): Call it.
1216 (dwarf2_locate_sections): Update.
1217 (dwarf2_section_empty_p): Update.
1218 (dwarf2_read_section): Handle virtual sections.
1219 (locate_dwz_sections): Update.
1220 (create_dwp_hash_table): Document and handle V2 format.
1221 (locate_v1_virtual_dwo_sections): Renamed from
1222 locate_virtual_dwo_sections and update. All callers updated.
1223 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1224 Delete arg htab. Rename arg section_index to unit_index.
1225 All callers updated.
1226 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1228 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1229 (lookup_dwo_unit_in_dwp): Add V2 support.
1230 (dwarf2_locate_dwo_sections): Update.
1231 (dwarf2_locate_common_dwp_sections): Renamed from
1232 dwarf2_locate_dwp_sections and update. All callers updated.
1233 (dwarf2_locate_v2_dwp_sections): New function.
1234 (open_and_init_dwp_file): Add V2 support.
1235 (read_str_index): New locals str_section, str_offsets_section.
1237 2013-10-04 Pedro Alves <palves@redhat.com>
1239 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1240 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1241 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1242 describing comments with references to ptid.h.
1243 * common/ptid.h: Remove intro description of constructors,
1244 accessors and predicates.
1245 (struct ptid): Reformat.
1246 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1247 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1248 describing comments.
1250 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1252 * aix-thread.c (sync_threadlists): Add missing ')' in call
1255 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1257 * procfs.c (procfs_init_inferior): Fix typo causing the build
1260 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1262 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1264 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1266 * mi/mi-main.c (run_one_inferior): Add function description.
1267 Make ARG a pointer to an integer whose value determines whether
1268 we should "run" or "start" the program.
1269 (mi_cmd_exec_run): Add handling of the "--start" option.
1270 Reject all other command-line options.
1271 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1273 2013-10-04 Yao Qi <yao@codesourcery.com>
1275 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1276 (struct notif_client) <pending_event>: Moved
1277 to struct remote_notif_state.
1279 (struct remote_notif_state) <pending_event>: New field.
1280 (notif_event_xfree): Declare.
1281 * remote-notif.c (handle_notification): Adjust.
1282 (notif_event_xfree): New function.
1283 (do_notif_event_xfree): Call notif_event_xfree.
1284 (remote_notif_state_xfree): Call notif_event_xfree to free
1285 each element in field pending_event.
1286 * remote.c (discard_pending_stop_replies): Remove declaration.
1287 (discard_pending_stop_replies_in_queue): Declare.
1288 (remote_close): Call discard_pending_stop_replies_in_queue
1289 instead of discard_pending_stop_replies.
1290 (remote_start_remote): Adjust.
1291 (stop_reply_xfree): Call notif_event_xfree.
1292 (notif_client_stop): Adjust initialization.
1293 (remote_notif_remove_all): Rename it to ...
1294 (remove_stop_reply_for_inferior): ... this. Update comments.
1295 Don't check INF is NULL.
1296 (discard_pending_stop_replies): Return early if notif_state is
1297 NULL. Adjust. Don't check INF is NULL.
1298 (remote_notif_get_pending_events): Adjust.
1299 (discard_pending_stop_replies_in_queue): New function.
1300 (remote_wait_ns): Likewise.
1302 2013-10-04 Yao Qi <yao@codesourcery.com>
1304 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1305 (notif_queue): Remove.
1306 (remote_notif_process): Add one parameter 'notif_queue'.
1307 Update comments. Callers update.
1308 (remote_async_get_pending_events_token): Remove.
1309 (remote_notif_register_async_event_handler): Remove.
1310 (remote_notif_unregister_async_event_handler): Remove.
1311 (handle_notification): Add parameter 'notif_queue'. Update
1312 comments. Callers update.
1313 (notif_xfree): Remove.
1314 (remote_notif_state_allocate): New function.
1315 (remote_notif_state_xfree): New function.
1316 (_initialize_notif): Remove code to allocate queue.
1317 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1318 (struct remote_notif_state): New.
1319 (handle_notification): Update declaration.
1320 (remote_notif_process): Likewise.
1321 (remote_notif_register_async_event_handler): Remove.
1322 (remote_notif_unregister_async_event_handler): Remove.
1323 (remote_notif_state_allocate): Declare.
1324 (remote_notif_state_xfree): Declare.
1325 * remote.c (struct remote_state) <notif_state>: New field.
1326 (remote_close): Don't call
1327 remote_notif_unregister_async_event_handler. Call
1328 remote_notif_state_xfree.
1329 (remote_open_1): Don't call
1330 remote_notif_register_async_event_handler. Call
1331 remote_notif_state_allocate.
1333 2013-10-04 Yao Qi <yao@codesourcery.com>
1335 * varobj.c (create_child_with_value): Remove 'const' from the
1336 type of parameter 'name'.
1337 (varobj_add_child): Likewise.
1338 (install_dynamic_child): Remove 'const' from the type of
1340 (varobj_add_child): Likewise.
1341 (create_child_with_value): Likewise. Update comments. Don't
1343 (update_dynamic_varobj_children): Duplicate 'name'
1344 and pass it to install_dynamic_child.
1346 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1348 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1349 conversion logic to occur after PyLong_Check. Comment on order
1350 change significance.
1351 * python/py-arch.c (archpy_disassemble): Comment on order of
1352 conversion for integers and longs.
1354 2013-10-03 Pedro Alves <palves@redhat.com>
1356 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1357 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1358 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1359 PTRACE_O_TRACEFORK is not supported.
1360 (linux_test_for_tracesysgood): New function.
1361 (linux_test_for_tracefork): New function, factored out from
1362 linux_check_ptrace_features, and also don't kill child_pid here.
1364 2013-10-03 Tristan Gingold <gingold@adacore.com>
1366 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1367 Remove verbose error reporting. Use detected state to
1368 thread_set_state call.
1369 (i386_darwin_dr_get): Fix return type. Remove verbose error
1371 Remove trailing spaces.
1373 2013-10-02 Pedro Alves <palves@redhat.com>
1375 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1376 val_print_optimized_out.
1377 * jv-valprint.c (java_print_value_fields): Likewise.
1378 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1379 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1380 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1381 new optimized out value.
1382 * findvar.c (address_from_register): Likewise.
1383 * frame.c (put_frame_register): Tweak error string to say the
1384 register was not saved, rather than optimized out.
1385 * infcmd.c (default_print_one_register_info): Adjust call to
1386 val_print_optimized_out. Use value_of_register instead of
1387 get_frame_register_value.
1388 * mi/mi-main.c (output_register): Use value_of_register instead of
1389 get_frame_register_value.
1390 * valprint.c (valprint_check_validity): Likewise.
1391 (val_print_optimized_out): New value parameter. If the value is
1392 lval_register, print <not saved> instead.
1393 (value_check_printable, val_print_scalar_formatted): Adjust calls
1394 to val_print_optimized_out.
1395 * valprint.h (val_print_optimized_out): New value parameter.
1396 * value.c (struct value) <optimized_out>: Extend comment.
1397 (error_value_optimized_out): New function.
1398 (require_not_optimized_out): Use it. Use a different string for
1399 lval_register values.
1400 * value.h (error_value_optimized_out): New declaration.
1401 * NEWS: Mention <not saved>.
1403 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1405 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1406 strcmp to compare two symtab filenames.
1408 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1410 * symtab.c (search_symbols_equal): Delete.
1411 (sort_search_symbols_remove_dups): Replace call to
1412 search_symbols_equal by call to compare_search_syms,
1413 adjusting as necessary.
1415 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1418 * python/python.c: Document gdb.execute command in Python help.
1420 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1422 * python/py-frame.c (frame_info_to_frame_object): Use
1423 gdbpy_convert_exception. Clean up Python object on failure.
1425 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1427 * python/lib/gdb/command/frame_filters.py
1428 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1429 (ShowFrameFilterPriority.invoke): Ditto.
1431 2013-10-01 Keith Seitz <keiths@redhat.com>
1433 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1434 (parse_linespec): Make 'argptr' const.
1435 Remove temporary cast of 'argptr' to const char **.
1436 (decode_line_full): Pass const pointer to parse_linespec.
1437 (decode_line_1): Likewise.
1438 (decode_objc): Make local variable 'new_argptr' const.
1439 (find_function_symbols): Remove temporary cast to char *
1441 * objc-lang.c (find_imps): Make argument 'method' const.
1443 * objc-lang.h (find_imps): Likewise.
1445 2013-10-01 Keith Seitz <keiths@redhat.com>
1447 * completer.c (skip_quoted_chars): Make all arguments const.
1449 (skip_quoted): Likewise.
1450 * completer.h (skip_quoted_chars): Likewise.
1451 (skip_quoted): Likewise.
1452 * defs.h (skip_quoted): Remove duplicate declaration.
1453 * jv-exp.y: Include completer.h.
1454 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1455 * p-exp.y: Include completer.h.
1457 2013-10-01 Keith Seitz <keiths@redhat.com>
1459 * c-exp.y (parse_number): Make first argument const.
1460 Make a copy of the input to manipulate.
1461 (c_parse_escape): Make first argument const.
1462 Make local variable 'tokptr' const.
1463 (parse_string_or_char): Make first two arguments const.
1464 (macro_original_text): Make const.
1465 (lex_one_token): Make local variable 'tokstart' const.
1466 Likewise for local variables named 'p'.
1467 Cast away const for struct stoken (temporary).
1468 * c-lang.h (c_parse_escpae): Make first argument const.
1469 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1471 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1473 * f-exp.y (parse_number): Make first argument const.
1474 (match_string_literal): Make local variable 'tokstart'
1476 (yylex): Make local variable 'p' const.
1477 Cast away const for struct stoken (temporary).
1478 * go-exp.y (parse_number): Make first argument const.
1479 (parse_string_or_char): Likewise.
1480 Make local variable 'tokstart' const.
1481 (lex_one_token): Likewise for numerous locals called 'p'.
1482 Cast away const for struct stoken (temporary).
1483 * jv-exp.y (parse_number): Make first argument const.
1484 Make local variables 'tokstart' and 'tokptr' const.
1485 Cast away const for call to skip_quoted (temporary).
1486 (yylex): Make local variable 'p' const.
1487 Cast away const for struct stoken (temporary).
1488 * m2-exp.y (parse_number): Make local variable 'p' const.
1489 (yylex): Likewise for 'tokstart'.
1490 Cast away const for struct stoken (temporary).
1491 Make local variable 'p' const.
1492 * macroexp.c (get_character_constant): Pass a const string
1494 (get_string_literal): Likewise.
1495 (macro_expand_next): Make first argument const.
1496 Cast away const for init_shared_buffer.
1497 * macroexp.h (macro_expand_next): Make first argument const.
1498 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1499 Pass a const string to c_parse_escape.
1500 Make local variables 'p' and 'namestart' const.
1501 * parse.c (lexptr): Make const.
1502 (prev_lexptr): Likewise.
1503 (find_template_name_end): Return const.
1504 Make argument const, too.
1505 (parse_exp_in_context): Make first argument const.
1506 Remove the entire const_hack.
1507 (parse_exp_in_context_1): Make first argument const.
1508 * parser-defs.h (find_template_name_end): Return const.
1509 Make argument const, too.
1510 (lexptr): Make const.
1511 (prev_lexptr): Likewise.
1512 * utils.c (parse_escape): Make second argument const.
1513 * utils.h (parse_escape): Likewise.
1515 2013-10-01 Keith Seitz <keiths@redhat.com>
1517 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1519 (block_lookup): Make 'raw_name' and 'name' const.
1520 * ada-lex.l (processString): Update for struct stoken.ptr.
1521 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1522 (operator_stoken): Likewise.
1523 (lex_one_token): Remove temporary cast to char * for
1525 * f-exp.y (yylex): Likewise.
1526 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1527 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1528 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1530 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1531 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1532 * linespec.c (struct ls_parser): Make 'stream' const.
1533 (find_parameter_list_end): Make argument 'input' and local
1535 (linespec_lexer_lex_string): Make local variables 'start' and
1537 Use skip_spaces_const instead of skip_spaces.
1538 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1540 (parse_linespec): Temporarily cast 'argptr' to const for
1541 'parser->lexer.stream'.
1542 * m2-exp.y (yylex): Remove temporary cast to char * for
1544 * objc-lang.c (add_msglist): Make local variable 'p' const.
1545 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1546 (exp : STRING): Make 'sp' const.
1547 (parse_number): Make argument 'p' const.
1548 * parser-defs.h (struct stoken): Make 'ptr' const.
1550 2013-10-01 Doug Evans <dje@google.com>
1552 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1554 2013-10-01 Yao Qi <yao@codesourcery.com>
1556 * varobj.c (c_value_of_root): Remove declaration.
1557 (cplus_value_of_root, java_value_of_root): Likewise.
1558 (ada_value_of_root): Likewise.
1559 (struct language_specific) <value_of_root>: Remove.
1560 (languages): Update initialization.
1561 (check_scope): Move earlier.
1562 (c_value_of_root): Move earlier and rename to ...
1563 (value_of_root_1): ... this.
1564 (value_of_root): Caller update.
1565 (cplus_value_of_root, java_value_of_root): Remove.
1566 (ada_value_of_root): Remove.
1568 2013-10-01 Yao Qi <yao@codesourcery.com>
1570 * varobj.c (varobj_format_string): Remove "unknown".
1571 (languages): Remove the first element.
1572 * varobj.h (enum varobj_languages): Remove vlang_c.
1574 2013-10-01 Yao Qi <yao@codesourcery.com>
1576 * varobj.c (struct language_specific) <language>: Remove.
1577 (languages): Update the initialization.
1579 2013-10-01 Yao Qi <yao@codesourcery.com>
1581 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1582 "solib-target.h". Include "windows-tdep.h".
1583 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1584 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1585 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1586 windows-tdep.o to gdb_target_obs.
1588 2013-10-01 Yao Qi <yao@codesourcery.com>
1590 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1592 (amd64_windows_init_abi): Don't call set_solib_ops and
1593 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1594 windows_init_abi instead.
1595 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1597 (i386_cygwin_init_abi): Don't call set_solib_ops,
1598 set_gdbarch_has_dos_based_file_system and
1599 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1600 windows_init_abi instead.
1601 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1602 (windows_init_abi): New function.
1603 (windows_iterate_over_objfiles_in_search_order): Make it
1605 * windows-tdep.h (windows_init_abi): Declare.
1606 (windows_iterate_over_objfiles_in_search_order): Remove
1609 2013-10-01 Jerome Guitton <guitton@adacore.com>
1611 Checked in by Joel Brobecker <brobecker@adacore.com>
1612 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1613 incomplete dictionnary instead of None in case of missing
1614 environment variables.
1615 (elinos_init): in case of an incomplete environment, best
1616 effort to load system libraries instead of abort.
1618 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1620 * ada-lang.c (ada_has_this_exception_support): Ignore
1621 mst_solib_trampoline minimal symbols.
1623 2013-09-30 Tristan Gingold <gingold@adacore.com>
1625 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1626 hardware watchpoint.
1627 (i386_darwin_dr_set): Support 32 and 64 bit states.
1628 (i386_darwin_dr_get): Likewise.
1629 (i386_darwin_dr_set_control): Make static.
1630 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1631 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1633 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1635 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1636 Replace TIDGET with ptid_get_lwp.
1637 Replace GET_LWP with ptid_get_lwp.
1638 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1639 Replace BUILD_THREAD with ptid_build.
1640 Replace BUILD_LWP with ptid_build.
1641 Replace PIDGET with ptid_get_pid.
1642 Replace TIDGET with ptid_get_lwp.
1643 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1644 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1645 Replace TIDGET with ptid_get_lwp.
1646 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1647 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1648 Replace TIDGET with ptid_get_lwp.
1649 Replace GET_LWP with ptid_get_lwp.
1650 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1652 * breakpoint.c: Likewise.
1653 * common/ptid.c (ptid_is_pid): Condense check for
1654 null_ptid and minus_one_ptid.
1655 (ptid_lwp_p): New function.
1656 (ptid_tid_p): New function.
1657 * common/ptid.h: Update comments for accessors.
1658 (ptid_lwp_p): New prototype.
1659 (ptid_tid_p): New prototype.
1660 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1661 * gcore.c: Replace PIDGET with ptid_get_pid.
1662 * gdbthread.h: Likewise.
1663 * gnu-nat.c: Likewise.
1664 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1665 Replace TIDGET with ptid_get_lwp.
1666 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1667 * hppanbsd-nat.c: Likewise.
1668 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1669 Replace TIDGET with ptid_get_lwp.
1670 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1671 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1672 * infcmd.c: Likewise.
1673 * inferior.h: Likewise.
1674 * inflow.c: Likewise.
1675 * infrun.c: Likewise.
1676 * linux-fork.c: Likewise.
1677 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1678 Replace GET_PID with ptid_get_pid.
1679 Replace is_lwp with ptid_lwp_p.
1680 Replace GET_LWP with ptid_get_lwp.
1681 Replace BUILD_LWP with ptid_build.
1683 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1685 * common/linux-btrace.c: Move sys/syscall.h out of the
1686 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1687 Also check for SYS_perf_event_open before attempting to buid.
1689 2013-09-27 Doug Evans <dje@google.com>
1691 * dwarf2read.c (dwarf2_section_info): Add comment.
1692 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1694 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1695 (dwarf2_read_section): Delete unused local "header". Add section
1696 name to error message.
1697 (create_dwo_in_dwp): Tweak comment.
1698 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1700 * dwarf2read.c (die_reader_specs): Tweak comment.
1701 (get_section_bfd_owner, get_section_bfd_section): New functions.
1702 (get_section_name, get_section_file_name): New functions.
1703 (get_section_id, get_section_flags): New functions.
1704 (*): Use new functions to access section fields.
1706 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1707 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1708 arg "htab". All callers updated.
1709 (create_debug_types_hash_table): Remove redundant copy of
1711 (create_dwo_in_dwp): Tweak comments.
1712 (read_str_index): Tweak comment. Record dwarf form name in static
1715 2013-09-27 Pedro Alves <palves@redhat.com>
1717 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1718 (remote_filename_p): Add comment.
1719 * remote.c (remote_filename_p): Adjust to use
1720 REMOTE_SYSROOT_PREFIX.
1721 * solib.c (solib_find): When deciding whether we need to add a
1722 directory separator, check whether the sysroot is "remote:"
1723 instead of checking whether the patch has a drive spec. Add
1726 2013-09-27 Pedro Alves <palves@redhat.com>
1728 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1730 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1733 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 Fix set debug frame output.
1736 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1737 SENTINEL_FRAME entry lower to match enum frame_type order.
1739 2013-09-26 Pierre Muller <muller@sourceware.org>
1741 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1742 AMD64_R15_REGNUM when a register index is expected.
1743 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1744 Substitute in array.
1745 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1746 (amd64_push_arguments): Substitute in integer_regnum array.
1748 2013-09-25 Doug Evans <dje@google.com>
1750 * objfiles.c (allocate_objfile): Move comment to better place.
1752 New option "set debug symfile on".
1753 * NEWS: Mention "set debug symfile".
1754 * Makefile.in (SFILES): Add symfile-debug.c.
1755 (COMMON_OBS): Add symfile-debug.o.
1756 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1757 objfile's symbol functions.
1758 * objfiles.h (objfile_set_sym_fns): Declare.
1759 * symfile-debug.c: New file.
1760 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1761 objfile's symbol functions.
1762 (reread_symbols): Ditto.
1764 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1766 (add_symtab_fns): Update prototype.
1767 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1768 (registered_sym_fns): ... this.
1769 (symtab_fns): Update.
1770 (add_symtab_fns): New arg "flavour". All callers updated.
1771 (find_sym_fns): Rewrite to use new sym_fns registry.
1773 * symfile.h (struct sym_fns): Add "objfile" argument to
1774 sym_read_linetable. All uses updated.
1776 * symtab.c (domain_name, search_domain_name): New functions.
1777 * symtab.h (domain_name, search_domain_name): Declare.
1779 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1780 map_matching_symbols so objfile is first. All uses updated.
1781 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1782 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1784 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1787 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1790 2013-09-24 Doug Evans <dje@google.com>
1792 * objfiles.c (free_objfile): Move comment.
1794 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1796 * ada-exp.y (string_to_operator): Delete.
1797 (dummy_string_to_ada_operator): Delete.
1799 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1802 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1804 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1805 call_dummy_integer_regs, and classify.
1806 * amd64-tdep.h (amd64_classify): Add declaration.
1807 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1808 (amd64_reg_class): Delete, moved to i386-tdep.h.
1809 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1810 Replace call to amd64_classify by call to tdep->classify.
1811 (amd64_push_arguments): Get the list of registers to use for
1812 passing integer parameters from the gdbarch tdep structure,
1813 rather than using a hardcoded one. Replace calls to amd64_classify
1814 by calls to tdep->classify.
1815 (amd64_push_dummy_call): Get the register number used for
1816 the "hidden" argument from tdep->call_dummy_integer_regs.
1817 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1818 and tdep->call_dummy_integer_regs. Set tdep->classify.
1820 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1823 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1824 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1825 where tdep->memory_args_by_pointer is non-zero.
1827 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1830 * i386-tdep.h (struct gdbarch_tdep): Add new field
1831 integer_param_regs_saved_in_caller_frame.
1832 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1833 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1835 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1837 * amd64-windows-tdep.c: #include "value.h"
1838 (amd64_windows_classify): Delete.
1839 (amd64_windows_passed_by_integer_register)
1840 (amd64_windows_passed_by_xmm_register)
1841 (amd64_windows_passed_by_pointer)
1842 (amd64_windows_adjust_args_passed_by_pointer)
1843 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1844 (amd64_windows_push_dummy_call): New functions.
1845 (amd64_windows_init_abi): Remove setting of
1846 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1847 tdep->classify, tdep->memory_args_by_pointer and
1848 tdep->integer_param_regs_saved_in_caller_frame.
1849 Add call to set_gdbarch_push_dummy_call.
1851 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1853 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1854 objfile->original_name.
1856 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 Pass down original filename for objfile.
1859 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1860 * elfread.c (elf_symfile_read): Likewise.
1861 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1862 longer set ORIGINAL_NAME.
1863 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1864 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1865 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1866 symbol_file_add_from_bfd call.
1867 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1868 (macho_check_dsym): Add parameter filenamep. Change function comment.
1870 (macho_symfile_read): New variable dsym_filename. Update
1871 macho_check_dsym call. Use it for symbol_file_add_separate.
1872 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1873 it. Use it for objfile->original_name.
1874 (objfile_name): Return OBFD's filename, if available.
1875 * objfiles.h (allocate_objfile): Add new parameter name.
1876 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1877 * symfile-mem.c (symbol_file_add_from_memory): Update
1878 symbol_file_add_from_bfd call.
1879 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1881 (symbol_file_add_with_addrs): New parameter name, add function comment
1882 for it. Remove variable name. Update allocate_objfile call.
1883 (symbol_file_add_separate): New parameter name, add function comment
1884 for it. Update symbol_file_add_with_addrs call.
1885 (symbol_file_add_from_bfd): New parameter name. Update
1886 symbol_file_add_with_addrs call.
1887 (symbol_file_add): Update symbol_file_add_from_bfd call.
1888 (reread_symbols): New variable original_name. Save
1889 objfile->original_name by it.
1890 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1893 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 Code cleanup: Add objfile_name accessor function.
1896 * ada-lang.c (is_known_support_routine): Use objfile_name.
1897 * auto-load.c (source_gdb_script_for_objfile)
1898 (auto_load_objfile_script): Likewise.
1899 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1900 * dbxread.c (dbx_symfile_read): Likewise.
1901 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1902 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1903 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1904 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1905 (lookup_dwp_signatured_type, lookup_dwo_unit)
1906 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1907 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1908 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1909 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1910 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1911 (read_subrange_type, load_partial_dies, read_partial_die)
1912 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1913 (die_containing_type, build_error_marker_type, lookup_die_type)
1914 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1915 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1916 (get_DW_AT_signature_type, write_psymtabs_to_index)
1917 (save_gdb_index_command): Likewise.
1918 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1920 * expprint.c (dump_subexp_body_standard): Likewise.
1921 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1922 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1924 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1925 obj_name, use objfile_name for it, use the variable.
1926 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1928 * machoread.c (macho_symtab_read, macho_check_dsym)
1929 (macho_symfile_relocate): Likewise.
1930 * maint.c (maintenance_translate_address): Likewise.
1931 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1932 * minsyms.c (install_minimal_symbols): Likewise.
1933 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1935 (filter_overlapping_sections): Use objfile_name.
1936 (objfile_name): New function.
1937 * objfiles.h (struct objfile): Rename field name to original_name.
1938 (objfile_name): New prototype.
1939 * printcmd.c (sym_info, address_info): Use objfile_name.
1940 * probe.c (parse_probes, collect_probes, compare_probes)
1941 (info_probes_for_ops): Likewise.
1942 * progspace.c (clone_program_space): Likewise.
1943 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1944 (maintenance_info_psymtabs): Likewise.
1945 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1946 (source_section_scripts): Likewise.
1947 * python/py-objfile.c (objfpy_get_filename): Likewise.
1948 * python/py-progspace.c (pspy_get_filename): Likewise.
1949 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1950 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1951 * solib.c (solib_read_symbols): Likewise.
1952 * stabsread.c (scan_file_globals): Likewise.
1953 * stap-probe.c (handle_stap_probe): Likewise.
1954 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1955 (find_separate_debug_file_by_debuglink): Likewise.
1956 (reread_symbols): Likewise. Use the objfile field name renamed to
1958 (allocate_symtab): Use objfile_name.
1959 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1960 (dump_objfile, dump_msymbols, dump_symtab_1)
1961 (maintenance_print_msymbols, maintenance_print_objfiles)
1962 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1963 * target.c (target_translate_tls_address, target_info): Likewise.
1964 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1967 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 * probe.c (parse_probes): Rename variable objfile_name to
1973 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 Remove solib-sunos.c.
1976 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1977 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1978 * objfiles.c (rt_common_objfile): Remove.
1979 (free_objfile): Remove rt_common_objfile comparison.
1980 * objfiles.h (rt_common_objfile): Remove.
1981 * solib-sunos.c: Remove.
1982 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1984 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Remove a.out NetBSD and OpenBSD hosts.
1987 * NEWS (Removed native configurations): New.
1988 * config/arm/nbsdaout.mh: Remove.
1989 * config/i386/nbsdaout.mh: Remove.
1990 * config/i386/obsdaout.mh: Remove.
1991 * config/m68k/nbsdaout.mh: Remove.
1992 * config/sparc/nbsdaout.mh: Remove.
1993 * config/vax/nbsdaout.mh: Remove.
1994 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1995 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1996 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1998 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1999 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2000 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2002 2013-09-23 Tom Tromey <tromey@redhat.com>
2004 * linespec.c (struct minsym_and_objfile): Remove.
2005 (minsym_and_objfile_d): Remove.
2006 (struct linespec, struct collect_info, linespec_parse_basic)
2007 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2008 (compare_msymbols, find_method, find_function_symbols)
2009 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2010 (add_minsym, search_minsyms_for_name): Update.
2012 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2014 * regcache.c: Add include of valprint.h.
2015 (dump_endian_bytes): Delete.
2016 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2018 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2020 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2022 2013-09-19 Pedro Alves <palves@redhat.com>
2024 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2027 2013-09-19 Pedro Alves <palves@redhat.com>
2028 Thomas Schwinge <thomas@codesourcery.com>
2029 Yue Lu <hacklu.newborn@gmail.com>
2031 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2032 Take a gdb_byte pointer instead of a char pointer.
2034 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2035 gnu_xfer_partial helper.
2036 (gnu_xfer_partial): New function.
2037 (gnu_target): Don't install a deprecated_xfer_memory hook.
2038 Install a to_xfer_partial hook.
2040 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2043 * main.c (captured_main): Replace catch_command_errors by
2044 catch_command_errors_const. Twice.
2045 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2046 (symbol_file_add): Make name parameter const.
2047 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2048 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2049 variable name. Change their usage accordingly.
2050 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2052 (symbol_file_add_main): Make args parameter const.
2054 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2055 Ulrich Weigand <uweigand@de.ibm.com>
2057 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2059 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2061 2013-09-18 Pedro Alves <palves@redhat.com>
2062 Yue Lu <hacklu.newborn@gmail.com>
2064 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2065 (gnu_create_inferior)
2066 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2067 (set_sig_thread_cmd): Use the lwpid field of ptids to
2068 store/extract thread ids instead of the tid field.
2069 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2071 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2073 * infcmd.c (default_print_one_register_info): Add detection of
2074 optimized out values.
2075 (default_print_registers_info): Switch to using
2076 get_frame_register_value.
2078 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2080 * infrun.c (handle_inferior_event): Check if we know the
2081 function start address before setting a resume breakpoint.
2083 2013-09-18 Pedro Alves <palves@redhat.com>
2085 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2086 minus_one_ptid instead of looking at the ptid's tid field and
2087 comparing that to -1.
2089 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2091 * main.h (get_gdb_program_name): Remove extra whitespace.
2093 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2095 * main.h (get_gdb_program_name): Add declaration.
2096 * main.c (get_gdb_program_name): Add definition.
2098 2013-09-17 Doug Evans <dje@google.com>
2100 * dwarf2read.c: Move definitions of complaint functions to after
2101 forward declarations of local functions.
2103 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2104 Pedro Alves <palves@redhat.com>
2107 * breakpoint.c (remove_threaded_breakpoints): New function.
2108 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2109 as thread_exit observer.
2111 2013-09-17 Pedro Alves <palves@redhat.com>
2114 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2115 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2116 * corelow.c (core_open):
2117 * frame.h (print_stack_frame, print_frame_info): New
2118 'set_current_sal' parameter.
2119 * infcmd.c (finish_command, kill_command): Adjust call to
2121 * inferior.c (inferior_command): Likewise.
2122 * infrun.c (normal_stop): Likewise.
2123 * linux-fork.c (linux_fork_context): Likewise.
2124 * record-full.c (record_full_goto_entry, record_full_restore):
2126 * remote-mips.c (common_open): Likewise.
2127 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2129 (print_frame_info): New 'set_current_sal' parameter. Set the last
2130 displayed sal depending on the new paremeter instead of looking at
2132 (backtrace_command_1, select_and_print_frame, frame_command)
2133 (current_frame_command, up_command, down_command): Adjust call to
2135 * thread.c (print_thread_info, restore_selected_frame)
2136 (do_captured_thread_select): Adjust call to print_stack_frame.
2137 * tracepoint.c (tfind_1): Likewise.
2138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2139 (mi_cmd_stack_info_frame): Likewise.
2140 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2141 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2143 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2145 * value.c (isvoid_internal_fn): Replace "parameter" with
2148 2013-09-16 Stan Shebs <stan@codesourcery.com>
2150 * README: Update references to writing code for GDB.
2151 * configure.ac (build_warnings): Remove obsolete comment.
2152 * configure: Regenerate.
2153 * gdbarch.sh: Remove references to gdbint.texinfo.
2154 * gdbarch.h: Regenerate.
2155 * gdbtypes.c (objfile_type): Remove comments referencing internals
2158 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2160 * NEWS: Mention new convenience function $_isvoid.
2161 * value.c (isvoid_internal_fn): New function.
2162 (_initialize_values): Add new convenience function $_isvoid.
2164 2013-09-16 Pierre Muller <muller@sourceware.org>
2166 * arm-linux-tdep.c: Add "elf/common.h" header.
2167 Remove AT_HWCAP macro definintion as it is provided in
2169 * s390-tdep.c: Remove system header <elf.h>
2170 Add "elf/common.h" header for AT_HWCAP definition.
2171 (s390_core_read_description): Use correct CORE_ADDR
2172 for hwcap local variable used as third parameter
2173 of function target_auxv_search.
2175 2013-09-14 Pierre Muller <muller@sourceware.org>
2176 Tom Tromey <tromey@redhat.com>
2177 Pedro Alves <palves@redhat.com>
2179 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2180 mode if operating system doesn't know O_CLOEXEC.
2182 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2188 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2190 * NEWS: Mention TDB support.
2191 * features/s390-tdb.xml: New file.
2192 * features/s390-te-linux64.xml: New file.
2193 * features/s390x-te-linux64.xml: New file.
2194 * features/Makefile (WHICH): Add new tdescs above.
2195 (s390-te-linux64-expedite): Set.
2196 (s390x-te-linux64-expedite): Set.
2197 * features/s390-te-linux64.c: New file (generated).
2198 * features/s390x-te-linux64.c: New file (generated).
2199 * regformats/s390-te-linux64.dat: New file (generated).
2200 * regformats/s390x-te-linux64.dat: New file (generated).
2201 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2202 (HWCAP_S390_TE): Likewise.
2203 (S390_TDB_DWORD0_REGNUM): Likewise.
2204 (S390_TDB_DWORD0_REGNUM): Likewise.
2205 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2206 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2207 (S390_TDB_ATIA_REGNUM): Likewise.
2208 (S390_TDB_R0_REGNUM): Likewise.
2209 (S390_TDB_R1_REGNUM): Likewise.
2210 (S390_TDB_R2_REGNUM): Likewise.
2211 (S390_TDB_R3_REGNUM): Likewise.
2212 (S390_TDB_R4_REGNUM): Likewise.
2213 (S390_TDB_R5_REGNUM): Likewise.
2214 (S390_TDB_R6_REGNUM): Likewise.
2215 (S390_TDB_R7_REGNUM): Likewise.
2216 (S390_TDB_R8_REGNUM): Likewise.
2217 (S390_TDB_R9_REGNUM): Likewise.
2218 (S390_TDB_R10_REGNUM): Likewise.
2219 (S390_TDB_R11_REGNUM): Likewise.
2220 (S390_TDB_R12_REGNUM): Likewise.
2221 (S390_TDB_R13_REGNUM): Likewise.
2222 (S390_TDB_R14_REGNUM): Likewise.
2223 (S390_TDB_R15_REGNUM): Likewise.
2224 (S390_NUM_REGS): Increase.
2225 (S390_IS_TDBREGSET_REGNUM): New macro.
2226 (s390_regmap_tdb): Declare.
2227 (s390_sizeof_tdbregset): Define.
2228 (tdesc_s390_te_linux64): Declare.
2229 (tdesc_s390x_te_linux64): Likewise.
2230 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2231 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2232 (s390_regmap_tdb): New regmap.
2233 (s390_supply_tdb_regset): New function.
2234 (s390_tdb_regset): New regset.
2235 (s390_linux64v2_regset_sections): Add TDB regset to list.
2236 (s390x_linux64v2_regset_sections): Likewise.
2237 (s390_regset_from_core_section): Recognize TDB core note section.
2238 (s390_core_read_description): If HWCAP indicates TE support,
2239 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2240 (s390_gdbarch_init): Handle TDB regset.
2241 (_initialize_s390_tdep): Initialize new tdescs.
2242 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2243 (have_regset_tdb): New variable.
2244 (s390_native_supply): Support register invalidation.
2245 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2246 (check_regset): Treat ENODATA as "regset exists".
2247 (s390_linux_fetch_inferior_registers): Add TDB.
2248 (s390_read_description): Check for TDB existence and select
2250 * gdbserver/Makefile.in (clean): Add removal of new makefile
2252 (s390-te-linux64.c): New makefile target.
2253 (s390x-te-linux64.c): Likewise.
2254 * gdbserver/configure.srv (srv_regobj): Append new objects
2255 s390-te-linux64.o and s390x-te-linux64.o.
2256 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2257 s390x-te-linux64.xml, and s390-tdb.xml.
2258 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2260 (tdesc_s390_te_linux64): Likewise.
2261 (init_registers_s390x_te_linux64): Likewise.
2262 (tdesc_s390x_te_linux64): Likewise.
2263 (s390_check_regset): Treat ENODATA as "regset exists".
2264 (s390_arch_setup): Add TDB regset support.
2265 (initialize_low_arch): Initialize registers for new tdescs.
2267 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2269 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2270 (S390_IS_FPREGSET_REGNUM): New macro.
2271 * s390-tdep.c (s390_dwarf_regmap): Make const.
2272 (regnum_is_gpr_full): New function for replacing repeated code.
2273 (s390_pseudo_register_name): Use it.
2274 (s390_pseudo_register_type): Likewise.
2275 (s390_pseudo_register_read): Likewise.
2276 (s390_pseudo_register_write): Likewise.
2277 (s390_unwind_pseudo_register): Likewise.
2278 (s390_regmap_gregset): New format for regmap.
2279 (s390x_regmap_gregset): Likewise.
2280 (s390_regmap_fpregset): Likewise.
2281 (s390_regmap_upper): Likewise.
2282 (s390_regmap_last_break): Likewise.
2283 (s390_regmap_system_call): Likewise.
2284 (s390_supply_regset): Adjust to new regmap format.
2285 (s390_collect_regset): Likewise.
2286 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2287 (s390_native_collect): Likewise.
2288 (supply_gregset): Likewise.
2289 (fill_gregset): Likewise.
2290 (supply_fpregset): Likewise.
2291 (fill_fpregset): Likewise.
2292 (fetch_regset): Likewise.
2293 (store_regset): Likewise.
2294 (s390_linux_fetch_inferior_registers): Likewise.
2295 (s390_linux_fetch_inferior_registers): Likewise.
2297 2013-09-12 Andrew Pinski <apinski@cavium.com>
2299 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2301 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2303 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2305 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2307 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2309 2013-09-06 Pedro Alves <palves@redhat.com>
2311 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2312 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2313 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2314 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2315 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2318 2013-09-06 Pedro Alves <palves@redhat.com>
2320 * remote-sim.c (dump_mem): Constify buf parameter.
2321 gdbsim_xfer_inferior_memory): Rename to ...
2322 (gdbsim_xfer_memory): ... this. Adjust interface as
2323 target_xfer_partial helper.
2324 (gdbsim_xfer_partial): New function.
2325 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2326 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2328 2013-09-06 Pedro Alves <palves@redhat.com>
2330 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2331 host_address_to_string, and send debug output to gdb_stdlog.
2333 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2335 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2336 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2337 gdb_target_obs for cris target.
2338 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2339 (cris_gdbarch_init): Move calls to
2340 set_gdbarch_fetch_tls_load_module_address and
2341 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2342 Add call to gdbarch_init_osabi.
2343 * cris-linux-tdep.c: New file.
2344 * cris-tdep.h: New file.
2346 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2348 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2349 to deprecated_init_ui_hook.
2351 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2353 * cli/cli-interp.c (_initialize_cli_interp): Add a
2354 command_loop_proc to interp_procs.
2355 * event-top.c (cli_command_loop): Change signature to match
2356 interp_command_loop_ftype.
2357 * event-top.h (cli_command_loop): Same.
2358 * interps.c (interp_new): Require every interpreter to have a
2360 (current_interp_command_loop): Just call the command_loop_proc on
2361 the current interpreter.
2362 * tui/tui-interp.c (_initialize_tui_interp): Add a
2363 command_loop_proc to interp_procs.
2365 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2367 * cris-tdep.c (cris_gdbarch_init): Add call to
2368 get_gdbarch_fetch_tls_load_module_address.
2370 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2372 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2373 (cris_elf_gregset_t): Rename from elf_gregset_t.
2374 (crisv32_elf_gregset_t): Adjust.
2375 (cris_supply_gregset, fetch_core_registers): Adjust.
2377 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2379 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2381 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2383 * defs.h (deprecated_command_loop_hook): Remove, including
2384 references in comments.
2385 * interps.c (current_interp_command_loop): No longer use
2386 deprecated_command_loop_hook.
2387 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2389 * top.c (deprecated_command_loop_hook): Remove.
2391 2013-09-05 Pedro Alves <palves@redhat.com>
2393 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2394 local is now int instead of ULONGEST. Print it with %d
2395 instead of paddress.
2397 2013-09-05 Tristan Gingold <gingold@adacore.com>
2399 * MAINTAINERS: Remove avr maintainership.
2401 2013-09-05 Pedro Alves <palves@redhat.com>
2403 * findvar.c (value_of_register): Rework in terms of
2404 value_of_register_lazy.
2406 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2408 * symfile.c (add_symbol_file_command): Remove trailing
2409 whitespaces and blank line after comment.
2411 2013-09-05 Pedro Alves <palves@redhat.com>
2413 * tui/tui-regs.c (tui_register_format): Don't look at the
2414 register's name here. Return string representing register
2415 value instead of storing it in the data element.
2416 (tui_get_register): Compare register string representations
2417 instead of register value states and contents.
2419 2013-09-05 Pedro Alves <palves@redhat.com>
2422 * tui/tui-regs.c (tui_show_registers): Show registers of the
2423 selected frame, not the current frame.
2425 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2427 * MAINTAINERS (Write After Approval): Add myself to the list.
2429 2013-09-04 Doug Evans <dje@google.com>
2431 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2432 (queue_and_load_dwo_tu): New function.
2433 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2434 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2435 Make dependent_cu optional.
2436 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2437 and an older .gdb_index is in use, queue and load all its TUs too.
2439 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2441 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2442 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2443 variable search_flags.
2444 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2445 (OPF_RETURN_REALPATH): ... here.
2446 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2447 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2449 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2451 * solib.c (solib_find): Likewise. Four times.
2452 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2453 in the function comment and for the realpath_fptr variable.
2454 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2455 (find_and_open_source): Likewise. Twice.
2456 * symfile.c (symfile_bfd_open): Likewise, also twice.
2458 2013-09-04 Doug Evans <dje@google.com>
2460 * progspace.c (save_current_space_and_thread): Remove unnecessary
2461 call to save_current_inferior.
2463 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2465 * sh64-tdep.c (sh64_do_register): Return after printing message
2466 about unavailable register contents.
2468 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2469 Pedro Alves <palves@redhat.com>
2471 * symfile.c (add_symbol_file_command): Error out on unknown
2472 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2473 options and collapse into single conditional branch.
2475 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2477 * inf-child.c (inf_child_follow_fork): New parameter
2479 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2480 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2481 * inferior.h (detach_fork): Remove.
2482 * infrun.c (detach_fork): Adjust comment and make it
2484 (follow_fork): Pass detach_fork parameter to
2486 * linux-nat.c (linux_child_follow_fork): New parameter
2488 * target.c (target_follow_fork): New parameter detach_fork.
2489 Pass detach_fork as parameter and print its value.
2490 * target.h (struct target_ops) <to_follow_fork>: New int
2492 (target_follow_fork): New parameter detach_fork.
2494 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2496 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2497 Replace sec->bfd by sec->the_bfd_section->owner.
2499 2013-09-03 Yao Qi <yao@codesourcery.com>
2501 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2502 from linux_has_shared_address_space.
2503 (linux_has_shared_address_space): Call linux_is_uclinux.
2504 * linux-tdep.h (linux_is_uclinux): Declare.
2505 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2508 2013-09-03 Yao Qi <yao@codesourcery.com>
2510 * config/djgpp/fnchange.lst: Remove entry of
2511 i386-interix-nat.c and i386-interix-tdep.c.
2512 * configure.ac: Remove '*-*-interix*'.
2513 * configure: Re-generated.
2514 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2515 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2517 * osabi.c (gdb_osabi_names): Remove "Interix".
2519 2013-09-03 Yao Qi <yao@codesourcery.com>
2521 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2523 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2525 * record.h (record_print_flag) <record_print_src_line,
2526 record_print_insn_range>: Rename into ...
2527 (record_print_flag) <record_print_src_line,
2528 record_print_insn_range>: ... this. Update all users.
2530 2013-09-02 Pierre Muller <muller@sourceware.org>
2532 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2535 2013-09-02 Pierre Muller <muller@sourceware.org>
2537 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2538 by use of plongest function.
2540 2013-09-02 Tristan Gingold <gingold@adacore.com>
2542 * NEWS: Add entry mentioning support for native Windows x64
2545 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2546 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2547 (struct amd64_windows_frame_cache): New struct.
2548 (amd64_windows_w2gdb_regnum): New global.
2549 (pc_in_range, amd64_windows_frame_decode_epilogue)
2550 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2551 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2552 (amd64_windows_frame_this_id): New functions.
2553 (amd64_windows_frame_unwind): New static global.
2554 (amd64_windows_skip_prologue): New function.
2555 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2556 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2557 with amd64_windows_skip_prologue.
2559 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2563 2013-08-30 Pedro Alves <palves@redhat.com>
2565 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2568 2013-08-30 Pedro Alves <palves@redhat.com>
2570 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2573 2013-08-30 Pedro Alves <palves@redhat.com>
2575 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2576 Adjust arguments to print_stack_frame.
2578 2013-08-30 Pedro Alves <palves@redhat.com>
2580 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2582 2013-08-30 Pedro Alves <palves@redhat.com>
2584 * frame.h (show_and_print_stack_frame): Delete declaration.
2586 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2589 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2590 (archpy_name): Check for valid architecture.
2591 (archpy_disassemble): Ditto.
2593 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2595 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2596 instead of "long long" in call to ptrace64.
2598 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2600 * mi/mi-interp.c (mi_command_loop): Change signature to match
2601 interp_command_loop_ftype.
2602 (mi1_command_loop): Remove.
2603 (mi2_command_loop): Remove.
2604 (mi3_command_loop): Remove.
2605 (mi_interpreter_resume): Remove setting of
2606 deprecated_command_loop_hook.
2607 (_initialize_mi_interp): Set mi_command_loop as the command loop
2610 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2612 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2615 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2617 * value.c (allocate_value_contents): Make static.
2618 * value.h (allocate_value_contents): Remove prototype.
2620 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2622 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2623 of assembling value via allocate_value_lazy and attribute setter.
2624 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2625 assembling value via allocate_value_lazy and attribute setter.
2626 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2627 assembling value via allocate_value_lazy and attribute setter.
2629 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2631 * value.c (value_from_contents_and_address): Replace allocate_value and
2632 memcpy with value_from_contents.
2634 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2636 * python/py-framefilter.c (py_print_frame): Remove usage of
2637 PyString_AsString. Use python_string_to_host_string instead.
2638 Refactor function to work with a string as a new allocation
2639 instead of a pointer.
2640 (py_print_frame): Ditto.
2641 * python/lib/gdb/frames.py (return_list): Cain iterators together
2642 instead of adding them as a list.
2643 (_sort_list): Call return_list, and remove duplicate code.
2644 (execute_frame_filters): Convert iterator to a list with list().
2645 * python/lib/gdb/command/frame_filters.py
2646 (SetFrameFilterPriority._set_filter_priority): Convert priority
2647 attribute to an integer.
2648 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2649 wrapper function __next__.
2650 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2653 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2656 * python/py-framefilter.c (apply_frame_filter): Check
2657 gdb_python_initialized. Exit if the Python frame-filter code
2658 cannot be initialized.
2660 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2663 * top.c (print_gdb_version): Remove erroneous newline after help
2666 2013-08-29 Yao Qi <yao@codesourcery.com>
2668 * varobj.c (install_dynamic_child): Remove trailing space.
2669 Add one blank line after variable declaration.
2671 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * corefile.c (get_exec_file): Use exec_filename.
2675 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2676 * exec.c (exec_close): Free EXEC_FILENAME.
2677 (exec_file_attach): New variable canonical_pathname. Use
2678 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2680 * exec.h (exec_filename): New.
2681 * inferior.c (print_inferior, inferior_command): Use
2682 PSPACE_EXEC_FILENAME.
2683 * mi/mi-main.c (print_one_inferior): Likewise.
2684 * progspace.c (clone_program_space, print_program_space): Likewise.
2685 * progspace.h (struct program_space): New field pspace_exec_filename.
2686 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2687 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2689 2013-08-28 Will Newton <will.newton@linaro.org>
2691 * common/linux-ptrace.c: Include stdint.h unconditionally.
2693 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2696 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2698 2013-08-28 Yao Qi <yao@codesourcery.com>
2699 Pedro Alves <palves@redhat.com>
2701 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2702 instead of stdio_fileopen.
2703 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2704 .Call stderr_fileopen instead of stdio_fileopen.
2705 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2706 [__MINGW32__] (stderr_file_fputs): New function.
2707 (stderr_fileopen): New function.
2708 * ui-file.h (stderr_fileopen): Declare.
2710 2013-08-27 Doug Evans <dje@google.com>
2712 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2713 (struct dwarf2_per_cu_data): Ditto.
2714 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2715 (process_imported_unit_die): Ditto.
2716 (follow_die_sig_1): Simplify assert.
2718 2013-08-27 Pedro Alves <palves@redhat.com>
2720 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2721 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2722 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2723 windows_xfer_memory directly.
2724 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2726 2013-08-27 Pedro Alves <palves@redhat.com>
2728 * darwin-nat.c (darwin_xfer_memory): Delete.
2729 (_initialize_darwin_inferior): Don't install a
2730 deprecated_xfer_memory method.
2732 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2733 Yao Qi <yao@codesourcery.com>
2735 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2736 (parse_no_frames_option): Remove.
2737 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2738 (mi_cmd_stack_list_args): Adjust.
2739 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2740 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2741 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2743 (list_args_or_locals): New parameter 'skip_unavailable'.
2745 * valprint.c (scalar_type_p): Rename to ...
2746 (val_print_scalar_type_p): ... this. Make extern.
2747 (val_print, value_check_printable): Adjust.
2748 * valprint.h (val_print_scalar_type_p): Declare.
2749 * value.c (value_entirely_unavailable): New function.
2750 * value.h (value_entirely_unavailable): Declare.
2752 * NEWS: Mention the new option "--skip-unavailable" to MI
2753 commands '-stack-list-locals', '-stack-list-arguments' and
2754 '-stack-list-variables'.
2756 2013-08-27 Yao Qi <yao@codesourcery.com>
2758 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2759 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2761 * mi/mi-getopt.c (mi_getopt): Remove.
2762 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2764 (mi_getopt): Call mi_getopt_1.
2765 (mi_getopt_silent): New.
2766 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2768 2013-08-26 Doug Evans <dje@google.com>
2771 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2772 .gdb_index is in use.
2773 * symfile.c (reread_symbols): Reset objfile->sf.
2775 * NEWS: Document "mt print objfiles" now takes optional regexp.
2776 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2777 regexp of objfiles to print.
2778 (_initialize_symmisc): Update doc string for "mt print objfiles".
2780 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2781 missing debug info checks.
2783 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2784 Ulrich Weigand <uweigand@de.ibm.com>
2786 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2787 line tables generated by XLC compiled binaries.
2789 2013-08-23 Doug Evans <dje@google.com>
2791 * symmisc.c (dump_symtab): Delete prototype.
2792 (dump_msymbols, dump_objfile): Ditto.
2793 (maintenance_info_symtabs): Mark as dont_repeat.
2794 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2796 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2797 debugging printf to better location.
2799 2013-08-23 Pedro Alves <palves@redhat.com>
2801 * target.c (target_read_live_memory): Change type of 'ret' local
2804 2013-08-23 Pedro Alves <palves@redhat.com>
2806 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2807 (remote_read_bytes): Change return type to LONGEST, and adjust to
2808 return a target_xfer_error on error.
2809 (remote_xfer_memory): Delete.
2810 (remote_flash_write): Change type of 'ret' local to LONGEST.
2811 (remote_xfer_partial, remote_xfer_partial): Adjust.
2812 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2814 2013-08-23 Pierre Muller <muller@sourceware.org>
2816 ARI fix: Push # directives to start of line.
2817 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2819 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2822 * breakpoint.c (enable_command, disable_command): Iterate over
2823 all specified breakpoint locations.
2825 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2827 * common/linux-ptrace.c (linux_fork_to_function): Push #
2828 directives to the start of the line.
2829 (linux_check_ptrace_features): Fix warning message to use
2832 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2834 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2835 nat/linux-waitpid.h.
2836 (linux-waitpid.o): New object file rule.
2837 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2838 (current_ptrace_options): Moved from linux-nat.c.
2839 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2841 (linux_fork_to_function): New function.
2842 (linux_grandchild_function): Likewise.
2843 (linux_child_function): Likewise.
2844 (linux_check_ptrace_features): New function, heavily
2845 based on linux-nat.c:linux_test_for_tracefork.
2846 (linux_enable_event_reporting): New function.
2847 (ptrace_supports_feature): Likewise.
2848 (linux_supports_tracefork): Likewise.
2849 (linux_supports_traceclone): Likewise.
2850 (linux_supports_tracevforkdone): Likewise.
2851 (linux_supports_tracesysgood): Likewise.
2852 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2853 gdbserver/linux-low.c.
2854 (linux_enable_event_reporting): New declaration.
2855 (linux_supports_tracefork): Likewise.
2856 (linux_supports_traceclone): Likewise.
2857 (linux_supports_tracevforkdone): Likewise.
2858 (linux_supports_tracesysgood): Likewise.
2859 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2860 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2861 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2862 * config/arm/linux.mh (NATDEPFILES): Likewise.
2863 * config/i386/linux.mh (NATDEPFILES): Likewise.
2864 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2865 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2866 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2867 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2868 * config/mips/linux.mh (NATDEPFILES): Likewise.
2869 * config/pa/linux.mh (NATDEPFILES): Likewise..
2870 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2871 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2872 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2873 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2874 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2875 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2876 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2877 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2878 ptrace's 4th argument's types.
2879 Check the type of PTRACE_TYPE_ARG4.
2880 * configure: Regenerate.
2881 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2882 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2883 (linux_supports_tracefork_flag): Remove.
2884 (linux_supports_tracesysgood_flag): Likewise.
2885 (linux_supports_tracevforkdone_flag): Likewise.
2886 (current_ptrace_options): Moved to
2887 common/linux-ptrace.c.
2888 (linux_tracefork_child): Remove.
2889 (my_waitpid): Remove.
2890 (linux_test_for_tracefork): Renamed to
2891 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2892 (linux_test_for_tracesysgood): Remove.
2893 (linux_supports_tracesysgood): Remove.
2894 (linux_supports_tracefork): Remove.
2895 (linux_supports_tracevforkdone): Remove.
2896 (linux_enable_tracesysgood): Remove.
2897 (linux_enable_event_reporting): Remove.
2898 (linux_init_ptrace): New function.
2899 (linux_child_post_attach): Call linux_init_ptrace.
2900 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2901 (linux_child_follow_fork): Call linux_supports_tracefork
2902 and linux_supports_tracevforkdone.
2903 (linux_child_insert_fork_catchpoint): Call
2904 linux_supports_tracefork.
2905 (linux_child_insert_vfork_catchpoint): Likewise.
2906 (linux_child_set_syscall_catchpoint): Call
2907 linux_supports_tracesysgood.
2908 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2909 * nat/linux-nat.h: New file.
2910 * nat/linux-waitpid.c: New file.
2911 * nat/linux-waitpid.h: New file.
2913 2013-08-22 Samuel Bronson <naesten@gmail.com>
2915 ARM Linux support for `catch syscall'.
2916 * syscalls/arm-linux.py: New file.
2917 * syscalls/arm-linux.xml: Likewise.
2918 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2919 (arm_linux_init_abi): Register the new function and syscall xml file.
2920 * data-directory/Makefile.in: Install the new syscall xml file.
2921 * NEWS: Brag about this.
2923 2013-08-22 Pedro Alves <palves@redhat.com>
2926 * corefile.c (target_xfer_memory_error): New function.
2927 (memory_error): Defer EIO to target_memory_error.
2928 (read_memory): Use target_xfer_partial, and handle finer-grained
2930 * target.c (target_xfer_error_to_string): New function.
2931 (memory_xfer_partial_1): If memory is known to be
2932 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2933 (target_xfer_partial): Make extern.
2934 * target.h (enum target_xfer_error): New enum.
2935 (target_xfer_error_to_string): Declare function.
2936 (target_xfer_partial): Declare function.
2937 (struct target_ops) <xfer_partial>: Adjust describing comment.
2939 2013-08-22 Alan Modra <amodra@gmail.com>
2941 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2942 * configure.tgt: Likewise as targets.
2944 2013-08-20 Doug Evans <dje@google.com>
2946 * buildsym.c (subfile_stack): Move here from buildsym.h.
2947 (pending_macros): Ditto.
2948 (get_macro_table): New function.
2949 (buildsym_init): Initialize subfile_stack.
2950 * coffread.c (type_vector,type_vector_length): Moved here from
2952 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2953 (coff_symtab_read): Use it.
2954 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2955 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2956 with call to get_macro_table.
2957 * stabsread.c (type_vector,type_vector_length): Moved here from
2959 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2960 * buildsym.h (get_macro_table): Declare.
2962 2013-08-20 Tom Tromey <tromey@redhat.com>
2964 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2966 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2968 2013-08-20 Doug Evans <dje@google.com>
2970 * blockframe.c: Remove #include "psymtab.h".
2971 * cp-support.c: Ditto.
2975 2013-08-20 Tom Tromey <tromey@redhat.com>
2978 * exceptions.h (return_mask): Now an enum.
2979 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2982 2013-08-20 Tom Tromey <tromey@redhat.com>
2984 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2986 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2987 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2988 * jit.c (jit_object_close_impl): Update.
2989 * jv-lang.c (get_dynamics_objfile): Update.
2990 * linespec.c (add_minsym): Use get_dynamics_objfile.
2991 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2992 (allocate_objfile): Don't initialize 'gdbarch' field.
2993 (get_objfile_arch): Update.
2994 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2996 (struct objfile) <gdbarch>: ... here. Remove.
2997 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2999 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3001 2013-08-20 Alan Modra <amodra@gmail.com>
3003 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3004 for IBM long double nan and inf.
3005 (floatformat_is_negative, floatformat_classify,
3006 floatformat_mantissa): Similarly.
3007 (floatformat_ieee_single, floatformat_ieee_double,
3008 floatformat_ieee_quad, floatformat_arm_ext,
3009 floatformat_ia64_spill): Delete unused vars.
3010 (_initialize_doublest): Delete unused function.
3011 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3012 little-endian variants of floatformat_ibm_long_double.
3014 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3016 * Makefile.in (SFILES): Remove common/target-common.c and
3017 add target/waitstatus.c.
3018 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3019 target/resume.h, target/wait.h and target/waitstatus.h.
3020 (COMMON_OBS): Remove target-common.o and add
3022 (target-common.o): Remove.
3023 (waitstatus.o): New target object file.
3024 * common/target-common.c: Move contents to
3025 target/waitstatus.c and remove.
3026 * common/target-common.h: Move contents to other files and
3028 (enum resume_kind: Move to target/resume.h.
3029 (TARGET_WNOHANG): Move to target/wait.h.
3030 (enum target_waitkind): Move to target/waitstatus.h.
3031 (struct target_waitstatus): Likewise.
3032 * target.h: Do not include target-common.h and
3033 include target/resume.h, target/wait.h and
3034 target/waitstatus.h.
3035 * target/resume.h: New file.
3036 * target/wait.h: New file.
3037 * target/waitstatus.h: New file.
3038 * target/waitstatus.c: New file.
3040 2013-08-19 Pedro Alves <palves@redhat.com>
3042 * linux-nat.c (linux_test_for_tracefork)
3043 (linux_test_for_tracesysgood, linux_child_follow_fork)
3044 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3045 (linux_nat_wait_1): Extend comment.
3046 (linux_async_pipe): Add comment.
3048 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3050 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3051 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3052 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3053 Update to account for fact that PC is now a pseudo-register.
3054 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3055 cases for RL78_PC_REGNUM.
3057 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3060 * top.c (quit_force): Skip writing history file
3061 if input is not from terminal.
3063 2013-08-14 Tom Tromey <tromey@redhat.com>
3065 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3066 resultthreadlist>: New fields.
3067 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3068 (remote_get_threadlist, remote_threadlist_iterator): Use
3069 new fields. Remove static variables.
3071 2013-08-14 Tom Tromey <tromey@redhat.com>
3073 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3074 remote_watch_data_address>: New fields.
3075 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3076 (process_stop_reply, remote_wait_as)
3077 (remote_check_watch_resources, remote_stopped_data_address): Update.
3079 2013-08-14 Tom Tromey <tromey@redhat.com>
3081 * remote.c (struct remote_state) <async_client_callback,
3082 async_client_context>: New fields.
3083 (async_client_callback, async_client_context): Remove.
3084 (remote_async_serial_handler, remote_async): Update.
3086 2013-08-14 Tom Tromey <tromey@redhat.com>
3088 * remote.c (sizeof_pkt): Remove.
3089 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3091 2013-08-14 Tom Tromey <tromey@redhat.com>
3093 * remote.c (struct remote_state) <use_threadinfo_query,
3094 use_threadextra_query>: New fields.
3095 (remote_threads_info, remote_threads_extra_info)
3096 (remote_open_1): Update.
3098 2013-08-14 Tom Tromey <tromey@redhat.com>
3100 * remote.c (struct remote_state) <finished_object,
3101 finished_annex, finished_offset>: New fields.
3102 (remote_read_qxfer): Use remote_state fields; remove static
3105 2013-08-14 Tom Tromey <tromey@redhat.com>
3107 * remote.c (struct remote_state) <last_sent_step>:
3109 (last_sent_step): Remove.
3110 (remote_resume, remote_wait_as): Update.
3112 2013-08-14 Tom Tromey <tromey@redhat.com>
3114 * remote.c (struct remote_state) <last_sent_signal>:
3116 (last_sent_signal): Remove.
3117 (new_remote_state, remote_resume, remote_wait_as): Update.
3119 2013-08-14 Tom Tromey <tromey@redhat.com>
3121 * remote.c (struct remote_state) <last_program_signals_packet>:
3123 (last_program_signals_packet): Remove.
3124 (remote_program_signals, remote_open_1): Update.
3126 2013-08-14 Tom Tromey <tromey@redhat.com>
3128 * remote.c (struct remote_state) <last_pass_packet>:
3130 (last_pass_packet): Remove.
3131 (remote_pass_signals, remote_open_1): Update.
3133 2013-08-14 Tom Tromey <tromey@redhat.com>
3135 * remote.c (struct remote_state) <remote_traceframe_number>:
3137 (remote_traceframe_number): Remove.
3138 (new_remote_state, remote_open_1, set_remote_traceframe)
3139 (remote_trace_find): Update.
3141 2013-08-14 Tom Tromey <tromey@redhat.com>
3143 * remote.c (struct remote_state) <general_thread, continue_thread>:
3145 (general_thread, continue_thread): Remove.
3146 (record_currthread, set_thread, set_general_process)
3147 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3148 (extended_remote_mourn_1): Update.
3150 2013-08-14 Tom Tromey <tromey@redhat.com>
3152 * remote.c (struct remote_state) <remote_desc>: New field.
3153 (remote_desc): Remove.
3154 (remote_threads_info, remote_threads_extra_info, remote_close)
3155 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3156 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3157 (remote_hostio_send_command, remote_file_put, remote_file_get)
3158 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3159 (remote_async, remote_new_objfile, set_range_stepping): Update.
3161 2013-08-14 Tom Tromey <tromey@redhat.com>
3163 * remote.c (remote_state): Now a pointer.
3164 (get_remote_state_raw): Update.
3165 (new_remote_state): New function.
3166 (_initialize_remote): Use new_remote_state.
3168 2013-08-14 Tom Tromey <tromey@redhat.com>
3170 * remote.c (remote_protocol_features): Now const.
3172 2013-08-14 Tom Tromey <tromey@redhat.com>
3174 * remote.c (crc32_table, crc32): Remove.
3175 (remote_verify_memory): Use xcrc32.
3177 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3179 * value.h (create_internalvar_type_lazy): Adjust prototype
3182 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3184 * common/format.c (parse_format_string): Don't allow '#' flag for
3185 pointer arguments in format string.
3187 2013-08-13 Pierre Muller <muller@sourceware.org>
3189 * utils.c (init_page_info): Only call tgetnum function
3190 if rl_get_screen_size did not return useful values.
3192 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3194 PR breakpoints/15117
3195 * linespec.c (linespec_parse_basic): Check for convenience
3196 variable or history value while parsing.
3198 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3200 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3202 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3203 different signals between the generic Linux kernel implementation
3205 (avr_linux_gdb_signal_from_target): Delete.
3206 (avr_linux_gdb_signal_to_target): Delete.
3207 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3209 2013-08-09 Doug Evans <dje@google.com>
3211 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3214 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3216 * linux-tdep.c: Define enum with generic signal numbers.
3217 (linux_gdb_signal_from_target): New function.
3218 (linux_gdb_signal_to_target): Likewise.
3219 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3220 methods to the functions above.
3221 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3222 (linux_gdb_signal_to_target): Likewise.
3223 * alpha-linux-tdep.c: Define new enum with signals different
3224 from generic Linux kernel.
3225 (alpha_linux_gdb_signal_from_target): New function.
3226 (alpha_linux_gdb_signal_to_target): Likewise.
3227 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3228 with the functions mentioned above.
3229 * avr-tdep.c: Define enum with differences between Linux kernel
3231 (avr_linux_gdb_signal_from_target): New function.
3232 (avr_linux_gdb_signal_to_target): Likewise.
3233 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3234 the functions mentioned above.
3235 * sparc-linux-tdep.c: Define enum with differences between SPARC
3236 and generic Linux kernel signal numbers.
3237 (sparc32_linux_gdb_signal_from_target): New function.
3238 (sparc32_linux_gdb_signal_to_target): Likewise.
3239 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3240 to the functions defined above.
3241 * xtensa-linux-tdep.c: Define enum with differences between
3242 Xtensa and Linux kernel generic signals.
3243 (xtensa_linux_gdb_signal_from_target): New function.
3244 (xtensa_linux_gdb_signal_to_target): Likewise.
3245 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3246 to the functions defined above.
3247 * mips-linux-tdep.c: Define enum with differences between
3248 signals in MIPS and Linux kernel generic ones.
3249 (mips_gdb_signal_to_target): New function.
3250 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3251 only different signals from the Linux kernel generic.
3252 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3253 the functions defined above.
3254 * mips-linux-tdep.h (enum mips_signals): Remove.
3256 2013-08-09 Pedro Alves <palves@redhat.com>
3258 * avr-tdep.c (XMALLOC): Delete macro.
3259 * cli/cli-dump.c (XMALLOC): Delete macro.
3261 2013-08-09 Pedro Alves <palves@redhat.com>
3263 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3264 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3265 (fopen_with_cleanup, add_dump_command): Make static.
3266 * cli/cli-dump.h: Delete file.
3267 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3270 2013-08-09 Pedro Alves <palves@redhat.com>
3272 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3275 2013-08-09 Pedro Alves <palves@redhat.com>
3277 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3280 2013-08-09 Pedro Alves <palves@redhat.com>
3282 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3283 (gcore_command): Use tilde_expand here, and when showing the
3284 filename to the user, show the expanded version.
3286 2013-08-09 Yao Qi <yao@codesourcery.com>
3288 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3291 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3293 * gcore.c (create_gcore_bfd): Use tilde_expand.
3295 2013-08-08 Yao Qi <yao@codesourcery.com>
3297 * frame.h (read_frame_local): Declare.
3298 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3300 * stack.c (read_frame_local): New.
3302 2013-08-08 Yao Qi <yao@codesourcery.com>
3304 * mi/mi-cmd-stack.c: Update comments to function
3305 list_args_or_locals.
3307 2013-08-07 Tom Tromey <tromey@redhat.com>
3310 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3311 (process_psymtab_comp_unit_reader): Use it.
3312 (process_psymtab_comp_unit): Update. Add "pretend_language"
3314 (dwarf2_build_psymtabs_hard): Update.
3315 (scan_partial_symbols): Pass CU's language to
3316 process_psymtab_comp_unit.
3318 2013-08-07 Tom Tromey <tromey@redhat.com>
3320 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3321 (dwarf2_gdb_index_functions): Update.
3322 * psymtab.c (find_symbol_file_from_partial): Remove.
3323 (psym_functions): Update.
3324 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3327 2013-08-07 Tom Tromey <tromey@redhat.com>
3329 * symfile.c (set_initial_language): Look up "main" symbol
3330 and use its language.
3331 * symtab.c (find_main_filename): Remove.
3332 * symtab.h (find_main_filename): Remove.
3334 2013-08-07 Tom Tromey <tromey@redhat.com>
3336 * dwarf2read.c (recursively_compute_inclusions): Add
3337 "immediate_parent" argument. Set symtab's "user" field
3339 (compute_symtab_includes): Update.
3341 2013-08-07 Tom Tromey <tromey@redhat.com>
3343 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3344 when adding label symbols.
3346 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3347 Ulrich Weigand <uweigand@de.ibm.com>
3349 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3350 * configure.host (powerpc64-*-aix*): Likewise.
3352 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3353 Ulrich Weigand <uweigand@de.ibm.com>
3355 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3357 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3358 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3359 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3360 * configure.ac: Check for ptrace64.
3361 * configure, config.in: Regenerate.
3363 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3364 Ulrich Weigand <uweigand@de.ibm.com>
3366 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3367 Call ptrace64 instead of ptrace if defined.
3368 Add macro addr_ptr to take care of ptrace address argument.
3369 (pdc_read_regs): Likewise.
3370 (pdc_write_regs): Likewise.
3371 (aix_thread_resume): Likewise.
3372 (fetch_regs_kernel_thread): Likewise.
3373 (store_regs_kernel_thread): Likewise.
3375 2013-08-07 Anton Blanchard <anton@samba.org>
3377 * MAINTAINERS: Add myself to Write After Approval.
3379 2013-08-05 Tom Tromey <tromey@redhat.com>
3381 * aix-thread.c (_initialize_aix_thread): Use
3382 complete_target_initialization.
3383 * bsd-uthread.c (_initialize_bsd_uthread): Use
3384 complete_target_initialization.
3385 * dec-thread.c (_initialize_dec_thread): Use
3386 complete_target_initialization.
3387 * ravenscar-thread.c (_initialize_ravenscar): Use
3388 complete_target_initialization.
3389 * sol-thread.c (_initialize_sol_thread): Use
3390 complete_target_initialization.
3391 * spu-multiarch.c (_initialize_spu_multiarch): Use
3392 complete_target_initialization.
3394 2013-08-05 Tom Tromey <tromey@redhat.com>
3396 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3397 * ada-lang.c (ada_lookup_simple_minsym): Return
3398 bound_minimal_symbol.
3399 * ada-lang.h (ada_lookup_simple_minsym): Update.
3400 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3401 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3402 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3403 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3404 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3405 * minsyms.c (msymbol_objfile): Remove.
3406 (lookup_minimal_symbol_internal): New function, from
3407 lookup_minimal_symbol.
3408 (lookup_minimal_symbol): Rewrite using
3409 lookup_minimal_symbol_internal.
3410 (lookup_bound_minimal_symbol): New function.
3411 * minsyms.h (msymbol_objfile): Remove.
3412 (lookup_bound_minimal_symbol): Declare.
3413 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3414 * parse.c (write_exp_msymbol): Change parameter to a
3415 bound_minimal_symbol.
3416 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3417 * parser-defs.h (write_exp_msymbol): Update.
3418 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3419 * symfile.c (simple_read_overlay_table): Use
3420 lookup_bound_minimal_symbol.
3421 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3422 (search_symbols): Likewise.
3423 (print_msymbol_info): Take a bound_minimal_symbol argument.
3424 (symtab_symbol_info, rbreak_command): Update.
3425 * symtab.h (struct symbol_search) <msymbol>: Change type
3426 to bound_minimal_symbol.
3427 * valops.c (find_function_in_inferior): Use
3428 lookup_bound_minimal_symbol.
3429 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3431 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3434 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3436 (async_cleanup_sigint_signal_handler): ... this.
3437 (initialize_sigint_signal_handler): Remove declaration.
3438 (handle_remote_sigint): Rename the declaration to ...
3439 (async_handle_remote_sigint): ... this.
3440 (handle_remote_sigint_twice): Rename the declaration to ...
3441 (async_handle_remote_sigint_twice): ... this.
3442 (async_remote_interrupt, async_remote_interrupt_twice)
3443 (remote_interrupt): Remove the declarations.
3444 (remote_interrupt_twice): Rename the declaration ...
3445 (sync_remote_interrupt_twice): ... this.
3446 (sigint_remote_twice_token): Rename the variable to ...
3447 (async_sigint_remote_twice_token): ... this.
3448 (sigint_remote_token): Rename the variable to ...
3449 (async_sigint_remote_token): ... this.
3450 (initialize_sigint_signal_handler): Rename the function to ...
3451 (async_initialize_sigint_signal_handler): ... this. Update the name
3453 (handle_remote_sigint): Rename the function to ...
3454 (async_handle_remote_sigint): ... this. Update the names inside.
3455 (handle_remote_sigint_twice): Rename the function to ...
3456 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3457 (cleanup_sigint_signal_handler): Rename the function to ...
3458 (async_cleanup_sigint_signal_handler): ... this.
3459 (remote_interrupt): Rename the function to ...
3460 (sync_remote_interrupt): this. Update the names inside.
3461 (remote_interrupt_twice): Rename the function to ...
3462 (sync_remote_interrupt_twice): this. Update the names inside.
3463 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3464 (_initialize_remote): Update the names inside.
3466 2013-08-02 Tom Tromey <tromey@redhat.com>
3469 * breakpoint.c (update_watchpoint, watchpoint_check)
3470 (watch_command_1): Update.
3471 * eval.c (fetch_subexp_value): Add "preserve_errors"
3473 * ppc-linux-nat.c (check_condition): Update.
3474 * value.h (fetch_subexp_value): Update.
3476 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3478 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3481 2013-08-01 Doug Evans <dje@google.com>
3484 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3485 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3486 Add assert of sig_entry->dwo_unit == NULL.
3487 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3488 had already been read.
3489 (read_signatured_type): Set per_cu.tu_read.
3492 * valops.c (value_struct_elt): Add missing call to check_typedef.
3493 (value_find_oload_method_list): Ditto.
3495 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3496 effectively, struct symbol_search **.
3497 (make_cleanup_free_search_symbols): Change arg to struct
3498 symbol_search **. All callers updated.
3499 (compare_search_syms): Compare symtab file name and block as well.
3500 (search_symbols_equal): New function.
3501 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3502 New args new_head, new_tail. Result is now void. Remove dups after
3503 sorting the symbols.
3504 (search_symbols): Sort all found symbols once, after all have been
3505 found, and remove duplicates. Simplify cleanup tracking of result.
3506 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3508 Further workarounds for binutils/15021.
3509 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3510 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3511 Watch for duplicate symtabs coming from type units.
3512 (compute_symtab_includes): Update call to
3513 recursively_compute_inclusions. Build vector of included symtabs
3515 * symtab.h (symtab_ptr): New typedef.
3516 (DEF_VEC_P (symtab_ptr)): New VEC type.
3517 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3520 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3522 * cli/cli-script.c (script_from_file): Remove use of
3524 * main.c (captured_main): Remove use of error_pre_print and
3526 * utils.c (error_pre_print, quit_pre_print): Remove.
3527 * utils.h (error_pre_print, quit_pre_print): Likewise.
3529 2013-08-01 Yao Qi <yao@codesourcery.com>
3531 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3533 (mi_cmd_stack_list_variables): Likewise.
3535 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3537 * exceptions.c (deprecated_throw_reason): Remove.
3538 * exceptions.h (deprecated_throw_reason): Remove.
3540 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3542 * remote-mips.c (mips_error): Replace use of
3543 deprecated_throw_reason with throw_verror. Use the error message
3544 passed to mips_error as the error message for throw_verror.
3546 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3548 * monitor.c (monitor_interrupt_query): Replace use of
3549 deprecated_throw_reason with quit.
3550 * nto-procfs.c (interrupt_query): Likewise.
3551 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3552 * remote-mips.c (mips_kill): Likewise.
3553 * remote.c (interrupt_query): Likewise.
3555 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3557 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3560 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3561 Yao Qi <yao@codesourcery.com>
3563 * tracepoint.c (trace_dump_command): Select the current frame.
3565 2013-07-30 Doug Evans <dje@google.com>
3567 * dwarf2read.c (process_queue): Add type signature to debug output.
3569 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3571 * value.c (value_fetch_lazy): Mark optimized out values as such
3572 rather than raising an error.
3574 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3576 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3577 before checking which bits of the parent, not the child, value are
3580 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3583 * top.c: Include "filenames.h".
3584 (set_history_filename): New function.
3585 (init_main): Install it as set hook of the "set history filename"
3588 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3590 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3591 attribute parameter.
3592 (dwarf2_const_value_data): Constify struct attribute parameter.
3593 (dwarf2_const_value): Constify struct attribute parameter.
3594 (dwarf2_const_value_attr): Constify struct attribute parameter.
3595 (lookup_die_type): Constify struct attribute parameter.
3596 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3597 (follow_die_ref_or_sig): Constify struct attribute parameter.
3598 (follow_die_ref): Constify struct attribute parameter.
3599 (follow_die_sig): Constify struct attribute parameter.
3600 (get_DW_AT_signature_type): Constify struct attribute parameter.
3601 (get_type_unit_group): Constify struct attribute parameter.
3602 (fill_in_loclist_baton): Constify struct attribute parameter.
3603 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3604 (type_unit_group): Constify struct attribute parameter.
3606 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3608 * dwarf2read.c (attr_form_is_block): Make argument const.
3609 (attr_form_is_section_offset): Make argument const.
3610 (attr_form_is_constant): Make argument const.
3611 (attr_form_is_ref): Make argument const.
3613 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3615 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3617 (attr_form_is_ref): Moved below attr_form_is_constant.
3619 2013-07-29 Doug Evans <dje@google.com>
3621 * main.c (captured_command_loop): Tweak comment.
3623 * target.c (target_async_permitted_1): Fix comment.
3625 * symtab.c (iterate_over_some_symtabs): Add comment.
3627 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3629 2013-07-27 Yao Qi <yao@codesourcery.com>
3631 * NEWS: Mention that GDBserver now supports hardware
3632 watchpoints on the MIPS GNU/Linux target.
3634 2013-07-27 Yao Qi <yao@codesourcery.com>
3636 * Makefile.in (HFILES_NO_SRCDIR): Add
3637 common/mips-linux-watch.h.
3638 (mips-linux-watch.o): New rule.
3639 * common/mips-linux-watch.c: New.
3640 * common/mips-linux-watch.h: New.
3641 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3642 * mips-linux-nat.c: Include mips-linux-watch.h.
3643 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3644 to common/mips-linux-watch.h.
3645 (MAX_DEBUG_REGISTER): Likewise.
3646 (enum pt_watch_style): Likewise.
3647 (struct mips32_watch_regs): Likewise.
3648 (struct mips64_watch_regs): Likewise.
3649 (struct pt_watch_regs): Likewise.
3650 (struct mips_watchpoint): Likewise.
3651 (mips_linux_watch_get_irw_mask): Move to
3652 common/mips-linux-watch.c.
3653 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3654 (mips_linux_watch_get_watchlo): Likewise.
3655 (mips_linux_watch_set_watchlo): Likewise.
3656 (mips_linux_watch_get_watchhi): Likewise.
3657 (mips_linux_watch_set_watchhi): Likewise.
3658 (mips_linux_read_watch_registers): Likewise.
3659 (mips_linux_watch_type_to_irw): Likewise.
3660 (mips_linux_stopped_data_address, fill_mask): Likewise.
3661 (mips_linux_watch_try_one_watch): Likewise.
3662 (mips_linux_watch_populate_regs): Likewise.
3664 2013-07-27 Yao Qi <yao@codesourcery.com>
3666 * mips-linux-nat.c (get_irw_mask): Rename to ...
3667 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3668 'set' to 'n'. Update function comment. All callers changed.
3669 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3670 function comment. All callers changed.
3671 (get_num_valid): Rename to ...
3672 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3673 'set' to 'n'. Update function comment. All callers changed.
3674 (get_watchlo): Rename to ...
3675 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3676 'set' to 'n'. Update function comment. All callers changed.
3677 (set_watchlo): Rename to ...
3678 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3679 'set' to 'n'. Update function comment. All callers changed.
3680 (get_watchhi): Rename to ...
3681 (mips_linux_watch_get_watchhi): ... this. Update function
3682 comment. All callers changed.
3683 (set_watchhi): Rename to ...
3684 (mips_linux_watch_set_watchhi): ... this. Update function
3685 comment. All callers changed.
3686 (mips_linux_read_watch_registers): Update function comment.
3687 Add new parameters 'lwpid', 'watch_readback', and
3688 'watch_readback_valid'. Update.
3689 (type_to_irw): Rename to ...
3690 (mips_linux_watch_type_to_irw): ... this. Update function
3691 comment. All callers changed.
3692 (fill_mask): Update function comment.
3693 (try_one_watch): Rename to ...
3694 (mips_linux_watch_try_one_watch): ... this. Change the type
3695 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3696 (populate_regs_from_watches): Rename to ...
3697 (mips_linux_watch_populate_regs): ... this. Add parameter
3698 'current_watches'. All callers changed.
3700 2013-07-27 Yao Qi <yao@codesourcery.com>
3702 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3704 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3705 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3706 (struct pt_watch_regs): Likewise.
3707 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3708 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3709 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3710 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3711 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3713 2013-07-27 Yao Qi <yao@codesourcery.com>
3715 * breakpoint.h: Include break-common.h.
3716 (enum target_hw_bp_type): Move to ...
3717 * common/break-common.h: ... here. New.
3719 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3721 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3722 process group regardless of having tty on stdin.
3724 2013-07-25 Doug Evans <dje@google.com>
3726 * linux-fork.h (detach_fork): Delete.
3728 2013-07-25 Tom Tromey <tromey@redhat.com>
3730 PR remote/15256, PR remote/15266:
3731 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3732 * monitor.c (monitor_detach): Use unpush_target.
3733 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3734 * remote-mips.c (mips_detach): Use unpush_target. Don't
3736 * remote-sim.c (gdbsim_detach): Use unpush_target.
3737 * target.c (pop_target): Remove.
3738 (pop_all_targets_above): Don't call target_close.
3739 (target_close): Assert that the target is unpushed.
3740 * target.h (pop_target): Don't declare.
3741 * tracepoint.c (tfile_open): Use unpush_target.
3743 2013-07-25 Tom Tromey <tromey@redhat.com>
3745 * linux-thread-db.c (init_thread_db_ops): Call
3746 complete_target_initialization.
3747 (_initialize_thread_db): Don't call add_target.
3748 * target.c (complete_target_initialization): New function.
3749 (add_target_with_completer): Call it.
3750 * target.h (complete_target_initialization): Declare.
3752 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3754 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3755 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3756 (HPPANBSD_SIZEOF_GREGS): New define.
3757 (hppaobsd_supply_gregset): Handle additional registers.
3758 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3759 we provide more registers now.
3760 (hppabsd_supply_gregset): Supply additional registers.
3761 (hppabsd_collect_gregset): Collect additional registers.
3763 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3765 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3766 (hppabsd_dwarf2_frame_init_reg): New function.
3767 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3769 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3771 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3772 'z' format code. Remove error for optimized out values, standard
3773 code will handle these fine.
3775 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3777 * NEWS: Mention new 'z' formatter.
3778 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3779 (_initialize_printcmd): Mention 'z' formatter in help text of the
3782 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3784 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3787 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3789 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3790 interface can evaluate arguments. Fallback to the old mode if it
3792 (create_exception_master_breakpoint): Likewise.
3793 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3794 (struct sym_probe_fns elf_probe_fns): Export function above to the
3796 * probe.c (can_evaluate_probe_arguments): New function.
3797 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3799 (can_evaluate_probe_arguments): New function prototype.
3800 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3801 probe interface can evaluate arguments. Fallback to the old mode
3803 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3804 interface can evaluate arguments. Warning the user if it cannot.
3805 (stap_can_evaluate_probe_arguments): New function.
3806 (struct probe_ops stap_probe_ops): Export function above to the
3808 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3809 New function pointer.
3811 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3813 * Makefile.in (SFILES): Add common/target-common.c.
3814 Add common/target-common.h to headers.
3815 (COMMON_OBS): Add target-common.o.
3816 (target-common.o): New target.
3817 * linux-nat.h (resume_kind): Move to common/target-common.h.
3818 * target.c (target_waitstatus_to_string): Move to
3819 common/target-common.c.
3820 * target.h: Include target-common.h.
3821 (target_waitkind): Move to common/target-common.h.
3822 (target_waitstatus): Likewise.
3823 (TARGET_WNOHANG): Likewise.
3824 * common/target-common.c: New file.
3825 * common/target-common.h: New file.
3827 2013-07-24 Doug Evans <dje@google.com>
3829 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3832 2013-07-23 Yao Qi <yao@codesourcery.com>
3834 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3835 parameter 'gdbarch'.
3836 (i386_stack_tramp_frame_sniffer): Caller update.
3837 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3838 parameter 'gdbarch' and 'target'.
3839 (i386_linux_core_read_description): Caller update.
3840 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3842 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3845 2013-07-23 Tom Tromey <tromey@redhat.com>
3847 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3850 2013-07-22 Doug Evans <dje@google.com>
3852 * exec.h (remove_target_sections): Delete arg abfd.
3853 * exec.c (exec_close): Update call to remove_target_sections.
3854 (remove_target_sections): Delete arg abfd.
3855 * solib.c (update_solib_list): Ditto.
3856 (reload_shared_libraries_1): Ditto.
3857 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3858 * target.h (struct target_section): Rename key to owner.
3861 2013-07-22 Tom Tromey <tromey@redhat.com>
3863 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3865 2013-07-22 Tom Tromey <tromey@redhat.com>
3867 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3868 Simplify cleanup handling.
3870 2013-07-22 Tom Tromey <tromey@redhat.com>
3872 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3873 on all return paths.
3875 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3877 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3878 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3879 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3881 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3883 * top.c (print_gdb_version): Add help, apropos description and
3884 url to online documentation.
3886 2013-07-19 Hui Zhu <hui@codesourcery.com>
3889 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3891 2013-07-19 Yao Qi <yao@codesourcery.com>
3893 * target.c (update_current_target): Change the default action
3894 of 'to_traceframe_info' from tcomplain to return_zero.
3895 * target.h (struct target_ops) <to_traceframe_info>: Add more
3897 * valops.c (read_value_memory): Call
3898 traceframe_available_memory unconditionally.
3900 2013-07-18 Yao Qi <yao@codesourcery.com>
3902 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3903 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3904 symbol without prefix. If found, set its type to
3905 'mst_solib_trampoline'.
3907 2013-07-17 Doug Evans <dje@google.com>
3909 * NEWS: Mention "set print raw frame-arguments".
3910 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3911 * stack.c (print_raw_frame_arguments): New static global.
3912 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3913 (_initialize_stack): New command "set/show print raw frame-arguments".
3914 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3915 (set_print_raw, show_print_raw): New functions.
3916 (_initialize_valprint): New prefix command "set/show print raw".
3917 * valprint.h (value_print_options): Improve comments.
3919 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3920 of all *list variables.
3922 * gdbcmd.h (togglelist): Delete.
3923 * cli/cli-cmds.c (togglelist): Delete.
3924 (init_cmd_lists): Update.
3925 * cli/cli-cmds.h (togglelist): Delete.
3927 2013-07-17 Tom Tromey <tromey@redhat.com>
3929 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3932 2013-07-16 Doug Evans <dje@google.com>
3934 * nto-tdep.c (nto_relocate_section_addresses): Update,
3935 target_section.bfd deleted.
3936 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3937 * s390-tdep.c (s390_load): Ditto.
3938 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3940 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3942 * common/format.c (parse_format_string): Add checks for NULL
3943 character before calling strchr.
3945 2013-07-16 Doug Evans <dje@google.com>
3947 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3948 temp_pathname argument.
3949 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3950 when opening the file fails.
3952 * target.h (struct target_section): Delete member bfd.
3953 All users updated to use the_bfd_section->owner instead.
3954 * exec.c (add_to_section_table): Assert bfd is expected value.
3955 Remove initialization of target_section.bfd.
3956 (remove_target_sections): Update.
3957 (section_table_available_memory): Update.
3958 (section_table_xfer_memory_partial): Update.
3959 (print_section_info): Update.
3960 (exec_set_section_address): Update.
3961 * record-full.c (record_full_core_xfer_partial): Update.
3962 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3963 * solib-target.c (solib_target_relocate_section_addresses): Update.
3964 * symfile.c (build_section_addr_info_from_section_table): Update.
3965 * target.c (memory_xfer_live_readonly_partial): Update.
3966 (memory_xfer_partial_1): Update.
3968 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3970 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3971 now available for embedded (BookE) and server (BookS) processors,
3972 correct mentions of 'booke' and adjust comments accordingly in order to
3973 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3974 (have_ptrace_booke_interface): Rename function and variable
3975 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3976 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3977 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3978 'hwdebug_point_cmp'. Update all uses.
3979 (booke_find_thread_points_by_tid): Rename function
3980 'booke_find_thread_points_by_tid' to
3981 'hwdebug_find_thread_points_by_tid'. Update all uses.
3982 (booke_insert_point): Rename function 'booke_insert_point' to
3983 'hwdebug_insert_point'. Update all uses.
3984 (booke_remove_point): Rename function 'booke_remove_point' to
3985 'hwdebug_remove_point'. Update all uses.
3987 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3989 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3990 numbers with enum values.
3992 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3995 * thread.c (thread_apply_all_command): Check for valid threads
3997 (thread_array_cleanup): New struct.
3998 (set_thread_refcount): New function.
4000 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4002 * infcmd.c (default_print_one_register_info): Reuse function
4005 2013-07-10 Tom Tromey <tromey@redhat.com>
4007 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4008 (ada-exp.o): New target.
4010 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4012 * mt-tdep.c (mt_registers_info): Call
4013 get_no_prettyformat_print_options instead of
4014 get_raw_print_options (regression by last patch from Doug
4017 2013-07-09 Pedro Alves <palves@redhat.com>
4019 Checked in by Joel Brobecker <brobecker@adacore.com>.
4020 * ada-lang.c (coerce_unspec_val_to_type): Use
4021 value_optimized_out_const.
4022 * value.c (value_optimized_out_const): New function.
4023 * value.h (value_optimized_out_const): New declaration.
4025 2013-07-09 Doug Evans <dje@google.com>
4027 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4028 Enum values rename as well. All uses updated.
4029 * valprint.h (value_print_options): Rename member pretty to
4030 pretty format. Rename member prettyprint_arrays to
4031 prettyformat_arrays. Rename member prettyprint_structs to
4032 prettyformat_structs. All uses updated.
4033 (get_no_prettyformat_print_options): Renamed from
4034 get_raw_print_options.
4035 * valprint.c (get_no_prettyformat_print_options): Renamed from
4036 get_raw_print_options. All callers updated.
4037 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4038 All callers updated.
4039 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4040 All callers updated.
4041 (_initialize_valprint): Improve help text for "set print pretty" and
4044 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4046 * value.c (value_bits_valid): Revert previous change, and change
4047 by Pedro on 2013-07-04, due to regressions in
4048 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4050 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4051 Pedro Alves <palves@redhat.com>
4053 * value.c (value_bits_valid): If the value is not lval_computed
4054 or has no check validity handler then the answer is the
4055 optimized_out flag, otherwise defer to the handler.
4057 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4059 * top.c (print_gdb_configuration): Explain in output of
4060 --configuration what does "relocatable" mean.
4062 * main.c (print_gdb_help): Regroup options in the --help text.
4063 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4064 the relevant discussions.
4066 2013-07-06 Yao Qi <yao@codesourcery.com>
4068 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4069 Remove parameter 'lsal'.
4070 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4071 to inner block. Caller update.
4072 (base_breakpoint_create_breakpoints_sal): Update.
4073 (bkpt_create_breakpoints_sal): Likewise.
4074 (tracepoint_create_breakpoints_sal): Likewise.
4075 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4076 element 0 of vector 'canonical->sals'.
4078 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4080 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4081 register number instead of the pseudo register one.
4082 (rs6000_dwarf2_reg_to_regnum): Likewise.
4084 2013-07-04 Pedro Alves <palves@redhat.com>
4086 * findvar.c (value_of_register): Use allocate_optimized_out_value
4087 if the register has been optimized out, instead of
4088 set_value_optimized_out.
4089 * frame-unwind.c (frame_unwind_got_optimized): Use
4090 allocate_optimized_out_value.
4092 2013-07-04 Pedro Alves <palves@redhat.com>
4094 * value.c (value_bits_valid): If the value is not lval_computed,
4095 or doesn't have a check_validity hook, assume the value is entirely
4098 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4100 * stack.c (read_frame_arg): No longer fetch lazy values.
4101 * value.c (value_optimized_out): If the value is not already
4102 marked optimized out, and is lazy then fetch it.
4103 (value_primitive_field): Move optimized out check to later in the
4104 function, after we have loaded any lazy values.
4105 (value_fetch_lazy): Use optimized out flag directly rather than
4106 calling optimized_out method.
4108 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4110 * valops.c: Don't include "user-regs.h".
4111 (value_fetch_lazy): Moved to value.c.
4112 * value.c: Include "user-regs.h".
4113 (value_fetch_lazy): Moved from valops.c.
4115 2013-07-04 Yao Qi <yao@codesourcery.com>
4118 2013-06-27 Yao Qi <yao@codesourcery.com>
4120 * common/create-version.sh: Update comments. Handle the case
4121 that TARGET_ALIAS is empty.
4123 2013-07-03 Pedro Alves <palves@redhat.com>
4125 * Makefile.in (config.status): Depend on development.sh.
4126 (aclocal_m4_deps): Add libmcheck.m4.
4127 * acinclude.m4: Include libmcheck.m4.
4128 * configure.ac: Source development.sh instead of setting
4129 'development' here. --enable-libmcheck/--disable-libmcheck code
4130 factored out to GDB_AC_LIBMCHECK. Run it.
4131 * development.sh: New file.
4132 * libmcheck.m4: New file.
4133 * configure: Regenerate.
4135 2013-07-02 Tom Tromey <tromey@redhat.com>
4137 * contrib/ari/update-web-ari.sh: Update for version.in change.
4139 2013-07-02 Tom Tromey <tromey@redhat.com>
4141 * common/ptid.h: Comment fixes.
4143 2013-07-01 Tom Tromey <tromey@redhat.com>
4145 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4146 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4147 (dwarf2_read_index, create_all_comp_units): Update.
4149 2013-07-01 Tom Tromey <tromey@redhat.com>
4151 * configure.ac (build_warnings): Add -Wold-style-definition.
4152 * configure: Rebuild.
4153 * machoread.c (_initialize_machoread): Use "(void)".
4154 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4157 2013-07-01 Tom Tromey <tromey@redhat.com>
4159 * configure.ac (build_warnings): Add -Wold-style-declaration.
4160 * configure: Rebuild.
4161 * dsrec.c (make_srec): Use "static const", not "const static".
4162 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4164 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4165 Use "static const", not "const static".
4166 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4168 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4170 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4172 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4174 (v850_dbtrap_breakpoint_from_pc): Likewise.
4175 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4178 2013-07-01 Tom Tromey <tromey@redhat.com>
4180 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4181 * configure: Rebuild.
4183 2013-07-01 Pedro Alves <palves@redhat.com>
4185 * defs.h: Include "pathmax.h".
4186 * utils.c: Don't include sys/param.h.
4187 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4188 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4189 instead of MAXPATHLEN.
4190 * solib-sunos.c: Don't include sys/param.h.
4191 * xcoffread.c: Don't include sys/param.h.
4192 * bsd-kvm.c: Don't include sys/param.h.
4193 * darwin-nat.c: Don't include sys/param.h.
4194 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4195 * darwin-nat-info.c: Don't include sys/param.h.
4196 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4198 * i386obsd-nat.c: Don't include sys/param.h.
4199 * inf-child.c: Don't include sys/param.h.
4200 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4201 * linux-fork.c: Don't include sys/param.h.
4202 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4203 * linux-nat.c: Don't include sys/param.h.
4204 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4205 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4206 * m68klinux-nat.c: Don't include sys/param.h.
4207 * nbsd-nat.c: Don't include sys/param.h.
4208 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4209 * ppc-linux-nat.c: Don't include sys/param.h.
4210 * rs6000-nat.c: Don't include sys/param.h.
4211 * spu-linux-nat.c. Don't include sys/param.h.
4212 * windows-nat.c: Don't include sys/param.h.
4213 * xtensa-linux-nat.c: Don't include sys/param.h.
4214 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4216 2013-07-01 Pedro Alves <palves@redhat.com>
4218 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4219 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4220 * gnulib/aclocal.m4: Regenerate.
4221 * gnulib/config.in: Regenerate.
4222 * gnulib/configure: Regenerate.
4223 * gnulib/import/pathmax.h: New file.
4224 * gnulib/import/Makefile.am: Regenerate.
4225 * gnulib/import/Makefile.in: Regenerate.
4226 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4227 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4228 * gnulib/import/m4/pathmax.m4: New file.
4230 2013-07-01 Pedro Alves <palves@redhat.com>
4232 * configure.ac (GDBINIT): Define, depending on host.
4233 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4234 * top.c (PATH_MAX): Delete fallback definition.
4235 (GDBINIT_FILENAME): Delete.
4236 (gdbinit): Reimplement as const char array set to the GDBINIT
4238 * top.h (gdbinit): Make const.
4239 * configure, config.in: Regenerate.
4241 2013-07-01 Pedro Alves <palves@redhat.com>
4243 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4244 * cli/cli-cmds.h (source_script): Likewise.
4245 * exceptions.c (catch_command_errors_const): New function.
4246 * exceptions.h (catch_command_errors_const): Declare.
4247 * main.c (get_init_files): Make parameters const, and adjust.
4248 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4249 'local_gdbinit' locals const. Adjust to use
4250 catch_command_errors_const.
4251 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4252 'local_gdbinit' locals const.
4254 2013-07-01 Pedro Alves <palves@redhat.com>
4256 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4257 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4258 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4261 2013-07-01 Pedro Alves <palves@redhat.com>
4263 Import the "unistd" gnulib module.
4264 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4265 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4266 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4267 import/m4/unistd_h.m4.
4268 * gnulib/aclocal.m4: Renenerate.
4269 * gnulib/config.in: Renenerate.
4270 * gnulib/configure: Renenerate.
4271 * gnulib/import/Makefile.am: Renenerate.
4272 * gnulib/import/Makefile.in: Renenerate.
4273 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4274 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4275 * gnulib/import/m4/off_t.m4: New file.
4276 * gnulib/import/m4/ssize_t.m4: New file.
4277 * gnulib/import/m4/sys_types_h.m4: New file.
4278 * gnulib/import/m4/unistd_h.m4: New file.
4279 * gnulib/import/sys_types.in.h: New file.
4280 * gnulib/import/unistd.c: New file.
4281 * gnulib/import/unistd.in.h: New file.
4283 2013-07-01 Pedro Alves <palves@redhat.com>
4285 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4286 defined instead of checking HAVE_UNISTD_H.
4288 2013-07-01 Pedro Alves <palves@redhat.com>
4290 Reimport gnulib from scratch.
4291 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4292 import/m4/onceonly.m4.
4293 * gnulib/aclocal.m4: Renegerate.
4294 * gnulib/config.in: Renegerate.
4295 * gnulib/configure: Renegerate.
4296 * gnulib/import/Makefile.in: Renegerate.
4297 * gnulib/import/extra/update-copyright: Renegerate.
4298 * gnulib/import/m4/onceonly.m4: Delete.
4300 2013-07-01 Pedro Alves <palves@redhat.com>
4302 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4304 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 * remote.c (async_remote_interrupt_twice): Make it static.
4308 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4310 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4312 * ia64-linux-tdep.c: Include <ctype.h>.
4313 (ia64_linux_stap_is_single_operand): New function.
4314 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4316 2013-06-28 Tom Tromey <tromey@redhat.com>
4318 * Makefile.in (version.c): Use version.in, not
4320 * common/create-version.sh: Likewise.
4321 * common/version.in: Move...
4322 * version.in: ...here.
4324 2013-06-28 Pedro Alves <palves@redhat.com>
4326 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4328 * utils.h (pagination_enabled): Declare.
4330 2013-06-28 Pedro Alves <palves@redhat.com>
4332 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4333 Move higher up in file.
4335 2013-06-28 Tom Tromey <tromey@redhat.com>
4337 * tracepoint.c (deprecated_readline_begin_hook)
4338 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4341 2013-06-28 Pedro Alves <palves@redhat.com>
4344 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4345 checking if they're available.
4346 * value.c (value_available_contents_eq): Change comment.
4347 * value.h (value_available_contents_eq): Expand comment.
4349 2013-06-27 Tom Tromey <tromey@redhat.com>
4351 * target.c (find_run_target): Remove.
4352 * target.h (find_run_target): Remove.
4354 2013-06-27 Tom Tromey <tromey@redhat.com>
4356 * corelow.c (core_gdbarch): Now static.
4358 2013-06-27 Tom Tromey <tromey@redhat.com>
4360 * target.c (target_struct_index): Remove.
4362 2013-06-27 Pedro Alves <palves@redhat.com>
4364 * infrun.c: Remove comment describing the 'stepping over runtime
4365 loader dynamic symbol resolution code' mechanism; moved to
4368 2013-06-27 Pedro Alves <palves@redhat.com>
4370 * exceptions.c (catch_command_errors): Remove spurious space.
4371 * exceptions.h (catch_command_errors): Second parameter is "arg",
4374 2013-06-27 Yao Qi <yao@codesourcery.com>
4376 * common/create-version.sh: Update comments. Handle the case
4377 that TARGET_ALIAS is empty.
4379 2013-06-26 Pedro Alves <palves@redhat.com>
4381 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4384 2013-06-26 Pedro Alves <palves@redhat.com>
4386 * infrun.c: Update comments on stepping over runtime loader
4387 dynamic symbol resolution code.
4389 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4391 * ax-gdb.h (union exp_element): Forward declare.
4392 * parser-defs.h: Include expression.h.
4394 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4396 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4398 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4400 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4402 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4404 Fix trace-status to output proper start-time and stop-time.
4405 * tracepoint.c (trace_status_command): Fix type of printf arg to
4406 prevent improper type conversion.
4407 (trace_status_mi): Likewise.
4409 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4411 * mips-tdep.c (mips_next_pc): Fix a typo.
4413 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4415 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4417 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4418 Yao Qi <yao@codesourcery.com>
4420 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4421 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4422 * mi/mi-main.c (print_variable_or_computed): New function.
4423 (mi_cmd_trace_frame_collected): New function.
4424 * tracepoint.c (find_trace_state_variable_by_number): New.
4425 (struct traceframe_info): Move to tracepoint.h
4426 (struct collection_list): Likewise.
4427 (do_collect_symbol): Include locals and arguments in the
4428 collected variables list.
4429 (clear_collection_list): Clear wholly collected variables list
4430 and computed variables list.
4431 (append_exp): New function.
4432 (encode_actions_1): Include variables in the wholly
4433 collected variables list. Include memory ranges and
4434 full-fledged expressions in the computed expressions list.
4435 (encode_actions): Move some code to ...
4436 Return the cleanup chain.
4437 (encode_actions_rsp): ... here. New function.
4438 (get_traceframe_location, get_traceframe_info): Remove static.
4439 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4440 (struct collection_list): Moved from tracepoint.c. Add two
4441 new fields 'wholly_collected' and 'computed'.
4442 (find_trace_state_variable_by_number): Declare.
4443 (encode_actions): Adjust declaration.
4444 (encode_actions_rsp): Declare.
4445 (get_traceframe_info, get_traceframe_location): Declare.
4447 * NEWS: Mention new MI command -trace-frame-collected.
4449 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4450 Yao Qi <yao@codesourcery.com>
4452 * ctf.c (ctf_traceframe_info): Push trace state variables
4453 present in the trace data into the traceframe info object.
4454 * breakpoint.c (DEF_VEC_I): Remove.
4455 * common/filestuff.c (DEF_VEC_I): Likewise.
4456 * dwarf2loc.c (DEF_VEC_I): Likewise.
4457 * mi/mi-main.c (DEF_VEC_I): Likewise.
4458 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4459 * features/traceframe-info.dtd: Add tvar element and its
4461 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4462 (build_traceframe_info): Push trace state variables present in
4463 the trace data into the traceframe info object.
4464 (traceframe_info_start_tvar): New function.
4465 (tvar_attributes): New.
4466 (traceframe_info_children): Add "tvar" element.
4467 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4469 * NEWS: Mention the change in GDB and GDBserver.
4471 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4472 Yao Qi <yao@codesourcery.com>
4474 * tracepoint.c (trace_dump_command): Move code to ...
4475 (get_traceframe_location): ... here. New.
4477 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4478 Yao Qi <yao@codesourcery.com>
4480 * tracepoint.c (trace_dump_command): GDB emits an error
4481 instead of a warning when a traceframe is not selected.
4483 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4484 Yao Qi <yao@codesourcery.com>
4486 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4487 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4489 (do_clear_collection_list, init_collection_list): New.
4490 (encode_actions): Add local variables 'tracepoint_list' and
4491 'stepping_list'. Call init_collection_list and make cleanup
4492 which calls do_clear_collection_list. Don't call
4493 clear_collection_list.
4494 (_initialize_tracepoint): Delete references to
4495 'tracepoint_list' and 'stepping_list'.
4497 2013-06-25 Tom Tromey <tromey@redhat.com>
4499 * common/create-version.sh (date): Use "$", not "$$" in sed
4502 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4504 * NEWS (New targets): Add entry for TI MSP430.
4506 2013-06-25 Yao Qi <yao@codesourcery.com>
4508 * remote.c (remote_start_remote): Move code to upload tsv
4511 2013-06-25 Yao Qi <yao@codesourcery.com>
4512 Hui Zhu <hui@codesourcery.com>
4513 Pedro Alves <palves@redhat.com>
4515 PR breakpoints/15075
4516 PR breakpoints/15434
4517 * breakpoint.c (bpstat_stop_status): Call
4518 b->ops->after_condition_true.
4519 (update_dprintf_command_list): Don't append "continue" command
4520 to the command list of dprintf breakpoint.
4521 (base_breakpoint_after_condition_true): New function.
4522 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4523 (dprintf_after_condition_true): New function.
4524 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4525 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4527 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4529 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4530 (ALLDEPFILES): Add msp430-tdep.c.
4531 * configure.tgt (msp430*-*-elf): New target.
4532 * msp430-tdep.c: New file.
4534 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4536 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4537 microMIPS synthetic symbols.
4539 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4541 * objfiles.h (pc_in_section): New prototype.
4542 (in_plt_section): Remove name argument, replace prototype with
4543 static inline function.
4544 * mips-tdep.h: Include "objfiles.h".
4545 (in_mips_stubs_section): New function.
4546 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4547 in_solib_call_trampoline member.
4548 (hppa_in_solib_call_trampoline): Remove name argument.
4549 * objfiles.c (pc_in_section): New function.
4550 (in_plt_section): Remove function.
4551 * mips-linux-tdep.c: Include "objfiles.h".
4552 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4553 name argument. Return 1 rather than the low 16-bit halfword of
4554 any instruction examined.
4555 (mips_linux_in_dynsym_resolve_code): Update
4556 mips_linux_in_dynsym_stub call accordingly.
4557 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4558 rather than an equivalent hand-coded sequence.
4559 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4560 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4561 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4562 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4564 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4565 on call to tdep->in_solib_call_trampoline.
4566 (hppa_in_solib_call_trampoline): Remove name argument, update
4567 according to in_plt_section change.
4568 (hppa_skip_trampoline_code): Update according to in_plt_section
4570 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4571 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4573 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4574 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4575 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4576 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4577 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4578 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4579 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4580 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4581 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4582 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4583 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4584 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4585 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4587 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4589 * common/create-version.sh: Fix expansion of $host_alias
4590 and $target_alias in generation of HOST_NAME and TARGET_NAME
4593 2013-06-24 Tom Tromey <tromey@redhat.com>
4595 * common/create-version.sh: New file.
4596 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4598 (HFILES_NO_SRCDIR): Use common/version.h.
4599 * version.in: Move to ...
4600 * common/version.in: ... here. Replace date with "DATE".
4601 * version.h: Move to ...
4602 * common/version.h: ... here.
4604 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4606 * gdb/gnulib/Makefile.in: Update date in copyright header.
4607 * gdb/gnulib/configure.ac: Ditto.
4608 * gdb/gnulib/update-gnulib.sh: Ditto.
4610 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4612 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4613 "gdb/gnulib/import".
4615 2013-06-21 Will Newton <will.newton@linaro.org>
4617 * doublest.c (ldfrexp): Remove function.
4618 (convert_doublest_to_floatformat): Call frexpl instead of
4621 2013-06-21 Will Newton <will.newton@linaro.org>
4623 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4624 * gnulib/aclocal.m4: Regenerate.
4625 * gnulib/config.in: Regenerate.
4626 * gnulib/configure: Regenerate.
4627 * gnulib/import/Makefile.am: Update.
4628 * gnulib/import/Makefile.in: Update.
4629 * gnulib/import/m4/gnulib-cache.m4: Update.
4630 * gnulib/import/m4/gnulib-comp.m4: Update.
4631 * gnulib/import/float+.h: Import.
4632 * gnulib/import/float.c: Import.
4633 * gnulib/import/float.in.h: Import.
4634 * gnulib/import/fpucw.h: Import.
4635 * gnulib/import/frexp.c: Import.
4636 * gnulib/import/frexpl.c: Import.
4637 * gnulib/import/isnan.c: Import.
4638 * gnulib/import/isnand-nolibm.h: Import.
4639 * gnulib/import/isnand.c: Import.
4640 * gnulib/import/isnanl-nolibm.h: Import.
4641 * gnulib/import/isnanl.c: Import.
4642 * gnulib/import/itold.c: Import.
4643 * gnulib/import/m4/exponentd.m4: Import.
4644 * gnulib/import/m4/exponentl.m4: Import.
4645 * gnulib/import/m4/float_h.m4: Import.
4646 * gnulib/import/m4/fpieee.m4: Import.
4647 * gnulib/import/m4/frexp.m4: Import.
4648 * gnulib/import/m4/frexpl.m4: Import.
4649 * gnulib/import/m4/isnand.m4: Import.
4650 * gnulib/import/m4/isnanl.m4: Import.
4651 * gnulib/import/m4/math_h.m4: Import.
4652 * gnulib/import/math.c: Import.
4653 * gnulib/import/math.in.h: Import.
4655 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4657 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4658 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4659 signature_INTEL_edx comparisons.
4661 2013-06-20 Doug Evans <dje@google.com>
4664 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4665 All callers updated.
4666 (open_dwp_file): If we can't find the dwp file, search the basename
4667 in debug-file-directory.
4669 * dwarf2read.c (struct dwp_file): Fix comment.
4670 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4672 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4675 2013-06-20 Yao Qi <yao@codesourcery.com>
4677 * breakpoint.c (create_breakpoint): Fix code indentation.
4679 2013-06-20 Yao Qi <yao@codesourcery.com>
4681 * breakpoint.c (create_breakpoints_sal_default): Remove
4682 parameter 'lsal'. Update declaration.
4683 (bkpt_create_breakpoints_sal): Caller update.
4684 (tracepoint_create_breakpoints_sal): Likewise.
4686 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4687 Yao Qi <yao@codesourcery.com>
4689 * NEWS: Mention the new option '--skip-unavailable' of command
4690 -data-list-register-values.
4691 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4692 --skip-unavailable option. Adjust to use output_register.
4693 (output_register): Add new 'skip_unavailable' parameter.
4696 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4698 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4699 common/i386-gcc-cpuid.h.
4700 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4701 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4702 Copy the latest version from upstream gcc.
4703 * common/linux-btrace.c: Include i386-cpuid.h.
4704 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4706 (cpu_supports_btrace): Likewise.
4707 * go32-nat.c: Include i386-cpuid.h.
4708 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4710 2013-06-19 Doug Evans <dje@google.com>
4712 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4713 (get_section_index): Ditto.
4715 2013-06-19 Tom Tromey <tromey@redhat.com>
4717 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4720 2013-06-18 Doug Evans <dje@google.com>
4722 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4724 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4725 Move test of cu_index closer to use. Print complaint if cu_index
4728 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4730 * machoread.c (oso_vector): Delete this global.
4731 (macho_register_oso): Add new parameter "oso_vector_ptr".
4732 Use it instead of the "oso_vector" global.
4733 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4734 (macho_symfile_read): Use a local oso_vector, to be free'ed
4735 at the end of this function, in place of the old "oso_vector"
4736 global. Update various function calls accordingly. Use one
4737 single cleanup chain for the entire function.
4739 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4741 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4742 DWARF2_PER_OBJFILE by uses of DATA instead.
4744 2013-06-18 Tom Tromey <tromey@redhat.com>
4746 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4748 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4749 Special case signals other than GDB_SIGNAL_TRAP.
4750 (explains_signal_watchpoint): New function.
4751 (base_breakpoint_explains_signal): Add 'sig' argument.
4752 (initialize_breakpoint_ops): Set 'explains_signal' method for
4754 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4756 (bpstat_explains_signal): Likewise.
4757 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4759 2013-06-18 Tom Tromey <tromey@redhat.com>
4761 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4763 2013-06-18 Tom Tromey <tromey@redhat.com>
4765 * python/python.c (finish_python_initialization): Decref
4766 'pythondir' on failure path as well.
4768 2013-06-18 Tom Tromey <tromey@redhat.com>
4771 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4772 after taking bits_to_skip into account. Sign extend byte_offset.
4773 * utils.h (gdb_sign_extend): Declare.
4774 * utils.c (gdb_sign_extend): New function.
4776 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4778 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4780 2013-06-17 Pierre Muller <muller@sourceware.org>
4782 * corelow.c (core_open): Print GDB signal name instead of target
4785 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4787 * .gitignore: Add /gcore.
4789 2013-06-13 Doug Evans <dje@google.com>
4791 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4792 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4794 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4796 * stack.c (backtrace_command_1): Fix indentation.
4798 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4800 * window-nat.c (thread_rec): Add missing empty line after
4801 local variable declaration.
4803 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4805 * windows-nat.c (thread_rec): Revert format used to print
4806 error code returned by SuspendThread from %d back to %u.
4808 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4810 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4812 (get_windows_debug_event): Likewise, for all debug traces.
4814 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4816 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4819 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4820 Yao Qi <yao@codesourcery.com>
4822 * mi/mi-main.c (get_register): Remove declaration.
4823 (output_register): Declare.
4824 (mi_cmd_data_list_register_values): Remove local variable
4825 'tuple_cleanup'. Move some code into output_register.
4826 (get_register): Renamed to ...
4827 (output_register): ... this. Output the register's
4828 "number" ui_out tuple here.
4830 2013-06-07 Pedro Alves <palves@redhat.com>
4832 * darwin-nat.c: Fix formating in copyright header.
4833 * darwin-nat.h: Likewise.
4834 * gnu-nat.c: Likewise.
4835 * machoread.c: Likewise.
4837 2013-06-07 Pedro Alves <palves@redhat.com>
4840 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4841 static. Output a global target description pointer.
4842 (init_registers_${name}): Adjust to initialize a
4843 target description structure.
4845 2013-06-07 Will Newton <will.newton@linaro.org>
4847 * printcmd.c (build_address_symbolic): Call
4848 gdbarch_addr_bits_remove for text minimal symbols.
4850 2013-06-07 Will Newton <will.newton@linaro.org>
4852 * MAINTAINERS: Add myself to Write After Approval.
4854 2013-06-07 Yao Qi <yao@codesourcery.com>
4856 * tracepoint.c (start_tracing): Move code to ...
4857 (trace_reset_local_state): ... here. New.
4858 (disconnect_tracing): Don't call set_current_traceframe,
4859 set_tracepoint_num, and set_traceframe_context. Call
4860 trace_reset_local_state instead.
4861 (tfile_close): Call trace_reset_local_state.
4862 * ctf.c (ctf_close): Likewise.
4863 * remote.c (remote_close): Likewise.
4864 * tracepoint.h (trace_reset_local_state): Declare.
4866 2013-06-06 Doug Evans <dje@google.com>
4868 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4869 and fix header docs.
4871 2013-06-05 Doug Evans <dje@google.com>
4872 Keith Seitz <keiths@redhat.com>
4875 * cp-namespace.c (find_symbol_in_baseclass): Call
4876 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4877 Check result of call to lookup_symbol_static.
4878 Call lookup_static_symbol_aux unconditionally.
4879 Call check_typedef on base types before accessing them.
4880 (cp_lookup_nested_symbol): Fix comment.
4882 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4884 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4885 minimal symbols pointing to function descriptors.
4887 2013-06-05 Tom Tromey <tromey@redhat.com>
4889 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4891 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4892 Pedro Alves <palves@redhat.com>
4894 * remote.c (remote_wait_as): Restore signal handler before returning
4895 when GDB gets a notification.
4897 2013-06-04 Gary Benson <gbenson@redhat.com>
4900 * breakpoint.h (handle_solib_event): Moved function declaration
4902 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4903 (bpstat_stop_status): Pass new argument to handle_solib_event.
4904 * solib.h (update_solib_breakpoints): New function declaration.
4905 (handle_solib_event): Moved function declaration from
4907 * solib.c (update_solib_breakpoints): New function.
4908 (handle_solib_event): Moved function from breakpoint.c.
4909 Updated to call solib_ops->handle_event if not NULL.
4910 * solist.h (target_so_ops): New fields "update_breakpoints" and
4912 * infrun.c (set_stop_on_solib_events): New function.
4913 (_initialize_infrun): Use the above for "set
4914 stop-on-solib-events".
4915 (handle_inferior_event): Pass new argument to handle_solib_event.
4916 * solib-svr4.c (probe.h): New include.
4917 (svr4_free_library_list): New forward declaration.
4918 (probe_action): New enum.
4919 (probe_info): New struct.
4920 (probe_info): New static variable.
4921 (NUM_PROBES): New definition.
4922 (svr4_info): New fields "using_xfer", "probes_table" and
4924 (free_probes_table): New function.
4925 (free_solib_list): New function.
4926 (svr4_pspace_data_cleanup): Free probes table and solib list.
4927 (svr4_copy_library_list): New function.
4928 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4929 (svr4_read_so_list): New parameter "prev_lm".
4930 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4931 (svr4_current_sos): New function.
4932 (probe_and_action): New struct.
4933 (hash_probe_and_action): New function.
4934 (equal_probe_and_action): Likewise.
4935 (register_solib_event_probe): Likewise.
4936 (solib_event_probe_at): Likewise.
4937 (solib_event_probe_action): Likewise.
4938 (solist_update_full): Likewise.
4939 (solist_update_incremental): Likewise.
4940 (disable_probes_interface_cleanup): Likewise.
4941 (svr4_handle_solib_event): Likewise.
4942 (svr4_update_solib_event_breakpoint): Likewise.
4943 (svr4_update_solib_event_breakpoints): Likewise.
4944 (svr4_create_solib_event_breakpoints): Likewise.
4945 (enable_break): Free probes table before creating breakpoints.
4946 Use svr4_create_solib_event_breakpoints to create breakpoints.
4947 (svr4_solib_create_inferior_hook): Free the solib list.
4948 (_initialize_svr4_solib): Initialise
4949 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4951 2013-06-04 Gary Benson <gbenson@redhat.com>
4953 * target.h (target_ops): New field
4954 "to_augmented_libraries_svr4_read".
4955 (target_augmented_libraries_svr4_read): New macro.
4956 * target.c (update_current_target): Handle
4957 to_augmented_libraries_svr4_read.
4958 * remote.c (remote_state): New field
4959 "augmented_libraries_svr4_read".
4960 (remote_augmented_libraries_svr4_read_feature): New function.
4961 (remote_protocol_features): Add entry for
4962 "augmented-libraries-svr4-read".
4963 (remote_augmented_libraries_svr4_read): New function.
4964 (init_remote_ops): Initialize
4965 remote_ops.to_augmented_libraries_svr4_read.
4967 2013-06-04 Gary Benson <gbenson@redhat.com>
4971 2013-06-04 Gary Benson <gbenson@redhat.com>
4973 * objfiles.h (inhibit_section_map_updates): New function
4975 (resume_section_map_updates): Likewise.
4976 (resume_section_map_updates_cleanup): Likewise.
4977 * objfiles.c (objfile_pspace_info): Removed field
4978 "objfiles_changed_p". New fields "new_objfiles_available",
4979 "section_map_dirty" and "inhibit_updates".
4980 (allocate_objfile): Set new_objfiles_available.
4981 (free_objfile): Set section_map_dirty.
4982 (objfile_relocate1): Likewise.
4983 (in_plt_section): Likewise.
4984 (find_pc_section): Update the conditions under which the
4985 section map will be updated.
4986 (inhibit_section_map_updates): New function.
4987 (resume_section_map_updates): Likewise.
4988 (resume_section_map_updates_cleanup): Likewise.
4990 2013-06-04 Gary Benson <gbenson@redhat.com>
4992 * probe.h (get_probe_argument_count): New declaration.
4993 (evaluate_probe_argument): Likewise.
4994 * probe.c (get_probe_argument_count): New function.
4995 (evaluate_probe_argument): Likewise.
4996 (probe_safe_evaluate_at_pc): Use the above new functions.
4998 2013-06-04 Alan Modra <amodra@gmail.com>
5000 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5001 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5002 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5003 target mem reads on optional insns.
5004 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5005 ppc_insns_match_pattern calls.
5006 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5007 Add match for power7 thread safety insns, and new order of
5008 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5009 invocation in comment, and update rest of comment.
5010 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5011 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5012 (ppc64_standard_linkage2_target): Update insn offsets.
5013 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5014 stubs first. Update calls.
5016 2013-06-04 Yao Qi <yao@codesourcery.com>
5018 * solib.c (solib_find): Don't need dir separator if path has
5021 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5023 Revert (indirectly causes a SIGSEGV):
5024 * machoread.c (macho_symfile_read): Assign first cleanup to
5027 2013-06-03 Yao Qi <yao@codesourcery.com>
5029 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5030 mi-parse.c. Make them static.
5031 (mi_all_values): Likewise.
5032 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5033 mi_parse_print_values. Make it external.
5034 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5035 Remove the declarations.
5036 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5037 * mi/mi-parse.h (mi_parse_print_values): Declare.
5038 * mi/mi-cmd-stack.c: Include mi-parse.h.
5039 (parse_print_values): Remove
5040 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5041 of parse_print_values.
5042 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5044 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5045 Yao Qi <yao@codesourcery.com>
5047 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5048 (encode_actions): Move code to ...
5049 (all_tracepoint_actions_and_cleanup): ... here. New.
5050 (trace_dump_command): Likewise.
5052 2013-05-30 Tom Tromey <tromey@redhat.com>
5054 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5056 2013-05-30 Tom Tromey <tromey@redhat.com>
5058 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5059 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5060 'old_chain' argument. Add 'parser_result' argument.
5061 (gdb_xml_create_parser_and_cleanup): Remove old version.
5062 (gdb_xml_parse_quick): Update.
5063 (xml_process_xincludes): Update.
5064 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5067 2013-05-30 Tom Tromey <tromey@redhat.com>
5069 * probe.c (collect_probes): Check arguments for NULL before
5070 calling compile_rx_or_error.
5071 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5074 2013-05-30 Tom Tromey <tromey@redhat.com>
5076 * infrun.c (adjust_pc_after_break): Introduce an outer null
5079 2013-05-30 Tom Tromey <tromey@redhat.com>
5081 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5083 2013-05-30 Tom Tromey <tromey@redhat.com>
5085 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5086 for 'old_chain'. Do not check 'head' before processing
5089 2013-05-30 Tom Tromey <tromey@redhat.com>
5091 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5094 2013-05-30 Tom Tromey <tromey@redhat.com>
5096 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5097 inner scope. Unconditionally call do_cleanups.
5099 2013-05-30 Tom Tromey <tromey@redhat.com>
5101 * source.c (find_and_open_source): Call do_cleanups.
5103 2013-05-30 Tom Tromey <tromey@redhat.com>
5105 * linux-thread-db.c (thread_db_load_search): Unconditionally
5108 2013-05-30 Tom Tromey <tromey@redhat.com>
5110 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5111 for 'cleanup'; instead use a later one.
5113 2013-05-30 Tom Tromey <tromey@redhat.com>
5115 * python/py-breakpoint.c (bppy_get_commands): Use
5116 explicit, unconditional return.
5117 * python/py-frame.c (frapy_read_var): Likewise.
5118 * python/python.c (gdbpy_decode_line): Likewise.
5120 2013-05-30 Tom Tromey <tromey@redhat.com>
5122 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5123 do_cleanups on all return paths.
5125 2013-05-30 Tom Tromey <tromey@redhat.com>
5127 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5129 2013-05-30 Tom Tromey <tromey@redhat.com>
5131 * stabsread.c (read_struct_type): Call do_cleanups along
5134 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5136 * mips-linux-tdep.c: Adjust formatting throughout.
5138 2013-05-30 Tom Tromey <tromey@redhat.com>
5140 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5141 along all return paths.
5143 2013-05-30 Tom Tromey <tromey@redhat.com>
5145 * symfile.c (find_separate_debug_file): Call do_cleanups
5146 along all return paths.
5148 2013-05-30 Tom Tromey <tromey@redhat.com>
5150 * symtab.c (search_symbols): Introduce a null cleanup for
5153 2013-05-30 Tom Tromey <tromey@redhat.com>
5155 * python/py-value.c (valpy_binop): Call do_cleanups before
5158 2013-05-30 Tom Tromey <tromey@redhat.com>
5160 * python/py-prettyprint.c (print_children): Remove extra
5163 2013-05-30 Tom Tromey <tromey@redhat.com>
5165 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5168 2013-05-30 Tom Tromey <tromey@redhat.com>
5170 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5171 along all return paths.
5173 2013-05-30 Tom Tromey <tromey@redhat.com>
5175 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5178 2013-05-30 Tom Tromey <tromey@redhat.com>
5180 * varobj.c (c_value_of_root): Call do_cleanups along all
5183 2013-05-30 Tom Tromey <tromey@redhat.com>
5185 * tracepoint.c (trace_dump_command): Unconditionally call
5188 2013-05-30 Tom Tromey <tromey@redhat.com>
5190 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5191 do_cleanups earlier.
5193 2013-05-30 Tom Tromey <tromey@redhat.com>
5195 * machoread.c (macho_symfile_read): Assign first cleanup to
5198 2013-05-30 Tom Tromey <tromey@redhat.com>
5200 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5202 2013-05-30 Tom Tromey <tromey@redhat.com>
5204 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5206 2013-05-30 Tom Tromey <tromey@redhat.com>
5208 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5209 call discard_cleanups.
5210 (inf_ptrace_attach): Likewise.
5212 2013-05-30 Tom Tromey <tromey@redhat.com>
5214 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5216 (mips_initialize): Likewise.
5217 (common_open): Call do_cleanups.
5219 2013-05-30 Tom Tromey <tromey@redhat.com>
5221 * utils.c (internal_vproblem): Call do_cleanups.
5223 2013-05-30 Tom Tromey <tromey@redhat.com>
5225 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5227 2013-05-30 Tom Tromey <tromey@redhat.com>
5229 * cli/cli-script.c (setup_user_args): Don't return after error.
5231 2013-05-30 Tom Tromey <tromey@redhat.com>
5233 * somread.c (som_symtab_read): Call do_cleanups.
5235 2013-05-30 Tom Tromey <tromey@redhat.com>
5237 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5239 2013-05-30 Tom Tromey <tromey@redhat.com>
5241 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5242 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5243 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5244 * source.c (show_substitute_path_command): Call do_cleanups.
5245 (unset_substitute_path_command, set_substitute_path_command):
5247 * symfile.c (load_command): Call do_cleanups.
5249 2013-05-30 Tom Tromey <tromey@redhat.com>
5251 * contrib/cleanup_check.py: New file.
5252 * contrib/gcc-with-excheck: Add option parsing.
5254 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5256 * windows-nat.c (windows_delete_thread): Add missing space
5259 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5261 * inferior.c (top level): Include tilde.h.
5262 (add_inferior_command): Call tilde_expand on the value of 'exec'
5265 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5266 Yao Qi <yao@codesourcery.com>
5268 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5270 (encode_actions): Likewise.
5271 * remote.c (remote_download_tracepoint): Caller update.
5272 * tracepoint.h (encode_actions): Update declaration.
5274 2013-05-30 Pedro Alves <palves@redhat.com>
5276 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5279 2013-05-30 Yao Qi <yao@codesourcery.com>
5281 * remote.c (remote_check_symbols): Remove unused parameter
5284 (remote_start_remote, remote_new_objfile): Caller update.
5286 2013-05-30 Yao Qi <yao@codesourcery.com>
5288 * mi/mi-cmds.c (mi_cmds): Define MI command
5289 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5292 2013-05-29 Pedro Alves <palves@redhat.com>
5294 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5295 (remote_insert_watchpoint, remote_remove_watchpoint)
5296 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5297 (remote_verify_memory, compare_sections_command)
5298 (remote_search_memory): Set the general process/thread on the
5301 2013-05-29 Pedro Alves <palves@redhat.com>
5303 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5304 (_initialize_aarch64_tdep): Don't call
5305 initialize_tdesc_aarch64_without_fpu.
5306 * features/Makefile (WHICH): Remove reference to
5307 aarch64-without-fpu.
5308 * features/aarch64-without-fpu.c: Delete file.
5309 * regformats/aarch64-without-fpu.dat: Delete file.
5311 2013-05-28 Yao Qi <yao@codesourcery.com>
5313 * tracepoint.c (stringify_collection_list): Remove parameter
5315 (encode_actions): Caller update. Remove local variables.
5317 2013-05-24 Yao Qi <yao@codesourcery.com>
5319 * tracepoint.c (TFILE_PID): Remove.
5320 (tfile_open): Don't add thread and inferior.
5321 (tfile_close): Don't set 'inferior_ptid'. Don't call
5322 exit_inferior_silent.
5323 (tfile_thread_alive): Remove.
5324 (init_tfile_ops): Don't set field 'to_thread_alive' of
5327 2013-05-23 Doug Evans <dje@google.com>
5329 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5331 2013-05-23 Pedro Alves <palves@redhat.com>
5333 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5334 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5335 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5336 Only define if HAVE_SOCKETS is defined.
5337 * configure.ac: Check for sys/socket.h.
5338 * config.in, configure: Regenerate.
5340 2013-05-23 Pedro Alves <palves@redhat.com>
5342 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5343 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5344 printing uint32_t variables.
5346 2013-05-23 Pedro Alves <palves@redhat.com>
5348 * NEWS: Mention GDBserver range stepping support.
5350 2013-05-23 Yao Qi <yao@codesourcery.com>
5351 Pedro Alves <palves@redhat.com>
5353 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5355 * infcmd.c (step_once, until_next_command): Enable range stepping.
5356 * infrun.c (displaced_step_prepare): Disable range stepping.
5357 (resume): Disable range stepping if stepping over a breakpoint or
5358 we have software watchpoints. If range stepping is enabled,
5359 assert the thread is in the stepping range.
5360 (clear_proceed_status_thread): Clear may_range_step.
5361 (handle_inferior_event): Disable range stepping as soon as we know
5362 the thread that hit the event. Re-enable it whenever we're going
5363 to step with a step range.
5364 * remote.c (struct vCont_action_support) <r>: New field.
5365 (use_range_stepping): New global.
5366 (remote_vcont_probe): Handle 'r' action.
5367 (append_resumption): Append an 'r' action if the thread may range
5369 (show_range_stepping): New function.
5370 (set_range_stepping): New function.
5371 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5372 'set range-stepping' and 'show range-stepping' commands.
5373 * NEWS: Mention range stepping, the new vCont;r action, and the
5374 new "set/show range-stepping" commands.
5376 2013-05-23 Yao Qi <yao@codesourcery.com>
5377 Pedro Alves <palves@redhat.com>
5379 * remote.c (struct vCont_action_support): New struct.
5380 (struct remote_state) <support_vCont_t>: Remove field.
5381 <vCont_actions_support>: New field.
5382 (remote_vcont_probe, remote_stop_ns): Update.
5384 2013-05-23 Yao Qi <yao@codesourcery.com>
5385 Pedro Alves <palves@redhat.com>
5387 * gdbthread.h (pc_in_thread_step_range): New declaration.
5388 * thread.c (pc_in_thread_step_range): New function.
5389 * infrun.c (handle_inferior_event): Use it.
5391 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5393 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5396 2013-05-22 Keith Seitz <keiths@redhat.com>
5398 * ada-lang.c (is_known_support_routine): Add explicit free of
5399 'func_name' from find_frame_funname.
5400 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5401 for func_name from find_frame_funname.
5402 * python/py-frame.c (frapy_name): Add explicit free of
5403 'name' from find_frame_funname.
5404 * stack.c (find_frame_funname): Add comment explaining that
5405 funcp must be freed by the caller.
5406 Return copy of symbol names instead of pointers.
5407 (print_frame): Add a cleanup for 'funname' from
5409 * stack.h (find_frame_funname): Remove "const" from
5410 'funname' parameter.
5412 2013-05-22 Tom Tromey <tromey@redhat.com>
5415 * c-valprint.c (c_value_print): Use value_addr for
5416 references. Convert back to reference type with value_ref.
5418 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5420 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5421 unloaded DLL, it will be done by handle_solib_event. See
5422 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5425 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5427 * ui-out.c: Create typedef ui_out_level_p and define vector
5428 operations for that type.
5429 (struct ui_out): Use a vector instead of an array.
5430 (current_level): Return level from a vector.
5431 (push_level): Create a level in a vector.
5432 (pop_level): Delete a level in a vector.
5433 (ui_out_new): Create initial level zero level, and store in a
5435 (ui_out_destroy): Add vector cleanup.
5437 2013-05-22 Pedro Alves <palves@redhat.com>
5439 * python/python-internal.h (gdb_Py_DECREF): Tag with
5440 "ARI: editCase function".
5442 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5444 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5446 2013-05-21 Pedro Alves <palves@redhat.com>
5448 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5449 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5450 * python/py-utils.c (py_decref): Don't check for NULL before
5453 2013-05-21 Pedro Alves <palves@redhat.com>
5455 * python/py-utils.c (py_decref): Remove extra braces.
5456 (gdb_pymodule_addobject): Remove extra braces.
5457 * python-internal.h (gdb_Py_DECREF): New static inline function.
5458 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5460 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5462 * breakpoints.c (detach_breakpoints): Do not
5463 detach breakpoints locations with loc_type bp_loc_other.
5465 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5467 Workaround Python 2.6.
5468 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5471 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5473 Code cleanup: constification.
5474 * solib.c (solib_ops): Make return type and ops variable type const.
5475 (set_solib_ops): Make the new_ops parameter and ops variable const.
5476 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5477 (solib_add, solib_keep_data_in_core, clear_solib)
5478 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5479 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5481 * solib.h (set_solib_ops): Make the new_ops parameter const.
5483 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5485 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5487 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5488 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5489 (SYSTEM_GDBINIT_FILES): New variables.
5490 (all): Add stamp-system-gdbinit.
5491 (stamp-system-gdbinit): New rule.
5492 (clean-system-gdbinit, install-system-gdbinit)
5493 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5494 (install-only): Add dependency on install-system-gdbinit.
5495 (uninstall): Add dependency on uninstall-system-gdbinit.
5496 (clean): Add dependency on clean-system-gdbinit.
5497 * system-gdbinit/elinos.py: New file.
5498 * system-gdbinit/wrs-linux.py: New file.
5500 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5502 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5504 2013-05-21 Hui Zhu <hui@codesourcery.com>
5506 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5507 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5508 * mi/mi-cmd-break.c (ctype.h): New include.
5509 (gdb_obstack.h): New include.
5510 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5511 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5512 (mi_cmd_dprintf_insert): New.
5513 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5514 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5516 2013-05-20 Tom Tromey <tromey@redhat.com>
5518 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5520 2013-05-20 Tom Tromey <tromey@redhat.com>
5522 * python/py-value.c (valpy_get_dynamic_type): Simplify
5523 dynamic_type assignment. Use Py_XINCREF.
5525 2013-05-20 Tom Tromey <tromey@redhat.com>
5527 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5529 2013-05-20 Tom Tromey <tromey@redhat.com>
5531 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5532 (gdbpy_selected_frame): Move object-construction code
5535 2013-05-20 Tom Tromey <tromey@redhat.com>
5537 * python/py-arch.c (gdbpy_initialize_arch): Use
5538 gdb_pymodule_addobject.
5539 * python/py-block.c (gdbpy_initialize_blocks): Use
5540 gdb_pymodule_addobject.
5541 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5542 gdb_pymodule_addobject.
5543 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5544 gdb_pymodule_addobject.
5545 * python/py-event.c (gdbpy_initialize_event_generic): Use
5546 gdb_pymodule_addobject.
5547 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5548 gdb_pymodule_addobject.
5549 * python/py-evts.c (add_new_registry): Use
5550 gdb_pymodule_addobject.
5551 (gdbpy_initialize_py_events): Likewise.
5552 * python/py-finishbreakpoint.c
5553 (gdbpy_initialize_finishbreakpoints): Use
5554 gdb_pymodule_addobject.
5555 * python/py-frame.c (gdbpy_initialize_frames): Use
5556 gdb_pymodule_addobject.
5557 * python/py-function.c (gdbpy_initialize_functions): Use
5558 gdb_pymodule_addobject.
5559 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5560 gdb_pymodule_addobject.
5561 * python/py-infthread.c (gdbpy_initialize_thread): Use
5562 gdb_pymodule_addobject.
5563 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5564 gdb_pymodule_addobject.
5565 * python/py-param.c (gdbpy_initialize_parameters): Use
5566 gdb_pymodule_addobject.
5567 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5568 gdb_pymodule_addobject.
5569 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5570 gdb_pymodule_addobject.
5571 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5572 gdb_pymodule_addobject.
5573 * python/py-type.c (gdbpy_initialize_types): Use
5574 gdb_pymodule_addobject.
5575 * python/py-utils.c (gdb_pymodule_addobject): New function.
5576 * python/py-value.c (gdbpy_initialize_values): Use
5577 gdb_pymodule_addobject.
5578 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5579 * python/python.c (_initialize_python): Use
5580 gdb_pymodule_addobject.
5582 2013-05-20 Tom Tromey <tromey@redhat.com>
5584 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5585 * python/py-param.c (get_set_value, get_show_value): Use
5587 * python/python.c (start_type_printers, apply_type_printers):
5588 Use explicit decrefs.
5590 2013-05-20 Tom Tromey <tromey@redhat.com>
5592 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5595 2013-05-20 Tom Tromey <tromey@redhat.com>
5597 * python/python.c (gdbpy_run_events): Decref the result
5598 of PyObject_CallObject.
5600 2013-05-20 Tom Tromey <tromey@redhat.com>
5602 * python/py-symtab.c (set_sal): Use
5603 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5604 (symtab_and_line_to_sal_object): Update.
5606 2013-05-20 Tom Tromey <tromey@redhat.com>
5608 * python/py-param.c (compute_enum_values): Decref 'item'.
5610 2013-05-20 Tom Tromey <tromey@redhat.com>
5612 * mi/mi-main.c: Include python-internal.h.
5613 (mi_cmd_list_features): Check gdb_python_initialized.
5614 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5615 (python_inferior_exit, python_new_objfile, add_thread_object)
5616 (delete_thread_object, py_free_inferior): Check
5617 gdb_python_initialized.
5618 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5619 gdb_python_initialized.
5620 * python/py-type.c (save_objfile_types): Check
5621 gdb_python_initialized.
5622 * python/python-internal.h (gdb_python_initialized): Declare.
5623 * python/python.c (ensure_python_env): Throw exception if
5624 Python not initialized.
5625 (before_prompt_hook, source_python_script_for_objfile)
5626 (start_type_printers, apply_type_printers,
5627 free_type_printers): Check gdb_python_initialized.
5628 * varobj.c (varobj_get_display_hint)
5629 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5630 (install_new_value_visualizer, varobj_set_visualizer)
5631 (value_get_print_value): Check gdb_python_initialized.
5633 2013-05-20 Tom Tromey <tromey@redhat.com>
5635 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5637 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5638 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5640 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5642 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5644 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5646 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5647 init function to return 'int'.
5648 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5649 Return 'int'. Check errors.
5650 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5652 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5653 Return 'int'. Check errors.
5654 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5656 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5658 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5660 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5662 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5664 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5666 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5668 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5670 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5672 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5674 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5676 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5678 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5680 * python/python-internal.h (gdbpy_initialize_auto_load,
5681 gdbpy_initialize_values, gdbpy_initialize_frames,
5682 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5683 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5684 gdbpy_initialize_blocks, gdbpy_initialize_types,
5685 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5686 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5687 gdbpy_initialize_finishbreakpoints,
5688 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5689 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5690 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5691 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5692 gdbpy_initialize_signal_event,
5693 gdbpy_initialize_breakpoint_event,
5694 gdbpy_initialize_continue_event,
5695 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5696 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5697 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5698 * python/python.c (gdb_python_initialized): New global.
5699 (gdbpy_initialize_events): Return 'int'. Check errors.
5700 (_initialize_python): Check errors. Set
5701 gdb_python_initialized.
5703 2013-05-20 Tom Tromey <tromey@redhat.com>
5705 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5706 Decref the reslut of PyObject_CallMethod.
5708 2013-05-20 Tom Tromey <tromey@redhat.com>
5710 * python/py-event.c (gdbpy_initialize_event_generic): Return
5711 early if PyType_Ready fails.
5713 2013-05-20 Tom Tromey <tromey@redhat.com>
5715 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5716 as 'default' in the switch.
5718 2013-05-20 Tom Tromey <tromey@redhat.com>
5720 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5721 get_addr_from_python calls out of TRY_CATCH.
5722 (infpy_write_memory, infpy_search_memory): Likewise.
5723 * python/py-utils.c (get_addr_from_python): Return negative
5724 value on error. Use TRY_CATCH.
5725 * python/python-internal.h (get_addr_from_python): Use
5726 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5728 2013-05-20 Tom Tromey <tromey@redhat.com>
5730 * python/py-event.c (evpy_emit_event): Decref the
5731 result of PyObject_CallFunctionObjArgs.
5733 2013-05-20 Tom Tromey <tromey@redhat.com>
5735 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5738 2013-05-20 Tom Tromey <tromey@redhat.com>
5740 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5742 2013-05-20 Tom Tromey <tromey@redhat.com>
5744 * python/py-event.h (gdbpy_initialize_event_generic): Use
5745 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5746 * python/py-evts.c (add_new_registry): Use
5747 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5748 * python/python-internal.h
5749 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5751 2013-05-20 Tom Tromey <tromey@redhat.com>
5753 * python/py-arch.c (archpy_disassemble): Update.
5754 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5755 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5756 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5757 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5759 (GDB_PY_HANDLE_EXCEPTION): Update.
5760 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5762 2013-05-20 Tom Tromey <tromey@redhat.com>
5764 * python/python-internal.h (events_object_type): Remove.
5766 2013-05-20 Tom Tromey <tromey@redhat.com>
5768 * python/py-event.h (evpy_emit_event): Use
5769 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5770 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5773 2013-05-20 Tom Tromey <tromey@redhat.com>
5775 * py-evtregistry.c (create_event_object): Decref
5776 eventregistry_object if PyList_New fails.
5778 2013-05-20 Tom Tromey <tromey@redhat.com>
5780 * py-cmd.c (gdbpy_string_to_argv): Check result of
5783 2013-05-20 Tom Tromey <tromey@redhat.com>
5785 * python/python.c (before_prompt_hook): Add cleanup to
5788 2013-05-20 Tom Tromey <tromey@redhat.com>
5790 * python/py-function.c (fnpy_init): Decref result of
5791 PyObject_GetAttrString.
5793 2013-05-20 Tom Tromey <tromey@redhat.com>
5795 * python/py-threadevent.c (get_event_thread): Use
5796 CPYCHECKER_RETURNS_BORROWED_REF.
5797 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5799 (pspace_to_pspace_object, objfile_to_objfile_object)
5800 (find_thread_object): Use it.
5802 2013-05-20 Tom Tromey <tromey@redhat.com>
5804 * python/py-arch.c (arch_object_type): Use
5805 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5806 * python/py-block.c (block_syms_iterator_object_type):
5807 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5808 * python/py-bpevent.c (breakpoint_event_object_type):
5809 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5810 * python/py-cmd.c (cmdpy_object_type): Use
5811 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5812 * python/py-continueevent.c (continue_event_object_type):
5813 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5814 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5815 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5816 * python/py-events.h (thread_event_object_type):
5817 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5818 * python/py-evtregistry.c (eventregistry_object_type): Use
5819 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5820 * python/py-exitedevent.c (exited_event_object_type):
5821 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5822 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5823 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5824 * python/py-function.c (fnpy_object_type): Use
5825 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5826 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5827 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5828 * python/py-infthread.c (thread_object_type): Use
5829 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5830 * python/py-lazy-string.c (lazy_string_object_type):
5831 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5832 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5833 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5834 * python/py-objfile.c (objfile_object_type): Use
5835 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5836 * python/py-param.c (parmpy_object_type):
5837 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5838 * python/py-progspace.c (pspace_object_type):
5839 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5840 * python/py-signalevent.c (signal_event_object_type):
5841 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5842 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5843 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5844 * python/py-type.c (type_object_type, field_object_type)
5845 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5846 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5848 (value_object_type, block_object_type, symbol_object_type)
5849 (event_object_type, stop_event_object_type, breakpoint_object_type)
5850 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5852 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5854 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5855 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5857 2013-05-20 Doug Evans <dje@google.com>
5859 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5861 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5862 reading_dwo_directly.
5863 (struct signatured_type): New member dwo_unit.
5864 (struct die_reader_specs): New member comp_dir.
5865 (create_signatured_type_table_from_index): Use malloc for
5866 all_type_units instead of objfile's obstack.
5867 (create_all_type_units): Ditto.
5868 (fill_in_sig_entry_from_dwo_entry): New function.
5869 (add_type_unit): New function.
5870 (lookup_dwo_signatured_type): New function.
5871 (lookup_dwp_signatured_type): New function.
5872 (lookup_signatured_type): New arg cu. All callers updated.
5873 (init_cu_die_reader): Initialize comp_dir.
5874 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5875 Change assert of matching type signatures to call error on mismatch.
5876 (lookup_dwo_unit): Add assert.
5877 (init_tu_and_read_dwo_dies): New function.
5878 (init_cutu_and_read_dies): Call it.
5879 (build_type_unit_groups): Handle case of no type unit groups created.
5880 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5881 (lookup_dwo_cutu): Tweak complaint.
5882 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5883 (dwarf2_per_objfile_free): Free all_type_units.
5885 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5887 * windows-nat.c (handle_unload_dll): Add missing empty line.
5889 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5891 * dwarf2read.c (prototyped_function_p): New function.
5892 (read_subroutine_type): Use it.
5894 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5896 * rs6000-aix-tdep.c: De-indent some example code provided
5899 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5901 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5902 region is ok for a hardware watchpoint using the new ptrace interface
5905 2013-05-17 Doug Evans <dje@google.com>
5907 * NEWS: Mention new maintenance commands check-symtabs, and
5908 expand-symtabs, and renamed check-psymtabs.
5909 * psymtab.c (maintenance_check_psymtabs): Renamed from
5910 maintenance_check_symtabs. Only process already-expanded symbol
5912 (_initialize_psymtab): Update.
5913 * symmisc.c (maintenance_check_symtabs): New function.
5914 (maintenance_expand_name_matcher): New function
5915 (maintenance_expand_file_matcher): New function
5916 (maintenance_expand_symtabs): New function.
5917 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5920 2013-05-17 Tom Tromey <tromey@redhat.com>
5922 * python/py-inferior.c (infpy_read_memory): Don't call
5923 PyErr_SetString if PyObject_New fails.
5924 * python/py-frame.c (frame_info_to_frame_object): Don't call
5925 PyErr_SetString if PyObject_New fails.
5927 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5929 * acinclude.m4: Add check for dlopen in libdl.
5930 * configure.ac: Ditto.
5931 * configure: Regenerate.
5933 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5935 * frame.c (frame_stash): Convert to htab.
5936 (frame_addr_hash): New function.
5937 (frame_addr_hash_eq): New function.
5938 (frame_stash_create): Convert function to create
5940 (frame_stash_add): Convert function to add an entry to a hash
5942 (frame_stash_find): Convert function to search the hash table.
5943 (frame_stash_invalidate): Convert function to empty the hash
5945 (get_frame_id): Only add to stash if a frame_id is created.
5946 (_initialize_frame): Call frame_stash_create.
5948 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5950 * configure.ac: Ensure MIG is available when building for GNU Hurd
5952 * configure: Regenerate.
5954 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5956 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5958 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5960 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5961 all cleanups are done before returning from this function.
5963 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5965 * utils.h: #include "exceptions.h".
5966 (enum errors): Remove partial declaration.
5968 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5970 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5971 * gdbarch.h, gdbarch.c: Regenerate.
5972 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5975 * rs6000-aix-tdep.h: New file.
5976 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5977 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5979 (struct field_info, struct ld_info_desc): New types.
5980 (ld_info32_desc, ld_info64_desc): New static constants.
5981 (struct ld_info): New type.
5982 (rs6000_aix_extract_ld_info): New function.
5983 (rs6000_aix_shared_library_to_xml): Likewise.
5984 (rs6000_aix_ld_info_to_xml): Likewise.
5985 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5986 (rs6000_aix_init_osabi): Add call to
5987 set_gdbarch_core_xfer_shared_libraries_aix.
5988 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5989 Remove "xml-utils.h" include.
5990 (LdInfo): Delete typedef.
5991 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5993 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5994 Adjust code accordingly.
5995 (rs6000_core_ldinfo): Delete, folded into
5996 rs6000_aix_core_xfer_shared_libraries_aix.
5997 (rs6000_xfer_shared_library): Delete.
5998 (rs6000_xfer_shared_libraries): Reimplement.
6000 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6002 * record.c (record_goto_cmdlist): New.
6003 (cmd_record_goto): Split into this ...
6004 (cmd_record_goto_begin): ... this
6005 (cmd_record_goto_end): ... and this.
6006 (_initialize_record): Change "record goto" to prefix command.
6007 Add commands for "record goto begin" and "record goto end".
6008 Add an alias for "record goto start" to "record goto begin".
6010 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6012 * linespec.c (convert_linespec_to_sals): New comment for
6013 SOURCE_FILENAME assignment.
6015 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6017 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6020 2013-05-14 Tom Tromey <tromey@redhat.com>
6022 * eval.c (parse_and_eval_long): Make 'exp' const.
6023 * value.h (parse_and_eval_long): Update.
6025 2013-05-14 Tom Tromey <tromey@redhat.com>
6027 * ui-file.c (gdb_fopen): Make arguments const.
6028 * ui-file.h (gdb_fopen): Make arguments const.
6030 2013-05-14 Tom Tromey <tromey@redhat.com>
6032 * remote.c (remote_set_trace_notes): Make arguments const.
6033 * target.c (update_current_target): Update cast.
6034 * target.h (to_set_trace_notes): Make arguments const.
6036 2013-05-14 Tom Tromey <tromey@redhat.com>
6038 * go32-nat.c (go32_terminal_info): Make 'args' const.
6039 * inferior.h (child_terminal_info): Update.
6040 * inflow.c (child_terminal_info): Make 'args' const.
6041 * target.c (default_terminal_info): Make 'args' const.
6042 (debug_to_terminal_save_ours): Likewise.
6043 * target.h (struct target_ops) <to_terminal_info>: Make argument
6046 2013-05-13 Tom Tromey <tromey@redhat.com>
6048 * gcore.c (create_gcore_bfd): Make 'filename' const.
6049 * gcore.h (create_gcore_bfd): Make 'filename' const.
6050 * record-full.c (record_full_save): Make 'recfilename' const.
6051 * target.c (target_save_record): Make 'filename' const.
6052 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6054 (target_save_record): Likewise.
6056 2013-05-13 Tom Tromey <tromey@redhat.com>
6059 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6060 ranges section has been read.
6062 2013-05-13 Tom Tromey <tromey@redhat.com>
6065 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6066 STRUCTOP_PTR>: Return a not_lval value for
6067 EVAL_AVOID_SIDE_EFFECTS.
6068 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6069 for EVAL_AVOID_SIDE_EFFECTS.
6071 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6073 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6074 floating point registers to register type before storing
6076 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6079 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6080 Tom Tromey <tromey@redhat.com>
6082 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6084 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6086 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6087 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6088 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6089 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6091 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6092 Tom Tromey <tromey@redhat.com>
6095 * configure: Rebuild.
6096 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6099 2013-05-10 Pedro Alves <palves@redhat.com>
6101 * remote.c (_initialize_remote): Fix spelling of
6102 qXfer:traceframe-info:read packet in packet config command.
6104 2013-05-10 David Taylor <dtaylor@emc.com>
6108 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6109 "QTro" at start of packet.
6111 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6113 * solib-aix.c (solib_aix_relocate_section_addresses):
6114 For the .bss section action, apply the same offset as
6117 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6119 * solib-aix.c (solib_aix_relocate_section_addresses):
6120 Remove FIXME comment.
6122 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6125 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6126 New functions, directly copied from sparc-sol-thread.c.
6127 * sparc-sol-thread.c: Delete.
6128 * configure.ac: Remove code handling sparc-solaris-thread.c.
6129 * configure: Regenerate.
6131 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6133 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6135 (backtrace_command): Add "no-filters" option parsing.
6136 (_initialize_stack): Alter help to reflect "no-filters" option.
6137 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6138 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6139 (py-frame.o): Add target
6140 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6142 * python/python.h: Add new frame filter constants, and flag enum.
6143 (apply_frame_filter): Add definition.
6144 * python/python.c (apply_frame_filter): New non-Python
6146 * python/py-utils.c (py_xdecref): New function.
6147 (make_cleanup_py_xdecref): Ditto.
6148 * python/py-objfile.c: Declare frame_filters dictionary.
6149 (objfpy_dealloc): Add frame_filters dealloc.
6150 (objfpy_new): Initialize frame_filters attribute.
6151 (objfile_to_objfile_object): Ditto.
6152 (objfpy_get_frame_filters): New function.
6153 (objfpy_set_frame_filters): New function.
6154 * python/py-progspace.c: Declare frame_filters dictionary.
6155 (pspy_dealloc): Add frame_filters dealloc.
6156 (pspy_new): Initialize frame_filters attribute.
6157 (pspacee_to_pspace_object): Ditto.
6158 (pspy_get_frame_filters): New function.
6159 (pspy_set_frame_filters): New function.
6160 * python/py-framefilter.c: New file.
6161 * python/lib/gdb/command/frame_filters.py: New file.
6162 * python/lib/gdb/frames.py: New file.
6163 * python/lib/gdb/__init__.py: Initialize global frame_filters
6165 * python/lib/gdb/FrameDecorator.py: New file.
6166 * python/lib/gdb/FrameIterator.py: New file.
6167 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6168 * mi/mi-cmds.h: Declare.
6169 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6170 --no-frame-filter logic, and Python frame filter logic.
6171 (stack_enable_frame_filters): New function.
6172 (parse_no_frame_option): Ditto.
6173 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6175 (mi_cmd_stack_list_locals): Ditto.
6176 (mi_cmd_stack_list_args): Ditto.
6177 (mi_cmd_stack_list_variables): Ditto.
6178 * NEWS: Add frame filter note.
6180 2013-05-09 Doug Evans <dje@google.com>
6182 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6183 All callers updated.
6184 (syms_from_objfile): Ditto. Make static.
6185 (symbol_file_add_with_addrs): Renamed from
6186 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6187 num_offsets. All callers updated.
6188 * symfile.h (syms_from_objfile): Delete.
6190 * symfile.c (decrement_reading_symtab): Add assert.
6191 (increment_reading_symtab): Ditto.
6193 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6195 * source.c (forward_search_command): Replace call to getc
6197 (reverse_search_command): Likewise.
6199 2013-05-08 Doug Evans <dje@google.com>
6201 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6204 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6206 * sol-thread.c (info_cb): Factorize the code a little.
6208 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6210 * sol-thread.c (info_cb): Rework the output of the "maintenance
6211 info sol-threads" command a bit.
6213 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6215 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6216 Replace ti.ti_startfunc by ti.ti_pc.
6218 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6220 * solib-aix.c (solib_aix_free_library_list): New function
6221 for the case where HAVE_LIBEXPAT is not defined.
6223 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6225 PR breakpoints/15413:
6226 * breakpoint.c (condition_completer): Simplify the code to
6227 disconsider multiple locations of breakpoints when completing the
6228 "condition" command.
6230 2013-05-07 Pierre Muller <muller@sourceware.org>
6232 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6233 instead of <sys/wait.h>.
6235 2013-05-07 Pierre Muller <muller@sourceware.org>
6237 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6238 trailing new line from warning message.
6240 2013-05-07 Pierre Muller <muller@sourceware.org>
6242 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6243 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6245 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6247 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6248 error message (ARI fix).
6250 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6252 * features/library-list-aix.dtd: Replace library-list by
6254 * rs6000-nat.c: Replace library-list by library-list-aix
6256 * solib-aix.c: Likewise.
6258 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6260 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6261 Renames TARGET_OBJECT_AIX_LIBRARIES.
6262 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6263 TARGET_OBJECT_LIBRARIES_AIX throughout.
6264 * solib-aix.c: Likwise.
6266 2013-05-07 Yao Qi <yao@codesourcery.com>
6268 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6269 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6271 2013-05-07 Yao Qi <yao@codesourcery.com>
6273 * solib-dsbt.c (enable_break): Declare.
6274 (dsbt_current_sos): Remove call to enable_break2.
6275 (enable_break2): Rename to enable_break. Set solib breakpoint
6276 on '_dl_debug_state'.
6277 (enable_break): Remove.
6279 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6281 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6282 debug state prior to replicating existing hardware watchpoints or
6285 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6287 * gcore.c (gcore_create_callback): Ignore sections with
6288 separate_debug_objfile_backlink != NULL.
6290 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6291 Andrew Jenner <andrew@codesourcery.com>
6292 Chung-Lin Tang <cltang@codesourcery.com>
6293 Julian Brown <julian@codesourcery.com>
6295 Based on the nios2-elf port from Altera Corporation.
6297 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6299 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6300 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6301 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6302 * nios2-tdep.h: New.
6303 * nios2-tdep.c: New.
6304 * nios2-linux-tdep.c: New.
6305 * features/Makefile (WHICH): Add nios2-linux.
6306 (nios2-linux-expedite): Set.
6307 * features/nios2-cpu.xml: New.
6308 * features/nios2.xml: New.
6309 * features/nios2-linux.xml: New.
6310 * features/nios2.c: New (autogenerated).
6311 * features/nios2-linux.c: New (autogenerated).
6312 * regformats/nios2-linux.dat: New (autogenerated).
6313 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6316 2013-05-06 Doug Evans <dje@google.com>
6318 * symfile.c: Whitespace cleanup.
6320 * solist.h (struct target_so_ops): New member clear_so.
6321 * solib-svr4.c (svr4_clear_so): New function.
6322 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6323 * solib.c (clear_so): Renamed from free_so_symbols.
6324 All callers updated. Call target clear_so if it exists.
6326 2013-05-06 Tom Tromey <tromey@redhat.com>
6328 * ada-lang.c (ada_value_primitive_packed_val): Don't
6330 * value.c (set_value_parent): Incref the new parent and decref
6332 (value_copy, value_primitive_field): Use set_value_parent.
6334 2013-05-06 Tom Tromey <tromey@redhat.com>
6336 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6337 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6339 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6340 * dwarf2read.c (write_constant_as_bytes)
6341 (dwarf2_fetch_constant_bytes): New functions.
6343 2013-05-06 Tom Tromey <tromey@redhat.com>
6345 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6347 (dwarf2_const_value_attr): Update.
6349 2013-05-06 Tom Tromey <tromey@redhat.com>
6351 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6352 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6353 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6356 2013-05-06 Tom Tromey <tromey@redhat.com>
6358 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6361 2013-05-06 Doug Evans <dje@google.com>
6363 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6364 * stabsread.h (process_one_symbol): Update declaration.
6365 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6366 * elfread.c (elf_symfile_relocate_probe): Ditto.
6367 * psymtab.c (relocate_psymtabs): Ditto.
6368 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6369 (objfile_relocate): Ditto.
6370 * objfiles.h (objfile_relocate): Update declaration.
6371 * symfile.c (relative_addr_info_to_section_offsets): Constify
6373 (default_symfile_offsets): Ditto.
6374 (syms_from_objfile_1): Constify offsets parameter.
6375 (syms_from_objfile): Ditto.
6376 (symbol_file_add_with_addrs_or_offsets): Ditto.
6377 (symfile_map_offsets_to_segments): Constify data parameter.
6378 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6379 delta parameters of member relocate.
6380 (struct sym_probe_fns): Constify new_offsets,
6381 delta parameters of member sym_relocate_probe.
6382 (struct sym_fns): Constify section_addr_info parameter of member
6384 (relative_addr_info_to_section_offsets): Update declaration.
6385 (default_symfile_offsets): Ditto.
6386 (syms_from_objfile): Ditto.
6387 (symfile_map_offsets_to_segments): Ditto.
6389 * symfile.c (syms_from_objfile_1): Use correct section count when
6390 objfile->sf == NULL.
6392 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6394 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6396 2013-05-06 Doug Evans <dje@google.com>
6398 * psympriv.h (struct partial_symtab): Augment comment for member
6401 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6403 Reimplement shared library support on ppc-aix...
6404 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6405 * features/library-list-aix.dtd: New file.
6406 * solib-aix.h, solib-aix.c: New file.
6407 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6408 (rs6000_find_toc_address_hook): Delete.
6409 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6410 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6411 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6413 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6414 (vmap_symtab, fixup_breakpoints): Delete.
6415 (rs6000_xfer_shared_libraries): New function.
6416 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6417 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6418 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6419 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6420 (rs6000_xfer_shared_library): New function.
6421 (find_toc_address): Delete.
6422 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6423 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6424 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6425 before creating minimal symbol. Adjust function description
6427 (scan_xcoff_symtab): Replace call to
6428 prim_record_minimal_symbol_and_info by call to
6429 record_minimal_symbol.
6430 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6431 around default_symfile_offsets.
6432 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6433 powerpc-aix targets.
6434 * config/rs6000/nm-rs6000.h: Delete.
6435 * config/powerpc/aix.mh (NAT_FILE): Delete.
6436 (NATDEPFILES): Remove xcoffsolib.o.
6437 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6438 (ALL_TARGET_OBS): Add solib-aix.o.
6439 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6440 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6441 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6442 * xcoffsolib.h, xcoffsolib.c: Delete.
6444 * solib.c (reload_shared_libraries): Remove reference to
6445 SOLIB_CREATE_INFERIOR_HOOK.
6446 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6447 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6448 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6450 * corelow.c (deprecated_core_resize_section_table): Delete.
6451 * exec.c: Remove include of xcoffsolib.h".
6452 (map_vmap, vmap): Delete.
6453 (exec_close_1): Remove references to vmap.
6454 (exec_file_attach): Remove vmap handling code, and reference
6455 to DEPRECATED_IBM6000_TARGET.
6456 (bfdsec_to_vmap): Delete.
6457 (exec_files_info): Remove block of code handling VMAP.
6458 * infcmd.c (post_create_inferior): Remove reference to
6459 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6460 * infrun.c (follow_exec): Remove reference to
6461 SOLIB_CREATE_INFERIOR_HOOK.
6462 * stack.c (print_frame): Remove reference to PC_SOLIB.
6463 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6464 (dsbt_relocate_main_executable): Likewise.
6465 * solib-frv.c (frv_current_sos): Likewise.
6467 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6469 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6470 to target_write_memory and target_read_memory.
6472 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6474 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6475 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6477 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6479 * darwin-nat.c: Replace all "%x" instances in format strings
6480 into "0x%x" throughout.
6482 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6484 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6485 gdb_assert by call to MACH_CHECK_ERROR.
6486 (darwin_attach_pid): Raise an error rather than a failed
6487 assertion when various system calls failed. Report a warning
6488 instead of raising a failed assertion when PREV_NOT is not NULL
6489 after call to mach_port_request_notification.
6490 (darwin_ptrace_me): Raise an error rather than a failed
6491 assertion when read returns nonzero.
6493 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6495 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6497 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6499 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6501 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6503 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6504 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6505 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6506 a stale cleanup. Fix double free of NAME.
6508 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6510 * windows-nat.c (windows_delete_thread): Accept an additional
6511 argument, the thread's exit code, and announce thread death when
6512 print_thread_events is non-zero and we are deleting a thread that
6513 is not the main thread.
6514 (get_windows_debug_event): Pass thread exit code to
6515 windows_delete_thread.
6517 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6519 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6520 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6521 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6522 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6523 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6524 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6525 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6526 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6527 (gdbarch_tdep): New struct.
6528 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6530 (v850e3v5_register_name): New function.
6531 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6532 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6533 code handling the struct return conventions for the RH850 ABI.
6535 (v850_eight_byte_align_p): New function.
6536 (v850_push_call_dummy): Push structs by value, not by reference
6537 for the RH850 ABI. Add support for eight byte alignment.
6538 (v850_dbtrap_breakpoint_from_pc): New function.
6539 (v850_gdbarch_init): Add ABI detection code. Register
6540 v850e3v5_register_name for the v850e3v5 architecture. Set the
6541 number of registers for v850e3v5. Register
6542 v850_dbtrap_breakpoint_from_pc as appropriate.
6543 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6545 2013-05-03 Doug Evans <dje@google.com>
6547 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6548 of bfd_count_sections.
6549 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6550 * symfile.c (default_symfile_offsets): Ditto.
6551 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6552 one entry, not bfd_count_sections entries.
6554 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6556 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6557 `save' and `restore' register groups. Don't include SPL
6558 or SPH in these groups.
6559 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6560 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6561 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6562 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6563 dwarf2_append_unwinders().
6565 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6567 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6568 ignore SIGINT and SIGTRAP in case these internal signals are
6571 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6573 * darwin-nat.c (darwin_read_write_inferior): Change types
6574 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6575 of copy_count to "mach_msg_type_number_t".
6576 (darwin_read_dyld_info): Change type of parameter
6577 rdaddr to "gdb_byte *".
6579 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6581 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6582 of &info->load_map from "char *" to "gdb_byte *".
6584 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6586 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6587 from "char *" to "gdb_byte *".
6588 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6590 2013-04-30 Doug Evans <dje@google.com>
6592 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6593 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6594 DWO stub. If DWO isn't found, just use stub.
6595 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6597 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6598 calling init_cutu_and_read_dies.
6600 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6602 * target-descriptions.c (maint_print_c_tdesc_cmd):
6603 Add case to parse structures as register types and
6606 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6608 * MAINTAINERS (Write After Approval): Add myself to the list.
6610 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6612 * sol-thread.c (rw_common): Change type of parameter "buf"
6614 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6615 rw_common to "gdb_byte *" instead of "char *".
6617 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6619 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6620 of local variable msym to const struct bound_minimal_symbol.
6621 Adjust use accordingly.
6622 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6624 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6626 * i386gnu-nat.c (CREG_OFFSET): New macro.
6627 (creg_offset): New array.
6628 (CREG_ADDR): Use creg_offset instead of reg_offset.
6630 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6632 * mep-tdep.c (mep_write_pc): Delete.
6633 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6634 Add call to set_gdbarch_pc_regnum.
6636 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6638 * common/filestuff.c: Replace #include <dirent.h> by
6639 #include "gdb_dirent.h".
6641 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6643 * common/filestuff.c: Replace #include <sys/stat.h> by
6644 #include "gdb_stat.h".
6646 2013-04-29 Pierre Muller <muller@sourceware.org>
6648 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6649 editCase function rule.
6650 (get_DW_AT_signature_type): Likewise.
6652 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6654 * m32r-tdep.c (m32r_write_pc): Delete.
6655 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6656 Add call to set_gdbarch_pc_regnum.
6658 2013-04-29 Pierre Muller <muller@sourceware.org>
6660 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6662 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6664 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6666 2013-04-28 Yao Qi <yao@codesourcery.com>
6668 * solib-dsbt.c (fetch_loadmap): Re-indent.
6669 (displacement_from_map, enable_break2): Likewise.
6670 (dsbt_relocate_section_addresses): Likewise.
6672 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6676 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6679 * dwarf2read.c (process_full_comp_unit): Always create a static
6682 2013-04-25 Hui Zhu <hui@codesourcery.com>
6684 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6685 to loc->cmd_bytecode.
6687 2013-04-24 Doug Evans <dje@google.com>
6689 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6691 2013-04-22 Keith Seitz <keiths@redhat.com>
6693 * tracepoint.c (trace_save): Call the writer's start method.
6695 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6698 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6701 2013-04-23 Tom Tromey <tromey@redhat.com>
6703 * common/filestuff.c: Check USE_WIN32API before including
6705 (HAVE_F_GETFD): New define.
6706 (mark_cloexec): Check HAVE_F_GETFD.
6707 (gdb_open_cloexec): Change 'mode' to unsigned long.
6708 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6709 (gdb_pipe_cloexec): Check HAVE_PIPE.
6710 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6713 2013-04-23 Hui Zhu <hui@codesourcery.com>
6716 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6718 2013-04-23 Hui Zhu <hui@codesourcery.com>
6721 * breakpoint.c (dprintf_print_recreate): New.
6722 (save_breakpoints): Let it not save dprintf commands.
6723 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6725 2013-04-22 Tom Tromey <tromey@redhat.com>
6728 * Makefile.in (SFILES): Add filestuff.c
6729 (COMMON_OBS): Add filestuff.o.
6730 (filestuff.o): New target.
6731 * auto-load.c (auto_load_objfile_script_1): Use
6733 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6734 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6735 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6736 * common/agent.c (gdb_connect_sync_socket): Use
6738 * common/filestuff.c: New file.
6739 * common/filestuff.h: New file.
6740 * common/linux-osdata.c (linux_common_core_of_thread)
6741 (command_from_pid, commandline_from_pid, print_source_lines)
6742 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6743 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6745 * common/linux-procfs.c (linux_proc_get_int)
6746 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6747 * config.in, configure: Rebuild.
6748 * configure.ac: Don't check for sys/socket.h. Check for
6750 * corelow.c (core_open): Use gdb_open_cloexec.
6751 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6752 * fork-child.c (fork_inferior): Call close_most_fds.
6753 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6754 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6755 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6756 Use gdb_fopen_cloexec.
6757 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6759 (linux_async_pipe): Use gdb_pipe_cloexec.
6760 * remote-fileio.c (remote_fileio_func_open): Use
6762 * remote.c (remote_file_put, remote_file_get): Use
6764 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6766 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6767 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6768 * solib.c (solib_find): Use gdb_open_cloexec.
6769 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6770 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6771 (tfile_open): Use gdb_open_cloexec.
6772 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6773 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6774 * xml-support.c (xml_fetch_content_from_file): Use
6776 * main.c (captured_main): Call notice_open_fds.
6778 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6780 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6781 'char *' to 'gdb_byte *'.
6782 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6785 2013-04-22 Yao Qi <yao@codesourcery.com>
6787 * infrun.c: Fix typo in comment.
6789 2013-04-22 Andrew Haley <aph@redhat.com>
6791 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6794 2013-04-20 Yao Qi <yao@codesourcery.com>
6796 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6797 'char *' to 'gdb_byte *'. Cast the return value of
6798 'bt_ctf_get_char_array' to 'gdb_byte *'.
6800 2013-04-19 Pedro Alves <palves@redhat.com>
6802 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6804 * configure: Regenerate.
6806 2013-04-19 Pedro Alves <palves@redhat.com>
6808 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6811 2013-04-19 Pedro Alves <palves@redhat.com>
6813 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6814 Change type of 'myaddr' parameter to gdb_byte pointer.
6815 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6816 to 'long long' pointer instead of to 'unsigned long long'.
6817 (monitor_write_memory_block, monitor_read_memory_single)
6818 (monitor_read_memory): Change type of 'myaddr' parameter to
6821 2013-04-19 Pedro Alves <palves@redhat.com>
6823 * record.c (validate_history_size): Make parameter 'setting'
6826 2013-04-19 Pedro Alves <palves@redhat.com>
6828 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6831 2013-04-19 Pedro Alves <palves@redhat.com>
6833 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6836 2013-04-19 Pedro Alves <palves@redhat.com>
6838 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6839 * ada-tasks.c (read_fat_string_value): Likewise.
6841 2013-04-19 Pedro Alves <palves@redhat.com>
6843 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6844 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6845 'offset', and adjust.
6847 2013-04-19 Pedro Alves <palves@redhat.com>
6849 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6850 (read_index_from_section): Add cast to 'char *'.
6852 2013-04-19 Pedro Alves <palves@redhat.com>
6854 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6856 2013-04-19 Pedro Alves <palves@redhat.com>
6858 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6860 2013-04-19 Pedro Alves <palves@redhat.com>
6862 * record-full.c (record_full_get_bookmark): Change local 'ret'
6863 type to char * and add cast to gdb_byte *.
6864 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6866 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6868 2013-04-19 Pedro Alves <palves@redhat.com>
6870 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6871 * python/py-prettyprint.c (print_string_repr): Change type of
6872 'output' local to char *. Add cast to gdb_byte * in
6873 LA_PRINT_STRING call.
6874 (print_children): Change type of 'output' local to char *.
6875 * python/py-value.c (valpy_string): Add cast to const char * in
6876 PyUnicode_Decode call.
6878 2013-04-19 Pedro Alves <palves@redhat.com>
6880 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6881 and change its type to 'const char *'. Adjust.
6882 (mips_send_packet): Add cast to 'char *', and remove cast to
6884 (mips_receive_packet): Remove cast to 'unsigned char *'.
6885 (mips_load_srec): Use bfd_byte.
6886 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6887 (pmon_checkset): Make 'value' parameter unsigned.
6889 2013-04-19 Pedro Alves <palves@redhat.com>
6891 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6893 2013-04-19 Pedro Alves <palves@redhat.com>
6895 * remote.c (remote_write_bytes_aux, compare_sections_command)
6897 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6898 (remote_hostio_readlink, remote_bfd_iovec_pread)
6899 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6900 binary buffer, and char when buffer is used as string.
6901 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6902 (trace_save, tfile_open, traceframe_walk_blocks)
6903 (tfile_fetch_registers): Likewise.
6905 2013-04-19 Pedro Alves <palves@redhat.com>
6907 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6908 buffer and size_t size. Adjust.
6909 * ser-base.h (ser_base_write): Adjust.
6910 * ser-go32.c (cnts): Change type to size_t.
6911 (dos_write): Change prototype -- take 'void *'
6912 buffer and size_t size. Adjust.
6913 (dos_info): Print elements of 'cnts' as unsigned long.
6914 * serial.c (serial_write): Likewise.
6915 * serial.h (serial_write): Adjust.
6916 (struct serial_ops) <write>: Change prototype -- take 'void *'
6917 buffer and size_t size. Adjust.
6919 2013-04-19 Pedro Alves <palves@redhat.com>
6921 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6923 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6925 2013-04-19 Pedro Alves <palves@redhat.com>
6927 * alpha-tdep.c (alpha_extract_return_value): Use
6928 regcache_cooked_read_unsigned to read 'v0'.
6930 2013-04-19 Pedro Alves <palves@redhat.com>
6932 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6933 parameters 'at', 'as' and 'offset' to uint32_t.
6935 2013-04-19 Pedro Alves <palves@redhat.com>
6937 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6938 'is64' to signed 'int'.
6940 2013-04-19 Pedro Alves <palves@redhat.com>
6942 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6945 2013-04-19 Pedro Alves <palves@redhat.com>
6947 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6948 'insnbuf' buffer type to unsigned int[].
6950 2013-04-19 Pedro Alves <palves@redhat.com>
6952 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6954 2013-04-19 Pedro Alves <palves@redhat.com>
6956 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6959 2013-04-19 Pedro Alves <palves@redhat.com>
6961 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6962 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6964 * mips-tdep.c (heuristic_fence_post): Change type to int.
6965 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6967 2013-04-19 Pedro Alves <palves@redhat.com>
6969 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6970 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6971 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6973 2013-04-19 Pedro Alves <palves@redhat.com>
6975 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6976 it to get a string view of the byte buffer.
6977 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6978 type to gdb_byte *. Adjust.
6979 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6980 Change local to char *.
6981 * solib-darwin.c (find_program_interpreter): Change return type to
6983 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6984 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6985 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6986 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6987 * solib-svr4.c (find_program_interpreter): Change return type to
6989 (enable_break): Change local 'interp_name' to char *.
6990 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6991 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6992 (spu_pseudo_register_write_spu): Use char for string buffer.
6994 (info_spu_event_command, info_spu_signal_command): Add casts to
6997 2013-04-19 Pedro Alves <palves@redhat.com>
6999 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7001 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7002 * ada-lang.c (ada_value_assign): Use gdb_byte.
7003 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7004 (alphanbsd_sigtramp_offset): Use gdb_byte.
7005 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7006 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7007 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7008 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7009 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7010 * arm-tdep.c (arm_stub_unwind_sniffer)
7011 (arm_displaced_init_closure): Use gdb_byte.
7012 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7013 (arm_default_thumb_le_breakpoint)
7014 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7015 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7016 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7017 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7018 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7019 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7020 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7021 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7022 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7023 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7024 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7025 (cris_store_return_value, cris_extract_return_value): Use
7027 (constraint): Change type of parameter to char * from signed
7028 char*. Use gdb_byte.
7029 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7030 of local buffer to gdb_byte *.
7031 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7032 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7033 (add_address_entry): Change type of local buffer to gdb_byte[].
7034 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7035 (frv_push_dummy_call): Use gdb_byte.
7036 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7037 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7038 (hppa_hpux_supply_save_state): Use gdb_byte.
7039 * hppa-tdep.c (hppa32_push_dummy_call)
7040 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7041 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7042 (slotN_contents, replace_slotN_contents): Change type of parameter
7044 (fetch_instruction, ia64_pseudo_register_write)
7045 (ia64_register_to_value, ia64_value_to_register)
7046 (ia64_extract_return_value, ia64_store_return_value)
7047 (ia64_push_dummy_call): Use gdb_byte.
7048 * m32c-tdep.c (m32c_return_value): Remove cast.
7049 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7050 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7052 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7053 * mn10300-tdep.c (mn10300_store_return_value)
7054 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7056 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7057 (moxie_process_record): Remove casts.
7058 * ppc-ravenscar-thread.c (supply_register_at_address)
7059 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7060 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7061 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7062 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7063 * remote.c (compare_sections_command): Use gdb_byte.
7064 * score-tdep.c (score7_free_memblock): Change type of parameter to
7066 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7067 gdb_byte *. Use gdb_byte.
7068 (sh_push_dummy_call_fpu): Use gdb_byte.
7069 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7070 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7071 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7072 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7073 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7074 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7075 (sh64_store_return_value, sh64_register_convert_to_virtual):
7076 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7077 (sh64_pseudo_register_write): Use gdb_byte.
7078 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7079 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7081 (irix_current_sos): Use gdb_byte.
7082 * solib-som.c (som_current_sos): Use gdb_byte.
7083 * sparc-ravenscar-thread.c (supply_register_at_address)
7084 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7085 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7086 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7087 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7089 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7091 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7092 * xstormy16-tdep.c (xstormy16_extract_return_value)
7093 (xstormy16_store_return_value): Change parameter type to
7094 'gdb_byte *'. Adjust.
7095 (xstormy16_push_dummy_call): Use gdb_byte.
7096 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7097 (call0_analyze_prologue, execute_code): Use gdb_byte.
7099 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7100 Pedro Alves <palves@redhat.com>
7102 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7105 2013-04-17 Doug Evans <dje@google.com>
7107 * dwarf2read.c (struct signatured_type): New member type.
7108 (struct attribute): Replace member signatured_type with signature.
7109 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7110 (read_call_site_scope): Call follow_die_ref instead of
7111 follow_die_ref_or_sig.
7112 (read_structure_type): Rewrite handling of signatured types.
7113 (read_enumeration_type): Ditto.
7114 (read_attribute_value): Update.
7115 (build_error_marker_type): New function.
7116 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7117 Don't call error for bad types, just build an error marker type.
7118 (dump_die_shallow): Update.
7119 (follow_die_sig_1): Renamed from follow_die_sig.
7120 Don't call error for bad types, instead return NULL.
7121 (follow_die_sig): New function.
7122 (get_signatured_type, get_DW_AT_signature_type): New functions.
7124 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7126 * aarch64-tdep.c (aarch64_write_pc): Removed.
7127 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7130 2013-04-17 Yao Qi <yao@codesourcery.com>
7132 * top.c (print_gdb_configuration): Print configure-time
7133 parameter on using libbabeltrace or not.
7135 2013-04-16 Pedro Alves <palves@redhat.com>
7137 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7139 2013-04-16 Pedro Alves <palves@redhat.com>
7141 * common/glibc_thread_db.h: Update from upstream glibc
7142 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7144 2013-04-16 Pedro Alves <palves@redhat.com>
7146 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7147 * common/glibc_thread_db.h: ... this new file ...
7148 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7150 2013-04-16 Will Newton <will.newton@gmail.com>
7151 Pedro Alves <palves@redhat.com>
7155 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7156 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7159 2013-04-16 Pedro Alves <palves@redhat.com>
7160 Eli Zaretskii <eliz@gnu.org>
7162 * NEWS: Mention "set foo unlimited".
7164 2013-04-15 Doug Evans <dje@google.com>
7166 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7167 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7168 (create_dwo_cu_reader): Renamed from
7169 create_dwo_debug_info_hash_table_reader.
7170 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7171 Remove support for multiple CUs in a DWO file.
7172 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7174 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7176 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7177 (create_dwo_in_dwp): Ditto.
7179 2013-04-15 Tom Tromey <tromey@redhat.com>
7181 * NEWS: Move recent entries into "since 7.6" section.
7183 2013-04-15 Tom Tromey <tromey@redhat.com>
7187 * break-catch-throw.c (struct exception_catchpoint)
7188 <exception_rx, pattern>: New fields.
7189 (fetch_probe_arguments, dtor_exception_catchpoint)
7190 (check_status_exception_catchpoint)
7191 (print_one_detail_exception_catchpoint): New functions.
7192 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7193 Compile regular expression if needed.
7194 (extract_exception_regexp): New function.
7195 (catch_exception_command_1): Use extract_exception_regexp.
7196 (compute_exception): Use fetch_probe_arguments.
7197 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7198 and check_status fields.
7199 * cp-abi.c (cplus_typename_from_type_info): New function.
7200 * cp-abi.h (cplus_typename_from_type_info): Declare.
7201 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7202 * gdb_regex.h (compile_rx_or_error): Declare.
7203 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7205 (init_gnuv3_ops): Set get_type_from_type_info field.
7206 * probe.c (compile_rx_or_error): Move...
7207 * utils.c (compile_rx_or_error): ... here.
7209 2013-04-15 Tom Tromey <tromey@redhat.com>
7213 * break-catch-throw.c (compute_exception): New function.
7214 (exception_funcs): New global.
7215 (_initialize_break_catch_throw): Create $_exception.
7216 * cp-abi.c (cplus_type_from_type_info): New function.
7217 * cp-abi.h (cplus_type_from_type_info): Declare.
7218 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7219 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7220 (gnuv3_get_type_from_type_info): New functions.
7221 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7223 2013-04-15 Tom Tromey <tromey@redhat.com>
7225 * break-catch-throw.c (struct exception_names): New.
7226 (exception_functions): Change type.
7227 (re_set_exception_catchpoint): Look for SDT probes.
7229 2013-04-15 Tom Tromey <tromey@redhat.com>
7232 * break-catch-throw.c (exception_functions): New global.
7233 (gnu_v3_exception_catchpoint_ops): Move earlier.
7234 (struct exception_catchpoint): New.
7235 (classify_exception_breakpoint): Rewrite.
7236 (re_set_exception_catchpoint): New function.
7237 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7238 Allocate a struct exception_catchpoint.
7239 (catch_exception_command_1): Update.
7240 (initialize_throw_catchpoint_ops): Set 're_set' method.
7242 2013-04-15 Tom Tromey <tromey@redhat.com>
7244 * Makefile.in (SFILES): Add break-catch-throw.c
7245 (COMMON_OBS): Add break-catch-throw.o.
7246 * break-catch-throw.c: New file.
7247 * breakpoint.c: Move exception-catching code to new file.
7248 (ep_parse_optional_if_clause): No longer static.
7249 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7251 2013-04-15 Tom Tromey <tromey@redhat.com>
7255 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7256 * c-exp.y (TYPEID): New token.
7257 (exp): Add new TYPEID productions.
7258 (ident_tokens): Add "typeid".
7259 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7260 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7261 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7262 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7263 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7265 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7266 (build_std_type_info_type, gnuv3_get_typeid_type)
7267 (gnuv3_get_typeid): New functions.
7268 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7269 new fields on ABI object.
7270 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7271 * std-operator.def (OP_TYPEID): New.
7273 2013-04-15 Tom Tromey <tromey@redhat.com>
7275 * elfread.c (elf_symtab_read): Install versioned symbol under
7276 unversioned name as well.
7278 2013-04-15 Tom Tromey <tromey@redhat.com>
7281 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7282 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7283 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7284 (gdb_demangle): New function.
7285 * cp-support.h (gdb_demangle): Declare.
7286 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7287 (dwarf2_name): Use gdb_demangle.
7288 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7289 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7291 (gnuv3_print_method_ptr): Use gdb_demangle.
7292 * jv-lang.c (java_demangle): Use gdb_demangle.
7293 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7294 * language.c (unk_lang_demangle): Use gdb_demangle.
7295 * symtab.c (symbol_find_demangled_name)
7296 (demangle_for_lookup): Use gdb_demangle.
7298 2013-04-15 Tom Tromey <tromey@redhat.com>
7302 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7304 (classify_exception_breakpoint): New function.
7305 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7306 (print_mention_exception_catchpoint)
7307 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7308 (catch_exception_command_1): Handle "rethrow" catchpoint.
7309 (catch_rethrow_command): New function.
7310 (_initialize_breakpoint): Add "catch rethrow" command.
7312 2013-04-15 Pierre Muller <muller@sourceware.org>
7314 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7315 set_gdbarch_write_pc as deprecated anymore.
7317 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7319 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7322 2013-04-13 Yao Qi <yao@codesourcery.com>
7324 * ctf.c (_initialize_ctf): Include "completer.h".
7325 Call add_target_with_completer instead of add_target.
7327 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7329 Fix GDB regression related to PR binutils/14813.
7330 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7331 * minidebug.c (lzma_close): Add return value comment.
7332 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7333 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7334 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7336 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7338 * config.in: Regenerate.
7340 2013-04-12 Tom Tromey <tromey@redhat.com>
7342 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7344 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7345 (struct die_reader_specs) <buffer>: Likewise.
7346 (die_reader_func_ftype): Make 'info_ptr' const.
7347 (struct line_header) <include_dirs, statement_program_start,
7348 statement_program_end>: Now const.
7349 (struct file_entry) <name>: Likewise.
7350 (struct partial_die_info) <sibling>: Likewise.
7351 (struct dwarf_block) <data>: Likewise.
7352 (dwarf2_read_section): Remove cast.
7353 (dwarf2_get_section_info): Make 'bufp' const.
7354 (read_index_from_section): Constify.
7355 (dw2_get_file_names_reader): Make 'info_ptr' const.
7356 (dw2_get_primary_filename_reader): Likewise.
7357 (read_comp_unit_head): Make 'info_ptr' and return type const.
7358 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7360 (read_abbrev_offset): Constify.
7361 (dwarf2_create_include_psymtab): Make 'name' const.
7362 (create_debug_types_hash_table): Update.
7363 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7364 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7366 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7367 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7368 (read_comp_units_from_section): Constify.
7369 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7370 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7372 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7373 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7374 (create_dwp_hash_table, dwarf2_ranges_read)
7375 (dwarf2_record_block_ranges): Constify.
7376 (read_die_and_children, read_die_and_siblings_1)
7377 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7379 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7380 (abbrev_table_read_table): Constify.
7381 (load_partial_dies): Make 'info_ptr' const.
7382 (read_partial_die, read_attribute_value, read_attribute): Make
7383 'info_ptr' and return type const.
7384 (read_address, read_initial_length)
7385 (read_checked_initial_length_and_offset, read_offset)
7386 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7388 (read_direct_string): Make 'buf' and return type const.
7389 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7390 (read_indirect_string): Make return type const.
7391 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7392 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7394 (read_str_index): Make return type const.
7395 (add_include_dir): Make 'include_dir' const.
7396 (add_file_name): Make 'name' const.
7397 (dwarf_decode_line_header): Constify.
7398 (psymtab_include_file_name): Make return type const.
7399 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7400 (dwarf2_start_subfile): Make 'filename' const.
7401 (dwarf2_const_value_attr): Make 'bytes' const.
7402 (read_signatured_type_reader): Make 'info_ptr' const.
7403 (decode_locdesc): Constify.
7404 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7406 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7407 'mac_end', and return type const.
7408 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7409 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7411 (per_cu_header_read_in): Constify.
7412 * symfile.h (dwarf2_get_section_info): Update.
7414 2013-04-12 Tom Tromey <tromey@redhat.com>
7416 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7418 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7420 * NEWS: Mention "show configuration", --configuration.
7421 * top.c (print_gdb_configuration): New function, displays the
7422 details about GDB configure-time parameters.
7423 (print_gdb_version): Mention "show configuration".
7424 * cli/cli-cmds.c (show_configuration): New function.
7425 (_initialize_cli_cmds): Add the "show configuration" command.
7426 * main.c (captured_main) <print_configuration>: New static var.
7427 <long_options>: Use it.
7428 If --configuration was given, call print_gdb_configuration.
7430 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 Pedro Alves <palves@redhat.com>
7433 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7434 (generated_files): Add gcore.
7435 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7436 HAVE_NATIVE_GCORE_HOST.
7438 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7439 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7440 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7441 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7442 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7443 Add HAVE_NATIVE_GCORE_HOST.
7444 * configure: Regenerate.
7445 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7446 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7447 AC_CONFIG_FILES for gcore.
7448 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7450 * gdb_gcore.sh: Rename to ...
7451 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7452 and GCORE_TRANSFORM_NAME substitutions.
7454 Fix parsing tabs in ${gdb_target_obs}.
7455 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7457 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7459 * remote.c (unpush_and_perror): Add output message final dot.
7461 2013-04-11 Yao Qi <yao@codesourcery.com>
7463 * tracepoint.c (tfile_interp_line): Fit parameters line and
7466 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7468 * solib.c (solib_map_sections): Remove code overwriting
7469 SO->SO_NAME with the bfd's filename.
7471 2013-04-10 Pedro Alves <palves@redhat.com>
7473 * cli/cli-decode.c (integer_unlimited_completer): New function.
7474 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7475 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7477 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7478 (is_unlimited_literal): New function.
7479 (do_set_command): Handle literal "unlimited" arguments.
7480 * frame.c (_initialize_frame) <set backtrace limit>: Document
7482 * printcmd.c (_initialize_printcmd) <set print
7483 max-symbolic-offset>: Add help text.
7484 * record-full.c (_initialize_record_full) <set record full
7485 insn-number-max>: Likewise.
7486 * record.c (_initialize_record) <set record
7487 instruction-history-size, set record function-call-history-size>:
7489 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7491 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7493 * source.c (_initialize_source) <set listsize>: Add help text.
7494 * utils.c (initialize_utils) <set height, set width>: Likewise.
7495 <set pagination>: Mention "set height unlimited".
7496 * valprint.c (_initialize_valprint) <set print elements, set print
7497 repeats>: Document "unlimited".
7499 2013-04-10 Pedro Alves <palves@redhat.com>
7501 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7502 instead of disconnect_tracing.
7503 * infcmd.c (detach_command, disconnect_command): Call
7504 query_if_trace_running. Adjust.
7505 * top.c: Include "tracepoint.h".
7506 (quit_target): Delete. Contents moved ...
7507 (quit_force): ... here. Wrap each stage of teardown in
7508 TRY_CATCH. Call disconnect_tracing before detaching.
7510 2013-04-10 Hui Zhu <hui@codesourcery.com>
7511 Yao Qi <yao@codesourcery.com>
7513 * configure.ac: Check libbabeltrace is installed.
7514 * config.in: Regenerate.
7515 * configure: Regenerate.
7516 * Makefile.in (LIBBABELTRACE): New.
7517 (CLIBS): Add LIBBABELTRACE.
7518 * ctf.c: Include "exec.h".
7519 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7520 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7521 (ctf_save_metadata_header): Define new type aliases in
7523 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7524 in metadata. Start a new faked packet for trace status.
7525 (ctf_write_status): Write trace status to CTF.
7526 (ctf_write_uploaded_tsv): Write TSV to CTF.
7527 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7528 (ctf_write_definition_end): End the faked packet.
7530 (ctx, ctf_iter, trace_dirname): New.
7531 (start_pos): New variable.
7532 (ctf_destroy, ctf_open_dir, ctf_open): New.
7533 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7535 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7536 (ctf_fetch_registers, ctf_xfer_partial): New.
7537 (ctf_get_trace_state_variable_value): New.
7538 (ctf_get_tpnum_from_frame_event): New.
7539 (ctf_get_traceframe_address): New.
7540 (ctf_trace_find, ctf_has_stack): New.
7541 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7542 (ctf_get_trace_status, ctf_read_status): New.
7543 (_initialize_ctf): New.
7544 * tracepoint.c (get_tracepoint_number): New
7545 (get_uploaded_tsv): Remove 'static'.
7546 (struct traceframe_info, trace_regblock_size): Move it to ...
7547 * tracepoint.h: ... here.
7548 (get_tracepoint_number): Declare it.
7549 (get_uploaded_tsv): Declare it.
7551 * NEWS: Mention new configure option.
7553 2013-04-10 Pedro Alves <palves@redhat.com>
7554 Hui Zhu <hui@codesourcery.com>
7556 * breakpoint.c (dprintf_re_set): New.
7557 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7560 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7562 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7563 Remove solib-svr4.o from the list.
7565 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7567 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7568 Use gdb_assert_not_reached instead of invalid boolean expression.
7570 2013-04-09 Pedro Alves <palves@redhat.com>
7572 * remote.c (unpush_and_perror): New function.
7573 (readchar, remote_serial_write): Use it.
7575 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7577 * NEWS: Mention new btrace RSP packets.
7579 2013-04-08 Tom Tromey <tromey@redhat.com>
7581 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7584 2013-04-08 Tom Tromey <tromey@redhat.com>
7586 * maint.c (print_bfd_section_info): Print the section index.
7587 * symmisc.c (dump_msymbols): Print the section index.
7589 2013-04-08 Tom Tromey <tromey@redhat.com>
7592 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7593 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7594 * breakpoint.c (resolve_sal_pc): Update.
7595 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7596 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7597 (minsym_lookup_iterator_cb): Use it.
7598 (default_read_var_value): Update.
7599 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7601 * infcmd.c (jump_command): Update.
7602 * linespec.c (minsym_found): Update.
7603 * maint.c (maintenance_translate_address): Update.
7604 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7605 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7606 * parse.c (write_exp_msymbol): Update.
7607 * printcmd.c (address_info): Update.
7608 * psymtab.c (find_pc_sect_psymbol): Update.
7609 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7611 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7612 Don't initialize SYMBOL_OBJ_SECTION.
7613 * spu-tdep.c (spu_catch_start): Update.
7614 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7615 * symmisc.c (dump_msymbols, print_symbol): Update.
7616 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7617 how fallback section is computed.
7618 (fixup_symbol_section): Update.
7619 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7621 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7622 Initialize SYMBOL_SECTION.
7623 * symtab.h (struct general_symbol_info) <section>: Update comment.
7624 <obj_section>: Remove.
7625 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7626 (SYMBOL_OBJFILE): New macro.
7628 2013-04-08 Tom Tromey <tromey@redhat.com>
7630 * coffread.c (record_minimal_symbol): Update.
7631 * dbxread.c (record_minimal_symbol): Update.
7632 * elfread.c (record_minimal_symbol): Update.
7633 * machoread.c (macho_symtab_add_minsym): Update.
7634 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7636 * minsyms.c (prim_record_minimal_symbol): Update.
7637 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7639 (prim_record_minimal_symbol_and_info): Likewise.
7640 * minsyms.h (prim_record_minimal_symbol_full)
7641 (prim_record_minimal_symbol_and_info): Update.
7642 * symtab.c (allocate_symbol, initialize_symbol)
7643 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7644 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7647 2013-04-08 Tom Tromey <tromey@redhat.com>
7650 * solib-som.c (som_solib_section_offsets): Use BFD section
7651 indices. Set offsets for all sections.
7652 * somread.c (som_symtab_read): Compute BFD section for
7653 symbol. Use prim_record_minimal_symbol_and_info.
7654 (som_symfile_read): Fix comment.
7655 (struct find_section_offset_arg): New.
7656 (find_section_offset, set_section_index): New functions.
7657 (som_symfile_offsets): Use set_section_index to compute
7660 2013-04-08 Tom Tromey <tromey@redhat.com>
7662 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7663 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7664 gdb_bfd_section_index.
7665 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7667 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7669 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7671 * objfiles.c (add_to_objfile_sections_full): New function.
7672 (add_to_objfile_sections): Use it.
7673 (build_section_table): Rewrite.
7674 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7675 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7676 (struct objfile) <sections>: Update comment.
7677 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7679 (ALL_OBJSECTIONS): Use it.
7680 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7681 * solib-frv.c (frv_relocate_main_executable): Update.
7682 * solib-target.c (solib_target_relocate_section_addresses):
7683 Use gdb_bfd_section_index.
7684 * symfile.c (build_section_addr_info_from_section_table):
7685 Use gdb_bfd_section_index.
7686 (build_section_addr_info_from_bfd, place_section): Likewise.
7687 * symtab.c (fixup_section): Update.
7688 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7690 2013-04-08 Tom Tromey <tromey@redhat.com>
7692 * minsyms.h (struct bound_minimal_symbol): New.
7693 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7694 Remove objfile argument.
7695 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7696 Return bound_minimal_symbol.
7697 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7698 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7699 Return bound_minimal_symbol.
7700 (in_gnu_ifunc_stub): Update.
7701 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7702 Remove 'objfile_p' argument.
7703 (lookup_solib_trampoline_symbol_by_pc): Update.
7704 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7705 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7706 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7707 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7708 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7709 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7710 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7711 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7712 stack.c, symtab.c, tui/tui-disasm.c: Update.
7714 2013-04-08 Tom Tromey <tromey@redhat.com>
7716 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7717 Use symbol's obstack, not an objfile.
7718 * coffread.c (process_coff_symbol): Update.
7719 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7720 * jv-lang.c (add_class_symbol): Update.
7721 * mdebugread.c (new_symbol): Update.
7722 * minsyms.c (prim_record_minimal_symbol_full)
7723 (terminate_minimal_symbol_table): Update.
7724 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7725 * stabsread.c (define_symbol, read_enum_type): Update.
7726 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7727 Handle Ada specially.
7728 (symbol_set_language): Add 'obstack' argument.
7729 (symbol_set_names): Update.
7730 (symbol_natural_name, symbol_demangled_name): Always use
7732 * symtab.h (struct general_symbol_info)
7733 <language_specific::obstack>: New field.
7734 <ada_mangled>: New field.
7735 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7736 (symbol_set_language): Update.
7738 2013-04-08 Tom Tromey <tromey@redhat.com>
7740 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7741 Take an obstack, not an objfile.
7742 (symbol_set_names): Update.
7743 * symtab.h (symbol_set_demangled_name): Update.
7745 2013-04-08 Tom Tromey <tromey@redhat.com>
7747 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7749 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7750 (read_func_scope): Call allocate_template_symbol.
7751 (new_symbol_full): Call allocate_symbol.
7752 * jit.c (finalize_symtab): Call allocate_symbol.
7753 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7754 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7755 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7756 (common_block_end): Call allocate_symbol.
7757 * symtab.c (allocate_symbol, initialize_symbol)
7758 (allocate_template_symbol): New functions.
7759 * symtab.c (allocate_symbol, initialize_symbol)
7760 (allocate_template_symbol): Declare.
7761 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7763 2013-04-08 Pedro Alves <palves@redhat.com>
7764 Keith Seitz <keiths@redhat.com>
7766 * breakpoint.c (create_breakpoint): Rename
7767 "parse_condition_and_thread" parameter to "parse_arg". Update
7768 describing comment. If !PARSE_ARG, then error out if ARG is not
7769 the empty string after extracting the location.
7770 * breakpoint.h (create_breakpoint): Rename
7771 "parse_condition_and_thread" parameter to "parse_arg".
7773 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7775 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7777 2013-04-07 Yao Qi <yao@codesourcery.com>
7779 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7780 and 'addr2' to CORE_ADDR.
7781 * target.c (update_current_target): Update.
7782 * target.h (struct target_ops) <to_trace_find>: Change parameter
7784 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7785 'addr2' to CORE_ADDR.
7786 (tfile_trace_find): Likewise.
7787 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7788 Change local variable 'addr' to type CORE_ADDR.
7789 * tracepoint.h (tfind_1): Update declaration.
7791 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7793 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7794 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7797 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7799 * main.h (windows_get_absolute_argv0): ...to here.
7801 2013-04-05 Doug Evans <dje@google.com>
7803 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7804 (read_cutu_die_from_dwo): Add comments.
7805 (read_structure_type): Update comment.
7806 (read_enumeration_type, read_namespace_type): Update comment.
7807 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7809 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7811 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7812 * Makefile.in (gdb.z): Remove.
7813 (install-only): Remove $(man1dir) and gdb.1 installation.
7816 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7818 Fix compatibility with Linux kernel 3.8.3.
7819 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7820 to more inner block. Remove parsing of NUMBER from outer block.
7821 Parse NUMBER only if KEYWORD has been identified.
7823 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7825 Fix variable name shadowing.
7826 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7827 filename to mapsfilename and update its uses.
7829 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7831 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7832 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7833 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7834 details of the problem.
7836 2013-04-04 Pedro Alves <palves@redhat.com>
7837 Hui Zhu <hui@codesourcery.com>
7839 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7840 tracepoint, reset its STEP_COUNT and call validate_actionline.
7842 2013-04-03 Doug Evans <dje@google.com>
7844 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7845 read_die_and_siblings.
7846 (read_die_and_siblings): New function.
7847 (read_cutu_die_from_dwo): Dump die if requested.
7848 (read_die_and_children): Call read_full_die_1 and
7849 read_die_and_siblings_1.
7850 (read_full_die): Dump die if requested.
7852 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7854 * dwarf2read.c (struct dwo_file): New member comp_dir.
7855 Rename member name to dwo_name. All uses updated.
7856 (hash_dwo_file): Include comp_dir in computation.
7857 (eq_dwo_file): Ditto.
7858 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7859 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7861 * psymtab.c (read_psymtabs_with_fullname): Don't call
7862 psymtab_to_fullname if the basenames are different.
7864 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7866 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7867 New entry about "fullname" presence.
7869 2013-04-03 Pedro Alves <palves@redhat.com>
7871 * NEWS: Mention x86_64/Cygwin as new native configuration.
7873 2013-04-02 Doug Evans <dje@google.com>
7875 * dwarf2read.c (read_structure_type): Fix typo in comment.
7877 2013-04-02 Pedro Alves <palves@redhat.com>
7879 * NEWS: Mention "set/show debug aarch64", "set/show debug
7880 coff-pe-read" and "set/show debug mach-o".
7882 2013-04-02 Pedro Alves <palves@redhat.com>
7884 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7886 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7888 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7889 gdb_string.h is now in common/.
7891 2013-04-02 Pedro Alves <palves@redhat.com>
7893 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7894 under "New options".
7896 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7900 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7902 2013-04-02 Pedro Alves <palves@redhat.com>
7906 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7907 (remote_serial_write): New function.
7908 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7910 2013-04-01 Jiong Wang <jiwang@tilera.com>
7912 * NEWS: Mention TILE-Gx in "New native configurations" and
7913 "New targets" sections.
7915 2013-04-01 Doug Evans <dje@google.com>
7917 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7918 (process_enumeration_scope): Simplify.
7920 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7922 (struct signatured_type): ... to here.
7923 (sig_type_ptr): New typedef.
7924 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7925 out of union 't'. All uses updated.
7926 (dw2_get_file_names_reader): Assert not called for a type unit.
7927 (dw2_get_file_names): Assert not called for a type unit or type
7929 (build_type_psymtabs_reader): Assert called for a type unit.
7930 (build_type_psymtab_dependencies): Assert called for a type unit group.
7932 * dwarf2read.c (free_dwo_file): Add comment.
7933 (dwarf2_per_objfile_free): Unref dwp bfd.
7935 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7937 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7938 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7939 (read_pe_exported_syms): Remove unused 'exportix'.
7940 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7941 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7942 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7944 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7946 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7947 (print_it_watchpoint): Remove unused 'bl'.
7948 (say_where): Remove unused 'uiout'.
7949 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7950 (bkpt_breakpoint_hit): Remove unused 'b'.
7951 (internal_bkpt_print_it): Remove unused 'uiout'.
7952 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7954 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7956 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7957 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7959 2013-03-29 Doug Evans <dje@google.com>
7961 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7962 Delete arg is_dwp. All callers updated.
7963 (open_dwp_file): New function.
7964 (open_and_init_dwp_file): Call it.
7965 (get_dwp_file): New function.
7966 (lookup_dwo_cutu): Call it.
7968 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7969 unnecessary, cleanup.
7971 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7973 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7974 (lookup_dwo_unit): New function.
7975 (init_cutu_and_read_dies): Move DWO handling to new functions.
7977 * dwarf2read.c (struct signatured_type): Tweak comment.
7978 (struct dwo_unit): Tweak comment.
7979 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7980 (create_dwo_debug_info_hash_table): Tweak comment.
7981 (dwarf2_per_cu_offset_and_type): Tweak comment.
7983 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7984 missing .debug_types section.
7986 2013-03-29 Yao Qi <yao@codesourcery.com>
7988 * corelow.c: Include "completer.h".
7989 (_initialize_corelow): Call add_target_with_completer with
7990 argument 'filename_completer'.
7991 * tracepoint.c: Likewise.
7992 * exec.c (_initialize_exec): Likewise.
7993 * target.c (add_target): Rename to ...
7994 (add_target_with_completer): ... this. Call set_cmd_completer
7995 if parameter completer is not NULL.
7997 * target.h: Include "command.h".
7998 (add_target_with_completer): Declare it.
8000 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8002 * coffread.c (is_import_fixup_symbol): New function.
8003 (record_minimal_symbol): Use is_import_fixup_symbol to
8004 detect import fixup symbols, and discard them.
8006 2013-03-28 Doug Evans <dje@google.com>
8008 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8009 types hash table until we know we need it.
8011 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8014 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8015 All callers updated.
8016 (dw2_print_stats): Print #read CUs too.
8017 (dump_die_shallow): Print signatured types better.
8019 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8020 info_or_types_section to section. All uses updated.
8021 (struct dwo_unit): Ditto.
8023 2013-03-28 Pedro Alves <palves@redhat.com>
8025 * NEWS (New options): New section.
8026 (New options): Mention set/show remote trace-status-packet.
8027 * remote.c (PACKET_qTStatus): New enumeration value.
8028 (remote_get_trace_status): Skip sending qTStatus if the packet is
8029 disabled. Use packet_ok.
8030 (_initialize_remote): Register a configuration command for
8033 2013-03-28 Doug Evans <dje@google.com>
8035 * symfile.c (find_separate_debug_file): Add comment.
8036 (terminate_after_last_dir_separator): Tweak comment.
8038 * dwarf2read.c (create_partial_symtab): Add forward decl.
8039 (create_partial_symtab): Move to be closer to other psymtab functions.
8040 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8042 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8043 (compute_symtab_includes): Remove unnecessary forward declaration.
8044 (die_needs_namespace): Add comment marking group of functions for
8045 dwarf2 name computation.
8047 * typeprint.c (_initialize_typeprint): Improve type help text.
8049 * python/python.c (finish_python_initialization): Provide suggestion
8050 for how to tell gdb to find its python files.
8052 2013-03-28 Pedro Alves <palves@redhat.com>
8056 * source.c (_initialize_source): Change back "set listsize" to an
8059 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8062 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8064 2013-03-27 Pedro Alves <palves@redhat.com>
8066 * top.c (history_size): Rename to ...
8067 (history_size_setshow_var): ... this. Add comment.
8068 (show_commands): Use readline's 'history_length' instead of
8069 computing the history length by calling history_get in a loop.
8070 (set_history_size_command): Error out for sizes over INT_MAX.
8071 Restore previous history size on invalid size.
8072 (init_history): If HISTSIZE is negative, leave the history size as
8074 (init_main): Adjust.
8076 2013-03-27 Pedro Alves <palves@redhat.com>
8078 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8079 coff_pe_read" command to "set debug coff-pe-read".
8081 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8083 * record.c (command_size_to_target_size): Fix size comparison.
8084 Change parameter type from pointer to integer to integer.
8087 2013-03-27 Pierre Muller <muller@sourceware.org>
8089 * windows-nat.c (handle_output_debug_string): Avoid typecast
8090 from integer of different size warning.
8092 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8094 * windows-nat.c (handle_output_debug_string): Add empty line
8095 after local block variable definition.
8097 2013-03-26 Pedro Alves <palves@redhat.com>
8099 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8100 (net_open): Make 'polls' local unsigned.
8102 2013-03-26 Pedro Alves <palves@redhat.com>
8104 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8105 a zuinteger command instead of uinteger.
8107 2013-03-26 Pedro Alves <palves@redhat.com>
8109 * record-full.c (record_full_insn_num): Make it unsigned.
8110 (record_full_check_insn_num, record_full_message)
8111 (record_full_registers_change, record_full_xfer_partial): Remove
8112 record_full_insn_max_num check (it's always != 0).
8113 (record_full_info, record_full_restore): Use %u as format string.
8114 (): Use %u as format string.
8115 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8116 check (it's always != 0).
8118 2013-03-26 Pedro Alves <palves@redhat.com>
8120 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8121 and "set dcache size" commands zuinteger instead of uinteger.
8123 2013-03-26 Pedro Alves <palves@redhat.com>
8125 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8126 command zuinteger instead of uinteger.
8128 2013-03-26 Pedro Alves <palves@redhat.com>
8130 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8131 zuinteger instead of uinteger.
8133 2013-03-26 Pedro Alves <palves@redhat.com>
8135 * record.c (record_insn_history_size_setshow_var)
8136 (record_call_history_size_setshow_var): New globals.
8137 (command_size_to_target_size): New function.
8138 (cmd_record_insn_history, cmd_record_call_history): Use
8139 command_size_to_target_size instead of cast.
8140 (validate_history_size, set_record_insn_history_size)
8141 (set_record_call_history_size): New functions.
8142 (_initialize_record): Install set_record_insn_history_size and
8143 set_record_call_history_size as "set" hooks of "set record
8144 instruction-history-size" and "set record
8145 function-call-history-size".
8147 2013-03-26 Pedro Alves <palves@redhat.com>
8149 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8150 use with history_max_entries use. Remove FIXME note.
8152 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8154 * record-btrace.c (record_btrace_close): Call
8155 record_btrace_auto_disable.
8157 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8159 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8161 2013-03-25 Doug Evans <dje@google.com>
8163 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8165 2013-03-25 Tom Tromey <tromey@redhat.com>
8168 * c-exp.y (exp): Add new productions for destructors after '.' and
8170 (write_destructor_name): New function.
8172 2013-03-25 Tom Tromey <tromey@redhat.com>
8175 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8176 value_struct_elt, not lookup_struct_elt_type.
8177 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8178 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8179 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8181 2013-03-25 Yao Qi <yao@codesourcery.com>
8183 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8184 instead of '_mkdir'.
8186 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8188 * windows-nat.c (windows_get_absolute_argv0): New function.
8189 * windows-nat.h: Add its prototype.
8191 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8192 Use IS_DIR_SEPARATOR instead of looking for a character inside
8193 SLASH_STRING. Include filenames.h.
8194 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8195 relocate_gdb_directory works when passed gdb_program_name.
8196 Include windows-nat.h.
8198 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8200 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8201 * remote.c (trace_error): Remove the special handling of '2'.
8202 (readchar) <SERIAL_EOF>
8203 (readchar) <SERIAL_ERROR>
8204 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8205 (remote_get_trace_status): Call throw_exception if EX is
8207 * utils.c (perror_with_name): Rename to ...
8208 (throw_perror_with_name): ... here. New parameter errcode, describe it
8209 in the function comment.
8210 (perror_with_name): New function wrapper.
8211 * utils.h (enum errors): New stub declaration.
8212 (throw_perror_with_name): New declaration.
8214 2013-03-22 Pedro Alves <palves@redhat.com>
8215 Yao Qi <yao@codesourcery.com>
8216 Mark Kettenis <kettenis@gnu.org>
8218 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8219 Don't let the user set the value to UINT_MAX directly.
8220 <var_integer>: Don't let the user set the value to INT_MAX
8223 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8225 * remote.c (remote_unpush_target): New function.
8226 (remote_open_1): Remove two pop_target calls, update one comment, add
8227 comment to target_preopen call. Replace pop_target call by
8228 remote_unpush_target call.
8229 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8230 pop_target calls by remote_unpush_target calls.
8232 2013-03-22 Pedro Alves <palves@redhat.com>
8234 * linux-nat.c (linux_child_follow_fork): Don't call
8235 linux_enable_event_reporting.
8236 (linux_handle_extended_wait): Don't call
8237 linux_enable_event_reporting.
8239 2013-03-22 Pedro Alves <palves@redhat.com>
8241 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8242 use it to rewrite the trampoline buffers with type gdb_byte[], and
8243 undefine the macro. Remove char* cast.
8245 2013-03-21 Doug Evans <dje@google.com>
8247 New commands "mt set per-command {space,time,symtab} {on,off}".
8249 * event-top.c: #include "maint.h".
8250 * main.c: #include "maint.h".
8251 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8252 timeval-utils.h, maint.h, cli/cli-setshow.h.
8253 (per_command_time, per_command_space): New static globals.
8254 (per_command_symtab): New static global.
8255 (per_command_setlist, per_command_showlist): New static globals.
8256 (struct cmd_stats): Move here from utils.c.
8257 (set_per_command_time): Renamed from set_display_time in utils.c
8258 and moved here. All callers updated.
8259 (set_per_command_space): Renamed from set_display_space in utils.c
8260 and moved here. All callers updated.
8261 (count_symtabs_and_blocks): New function.
8262 (report_command_stats): Moved here from utils.c. Add support for
8263 printing symtab stats. Only print data if enabled before command
8265 (make_command_stats_cleanup): Ditto.
8266 (sert_per_command_cmd, show_per_command_cmd): New functions.
8267 (_initialize_maint_cmds): Add new commands
8268 mt set per-command {space,time,symtab} {on,off}.
8269 * maint.h: New file.
8270 * top.c: #include "maint.h".
8271 * utils.c (reset_prompt_for_continue_wait_time): New function.
8272 (get_prompt_for_continue_wait_time): New function.
8273 * utils.h (reset_prompt_for_continue_wait_time): Declare
8274 (get_prompt_for_continue_wait_time): Declare.
8275 (make_command_stats_cleanup): Moved to maint.h.
8276 (set_display_time, set_display_space): Moved to maint.h and renamed
8277 to set_per_command_time, set_per_command_space.
8278 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8279 parse_binary_operation and made non-static. Don't call error,
8280 just return an error marker. All callers updated.
8281 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8283 2013-03-21 Tom Tromey <tromey@redhat.com>
8285 * symfile.c (alloc_section_addr_info): Update header. Don't set
8286 'num_sections' field.
8287 (build_section_addr_info_from_section_table): Set 'num_sections'.
8288 (build_section_addr_info_from_bfd): Likewise.
8289 (build_section_addr_info_from_objfile): Remove dead loop
8291 (free_section_addr_info): Unconditionally call xfree.
8292 (relative_addr_info_to_section_offsets, addrs_section_sort)
8293 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8295 (syms_from_objfile_1): Remove dead 'if' condition. Check
8297 (add_symbol_file_command): Set 'num_sections'.
8298 * symfile-mem.c (symbol_file_add_from_memory): Set
8300 * somread.c (som_symfile_offsets): Remove dead loop condition.
8301 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8302 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8304 2013-03-21 Tom Tromey <tromey@redhat.com>
8306 * tracepoint.h (decode_agent_options): Add 'trace_string'
8308 * tracepoint.c (decode_agent_options): Add 'trace_string'
8310 (validate_actionline): Update.
8311 (collect_symbol): Add 'trace_string' argument.
8312 (struct add_local_symbols_data) <trace_string>: New field.
8313 (do_collect_symbol): Update.
8314 (add_local_symbols): Add 'trace_string' argument.
8315 (encode_actions_1): Update.
8316 (trace_dump_actions): Update.
8317 * dwarf2loc.c (access_memory): Update.
8318 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8319 * ax-general.c (new_agent_expr): Update.
8320 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8321 (gen_trace_for_return_address): Add argument.
8322 (trace_kludge, trace_string_kludge): Remove.
8323 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8324 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8325 (gen_trace_for_var): Add 'trace_string' argument.
8326 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8327 (gen_printf, agent_eval_command_one): Update.
8329 2013-03-21 Tom Tromey <tromey@redhat.com>
8332 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8333 Handle FILENAME token.
8335 2013-03-21 Tom Tromey <tromey@redhat.com>
8337 * c-exp.y (YYPRINT): Define.
8338 (c_print_token): New function.
8340 2013-03-21 Tom Tromey <tromey@redhat.com>
8342 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8344 2013-03-21 Yao Qi <yao@codesourcery.com>
8346 * ctf.c: Include "gdb_stat.h".
8347 [USE_WIN32API]: New macro 'mkdir'.
8348 (ctf_start): Use permission bits macros if they are defined.
8350 2013-03-20 Keith Seitz <keiths@redhat.com>
8352 * breakpoint.h (struct breakpoint): Add comment to
8353 extra_string indicating that this member is mallod'd.
8354 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8356 2013-03-20 Pedro Alves <palves@redhat.com>
8360 * cli/cli-setshow.c (do_set_command)
8361 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8362 the result of parsing the command argument. Throw error if the
8363 value is greater than UINT_MAX. Print the invalid value with
8365 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8366 result of parsing the command argument. Throw error if the value
8367 is greater than INT_MAX, not greater or equal. Also throw error
8368 if the value is less than INT_MIN. Print the invalid value with
8370 <var_zuinteger_unlimited>: Throw error if the value is greater
8371 than INT_MAX, not greater or equal.
8372 (do_show_command) <var_integer, var_zinteger,
8373 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8375 2013-03-20 Tom Tromey <tromey@redhat.com>
8377 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8379 * dwarf2read.c (read_func_scope): Remove old FIXME.
8380 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8382 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8383 Unconditionally call via computed ops, if possible.
8384 * printcmd.c (address_info): Unconditionally call via computed ops,
8386 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8388 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8389 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8392 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8393 Tom Tromey <tromey@redhat.com>
8396 * coffread.c (coff_register_index): New global.
8397 (process_coff_symbol, coff_read_enum_type): Set
8398 SYMBOL_ACLASS_INDEX.
8399 (_initialize_coffread): Initialize new global.
8400 * dwarf2loc.c (locexpr_find_frame_base_location)
8401 (dwarf2_block_frame_base_locexpr_funcs)
8402 (loclist_find_frame_base_location)
8403 (dwarf2_block_frame_base_loclist_funcs): New.
8404 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8405 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8406 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8407 (dwarf2_block_frame_base_loclist_funcs): New.
8408 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8409 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8411 (read_func_scope): Update.
8412 (fixup_go_packaging, mark_common_block_symbol_computed)
8413 (var_decode_location, new_symbol_full, dwarf2_const_value):
8414 Set SYMBOL_ACLASS_INDEX.
8415 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8416 (_initialize_dwarf2_read): Initialize new globals.
8417 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8418 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8419 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8421 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8422 (_initialize_mdebugread): Initialize new globals.
8423 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8424 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8425 (stab_register_index, stab_regparm_index): New globals.
8426 (define_symbol, read_enum_type, common_block_end): Set
8427 SYMBOL_ACLASS_INDEX.
8428 (_initialize_stabsread): Initialize new globals.
8429 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8431 (MAX_SYMBOL_IMPLS): New define.
8432 (register_symbol_computed_impl, register_symbol_block_impl)
8433 (register_symbol_register_impl)
8434 (initialize_ordinary_address_classes): New functions.
8435 (_initialize_symtab): Call initialize_ordinary_address_classes.
8436 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8437 (struct symbol_impl): New.
8438 (SYMBOL_ACLASS_BITS): New define.
8439 (struct symbol) <aclass, ops>: Remove fields.
8440 <aclass_index>: New field.
8441 (symbol_impls): Declare.
8442 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8443 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8444 (register_symbol_computed_impl, register_symbol_block_impl)
8445 (register_symbol_register_impl): Declare.
8446 (struct symbol_computed_ops): Add location_has_loclist.
8447 (struct symbol_block_ops): New.
8448 (SYMBOL_BLOCK_OPS): New.
8449 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8451 2013-03-20 Tom Tromey <tromey@redhat.com>
8453 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8454 (print_partial_symbols, recursively_search_psymtabs): Use
8457 2013-03-20 Pierre Muller <muller@sourceware.org>
8459 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8460 addtion, subtraction, multiplication and division binary operator.
8462 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8465 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8466 * bsd-kvm.c (bsd_kvm_close): Likewise.
8467 * bsd-uthread.c (bsd_uthread_close): Likewise.
8468 * corelow.c (core_close): Likewise.
8469 (core_close_cleanup): Remove parameter quitting from a caller.
8470 * event-top.c (async_disconnect): Likewise.
8471 * exec.c (exec_close_1): Remove parameter quitting.
8472 * go32-nat.c (go32_close): Likewise.
8473 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8474 parameter quitting from a caller.
8475 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8477 (mips_linux_close): Remove parameter quitting. Remove parameter
8478 quitting from a caller.
8479 * monitor.c (monitor_close): Remove parameter quitting.
8480 * monitor.h (monitor_close): Likewise.
8481 * record-btrace.c (record_btrace_close): Likewise.
8482 * record-full.c (record_full_close): Likewise.
8483 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8484 it also from fprintf_unfiltered.
8485 * remote-mips.c (mips_close): Remove parameter quitting.
8486 (mips_detach): Remove parameter quitting from a caller.
8487 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8488 (gdbsim_close): Remove duplicate function comment. Remove parameter
8489 quitting and remove it also from printf_filtered.
8490 * remote.c (remote_close): Remove parameter quitting.
8491 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8492 * target.c (update_current_target): Remove parameter int from to_close
8494 (push_target, unpush_target, pop_target): Remove parameter quitting from
8496 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8497 Remove parameter quitting from a caller.
8498 (target_preopen): Remove parameter quitting from a caller.
8499 (target_close): Remove parameter quitting. Remove parameter quitting
8500 from a caller two times. Remove parameter quitting also from
8502 * target.h (struct target_ops): Remove parameter quitting and as int
8503 from fields to_xclose and to_close.
8504 (extern struct target_ops current_target):
8505 (target_close, pop_all_targets): Remove parameter quitting. Update the
8507 (pop_all_targets_above): Remove parameter quitting.
8508 * top.c (quit_target): Remove parameter quitting from a caller.
8509 * tracepoint.c (tfile_close): Remove parameter quitting.
8510 * windows-nat.c (windows_close): Remove parameter quitting.
8512 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8514 * windows-nat.c (handle_output_debug_string): Replace call
8515 to string_to_core_addr with call to strtoull.
8517 2013-03-20 Yao Qi <yao@codesourcery.com>
8519 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8520 and write it to CTF metadata.
8522 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8524 * windows-nat.c (handle_output_debug_string): Change type of n to
8525 SIZE_T to avoid crash on 64 bit systems.
8527 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8529 * python/python-internal.h (HAVE_SNPRINTF)
8530 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8531 about redefinition of snprintf by pyerrors.h.
8533 2013-03-15 Steve Ellcey <sellcey@mips.com>
8535 * remote-sim.c (sim_command_completer): Make char arguments const.
8537 2013-03-15 Tom Tromey <tromey@redhat.com>
8540 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8542 2013-03-14 Tom Tromey <tromey@redhat.com>
8544 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8546 (get_file_crc): Move from symfile.c.
8547 (gdb_bfd_crc): New function.
8548 * gdb_bfd.h (gdb_bfd_crc): Declare.
8549 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8550 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8551 (separate_debug_file_exists): Use gdb_bfd_crc.
8553 2013-03-14 Tom Tromey <tromey@redhat.com>
8555 * symfile.c (get_debug_link_info): Remove.
8556 (find_separate_debug_file_by_debuglink): Use
8557 bfd_get_debug_link_info.
8559 2013-03-14 Tom Tromey <tromey@redhat.com>
8561 * symtab.c (error_in_psymtab_expansion): New function.
8562 (lookup_symbol_aux_quick)
8563 (basic_lookup_transparent_type_quick): Remove "last resort"
8564 code. Use error_in_psymtab_expansion.
8566 2013-03-14 Doug Evans <dje@google.com>
8567 Jan Kratochvil <jan.kratochvil@redhat.com>
8569 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8570 any successful compare_filenames_for_search or FILENAME_CMP.
8571 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8572 * symtab.c (iterate_over_some_symtabs): Likewise.
8574 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8576 * source.c (print_source_lines_base): Make a local copy of
8579 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8580 Jan Kratochvil <jan.kratochvil@redhat.com>
8582 * source.c (print_source_lines_base): Suppress "file" for TUI.
8584 2013-03-14 Keith Seitz <keiths@redhat.com>
8585 Alan Matsuoka <alanm@redhat.com>
8589 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8591 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8594 2013-03-14 Yao Qi <yao@codesourcery.com>
8596 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8597 status to tfile if trace is stopped by command 'tstop'.
8599 2013-03-14 Yao Qi <yao@codesourcery.com>
8601 * tracepoint.c (tfile_write_status): Write trace notes and user
8602 name into tfile if they are not NULL.
8604 2013-03-14 Hui Zhu <hui@codesourcery.com>
8605 Yao Qi <yao@codesourcery.com>
8607 * Makefile.in (REMOTE_OBS): Add ctf.o.
8608 (SFILES): Add ctf.c.
8609 (HFILES_NO_SRCDIR): Add ctf.h.
8610 * ctf.c, ctf.h: New files.
8611 * tracepoint.c: Include 'ctf.h'.
8612 (collect_pseudocommand): Remove static.
8613 (trace_save_command): Parse option "-ctf".
8614 Produce different trace file writers per option.
8615 Adjust output message.
8616 (trace_save_tfile, trace_save_ctf): New.
8617 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8618 * mi/mi-main.c: Include 'ctf.h'.
8619 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8620 trace_save_tfile or trace_save_ctf.
8621 * NEWS: Mention these changes.
8623 2013-03-14 Yao Qi <yao@codesourcery.com>
8625 * tracepoint.c (trace_file_writer_xfree): New.
8626 (struct tfile_writer_data): New.
8627 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8628 (tfile_write_header, tfile_write_regblock_type): New.
8629 (tfile_write_status, tfile_write_uploaded_tsv): New.
8630 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8631 (tfile_write_raw_data, (tfile_end): New.
8632 (tfile_write_ops): New global variable.
8633 (TRACE_WRITE_R_BLOCK): New macro.
8634 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8635 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8636 (TRACE_WRITE_V_BLOCK): New macro.
8637 (trace_save): Add extra one parameter WRITER. Make it static.
8638 Use WRITER to writer trace.
8639 (tfile_trace_file_writer_new): New.
8640 (trace_save_command): Caller update.
8641 (trace_save_tfile): Write trace data in TFILE format.
8642 * tracepoint.h (struct trace_frame_write_ops): New.
8643 (struct trace_file_write_ops): New.
8644 (struct trace_file_writer): New.
8645 (trace_save): Remove its declaration.
8646 (trace_save_tfile): Declare it.
8647 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8648 instead of trace_save.
8650 2013-03-13 Pedro Alves <palves@redhat.com>
8652 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8654 2013-03-13 Pedro Alves <palves@redhat.com>
8656 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8658 * demangle.c (current_demangling_style_string): Make it const.
8659 (set_demangling_command): Assert the demangling style is known.
8660 Remove all handling of unknown styles. Set
8661 'current_demangling_style_string' to an element of the
8662 demangling_style_names array.
8663 (set_demangling_style): Delete.
8664 (_initialize_demangler): Set current_demangling_style_string to the
8665 element of the demangling_style_names array that corresponds to
8666 the default demangling style. Remove FIXME note. Don't call
8667 set_demangling_style.
8668 * gdb-demangle.h (set_demangling_style): Remove declaration.
8670 2013-03-13 Pedro Alves <palves@redhat.com>
8672 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8674 (ada_make_symbol_completion_list): Make "text0" parameter const.
8675 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8676 * breakpoint.c (condition_completer): Make "text" and "word"
8677 parameters const. Adjust.
8678 (check_tracepoint_command): Adjust to validate_actionline
8680 (catch_syscall_completer): Make "text" and "word" parameters
8682 * cli/cli-cmds.c (show_user): Make "comname" local const.
8683 (valid_command_p): Make "command" parameter const.
8684 (alias_command): Make "alias_prefix" and "command_prefix" locals
8686 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8687 (add_alias_cmd): Make "name" and "oldname" parameters const.
8688 Adjust. No longer make copy of OLDNAME.
8689 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8690 (add_setshow_cmd_full, add_setshow_enum_cmd)
8691 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8692 (add_setshow_filename_cmd, add_setshow_string_cmd)
8693 (add_setshow_string_noescape_cmd)
8694 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8695 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8696 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8697 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8698 Make "name" parameter const.
8699 (help_cmd): Rename "command" parameter to "arg". New const local
8701 (find_cmd): Make "command" parameter const.
8702 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8703 deprecated_cmd_warning prototype change.
8704 (undef_cmd_error): Make "cmdtype" parameter const.
8705 (lookup_cmd): Make "line" parameter const.
8706 (deprecated_cmd_warning): Change type of "text" parameter to
8707 pointer to const char, from pointer to pointer to char. Adjust.
8708 (lookup_cmd_composition): Make "text" parameter const.
8709 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8711 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8713 * cli/cli-script.c (validate_comname): Make "tem" local const.
8714 (define_command): New const local "tem_c". Use it in calls to
8716 (document_command): Make "tem" and "comfull" locals const.
8717 (show_user_1): Make "prefix" and "name" parameters const.
8718 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8720 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8721 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8722 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8723 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8724 (complete_on_enum, add_setshow_enum_cmd)
8725 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8726 (add_setshow_filename_cmd, add_setshow_string_cmd)
8727 (add_setshow_string_noescape_cmd)
8728 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8729 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8730 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8731 Change prototypes, constifying strings.
8732 * completer.c (noop_completer, filename_completer): Make "text"
8733 and "prefix" parameters const.
8734 (location_completer, expression_completer)
8735 (complete_line_internal): Make "text" and "prefix" parameters
8737 (command_completer, signal_completer): Make "text" and "prefix"
8739 * completer.h (noop_completer, filename_completer)
8740 (expression_completer, location_completer, command_completer)
8741 (signal_completer): Change prototypes.
8742 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8744 * cp-abi.c (cp_abi_completer): Likewise.
8745 * expression.h (parse_expression_for_completion): Change
8747 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8749 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8750 * infrun.c (handle_completer): Make "text" and "word" parameters
8752 * interps.c (interpreter_completer): Make "text" and "word"
8754 * language.h (struct language_defn)
8755 <la_make_symbol_completion_list>: Make "text" and "word"
8757 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8758 (parse_exp_in_context): Rename to ...
8759 (parse_exp_in_context_1): ... this.
8760 (parse_exp_in_context): Reimplement, with const hack from
8762 (parse_expression_for_completion): Make "string" parameter const.
8763 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8764 to pointer to const char. Adjust.
8765 (print_command_1): Make "exp" parameter const.
8766 (output_command): Rename to ...
8767 (output_command_const): ... this. Make "exp" parameter const.
8768 (output_command): Reimplement.
8769 (x_command): Adjust.
8770 (display_command): Rename "exp" parameter to "arg". New "exp"
8771 local, const version of "arg".
8772 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8773 "cmd_name" local const.
8774 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8776 (cmdpy_completer): Make "text" and "word" parameters const.
8777 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8778 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8780 * remote.c (_initialize_remote): Make "cmd_name" local const.
8781 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8782 parameters const. Adjust.
8783 (completion_list_add_fields): Make "sym_text", "text" and "word"
8785 (struct add_name_data) <sym_text, text, word>: Make fields const.
8786 (default_make_symbol_completion_list_break_on): Make "text" and
8787 "word" parameters const. Adjust locals.
8788 (default_make_symbol_completion_list)
8789 (make_symbol_completion_list, make_symbol_completion_type)
8790 (make_symbol_completion_list_fn): Make "text" and "word"
8792 (make_file_symbol_completion_list): Make "text", "word" and
8793 "srcfile" parameters const. Adjust locals.
8794 (add_filename_to_list): Make "text" and "word" parameters const.
8795 (struct add_partial_filename_data) <text, word>: Make fields
8797 (make_source_files_completion_list): Make "text" and "word"
8799 * symtab.h (default_make_symbol_completion_list_break_on)
8800 (default_make_symbol_completion_list, make_symbol_completion_list)
8801 (make_symbol_completion_type enum type_code)
8802 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8803 (make_source_files_completion_list): Change prototype.
8804 * top.c (execute_command): Adjust to pass pointer to pointer to
8805 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8807 (set_verbose): Make "cmdname" local const.
8808 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8810 (validate_actionline): Make "line" parameter a pointer to const
8812 (encode_actions_1): Make "action_exp" local const, and adjust.
8813 (encode_actions): Adjust.
8814 (replace_comma): Delete.
8815 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8816 const, and adjust. Don't frob the action string while splitting
8817 it at commas. Instead, make a copy of each split substring in
8819 (trace_dump_command): Adjust to validate_actionline prototype
8821 * tracepoint.h (decode_agent_options, decode_agent_options)
8822 (encode_actions, validate_actionline): Change prototypes.
8823 * valprint.h (output_command): Delete declaration.
8824 (output_command_const): Declare.
8825 * value.c (function_destroyer): Cast const away in xfree call.
8827 2013-03-13 Pedro Alves <palves@redhat.com>
8829 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8830 rather than casting 'const char * const *' to 'const char **'.
8831 * ada-lex.l (processInt): Make "trailer" local const. Remove
8832 'const char **' cast.
8833 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8834 locals, and use those as strtol output pointer, instead than doing
8835 invalid casts to from 'const char **' to 'char **'.
8836 (_initialize_demangle): Remove cast.
8837 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8838 locals, and use those as strtol output pointer, instead than doing
8839 invalid casts to from 'const char **' to 'char **'.
8840 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8842 * stap-probe.c (stap_parse_register_operand)
8843 (stap_parse_single_operand): Likewise.
8845 2013-03-13 Yao Qi <yao@codesourcery.com>
8847 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8848 the last matched 'V' blcok in trace frame.
8850 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8852 * NEWS: Create a new section for the next release branch.
8853 Rename the section of the current branch, now that it has
8856 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8858 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8859 * version.in: Bump version to 7.6.50.20130312-cvs.
8861 2013-03-12 Keith Seitz <keiths@redhat.com>
8863 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8864 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8865 Remove temporary copy of input string.
8866 (mi_execute_command_wrapper): Make "cmd" const.
8867 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8868 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8870 (mi_parse): Make "cmd" const.
8872 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8874 2013-03-12 Keith Seitz <keiths@redhat.com>
8876 * ada-lang.c (ada_read_renaming_var_value): Pass const
8877 pointer to expression string to parse_exp_1.
8878 (create_excep_cond_exprs): Likewise.
8879 * ax-gdb.c (agent_eval_command_one): Likewise.
8880 (maint_agent_printf_command): Likewise.
8881 Constify much of the string handling/parsing.
8882 * breakpoint.c (set_breakpoint_condition): Pass const
8883 pointer to expression string to parse_exp_1.
8884 (update_watchpoint): Likewise.
8885 (parse_cmd_to_aexpr): Constify string handling.
8886 Pass const pointer to parse_exp_1.
8887 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8888 (find_condition_and_thread): Likewise.
8890 (watch_command_1): Make "arg" const.
8891 Constify string handling.
8892 Copy the expression string instead of changing the input
8894 (update_breakpoint_location): Pass const pointer to
8896 * eval.c (parse_and_eval_address): Make "exp" const.
8897 (parse_to_comma_and_eval): Make "expp" const.
8898 (parse_and_eval): Make "exp" const.
8899 * expression.h (parse_expression): Make argument const.
8900 (parse_exp_1): Make first argument const.
8901 * findcmd.c (parse_find_args): Treat "args" as const.
8902 * linespec.c (parse_linespec): Pass const pointer to
8903 linespec_expression_to_pc.
8904 (linespec_expression_to_pc): Make "exp_ptr" const.
8905 * parse.c (parse_exp_1): Make "stringptr" const.
8906 Make a copy of the expression to pass to parse_exp_in_context until
8907 this whole interface can be constified.
8908 (parse_expression): Make "string" const.
8909 * printcmd.c (ui_printf): Treat "arg" as const.
8910 Handle const strings.
8911 * tracepoint.c (validate_actionline): Pass const pointer to
8912 all calls to parse_exp_1.
8913 (encode_actions_1): Likewise.
8914 * value.h (parse_to_comma_and_eval): Make argument const.
8915 (parse_and_eval_address): Likewise.
8916 (parse_and_eval): Likewise.
8917 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8918 (varobj_set_value): Likewise.
8919 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8920 constify string handling.
8921 Pass const pointers to parse_and_eval_address and
8922 parse_to_comman_and_eval.
8923 * cli/cli-utils.c (skip_to_space): Rename to ...
8924 (skip_to_space_const): ... this. Handle const strings.
8925 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8926 skip_to_space_const.
8927 (skip_to_space_const): Declare.
8928 * common/format.c (parse_format_string): Make "arg" const.
8929 Handle const strings.
8930 * common/format.h (parse_format_string): Make "arg" const.
8931 * gdbserver/ax.c (ax_printf): Make "format" const.
8932 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8933 of the expression string.
8935 2013-03-12 Hui Zhu <hui@codesourcery.com>
8937 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8939 2013-03-12 Yao Qi <yao@codesourcery.com>
8940 Hui Zhu <hui@codesourcery.com>
8942 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8943 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8946 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8948 * ada-lex.l (rules): Only recognize 'thread' as a
8949 delimiter when followed by numerals, as for c-exp.y.
8950 Use new rewind_to_char function to rewind the input for
8951 expression-delimiting tokens.
8952 (rewind_to_char): New function.
8954 2013-03-11 Pedro Alves <palves@redhat.com>
8955 Jan Kratochvil <jan.kratochvil@redhat.com>
8957 * configure: Regenerate.
8958 * configure.ac (check dynamic export flag): Link python test with
8961 2013-03-11 Doug Evans <dje@google.com>
8962 Keith Seitz <keiths@redhat.com>
8964 * linespec.c (find_linespec_symbols): Call find_function_symbols
8965 first, and then call lookup_prefix_sym/find_method.
8967 2013-03-11 Pedro Alves <palves@redhat.com>
8969 * charset.c (convert_between_encodings): Don't cast between
8970 different pointer to pointer types. Instead, make the 'inp' local
8971 be of the type iconv expects.
8972 (wchar_iterate): Don't cast between different pointer to pointer
8973 types. Instead, use new pointer local of the type iconv expects.
8974 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8975 Add new local of type char pointer, and use it to get a
8976 char/string view of the byte buffer, instead of casting between
8977 pointer to pointer types.
8979 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8981 * remote.c (remote_set_trace_buffer_size): Move != operator
8982 to the start of next line to fix an ARI warning.
8984 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8986 * NEWS: Add record changes.
8988 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8990 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8991 the instruction history disassembly.
8992 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8993 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8995 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8997 * Makefile.in (SFILES): Add record-btrace.c
8998 (COMMON_OBS): Add record-btrace.o
8999 * record-btrace.c: New.
9000 * objfiles.c: Include btrace.h.
9001 (free_objfile): call btrace_free_objfile.
9003 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9005 * target.c (target_call_history, target_call_history_from,
9006 target_call_history_range): New.
9007 * target.h (target_ops) <to_call_history, to_call_history_from,
9008 to_call_history_range>: New fields.
9009 (target_call_history, target_call_history_from,
9010 target_call_history_range): New declaration.
9011 * record.c (get_call_history_modifiers, cmd_record_call_history,
9012 record_call_history_size): New.
9013 (_initialize_record): Add the "record function-call-history" command.
9014 Add "set/show record function-call-history-size" commands.
9015 * record.h (record_print_flag): New.
9017 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9019 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9020 to_insn_history_range>: New fields.
9021 (target_insn_history): New.
9022 (target_insn_history_from): New.
9023 (target_insn_history_range): New.
9024 * target.c (target_insn_history): New.
9025 (target_insn_history_from): New.
9026 (target_insn_history_range): New.
9027 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9028 (record_insn_history_size): New.
9029 (get_insn_number): New.
9030 (get_context_size): New.
9032 (get_insn_history_modifiers): New.
9033 (cmd_record_insn_history): New.
9034 (_initialize_record): Add "set/show record instruction-history-size"
9035 command. Add "record instruction-history" command.
9037 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9039 * record.h (record_disconnect): New.
9040 (record_detach): New.
9041 (record_mourn_inferior): New.
9043 * record-full.c (record_disconnect, record_detach,
9044 record_mourn_inferior, record_kill): Move to...
9045 * record.c: ...here.
9048 (record_unpush): New.
9049 (cmd_record_stop): Call record_stop. Replace unpush_target
9050 call with record_unpush call.
9051 (record_disconnect, record_detach): Assert that the target
9052 is of record stratum. Call record_unpush, record_stop, and
9054 (record_mourn_inferior, record_kill): Assert that the target
9055 is of record stratum. Call record_unpush and DEBUG.
9057 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9059 * record-full.h, record-full.c (record_memory_query): Rename
9061 (record_full_memory_query): ...this. Update all users.
9062 (record_arch_list_add_reg): Rename to ...
9063 (record_full_arch_list_add_reg): ...this. Update all users.
9064 (record_arch_list_add_mem): Rename to ...
9065 (record_full_arch_list_add_mem): ...this. Update all users.
9066 (record_arch_list_add_end): Rename to ...
9067 (record_full_arch_list_add_end): ...this. Update all users.
9068 (record_gdb_operation_disable_set): Rename to ...
9069 (record_full_gdb_operation_disable_set): ...this.
9072 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9074 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9075 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9076 (RECORD_IS_REPLAY): Renamed to ...
9077 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9078 (RECORD_FILE_MAGIC): Renamed to ...
9079 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9080 (record_mem_entry): Renamed to ...
9081 (record_full_mem_entry): ... this. Updated all users.
9082 (record_reg_entry): Renamed to ...
9083 (record_full_reg_entry): ... this. Updated all users.
9084 (record_end_entry): Renamed to ...
9085 (record_full_end_entry): ... this. Updated all users.
9086 (record_type) <record_end, record_reg, record_mem>: Renamed
9088 (record_full_type) <record_full_end, record_full_reg,
9089 record_full_mem>: ... this. Updated all users.
9090 (record_entry): Renamed to ...
9091 (record_full_entry): ... this. Updated all users.
9092 (record_core_buf_entry): Renamed to ...
9093 (record_full_core_buf_entry): ... this. Updated all users.
9094 (record_core_regbuf): Renamed to ...
9095 (record_full_core_regbuf): ... this. Updated all users.
9096 (record_core_start): Renamed to ...
9097 (record_full_core_start): ... this. Updated all users.
9098 (record_core_end): Renamed to ...
9099 (record_full_core_end): ... this. Updated all users.
9100 (record_core_buf_list): Renamed to ...
9101 (record_full_core_buf_list): ... this. Updated all users.
9102 (record_first): Renamed to ...
9103 (record_full_first): ... this. Updated all users.
9104 (record_list): Renamed to ...
9105 (record_full_list): ... this. Updated all users.
9106 (record_arch_list_head): Renamed to ...
9107 (record_full_arch_list_head): ... this. Updated all users.
9108 (record_arch_list_tail): Renamed to ...
9109 (record_full_arch_list_tail): ... this. Updated all users.
9110 (record_stop_at_limit): Renamed to ...
9111 (record_full_stop_at_limit): ... this. Updated all users.
9112 (record_insn_max_num): Renamed to ...
9113 (record_full_insn_max_num): ... this. Updated all users.
9114 (record_insn_num): Renamed to ...
9115 (record_full_insn_num): ... this. Updated all users.
9116 (record_insn_count): Renamed to ...
9117 (record_full_insn_count): ... this. Updated all users.
9118 (record_ops): Renamed to ...
9119 (record_full_ops): ... this. Updated all users.
9120 (record_core_ops): Renamed to ...
9121 (record_full_core_ops): ... this. Updated all users.
9122 (set_record_cmdlist): Renamed to ...
9123 (set_record_full_cmdlist): ... this. Updated all users.
9124 (show_record_cmdlist): Renamed to ...
9125 (show_record_full_cmdlist): ... this. Updated all users.
9126 (record_cmdlist): Renamed to ...
9127 (record_full_cmdlist): ... this. Updated all users.
9128 (record_beneath_to_resume_ops): Renamed to ...
9129 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9130 (record_beneath_to_resume): Renamed to ...
9131 (record_full_beneath_to_resume): ... this. Updated all users.
9132 (record_beneath_to_wait_ops): Renamed to ...
9133 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9134 (record_beneath_to_wait): Renamed to ...
9135 (record_full_beneath_to_wait): ... this. Updated all users.
9136 (record_beneath_to_store_registers_ops): Renamed to ...
9137 (record_full_beneath_to_store_registers_ops): ... this.
9139 (record_beneath_to_store_registers): Renamed to ...
9140 (record_full_beneath_to_store_registers): ... this.
9142 (record_beneath_to_xfer_partial_ops): Renamed to ...
9143 (record_full_beneath_to_xfer_partial_ops): ... this.
9145 (record_beneath_to_xfer_partial): Renamed to ...
9146 (record_full_beneath_to_xfer_partial): ... this.
9148 (record_beneath_to_insert_breakpoint): Renamed to ...
9149 (record_full_beneath_to_insert_breakpoint): ... this.
9151 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9152 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9154 (record_beneath_to_stopped_data_address): Renamed to ...
9155 (record_full_beneath_to_stopped_data_address): ... this.
9157 (record_beneath_to_async): Renamed to ...
9158 (record_full_beneath_to_async): ... this. Updated all users.
9159 (record_goto_insn): Renamed to ...
9160 (record_full_goto_insn): ... this. Updated all users.
9161 (record_save): Renamed to ...
9162 (record_full_save): ... this. Updated all users.
9163 (record_reg_alloc): Renamed to ...
9164 (record_full_reg_alloc): ... this. Updated all users.
9165 (record_reg_release): Renamed to ...
9166 (record_full_reg_release): ... this. Updated all users.
9167 (record_mem_alloc): Renamed to ...
9168 (record_full_mem_alloc): ... this. Updated all users.
9169 (record_mem_release): Renamed to ...
9170 (record_full_mem_release): ... this. Updated all users.
9171 (record_end_alloc): Renamed to ...
9172 (record_full_end_alloc): ... this. Updated all users.
9173 (record_end_release): Renamed to ...
9174 (record_full_end_release): ... this. Updated all users.
9175 (record_entry_release): Renamed to ...
9176 (record_full_entry_release): ... this. Updated all users.
9177 (record_list_release): Renamed to ...
9178 (record_full_list_release): ... this. Updated all users.
9179 (record_list_release_following): Renamed to ...
9180 (record_full_list_release_following): ... this.
9182 (record_list_release_first): Renamed to ...
9183 (record_full_list_release_first): ... this. Updated all users.
9184 (record_arch_list_add): Renamed to ...
9185 (record_full_arch_list_add): ... this. Updated all users.
9186 (record_get_loc): Renamed to ...
9187 (record_full_get_loc): ... this. Updated all users.
9188 (record_check_insn_num): Renamed to ...
9189 (record_full_check_insn_num): ... this. Updated all users.
9190 (record_arch_list_cleanups): Renamed to ...
9191 (record_full_arch_list_cleanups): ... this. Updated all users.
9192 (record_message): Renamed to ...
9193 (record_full_message): ... this. Updated all users.
9194 (record_message_wrapper): Renamed to ...
9195 (record_full_message_wrapper): ... this. Updated all users.
9196 (record_message_wrapper_safe): Renamed to ...
9197 (record_full_message_wrapper_safe): ... this. Updated all users.
9198 (record_gdb_operation_disable): Renamed to ...
9199 (record_full_gdb_operation_disable): ... this. Updated all users.
9200 (record_hw_watchpoint): Renamed to ...
9201 (record_full_hw_watchpoint): ... this. Updated all users.
9202 (record_exec_insn): Renamed to ...
9203 (record_full_exec_insn): ... this. Updated all users.
9204 (record_restore): Renamed to ...
9205 (record_full_restore): ... this. Updated all users.
9206 (record_async_inferior_event_token): Renamed to ...
9207 (record_full_async_inferior_event_token): ... this.
9209 (record_async_inferior_event_handler): Renamed to ...
9210 (record_full_async_inferior_event_handler): ... this.
9212 (record_core_open_1): Renamed to ...
9213 (record_full_core_open_1): ... this. Updated all users.
9214 (record_open_1): Renamed to ...
9215 (record_full_open_1): ... this. Updated all users.
9216 (record_open): Renamed to ...
9217 (record_full_open): ... this. Updated all users.
9218 (record_close): Renamed to ...
9219 (record_full_close): ... this. Updated all users.
9220 (record_resume_step): Renamed to ...
9221 (record_full_resume_step): ... this. Updated all users.
9222 (record_resumed): Renamed to ...
9223 (record_full_resumed): ... this. Updated all users.
9224 (record_execution_dir): Renamed to ...
9225 (record_full_execution_dir): ... this. Updated all users.
9226 (record_resume): Renamed to ...
9227 (record_full_resume): ... this. Updated all users.
9228 (record_get_sig): Renamed to ...
9229 (record_full_get_sig): ... this. Updated all users.
9230 (record_sig_handler): Renamed to ...
9231 (record_full_sig_handler): ... this. Updated all users.
9232 (record_wait_cleanups): Renamed to ...
9233 (record_full_wait_cleanups): ... this. Updated all users.
9234 (record_wait_1): Renamed to ...
9235 (record_full_wait_1): ... this. Updated all users.
9236 (record_wait): Renamed to ...
9237 (record_full_wait): ... this. Updated all users.
9238 (record_stopped_by_watchpoint): Renamed to ...
9239 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9240 (record_disconnect): Renamed to ...
9241 (record_full_disconnect): ... this. Updated all users.
9242 (record_detach): Renamed to ...
9243 (record_full_detach): ... this. Updated all users.
9244 (record_mourn_inferior): Renamed to ...
9245 (record_full_mourn_inferior): ... this. Updated all users.
9246 (record_kill): Renamed to ...
9247 (record_full_kill): ... this. Updated all users.
9248 (record_stopped_data_address): Renamed to ...
9249 (record_full_stopped_data_address): ... this. Updated all users.
9250 (record_registers_change): Renamed to ...
9251 (record_full_registers_change): ... this. Updated all users.
9252 (record_store_registers): Renamed to ...
9253 (record_full_store_registers): ... this. Updated all users.
9254 (record_xfer_partial): Renamed to ...
9255 (record_full_xfer_partial): ... this. Updated all users.
9256 (record_breakpoint): Renamed to ...
9257 (record_full_breakpoint): ... this. Updated all users.
9258 (record_breakpoint_p): Renamed to ...
9259 (record_full_breakpoint_p): ... this. Updated all users.
9260 (record_breakpoints): Renamed to ...
9261 (record_full_breakpoints): ... this. Updated all users.
9262 (record_sync_record_breakpoints): Renamed to ...
9263 (record_full_sync_record_breakpoints): ... this.
9265 (record_init_record_breakpoints): Renamed to ...
9266 (record_full_init_record_breakpoints): ... this.
9268 (record_insert_breakpoint): Renamed to ...
9269 (record_full_insert_breakpoint): ... this. Updated all users.
9270 (record_remove_breakpoint): Renamed to ...
9271 (record_full_remove_breakpoint): ... this. Updated all users.
9272 (record_can_execute_reverse): Renamed to ...
9273 (record_full_can_execute_reverse): ... this. Updated all users.
9274 (record_get_bookmark): Renamed to ...
9275 (record_full_get_bookmark): ... this. Updated all users.
9276 (record_goto_bookmark): Renamed to ...
9277 (record_full_goto_bookmark): ... this. Updated all users.
9278 (record_async): Renamed to ...
9279 (record_full_async): ... this. Updated all users.
9280 (record_can_async_p): Renamed to ...
9281 (record_full_can_async_p): ... this. Updated all users.
9282 (record_is_async_p): Renamed to ...
9283 (record_full_is_async_p): ... this. Updated all users.
9284 (record_execution_direction): Renamed to ...
9285 (record_full_execution_direction): ... this. Updated all users.
9286 (record_info): Renamed to ...
9287 (record_full_info): ... this. Updated all users.
9288 (record_delete): Renamed to ...
9289 (record_full_delete): ... this. Updated all users.
9290 (record_is_replaying): Renamed to ...
9291 (record_full_is_replaying): ... this. Updated all users.
9292 (record_goto_entry): Renamed to ...
9293 (record_full_goto_entry): ... this. Updated all users.
9294 (record_goto_begin): Renamed to ...
9295 (record_full_goto_begin): ... this. Updated all users.
9296 (record_goto_end): Renamed to ...
9297 (record_full_goto_end): ... this. Updated all users.
9298 (record_goto): Renamed to ...
9299 (record_full_goto): ... this. Updated all users.
9300 (init_record_ops): Renamed to ...
9301 (init_record_full_ops): ... this. Updated all users.
9302 (record_core_resume): Renamed to ...
9303 (record_full_core_resume): ... this. Updated all users.
9304 (record_core_kill): Renamed to ...
9305 (record_full_core_kill): ... this. Updated all users.
9306 (record_core_fetch_registers): Renamed to ...
9307 (record_full_core_fetch_registers): ... this. Updated all users.
9308 (record_core_prepare_to_store): Renamed to ...
9309 (record_full_core_prepare_to_store): ... this. Updated all users.
9310 (record_core_store_registers): Renamed to ...
9311 (record_full_core_store_registers): ... this. Updated all users.
9312 (record_core_xfer_partial): Renamed to ...
9313 (record_full_core_xfer_partial): ... this. Updated all users.
9314 (record_core_insert_breakpoint): Renamed to ...
9315 (record_full_core_insert_breakpoint): ... this. Updated all users.
9316 (record_core_remove_breakpoint): Renamed to ...
9317 (record_full_core_remove_breakpoint): ... this. Updated all users.
9318 (record_core_has_execution): Renamed to ...
9319 (record_full_core_has_execution): ... this. Updated all users.
9320 (init_record_core_ops): Renamed to ...
9321 (init_record_full_core_ops): ... this. Updated all users.
9322 (cmd_record_restore): Renamed to ...
9323 (cmd_record_full_restore): ... this. Updated all users.
9324 (record_save_cleanups): Renamed to ...
9325 (record_full_save_cleanups): ... this. Updated all users.
9326 (cmd_record_start): Renamed to ...
9327 (cmd_record_full_start): ... this. Updated all users.
9328 (set_record_insn_max_num): Renamed to ...
9329 (set_record_full_insn_max_num): ... this. Updated all users.
9330 (set_record_command): Renamed to ...
9331 (set_record_full_command): ... this. Updated all users.
9332 (show_record_command): Renamed to ...
9333 (show_record_full_command): ... this. Updated all users.
9334 (_initialize_record): Renamed to ...
9335 (_initialize_record_full): ... this. Updated all users.
9337 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9339 * record.h: Split into this and ...
9340 * record-full.h: ... this.
9341 * record.c: Split into this and ...
9342 * record-full.c: ... this.
9343 * target.h (target_ops): Add new fields to_info_record,
9344 to_save_record, to_delete_record, to_record_is_replaying,
9345 to_goto_record_begin, to_goto_record_end, to_goto_record.
9346 (target_info_record): New.
9347 (target_save_record): New.
9348 (target_supports_delete_record): New.
9349 (target_delete_record): New.
9350 (target_record_is_replaying): New.
9351 (target_goto_record_begin): New.
9352 (target_goto_record_end): New.
9353 (target_goto_record): New.
9354 * target.c (target_info_record): New.
9355 (target_save_record): New.
9356 (target_supports_delete_record): New.
9357 (target_delete_record): New.
9358 (target_record_is_replaying): New.
9359 (target_goto_record_begin): New.
9360 (target_goto_record_end): New.
9361 (target_goto_record): New.
9362 * record.h: Declare struct cmd_list_element.
9363 (record_cmdlist): New declaration.
9364 (set_record_cmdlist): New declaration.
9365 (show_record_cmdlist): New declaration.
9366 (info_record_cmdlist): New declaration.
9367 (cmd_record_goto): New declaration.
9368 * record.c: Remove unnecessary includes.
9370 (cmd_record_goto): Remove declaration.
9371 (record_cmdlist): Now extern. Initialize.
9372 (set_record_cmdlist): Now extern. Initialize.
9373 (show_record_cmdlist): Now extern. Initialize.
9374 (info_record_cmdlist): Now extern. Initialize.
9375 (find_record_target): New.
9376 (require_record_target): New.
9377 (cmd_record_start): Update.
9378 (cmd_record_delete): Remove target-specific code.
9379 Call target_delete_record.
9380 (cmd_record_stop): Unpush any record target.
9381 (set_record_insn_max_num): Move to record-full.c
9382 (set_record_command): Add comment.
9383 (show_record_command): Add comment.
9384 (info_record_command): Update comment.
9385 Remove target-specific code.
9386 Call the record target's to_info_record.
9387 (cmd_record_start): New.
9388 (cmd_record_goto): Now extern.
9389 Remove target-specific code.
9390 Call target_goto_begin, target_goto_end, or target_goto.
9391 (_initialize_record): Move record target ops initialization to
9393 Change "record" command help text.
9394 Move "record restore", "record set", and "record show" commands to
9396 * Makefile.in (SFILES): Add record-full.c.
9397 (HFILES_NO_SRCDIR): Add record-full.h.
9398 (COMMON_OBS): Add record-full.o.
9399 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9400 * arm-tdep.c: Include record-full.h.
9401 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9402 * i386-tdep.c: Include record-full.h.
9403 * infrun.c: Include record-full.h.
9404 * linux-record.c: Include record-full.h.
9405 * moxie-tdep.c: Include record-full.h.
9406 * record-full.c: Include record-full.h.
9407 Change module comment.
9408 (set_record_full_cmdlist): New.
9409 (show_record_full_cmdlist): New.
9410 (record_full_cmdlist): New.
9411 (record_goto_insn): New declaration.
9412 (record_save): New declaration.
9413 (record_check_insn_num): Change query string.
9415 (record_delete): New.
9416 (record_is_replaying): New.
9417 (record_goto_entry): New.
9418 (record_goto_begin): New.
9419 (record_goto_end): New.
9421 (init_record_ops): Update.
9422 (init_record_core_ops): Update.
9423 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9424 (cmd_record_start): New.
9425 (set_record_insn_max_num): Moved from record.c
9426 (set_record_full_command): New.
9427 (show_record_full_command): New.
9428 (_initialize_record_full): New.
9430 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9432 * target.h (add_deprecated_target_alias): New.
9433 * target.c (add_deprecated_target_alias): New.
9435 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9437 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9439 (linux_supports_btrace): Add kernel and
9441 (kernel_supports_btrace): New function.
9442 (cpu_supports_btrace): New function.
9443 (intel_supports_btrace): New function.
9445 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9447 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9448 * remote.c: Include btrace.h.
9449 (struct btrace_target_info): New struct.
9450 (remote_supports_btrace): New function.
9451 (send_Qbtrace): New function.
9452 (remote_enable_btrace): New function.
9453 (remote_disable_btrace): New function.
9454 (remote_teardown_btrace): New function.
9455 (remote_read_btrace): New function.
9456 (init_remote_ops): Add btrace ops.
9457 (enum <unnamed>): Add btrace packets.
9458 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9459 (_initialize_remote): Add packet configuration for branch tracing.
9461 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9463 * features/btrace.dtd: New file.
9464 * Makefile.in (XMLFILES): Add btrace.dtd.
9465 * btrace.h (parse_xml_btrace): New declaration.
9466 * btrace.c: Include xml-support.h.
9467 (parse_xml_btrace): New function.
9468 (parse_xml_btrace_block): New function.
9469 (block_attributes): New struct.
9470 (btrace_attributes): New struct.
9471 (btrace_children): New struct.
9472 (btrace_elements): New struct.
9474 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9476 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9477 (amd64_linux_enable_btrace): New.
9478 (amd64_linux_disable_btrace): New.
9479 (amd64_linux_teardown_btrace): New.
9480 (_initialize_amd64_linux_nat): Initialize btrace ops.
9481 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9482 (i386_linux_enable_btrace): New.
9483 (i386_linux_disable_btrace): New.
9484 (i386_linux_teardown_btrace): New.
9485 (_initialize_i386_linux_nat): Initialize btrace ops.
9486 * config/i386/linux.mh: Add linux-btrace.o.
9487 * config/i386/linux64.mh: Add linux-btrace.o.
9489 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9491 * common/linux_btrace.h: New file.
9492 * common/linux_btrace.c: New file.
9493 * Makefile.in (SFILES): Add btrace.c.
9494 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9495 (COMMON_OBS): Add btrace.o.
9496 (linux-btrace.o): New rule.
9498 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9500 * target.h: Include btrace.h.
9501 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9502 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9503 * target.c (target_supports_btrace): New function.
9504 (target_enable_btrace): New function.
9505 (target_disable_btrace): New function.
9506 (target_teardown_btrace): New function.
9507 (target_read_btrace): New function.
9508 * btrace.h: New file.
9509 * btrace.c: New file.
9510 * Makefile.in: Add btrace.c.
9511 * gdbthread.h: Include btrace.h.
9512 (struct thread_info): Add btrace field.
9513 * thread.c: Include btrace.h.
9514 (clear_thread_inferior_resources): Call target_teardown_btrace.
9515 * common/btrace-common.h: New file.
9517 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9519 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9520 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9521 kill_status to outer block.
9523 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9525 Fix entry-values if the callee called a noreturn function.
9526 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9527 get_frame_address_in_block. Add new comment.
9529 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9531 Fix entry-values in C++ across CUs.
9532 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9533 lookup_minimal_symbol. Add a comment.
9535 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9538 2013-03-08 Yao Qi <yao@codesourcery.com>
9540 * tracepoint.c (_initialize_tracepoint): Indent the code.
9542 2013-03-08 Pedro Alves <palves@redhat.com>
9544 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9545 (parse_find_args, find_command): Change type of pattern buffer
9546 locals to 'gdb_byte *'.
9548 2013-03-08 Stan Shebs <stan@codesourcery.com>
9549 Hafiz Abid Qadeer <abidh@codesourcery.com>
9551 * NEWS: Mention set and show trace-buffer-size commands.
9553 * target.h (struct target_ops): New method
9554 to_set_trace_buffer_size.
9555 (target_set_trace_buffer_size): New macro.
9556 * target.c (update_current_target): Set up new method.
9557 * tracepoint.c (trace_buffer_size): New global.
9558 (start_tracing): Send it to the target.
9559 (set_trace_buffer_size): New function.
9560 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9561 * remote.c (remote_set_trace_buffer_size): New function.
9562 (_initialize_remote): Use it.
9563 (QTBuffer:size) New remote command.
9564 (PACKET_QTBuffer_size): New enum.
9565 (remote_protocol_features): Add an entry for
9566 PACKET_QTBuffer_size.
9568 2013-03-08 Tom Tromey <tromey@redhat.com>
9570 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9573 2013-03-07 Pedro Alves <palves@redhat.com>
9575 * target.c (target_read_stralloc, target_fileio_read_alloc):
9576 *Cast pointer to 'gdb_byte *' in target call.
9578 2013-03-07 Pedro Alves <palves@redhat.com>
9580 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9583 2013-03-07 Keith Seitz <keiths@redhat.com>
9585 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9586 (trace_pass_command): Likewise.
9587 * cli/cli-cmds.c: Include cli/cli-utils.h.
9588 (source_command): Use skip-spaces.
9589 (disassemble_command): Likewise.
9590 * findcmd.c: Include cli/cli-utils.h.
9591 (parse_find_args): Use skip_spaces.
9592 * go32-nat.c: Include cli/cli-utils.h.
9593 (go32_sldt): Use skip_spaces.
9594 (go32_sgdt): Likewise.
9595 (go32_sidt): Likewise.
9596 (go32_pde): Likewise.
9597 (go32_pte): Likewise.
9598 (go32_pte_for_address): Likewise.
9599 * infcmd.c: Include cli/cli-utils.h.
9600 (registers_info): Use skip_spaces.
9601 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9602 (linux_info_proc): Likewise.
9603 * linux-thread-db.c: Include cli/cli-utils.h.
9604 (info_auto_load_libthread_db): Use skip_spaces_const.
9605 * m32r-rom.c: Include cli/cli-utils.h.
9606 (m32r_upload_command): Use skip_spaces.
9607 * maint.c: Include cli/cli-utils.h.
9608 (maintenance_translate_address): Use skip_spaces.
9609 * mi/mi-parse.c: Include cli/cli-utils.h.
9610 (mi_parse_argv): Use skip_spaces.
9611 (mi_parse): Likewise.
9612 * minsyms.c: Include cli/cli-utils.h.
9613 (msymbol_hash_iw): Use skip_spaces_const.
9614 * objc-lang.c: Include cli/cli-utils.h.
9615 (parse_selector): Use skip_spaces.
9616 (parse_method): Likewise.
9617 * python/python.c: Include cli/cli-utils.h.
9618 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9619 (python_command)[HAVE_PYTHON]: Likewise.
9620 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9621 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9622 (m32r_load): Use skip_spaces.
9623 * serial.c: Include cli/cli-utils.h.
9624 (serial_open): Use skip_spaces_const.
9625 * stack.c: Include cli/cli-utils.h.
9626 (parse_frame_specification_1): Use skip_spaces_const.
9627 * symfile.c: Include cli/cli-utils.h.
9628 (set_ext_lang_command): Use skip_spaces.
9629 * symtab.c: Include cli/cli-utils.h.
9630 (rbreak_command): Use skip_spaces.
9631 * thread.c (thread_name_command): Use skip_spaces.
9632 * tracepoint.c (validate_actionline): Use skip_spaces.
9633 (encode_actions_1): Likewise.
9634 (trace_find_range_command): Likewise.
9635 (trace_find_outside_command): Likewise.
9636 (trace_dump_actions): Likewise.
9638 2013-03-07 Pedro Alves <palves@redhat.com>
9640 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9641 * expprint.c (print_subexp_standard): Likewise.
9642 * utils.c (host_char_to_target): Likewise.
9643 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9644 * varobj.c (value_get_print_value): Change type of local to char*.
9645 Cast it gdb_byte * in call to language printer.
9647 2013-03-07 Pedro Alves <palves@redhat.com>
9649 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9651 (make_wchar_iterator): Remove cast to char*.
9652 (wchar_iterate): Change type of local.
9654 2013-03-07 Pedro Alves <palves@redhat.com>
9656 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9657 for 'regcache->register_status'.
9659 2013-03-07 Pedro Alves <palves@redhat.com>
9661 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9664 2013-03-07 Pedro Alves <palves@redhat.com>
9666 * stap-probe.c (handle_stap_probe): Add cast to char*.
9668 2013-03-07 Pedro Alves <palves@redhat.com>
9670 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9671 RECORD_MSGRCV>: Pass a signed variable to
9672 regcache_raw_read_signed, instead of an unsigned one.
9674 2013-03-07 Pedro Alves <palves@redhat.com>
9676 * remote-notif.c (notif_debug): Change type to int.
9677 * remote-notif.h (notif_debug): Likewise.
9679 2013-03-07 Pedro Alves <palves@redhat.com>
9681 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9683 2013-03-07 Pedro Alves <palves@redhat.com>
9685 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9686 * remote.h (hex2bin, bin2hex): ... here.
9687 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9689 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9691 * utils.c (initialize_utils): Improve doc strings of "set/show
9692 width", "set/show height", and "set/show pagination".
9694 2013-03-06 Keith Seitz <keiths@redhat.com>
9696 * ax-gdb.c (gen_printf): Make FORMAT const.
9697 * ax-gdb.h (gen_printf): Likewise.
9698 * ax-general.c (ax_string): Make STR const.
9699 * ax.h (ax_string): Likewise.
9701 2013-03-06 Doug Evans <dje@google.com>
9703 * elfread.c (elf_symfile_read): Move debugging printf to more
9706 2013-03-06 Pedro Alves <palves@redhat.com>
9708 * python/py-utils.c (target_string_to_unicode): Delete function.
9709 * python/python-internal.h (target_string_to_unicode): Delete
9712 2013-03-06 Pierre Muller <muller@sourceware.org>
9714 * linespec.c (get_current_search_block): ARI fix, use (void)
9715 for empty parameter list.
9717 2013-03-05 Doug Evans <dje@google.com>
9719 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9720 of old ada_lookup_symbol_list. In !full_search case, don't
9722 (ada_lookup_symbol_list): Delete arg full_search, all callers
9723 updated. Call ada_lookup_symbol_list_worker.
9724 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9725 * ada-lang.h (ada_lookup_symbol_list): Update.
9726 * language.h (language_defn): Update comment for
9727 la_iterate_over_symbols.
9728 * linespec.c (iterate_over_file_blocks): New function.
9729 (iterate_over_all_matching_symtabs): Call it.
9730 (lookup_prefix_sym): Ditto.
9731 (get_current_search_block): New function.
9732 (get_search_block): Delete.
9733 (find_label_symbols): Call get_current_search_block.
9734 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9735 * symtab.c (iterate_over_symbols): Don't search superblocks.
9737 2013-03-05 Yao Qi <yao@codesourcery.com>
9739 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9740 parameter VAR's type from "unsigned int" to "int".
9741 * command.h (var_zuinteger_unlimited): Update its comments.
9742 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9744 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9746 * NEWS: Mention new target x86_64-*-cygwin*.
9748 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9750 * configure.host: Add x86_64-*-cygwin* as host.
9751 * configure.tgt: Add x86_64-*-cygwin* as target.
9752 * config/i386/cygwin64.mh: New file.
9754 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9756 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9758 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 * linespec.c (struct linespec_canonical_name): New.
9761 (struct linespec_state): Change canonical_names type to it.
9762 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9763 xrealloc element size. Initialize the different CANONICAL fields.
9764 (canonical_to_fullform): New.
9765 (filter_results): Use it. Add variables canonical, fullform and
9767 (struct decode_line_2_item, decode_line_2_compare_items): New.
9768 (decode_line_2): Remove variables iter and item_names, add variables
9769 items and items_count. Modify the code for these new variables.
9771 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9773 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9776 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9778 * tracepoint.c (build_traceframe_info): Add code for byte order.
9780 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9782 * v850-tdep.c: (v850e2_register_name): Revise system register
9783 names to match current V850E2M architecture specifications.
9784 Update register number enum comments too.
9786 2013-03-01 Jiong Wang <jiwang@tilera.com>
9787 Pedro Alves <palves@redhat.com>
9789 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9791 (tilegx_skip_prologue): Limit prologue analysis to section end.
9793 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9795 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9798 2013-03-01 Pedro Alves <palves@redhat.com>
9800 Use gdb_byte for bytes from the program being debugged.
9802 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9803 Change type of local 'buf' to gdb_byte.
9804 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9805 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9806 * cris-tdep.c (cris_sigcontext_addr)
9807 (cris_sigtramp_frame_unwind_cache): Likewise.
9808 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9809 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9811 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9812 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9813 (hppa32_hpux_search_dummy_call_sequence)
9814 (hppa_hpux_supply_save_state): Likewise.
9815 * hppa-linux-tdep.c (insns_match_pattern)
9816 (hppa_linux_find_global_pointer): Likewise.
9817 * hppa-tdep.c (hppa_in_function_epilogue_p)
9818 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9819 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9820 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9821 (i386fbsd_collect_uthread): Likewise.
9822 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9823 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9824 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9825 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9826 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9827 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9828 (ia64_libunwind_frame_prev_register)
9829 (ia64_libunwind_sigtramp_frame_this_id)
9830 (ia64_find_global_pointer_from_dynamic_section)
9831 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9832 (ia64_unwind_pc): Likewise.
9833 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9834 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9835 (m68hc11_extract_return_value): Likewise.
9836 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9837 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9838 (mep_get_insn, mep_push_dummy_call): Likewise.
9839 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9840 (mips_linux_in_dynsym_stub): Likewise.
9841 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9842 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9843 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9845 * remote-mips.c (mips_set_register): Likewise.
9846 * remote-sim.c (gdbsim_fetch_register): Likewise.
9847 * score-tdep.c (score7_fetch_inst): Change type of parameter
9848 'memblock' and local 'buf' to gdb_byte.
9849 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9850 Change type of local 'buf' to gdb_byte. Adjust.
9851 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9853 (score7_analyze_prologue): Change type of 'memblock' and
9854 'memblock_ptr' locals to gdb_byte*.
9855 * sh64-tdep.c (sh64_extract_return_value)
9856 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9857 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9858 * solib-pa64.c (pa64_solib_create_inferior_hook)
9859 (pa64_open_symbol_file_object): Remove local 'buf'.
9860 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9861 (som_open_symbol_file_object): Likewise.
9862 * solib-spu.c (spu_current_sos): Likewise.
9863 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9864 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9865 (spu_store_registers): Likewise.
9866 * target.c (debug_print_register): Likewise.
9867 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9868 * xstormy16-tdep.c (xstormy16_store_return_value)
9869 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9870 (xstormy16_find_jmp_table_entry): Likewise.
9872 2013-03-01 Jiong Wang <jiwang@tilera.com>
9874 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9875 (tilegx_gdbarch_init): Install it.
9877 2013-02-28 Tom Tromey <tromey@redhat.com>
9879 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9882 2013-02-28 Doug Evans <dje@google.com>
9884 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9885 * python/python.c (gdbpy_find_pc_line): Ditto.
9887 2013-02-28 Tom Tromey <tromey@redhat.com>
9889 * contrib/excheck.py: New file.
9890 * contrib/exsummary.py: New file.
9891 * contrib/gcc-with-excheck: New file.
9893 2013-02-28 Tom Tromey <tromey@redhat.com>
9895 * python/python.c (gdbpy_print_stack): Call begin_line and
9896 fprintf_filtered inside TRY_CATCH.
9898 2013-02-28 Tom Tromey <tromey@redhat.com>
9900 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9903 2013-02-28 Tom Tromey <tromey@redhat.com>
9905 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9906 frame_object_to_frame_info inside TRY_CATCH.
9908 2013-02-28 Tom Tromey <tromey@redhat.com>
9910 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9913 2013-02-28 Tom Tromey <tromey@redhat.com>
9915 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9917 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9919 * windows-nat.c: Throughout, fix format strings and casts of
9920 printf-like functions to avoid type related warnings on all
9922 (handle_output_debug_string): Fetch context information address
9923 from debug string using string_to_core_addr.
9925 2013-02-27 Jiong Wang <jiwang@tilera.com>
9927 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9928 * regformats/reg-tilegx32.dat: New.
9930 2013-02-27 Jiong Wang <jiwang@tilera.com>
9932 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9934 2013-02-27 Jiong Wang <jiwang@tilera.com>
9936 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9938 2013-02-27 Yao Qi <yao@codesourcery.com>
9939 Pedro Alves <palves@redhat.com>
9941 * tracepoint.c (tfile_trace_find): For tfind
9942 pc/tp/range/outside, look for the next trace frame instead of
9943 always starting from frame 0.
9945 2013-02-26 Anthony Green <green@moxielogic.com>
9947 * configure.tgt: Add support for moxie-*-rtems* target.
9949 2013-02-25 Pedro Alves <palves@redhat.com>
9951 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9954 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9956 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9957 if $fp is used as the virtual frame pointer.
9959 2013-02-23 Alan Modra <amodra@gmail.com>
9961 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9963 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9964 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9965 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9966 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9968 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9971 * elfread.c (build_id_bfd_get): Make the return type const.
9972 (build_id_verify): Make the check parameter const.
9973 (build_id_to_debug_filename): Make the build_id parameter and variable
9975 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9977 2013-02-21 Alan Modra <amodra@gmail.com>
9979 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9981 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9983 Add a new method 'disassemble' to gdb.Architecture class.
9984 * python/py-arch.c (archpy_disassmble): Implementation of the
9985 new method gdb.Architecture.disassemble.
9986 (arch_object_methods): Add entry for the new method.
9988 2013-02-20 Jiong Wang <jiwang@tilera.com>
9990 * MAINTAINERS (Write After Approval): Add myself to the list.
9992 2013-02-19 Pedro Alves <palves@redhat.com>
9994 Garbage collect 'struct monitor_ops'::load_routine.
9996 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9997 * monitor.c (monitor_load): No longer call
9998 current_monitor->load_routine.
9999 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10000 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10001 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10003 2013-02-19 Pedro Alves <palves@redhat.com>
10007 Harmonize with generic_load.
10009 * monitor.c: Include "readline/readline.h".
10010 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10011 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10012 long/strtol for the 'load_offset' local. Error out if no argument
10013 is given or if too many arguments are given. Tilde expand the
10014 passed in file name.
10016 2013-02-19 Kai Tietz <ktietz@redhat.com>
10019 * symfile.c (load_section_data): Change type of load_offset
10021 (generic_load): User strtoulst instead of strtoul for conversion
10024 2013-02-19 Jiong Wang <jiwang@tilera.com>
10026 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10027 for return address, "lr" register, saved on stack.
10028 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10029 after we invoke tilegx_analyze_prologue.
10031 2013-02-19 Jiong Wang <jiwang@tilera.com>
10033 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10035 2013-02-19 Jiong Wang <jiwang@tilera.com>
10037 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10039 2013-02-19 Jiong Wang <jiwang@tilera.com>
10041 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10042 (tilegx_write_pc): New function.
10043 (tilegx_cannot_reference_register): Return zero if REGNO
10044 is TILEGX_FAULTNUM_REGNUM.
10045 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10046 (tilegx_register_name): Add handling of "faultnum" register.
10047 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10048 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10049 handling of TILEGX_FAULTNUM_REGNUM.
10050 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10052 2013-02-19 Jiong Wang <jiwang@tilera.com>
10054 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10055 should be aligned to 64bit.
10057 2013-02-19 Kai Tietz <ktietz@redhat.com>
10059 * windows-nat.c (windows_xfer_memory): Fix debug-output
10062 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10064 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10065 Don't check DSP register number if HAVE_DSP is not set.
10067 2013-02-19 Alan Modra <amodra@gmail.com>
10069 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10070 throughout file instead.
10071 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10072 Don't xmalloc return value.
10073 (build_id_verify): Similarly. Don't xfree.
10074 (build_id_to_debug_filename): Update.
10075 (find_separate_debug_file_by_buildid): Update, don't xfree.
10077 2013-02-18 Tom Tromey <tromey@redhat.com>
10080 * dwarf2read.c (read_subrange_type): Use result of
10083 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10085 * frame.c: Remove one extra white space after #include
10088 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10090 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10092 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10094 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10095 and dir commands into an if block.
10097 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10099 * python/py-breakpoint (struct pybp_code): Use int instead of
10102 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10103 Hafiz Abid Qadeer <abidh@codesourcery.com>
10105 * NEWS: Mention new field "trace-file".
10106 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10107 (tfile_open): Record the trace file's filename in the trace
10109 (tfile_files_info): Mention the name of the trace file.
10110 Check the "filename" field explicitely.
10111 (trace_status_command): Explicitely check "filename" field.
10112 (trace_find_command): Ditto.
10113 (trace_find_pc_command): Ditto.
10114 (trace_find_tracepoint_command): Ditto.
10115 (trace_find_line_command): Ditto.
10116 (trace_find_range_command): Ditto.
10117 (trace_find_outside_command): Ditto.
10118 * tracepoint.h (struct trace_status) <from_file>: Rename it
10119 to "filename" and make it hold the trace file's filename
10120 instead of a boolean.
10121 * remote.c (remote_get_trace_status): Initialize "filename"
10122 field with NULL instead of 0.
10124 2013-02-15 Yao Qi <yao@codesourcery.com>
10126 * remote.c: Fix a typo.
10128 2013-02-14 Pierre Muller <muller@sourceware.org>
10130 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10132 2013-02-14 Pedro Alves <palves@redhat.com>
10134 * utils.c (savestring): Don't #undef it. Move function to
10135 common/common-utils.c.
10136 * common/common-utils.c: Include gdb_string.h.
10137 (savestring): Move here from utils.c.
10138 * common/common-utils.h (savestring): Declare.
10140 2013-02-14 Pedro Alves <palves@redhat.com>
10142 * utils.c (savestring): Rename parameter 'size' to 'len'.
10144 2013-02-14 Pedro Alves <palves@redhat.com>
10145 Yufeng Zhang <yufeng.zhang@arm.com>
10147 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10148 (aarch64_inferior_data, struct aarch64_inferior_data):
10150 (struct aarch64_process_info): New.
10151 (aarch64_process_list): New global.
10152 (aarch64_find_process_pid, aarch64_add_process)
10153 (aarch64_process_info_get): New functions.
10154 (aarch64_inferior_data_get): Delete.
10155 (aarch64_process_info_get): New function.
10156 (aarch64_forget_process): New function.
10157 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10158 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10159 aarch64_get_debug_reg_state.
10160 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10161 instead of linux_nat_iterate_watchpoint_lwps.
10162 (aarch64_linux_new_fork): New function.
10163 (aarch64_linux_child_post_startup_inferior): Use
10164 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10165 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10166 (aarch64_linux_remove_hw_breakpoint)
10167 (aarch64_handle_aligned_watchpoint)
10168 (aarch64_handle_unaligned_watchpoint)
10169 (aarch64_linux_insert_watchpoint)
10170 (aarch64_linux_remove_watchpoint)
10171 (aarch64_linux_stopped_data_address): Adjust to pass the current
10172 process id to aarch64_debug_reg_state.
10173 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10174 linux_nat_new_fork hook, and aarch64_forget_process as
10175 linux_nat_forget_process hook; remove the call to
10176 register_inferior_data_with_cleanup.
10178 2013-02-14 Pedro Alves <palves@redhat.com>
10180 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10181 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10184 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10185 Hafiz Abid Qadeer <abidh@codesourcery.com>
10187 * tracepoint.h (validate_trace_state_variable_name): Declare.
10188 * tracepoint.c (validate_trace_state_variable_name): New.
10189 (trace_variable_command): Parse the trace state variable's name
10190 without using parse_expression. Do several validations.
10191 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10192 trace state variable's name with parse_expression. Validate it.
10194 2013-02-14 Yao Qi <yao@codesourcery.com>
10196 * infcmd.c (breakpoint_proceeded): Remove it.
10198 2013-02-14 Yao Qi <yao@codesourcery.com>
10200 * tracepoint.c (end_actions_pseudocommand): Make it static.
10201 (while_stepping_pseudocommand): Likewise.
10202 * tracepoint.h (end_actions_pseudocommand): Remove the
10204 (while_stepping_pseudocommand): Likewise.
10206 2013-02-14 Yao Qi <yao@codesourcery.com>
10208 * cli/cli-decode.c (help_cmd): Remove the declaration of
10210 (help_all): Likewise.
10212 2013-02-13 Pedro Alves <palves@redhat.com>
10214 * amd64-linux-nat.c (update_debug_registers_callback):
10216 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10218 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10219 i386_debug_reg_state.
10220 (amd64_linux_new_fork): New function.
10221 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10222 linux_nat_new_fork hook, and i386_forget_process as
10223 linux_nat_forget_process hook.
10224 * i386-linux-nat.c (update_debug_registers_callback):
10226 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10228 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10229 i386_debug_reg_state.
10230 (i386_linux_new_fork): New function.
10231 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10232 linux_nat_new_fork hook, and i386_forget_process as
10233 linux_nat_forget_process hook.
10234 * i386-nat.c (i386_init_dregs): Delete.
10235 (i386_inferior_data, struct i386_inferior_data):
10237 (struct i386_process_info): New.
10238 (i386_process_list): New global.
10239 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10241 (i386_inferior_data_get): Delete.
10242 (i386_process_info_get): New function.
10243 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10244 (i386_forget_process): New function.
10245 (i386_cleanup_dregs): Rewrite.
10246 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10247 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10248 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10249 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10250 to i386_debug_reg_state.
10251 (i386_use_watchpoints): Don't register inferior data.
10252 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10254 (i386_forget_process): Declare.
10255 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10256 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10257 New static globals.
10258 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10259 (add_initial_lwp): New, factored out from ...
10260 (add_lwp): ... this. Don't check the number of lwps before
10261 calling linux_nat_new_thread.
10262 (linux_nat_iterate_watchpoint_lwps): Delete.
10263 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10264 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10266 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10268 (linux_nat_kill, linux_nat_mourn_inferior): Call
10269 linux_nat_forget_process.
10270 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10271 (linux_nat_forget_process): New functions.
10272 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10274 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10275 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10277 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10278 (linux_nat_forget_process): New declarations.
10280 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10281 (amd64fbsd_mourn_inferior): New function.
10282 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10283 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10285 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10287 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10290 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10292 * aarch64-linux-nat.c (debug_reg_change_callback)
10293 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10296 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10298 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10301 2013-02-13 Pedro Alves <palves@redhat.com>
10302 Hafiz Abid Qadeer <abidh@codesourcery.com>
10304 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10306 2013-02-12 Tom Tromey <tromey@redhat.com>
10309 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10311 (classify_inner_name): Remove 'first_name' argument, add
10312 'context'. Remove unused variable.
10313 (yylex): Explicitly maintain the context type. Exit loop earlier
10314 if NAME result is seen.
10316 2013-02-12 Pedro Alves <palves@redhat.com>
10318 * amd64-darwin-tdep.c: Add (C) after Copyright.
10319 * cli/cli-cmds.h: Ditto.
10320 * cli/cli-decode.c: Ditto.
10321 * cli/cli-decode.h: Ditto.
10322 * cli/cli-dump.c: Ditto.
10323 * cli/cli-dump.h: Ditto.
10324 * cli/cli-interp.c: Ditto.
10325 * cli/cli-logging.c: Ditto.
10326 * cli/cli-script.c: Ditto.
10327 * cli/cli-script.h: Ditto.
10328 * cli/cli-setshow.c: Ditto.
10329 * cli/cli-setshow.h: Ditto.
10330 * cli/cli-utils.c: Ditto.
10331 * cli/cli-utils.h: Ditto.
10332 * config/alpha/nm-osf3.h: Ditto.
10333 * config/djgpp/djconfig.sh: Ditto.
10334 * config/i386/nm-fbsd.h: Ditto.
10335 * config/i386/nm-i386gnu.h: Ditto.
10336 * config/nm-linux.h: Ditto.
10337 * config/nm-nto.h: Ditto.
10338 * config/rs6000/nm-rs6000.h: Ditto.
10339 * config/sparc/nm-sol2.h: Ditto.
10340 * darwin-nat-info.c: Ditto.
10343 * gdb-demangle.h: Ditto.
10344 * i386-darwin-nat.c: Ditto.
10345 * i386-darwin-tdep.c: Ditto.
10346 * linux-fork.h: Ditto.
10347 * m32c-tdep.c: Ditto.
10348 * microblaze-linux-tdep.c: Ditto.
10349 * microblaze-rom.c: Ditto.
10350 * microblaze-tdep.c: Ditto.
10351 * microblaze-tdep.h: Ditto.
10352 * mips-linux-tdep.h: Ditto.
10353 * ppc-ravenscar-thread.c: Ditto.
10354 * ppc-ravenscar-thread.h: Ditto.
10355 * prologue-value.c: Ditto.
10356 * prologue-value.h: Ditto.
10357 * ravenscar-thread.c: Ditto.
10358 * ravenscar-thread.h: Ditto.
10359 * sparc-ravenscar-thread.c: Ditto.
10360 * sparc-ravenscar-thread.h: Ditto.
10361 * tilegx-linux-tdep.c: Ditto.
10362 * unwind_stop_reasons.def: Ditto.
10363 * windows-nat.h: Ditto.
10364 * xtensa-linux-tdep.c: Ditto.
10365 * xtensa-xtregs.c: Ditto.
10366 * regformats/regdat.sh: Ditto.
10367 * regformats/regdef.h: Ditto.
10369 2013-02-12 Pedro Alves <palves@redhat.com>
10371 * break-catch-sig.c: Update copyright years.
10373 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10375 Add support for a destructor for ui_out data and use it to
10376 provide a ui_out destructor.
10377 * ui-out.h: Declare the new ui_out destructor.
10378 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10379 * ui-out.c (default_data_destroy): Add a default data destructor
10380 which does nothing.
10381 (default_ui_out_impl): Set the new data_destroy field to
10382 default_data_destroy
10383 (uo_data_destroy): Local function which invokes the data
10384 destructor if present.
10385 (clear_table): Local function which clears the table data of a
10387 (ui_out_destroy): Public function which frees a ui_out object.
10388 (ui_out_table_end): Use the new clear_table function.
10389 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10391 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10394 2013-02-11 Doug Evans <dje@google.com>
10396 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10397 (printf_decfloat): New function. Broken out from ui_printf.
10398 Remove unnecessary code to shift the entire format string down.
10399 (printf_pointer): New function.
10400 (ui_printf): Code to print C strings, wide C strings, decfloats,
10401 and pointers moved to separate functions.
10403 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10405 * valops.c (value_assign): Handling bitfield offset in
10406 `lval_internalvar_component' case.
10408 2013-02-08 Doug Evans <dje@google.com>
10410 * common/format.c (parse_format_string): Fix whitespace.
10412 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10414 * stack.c (return_command): Work around uninitialized variable
10417 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10419 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10420 number of the registers from 36 to 34.
10422 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10424 * NEWS: Mention new AArch64 native and target support.
10426 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10428 * MAINTAINERS (Write After Approval): Add myself.
10430 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10431 Marcus Shawcroft <marcus.shawcroft@arm.com>
10432 Nigel Stephens <nigel.stephens@arm.com>
10433 Yufeng Zhang <yufeng.zhang@arm.com>
10435 * aarch64-linux-nat.c: New file.
10436 * config/aarch64/linux.mh: New file.
10437 * configure.host: Add AArch64.
10438 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10440 2013-02-07 Doug Evans <dje@google.com>
10442 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10443 disassemble command.
10445 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10447 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10448 set_gdbarch_fetch_tls_load_module_address.
10450 2013-02-06 David S. Miller <davem@davemloft.net>
10452 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10453 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10454 * value.c (struct_return_convention): New function.
10455 (using_struct_return): Implement in terms of struct_return_convention.
10456 * value.h (struct_return_convention): Declare.
10457 * stack.c (return_command): Allow successful overriding of the return
10458 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10460 2013-02-06 Tom Tromey <tromey@redhat.com>
10462 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10463 outside of TRY_CATCH.
10465 2013-02-06 Yao Qi <yao@codesourcery.com>
10467 * mi/mi-interp.c: Include "tracepoint.h".
10468 (mi_tsv_modified): Declare.
10469 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10470 (mi_interpreter_init): Call observer_attach_tsv_modified.
10471 (mi_tsv_modified): New.
10472 (mi_tsv_created, mi_tsv_deleted): Update.
10473 * tracepoint.c (trace_variable_command): Call
10474 observer_notify_tsv_modified if the initial value of tsv is
10476 (delete_trace_state_variable): Call
10477 observer_notify_tsv_deleted earlier.
10478 (trace_variable_command): Caller update.
10479 (create_tsv_from_upload): Likewise.
10480 * observer.sh: Declare "struct trace_state_variable".
10482 * NEWS: Mention the new MI notification "=tsv-modified".
10484 2013-02-05 Doug Evans <dje@google.com>
10486 * completer.c (location_completer): Fix typo in comment.
10488 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10490 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10493 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10495 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10496 Refactor if statement to avoid trailing || operator.
10498 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10500 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10502 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10504 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10505 * configure.host: Add powerpc*-*-freebsd* target.
10506 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10507 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10508 * config/powerpc/fbsd.mh: New file.
10510 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10511 Denys Vlasenko <dvlasenk@redhat.com>
10512 Pedro Alves <palves@redhat.com>
10514 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10515 (struct elf_internal_linux_prpsinfo): Forward declare.
10516 * gdbarch.h, gdbarch.c: Regenerate.
10517 * linux-tdep.c: Include `cli/cli-utils.h'.
10518 (linux_fill_prpsinfo): New function.
10519 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10520 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10521 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10522 depending on gdbarch pointer bitness.
10523 * ppc-linux-tdep.c: Include elf-bfd.h.
10524 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10527 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10528 Marcus Shawcroft <marcus.shawcroft@arm.com>
10529 Nigel Stephens <nigel.stephens@arm.com>
10530 Yufeng Zhang <yufeng.zhang@arm.com>
10532 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10534 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10535 Marcus Shawcroft <marcus.shawcroft@arm.com>
10536 Nigel Stephens <nigel.stephens@arm.com>
10537 Yufeng Zhang <yufeng.zhang@arm.com>
10539 * aarch64-newlib-tdep.c: New file.
10540 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10542 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10543 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10544 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10545 * osabi.c (gdb_osabi_names): Add "Newlib".
10547 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10548 Marcus Shawcroft <marcus.shawcroft@arm.com>
10549 Nigel Stephens <nigel.stephens@arm.com>
10550 Yufeng Zhang <yufeng.zhang@arm.com>
10552 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10553 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10554 * aarch64-linux-tdep.c: New file.
10555 * aarch64-linux-tdep.h: New file.
10556 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10557 * configure.tgt: Add aarch64-none-linux-gnu.
10559 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10560 Marcus Shawcroft <marcus.shawcroft@arm.com>
10561 Nigel Stephens <nigel.stephens@arm.com>
10562 Yufeng Zhang <yufeng.zhang@arm.com>
10564 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10565 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10566 (ALLDEPFILES): Add aarch64-tdep.c.
10567 * aarch64-tdep.c: New file.
10568 * aarch64-tdep.h: New file.
10569 * configure.tgt: Add AArch64.
10570 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10571 (aarch64-expedite): New definition.
10572 * features/aarch64-core.xml: New file.
10573 * features/aarch64-fpu.xml: New file.
10574 * features/aarch64-without-fpu.c: New file (generated).
10575 * features/aarch64-without-fpu.xml: New file.
10576 * features/aarch64.c: New file (generated).
10577 * features/aarch64.xml: New file.
10578 * regformats/aarch64-without-fpu.dat: New file (generated).
10579 * regformats/aarch64.dat: New file (generated).
10581 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10583 * contrib/expect-read1.c: New file.
10584 * contrib/expect-read1.sh: New file.
10586 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10588 * dwarf2read.c (file_file_name): New function with code from
10590 (file_full_name): Move most of the code to file_file_name.
10591 (macro_start_file): Rename variable full_name to file_name and use
10592 file_file_name for it. Add comp_dir parameter to new_macro_table.
10593 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10594 macro_source_file->filename access by macro_source_fullname call.
10595 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10597 * macrotab.c (struct macro_table): New field comp_dir.
10598 (macro_include): New variables link_fullname and source_fullname.
10599 Replace any macro_source_file->filename access by macro_source_fullname
10601 (macro_lookup_inclusion): Remove the partial filenames checking code.
10602 (check_for_redefinition): New variables source_fullname and
10603 found_key_fullname. Replace any macro_source_file->filename access by
10604 macro_source_fullname call.
10605 (macro_undef): New variables source_fullname and key_fullname. Replace
10606 any macro_source_file->filename access by macro_source_fullname call.
10607 (macro_lookup_definition): New variables retval and source_fullname.
10608 Replace any macro_source_file->filename access by macro_source_fullname
10610 (foreach_macro): New variable key_fullname. Replace any
10611 macro_source_file->filename access by macro_source_fullname call.
10612 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10613 macro_source_file->filename access by macro_source_fullname call.
10614 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10615 (macro_source_fullname): New function.
10616 * macrotab.h (struct macro_source_file): Extent the filename field
10618 (new_macro_table): New parameter comp_dir, add a comment for it.
10619 (macro_source_fullname): new declaration.
10621 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10623 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10624 this_real_name to outer block. Use it also for
10625 compare_filenames_for_search.
10626 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10627 with dw2_get_real_path for file_matcher, considering also
10628 BASENAMES_MAY_DIFFER.
10629 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10631 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10633 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10634 to the file_matcher parameter. Pass 0 to it.
10635 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10636 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10637 NULL psymtab_to_fullname result.
10638 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10639 an expected filename instead.
10640 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10641 file_matcher parameter. Call also psymtab_to_fullname, after newly
10642 considering BASENAMES_MAY_DIFFER.
10643 * source.c (rewrite_source_path): Remove static.
10644 * source.h (rewrite_source_path): New declaration.
10645 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10646 the expand_symtabs_matching field. Comment it.
10647 * symtab.c (file_matches): New function comment. Add parameter
10648 basenames, implement it.
10649 (search_symbols_file_matches): Add basenames parameter. Update the
10650 file_matches caller.
10651 (search_symbols): Match FILES also against symtab_to_fullname.
10652 Optimize it for BASENAMES_MAY_DIFFER.
10654 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10656 * source.c (print_source_lines_base): Print for TUI also "fullname".
10657 * tui/tui-data.c (init_content_element): Change tui_locator_element
10658 field to full_name.
10659 * tui/tui-data.h (struct tui_locator_element): Likewise.
10660 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10661 tui_update_locator_filename calls to tui_update_locator_fullname.
10662 Replace symtab->filename refererence by symtab_to_fullname call.
10663 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10664 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10665 field to full_name. Replace symtab->filename refererence by
10666 symtab_to_fullname call.
10667 (tui_show_symtab_source): Rename parameter to fullname. Change
10668 tui_locator_element field to full_name.
10669 * tui/tui-stack.c: Include source.h.
10670 (tui_set_locator_filename): Rename the declaration to ...
10671 (tui_set_locator_fullname): ... here. Rename its parameter to
10672 fullname, updates its comment.
10673 (tui_set_locator_info): Rename its parameter to fullname.
10674 (tui_set_locator_filename): Rename the definition to ...
10675 (tui_set_locator_fullname): ... here. Rename its parameter to
10676 fullname, updates its comment. Change tui_locator_element field to
10678 (tui_set_locator_info): Rename its parameter to fullname.
10679 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10680 (tui_update_locator_filename): Rename to ...
10681 (tui_update_locator_fullname): ... here. Rename callee to
10682 tui_set_locator_fullname.
10683 (tui_show_frame_info): Replace symtab->filename refererence by
10684 symtab_to_fullname call.
10685 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10686 (tui_update_locator_fullname): ... here.
10687 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10688 tui_update_locator_fullname. Replace symtab->filename refererence by
10689 symtab_to_fullname call.
10690 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10691 Rename the callee to tui_update_locator_fullname.
10692 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10694 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10696 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10697 by symtab_to_filename_for_display calls.
10698 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10699 (clear_command): New variable sal_fullname, initialize it. Replace
10700 compare_filenames_for_search by filename_cmp with sal_fullname.
10701 (say_where, update_static_tracepoint): Replace symtab->filename
10702 refererences by symtab_to_filename_for_display calls.
10703 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10705 * dwarf2read.c: Include source.h.
10706 (fixup_go_packaging): Replace symtab->filename refererences by
10707 symtab_to_filename_for_display calls.
10708 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10709 Replace symtab->filename refererences by symtab_to_filename_for_display
10711 (create_sals_line_offset, convert_linespec_to_sals): New variable
10712 fullname, initialize it, replace symtab->filename reference by the
10714 * linux-fork.c: Include source.h.
10715 (info_checkpoints_command): Replace symtab->filename refererences by
10716 symtab_to_filename_for_display calls.
10717 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10718 by symtab_to_filename_for_display calls.
10719 * mdebugread.c: Include source.h.
10720 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10721 symtab_to_filename_for_display calls.
10722 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10723 (mi_cmd_file_list_exec_source_files): Likewise.
10724 * printcmd.c: Include source.h.
10725 (build_address_symbolic): Replace symtab->filename refererences by
10726 symtab_to_filename_for_display calls.
10727 * psymtab.c (partial_map_symtabs_matching_filename)
10728 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10729 with psymtab_to_fullname.
10730 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10731 by symtab_to_filename_for_display calls.
10732 (stpy_get_filename): New variable filename, initialize it, use instead
10733 of symtab->filename refererences.
10734 (salpy_str): Make variable filename const char *. Replace
10735 symtab->filename refererences by symtab_to_filename_for_display calls.
10736 * skip.c: Include source.h and filenames.h.
10737 (skip_file_command): Remove const from the symtab variable. Replace
10738 symtab->filename refererences by symtab_to_fullname call.
10739 (function_name_is_marked_for_skip): New variables searched_for_fullname
10740 and fullname. Use them to search also with symtab's fullname.
10741 * source.c (find_source_lines): Replace symtab->filename refererences
10742 by symtab_to_filename_for_display calls.
10743 (print_source_lines_base): New variable filename, use it instead of
10744 symtab->filename. Replace symtab->filename refererences by
10745 symtab_to_filename_for_display calls.
10746 (line_info, forward_search_command): Replace symtab->filename
10747 refererences by symtab_to_filename_for_display calls.
10748 (reverse_search_command): Replace symtab->filename refererences by
10749 symtab_to_filename_for_display calls. New variable filename for it.
10750 * stack.c (frame_info): Likewise.
10751 * symmisc.c: Include source.h.
10752 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10753 (maintenance_info_symtabs): Replace symtab->filename refererences by
10754 symtab_to_filename_for_display calls.
10755 * symtab.c (iterate_over_some_symtabs): Call
10756 compare_filenames_for_search also with symtab_to_fullname.
10757 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10758 symtab->filename refererences by symtab_to_filename_for_display calls.
10759 (find_line_symtab): Replace symtab->filename refererences by
10760 symtab_to_filename_for_display calls.
10761 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10762 (print_symbol_info): Make the last parameter const char *. New
10763 variable s_filename. Use it in the function.
10764 (symtab_symbol_info): Make the last_filename variable const char *.
10765 Replace symtab->filename refererences by symtab_to_filename_for_display
10767 (rbreak_command): New variable fullname. Use it. Replace
10768 symtab->filename refererence by symtab_to_filename_for_display call.
10769 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10770 (print_one_static_tracepoint_marker): Replace symtab->filename
10771 refererences by symtab_to_filename_for_display calls.
10772 * tui/tui-source.c (tui_set_source_content): New variables filename and
10773 s_filename. Replace symtab->filename refererences by this variable.
10774 Replace other symtab->filename refererences by
10775 symtab_to_filename_for_display calls.
10777 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10778 Jan Kratochvil <jan.kratochvil@redhat.com>
10780 Add a new variable that controls a way in which filenames are
10782 * NEWS (set filename-display): New entry.
10783 * source.c (filename_display_basename, filename_display_relative)
10784 (filename_display_absolute, filename_display_kind_names)
10785 (filename_display_string, show_filename_display_string)
10786 (symtab_to_filename_for_display): New.
10787 (_initialize_source): Added initialization of 'filename-display'
10789 * source.h (symtab_to_filename_for_display): Added declaration.
10790 * stack.c (print_frame): Added new variable and calling of a new
10791 function and condition with this variable. Changed third argument of
10792 calling of a function.
10794 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10796 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10797 Rename field reference filename to fullname.
10798 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10799 fullname. New comment for it.
10800 * tui/tui-source.c (tui_set_source_content): Rename field reference
10801 filename to fullname. Initialize field by symtab_to_fullname now.
10802 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10803 reference filename to fullname. Use symtab_to_fullname during
10806 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10809 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10810 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10811 filename to fullname. Rename variable this_name to this_fullname.
10812 Lowercase FILENAME_CMP call.
10813 (dw2_find_symbol_file): New comment for the returned string.
10814 (dwarf2_gdb_index_functions): Rename the function to
10815 dw2_expand_symtabs_with_fullname.
10816 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10817 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10819 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10820 * symfile.h (struct quick_symbol_functions): Rename field
10821 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10822 parameter filename to fullname. Document returned string meaning for
10824 * symtab.c (find_line_symtab): Rename the called function to
10825 expand_symtabs_with_fullname.
10827 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10831 call of filename_cmp with compare_filenames_for_search.
10832 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10833 is_abs, unify the call of FILENAME_CMP with
10834 compare_filenames_for_search. New gdb_asserts for real_path and name.
10835 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10836 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10837 * symfile.h (struct quick_symbol_functions): Extend the comment for
10838 map_symtabs_matching_filename.
10839 * symtab.c (compare_filenames_for_search): Remove the function comment
10840 relative path requirement. Handle absolute filenames, with a comment.
10841 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10842 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10843 real_path and name. Unify the call of compare_filenames_for_search
10845 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10847 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10850 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10851 source_file references by symtab field references. Remove variables
10853 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10854 (clear_command, say_where): Replace bp_location field source_file
10855 references by symtab field references.
10856 (bp_location_dtor): Remove the source_file reference.
10857 (update_static_tracepoint): Replace bp_location field source_file
10858 references by symtab field references.
10859 (breakpoint_free_objfile): New function.
10860 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10861 Replace the field source_file by field symtab, extend its comment.
10862 (breakpoint_free_objfile): New declaration.
10863 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10864 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10865 field source_file references by symtab field references.
10867 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10869 Replace xfullpath calls by gdb_realpath calls.
10870 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10872 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10873 Remove it from the iterate_over_some_symtabs call.
10874 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10875 Remove it from the dw2_map_expand_apply calls, remove a block handling
10877 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10878 Remove it from the iterate_over_some_symtabs call.
10879 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10880 Remove it from the partial_map_expand_apply calls, remove a block
10881 handling it. Drop gdb_realpath call and cleanups from the real_path
10883 * source.c (openp): Drop the comment part about xfullpath. Replace
10884 xfullpath calls by gdb_realpath calls.
10885 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10886 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10887 from method map_symtabs_matching_filename and its comment.
10888 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10890 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10891 remove it also from the function comment, remove a block handling it.
10892 Drop gdb_realpath call and cleanups from the real_path handling.
10893 (iterate_over_symtabs): Drop variable full_path and its use.
10894 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10895 * utils.c (xfullpath): Remove.
10896 * utils.h (xfullpath): Remove.
10898 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10900 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10901 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10902 (ALLDEPFILES): Add ppc64-tdep.c.
10903 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10904 ppc64-tdep.o to gdb_target_obs.
10905 * ppc64-tdep.h: New file.
10906 * ppc64-tdep.c: New file.
10907 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10908 ppc-linux-tdep.c to here.
10909 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10910 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10911 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10912 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10913 from ppc-linux-tdep.c to here.
10914 (ppc64_convert_from_func_ptr_addr): Rename from
10915 ppc64_linux_convert_from_func_ptr_addr to
10916 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10919 (read_insn): Move from ppc-linux-tdep.c to here.
10920 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10921 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10922 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10923 Removed above functions.
10924 (ppc_linux_init_abi): Adjust.
10926 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10928 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10930 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10932 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10934 2013-02-01 Pedro Alves <palves@redhat.com>
10936 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10937 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10939 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10941 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10942 files with no separate debug info.
10943 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10944 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10945 only for files with no separate debug info.
10947 2013-01-31 Tom Tromey <tromey@redhat.com>
10949 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10951 (struct jit_program_space_data): Rename from jit_inferior_data.
10953 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10954 Change return type. Attach data to program space.
10955 (jit_program_space_data_cleanup): Rename from
10956 jit_inferior_data_cleanup; change argument type.
10957 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10959 (jit_register_code): Update.
10960 (jit_update_inferior_cache): Remove.
10961 (jit_breakpoint_deleted): Get jit data from the location's program
10963 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10964 'ps_data', change type.
10965 (jit_inferior_init, jit_breakpoint_re_set_internal)
10966 (jit_event_handler): Update.
10967 (free_objfile_data): Get data from objfile's program space.
10968 (_initialize_jit): Update.
10970 2013-01-31 Tom Tromey <tromey@redhat.com>
10973 * jit.c (struct jit_inferior_data) <cached_code_address,
10974 jit_breakpoint>: New fields.
10975 (jit_breakpoint_re_set_internal): Fix logging. Only create
10976 breakpoint if cached address has changed.
10977 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10979 (_initialize_jit): Register breakpoint deleted observer.
10981 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10983 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10984 (save_infcall_suspend_state): Ifdef out unused inf.
10985 (restore_infcall_suspend_state): Ifdef out unused inf.
10986 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10987 (jit_frame_sniffer): Remove unused inf_data.
10989 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10991 * c-exp.y (classify_inner_name): Remove unused type.
10992 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10993 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10995 (c_get_string): Remove unused kind.
10996 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10998 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11000 * charset.c (intermediate_encoding): Remove unused i.
11001 * completer.c (signal_completer): Remove unused i.
11002 * continuations.c (discard_my_continuations_1): Remove unused
11004 * corelow.c (core_close): Remove unuseD name.
11005 (get_core_siginfo): Remove unused pid.
11006 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11008 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11009 (loclist_describe_location): Remove unused first.
11010 * event-top.c (command_line_handler): Remove unused got_eof.
11011 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11012 (resize_section_table): Remove unused old_value.
11013 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11014 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11015 * i386-tdep.c (i386_process_record): Remove unused rex.
11016 * infcmd.c (get_return_value): Remove unused uiout.
11017 * jv-lang.c (type_from_class): Remove unused is_array.
11018 * jv-valprint.c (java_val_print): Remove unused i.
11019 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11020 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11021 * m2-typeprint.c (m2_print_type): Remove unused code.
11022 * macroexp.c (get_character_constant): Remove unused body_start.
11023 (macro_stringify): Remove unused result.
11024 * objc-lang.c (find_methods): Remove unused gdbarch.
11025 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11026 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11027 * stack.c (print_frame_args): Remove unused summary.
11028 * thread.c (thread_apply_command): Remove unused p.
11029 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11030 * valops.c (search_struct_method): Remove unused skip.
11031 * valprint.c (generic_val_print): Remove unused byte_order.
11032 * varobj.c (varobj_update): Remove unused changed.
11033 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11034 (alias_command): Remove unused c.
11035 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11036 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11038 (mi_cmd_data_write_memory): Remove unused word_format.
11039 (mi_cmd_data_write_memory_bytes): Remove unused r.
11040 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11042 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11043 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11046 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11048 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11049 * symtab.c (iterate_over_symtabs): Remove unused s.
11050 (find_pc_sect_symtab): Remove unused pspAce.
11051 (find_pc_sect_line): Remove unused alt_symtab.
11052 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11053 (completion_list_add_name): Remove unused newsize.
11055 2013-01-31 Tom Tromey <tromey@redhat.com>
11058 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11061 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11063 * target.c (target_read_string): Remove unused origlen.
11065 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11067 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11068 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11069 * ax-general.c (ax_print): Remove unused is_float.
11070 * blockframe.c (block_innermost_frame): Remove unused start, end.
11071 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11073 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11075 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11076 (svr4_read_so_list): Remove unused lmo.
11077 * solib-target.c (solib_target_relocate_section_addresses): Remove
11080 2013-01-30 Tom Tromey <tromey@redhat.com>
11082 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11084 2013-01-30 Tom Tromey <tromey@redhat.com>
11086 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11087 * utils.c (gnu_debuglink_crc32): Remove.
11088 * utils.h (gnu_debuglink_crc32): Don't declare.
11090 2013-01-30 Tom Tromey <tromey@redhat.com>
11092 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11093 (read_structure_type, read_enumeration_type): Remove cast.
11095 2013-01-30 Tom Tromey <tromey@redhat.com>
11097 * dwarf2read.c (read_namespace_type): Remove cast.
11098 (read_typedef): Likewise.
11100 2013-01-29 Tom Tromey <tromey@redhat.com>
11102 * dwarf2read.c (free_dwo_file): Remove assert.
11104 2013-01-29 Tom Tromey <tromey@redhat.com>
11106 * value.c (deprecated_set_value_modifiable): Remove.
11107 * value.h (deprecated_set_value_modifiable): Remove.
11109 2013-01-28 Doug Evans <dje@google.com>
11111 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11112 to addresses from dwo files.
11114 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11116 * valops.c (find_overload_match): Remove unused argument 'lax'.
11117 * value.h: Remove unused argument 'lax' from the declaration of
11118 find_overload_match.
11119 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11120 to find_overload_match.
11121 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11122 argument to find_overload_match.
11124 2013-01-25 Tom Tromey <tromey@redhat.com>
11126 * dwarf2read.c (processing_has_namespace_info): Remove.
11127 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11128 (process_die, read_func_scope, dwarf2_start_symtab)
11129 (new_symbol_full): Update.
11131 2013-01-25 Tom Tromey <tromey@redhat.com>
11133 * cp-namespace.c (cp_set_block_scope): Remove.
11134 * cp-support.h (cp_set_block_scope): Remove.
11135 * dbxread.c: Include block.h.
11136 (cp_set_block_scope): New function.
11137 (process_one_symbol): Update.
11138 * dwarf2read.c (read_func_scope): Use block_set_scope.
11140 2013-01-25 Pedro Alves <palves@redhat.com>
11142 * remote.c (add_current_inferior_and_thread): Tweak comment.
11144 2013-01-25 Tom Tromey <tromey@redhat.com>
11146 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11147 (cp_add_using_directive): Add 'copy_names' argument.
11148 * cp-support.h (cp_add_using_directive): Update.
11149 (struct using_direct) <import_src, import_dest, alias,
11150 declaration>: Now const.
11151 * dwarf2read.c (read_import_statement): Use obconcat.
11152 Don't copy names passed to cp_add_using_directive.
11154 2013-01-25 Tom Tromey <tromey@redhat.com>
11156 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11158 2013-01-25 Pedro Alves <palves@redhat.com>
11160 * remote.c (stop_reply_extract_thread): New.
11161 (add_current_inferior_and_thread): New parameter 'wait_status'.
11163 (remote_start_remote): Pass wait status to
11164 add_current_inferior_and_thread.
11165 (extended_remote_run): Update comment.
11166 (extended_remote_create_inferior_1): Pass wait status to
11167 add_current_inferior_and_thread.
11169 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11170 Ulrich Weigand <uweigand@de.ibm.com>
11172 * valarith.c (value_vector_widen): New function for replicating a
11173 scalar into a vector.
11174 (value_binop): Use value_vector_widen to widen scalar to vector
11175 rather than casting, this better matches gcc C behaviour.
11176 * valops.c (value_casst): Update logic for casting between vector
11177 types, and for casting from scalar to vector, try to match gcc C
11179 * value.h (value_vector_widen): Declare.
11180 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11181 function, handle special case for casting scalar to vector.
11182 (opencl_relop): Use opencl_value_cast.
11183 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11184 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11185 in order to use opencl_value_cast.
11187 2013-01-25 Yao Qi <yao@codesourcery.com>
11189 * event-loop.c: Include "queue.h".
11190 (gdb_event_p): New typedef.
11191 (DECLARE_QUEUE_P): Use.
11192 (DEFINE_QUEUE_P): Use.
11193 (async_queue_event): Remove.
11194 (gdb_event_xfree): New.
11195 (initialize_event_loop): New.
11196 (process_event): Use QUEUE macros.
11197 (event_queue): Remove.
11198 (gdb_wait_for_event): Caller update.
11199 (check_async_event_handlers): Likewise.
11200 (poll_timers): Likewise.
11201 * event-loop.h (initialize_event_loop): Declare.
11202 * event-loop.c (gdb_event_xfree): New.
11203 * top.c (gdb_init): Call initialize_event_loop.
11205 2013-01-25 Yao Qi <yao@codesourcery.com>
11207 * event-loop.c (async_queue_event): Remove one parameter
11208 'position'. Remove code handling 'position' == TAIL.
11209 (gdb_wait_for_event): Caller update.
11210 (check_async_event_handlers): Caller update.
11211 (poll_timers): Caller update.
11212 * event-loop.h (enum queue_position): Remove.
11214 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11216 * MAINTAINERS: Update my email.
11218 2013-01-25 Yao Qi <yao@codesourcery.com>
11220 * main.c (print_gdb_help): Remove "--epoch" from the help
11223 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11225 * symtab.c (skip_prologue_using_sal): Consider a file
11226 change the same as an increased line number
11228 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11230 * MAINTAINERS (Write After Approval): Add myself to the list.
11232 2013-01-24 Tom Tromey <tromey@redhat.com>
11234 * ada-lang.h (ada_decode_symbol): Make return type const.
11235 * ada-lang.c (ada_decode_symbol): Likewise.
11237 2013-01-23 Doug Evans <dje@google.com>
11239 * linespec.c (find_linespec_symbols): Make static.
11241 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11243 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11244 type on float conversion for complex type.
11246 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11248 Add a new class gdb.Architecture which exposes GDB's
11249 internal representation of architecture via GDB Python API.
11250 * Makefile.in: Add entries corresponding to the new file
11252 * NEWS (Python Scripting): Add entries for the new class
11253 gdb.Architecture and the new method gdb.Frame.architecture.
11254 * python/py-arch.c: Implement gdb.Architecture class.
11255 * python/py-frame.c (frapy_arch): Implement the method
11256 gdb.Frame.architecture().
11257 (frame_object_methods): Add 'architecture' to the method table.
11258 * python/python-internal.h: Add declarations of new utility
11260 * python/python.c (_initialize_python): Initialize
11261 gdb.Architecture class.
11263 2013-01-23 Doug Evans <dje@google.com>
11265 Work around binutils/15021.
11266 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11267 type_unit_group out of union s. All uses updated.
11268 (read_index_from_section): Watch for index version 8.
11269 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11270 an imported symtab.
11271 (write_psymtabs_to_index): Increment version number to 8.
11273 2013-01-22 Pedro Alves <palves@redhat.com>
11275 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11278 2013-01-22 Pedro Alves <palves@redhat.com>
11280 * annotate.c (annotate_breakpoints_changed): Rename to ...
11281 (annotate_breakpoints_invalid): ... this. Make static.
11282 (breakpoint_changed): Adjust.
11283 (_initialize_annotate): Always install the observers. Install a
11284 "breakpoint_created" observer.
11285 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11286 * breakpoint.c (set_breakpoint_condition)
11287 (breakpoint_set_commands, do_map_commands_command)
11288 (init_raw_breakpoint, clear_command, set_ignore_count)
11289 (enable_breakpoint_disp): No longer call
11290 annotate_breakpoints_changed.
11292 2013-01-22 Pedro Alves <palves@redhat.com>
11294 * annotate.c: Include "inferior.h".
11295 (frames_invalid_emitted)
11296 (breakpoints_invalid_emitted): New globals.
11297 (async_background_execution_p): New function.
11298 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11299 emitting the annotation if it has already been emitted.
11300 (annotate_display_prompt): New function.
11301 * annotate.h (annotate_display_prompt): New declaration.
11302 * event-top.c: Include annotate.h.
11303 (display_gdb_prompt): Call annotate_display_prompt.
11305 2013-01-22 Pedro Alves <palves@redhat.com>
11307 * annotate.c (ignore_count_changed): Delete.
11308 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11309 (annotate_ignore_count_change): Delete.
11310 (annotate_stopped): Don't emit a delayed breakpoints-changed
11312 * annotate.h (annotate_ignore_count_change): Delete.
11313 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11314 annotate_ignore_count_change.
11316 2013-01-22 Tom Tromey <tromey@redhat.com>
11318 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11319 require_rvalue for a register location.
11321 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11323 * breakpoint.c (print_one_breakpoint_location): Add MI
11324 field 'thread-groups' when printing a breakpoint.
11325 (output_thread_groups): New function.
11327 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11329 * python/lib/gdb/commands/explore.py
11330 (CompoundExplorer.explore_expr): Correct the name of a method
11332 (ExploreTypeCommand.invoke): Add a missing 'return'.
11334 2013-01-21 Tom Tromey <tromey@redhat.com>
11336 * gdb_obstack.h (obconcat): Move declaration here, from...
11337 * symfile.h (obconcat): ... here.
11338 * gdb_obstack.c: New file.
11339 (obconcat): Move from...
11340 * symfile.c (obconcat): ... here.
11341 * Makefile.in (SFILES): Add gdb_obstack.c.
11342 (COMMON_OBS): Add gdb_obstack.o.
11344 2013-01-21 Tom Tromey <tromey@redhat.com>
11346 * symfile.h (obsavestring): Don't declare.
11347 * symfile.c (obsavestring): Remove.
11348 * ada-exp.y: Use obstack_copy0, not obsavestring.
11349 * ada-lang.c: Use obstack_copy0, not obsavestring.
11350 * coffread.c: Use obstack_copy0, not obsavestring.
11351 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11352 * dbxread.c: Use obstack_copy0, not obsavestring.
11353 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11354 * jit.c: Use obstack_copy0, not obsavestring.
11355 * mdebugread.c: Use obstack_copy0, not obsavestring.
11356 * psymtab.c: Use obstack_copy0, not obsavestring.
11357 * stabsread.c: Use obstack_copy0, not obsavestring.
11358 * xcoffread.c: Use obstack_copy0, not obsavestring.
11360 2013-01-21 Tom Tromey <tromey@redhat.com>
11362 * dwarf2read.c (fixup_go_packaging): Save package name
11363 on objfile obstack.
11364 * gdbtypes.c (init_type): Don't copy name.
11366 2013-01-21 Tom Tromey <tromey@redhat.com>
11368 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11370 (struct attribute) <u.str>: Now const.
11371 (struct fnfieldlist) <name>: Now const.
11372 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11373 (partial_die_parent_scope): Make return type const.
11374 (partial_die_full_name, add_partial_symbol): Update.
11375 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11377 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11378 (read_file_scope, read_func_scope, dwarf2_add_field)
11379 (dwarf2_add_member_fn, read_structure_type)
11380 (process_enumeration_scope, read_array_type, read_module_type)
11381 (read_base_type, read_subrange_type): Update.
11382 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11383 (new_symbol_full, guess_full_die_structure_name): Update.
11384 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11385 (dwarf2_name): Return const type.
11386 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11389 2013-01-21 Tom Tromey <tromey@redhat.com>
11391 * gdbtypes.c (init_type): Make 'name' const.
11392 * gdbtypes.h (init_type): Update.
11394 2013-01-21 Tom Tromey <tromey@redhat.com>
11396 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11397 (start_symtab): Make 'name' and 'dirname' const. Use
11398 set_last_source_file.
11399 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11400 (last_source_file): Define. Now static.
11401 (set_last_source_file, get_last_source_file): New functions.
11402 * buildsym.h (last_source_file): Don't declare.
11403 (start_symtab): Update.
11404 (set_last_source_file, get_last_source_file): Declare.
11405 * coffread.c (complete_symtab): Use set_last_source_file.
11406 (coff_end_symtab): Likewise.
11407 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11408 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11409 set_last_source_file.
11410 (process_one_symbol): Use get_last_source_file.
11411 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11412 (psymtab_to_symtab_1): Use get_last_source_file.
11413 * xcoffread.c (process_linenos): Use get_last_source_file.
11414 (complete_symtab): Use set_last_source_file.
11415 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11416 (scan_xcoff_symtab): Use set_last_source_file.
11418 2013-01-21 Tom Tromey <tromey@redhat.com>
11420 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11421 (symbol_set_names): Remove casts. Handle field const-ness.
11423 2013-01-21 Tom Tromey <tromey@redhat.com>
11425 * dwarf2read.c (new_symbol_full): Remove cast.
11426 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11427 * symtab.h (symbol_set_demangled_name): Update.
11429 2013-01-21 Tom Tromey <tromey@redhat.com>
11431 * main.c (captured_main): Call bfd_init.
11433 2013-01-21 Tom Tromey <tromey@redhat.com>
11435 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11436 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11437 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11440 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11442 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11444 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11446 Fix gdb.fortran/common-block.exp crash in PIE mode.
11447 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11449 * f-valprint.c (info_common_command_for_block): Expect
11450 LOC_COMMON_BLOCK in gdb_assert.
11451 * symtab.h (struct general_symbol_info): Update comment for the
11452 common_block member.
11453 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11454 (enum address_class): New member LOC_COMMON_BLOCK.
11456 2013-01-18 David Blaikie <dblaikie@gmail.com>
11458 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11460 2013-01-18 Tom Tromey <tromey@redhat.com>
11463 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11464 Call require_rvalue.
11466 2013-01-18 Yao Qi <yao@codesourcery.com>
11468 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11469 (dbx_read_symtab): New declaration.
11470 (dbx_psymtab_to_symtab): Delete.
11471 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11472 Rename parameter PST to SELF. Exchanged two parameters.
11473 (start_psymtab): Caller update.
11474 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11475 (dwarf2_read_symtab): New declaration.
11476 (dwarf2_psymtab_to_symtab): Delete.
11477 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11478 Rename parameter PST to SELF. Exchanged two parameters.
11479 (create_partial_symtab): Caller update.
11480 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11481 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11482 Rename parameter PST to SELF. Exchanged two parameters.
11483 (parse_partial_symbols, new_psymtab): Caller update.
11484 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11486 * psymtab.c (psymtab_to_symtab): Caller update.
11487 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11488 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11489 Rename parameter PST to SELF. Exchanged two parameters.
11490 (xcoff_start_psymtab): Caller update.
11492 2013-01-18 Yao Qi <yao@codesourcery.com>
11494 * infrun.c (proceed): Rename local variable 'oneproc' to
11497 2013-01-17 Doug Evans <dje@google.com>
11499 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11500 (dw2_build_type_unit_groups): Delete. All uses updated.
11502 * symtab.h (struct symbol_search): Add comment.
11504 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11506 * symtab.c (compare_filenames_for_search): New comment for
11509 2013-01-17 Tom Tromey <tromey@redhat.com>
11511 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11513 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11515 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11516 initialize it by existing make_cleanup. Call new do_cleanups.
11518 2013-01-17 Tom Tromey <tromey@redhat.com>
11520 * cp-abi.c (cp_abi_completer): New function.
11521 (_initialize_cp_abi): Set completer for "set cp-abi".
11523 2013-01-17 Tom Tromey <tromey@redhat.com>
11525 * mem-break.c: Remove obsolete comment.
11526 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11528 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11530 * jit.c (jit_reader_load_command): Interpret the jit reader name
11531 as an absolute path if it begins with a forward slash.
11533 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11537 * jit.c (finalize_symtab): Ensure that only the global block has a
11540 2013-01-17 Pedro Alves <palves@redhat.com>
11542 * acinclude.m4: Include ../config/plugins.m4,
11543 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11544 * Makefile.in (aclocal_m4_deps): Update.
11545 * aclocal.m4: Renegerate.
11547 2013-01-16 Doug Evans <dje@google.com>
11549 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11551 2013-01-16 Pedro Alves <palves@redhat.com>
11552 Tom Tromey <tromey@redhat.com>
11555 * NEWS: Add "catch signal".
11556 * breakpoint.c (base_breakpoint_ops): No longer static.
11557 (bpstat_explains_signal): New function.
11558 (init_catchpoint): No longer static.
11559 (base_breakpoint_explains_signal): New function.
11560 (base_breakpoint_ops): Initialize new field.
11561 * breakpoint.h (enum bpstat_signal_value): New.
11562 (struct breakpoint_ops) <explains_signal>: New field.
11563 (bpstat_explains_signal): Remove macro, declare as function.
11564 (base_breakpoint_ops, init_catchpoint): Declare.
11565 * break-catch-sig.c: New file.
11566 * inferior.h (signal_catch_update): Declare.
11567 * infrun.c (signal_catch): New global.
11568 (handle_syscall_event): Update for change to
11569 bpstat_explains_signal.
11570 (handle_inferior_event): Likewise. Always handle random signals
11572 (signal_cache_update): Check signal_catch.
11573 (signal_catch_update): New function.
11574 (_initialize_infrun): Initialize signal_catch.
11575 * Makefile.in (SFILES): Add break-catch-sig.c.
11576 (COMMON_OBS): Add break-catch-sig.o.
11578 2013-01-16 Tom Tromey <tromey@redhat.com>
11580 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11581 (print_one_catch_solib, print_one_catch_syscall)
11582 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11585 2013-01-16 Yao Qi <yao@codesourcery.com>
11587 * printcmd.c (current_display_number): Make it static.
11589 2013-01-16 Yao Qi <yao@codesourcery.com>
11591 * infcmd.c (step_once): Don't check '!single_inst' as it was
11594 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11596 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11598 2013-01-14 Tom Tromey <tromey@redhat.com>
11600 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11602 * command.h (add_setshow_string_noescape_cmd): Update.
11603 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11604 (complete_set_gnutarget): New function.
11605 (_initialize_core): Set the "set gnutarget" completer.
11607 2013-01-14 Tom Tromey <tromey@redhat.com>
11610 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11611 (c_type_print_modifier): Likewise.
11612 * dwarf2read.c (read_tag_restrict_type): New function.
11613 (read_type_die_1): Handle DW_TAG_restrict_type.
11614 * gdbtypes.c (make_restrict_type): New function.
11615 (recursive_dump_type): Handle TYPE_RESTRICT.
11616 * gdbtypes.h (enum type_flag_values): Renumber.
11617 (enum type_instance_flag_value): Add
11618 TYPE_INSTANCE_FLAG_RESTRICT.
11619 (TYPE_RESTRICT): New macro.
11620 (make_restrict_type): Declare.
11622 2013-01-14 Tom Tromey <tromey@redhat.com>
11625 * psymtab.c (struct psymtab_state): New.
11626 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11628 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11629 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11631 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11632 Pedro Alves <palves@redhat.com>
11636 * remote.c (remote_threads_info): Make a copy of the reply from
11637 qfThreadInfo and use that instead of rs->buf.
11639 2013-01-14 Yao Qi <yao@codesourcery.com>
11641 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11642 (dbx_psymtab_to_symtab): Likewise.
11643 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11644 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11645 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11647 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11649 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11650 make_cleanup_restore_current_language. Call set_language. Move
11651 OLD_CHAIN and INNER_CHAIN cleanups.
11652 * utils.c (do_restore_current_language)
11653 (make_cleanup_restore_current_language): New functions.
11654 * utils.h (make_cleanup_restore_current_language): New declaration.
11656 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11658 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11659 non-existing files.
11661 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11662 non-existing files if FILENAME is already absolute.
11664 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11666 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11667 fputs_filtered. Append trailing newline.
11669 2013-01-11 Yao Qi <yao@codesourcery.com>
11670 Stan Shebs <stan@codesourcery.com>
11672 * psymtab.c (init_psymbol_list): Clarify the comment.
11674 2013-01-11 Yao Qi <yao@codesourcery.com>
11676 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11677 (update_dprintf_command_list): Assert that 'printf_line' is
11678 non-null. Remove condition check.
11680 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11683 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11685 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11687 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11689 2013-01-09 Anthony Green <green@moxielogic.com>
11691 * cp-abi.c (cplus_print_vtable): Don't return value from void
11693 * ada-lang.c (re_set_catch_assert): Ditto.
11695 2013-01-09 Doug Evans <dje@google.com>
11697 * symfile.h (quick_symbol_functions): Delete member
11698 pre_expand_symtabs_matching. All uses removed.
11699 * dwarf2read.c (dw2_lookup_symbol): Implement.
11700 (dw2_do_expand_symtabs_matching): Delete.
11701 (dw2_pre_expand_symtabs_matching): Delete.
11702 (struct dw2_symtab_iterator): New type.
11703 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11704 (dw2_expand_symtabs_for_function): Rewrite.
11705 (dwarf2_gdb_index_functions): Update.
11706 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11707 (psym_functions): Update.
11709 2013-01-09 Tom Tromey <tromey@redhat.com>
11711 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11712 * configure: Rebuild.
11713 * configure.ac: Add somread.o to the build if BFD has SOM
11715 * somread.c: Include som/aout.h, not syms.h.
11716 (som_symtab_read): Use som_external_symbol_dictionary_record.
11717 Unpack records manually.
11718 (_initialize_somread): Declare.
11720 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11722 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11723 Cast return_address to 64bits.
11725 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11727 * printcmd.c: Remove define of function output_command.
11728 * tracepoint.c: Remove extern of function output_command.
11729 * valprint.h: (output_command): New extern.
11731 2013-01-07 Tom Tromey <tromey@redhat.com>
11733 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11735 (objc_language_defn): Use c_printchar, c_printstr,
11738 2013-01-07 Tom Tromey <tromey@redhat.com>
11742 * ada-valprint.c (printstr, print_field_values): Remove
11744 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11746 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11748 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11749 * main.c (captured_main): Remove "epoch" argument.
11750 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11751 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11752 * p-valprint.c (pascal_object_print_value_fields): Remove
11754 * printcmd.c (print_command_1): Remove 'inspect' argument.
11755 (print_command, call_command): Update.
11756 (inspect_command): Remove.
11757 (_initialize_printcmd): Make "inspect" an alias for "print".
11758 * top.c (epoch_interface): Remove.
11759 * top.h (epoch_interface): Remove.
11760 * valprint.c (user_print_options): Update.
11761 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11762 * valprint.h (struct value_print_options) <inspect_it>: Remove
11765 2013-01-04 Tom Tromey <tromey@redhat.com>
11767 * valprint.h (read_string): Add 'extern'.
11769 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11771 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11772 used to decide whether to define darwin_read_dyld_info or not.
11774 2013-01-03 Pierre Muller <muller@sourceware.org>
11776 * main.c (relocate_gdb_directory): Avoid calling stat function
11779 2013-01-03 Yao Qi <yao@codesourcery.com>
11781 * psymtab.c (fixup_psymbol_section): Update declaration.
11782 (fixup_psymbol_section): Remove code returning value.
11784 2013-01-03 Yao Qi <yao@codesourcery.com>
11786 * symtab.h: Remove some out of date comments.
11787 (enum exception_event_kind): Move it ...
11788 * breakpoint.c: ... here.
11790 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11793 * darwin-nat.c (darwin_read_dyld_info): Only build if
11794 TASK_DYLD_INFO_COUNT is defined.
11795 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11796 TASK_DYLD_INFO_COUNT is defined.
11798 2013-01-02 Tom Tromey <tromey@redhat.com>
11800 * symfile.h (struct ecoff_debug_hack): Remove.
11801 * objfiles.c: Don't include mdebugread.h.
11803 2013-01-02 Tom Tromey <tromey@redhat.com>
11805 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11806 * configure.ac: Check for Mach-O support in BFD. Update
11808 * configure: Rebuild.
11810 2013-01-02 Tom Tromey <tromey@redhat.com>
11812 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11813 * configure.ac: Use GDB_AC_CHECK_BFD.
11814 * configure: Rebuild.
11816 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11818 * MAINTAINERS: Update my email.
11820 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11822 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11824 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11826 * rs6000-nat.c (bss_data_overlap): New function.
11827 (vmap_symtab): Use it to adjust the .bss section's offset.
11829 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11831 Update year range in copyright notice of all files.
11833 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11835 * top.c (print_gdb_version): Update copyright year.
11837 For older changes see ChangeLog-2012.
11843 version-control: never