1 2013-11-14 Pedro Alves <palves@redhat.com>
3 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
5 * breakpoint.c (bpstat_explains_signal): Adjust to return a
7 (explains_signal_watchpoint, base_breakpoint_explains_signal):
8 Adjust to return a boolean.
9 * breakpoint.h (enum bpstat_signal_value): Delete.
10 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
11 (bpstat_explains_signal): Likewise.
12 * infrun.c (handle_inferior_event) <random signal checks>:
13 bpstat_explains_signal now returns a boolean - adjust. No longer
14 consider hiding signals.
16 2013-11-14 Pedro Alves <palves@redhat.com>
18 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
19 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
20 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
22 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
23 instead of BPSTAT_SIGNAL_HIDE.
24 * infrun.c (handle_inferior_event): Rework random signal checks.
26 2013-11-14 Pedro Alves <palves@redhat.com>
28 * infrun.c (struct execution_control_state): Remove
29 'random_signal' field.
30 (handle_syscall_event): Use bpstat_causes_stop instead of
31 bpstat_explains_signal. Don't set ecs->random_signal.
32 (handle_inferior_event): New 'random_signal' local.
33 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
34 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
35 bpstat_explains_signal. Don't set ecs->random_signal.
36 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
39 2013-11-14 Pedro Alves <palves@redhat.com>
41 * infrun.c (handle_inferior_event): Move comment from the
42 function's body to the function's description, adjusted.
44 2013-11-14 Pedro Alves <palves@redhat.com>
46 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
47 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
48 Assert we never fall through out of the TARGET_WAITKIND_LOADED
51 2013-11-14 Tom Tromey <tromey@redhat.com>
53 * python/py-linetable.c (ltpy_has_line)
54 (ltpy_get_all_source_lines): Fix loop termination condition.
56 2013-11-14 Joel Brobecker <brobecker@adacore.com>
58 * mi/mi-parse.h (struct mi_parse) <language>: New field.
59 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
60 PARSE->LANGUAGE during command execution, if set.
61 * mi/mi-parse.c: Add "language.h" #include.
62 (mi_parse): Add parsing of "--language" command option.
64 * NEWS: Add entry mentioning the new "--language" command option.
66 2013-11-14 Pedro Alves <palves@redhat.com>
67 Joel Brobecker <brobecker@adacore.com>
69 * cli/cli-utils.h (extract_arg_const): Add declaration.
70 * cli/cli-utils.c (extract_arg_const): New function.
71 (extract_arg): Reimplement using extract_arg_const.
73 2013-11-14 Joel Brobecker <brobecker@adacore.com>
75 * language.h: Add "symtab.h" #include.
77 2013-11-13 Doug Evans <xdje42@gmail.com>
79 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
80 specific breakpoints, don't evaluate breakpoint condition if
83 2013-11-13 Keith Seitz <keiths@redhat.com>
87 * cp-support.c (insepct_type): Add support for substituting
88 namespace aliases, too.
89 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
90 for DW_TAG_imported_declaration.
91 (add_partial_symbol): Likewise.
92 (process_die): Handle namespace aliases with
94 (die_needs_namespace): Add DW_TAG_imported_declaration.
95 (read_namespace_alias): New function.
96 (load_partial_dies): Load DW_TAG_imported_declaration, too.
97 (new_symbol_full): Handle DW_TAG_imported_declaration.
99 2013-11-13 Keith Seitz <keiths@redhat.com>
101 * p-exp.y (uptok): Make first parameter const.
102 (yylex): Make `tokstart' and `tokptr' const.
103 Don't copy the lexer input to a temporary buffer.
105 Remove const workaround for parse_escape.
106 Create a temporary buffer for a convenience variable instead
107 of doing in-place modification of the input.
108 If a match is found with a different case from the input,
109 do not change the input at all.
110 Use `tmp' to construct the resultant stoken instead of
113 2013-11-13 Doug Evans <xdje42@gmail.com>
115 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
117 2013-11-13 Joel Brobecker <brobecker@adacore.com>
119 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
120 entry with "ada-exceptions".
122 2013-11-13 Joel Brobecker <brobecker@adacore.com>
124 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
125 after re-initialization of OBJFILE's obstack.
127 2013-11-12 Doug Evans <xdje42@gmail.com>
129 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
130 bs->stop != 0 on entry. Update function comment. Simplify early
131 exit for frame mismatch. Reindent rest of function.
133 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
135 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
138 2013-11-12 Doug Evans <dje@google.com>
140 Work around gold/15646.
141 * dwarf2read.c (read_index_from_section): Update comment.
142 (struct dw2_symtab_iterator): New member global_seen.
143 (dw2_symtab_iter_init): Initialize it.
144 (dw2_symtab_iter_next): Skip duplicate global symbols.
145 (dw2_expand_symtabs_matching): Ditto.
147 2013-11-12 Joel Brobecker <brobecker@adacore.com>
149 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
150 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
152 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
153 (mi_cmd_info_ada_exceptions): New function.
154 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
156 2013-11-12 Joel Brobecker <brobecker@adacore.com>
158 * ada-lang.h: #include "vec.h".
159 (struct ada_exc_info): New.
160 (ada_exc_info): New typedef.
161 (DEF_VEC_O(ada_exc_info)): New vector.
162 (ada_exceptions_list): Add declaration.
163 * ada-lang.c (ada_is_exception_sym)
164 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
165 (sort_remove_dups_ada_exceptions_list)
166 (ada_exc_search_name_matches, ada_add_standard_exceptions)
167 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
168 (ada_exceptions_list_1, ada_exceptions_list)
169 (info_exceptions_command): New function.
170 (_initialize_ada_language): Add "info exception" command.
172 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
175 * NEWS: Add linetable feature.
176 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
177 * python/py-linetable.c: New file.
178 * python/py-symtab.c (stpy_get_linetable): New function.
179 * python/python-internal.h (symtab_to_linetable_object): Declare.
180 (gdbpy_initialize_linetable): Ditto.
181 * python/python.c (_initialize_python): Call
182 gdbpy_initialize_linetable.
184 2013-11-11 Joel Brobecker <brobecker@adacore.com>
186 * ada-lang.c (create_ada_exception_catchpoint): Enhance
187 the documentation of fields "except_string" and "condition".
188 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
189 CONDITION on the heap before passing it to
190 create_ada_exception_catchpoint.
191 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
194 2013-11-11 Tom Tromey <tromey@redhat.com>
196 * config.in, configure: Rebuild.
197 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
199 2013-11-11 Joel Brobecker <brobecker@adacore.com>
201 * remote-sim.c (gdbsim_detach): Break declaration into
202 shorter lines. No code change.
204 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
206 * remote-sim.c (gdbsim_detach): Fix prototype.
208 2013-11-08 Doug Evans <dje@google.com>
210 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
211 (create_debug_types_hash_table): Only print debugging messages for
212 each TU if dwarf2-read >= 2.
213 (process_queue): Ditto.
214 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
217 2013-11-08 Tom Tromey <tromey@redhat.com>
219 * configure: Rebuild.
220 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
222 2013-11-08 Tom Tromey <tromey@redhat.com>
224 * configure, config.in: Rebuild.
225 * configure.ac: Remove unused configury.
227 2013-11-08 Tom Tromey <tromey@redhat.com>
229 * m32c-tdep.c: Use gdb_string.h.
231 2013-11-08 Tom Tromey <tromey@redhat.com>
233 * configure, config.in: Rebuild.
234 * configure.ac: Remove all link.h-related checks.
236 2013-11-08 Tom Tromey <tromey@redhat.com>
238 * acinclude.m4: Include common.m4.
239 * common/common.m4: New file.
240 * configure, config.in: Rebuild.
241 * configure.ac: Use GDB_AC_COMMON.
243 2013-11-08 Doug Evans <dje@google.com>
245 * NEWS: Mention that "set debug symtab-create" now accepts a
247 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
248 to set the symtab's primary flag.
249 * jit.c (finalize_symtab): Ditto.
250 * mdebugread.c (psymtab_to_symtab_1): Ditto.
251 * symfile.c (allocate_symtab): Only print debugging messages for
252 symtab_create_debug levels 2 and higher.
253 * symtab.c (symtab_create_debug): Change type to unsigned int.
254 (set_symtab_primary): New function.
255 (_initialize_symtab): Change "set debug symtab-create" to a
257 * symtab.h (set_symtab_primary): Declare.
258 (symtab_create_debug): Update decl.
260 2013-11-08 Tom Tromey <tromey@redhat.com>
262 * aix-thread.c (aix_thread_detach): Update.
263 * corelow.c (core_detach): Update.
264 * darwin-nat.c (darwin_detach): Update.
265 * dec-thread.c (dec_thread_detach): Update.
266 * gnu-nat.c (gnu_detach): Update.
267 * go32-nat.c (go32_detach): Update.
268 * inf-ptrace.c (inf_ptrace_detach): Update.
269 * inf-ttrace.c (inf_ttrace_detach): Update.
270 * linux-fork.c (linux_fork_detach): Update.
271 * linux-fork.h (linux_fork_detach): Update.
272 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
273 local for const-correctness.
274 * linux-thread-db.c (thread_db_detach): Update.
275 * monitor.c (monitor_detach): Update.
276 * nto-procfs.c (procfs_detach): Update.
277 * procfs.c (procfs_detach): Update.
278 * record.c (record_detach): Update.
279 * record.h (record_detach): Update.
280 * remote-m32r-sdi.c (m32r_detach): Update.
281 * remote-mips.c (mips_detach): Update.
282 * remote-sim.c (gdbsim_detach): Update.
283 * remote.c (remote_detach_1, remote_detach)
284 (extended_remote_detach): Update.
285 * sol-thread.c (sol_thread_detach): Update.
286 * target.c (target_detach): Make "args" const.
287 (init_dummy_target): Update.
288 * target.h (struct target_ops) <to_detach>: Make argument const.
289 (target_detach): Likewise.
290 * windows-nat.c (windows_detach): Update.
292 2013-11-07 Doug Evans <dje@google.com>
295 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
296 and align fields for PT_GNU_RELRO segments.
298 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
301 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
303 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
305 * NEWS: Document Python temporary breakpoint support.
306 * python/py-breakpoint.c (bppy_get_temporary): New function.
307 (bppy_init): New keyword: temporary. Parse it and set breakpoint
308 to temporary if True.
310 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
312 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
313 removed to allow analyzing unconditional branch instructions
314 with PC-relative offsets of zero.
316 2013-11-07 Yao Qi <yao@codesourcery.com>
318 * mi/mi-cmd-var.c: Include "language.h".
319 (mi_cmd_var_info_expression): Get language name from
321 * varobj.c (varobj_language_string): Remove.
322 (variable_language): Remove declaration.
324 (varobj_get_language): Change the type of return value.
325 (variable_language): Remove.
326 * varobj.h (enum varobj_languages): Remove.
327 (varobj_language_string): Remove declaration.
328 (varobj_get_language): Update declaration.
330 2013-11-07 Yao Qi <yao@codesourcery.com>
332 * language.h (struct language_defn) <la_natural_name>: New
334 * ada-lang.c (ada_language_defn): Initialize field
336 * c-lang.c (c_language_defn): Likewise.
337 (cplus_language_defn, asm_language_defn): Likewise.
338 * d-lang.c (d_language_defn): Likewise.
339 * f-lang.c (f_language_defn): Likewise.
340 * go-lang.c (go_language_defn): Likewise.
341 * jv-lang.c (java_language_defn): Likewise.
342 * language.c (unknown_language_defn ): Likewise.
343 (auto_language_defn): Likewise.
344 * m2-lang.c (m2_language_defn): Likewise.
345 * objc-lang.c (objc_language_defn): Likewise.
346 * opencl-lang.c (opencl_language_defn): Likewise.
347 * p-lang.c (pascal_language_defn): Likewise.
349 2013-11-07 Yao Qi <yao@codesourcery.com>
351 * language.c (language_str): Return const char *.
352 (add_language): Add const to 'language_names'
353 * language.h (struct language_defn) <la_name>: Add const.
354 (language_str: Update declaration.
356 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
358 * s390-linux-nat.c (s390_read_description): Consider the TE field
359 in the HWCAP for determining 'have_regset_tdb'.
361 2013-11-06 Will Newton <will.newton@linaro.org>
364 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
365 values. (read_partial_die): Likewise.
367 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
370 * top.c (command_line_input): Unify interactivity tests to use
371 input_from_terminal_p.
372 * event-top.c (command_line_handler): Likewise.
374 2013-11-06 Yao Qi <yao@codesourcery.com>
376 * Makefile.in (check-perf): New target.
378 2013-11-05 Will Newton <will.newton@linaro.org>
381 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
382 (arm_print_float_info): Likewise.
384 2013-11-04 Anton Blanchard <anton@samba.org>
386 * target.c (memory_xfer_partial): Cap write to 4KB.
388 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
390 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
391 probe scan even when the arch provides no get_longjmp_target.
393 2013-10-31 Pedro Alves <palves@redhat.com>
395 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
396 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
397 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
398 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
399 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
400 <bpstat handling>: If the bpstat chain wants the signal to be
401 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
404 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
406 * breakpoint.c (update_watchpoint): Update error message and add
407 an additional error message.
409 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
411 * s390-tdep.h: Rename to...
412 * s390-linux-tdep.h: ...here.
413 * s390-tdep.c: Rename to...
414 * s390-linux-tdep.c: ...here. Adjust #include.
415 * s390-nat.c: Rename to...
416 * s390-linux-nat.c: ...here. Adjust #include.
417 * config/s390/s390.mh: Rename to...
418 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
420 * configure.host: Reflect host rename "s390" -> "linux".
421 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
422 * Makefile.in (ALL_TARGET_OBS): Likewise.
423 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
425 (ALLDEPFILES): Reflect rename of .c files.
427 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
429 * s390-nat.c: Whitespace cleanup.
430 * s390-tdep.c: Likewise.
431 * s390-tdep.h: Remove empty line at end of file.
433 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
435 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
438 2013-10-29 Tom Tromey <tromey@redhat.com>
440 * utils.c (reg): Move undefinition...
441 * gdb_curses.h: ... here. Update comment to mention AIX.
443 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
445 * exec.h (add_target_sections_of_objfile): New declaration.
446 * exec.c (add_target_sections_of_objfile): New function.
447 * symfile.c (add_symbol_file_command): Update current target sections.
448 (remove_symbol_file_command): New command.
449 (symfile_free_objfile): New function.
450 (_initialize_symfile): Register observer for free_objfile events.
451 * NEWS: Add description of the remove-symbol-file command.
452 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
453 * objfiles.c (free_objfile): Notify free_objfile.
454 (is_addr_in_objfile): New function.
455 * objfiles.h (is_addr_in_objfile): New declaration.
456 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
457 events instead of solib_unloaded events.
458 (_initialize_printcmd): Register observer for free_objfile instead
459 of solib_unloaded notifications.
460 * solib.c (remove_user_added_objfile): New function.
461 (_initialize_symfile): Add remove-symbol-file.
463 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
465 * infcmd.c (default_print_one_register_info): Use val_print to
466 print all values even optimized out or unavailable ones. Don't
467 try to print a raw form of optimized out or unavailable values.
469 2013-10-29 Yao Qi <yao@codesourcery.com>
471 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
472 parameter 'arg' instead of from program_space_data.
473 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
474 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
475 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
476 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
477 * inflow.c (inflow_inferior_data_cleanup): Get data from
478 parameter 'arg' instead of inferior_data.
479 * registry.h: Add comments.
481 2013-10-28 Pedro Alves <palves@redhat.com>
483 * breakpoint.c (watchpoints_triggered)
484 <!target_stopped_data_address>: Hardcode return 1.
486 2013-10-28 Pedro Alves <palves@redhat.com>
488 * infrun.c (process_event_stop_test): Remove unnecessary scoping
491 2013-10-28 Pedro Alves <palves@redhat.com>
493 * infrun.c (process_event_stop_test): New function, factored out
494 from handle_inferior_event.
495 (handle_inferior_event): 'process_event_stop_test' is now a
496 function instead of a goto label -- adjust.
498 2013-10-28 Pedro Alves <palves@redhat.com>
500 * infrun.c (handle_inferior_event): Move process_event_stop_test
501 goto label to the else branch of the ecs->random_signal check,
502 along with FRAME and GDBARCH re-fetching.
504 2013-10-28 Pedro Alves <palves@redhat.com>
506 * infrun.c (switch_back_to_stepped_thread): New function, factored
507 out from handle_inferior_event.
508 (handle_inferior_event): Adjust to call
509 switch_back_to_stepped_thread. Call it also at the tail of the
510 random signal handling, and return, instead of also handling
511 random signals just before the stepping tests.
513 2013-10-28 Pedro Alves <palves@redhat.com>
515 * infrun.c (clear_stop_func): Delete.
516 (handle_inferior_event): Don't call clear_stop_func and don't
517 clear 'ecs->random_signal'.
519 2013-10-27 Yao Qi <yao@codesourcery.com>
521 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
522 (varobj_create, varobj_get_path_expr): Update.
523 (varobj_value_has_mutated, varobj_update): Likewise.
524 (create_child_with_value, new_root_variable): Likewise.
525 (number_of_children, name_of_variable): Likewise.
526 (value_of_child, my_value_of_variable): Likewise.
527 (varobj_value_is_changeable_p): Likewise.
529 2013-10-25 Yao Qi <yao@codesourcery.com>
531 * language.h (struct lang_varobj_ops): Declare.
532 (struct language_defn) <la_varobj_ops>: New field.
533 * ada-lang.c: Include "varobj.h"
534 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
536 * c-lang.c: Include "varobj.h"
537 (c_language_defn): Initialize field 'la_varobj_ops' with
539 (cplus_language_defn): Initialize field 'la_varobj_ops' with
541 (asm_language_defn): Initialize field 'la_varobj_ops' with
543 (minimal_language_defn): Likewise.
544 * d-lang.c (d_language_defn): Likewise.
545 * f-lang.c (f_language_defn): Likewise.
546 * go-lang.c (go_language_defn): Likewise.
547 * m2-lang.c (m2_language_defn): Likewise.
548 * objc-lang.c (objc_language_defn): Likewise.
549 * opencl-lang.c (opencl_language_defn): Likewise.
550 * p-lang.c (pascal_language_defn): Likewise.
551 * language.c (unknown_language_defn): Likewise.
552 (auto_language_defn): Likewise.
553 (local_language_defn): Likewise.
554 * jv-lang.c (java_language_defn): Initialize field
555 'la_varobj_ops' with java_varobj_ops.
556 * varobj.c (varobj_create): Update.
557 * varobj.h (default_varobj_ops): Define macro.
559 2013-10-25 Pedro Alves <palves@redhat.com>
561 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
563 (cp_print_static_field): If the value is entirely optimized out,
564 print <optimized out> here.
565 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
567 * p-valprint.c (pascal_object_print_static_field): If the value is
568 entirely optimized out, print <optimized out> here.
569 * valops.c (do_search_struct_field)
570 (value_struct_elt_for_reference): No longer handle a NULL static
572 * value.c (value_static_field): Return an optimized out value
575 2013-10-25 Yao Qi <yao@codesourcery.com>
577 * remote.c (remote_traceframe_info): Return early if
578 traceframe is not selected.
580 2013-10-25 Yao Qi <yao@codesourcery.com>
582 * tracepoint.c (traceframe_fun): Remove.
583 (traceframe_sal): Remove.
584 (set_traceframe_context): Add local variables.
586 2013-10-25 Joel Brobecker <brobecker@adacore.com>
588 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
591 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
593 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
594 failure from register information collection.
596 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
598 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
600 (linux_corefile_thread_callback): Update accordingly.
601 (linux_make_corefile_notes): Likewise.
603 2013-10-24 Pedro Alves <palves@redhat.com>
605 * NEWS (New options): Mention set/show startup-with-shell.
606 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
608 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
610 (show_startup_with_shell): New function.
611 (_initialize_fork_child): Register the set/show startup-with-shell
613 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
614 * inf-ttrace.c (inf_ttrace_him): Remove comment.
615 * procfs.c (procfs_init_inferior): Remove comment.
616 * infcmd.c (startup_with_shell): New global.
617 * inferior.h (startup_with_shell): Declare global.
618 (STARTUP_WITH_SHELL): Delete.
619 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
621 2013-10-23 Pedro Alves <palves@redhat.com>
623 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
624 * common/signals.c: Include "gdb_assert.h".
625 (signals): New field 'symbol'.
626 (SET): Use the 'symbol' parameter.
627 (gdb_signal_to_symbol_string): New function.
628 * infrun.c (handle_inferior_event) <random signal>: In debug
629 output, print the random signal enum as string in addition to its
631 * target/waitstatus.c (target_waitstatus_to_string): Print the
632 signal's enum value as string instead of the (POSIX) signal name.
634 2013-10-23 Gary Benson <gbenson@redhat.com>
637 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
638 from 32 to 18. Adjusted fscanf format string accordingly.
639 (Avoids leaving cmd unterminated.)
640 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
641 trun, retn or extra. (Avoids leaving extra unterminated.) Check
642 that local_address and remote_address will not overflow.
643 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
644 leaving dependencies unterminated. Parse size as "%u" to match
647 2013-10-22 Pedro Alves <palves@redhat.com>
649 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
650 set ecs->random signal.
652 2013-10-22 Pedro Alves <palves@redhat.com>
654 * infrun.c (keep_going): Update comments.
656 2013-10-22 Pedro Alves <palves@redhat.com>
658 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
659 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
661 2013-10-22 Pedro Alves <palves@redhat.com>
663 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
665 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
666 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
667 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
668 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
669 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
670 (GDB_SIGNAL_LAST): Change description string.
671 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
672 Adjust to signal renaming.
673 * darwin-nat.c (darwin_decode_message): Likewise.
675 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
677 * MAINTAINERS (Write After Approval): Add myself to the list.
679 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
681 * breakpoint.c (update_watchpoint): If hardware watchpoints are
682 forced off, downgrade them to software watchpoints if possible,
683 and error out if not possible.
684 (watch_command_1): Move watchpoint type selection closer to
685 watchpoint creation, and extend the comments.
687 2013-10-18 Pedro Alves <palves@redhat.com>
690 * infrun.c (handle_inferior_event): Keep going if we got a random
691 signal we should not stop for, instead of falling through to the
694 2013-10-18 Yao Qi <yao@codesourcery.com>
696 * c-varobj.c (cplus_number_of_children): Fix indentation.
698 2013-10-17 Tom Tromey <tromey@redhat.com>
701 * printcmd.c (printcmd): Call gdb_flush.
703 2013-10-17 Tom Tromey <tromey@redhat.com>
705 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
706 (elf_locate_sections): Update.
708 2013-10-17 Yao Qi <yao@codesourcery.com>
710 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
711 * ada-varobj.c: Remove the include of ada-varobj.h.
712 (ada_varobj_get_number_of_children): Declare.
713 (ada_varobj_get_name_of_child): Make it static.
714 (ada_varobj_get_path_expr_of_child): Likewise.
715 (ada_varobj_get_value_of_child): Likewise.
716 (ada_varobj_get_type_of_child): Likewise.
717 (ada_varobj_get_value_of_array_variable): Likewise.
718 * ada-varobj.h: Remove.
720 2013-10-17 Yao Qi <yao@codesourcery.com>
722 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
723 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
724 * ada-varobj.c: Include "varobj.h".
725 (ada_number_of_children): New. Moved from varobj.c.
726 (ada_name_of_variable, ada_name_of_child): Likewise.
727 (ada_path_expr_of_child, ada_value_of_child): Likewise.
728 (ada_type_of_child, ada_value_of_variable): Likewise.
729 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
730 (ada_varobj_ops): New.
731 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
732 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
733 * gdbtypes.h (get_target_type): Declare.
734 * varobj.c: Remove the inclusion of "ada-varobj.h" and
736 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
737 (ANONYMOUS_UNION_NAME): Likewise.
738 (get_type, get_value_type, get_target_type): Remove declarations.
739 (value_get_print_value, varobj_value_get_print_value): Likewise.
740 (c_number_of_children, c_name_of_variable): Likewise.
741 (c_name_of_child, c_path_expr_of_child): Likewise.
742 (c_value_of_child, c_type_of_child): Likewise.
743 (c_value_of_variable, cplus_number_of_children): Likewise.
744 (cplus_class_num_children, cplus_name_of_variable): Likewise.
745 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
746 (cplus_value_of_child, cplus_type_of_child): Likewise.
747 (cplus_value_of_variable, java_number_of_children): Likewise.
748 (java_name_of_variable, java_name_of_child): Likewise.
749 (java_path_expr_of_child, java_value_of_child): Likewise.
750 (java_type_of_child, java_value_of_variable): Likewise.
751 (ada_number_of_children, ada_name_of_variable): Likewise.
752 (ada_name_of_child, ada_path_expr_of_child): Likewise.
753 (ada_value_of_child, ada_type_of_child): Likewise.
754 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
755 (ada_value_has_mutated): Likewise.
756 (struct language_specific): Move it to varobj.h.
757 (CPLUS_FAKE_CHILD): Move it to varobj.h.
758 (restrict_range): Rename it varobj_restrict_range. Make it extern.
760 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
762 (is_anonymous_child): Move it to c-varobj.c and rename to
763 varobj_is_anonymous_child. Caller update.
764 (get_type): Move it to c-varobj.c.
765 (get_value_type): Rename it varobj_get_value_type. Make it
767 (get_target_type): Move it gdbtypes.c.
768 (varobj_formatted_print_options): New function.
769 (value_get_print_value): Rename it to
770 varobj_value_get_print_value and make it extern.
771 (varobj_value_is_changeable_p): Make it extern.
772 (adjust_value_for_child_access): Move it to c-varobj.c.
773 (default_value_is_changeable_p): Rename it to
774 varobj_default_value_is_changeable_p. Make it extern.
775 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
776 (c_name_of_child, c_path_expr_of_child): Likewise.
777 (c_value_of_child, c_type_of_child): Likewise.
778 (c_value_of_variable, cplus_number_of_children): Likewise.
779 (cplus_class_num_children, cplus_name_of_variable): Likewise.
780 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
781 (cplus_value_of_child, cplus_type_of_child): Likewise.
782 (cplus_value_of_variable): Likewise.
783 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
784 (java_name_of_child, java_path_expr_of_child): Likewise.
785 (java_value_of_child, java_type_of_child): Likewise.
786 (java_value_of_variable): Likewise.
787 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
788 (ada_name_of_child, ada_path_expr_of_child): Likewise.
789 (ada_value_of_child, ada_type_of_child): Likewise.
790 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
791 (ada_value_has_mutated): Likewise.
792 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
793 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
794 (c_varobj_ops, cplus_varobj_ops): Declare.
795 (java_varobj_ops, ada_varobj_ops): Declare.
796 (varobj_default_value_is_changeable_p): Declare.
797 (varobj_value_is_changeable_p): Declare.
798 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
799 (varobj_get_path_expr_parent): Declare.
800 (varobj_value_get_print_value): Declare.
801 (varobj_formatted_print_options): Declare.
802 (varobj_restrict_range): Declare.
804 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
806 * target/waitstatus.h (target_waitkind): Remove spurious
807 character from the comments.
809 2013-10-17 Joel Brobecker <brobecker@adacore.com>
811 * gdbarch.sh (get_longjmp_target): Add method documentation.
812 * gdbarch.h: Regenerate.
814 2013-10-16 Tom Tromey <tromey@redhat.com>
816 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
819 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
821 * gcore.in: Call GDB using the full path to the gcore script.
822 Error out if the GDB binary is not found.
824 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
827 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
830 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
833 * target.c (target_disable_btrace): Fix invalid return value for
835 (target_teardown_btrace): Likewise.
837 2013-10-14 Yao Qi <yao@codesourcery.com>
839 * varobj.c (struct varobj): Move most of the fields to
841 (struct varobj_dynamic): New struct.
842 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
843 (varobj_has_more): Likewise.
844 (dynamic_varobj_has_child_method): Likewise.
845 (update_dynamic_varobj_children): Likewise.
846 (varobj_get_num_children): Likewise.
847 (varobj_list_children, varobj_pretty_printed_p): Likewise.
848 (install_new_value_visualizer): Likewise.
849 (install_new_value_visualizer, install_new_value): Likewise.
850 (varobj_update, new_variable, free_variable): Likewise.
851 (my_value_of_variable, value_get_print_value): Likewise.
852 (install_visualizer): Change the type of parameter 'var' to
853 'struct varobjd_dynamic *'. Callers update.
854 * varobj.h (struct varobj): Moved from varobj.c.
855 (struct varobj) <dynamic>: New field.
857 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
859 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
860 as the preferred name of r30.
861 * nios2-linux-tdep.c (reg_offsets): Likewise.
862 * features/nios2-cpu.xml: Likewise.
863 * features/nios2-linux.c: Regenerated.
864 * features/nios2.c: Regenerated.
865 * regformats/nios2-linux.dat: Regenerated.
867 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
869 Canonicalize directories for EXEC_FILENAME.
870 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
872 * utils.c (gdb_realpath_keepfile): New function.
873 * utils.h (gdb_realpath_keepfile): New declaration.
875 2013-10-11 Doug Evans <dje@google.com>
877 * Makefile.in (GDBFLAGS): New variable.
880 2013-10-11 Joel Brobecker <brobecker@adacore.com>
882 * NEWS: Add entry documenting the new "-catch-assert" and
883 "-catch-exception" GDB/MI commands.
885 2013-10-11 Joel Brobecker <brobecker@adacore.com>
887 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
889 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
890 "enabled". Set B->ENABLE_STATE accordingly.
891 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
893 (create_ada_exception_catchpoint): Add declaration.
894 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
895 (create_ada_exception_catchpoint): Make non-static. Add new
896 parameter "disabled". Use it in call to
897 init_ada_exception_breakpoint.
898 (catch_ada_exception_command): Add parameter "enabled" in call
899 to create_ada_exception_catchpoint.
900 (catch_assert_command): Likewise.
902 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
904 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
905 "catch-exception" commands.
906 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
907 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
909 2013-10-11 Joel Brobecker <brobecker@adacore.com>
911 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
912 "enum exception_catchpoint_kind". Replace the "ex_" prefix
913 of all its enumerates with "ada_". Update the rest of this
916 2013-10-11 Joel Brobecker <brobecker@adacore.com>
918 * ada-lang.c (ada_decode_exception_location): Delete.
919 (create_ada_exception_catchpoint): Remove arguments "sal",
920 "addr_string" and "ops". Add argument "ex_kind" instead.
921 Adjust implementation accordingly, calling ada_exception_sal
922 to get the entities it no longer gets passed as arguments.
923 Document the function's arguments.
924 (catch_ada_exception_command): Use catch_ada_exception_command_split
925 instead of ada_decode_exception_location, and update call to
926 create_ada_exception_catchpoint.
927 (catch_ada_assert_command_split): Renames
928 ada_decode_assert_location. Remove parameters "addr_string" and
929 "ops", and now returns void. Adjust implementation accordingly.
930 Update the function documentation.
931 (catch_assert_command): Use catch_ada_assert_command_split
932 instead of ada_decode_assert_location. Update call to
933 create_ada_exception_catchpoint.
935 2013-10-11 Joel Brobecker <brobecker@adacore.com>
937 * utils.h (perror_warning_with_name): Add declaration.
938 * utils.c (perror_warning_with_name): New function.
939 * cli/cli-cmds.c (source_script_with_search): Add call to
940 perror_warning_with_name if from_tty is nul.
942 2013-10-11 Joel Brobecker <brobecker@adacore.com>
944 * utils.c (perror_string): New function, extracted out of
945 throw_perror_with_name.
946 (throw_perror_with_name): Rework to use perror_string.
948 2013-10-11 Yao Qi <yao@codesourcery.com>
950 * remote.c (discard_pending_stop_replies_in_queue): Update
952 (struct stop_reply) <rs>: New field.
953 (remove_stop_reply_of_remote_state): New function.
954 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
955 Callers update. Pass remove_stop_reply_of_remote_state to
957 (remote_parse_stop_reply): Initialize field 'rs'.
959 2013-10-10 Will Newton <will.newton@linaro.org>
961 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
964 2013-10-10 Joel Brobecker <brobecker@adacore.com>
966 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
967 serial_baud_show_cmd.
968 (_initialize_cli_cmds): Delete the code creating the
969 "set/show remotebaud" commands.
970 * serial.c (baud_rate): Move here from top.c.
971 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
972 (_initialize_serial): Create "set/show serial baud" commands.
973 Add "set/show remotebaud" command aliases.
974 * top.c (baud_rate): Moved to serial.c.
975 * NEWS: Document the new "set/show serial baud" commands,
976 replacing "set/show remotebaud".
978 2013-10-09 Pedro Alves <palves@redhat.com>
980 * breakpoint.c (insert_bp_location): Use memory_error_message to
981 build the memory error string.
982 * c-lang.c: Include "gdbcore.h".
983 (c_get_string): Use memory_error to throw error.
984 (target_xfer_memory_error): Delete.
985 (memory_error_message): New, factored out from
986 target_xfer_memory_error.
987 (memory_error): Change parameter type to target_xfer_error.
989 (read_memory): Use memory_error instead of
990 target_xfer_memory_error.
991 * gdbcore.h: Include "target.h".
992 (memory_error): Change parameter type to target_xfer_error.
993 (memory_error_message): Declare function.
994 * target.c (target_read_memory, target_read_stack)
995 (target_write_memory, target_write_raw_memory): Return
996 TARGET_XFER_E_IO on error. Adjust comments.
997 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
999 * target.h (target_read, target_insert_breakpoint)
1000 (target_remove_breakpoint): Adjust comments.
1001 * valprint.c (partial_memory_read): Rename parameter, and adjust
1003 (val_print_string): Use memory_error_message to build the memory
1006 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1009 result variable. Rename variable fopen_e_ever_failed to
1010 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1012 2013-10-09 Pedro Alves <palves@redhat.com>
1014 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1015 (monitor_write_memory_longlongs, monitor_write_memory_block):
1016 Constify 'myaddr' parameter.
1017 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1019 (monitor_xfer_partial): New function.
1020 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1021 hook. Install a to_xfer_partial hook.
1023 2013-10-09 Tom Tromey <tromey@redhat.com>
1025 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1026 bfd_get_alt_debug_link_info.
1028 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1030 New flag OBJF_NOT_FILENAME.
1031 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1032 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1034 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1035 symbol_file_add_from_bfd.
1036 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1038 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1040 * objfiles.h (OBJF_NOT_FILENAME): New.
1042 2013-10-08 Tom Tromey <tromey@redhat.com>
1044 * Makefile.in (SFILES): Add build-id.c.
1045 (HFILES_NO_SRCDIR): Add build-id.h.
1046 * build-id.c: New file, largely from elfread.c. Modified
1048 * build-id.h: New file.
1049 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1050 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1051 Search for dwz file using build-id.
1052 * elfread.c (build_id_bfd_get, build_id_verify)
1053 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1055 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1057 * ada-lang.c (compare_names_with_case): Renamed from
1058 compare_names, adding a new parameter "casing" and its handling.
1059 New function documentation.
1060 (compare_names): New function, implemented using
1061 compare_names_with_case.
1063 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1065 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1067 2013-10-07 Tom Tromey <tromey@redhat.com>
1069 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1070 demangled_names_hash.
1071 (free_objfile): Don't delete the demangled_names_hash.
1072 * objfiles.h (struct objfile_per_bfd_storage)
1073 <demangled_names_hash>: New field.
1074 (struct objfile) <demangled_names_hash>: Move to
1075 objfile_per_bfd_storage.
1076 * symfile.c (reread_symbols): Don't delete the
1077 demangled_names_hash.
1078 * symtab.c (create_demangled_names_hash): Update.
1079 (symbol_set_names): Update.
1081 2013-10-07 Tom Tromey <tromey@redhat.com>
1083 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1084 needs_relocations>: New fields.
1085 (gdb_bfd_requires_relocations): New function.
1086 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1087 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1088 the BFD needs relocations applied.
1090 2013-10-07 Pedro Alves <palves@redhat.com>
1092 PR breakpoints/11568
1093 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1094 the thread list" instead of "gone".
1096 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1098 * NEWS: Mention new convenience variable $_exitsignal.
1099 * corelow.c (core_open): Reset exit convenience variables. Set
1100 $_exitsignal to the uncaught signal which generated the corefile.
1101 * infrun.c (handle_inferior_event): Reset exit convenience
1102 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1103 (clear_exit_convenience_vars): New function.
1104 * inferior.h (clear_exit_convenience_vars): New prototype.
1106 2013-10-06 Yao Qi <yao@codesourcery.com>
1108 * varobj.h: Add comments to enum varobj_languages.
1110 2013-10-04 Doug Evans <dje@google.com>
1112 Add support for DWP file format version 2.
1113 * NEWS: Mention support for DWP file format version 2.
1114 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1115 union of asection, containing_section. New fields virtual_offset
1116 and is_virtual. Change type of readin filed from int to char.
1117 (dwo_sections, dwo_file): Tweak comments.
1118 (dwp_v2_section_ids): New enum.
1119 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1121 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1123 (virtual_v2_dwo_sections): New struct.
1124 (dwp_hash_table): New fields version, nr_columns. Change type of
1125 section_pool field to a union.
1126 (dwp_file): New field version.
1127 (dwarf2_has_info): Check for virtual sections.
1128 (get_containing_section): New function.
1129 (get_section_bfd_owner, get_section_bfd_section): Call it.
1130 (dwarf2_locate_sections): Update.
1131 (dwarf2_section_empty_p): Update.
1132 (dwarf2_read_section): Handle virtual sections.
1133 (locate_dwz_sections): Update.
1134 (create_dwp_hash_table): Document and handle V2 format.
1135 (locate_v1_virtual_dwo_sections): Renamed from
1136 locate_virtual_dwo_sections and update. All callers updated.
1137 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1138 Delete arg htab. Rename arg section_index to unit_index.
1139 All callers updated.
1140 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1142 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1143 (lookup_dwo_unit_in_dwp): Add V2 support.
1144 (dwarf2_locate_dwo_sections): Update.
1145 (dwarf2_locate_common_dwp_sections): Renamed from
1146 dwarf2_locate_dwp_sections and update. All callers updated.
1147 (dwarf2_locate_v2_dwp_sections): New function.
1148 (open_and_init_dwp_file): Add V2 support.
1149 (read_str_index): New locals str_section, str_offsets_section.
1151 2013-10-04 Pedro Alves <palves@redhat.com>
1153 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1154 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1155 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1156 describing comments with references to ptid.h.
1157 * common/ptid.h: Remove intro description of constructors,
1158 accessors and predicates.
1159 (struct ptid): Reformat.
1160 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1161 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1162 describing comments.
1164 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1166 * aix-thread.c (sync_threadlists): Add missing ')' in call
1169 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1171 * procfs.c (procfs_init_inferior): Fix typo causing the build
1174 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1176 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1178 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1180 * mi/mi-main.c (run_one_inferior): Add function description.
1181 Make ARG a pointer to an integer whose value determines whether
1182 we should "run" or "start" the program.
1183 (mi_cmd_exec_run): Add handling of the "--start" option.
1184 Reject all other command-line options.
1185 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1187 2013-10-04 Yao Qi <yao@codesourcery.com>
1189 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1190 (struct notif_client) <pending_event>: Moved
1191 to struct remote_notif_state.
1193 (struct remote_notif_state) <pending_event>: New field.
1194 (notif_event_xfree): Declare.
1195 * remote-notif.c (handle_notification): Adjust.
1196 (notif_event_xfree): New function.
1197 (do_notif_event_xfree): Call notif_event_xfree.
1198 (remote_notif_state_xfree): Call notif_event_xfree to free
1199 each element in field pending_event.
1200 * remote.c (discard_pending_stop_replies): Remove declaration.
1201 (discard_pending_stop_replies_in_queue): Declare.
1202 (remote_close): Call discard_pending_stop_replies_in_queue
1203 instead of discard_pending_stop_replies.
1204 (remote_start_remote): Adjust.
1205 (stop_reply_xfree): Call notif_event_xfree.
1206 (notif_client_stop): Adjust initialization.
1207 (remote_notif_remove_all): Rename it to ...
1208 (remove_stop_reply_for_inferior): ... this. Update comments.
1209 Don't check INF is NULL.
1210 (discard_pending_stop_replies): Return early if notif_state is
1211 NULL. Adjust. Don't check INF is NULL.
1212 (remote_notif_get_pending_events): Adjust.
1213 (discard_pending_stop_replies_in_queue): New function.
1214 (remote_wait_ns): Likewise.
1216 2013-10-04 Yao Qi <yao@codesourcery.com>
1218 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1219 (notif_queue): Remove.
1220 (remote_notif_process): Add one parameter 'notif_queue'.
1221 Update comments. Callers update.
1222 (remote_async_get_pending_events_token): Remove.
1223 (remote_notif_register_async_event_handler): Remove.
1224 (remote_notif_unregister_async_event_handler): Remove.
1225 (handle_notification): Add parameter 'notif_queue'. Update
1226 comments. Callers update.
1227 (notif_xfree): Remove.
1228 (remote_notif_state_allocate): New function.
1229 (remote_notif_state_xfree): New function.
1230 (_initialize_notif): Remove code to allocate queue.
1231 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1232 (struct remote_notif_state): New.
1233 (handle_notification): Update declaration.
1234 (remote_notif_process): Likewise.
1235 (remote_notif_register_async_event_handler): Remove.
1236 (remote_notif_unregister_async_event_handler): Remove.
1237 (remote_notif_state_allocate): Declare.
1238 (remote_notif_state_xfree): Declare.
1239 * remote.c (struct remote_state) <notif_state>: New field.
1240 (remote_close): Don't call
1241 remote_notif_unregister_async_event_handler. Call
1242 remote_notif_state_xfree.
1243 (remote_open_1): Don't call
1244 remote_notif_register_async_event_handler. Call
1245 remote_notif_state_allocate.
1247 2013-10-04 Yao Qi <yao@codesourcery.com>
1249 * varobj.c (create_child_with_value): Remove 'const' from the
1250 type of parameter 'name'.
1251 (varobj_add_child): Likewise.
1252 (install_dynamic_child): Remove 'const' from the type of
1254 (varobj_add_child): Likewise.
1255 (create_child_with_value): Likewise. Update comments. Don't
1257 (update_dynamic_varobj_children): Duplicate 'name'
1258 and pass it to install_dynamic_child.
1260 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1262 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1263 conversion logic to occur after PyLong_Check. Comment on order
1264 change significance.
1265 * python/py-arch.c (archpy_disassemble): Comment on order of
1266 conversion for integers and longs.
1268 2013-10-03 Pedro Alves <palves@redhat.com>
1270 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1271 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1272 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1273 PTRACE_O_TRACEFORK is not supported.
1274 (linux_test_for_tracesysgood): New function.
1275 (linux_test_for_tracefork): New function, factored out from
1276 linux_check_ptrace_features, and also don't kill child_pid here.
1278 2013-10-03 Tristan Gingold <gingold@adacore.com>
1280 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1281 Remove verbose error reporting. Use detected state to
1282 thread_set_state call.
1283 (i386_darwin_dr_get): Fix return type. Remove verbose error
1285 Remove trailing spaces.
1287 2013-10-02 Pedro Alves <palves@redhat.com>
1289 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1290 val_print_optimized_out.
1291 * jv-valprint.c (java_print_value_fields): Likewise.
1292 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1293 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1294 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1295 new optimized out value.
1296 * findvar.c (address_from_register): Likewise.
1297 * frame.c (put_frame_register): Tweak error string to say the
1298 register was not saved, rather than optimized out.
1299 * infcmd.c (default_print_one_register_info): Adjust call to
1300 val_print_optimized_out. Use value_of_register instead of
1301 get_frame_register_value.
1302 * mi/mi-main.c (output_register): Use value_of_register instead of
1303 get_frame_register_value.
1304 * valprint.c (valprint_check_validity): Likewise.
1305 (val_print_optimized_out): New value parameter. If the value is
1306 lval_register, print <not saved> instead.
1307 (value_check_printable, val_print_scalar_formatted): Adjust calls
1308 to val_print_optimized_out.
1309 * valprint.h (val_print_optimized_out): New value parameter.
1310 * value.c (struct value) <optimized_out>: Extend comment.
1311 (error_value_optimized_out): New function.
1312 (require_not_optimized_out): Use it. Use a different string for
1313 lval_register values.
1314 * value.h (error_value_optimized_out): New declaration.
1315 * NEWS: Mention <not saved>.
1317 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1319 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1320 strcmp to compare two symtab filenames.
1322 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1324 * symtab.c (search_symbols_equal): Delete.
1325 (sort_search_symbols_remove_dups): Replace call to
1326 search_symbols_equal by call to compare_search_syms,
1327 adjusting as necessary.
1329 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1332 * python/python.c: Document gdb.execute command in Python help.
1334 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1336 * python/py-frame.c (frame_info_to_frame_object): Use
1337 gdbpy_convert_exception. Clean up Python object on failure.
1339 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1341 * python/lib/gdb/command/frame_filters.py
1342 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1343 (ShowFrameFilterPriority.invoke): Ditto.
1345 2013-10-01 Keith Seitz <keiths@redhat.com>
1347 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1348 (parse_linespec): Make 'argptr' const.
1349 Remove temporary cast of 'argptr' to const char **.
1350 (decode_line_full): Pass const pointer to parse_linespec.
1351 (decode_line_1): Likewise.
1352 (decode_objc): Make local variable 'new_argptr' const.
1353 (find_function_symbols): Remove temporary cast to char *
1355 * objc-lang.c (find_imps): Make argument 'method' const.
1357 * objc-lang.h (find_imps): Likewise.
1359 2013-10-01 Keith Seitz <keiths@redhat.com>
1361 * completer.c (skip_quoted_chars): Make all arguments const.
1363 (skip_quoted): Likewise.
1364 * completer.h (skip_quoted_chars): Likewise.
1365 (skip_quoted): Likewise.
1366 * defs.h (skip_quoted): Remove duplicate declaration.
1367 * jv-exp.y: Include completer.h.
1368 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1369 * p-exp.y: Include completer.h.
1371 2013-10-01 Keith Seitz <keiths@redhat.com>
1373 * c-exp.y (parse_number): Make first argument const.
1374 Make a copy of the input to manipulate.
1375 (c_parse_escape): Make first argument const.
1376 Make local variable 'tokptr' const.
1377 (parse_string_or_char): Make first two arguments const.
1378 (macro_original_text): Make const.
1379 (lex_one_token): Make local variable 'tokstart' const.
1380 Likewise for local variables named 'p'.
1381 Cast away const for struct stoken (temporary).
1382 * c-lang.h (c_parse_escpae): Make first argument const.
1383 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1385 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1387 * f-exp.y (parse_number): Make first argument const.
1388 (match_string_literal): Make local variable 'tokstart'
1390 (yylex): Make local variable 'p' const.
1391 Cast away const for struct stoken (temporary).
1392 * go-exp.y (parse_number): Make first argument const.
1393 (parse_string_or_char): Likewise.
1394 Make local variable 'tokstart' const.
1395 (lex_one_token): Likewise for numerous locals called 'p'.
1396 Cast away const for struct stoken (temporary).
1397 * jv-exp.y (parse_number): Make first argument const.
1398 Make local variables 'tokstart' and 'tokptr' const.
1399 Cast away const for call to skip_quoted (temporary).
1400 (yylex): Make local variable 'p' const.
1401 Cast away const for struct stoken (temporary).
1402 * m2-exp.y (parse_number): Make local variable 'p' const.
1403 (yylex): Likewise for 'tokstart'.
1404 Cast away const for struct stoken (temporary).
1405 Make local variable 'p' const.
1406 * macroexp.c (get_character_constant): Pass a const string
1408 (get_string_literal): Likewise.
1409 (macro_expand_next): Make first argument const.
1410 Cast away const for init_shared_buffer.
1411 * macroexp.h (macro_expand_next): Make first argument const.
1412 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1413 Pass a const string to c_parse_escape.
1414 Make local variables 'p' and 'namestart' const.
1415 * parse.c (lexptr): Make const.
1416 (prev_lexptr): Likewise.
1417 (find_template_name_end): Return const.
1418 Make argument const, too.
1419 (parse_exp_in_context): Make first argument const.
1420 Remove the entire const_hack.
1421 (parse_exp_in_context_1): Make first argument const.
1422 * parser-defs.h (find_template_name_end): Return const.
1423 Make argument const, too.
1424 (lexptr): Make const.
1425 (prev_lexptr): Likewise.
1426 * utils.c (parse_escape): Make second argument const.
1427 * utils.h (parse_escape): Likewise.
1429 2013-10-01 Keith Seitz <keiths@redhat.com>
1431 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1433 (block_lookup): Make 'raw_name' and 'name' const.
1434 * ada-lex.l (processString): Update for struct stoken.ptr.
1435 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1436 (operator_stoken): Likewise.
1437 (lex_one_token): Remove temporary cast to char * for
1439 * f-exp.y (yylex): Likewise.
1440 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1441 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1442 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1444 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1445 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1446 * linespec.c (struct ls_parser): Make 'stream' const.
1447 (find_parameter_list_end): Make argument 'input' and local
1449 (linespec_lexer_lex_string): Make local variables 'start' and
1451 Use skip_spaces_const instead of skip_spaces.
1452 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1454 (parse_linespec): Temporarily cast 'argptr' to const for
1455 'parser->lexer.stream'.
1456 * m2-exp.y (yylex): Remove temporary cast to char * for
1458 * objc-lang.c (add_msglist): Make local variable 'p' const.
1459 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1460 (exp : STRING): Make 'sp' const.
1461 (parse_number): Make argument 'p' const.
1462 * parser-defs.h (struct stoken): Make 'ptr' const.
1464 2013-10-01 Doug Evans <dje@google.com>
1466 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1468 2013-10-01 Yao Qi <yao@codesourcery.com>
1470 * varobj.c (c_value_of_root): Remove declaration.
1471 (cplus_value_of_root, java_value_of_root): Likewise.
1472 (ada_value_of_root): Likewise.
1473 (struct language_specific) <value_of_root>: Remove.
1474 (languages): Update initialization.
1475 (check_scope): Move earlier.
1476 (c_value_of_root): Move earlier and rename to ...
1477 (value_of_root_1): ... this.
1478 (value_of_root): Caller update.
1479 (cplus_value_of_root, java_value_of_root): Remove.
1480 (ada_value_of_root): Remove.
1482 2013-10-01 Yao Qi <yao@codesourcery.com>
1484 * varobj.c (varobj_format_string): Remove "unknown".
1485 (languages): Remove the first element.
1486 * varobj.h (enum varobj_languages): Remove vlang_c.
1488 2013-10-01 Yao Qi <yao@codesourcery.com>
1490 * varobj.c (struct language_specific) <language>: Remove.
1491 (languages): Update the initialization.
1493 2013-10-01 Yao Qi <yao@codesourcery.com>
1495 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1496 "solib-target.h". Include "windows-tdep.h".
1497 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1498 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1499 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1500 windows-tdep.o to gdb_target_obs.
1502 2013-10-01 Yao Qi <yao@codesourcery.com>
1504 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1506 (amd64_windows_init_abi): Don't call set_solib_ops and
1507 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1508 windows_init_abi instead.
1509 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1511 (i386_cygwin_init_abi): Don't call set_solib_ops,
1512 set_gdbarch_has_dos_based_file_system and
1513 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1514 windows_init_abi instead.
1515 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1516 (windows_init_abi): New function.
1517 (windows_iterate_over_objfiles_in_search_order): Make it
1519 * windows-tdep.h (windows_init_abi): Declare.
1520 (windows_iterate_over_objfiles_in_search_order): Remove
1523 2013-10-01 Jerome Guitton <guitton@adacore.com>
1525 Checked in by Joel Brobecker <brobecker@adacore.com>
1526 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1527 incomplete dictionnary instead of None in case of missing
1528 environment variables.
1529 (elinos_init): in case of an incomplete environment, best
1530 effort to load system libraries instead of abort.
1532 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1534 * ada-lang.c (ada_has_this_exception_support): Ignore
1535 mst_solib_trampoline minimal symbols.
1537 2013-09-30 Tristan Gingold <gingold@adacore.com>
1539 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1540 hardware watchpoint.
1541 (i386_darwin_dr_set): Support 32 and 64 bit states.
1542 (i386_darwin_dr_get): Likewise.
1543 (i386_darwin_dr_set_control): Make static.
1544 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1545 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1547 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1549 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1550 Replace TIDGET with ptid_get_lwp.
1551 Replace GET_LWP with ptid_get_lwp.
1552 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1553 Replace BUILD_THREAD with ptid_build.
1554 Replace BUILD_LWP with ptid_build.
1555 Replace PIDGET with ptid_get_pid.
1556 Replace TIDGET with ptid_get_lwp.
1557 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1558 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1559 Replace TIDGET with ptid_get_lwp.
1560 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1561 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1562 Replace TIDGET with ptid_get_lwp.
1563 Replace GET_LWP with ptid_get_lwp.
1564 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1566 * breakpoint.c: Likewise.
1567 * common/ptid.c (ptid_is_pid): Condense check for
1568 null_ptid and minus_one_ptid.
1569 (ptid_lwp_p): New function.
1570 (ptid_tid_p): New function.
1571 * common/ptid.h: Update comments for accessors.
1572 (ptid_lwp_p): New prototype.
1573 (ptid_tid_p): New prototype.
1574 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1575 * gcore.c: Replace PIDGET with ptid_get_pid.
1576 * gdbthread.h: Likewise.
1577 * gnu-nat.c: Likewise.
1578 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1579 Replace TIDGET with ptid_get_lwp.
1580 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1581 * hppanbsd-nat.c: Likewise.
1582 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1583 Replace TIDGET with ptid_get_lwp.
1584 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1585 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1586 * infcmd.c: Likewise.
1587 * inferior.h: Likewise.
1588 * inflow.c: Likewise.
1589 * infrun.c: Likewise.
1590 * linux-fork.c: Likewise.
1591 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1592 Replace GET_PID with ptid_get_pid.
1593 Replace is_lwp with ptid_lwp_p.
1594 Replace GET_LWP with ptid_get_lwp.
1595 Replace BUILD_LWP with ptid_build.
1597 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1599 * common/linux-btrace.c: Move sys/syscall.h out of the
1600 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1601 Also check for SYS_perf_event_open before attempting to buid.
1603 2013-09-27 Doug Evans <dje@google.com>
1605 * dwarf2read.c (dwarf2_section_info): Add comment.
1606 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1608 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1609 (dwarf2_read_section): Delete unused local "header". Add section
1610 name to error message.
1611 (create_dwo_in_dwp): Tweak comment.
1612 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1614 * dwarf2read.c (die_reader_specs): Tweak comment.
1615 (get_section_bfd_owner, get_section_bfd_section): New functions.
1616 (get_section_name, get_section_file_name): New functions.
1617 (get_section_id, get_section_flags): New functions.
1618 (*): Use new functions to access section fields.
1620 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1621 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1622 arg "htab". All callers updated.
1623 (create_debug_types_hash_table): Remove redundant copy of
1625 (create_dwo_in_dwp): Tweak comments.
1626 (read_str_index): Tweak comment. Record dwarf form name in static
1629 2013-09-27 Pedro Alves <palves@redhat.com>
1631 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1632 (remote_filename_p): Add comment.
1633 * remote.c (remote_filename_p): Adjust to use
1634 REMOTE_SYSROOT_PREFIX.
1635 * solib.c (solib_find): When deciding whether we need to add a
1636 directory separator, check whether the sysroot is "remote:"
1637 instead of checking whether the patch has a drive spec. Add
1640 2013-09-27 Pedro Alves <palves@redhat.com>
1642 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1644 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1647 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1649 Fix set debug frame output.
1650 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1651 SENTINEL_FRAME entry lower to match enum frame_type order.
1653 2013-09-26 Pierre Muller <muller@sourceware.org>
1655 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1656 AMD64_R15_REGNUM when a register index is expected.
1657 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1658 Substitute in array.
1659 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1660 (amd64_push_arguments): Substitute in integer_regnum array.
1662 2013-09-25 Doug Evans <dje@google.com>
1664 * objfiles.c (allocate_objfile): Move comment to better place.
1666 New option "set debug symfile on".
1667 * NEWS: Mention "set debug symfile".
1668 * Makefile.in (SFILES): Add symfile-debug.c.
1669 (COMMON_OBS): Add symfile-debug.o.
1670 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1671 objfile's symbol functions.
1672 * objfiles.h (objfile_set_sym_fns): Declare.
1673 * symfile-debug.c: New file.
1674 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1675 objfile's symbol functions.
1676 (reread_symbols): Ditto.
1678 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1680 (add_symtab_fns): Update prototype.
1681 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1682 (registered_sym_fns): ... this.
1683 (symtab_fns): Update.
1684 (add_symtab_fns): New arg "flavour". All callers updated.
1685 (find_sym_fns): Rewrite to use new sym_fns registry.
1687 * symfile.h (struct sym_fns): Add "objfile" argument to
1688 sym_read_linetable. All uses updated.
1690 * symtab.c (domain_name, search_domain_name): New functions.
1691 * symtab.h (domain_name, search_domain_name): Declare.
1693 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1694 map_matching_symbols so objfile is first. All uses updated.
1695 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1696 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1698 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1701 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1704 2013-09-24 Doug Evans <dje@google.com>
1706 * objfiles.c (free_objfile): Move comment.
1708 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1710 * ada-exp.y (string_to_operator): Delete.
1711 (dummy_string_to_ada_operator): Delete.
1713 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1716 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1718 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1719 call_dummy_integer_regs, and classify.
1720 * amd64-tdep.h (amd64_classify): Add declaration.
1721 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1722 (amd64_reg_class): Delete, moved to i386-tdep.h.
1723 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1724 Replace call to amd64_classify by call to tdep->classify.
1725 (amd64_push_arguments): Get the list of registers to use for
1726 passing integer parameters from the gdbarch tdep structure,
1727 rather than using a hardcoded one. Replace calls to amd64_classify
1728 by calls to tdep->classify.
1729 (amd64_push_dummy_call): Get the register number used for
1730 the "hidden" argument from tdep->call_dummy_integer_regs.
1731 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1732 and tdep->call_dummy_integer_regs. Set tdep->classify.
1734 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1737 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1738 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1739 where tdep->memory_args_by_pointer is non-zero.
1741 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1744 * i386-tdep.h (struct gdbarch_tdep): Add new field
1745 integer_param_regs_saved_in_caller_frame.
1746 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1747 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1749 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1751 * amd64-windows-tdep.c: #include "value.h"
1752 (amd64_windows_classify): Delete.
1753 (amd64_windows_passed_by_integer_register)
1754 (amd64_windows_passed_by_xmm_register)
1755 (amd64_windows_passed_by_pointer)
1756 (amd64_windows_adjust_args_passed_by_pointer)
1757 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1758 (amd64_windows_push_dummy_call): New functions.
1759 (amd64_windows_init_abi): Remove setting of
1760 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1761 tdep->classify, tdep->memory_args_by_pointer and
1762 tdep->integer_param_regs_saved_in_caller_frame.
1763 Add call to set_gdbarch_push_dummy_call.
1765 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1767 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1768 objfile->original_name.
1770 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1772 Pass down original filename for objfile.
1773 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1774 * elfread.c (elf_symfile_read): Likewise.
1775 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1776 longer set ORIGINAL_NAME.
1777 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1778 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1779 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1780 symbol_file_add_from_bfd call.
1781 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1782 (macho_check_dsym): Add parameter filenamep. Change function comment.
1784 (macho_symfile_read): New variable dsym_filename. Update
1785 macho_check_dsym call. Use it for symbol_file_add_separate.
1786 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1787 it. Use it for objfile->original_name.
1788 (objfile_name): Return OBFD's filename, if available.
1789 * objfiles.h (allocate_objfile): Add new parameter name.
1790 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1791 * symfile-mem.c (symbol_file_add_from_memory): Update
1792 symbol_file_add_from_bfd call.
1793 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1795 (symbol_file_add_with_addrs): New parameter name, add function comment
1796 for it. Remove variable name. Update allocate_objfile call.
1797 (symbol_file_add_separate): New parameter name, add function comment
1798 for it. Update symbol_file_add_with_addrs call.
1799 (symbol_file_add_from_bfd): New parameter name. Update
1800 symbol_file_add_with_addrs call.
1801 (symbol_file_add): Update symbol_file_add_from_bfd call.
1802 (reread_symbols): New variable original_name. Save
1803 objfile->original_name by it.
1804 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1807 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1809 Code cleanup: Add objfile_name accessor function.
1810 * ada-lang.c (is_known_support_routine): Use objfile_name.
1811 * auto-load.c (source_gdb_script_for_objfile)
1812 (auto_load_objfile_script): Likewise.
1813 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1814 * dbxread.c (dbx_symfile_read): Likewise.
1815 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1816 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1817 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1818 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1819 (lookup_dwp_signatured_type, lookup_dwo_unit)
1820 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1821 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1822 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1823 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1824 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1825 (read_subrange_type, load_partial_dies, read_partial_die)
1826 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1827 (die_containing_type, build_error_marker_type, lookup_die_type)
1828 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1829 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1830 (get_DW_AT_signature_type, write_psymtabs_to_index)
1831 (save_gdb_index_command): Likewise.
1832 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1834 * expprint.c (dump_subexp_body_standard): Likewise.
1835 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1836 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1838 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1839 obj_name, use objfile_name for it, use the variable.
1840 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1842 * machoread.c (macho_symtab_read, macho_check_dsym)
1843 (macho_symfile_relocate): Likewise.
1844 * maint.c (maintenance_translate_address): Likewise.
1845 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1846 * minsyms.c (install_minimal_symbols): Likewise.
1847 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1849 (filter_overlapping_sections): Use objfile_name.
1850 (objfile_name): New function.
1851 * objfiles.h (struct objfile): Rename field name to original_name.
1852 (objfile_name): New prototype.
1853 * printcmd.c (sym_info, address_info): Use objfile_name.
1854 * probe.c (parse_probes, collect_probes, compare_probes)
1855 (info_probes_for_ops): Likewise.
1856 * progspace.c (clone_program_space): Likewise.
1857 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1858 (maintenance_info_psymtabs): Likewise.
1859 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1860 (source_section_scripts): Likewise.
1861 * python/py-objfile.c (objfpy_get_filename): Likewise.
1862 * python/py-progspace.c (pspy_get_filename): Likewise.
1863 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1864 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1865 * solib.c (solib_read_symbols): Likewise.
1866 * stabsread.c (scan_file_globals): Likewise.
1867 * stap-probe.c (handle_stap_probe): Likewise.
1868 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1869 (find_separate_debug_file_by_debuglink): Likewise.
1870 (reread_symbols): Likewise. Use the objfile field name renamed to
1872 (allocate_symtab): Use objfile_name.
1873 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1874 (dump_objfile, dump_msymbols, dump_symtab_1)
1875 (maintenance_print_msymbols, maintenance_print_objfiles)
1876 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1877 * target.c (target_translate_tls_address, target_info): Likewise.
1878 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1881 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1884 * probe.c (parse_probes): Rename variable objfile_name to
1887 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Remove solib-sunos.c.
1890 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1891 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1892 * objfiles.c (rt_common_objfile): Remove.
1893 (free_objfile): Remove rt_common_objfile comparison.
1894 * objfiles.h (rt_common_objfile): Remove.
1895 * solib-sunos.c: Remove.
1896 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1898 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 Remove a.out NetBSD and OpenBSD hosts.
1901 * NEWS (Removed native configurations): New.
1902 * config/arm/nbsdaout.mh: Remove.
1903 * config/i386/nbsdaout.mh: Remove.
1904 * config/i386/obsdaout.mh: Remove.
1905 * config/m68k/nbsdaout.mh: Remove.
1906 * config/sparc/nbsdaout.mh: Remove.
1907 * config/vax/nbsdaout.mh: Remove.
1908 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1909 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1910 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1912 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1913 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1914 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1916 2013-09-23 Tom Tromey <tromey@redhat.com>
1918 * linespec.c (struct minsym_and_objfile): Remove.
1919 (minsym_and_objfile_d): Remove.
1920 (struct linespec, struct collect_info, linespec_parse_basic)
1921 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1922 (compare_msymbols, find_method, find_function_symbols)
1923 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1924 (add_minsym, search_minsyms_for_name): Update.
1926 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1928 * regcache.c: Add include of valprint.h.
1929 (dump_endian_bytes): Delete.
1930 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1932 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1934 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1936 2013-09-19 Pedro Alves <palves@redhat.com>
1938 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1941 2013-09-19 Pedro Alves <palves@redhat.com>
1942 Thomas Schwinge <thomas@codesourcery.com>
1943 Yue Lu <hacklu.newborn@gmail.com>
1945 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1946 Take a gdb_byte pointer instead of a char pointer.
1948 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1949 gnu_xfer_partial helper.
1950 (gnu_xfer_partial): New function.
1951 (gnu_target): Don't install a deprecated_xfer_memory hook.
1952 Install a to_xfer_partial hook.
1954 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 * main.c (captured_main): Replace catch_command_errors by
1958 catch_command_errors_const. Twice.
1959 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1960 (symbol_file_add): Make name parameter const.
1961 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1962 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1963 variable name. Change their usage accordingly.
1964 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1966 (symbol_file_add_main): Make args parameter const.
1968 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1969 Ulrich Weigand <uweigand@de.ibm.com>
1971 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1973 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1975 2013-09-18 Pedro Alves <palves@redhat.com>
1976 Yue Lu <hacklu.newborn@gmail.com>
1978 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1979 (gnu_create_inferior)
1980 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1981 (set_sig_thread_cmd): Use the lwpid field of ptids to
1982 store/extract thread ids instead of the tid field.
1983 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1985 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1987 * infcmd.c (default_print_one_register_info): Add detection of
1988 optimized out values.
1989 (default_print_registers_info): Switch to using
1990 get_frame_register_value.
1992 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1994 * infrun.c (handle_inferior_event): Check if we know the
1995 function start address before setting a resume breakpoint.
1997 2013-09-18 Pedro Alves <palves@redhat.com>
1999 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2000 minus_one_ptid instead of looking at the ptid's tid field and
2001 comparing that to -1.
2003 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2005 * main.h (get_gdb_program_name): Remove extra whitespace.
2007 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2009 * main.h (get_gdb_program_name): Add declaration.
2010 * main.c (get_gdb_program_name): Add definition.
2012 2013-09-17 Doug Evans <dje@google.com>
2014 * dwarf2read.c: Move definitions of complaint functions to after
2015 forward declarations of local functions.
2017 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2018 Pedro Alves <palves@redhat.com>
2021 * breakpoint.c (remove_threaded_breakpoints): New function.
2022 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2023 as thread_exit observer.
2025 2013-09-17 Pedro Alves <palves@redhat.com>
2028 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2029 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2030 * corelow.c (core_open):
2031 * frame.h (print_stack_frame, print_frame_info): New
2032 'set_current_sal' parameter.
2033 * infcmd.c (finish_command, kill_command): Adjust call to
2035 * inferior.c (inferior_command): Likewise.
2036 * infrun.c (normal_stop): Likewise.
2037 * linux-fork.c (linux_fork_context): Likewise.
2038 * record-full.c (record_full_goto_entry, record_full_restore):
2040 * remote-mips.c (common_open): Likewise.
2041 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2043 (print_frame_info): New 'set_current_sal' parameter. Set the last
2044 displayed sal depending on the new paremeter instead of looking at
2046 (backtrace_command_1, select_and_print_frame, frame_command)
2047 (current_frame_command, up_command, down_command): Adjust call to
2049 * thread.c (print_thread_info, restore_selected_frame)
2050 (do_captured_thread_select): Adjust call to print_stack_frame.
2051 * tracepoint.c (tfind_1): Likewise.
2052 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2053 (mi_cmd_stack_info_frame): Likewise.
2054 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2055 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2057 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2059 * value.c (isvoid_internal_fn): Replace "parameter" with
2062 2013-09-16 Stan Shebs <stan@codesourcery.com>
2064 * README: Update references to writing code for GDB.
2065 * configure.ac (build_warnings): Remove obsolete comment.
2066 * configure: Regenerate.
2067 * gdbarch.sh: Remove references to gdbint.texinfo.
2068 * gdbarch.h: Regenerate.
2069 * gdbtypes.c (objfile_type): Remove comments referencing internals
2072 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2074 * NEWS: Mention new convenience function $_isvoid.
2075 * value.c (isvoid_internal_fn): New function.
2076 (_initialize_values): Add new convenience function $_isvoid.
2078 2013-09-16 Pierre Muller <muller@sourceware.org>
2080 * arm-linux-tdep.c: Add "elf/common.h" header.
2081 Remove AT_HWCAP macro definintion as it is provided in
2083 * s390-tdep.c: Remove system header <elf.h>
2084 Add "elf/common.h" header for AT_HWCAP definition.
2085 (s390_core_read_description): Use correct CORE_ADDR
2086 for hwcap local variable used as third parameter
2087 of function target_auxv_search.
2089 2013-09-14 Pierre Muller <muller@sourceware.org>
2090 Tom Tromey <tromey@redhat.com>
2091 Pedro Alves <palves@redhat.com>
2093 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2094 mode if operating system doesn't know O_CLOEXEC.
2096 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2102 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104 * NEWS: Mention TDB support.
2105 * features/s390-tdb.xml: New file.
2106 * features/s390-te-linux64.xml: New file.
2107 * features/s390x-te-linux64.xml: New file.
2108 * features/Makefile (WHICH): Add new tdescs above.
2109 (s390-te-linux64-expedite): Set.
2110 (s390x-te-linux64-expedite): Set.
2111 * features/s390-te-linux64.c: New file (generated).
2112 * features/s390x-te-linux64.c: New file (generated).
2113 * regformats/s390-te-linux64.dat: New file (generated).
2114 * regformats/s390x-te-linux64.dat: New file (generated).
2115 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2116 (HWCAP_S390_TE): Likewise.
2117 (S390_TDB_DWORD0_REGNUM): Likewise.
2118 (S390_TDB_DWORD0_REGNUM): Likewise.
2119 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2120 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2121 (S390_TDB_ATIA_REGNUM): Likewise.
2122 (S390_TDB_R0_REGNUM): Likewise.
2123 (S390_TDB_R1_REGNUM): Likewise.
2124 (S390_TDB_R2_REGNUM): Likewise.
2125 (S390_TDB_R3_REGNUM): Likewise.
2126 (S390_TDB_R4_REGNUM): Likewise.
2127 (S390_TDB_R5_REGNUM): Likewise.
2128 (S390_TDB_R6_REGNUM): Likewise.
2129 (S390_TDB_R7_REGNUM): Likewise.
2130 (S390_TDB_R8_REGNUM): Likewise.
2131 (S390_TDB_R9_REGNUM): Likewise.
2132 (S390_TDB_R10_REGNUM): Likewise.
2133 (S390_TDB_R11_REGNUM): Likewise.
2134 (S390_TDB_R12_REGNUM): Likewise.
2135 (S390_TDB_R13_REGNUM): Likewise.
2136 (S390_TDB_R14_REGNUM): Likewise.
2137 (S390_TDB_R15_REGNUM): Likewise.
2138 (S390_NUM_REGS): Increase.
2139 (S390_IS_TDBREGSET_REGNUM): New macro.
2140 (s390_regmap_tdb): Declare.
2141 (s390_sizeof_tdbregset): Define.
2142 (tdesc_s390_te_linux64): Declare.
2143 (tdesc_s390x_te_linux64): Likewise.
2144 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2145 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2146 (s390_regmap_tdb): New regmap.
2147 (s390_supply_tdb_regset): New function.
2148 (s390_tdb_regset): New regset.
2149 (s390_linux64v2_regset_sections): Add TDB regset to list.
2150 (s390x_linux64v2_regset_sections): Likewise.
2151 (s390_regset_from_core_section): Recognize TDB core note section.
2152 (s390_core_read_description): If HWCAP indicates TE support,
2153 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2154 (s390_gdbarch_init): Handle TDB regset.
2155 (_initialize_s390_tdep): Initialize new tdescs.
2156 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2157 (have_regset_tdb): New variable.
2158 (s390_native_supply): Support register invalidation.
2159 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2160 (check_regset): Treat ENODATA as "regset exists".
2161 (s390_linux_fetch_inferior_registers): Add TDB.
2162 (s390_read_description): Check for TDB existence and select
2164 * gdbserver/Makefile.in (clean): Add removal of new makefile
2166 (s390-te-linux64.c): New makefile target.
2167 (s390x-te-linux64.c): Likewise.
2168 * gdbserver/configure.srv (srv_regobj): Append new objects
2169 s390-te-linux64.o and s390x-te-linux64.o.
2170 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2171 s390x-te-linux64.xml, and s390-tdb.xml.
2172 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2174 (tdesc_s390_te_linux64): Likewise.
2175 (init_registers_s390x_te_linux64): Likewise.
2176 (tdesc_s390x_te_linux64): Likewise.
2177 (s390_check_regset): Treat ENODATA as "regset exists".
2178 (s390_arch_setup): Add TDB regset support.
2179 (initialize_low_arch): Initialize registers for new tdescs.
2181 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2183 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2184 (S390_IS_FPREGSET_REGNUM): New macro.
2185 * s390-tdep.c (s390_dwarf_regmap): Make const.
2186 (regnum_is_gpr_full): New function for replacing repeated code.
2187 (s390_pseudo_register_name): Use it.
2188 (s390_pseudo_register_type): Likewise.
2189 (s390_pseudo_register_read): Likewise.
2190 (s390_pseudo_register_write): Likewise.
2191 (s390_unwind_pseudo_register): Likewise.
2192 (s390_regmap_gregset): New format for regmap.
2193 (s390x_regmap_gregset): Likewise.
2194 (s390_regmap_fpregset): Likewise.
2195 (s390_regmap_upper): Likewise.
2196 (s390_regmap_last_break): Likewise.
2197 (s390_regmap_system_call): Likewise.
2198 (s390_supply_regset): Adjust to new regmap format.
2199 (s390_collect_regset): Likewise.
2200 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2201 (s390_native_collect): Likewise.
2202 (supply_gregset): Likewise.
2203 (fill_gregset): Likewise.
2204 (supply_fpregset): Likewise.
2205 (fill_fpregset): Likewise.
2206 (fetch_regset): Likewise.
2207 (store_regset): Likewise.
2208 (s390_linux_fetch_inferior_registers): Likewise.
2209 (s390_linux_fetch_inferior_registers): Likewise.
2211 2013-09-12 Andrew Pinski <apinski@cavium.com>
2213 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2215 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2219 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2221 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2223 2013-09-06 Pedro Alves <palves@redhat.com>
2225 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2226 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2227 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2228 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2229 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2232 2013-09-06 Pedro Alves <palves@redhat.com>
2234 * remote-sim.c (dump_mem): Constify buf parameter.
2235 gdbsim_xfer_inferior_memory): Rename to ...
2236 (gdbsim_xfer_memory): ... this. Adjust interface as
2237 target_xfer_partial helper.
2238 (gdbsim_xfer_partial): New function.
2239 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2240 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2242 2013-09-06 Pedro Alves <palves@redhat.com>
2244 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2245 host_address_to_string, and send debug output to gdb_stdlog.
2247 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2249 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2250 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2251 gdb_target_obs for cris target.
2252 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2253 (cris_gdbarch_init): Move calls to
2254 set_gdbarch_fetch_tls_load_module_address and
2255 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2256 Add call to gdbarch_init_osabi.
2257 * cris-linux-tdep.c: New file.
2258 * cris-tdep.h: New file.
2260 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2262 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2263 to deprecated_init_ui_hook.
2265 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2267 * cli/cli-interp.c (_initialize_cli_interp): Add a
2268 command_loop_proc to interp_procs.
2269 * event-top.c (cli_command_loop): Change signature to match
2270 interp_command_loop_ftype.
2271 * event-top.h (cli_command_loop): Same.
2272 * interps.c (interp_new): Require every interpreter to have a
2274 (current_interp_command_loop): Just call the command_loop_proc on
2275 the current interpreter.
2276 * tui/tui-interp.c (_initialize_tui_interp): Add a
2277 command_loop_proc to interp_procs.
2279 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2281 * cris-tdep.c (cris_gdbarch_init): Add call to
2282 get_gdbarch_fetch_tls_load_module_address.
2284 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2286 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2287 (cris_elf_gregset_t): Rename from elf_gregset_t.
2288 (crisv32_elf_gregset_t): Adjust.
2289 (cris_supply_gregset, fetch_core_registers): Adjust.
2291 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2293 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2295 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2297 * defs.h (deprecated_command_loop_hook): Remove, including
2298 references in comments.
2299 * interps.c (current_interp_command_loop): No longer use
2300 deprecated_command_loop_hook.
2301 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2303 * top.c (deprecated_command_loop_hook): Remove.
2305 2013-09-05 Pedro Alves <palves@redhat.com>
2307 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2308 local is now int instead of ULONGEST. Print it with %d
2309 instead of paddress.
2311 2013-09-05 Tristan Gingold <gingold@adacore.com>
2313 * MAINTAINERS: Remove avr maintainership.
2315 2013-09-05 Pedro Alves <palves@redhat.com>
2317 * findvar.c (value_of_register): Rework in terms of
2318 value_of_register_lazy.
2320 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2322 * symfile.c (add_symbol_file_command): Remove trailing
2323 whitespaces and blank line after comment.
2325 2013-09-05 Pedro Alves <palves@redhat.com>
2327 * tui/tui-regs.c (tui_register_format): Don't look at the
2328 register's name here. Return string representing register
2329 value instead of storing it in the data element.
2330 (tui_get_register): Compare register string representations
2331 instead of register value states and contents.
2333 2013-09-05 Pedro Alves <palves@redhat.com>
2336 * tui/tui-regs.c (tui_show_registers): Show registers of the
2337 selected frame, not the current frame.
2339 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2341 * MAINTAINERS (Write After Approval): Add myself to the list.
2343 2013-09-04 Doug Evans <dje@google.com>
2345 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2346 (queue_and_load_dwo_tu): New function.
2347 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2348 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2349 Make dependent_cu optional.
2350 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2351 and an older .gdb_index is in use, queue and load all its TUs too.
2353 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2356 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2357 variable search_flags.
2358 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2359 (OPF_RETURN_REALPATH): ... here.
2360 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2361 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2363 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2365 * solib.c (solib_find): Likewise. Four times.
2366 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2367 in the function comment and for the realpath_fptr variable.
2368 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2369 (find_and_open_source): Likewise. Twice.
2370 * symfile.c (symfile_bfd_open): Likewise, also twice.
2372 2013-09-04 Doug Evans <dje@google.com>
2374 * progspace.c (save_current_space_and_thread): Remove unnecessary
2375 call to save_current_inferior.
2377 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2379 * sh64-tdep.c (sh64_do_register): Return after printing message
2380 about unavailable register contents.
2382 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2383 Pedro Alves <palves@redhat.com>
2385 * symfile.c (add_symbol_file_command): Error out on unknown
2386 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2387 options and collapse into single conditional branch.
2389 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2391 * inf-child.c (inf_child_follow_fork): New parameter
2393 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2394 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2395 * inferior.h (detach_fork): Remove.
2396 * infrun.c (detach_fork): Adjust comment and make it
2398 (follow_fork): Pass detach_fork parameter to
2400 * linux-nat.c (linux_child_follow_fork): New parameter
2402 * target.c (target_follow_fork): New parameter detach_fork.
2403 Pass detach_fork as parameter and print its value.
2404 * target.h (struct target_ops) <to_follow_fork>: New int
2406 (target_follow_fork): New parameter detach_fork.
2408 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2410 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2411 Replace sec->bfd by sec->the_bfd_section->owner.
2413 2013-09-03 Yao Qi <yao@codesourcery.com>
2415 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2416 from linux_has_shared_address_space.
2417 (linux_has_shared_address_space): Call linux_is_uclinux.
2418 * linux-tdep.h (linux_is_uclinux): Declare.
2419 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2422 2013-09-03 Yao Qi <yao@codesourcery.com>
2424 * config/djgpp/fnchange.lst: Remove entry of
2425 i386-interix-nat.c and i386-interix-tdep.c.
2426 * configure.ac: Remove '*-*-interix*'.
2427 * configure: Re-generated.
2428 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2429 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2431 * osabi.c (gdb_osabi_names): Remove "Interix".
2433 2013-09-03 Yao Qi <yao@codesourcery.com>
2435 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2437 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2439 * record.h (record_print_flag) <record_print_src_line,
2440 record_print_insn_range>: Rename into ...
2441 (record_print_flag) <record_print_src_line,
2442 record_print_insn_range>: ... this. Update all users.
2444 2013-09-02 Pierre Muller <muller@sourceware.org>
2446 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2449 2013-09-02 Pierre Muller <muller@sourceware.org>
2451 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2452 by use of plongest function.
2454 2013-09-02 Tristan Gingold <gingold@adacore.com>
2456 * NEWS: Add entry mentioning support for native Windows x64
2459 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2460 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2461 (struct amd64_windows_frame_cache): New struct.
2462 (amd64_windows_w2gdb_regnum): New global.
2463 (pc_in_range, amd64_windows_frame_decode_epilogue)
2464 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2465 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2466 (amd64_windows_frame_this_id): New functions.
2467 (amd64_windows_frame_unwind): New static global.
2468 (amd64_windows_skip_prologue): New function.
2469 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2470 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2471 with amd64_windows_skip_prologue.
2473 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2477 2013-08-30 Pedro Alves <palves@redhat.com>
2479 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2482 2013-08-30 Pedro Alves <palves@redhat.com>
2484 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2487 2013-08-30 Pedro Alves <palves@redhat.com>
2489 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2490 Adjust arguments to print_stack_frame.
2492 2013-08-30 Pedro Alves <palves@redhat.com>
2494 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2496 2013-08-30 Pedro Alves <palves@redhat.com>
2498 * frame.h (show_and_print_stack_frame): Delete declaration.
2500 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2503 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2504 (archpy_name): Check for valid architecture.
2505 (archpy_disassemble): Ditto.
2507 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2509 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2510 instead of "long long" in call to ptrace64.
2512 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2514 * mi/mi-interp.c (mi_command_loop): Change signature to match
2515 interp_command_loop_ftype.
2516 (mi1_command_loop): Remove.
2517 (mi2_command_loop): Remove.
2518 (mi3_command_loop): Remove.
2519 (mi_interpreter_resume): Remove setting of
2520 deprecated_command_loop_hook.
2521 (_initialize_mi_interp): Set mi_command_loop as the command loop
2524 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2526 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2529 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2531 * value.c (allocate_value_contents): Make static.
2532 * value.h (allocate_value_contents): Remove prototype.
2534 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2536 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2537 of assembling value via allocate_value_lazy and attribute setter.
2538 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2539 assembling value via allocate_value_lazy and attribute setter.
2540 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2541 assembling value via allocate_value_lazy and attribute setter.
2543 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2545 * value.c (value_from_contents_and_address): Replace allocate_value and
2546 memcpy with value_from_contents.
2548 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2550 * python/py-framefilter.c (py_print_frame): Remove usage of
2551 PyString_AsString. Use python_string_to_host_string instead.
2552 Refactor function to work with a string as a new allocation
2553 instead of a pointer.
2554 (py_print_frame): Ditto.
2555 * python/lib/gdb/frames.py (return_list): Cain iterators together
2556 instead of adding them as a list.
2557 (_sort_list): Call return_list, and remove duplicate code.
2558 (execute_frame_filters): Convert iterator to a list with list().
2559 * python/lib/gdb/command/frame_filters.py
2560 (SetFrameFilterPriority._set_filter_priority): Convert priority
2561 attribute to an integer.
2562 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2563 wrapper function __next__.
2564 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2567 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2570 * python/py-framefilter.c (apply_frame_filter): Check
2571 gdb_python_initialized. Exit if the Python frame-filter code
2572 cannot be initialized.
2574 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2577 * top.c (print_gdb_version): Remove erroneous newline after help
2580 2013-08-29 Yao Qi <yao@codesourcery.com>
2582 * varobj.c (install_dynamic_child): Remove trailing space.
2583 Add one blank line after variable declaration.
2585 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2588 * corefile.c (get_exec_file): Use exec_filename.
2589 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2590 * exec.c (exec_close): Free EXEC_FILENAME.
2591 (exec_file_attach): New variable canonical_pathname. Use
2592 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2594 * exec.h (exec_filename): New.
2595 * inferior.c (print_inferior, inferior_command): Use
2596 PSPACE_EXEC_FILENAME.
2597 * mi/mi-main.c (print_one_inferior): Likewise.
2598 * progspace.c (clone_program_space, print_program_space): Likewise.
2599 * progspace.h (struct program_space): New field pspace_exec_filename.
2600 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2601 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2603 2013-08-28 Will Newton <will.newton@linaro.org>
2605 * common/linux-ptrace.c: Include stdint.h unconditionally.
2607 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2610 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2612 2013-08-28 Yao Qi <yao@codesourcery.com>
2613 Pedro Alves <palves@redhat.com>
2615 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2616 instead of stdio_fileopen.
2617 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2618 .Call stderr_fileopen instead of stdio_fileopen.
2619 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2620 [__MINGW32__] (stderr_file_fputs): New function.
2621 (stderr_fileopen): New function.
2622 * ui-file.h (stderr_fileopen): Declare.
2624 2013-08-27 Doug Evans <dje@google.com>
2626 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2627 (struct dwarf2_per_cu_data): Ditto.
2628 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2629 (process_imported_unit_die): Ditto.
2630 (follow_die_sig_1): Simplify assert.
2632 2013-08-27 Pedro Alves <palves@redhat.com>
2634 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2635 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2636 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2637 windows_xfer_memory directly.
2638 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2640 2013-08-27 Pedro Alves <palves@redhat.com>
2642 * darwin-nat.c (darwin_xfer_memory): Delete.
2643 (_initialize_darwin_inferior): Don't install a
2644 deprecated_xfer_memory method.
2646 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2647 Yao Qi <yao@codesourcery.com>
2649 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2650 (parse_no_frames_option): Remove.
2651 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2652 (mi_cmd_stack_list_args): Adjust.
2653 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2654 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2655 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2657 (list_args_or_locals): New parameter 'skip_unavailable'.
2659 * valprint.c (scalar_type_p): Rename to ...
2660 (val_print_scalar_type_p): ... this. Make extern.
2661 (val_print, value_check_printable): Adjust.
2662 * valprint.h (val_print_scalar_type_p): Declare.
2663 * value.c (value_entirely_unavailable): New function.
2664 * value.h (value_entirely_unavailable): Declare.
2666 * NEWS: Mention the new option "--skip-unavailable" to MI
2667 commands '-stack-list-locals', '-stack-list-arguments' and
2668 '-stack-list-variables'.
2670 2013-08-27 Yao Qi <yao@codesourcery.com>
2672 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2673 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2675 * mi/mi-getopt.c (mi_getopt): Remove.
2676 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2678 (mi_getopt): Call mi_getopt_1.
2679 (mi_getopt_silent): New.
2680 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2682 2013-08-26 Doug Evans <dje@google.com>
2685 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2686 .gdb_index is in use.
2687 * symfile.c (reread_symbols): Reset objfile->sf.
2689 * NEWS: Document "mt print objfiles" now takes optional regexp.
2690 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2691 regexp of objfiles to print.
2692 (_initialize_symmisc): Update doc string for "mt print objfiles".
2694 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2695 missing debug info checks.
2697 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2698 Ulrich Weigand <uweigand@de.ibm.com>
2700 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2701 line tables generated by XLC compiled binaries.
2703 2013-08-23 Doug Evans <dje@google.com>
2705 * symmisc.c (dump_symtab): Delete prototype.
2706 (dump_msymbols, dump_objfile): Ditto.
2707 (maintenance_info_symtabs): Mark as dont_repeat.
2708 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2710 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2711 debugging printf to better location.
2713 2013-08-23 Pedro Alves <palves@redhat.com>
2715 * target.c (target_read_live_memory): Change type of 'ret' local
2718 2013-08-23 Pedro Alves <palves@redhat.com>
2720 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2721 (remote_read_bytes): Change return type to LONGEST, and adjust to
2722 return a target_xfer_error on error.
2723 (remote_xfer_memory): Delete.
2724 (remote_flash_write): Change type of 'ret' local to LONGEST.
2725 (remote_xfer_partial, remote_xfer_partial): Adjust.
2726 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2728 2013-08-23 Pierre Muller <muller@sourceware.org>
2730 ARI fix: Push # directives to start of line.
2731 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2733 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2736 * breakpoint.c (enable_command, disable_command): Iterate over
2737 all specified breakpoint locations.
2739 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2741 * common/linux-ptrace.c (linux_fork_to_function): Push #
2742 directives to the start of the line.
2743 (linux_check_ptrace_features): Fix warning message to use
2746 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2748 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2749 nat/linux-waitpid.h.
2750 (linux-waitpid.o): New object file rule.
2751 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2752 (current_ptrace_options): Moved from linux-nat.c.
2753 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2755 (linux_fork_to_function): New function.
2756 (linux_grandchild_function): Likewise.
2757 (linux_child_function): Likewise.
2758 (linux_check_ptrace_features): New function, heavily
2759 based on linux-nat.c:linux_test_for_tracefork.
2760 (linux_enable_event_reporting): New function.
2761 (ptrace_supports_feature): Likewise.
2762 (linux_supports_tracefork): Likewise.
2763 (linux_supports_traceclone): Likewise.
2764 (linux_supports_tracevforkdone): Likewise.
2765 (linux_supports_tracesysgood): Likewise.
2766 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2767 gdbserver/linux-low.c.
2768 (linux_enable_event_reporting): New declaration.
2769 (linux_supports_tracefork): Likewise.
2770 (linux_supports_traceclone): Likewise.
2771 (linux_supports_tracevforkdone): Likewise.
2772 (linux_supports_tracesysgood): Likewise.
2773 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2774 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2775 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2776 * config/arm/linux.mh (NATDEPFILES): Likewise.
2777 * config/i386/linux.mh (NATDEPFILES): Likewise.
2778 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2779 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2780 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2781 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2782 * config/mips/linux.mh (NATDEPFILES): Likewise.
2783 * config/pa/linux.mh (NATDEPFILES): Likewise..
2784 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2785 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2786 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2787 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2788 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2789 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2790 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2791 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2792 ptrace's 4th argument's types.
2793 Check the type of PTRACE_TYPE_ARG4.
2794 * configure: Regenerate.
2795 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2796 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2797 (linux_supports_tracefork_flag): Remove.
2798 (linux_supports_tracesysgood_flag): Likewise.
2799 (linux_supports_tracevforkdone_flag): Likewise.
2800 (current_ptrace_options): Moved to
2801 common/linux-ptrace.c.
2802 (linux_tracefork_child): Remove.
2803 (my_waitpid): Remove.
2804 (linux_test_for_tracefork): Renamed to
2805 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2806 (linux_test_for_tracesysgood): Remove.
2807 (linux_supports_tracesysgood): Remove.
2808 (linux_supports_tracefork): Remove.
2809 (linux_supports_tracevforkdone): Remove.
2810 (linux_enable_tracesysgood): Remove.
2811 (linux_enable_event_reporting): Remove.
2812 (linux_init_ptrace): New function.
2813 (linux_child_post_attach): Call linux_init_ptrace.
2814 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2815 (linux_child_follow_fork): Call linux_supports_tracefork
2816 and linux_supports_tracevforkdone.
2817 (linux_child_insert_fork_catchpoint): Call
2818 linux_supports_tracefork.
2819 (linux_child_insert_vfork_catchpoint): Likewise.
2820 (linux_child_set_syscall_catchpoint): Call
2821 linux_supports_tracesysgood.
2822 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2823 * nat/linux-nat.h: New file.
2824 * nat/linux-waitpid.c: New file.
2825 * nat/linux-waitpid.h: New file.
2827 2013-08-22 Samuel Bronson <naesten@gmail.com>
2829 ARM Linux support for `catch syscall'.
2830 * syscalls/arm-linux.py: New file.
2831 * syscalls/arm-linux.xml: Likewise.
2832 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2833 (arm_linux_init_abi): Register the new function and syscall xml file.
2834 * data-directory/Makefile.in: Install the new syscall xml file.
2835 * NEWS: Brag about this.
2837 2013-08-22 Pedro Alves <palves@redhat.com>
2840 * corefile.c (target_xfer_memory_error): New function.
2841 (memory_error): Defer EIO to target_memory_error.
2842 (read_memory): Use target_xfer_partial, and handle finer-grained
2844 * target.c (target_xfer_error_to_string): New function.
2845 (memory_xfer_partial_1): If memory is known to be
2846 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2847 (target_xfer_partial): Make extern.
2848 * target.h (enum target_xfer_error): New enum.
2849 (target_xfer_error_to_string): Declare function.
2850 (target_xfer_partial): Declare function.
2851 (struct target_ops) <xfer_partial>: Adjust describing comment.
2853 2013-08-22 Alan Modra <amodra@gmail.com>
2855 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2856 * configure.tgt: Likewise as targets.
2858 2013-08-20 Doug Evans <dje@google.com>
2860 * buildsym.c (subfile_stack): Move here from buildsym.h.
2861 (pending_macros): Ditto.
2862 (get_macro_table): New function.
2863 (buildsym_init): Initialize subfile_stack.
2864 * coffread.c (type_vector,type_vector_length): Moved here from
2866 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2867 (coff_symtab_read): Use it.
2868 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2869 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2870 with call to get_macro_table.
2871 * stabsread.c (type_vector,type_vector_length): Moved here from
2873 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2874 * buildsym.h (get_macro_table): Declare.
2876 2013-08-20 Tom Tromey <tromey@redhat.com>
2878 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2880 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2882 2013-08-20 Doug Evans <dje@google.com>
2884 * blockframe.c: Remove #include "psymtab.h".
2885 * cp-support.c: Ditto.
2889 2013-08-20 Tom Tromey <tromey@redhat.com>
2892 * exceptions.h (return_mask): Now an enum.
2893 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2896 2013-08-20 Tom Tromey <tromey@redhat.com>
2898 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2900 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2901 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2902 * jit.c (jit_object_close_impl): Update.
2903 * jv-lang.c (get_dynamics_objfile): Update.
2904 * linespec.c (add_minsym): Use get_dynamics_objfile.
2905 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2906 (allocate_objfile): Don't initialize 'gdbarch' field.
2907 (get_objfile_arch): Update.
2908 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2910 (struct objfile) <gdbarch>: ... here. Remove.
2911 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2913 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2915 2013-08-20 Alan Modra <amodra@gmail.com>
2917 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2918 for IBM long double nan and inf.
2919 (floatformat_is_negative, floatformat_classify,
2920 floatformat_mantissa): Similarly.
2921 (floatformat_ieee_single, floatformat_ieee_double,
2922 floatformat_ieee_quad, floatformat_arm_ext,
2923 floatformat_ia64_spill): Delete unused vars.
2924 (_initialize_doublest): Delete unused function.
2925 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2926 little-endian variants of floatformat_ibm_long_double.
2928 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2930 * Makefile.in (SFILES): Remove common/target-common.c and
2931 add target/waitstatus.c.
2932 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2933 target/resume.h, target/wait.h and target/waitstatus.h.
2934 (COMMON_OBS): Remove target-common.o and add
2936 (target-common.o): Remove.
2937 (waitstatus.o): New target object file.
2938 * common/target-common.c: Move contents to
2939 target/waitstatus.c and remove.
2940 * common/target-common.h: Move contents to other files and
2942 (enum resume_kind: Move to target/resume.h.
2943 (TARGET_WNOHANG): Move to target/wait.h.
2944 (enum target_waitkind): Move to target/waitstatus.h.
2945 (struct target_waitstatus): Likewise.
2946 * target.h: Do not include target-common.h and
2947 include target/resume.h, target/wait.h and
2948 target/waitstatus.h.
2949 * target/resume.h: New file.
2950 * target/wait.h: New file.
2951 * target/waitstatus.h: New file.
2952 * target/waitstatus.c: New file.
2954 2013-08-19 Pedro Alves <palves@redhat.com>
2956 * linux-nat.c (linux_test_for_tracefork)
2957 (linux_test_for_tracesysgood, linux_child_follow_fork)
2958 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2959 (linux_nat_wait_1): Extend comment.
2960 (linux_async_pipe): Add comment.
2962 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2964 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2965 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2966 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2967 Update to account for fact that PC is now a pseudo-register.
2968 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2969 cases for RL78_PC_REGNUM.
2971 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2974 * top.c (quit_force): Skip writing history file
2975 if input is not from terminal.
2977 2013-08-14 Tom Tromey <tromey@redhat.com>
2979 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2980 resultthreadlist>: New fields.
2981 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2982 (remote_get_threadlist, remote_threadlist_iterator): Use
2983 new fields. Remove static variables.
2985 2013-08-14 Tom Tromey <tromey@redhat.com>
2987 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2988 remote_watch_data_address>: New fields.
2989 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2990 (process_stop_reply, remote_wait_as)
2991 (remote_check_watch_resources, remote_stopped_data_address): Update.
2993 2013-08-14 Tom Tromey <tromey@redhat.com>
2995 * remote.c (struct remote_state) <async_client_callback,
2996 async_client_context>: New fields.
2997 (async_client_callback, async_client_context): Remove.
2998 (remote_async_serial_handler, remote_async): Update.
3000 2013-08-14 Tom Tromey <tromey@redhat.com>
3002 * remote.c (sizeof_pkt): Remove.
3003 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3005 2013-08-14 Tom Tromey <tromey@redhat.com>
3007 * remote.c (struct remote_state) <use_threadinfo_query,
3008 use_threadextra_query>: New fields.
3009 (remote_threads_info, remote_threads_extra_info)
3010 (remote_open_1): Update.
3012 2013-08-14 Tom Tromey <tromey@redhat.com>
3014 * remote.c (struct remote_state) <finished_object,
3015 finished_annex, finished_offset>: New fields.
3016 (remote_read_qxfer): Use remote_state fields; remove static
3019 2013-08-14 Tom Tromey <tromey@redhat.com>
3021 * remote.c (struct remote_state) <last_sent_step>:
3023 (last_sent_step): Remove.
3024 (remote_resume, remote_wait_as): Update.
3026 2013-08-14 Tom Tromey <tromey@redhat.com>
3028 * remote.c (struct remote_state) <last_sent_signal>:
3030 (last_sent_signal): Remove.
3031 (new_remote_state, remote_resume, remote_wait_as): Update.
3033 2013-08-14 Tom Tromey <tromey@redhat.com>
3035 * remote.c (struct remote_state) <last_program_signals_packet>:
3037 (last_program_signals_packet): Remove.
3038 (remote_program_signals, remote_open_1): Update.
3040 2013-08-14 Tom Tromey <tromey@redhat.com>
3042 * remote.c (struct remote_state) <last_pass_packet>:
3044 (last_pass_packet): Remove.
3045 (remote_pass_signals, remote_open_1): Update.
3047 2013-08-14 Tom Tromey <tromey@redhat.com>
3049 * remote.c (struct remote_state) <remote_traceframe_number>:
3051 (remote_traceframe_number): Remove.
3052 (new_remote_state, remote_open_1, set_remote_traceframe)
3053 (remote_trace_find): Update.
3055 2013-08-14 Tom Tromey <tromey@redhat.com>
3057 * remote.c (struct remote_state) <general_thread, continue_thread>:
3059 (general_thread, continue_thread): Remove.
3060 (record_currthread, set_thread, set_general_process)
3061 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3062 (extended_remote_mourn_1): Update.
3064 2013-08-14 Tom Tromey <tromey@redhat.com>
3066 * remote.c (struct remote_state) <remote_desc>: New field.
3067 (remote_desc): Remove.
3068 (remote_threads_info, remote_threads_extra_info, remote_close)
3069 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3070 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3071 (remote_hostio_send_command, remote_file_put, remote_file_get)
3072 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3073 (remote_async, remote_new_objfile, set_range_stepping): Update.
3075 2013-08-14 Tom Tromey <tromey@redhat.com>
3077 * remote.c (remote_state): Now a pointer.
3078 (get_remote_state_raw): Update.
3079 (new_remote_state): New function.
3080 (_initialize_remote): Use new_remote_state.
3082 2013-08-14 Tom Tromey <tromey@redhat.com>
3084 * remote.c (remote_protocol_features): Now const.
3086 2013-08-14 Tom Tromey <tromey@redhat.com>
3088 * remote.c (crc32_table, crc32): Remove.
3089 (remote_verify_memory): Use xcrc32.
3091 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3093 * value.h (create_internalvar_type_lazy): Adjust prototype
3096 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3098 * common/format.c (parse_format_string): Don't allow '#' flag for
3099 pointer arguments in format string.
3101 2013-08-13 Pierre Muller <muller@sourceware.org>
3103 * utils.c (init_page_info): Only call tgetnum function
3104 if rl_get_screen_size did not return useful values.
3106 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3108 PR breakpoints/15117
3109 * linespec.c (linespec_parse_basic): Check for convenience
3110 variable or history value while parsing.
3112 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3114 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3116 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3117 different signals between the generic Linux kernel implementation
3119 (avr_linux_gdb_signal_from_target): Delete.
3120 (avr_linux_gdb_signal_to_target): Delete.
3121 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3123 2013-08-09 Doug Evans <dje@google.com>
3125 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3128 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3130 * linux-tdep.c: Define enum with generic signal numbers.
3131 (linux_gdb_signal_from_target): New function.
3132 (linux_gdb_signal_to_target): Likewise.
3133 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3134 methods to the functions above.
3135 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3136 (linux_gdb_signal_to_target): Likewise.
3137 * alpha-linux-tdep.c: Define new enum with signals different
3138 from generic Linux kernel.
3139 (alpha_linux_gdb_signal_from_target): New function.
3140 (alpha_linux_gdb_signal_to_target): Likewise.
3141 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3142 with the functions mentioned above.
3143 * avr-tdep.c: Define enum with differences between Linux kernel
3145 (avr_linux_gdb_signal_from_target): New function.
3146 (avr_linux_gdb_signal_to_target): Likewise.
3147 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3148 the functions mentioned above.
3149 * sparc-linux-tdep.c: Define enum with differences between SPARC
3150 and generic Linux kernel signal numbers.
3151 (sparc32_linux_gdb_signal_from_target): New function.
3152 (sparc32_linux_gdb_signal_to_target): Likewise.
3153 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3154 to the functions defined above.
3155 * xtensa-linux-tdep.c: Define enum with differences between
3156 Xtensa and Linux kernel generic signals.
3157 (xtensa_linux_gdb_signal_from_target): New function.
3158 (xtensa_linux_gdb_signal_to_target): Likewise.
3159 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3160 to the functions defined above.
3161 * mips-linux-tdep.c: Define enum with differences between
3162 signals in MIPS and Linux kernel generic ones.
3163 (mips_gdb_signal_to_target): New function.
3164 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3165 only different signals from the Linux kernel generic.
3166 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3167 the functions defined above.
3168 * mips-linux-tdep.h (enum mips_signals): Remove.
3170 2013-08-09 Pedro Alves <palves@redhat.com>
3172 * avr-tdep.c (XMALLOC): Delete macro.
3173 * cli/cli-dump.c (XMALLOC): Delete macro.
3175 2013-08-09 Pedro Alves <palves@redhat.com>
3177 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3178 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3179 (fopen_with_cleanup, add_dump_command): Make static.
3180 * cli/cli-dump.h: Delete file.
3181 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3184 2013-08-09 Pedro Alves <palves@redhat.com>
3186 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3189 2013-08-09 Pedro Alves <palves@redhat.com>
3191 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3194 2013-08-09 Pedro Alves <palves@redhat.com>
3196 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3197 (gcore_command): Use tilde_expand here, and when showing the
3198 filename to the user, show the expanded version.
3200 2013-08-09 Yao Qi <yao@codesourcery.com>
3202 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3205 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3207 * gcore.c (create_gcore_bfd): Use tilde_expand.
3209 2013-08-08 Yao Qi <yao@codesourcery.com>
3211 * frame.h (read_frame_local): Declare.
3212 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3214 * stack.c (read_frame_local): New.
3216 2013-08-08 Yao Qi <yao@codesourcery.com>
3218 * mi/mi-cmd-stack.c: Update comments to function
3219 list_args_or_locals.
3221 2013-08-07 Tom Tromey <tromey@redhat.com>
3224 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3225 (process_psymtab_comp_unit_reader): Use it.
3226 (process_psymtab_comp_unit): Update. Add "pretend_language"
3228 (dwarf2_build_psymtabs_hard): Update.
3229 (scan_partial_symbols): Pass CU's language to
3230 process_psymtab_comp_unit.
3232 2013-08-07 Tom Tromey <tromey@redhat.com>
3234 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3235 (dwarf2_gdb_index_functions): Update.
3236 * psymtab.c (find_symbol_file_from_partial): Remove.
3237 (psym_functions): Update.
3238 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3241 2013-08-07 Tom Tromey <tromey@redhat.com>
3243 * symfile.c (set_initial_language): Look up "main" symbol
3244 and use its language.
3245 * symtab.c (find_main_filename): Remove.
3246 * symtab.h (find_main_filename): Remove.
3248 2013-08-07 Tom Tromey <tromey@redhat.com>
3250 * dwarf2read.c (recursively_compute_inclusions): Add
3251 "immediate_parent" argument. Set symtab's "user" field
3253 (compute_symtab_includes): Update.
3255 2013-08-07 Tom Tromey <tromey@redhat.com>
3257 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3258 when adding label symbols.
3260 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3261 Ulrich Weigand <uweigand@de.ibm.com>
3263 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3264 * configure.host (powerpc64-*-aix*): Likewise.
3266 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3267 Ulrich Weigand <uweigand@de.ibm.com>
3269 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3271 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3272 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3273 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3274 * configure.ac: Check for ptrace64.
3275 * configure, config.in: Regenerate.
3277 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3278 Ulrich Weigand <uweigand@de.ibm.com>
3280 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3281 Call ptrace64 instead of ptrace if defined.
3282 Add macro addr_ptr to take care of ptrace address argument.
3283 (pdc_read_regs): Likewise.
3284 (pdc_write_regs): Likewise.
3285 (aix_thread_resume): Likewise.
3286 (fetch_regs_kernel_thread): Likewise.
3287 (store_regs_kernel_thread): Likewise.
3289 2013-08-07 Anton Blanchard <anton@samba.org>
3291 * MAINTAINERS: Add myself to Write After Approval.
3293 2013-08-05 Tom Tromey <tromey@redhat.com>
3295 * aix-thread.c (_initialize_aix_thread): Use
3296 complete_target_initialization.
3297 * bsd-uthread.c (_initialize_bsd_uthread): Use
3298 complete_target_initialization.
3299 * dec-thread.c (_initialize_dec_thread): Use
3300 complete_target_initialization.
3301 * ravenscar-thread.c (_initialize_ravenscar): Use
3302 complete_target_initialization.
3303 * sol-thread.c (_initialize_sol_thread): Use
3304 complete_target_initialization.
3305 * spu-multiarch.c (_initialize_spu_multiarch): Use
3306 complete_target_initialization.
3308 2013-08-05 Tom Tromey <tromey@redhat.com>
3310 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3311 * ada-lang.c (ada_lookup_simple_minsym): Return
3312 bound_minimal_symbol.
3313 * ada-lang.h (ada_lookup_simple_minsym): Update.
3314 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3315 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3316 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3317 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3318 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3319 * minsyms.c (msymbol_objfile): Remove.
3320 (lookup_minimal_symbol_internal): New function, from
3321 lookup_minimal_symbol.
3322 (lookup_minimal_symbol): Rewrite using
3323 lookup_minimal_symbol_internal.
3324 (lookup_bound_minimal_symbol): New function.
3325 * minsyms.h (msymbol_objfile): Remove.
3326 (lookup_bound_minimal_symbol): Declare.
3327 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3328 * parse.c (write_exp_msymbol): Change parameter to a
3329 bound_minimal_symbol.
3330 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3331 * parser-defs.h (write_exp_msymbol): Update.
3332 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3333 * symfile.c (simple_read_overlay_table): Use
3334 lookup_bound_minimal_symbol.
3335 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3336 (search_symbols): Likewise.
3337 (print_msymbol_info): Take a bound_minimal_symbol argument.
3338 (symtab_symbol_info, rbreak_command): Update.
3339 * symtab.h (struct symbol_search) <msymbol>: Change type
3340 to bound_minimal_symbol.
3341 * valops.c (find_function_in_inferior): Use
3342 lookup_bound_minimal_symbol.
3343 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3345 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3350 (async_cleanup_sigint_signal_handler): ... this.
3351 (initialize_sigint_signal_handler): Remove declaration.
3352 (handle_remote_sigint): Rename the declaration to ...
3353 (async_handle_remote_sigint): ... this.
3354 (handle_remote_sigint_twice): Rename the declaration to ...
3355 (async_handle_remote_sigint_twice): ... this.
3356 (async_remote_interrupt, async_remote_interrupt_twice)
3357 (remote_interrupt): Remove the declarations.
3358 (remote_interrupt_twice): Rename the declaration ...
3359 (sync_remote_interrupt_twice): ... this.
3360 (sigint_remote_twice_token): Rename the variable to ...
3361 (async_sigint_remote_twice_token): ... this.
3362 (sigint_remote_token): Rename the variable to ...
3363 (async_sigint_remote_token): ... this.
3364 (initialize_sigint_signal_handler): Rename the function to ...
3365 (async_initialize_sigint_signal_handler): ... this. Update the name
3367 (handle_remote_sigint): Rename the function to ...
3368 (async_handle_remote_sigint): ... this. Update the names inside.
3369 (handle_remote_sigint_twice): Rename the function to ...
3370 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3371 (cleanup_sigint_signal_handler): Rename the function to ...
3372 (async_cleanup_sigint_signal_handler): ... this.
3373 (remote_interrupt): Rename the function to ...
3374 (sync_remote_interrupt): this. Update the names inside.
3375 (remote_interrupt_twice): Rename the function to ...
3376 (sync_remote_interrupt_twice): this. Update the names inside.
3377 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3378 (_initialize_remote): Update the names inside.
3380 2013-08-02 Tom Tromey <tromey@redhat.com>
3383 * breakpoint.c (update_watchpoint, watchpoint_check)
3384 (watch_command_1): Update.
3385 * eval.c (fetch_subexp_value): Add "preserve_errors"
3387 * ppc-linux-nat.c (check_condition): Update.
3388 * value.h (fetch_subexp_value): Update.
3390 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3392 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3395 2013-08-01 Doug Evans <dje@google.com>
3398 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3399 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3400 Add assert of sig_entry->dwo_unit == NULL.
3401 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3402 had already been read.
3403 (read_signatured_type): Set per_cu.tu_read.
3406 * valops.c (value_struct_elt): Add missing call to check_typedef.
3407 (value_find_oload_method_list): Ditto.
3409 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3410 effectively, struct symbol_search **.
3411 (make_cleanup_free_search_symbols): Change arg to struct
3412 symbol_search **. All callers updated.
3413 (compare_search_syms): Compare symtab file name and block as well.
3414 (search_symbols_equal): New function.
3415 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3416 New args new_head, new_tail. Result is now void. Remove dups after
3417 sorting the symbols.
3418 (search_symbols): Sort all found symbols once, after all have been
3419 found, and remove duplicates. Simplify cleanup tracking of result.
3420 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3422 Further workarounds for binutils/15021.
3423 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3424 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3425 Watch for duplicate symtabs coming from type units.
3426 (compute_symtab_includes): Update call to
3427 recursively_compute_inclusions. Build vector of included symtabs
3429 * symtab.h (symtab_ptr): New typedef.
3430 (DEF_VEC_P (symtab_ptr)): New VEC type.
3431 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3434 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3436 * cli/cli-script.c (script_from_file): Remove use of
3438 * main.c (captured_main): Remove use of error_pre_print and
3440 * utils.c (error_pre_print, quit_pre_print): Remove.
3441 * utils.h (error_pre_print, quit_pre_print): Likewise.
3443 2013-08-01 Yao Qi <yao@codesourcery.com>
3445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3447 (mi_cmd_stack_list_variables): Likewise.
3449 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3451 * exceptions.c (deprecated_throw_reason): Remove.
3452 * exceptions.h (deprecated_throw_reason): Remove.
3454 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3456 * remote-mips.c (mips_error): Replace use of
3457 deprecated_throw_reason with throw_verror. Use the error message
3458 passed to mips_error as the error message for throw_verror.
3460 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3462 * monitor.c (monitor_interrupt_query): Replace use of
3463 deprecated_throw_reason with quit.
3464 * nto-procfs.c (interrupt_query): Likewise.
3465 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3466 * remote-mips.c (mips_kill): Likewise.
3467 * remote.c (interrupt_query): Likewise.
3469 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3471 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3474 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3475 Yao Qi <yao@codesourcery.com>
3477 * tracepoint.c (trace_dump_command): Select the current frame.
3479 2013-07-30 Doug Evans <dje@google.com>
3481 * dwarf2read.c (process_queue): Add type signature to debug output.
3483 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3485 * value.c (value_fetch_lazy): Mark optimized out values as such
3486 rather than raising an error.
3488 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3490 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3491 before checking which bits of the parent, not the child, value are
3494 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3497 * top.c: Include "filenames.h".
3498 (set_history_filename): New function.
3499 (init_main): Install it as set hook of the "set history filename"
3502 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3504 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3505 attribute parameter.
3506 (dwarf2_const_value_data): Constify struct attribute parameter.
3507 (dwarf2_const_value): Constify struct attribute parameter.
3508 (dwarf2_const_value_attr): Constify struct attribute parameter.
3509 (lookup_die_type): Constify struct attribute parameter.
3510 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3511 (follow_die_ref_or_sig): Constify struct attribute parameter.
3512 (follow_die_ref): Constify struct attribute parameter.
3513 (follow_die_sig): Constify struct attribute parameter.
3514 (get_DW_AT_signature_type): Constify struct attribute parameter.
3515 (get_type_unit_group): Constify struct attribute parameter.
3516 (fill_in_loclist_baton): Constify struct attribute parameter.
3517 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3518 (type_unit_group): Constify struct attribute parameter.
3520 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3522 * dwarf2read.c (attr_form_is_block): Make argument const.
3523 (attr_form_is_section_offset): Make argument const.
3524 (attr_form_is_constant): Make argument const.
3525 (attr_form_is_ref): Make argument const.
3527 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3529 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3531 (attr_form_is_ref): Moved below attr_form_is_constant.
3533 2013-07-29 Doug Evans <dje@google.com>
3535 * main.c (captured_command_loop): Tweak comment.
3537 * target.c (target_async_permitted_1): Fix comment.
3539 * symtab.c (iterate_over_some_symtabs): Add comment.
3541 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3543 2013-07-27 Yao Qi <yao@codesourcery.com>
3545 * NEWS: Mention that GDBserver now supports hardware
3546 watchpoints on the MIPS GNU/Linux target.
3548 2013-07-27 Yao Qi <yao@codesourcery.com>
3550 * Makefile.in (HFILES_NO_SRCDIR): Add
3551 common/mips-linux-watch.h.
3552 (mips-linux-watch.o): New rule.
3553 * common/mips-linux-watch.c: New.
3554 * common/mips-linux-watch.h: New.
3555 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3556 * mips-linux-nat.c: Include mips-linux-watch.h.
3557 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3558 to common/mips-linux-watch.h.
3559 (MAX_DEBUG_REGISTER): Likewise.
3560 (enum pt_watch_style): Likewise.
3561 (struct mips32_watch_regs): Likewise.
3562 (struct mips64_watch_regs): Likewise.
3563 (struct pt_watch_regs): Likewise.
3564 (struct mips_watchpoint): Likewise.
3565 (mips_linux_watch_get_irw_mask): Move to
3566 common/mips-linux-watch.c.
3567 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3568 (mips_linux_watch_get_watchlo): Likewise.
3569 (mips_linux_watch_set_watchlo): Likewise.
3570 (mips_linux_watch_get_watchhi): Likewise.
3571 (mips_linux_watch_set_watchhi): Likewise.
3572 (mips_linux_read_watch_registers): Likewise.
3573 (mips_linux_watch_type_to_irw): Likewise.
3574 (mips_linux_stopped_data_address, fill_mask): Likewise.
3575 (mips_linux_watch_try_one_watch): Likewise.
3576 (mips_linux_watch_populate_regs): Likewise.
3578 2013-07-27 Yao Qi <yao@codesourcery.com>
3580 * mips-linux-nat.c (get_irw_mask): Rename to ...
3581 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3582 'set' to 'n'. Update function comment. All callers changed.
3583 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3584 function comment. All callers changed.
3585 (get_num_valid): Rename to ...
3586 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3587 'set' to 'n'. Update function comment. All callers changed.
3588 (get_watchlo): Rename to ...
3589 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3590 'set' to 'n'. Update function comment. All callers changed.
3591 (set_watchlo): Rename to ...
3592 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3593 'set' to 'n'. Update function comment. All callers changed.
3594 (get_watchhi): Rename to ...
3595 (mips_linux_watch_get_watchhi): ... this. Update function
3596 comment. All callers changed.
3597 (set_watchhi): Rename to ...
3598 (mips_linux_watch_set_watchhi): ... this. Update function
3599 comment. All callers changed.
3600 (mips_linux_read_watch_registers): Update function comment.
3601 Add new parameters 'lwpid', 'watch_readback', and
3602 'watch_readback_valid'. Update.
3603 (type_to_irw): Rename to ...
3604 (mips_linux_watch_type_to_irw): ... this. Update function
3605 comment. All callers changed.
3606 (fill_mask): Update function comment.
3607 (try_one_watch): Rename to ...
3608 (mips_linux_watch_try_one_watch): ... this. Change the type
3609 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3610 (populate_regs_from_watches): Rename to ...
3611 (mips_linux_watch_populate_regs): ... this. Add parameter
3612 'current_watches'. All callers changed.
3614 2013-07-27 Yao Qi <yao@codesourcery.com>
3616 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3618 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3619 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3620 (struct pt_watch_regs): Likewise.
3621 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3622 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3623 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3624 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3625 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3627 2013-07-27 Yao Qi <yao@codesourcery.com>
3629 * breakpoint.h: Include break-common.h.
3630 (enum target_hw_bp_type): Move to ...
3631 * common/break-common.h: ... here. New.
3633 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3635 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3636 process group regardless of having tty on stdin.
3638 2013-07-25 Doug Evans <dje@google.com>
3640 * linux-fork.h (detach_fork): Delete.
3642 2013-07-25 Tom Tromey <tromey@redhat.com>
3644 PR remote/15256, PR remote/15266:
3645 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3646 * monitor.c (monitor_detach): Use unpush_target.
3647 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3648 * remote-mips.c (mips_detach): Use unpush_target. Don't
3650 * remote-sim.c (gdbsim_detach): Use unpush_target.
3651 * target.c (pop_target): Remove.
3652 (pop_all_targets_above): Don't call target_close.
3653 (target_close): Assert that the target is unpushed.
3654 * target.h (pop_target): Don't declare.
3655 * tracepoint.c (tfile_open): Use unpush_target.
3657 2013-07-25 Tom Tromey <tromey@redhat.com>
3659 * linux-thread-db.c (init_thread_db_ops): Call
3660 complete_target_initialization.
3661 (_initialize_thread_db): Don't call add_target.
3662 * target.c (complete_target_initialization): New function.
3663 (add_target_with_completer): Call it.
3664 * target.h (complete_target_initialization): Declare.
3666 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3668 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3669 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3670 (HPPANBSD_SIZEOF_GREGS): New define.
3671 (hppaobsd_supply_gregset): Handle additional registers.
3672 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3673 we provide more registers now.
3674 (hppabsd_supply_gregset): Supply additional registers.
3675 (hppabsd_collect_gregset): Collect additional registers.
3677 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3679 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3680 (hppabsd_dwarf2_frame_init_reg): New function.
3681 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3683 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3685 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3686 'z' format code. Remove error for optimized out values, standard
3687 code will handle these fine.
3689 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3691 * NEWS: Mention new 'z' formatter.
3692 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3693 (_initialize_printcmd): Mention 'z' formatter in help text of the
3696 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3698 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3701 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3703 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3704 interface can evaluate arguments. Fallback to the old mode if it
3706 (create_exception_master_breakpoint): Likewise.
3707 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3708 (struct sym_probe_fns elf_probe_fns): Export function above to the
3710 * probe.c (can_evaluate_probe_arguments): New function.
3711 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3713 (can_evaluate_probe_arguments): New function prototype.
3714 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3715 probe interface can evaluate arguments. Fallback to the old mode
3717 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3718 interface can evaluate arguments. Warning the user if it cannot.
3719 (stap_can_evaluate_probe_arguments): New function.
3720 (struct probe_ops stap_probe_ops): Export function above to the
3722 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3723 New function pointer.
3725 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3727 * Makefile.in (SFILES): Add common/target-common.c.
3728 Add common/target-common.h to headers.
3729 (COMMON_OBS): Add target-common.o.
3730 (target-common.o): New target.
3731 * linux-nat.h (resume_kind): Move to common/target-common.h.
3732 * target.c (target_waitstatus_to_string): Move to
3733 common/target-common.c.
3734 * target.h: Include target-common.h.
3735 (target_waitkind): Move to common/target-common.h.
3736 (target_waitstatus): Likewise.
3737 (TARGET_WNOHANG): Likewise.
3738 * common/target-common.c: New file.
3739 * common/target-common.h: New file.
3741 2013-07-24 Doug Evans <dje@google.com>
3743 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3746 2013-07-23 Yao Qi <yao@codesourcery.com>
3748 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3749 parameter 'gdbarch'.
3750 (i386_stack_tramp_frame_sniffer): Caller update.
3751 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3752 parameter 'gdbarch' and 'target'.
3753 (i386_linux_core_read_description): Caller update.
3754 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3756 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3759 2013-07-23 Tom Tromey <tromey@redhat.com>
3761 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3764 2013-07-22 Doug Evans <dje@google.com>
3766 * exec.h (remove_target_sections): Delete arg abfd.
3767 * exec.c (exec_close): Update call to remove_target_sections.
3768 (remove_target_sections): Delete arg abfd.
3769 * solib.c (update_solib_list): Ditto.
3770 (reload_shared_libraries_1): Ditto.
3771 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3772 * target.h (struct target_section): Rename key to owner.
3775 2013-07-22 Tom Tromey <tromey@redhat.com>
3777 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3779 2013-07-22 Tom Tromey <tromey@redhat.com>
3781 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3782 Simplify cleanup handling.
3784 2013-07-22 Tom Tromey <tromey@redhat.com>
3786 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3787 on all return paths.
3789 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3791 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3792 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3793 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3795 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3797 * top.c (print_gdb_version): Add help, apropos description and
3798 url to online documentation.
3800 2013-07-19 Hui Zhu <hui@codesourcery.com>
3803 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3805 2013-07-19 Yao Qi <yao@codesourcery.com>
3807 * target.c (update_current_target): Change the default action
3808 of 'to_traceframe_info' from tcomplain to return_zero.
3809 * target.h (struct target_ops) <to_traceframe_info>: Add more
3811 * valops.c (read_value_memory): Call
3812 traceframe_available_memory unconditionally.
3814 2013-07-18 Yao Qi <yao@codesourcery.com>
3816 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3817 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3818 symbol without prefix. If found, set its type to
3819 'mst_solib_trampoline'.
3821 2013-07-17 Doug Evans <dje@google.com>
3823 * NEWS: Mention "set print raw frame-arguments".
3824 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3825 * stack.c (print_raw_frame_arguments): New static global.
3826 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3827 (_initialize_stack): New command "set/show print raw frame-arguments".
3828 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3829 (set_print_raw, show_print_raw): New functions.
3830 (_initialize_valprint): New prefix command "set/show print raw".
3831 * valprint.h (value_print_options): Improve comments.
3833 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3834 of all *list variables.
3836 * gdbcmd.h (togglelist): Delete.
3837 * cli/cli-cmds.c (togglelist): Delete.
3838 (init_cmd_lists): Update.
3839 * cli/cli-cmds.h (togglelist): Delete.
3841 2013-07-17 Tom Tromey <tromey@redhat.com>
3843 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3846 2013-07-16 Doug Evans <dje@google.com>
3848 * nto-tdep.c (nto_relocate_section_addresses): Update,
3849 target_section.bfd deleted.
3850 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3851 * s390-tdep.c (s390_load): Ditto.
3852 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3854 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3856 * common/format.c (parse_format_string): Add checks for NULL
3857 character before calling strchr.
3859 2013-07-16 Doug Evans <dje@google.com>
3861 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3862 temp_pathname argument.
3863 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3864 when opening the file fails.
3866 * target.h (struct target_section): Delete member bfd.
3867 All users updated to use the_bfd_section->owner instead.
3868 * exec.c (add_to_section_table): Assert bfd is expected value.
3869 Remove initialization of target_section.bfd.
3870 (remove_target_sections): Update.
3871 (section_table_available_memory): Update.
3872 (section_table_xfer_memory_partial): Update.
3873 (print_section_info): Update.
3874 (exec_set_section_address): Update.
3875 * record-full.c (record_full_core_xfer_partial): Update.
3876 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3877 * solib-target.c (solib_target_relocate_section_addresses): Update.
3878 * symfile.c (build_section_addr_info_from_section_table): Update.
3879 * target.c (memory_xfer_live_readonly_partial): Update.
3880 (memory_xfer_partial_1): Update.
3882 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3884 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3885 now available for embedded (BookE) and server (BookS) processors,
3886 correct mentions of 'booke' and adjust comments accordingly in order to
3887 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3888 (have_ptrace_booke_interface): Rename function and variable
3889 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3890 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3891 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3892 'hwdebug_point_cmp'. Update all uses.
3893 (booke_find_thread_points_by_tid): Rename function
3894 'booke_find_thread_points_by_tid' to
3895 'hwdebug_find_thread_points_by_tid'. Update all uses.
3896 (booke_insert_point): Rename function 'booke_insert_point' to
3897 'hwdebug_insert_point'. Update all uses.
3898 (booke_remove_point): Rename function 'booke_remove_point' to
3899 'hwdebug_remove_point'. Update all uses.
3901 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3903 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3904 numbers with enum values.
3906 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3909 * thread.c (thread_apply_all_command): Check for valid threads
3911 (thread_array_cleanup): New struct.
3912 (set_thread_refcount): New function.
3914 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3916 * infcmd.c (default_print_one_register_info): Reuse function
3919 2013-07-10 Tom Tromey <tromey@redhat.com>
3921 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3922 (ada-exp.o): New target.
3924 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3926 * mt-tdep.c (mt_registers_info): Call
3927 get_no_prettyformat_print_options instead of
3928 get_raw_print_options (regression by last patch from Doug
3931 2013-07-09 Pedro Alves <palves@redhat.com>
3933 Checked in by Joel Brobecker <brobecker@adacore.com>.
3934 * ada-lang.c (coerce_unspec_val_to_type): Use
3935 value_optimized_out_const.
3936 * value.c (value_optimized_out_const): New function.
3937 * value.h (value_optimized_out_const): New declaration.
3939 2013-07-09 Doug Evans <dje@google.com>
3941 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3942 Enum values rename as well. All uses updated.
3943 * valprint.h (value_print_options): Rename member pretty to
3944 pretty format. Rename member prettyprint_arrays to
3945 prettyformat_arrays. Rename member prettyprint_structs to
3946 prettyformat_structs. All uses updated.
3947 (get_no_prettyformat_print_options): Renamed from
3948 get_raw_print_options.
3949 * valprint.c (get_no_prettyformat_print_options): Renamed from
3950 get_raw_print_options. All callers updated.
3951 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3952 All callers updated.
3953 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3954 All callers updated.
3955 (_initialize_valprint): Improve help text for "set print pretty" and
3958 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3960 * value.c (value_bits_valid): Revert previous change, and change
3961 by Pedro on 2013-07-04, due to regressions in
3962 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3964 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3965 Pedro Alves <palves@redhat.com>
3967 * value.c (value_bits_valid): If the value is not lval_computed
3968 or has no check validity handler then the answer is the
3969 optimized_out flag, otherwise defer to the handler.
3971 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3973 * top.c (print_gdb_configuration): Explain in output of
3974 --configuration what does "relocatable" mean.
3976 * main.c (print_gdb_help): Regroup options in the --help text.
3977 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3978 the relevant discussions.
3980 2013-07-06 Yao Qi <yao@codesourcery.com>
3982 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3983 Remove parameter 'lsal'.
3984 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3985 to inner block. Caller update.
3986 (base_breakpoint_create_breakpoints_sal): Update.
3987 (bkpt_create_breakpoints_sal): Likewise.
3988 (tracepoint_create_breakpoints_sal): Likewise.
3989 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3990 element 0 of vector 'canonical->sals'.
3992 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3994 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3995 register number instead of the pseudo register one.
3996 (rs6000_dwarf2_reg_to_regnum): Likewise.
3998 2013-07-04 Pedro Alves <palves@redhat.com>
4000 * findvar.c (value_of_register): Use allocate_optimized_out_value
4001 if the register has been optimized out, instead of
4002 set_value_optimized_out.
4003 * frame-unwind.c (frame_unwind_got_optimized): Use
4004 allocate_optimized_out_value.
4006 2013-07-04 Pedro Alves <palves@redhat.com>
4008 * value.c (value_bits_valid): If the value is not lval_computed,
4009 or doesn't have a check_validity hook, assume the value is entirely
4012 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4014 * stack.c (read_frame_arg): No longer fetch lazy values.
4015 * value.c (value_optimized_out): If the value is not already
4016 marked optimized out, and is lazy then fetch it.
4017 (value_primitive_field): Move optimized out check to later in the
4018 function, after we have loaded any lazy values.
4019 (value_fetch_lazy): Use optimized out flag directly rather than
4020 calling optimized_out method.
4022 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4024 * valops.c: Don't include "user-regs.h".
4025 (value_fetch_lazy): Moved to value.c.
4026 * value.c: Include "user-regs.h".
4027 (value_fetch_lazy): Moved from valops.c.
4029 2013-07-04 Yao Qi <yao@codesourcery.com>
4032 2013-06-27 Yao Qi <yao@codesourcery.com>
4034 * common/create-version.sh: Update comments. Handle the case
4035 that TARGET_ALIAS is empty.
4037 2013-07-03 Pedro Alves <palves@redhat.com>
4039 * Makefile.in (config.status): Depend on development.sh.
4040 (aclocal_m4_deps): Add libmcheck.m4.
4041 * acinclude.m4: Include libmcheck.m4.
4042 * configure.ac: Source development.sh instead of setting
4043 'development' here. --enable-libmcheck/--disable-libmcheck code
4044 factored out to GDB_AC_LIBMCHECK. Run it.
4045 * development.sh: New file.
4046 * libmcheck.m4: New file.
4047 * configure: Regenerate.
4049 2013-07-02 Tom Tromey <tromey@redhat.com>
4051 * contrib/ari/update-web-ari.sh: Update for version.in change.
4053 2013-07-02 Tom Tromey <tromey@redhat.com>
4055 * common/ptid.h: Comment fixes.
4057 2013-07-01 Tom Tromey <tromey@redhat.com>
4059 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4060 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4061 (dwarf2_read_index, create_all_comp_units): Update.
4063 2013-07-01 Tom Tromey <tromey@redhat.com>
4065 * configure.ac (build_warnings): Add -Wold-style-definition.
4066 * configure: Rebuild.
4067 * machoread.c (_initialize_machoread): Use "(void)".
4068 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4071 2013-07-01 Tom Tromey <tromey@redhat.com>
4073 * configure.ac (build_warnings): Add -Wold-style-declaration.
4074 * configure: Rebuild.
4075 * dsrec.c (make_srec): Use "static const", not "const static".
4076 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4078 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4079 Use "static const", not "const static".
4080 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4082 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4084 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4086 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4088 (v850_dbtrap_breakpoint_from_pc): Likewise.
4089 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4092 2013-07-01 Tom Tromey <tromey@redhat.com>
4094 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4095 * configure: Rebuild.
4097 2013-07-01 Pedro Alves <palves@redhat.com>
4099 * defs.h: Include "pathmax.h".
4100 * utils.c: Don't include sys/param.h.
4101 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4102 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4103 instead of MAXPATHLEN.
4104 * solib-sunos.c: Don't include sys/param.h.
4105 * xcoffread.c: Don't include sys/param.h.
4106 * bsd-kvm.c: Don't include sys/param.h.
4107 * darwin-nat.c: Don't include sys/param.h.
4108 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4109 * darwin-nat-info.c: Don't include sys/param.h.
4110 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4112 * i386obsd-nat.c: Don't include sys/param.h.
4113 * inf-child.c: Don't include sys/param.h.
4114 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4115 * linux-fork.c: Don't include sys/param.h.
4116 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4117 * linux-nat.c: Don't include sys/param.h.
4118 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4119 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4120 * m68klinux-nat.c: Don't include sys/param.h.
4121 * nbsd-nat.c: Don't include sys/param.h.
4122 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4123 * ppc-linux-nat.c: Don't include sys/param.h.
4124 * rs6000-nat.c: Don't include sys/param.h.
4125 * spu-linux-nat.c. Don't include sys/param.h.
4126 * windows-nat.c: Don't include sys/param.h.
4127 * xtensa-linux-nat.c: Don't include sys/param.h.
4128 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4130 2013-07-01 Pedro Alves <palves@redhat.com>
4132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4133 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4134 * gnulib/aclocal.m4: Regenerate.
4135 * gnulib/config.in: Regenerate.
4136 * gnulib/configure: Regenerate.
4137 * gnulib/import/pathmax.h: New file.
4138 * gnulib/import/Makefile.am: Regenerate.
4139 * gnulib/import/Makefile.in: Regenerate.
4140 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4141 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4142 * gnulib/import/m4/pathmax.m4: New file.
4144 2013-07-01 Pedro Alves <palves@redhat.com>
4146 * configure.ac (GDBINIT): Define, depending on host.
4147 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4148 * top.c (PATH_MAX): Delete fallback definition.
4149 (GDBINIT_FILENAME): Delete.
4150 (gdbinit): Reimplement as const char array set to the GDBINIT
4152 * top.h (gdbinit): Make const.
4153 * configure, config.in: Regenerate.
4155 2013-07-01 Pedro Alves <palves@redhat.com>
4157 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4158 * cli/cli-cmds.h (source_script): Likewise.
4159 * exceptions.c (catch_command_errors_const): New function.
4160 * exceptions.h (catch_command_errors_const): Declare.
4161 * main.c (get_init_files): Make parameters const, and adjust.
4162 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4163 'local_gdbinit' locals const. Adjust to use
4164 catch_command_errors_const.
4165 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4166 'local_gdbinit' locals const.
4168 2013-07-01 Pedro Alves <palves@redhat.com>
4170 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4171 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4172 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4175 2013-07-01 Pedro Alves <palves@redhat.com>
4177 Import the "unistd" gnulib module.
4178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4179 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4180 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4181 import/m4/unistd_h.m4.
4182 * gnulib/aclocal.m4: Renenerate.
4183 * gnulib/config.in: Renenerate.
4184 * gnulib/configure: Renenerate.
4185 * gnulib/import/Makefile.am: Renenerate.
4186 * gnulib/import/Makefile.in: Renenerate.
4187 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4188 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4189 * gnulib/import/m4/off_t.m4: New file.
4190 * gnulib/import/m4/ssize_t.m4: New file.
4191 * gnulib/import/m4/sys_types_h.m4: New file.
4192 * gnulib/import/m4/unistd_h.m4: New file.
4193 * gnulib/import/sys_types.in.h: New file.
4194 * gnulib/import/unistd.c: New file.
4195 * gnulib/import/unistd.in.h: New file.
4197 2013-07-01 Pedro Alves <palves@redhat.com>
4199 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4200 defined instead of checking HAVE_UNISTD_H.
4202 2013-07-01 Pedro Alves <palves@redhat.com>
4204 Reimport gnulib from scratch.
4205 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4206 import/m4/onceonly.m4.
4207 * gnulib/aclocal.m4: Renegerate.
4208 * gnulib/config.in: Renegerate.
4209 * gnulib/configure: Renegerate.
4210 * gnulib/import/Makefile.in: Renegerate.
4211 * gnulib/import/extra/update-copyright: Renegerate.
4212 * gnulib/import/m4/onceonly.m4: Delete.
4214 2013-07-01 Pedro Alves <palves@redhat.com>
4216 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4218 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4221 * remote.c (async_remote_interrupt_twice): Make it static.
4222 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4224 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4226 * ia64-linux-tdep.c: Include <ctype.h>.
4227 (ia64_linux_stap_is_single_operand): New function.
4228 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4230 2013-06-28 Tom Tromey <tromey@redhat.com>
4232 * Makefile.in (version.c): Use version.in, not
4234 * common/create-version.sh: Likewise.
4235 * common/version.in: Move...
4236 * version.in: ...here.
4238 2013-06-28 Pedro Alves <palves@redhat.com>
4240 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4242 * utils.h (pagination_enabled): Declare.
4244 2013-06-28 Pedro Alves <palves@redhat.com>
4246 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4247 Move higher up in file.
4249 2013-06-28 Tom Tromey <tromey@redhat.com>
4251 * tracepoint.c (deprecated_readline_begin_hook)
4252 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4255 2013-06-28 Pedro Alves <palves@redhat.com>
4258 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4259 checking if they're available.
4260 * value.c (value_available_contents_eq): Change comment.
4261 * value.h (value_available_contents_eq): Expand comment.
4263 2013-06-27 Tom Tromey <tromey@redhat.com>
4265 * target.c (find_run_target): Remove.
4266 * target.h (find_run_target): Remove.
4268 2013-06-27 Tom Tromey <tromey@redhat.com>
4270 * corelow.c (core_gdbarch): Now static.
4272 2013-06-27 Tom Tromey <tromey@redhat.com>
4274 * target.c (target_struct_index): Remove.
4276 2013-06-27 Pedro Alves <palves@redhat.com>
4278 * infrun.c: Remove comment describing the 'stepping over runtime
4279 loader dynamic symbol resolution code' mechanism; moved to
4282 2013-06-27 Pedro Alves <palves@redhat.com>
4284 * exceptions.c (catch_command_errors): Remove spurious space.
4285 * exceptions.h (catch_command_errors): Second parameter is "arg",
4288 2013-06-27 Yao Qi <yao@codesourcery.com>
4290 * common/create-version.sh: Update comments. Handle the case
4291 that TARGET_ALIAS is empty.
4293 2013-06-26 Pedro Alves <palves@redhat.com>
4295 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4298 2013-06-26 Pedro Alves <palves@redhat.com>
4300 * infrun.c: Update comments on stepping over runtime loader
4301 dynamic symbol resolution code.
4303 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4305 * ax-gdb.h (union exp_element): Forward declare.
4306 * parser-defs.h: Include expression.h.
4308 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4310 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4312 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4314 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4316 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4318 Fix trace-status to output proper start-time and stop-time.
4319 * tracepoint.c (trace_status_command): Fix type of printf arg to
4320 prevent improper type conversion.
4321 (trace_status_mi): Likewise.
4323 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4325 * mips-tdep.c (mips_next_pc): Fix a typo.
4327 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4329 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4331 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4332 Yao Qi <yao@codesourcery.com>
4334 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4335 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4336 * mi/mi-main.c (print_variable_or_computed): New function.
4337 (mi_cmd_trace_frame_collected): New function.
4338 * tracepoint.c (find_trace_state_variable_by_number): New.
4339 (struct traceframe_info): Move to tracepoint.h
4340 (struct collection_list): Likewise.
4341 (do_collect_symbol): Include locals and arguments in the
4342 collected variables list.
4343 (clear_collection_list): Clear wholly collected variables list
4344 and computed variables list.
4345 (append_exp): New function.
4346 (encode_actions_1): Include variables in the wholly
4347 collected variables list. Include memory ranges and
4348 full-fledged expressions in the computed expressions list.
4349 (encode_actions): Move some code to ...
4350 Return the cleanup chain.
4351 (encode_actions_rsp): ... here. New function.
4352 (get_traceframe_location, get_traceframe_info): Remove static.
4353 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4354 (struct collection_list): Moved from tracepoint.c. Add two
4355 new fields 'wholly_collected' and 'computed'.
4356 (find_trace_state_variable_by_number): Declare.
4357 (encode_actions): Adjust declaration.
4358 (encode_actions_rsp): Declare.
4359 (get_traceframe_info, get_traceframe_location): Declare.
4361 * NEWS: Mention new MI command -trace-frame-collected.
4363 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4364 Yao Qi <yao@codesourcery.com>
4366 * ctf.c (ctf_traceframe_info): Push trace state variables
4367 present in the trace data into the traceframe info object.
4368 * breakpoint.c (DEF_VEC_I): Remove.
4369 * common/filestuff.c (DEF_VEC_I): Likewise.
4370 * dwarf2loc.c (DEF_VEC_I): Likewise.
4371 * mi/mi-main.c (DEF_VEC_I): Likewise.
4372 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4373 * features/traceframe-info.dtd: Add tvar element and its
4375 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4376 (build_traceframe_info): Push trace state variables present in
4377 the trace data into the traceframe info object.
4378 (traceframe_info_start_tvar): New function.
4379 (tvar_attributes): New.
4380 (traceframe_info_children): Add "tvar" element.
4381 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4383 * NEWS: Mention the change in GDB and GDBserver.
4385 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4386 Yao Qi <yao@codesourcery.com>
4388 * tracepoint.c (trace_dump_command): Move code to ...
4389 (get_traceframe_location): ... here. New.
4391 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4392 Yao Qi <yao@codesourcery.com>
4394 * tracepoint.c (trace_dump_command): GDB emits an error
4395 instead of a warning when a traceframe is not selected.
4397 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4398 Yao Qi <yao@codesourcery.com>
4400 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4401 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4403 (do_clear_collection_list, init_collection_list): New.
4404 (encode_actions): Add local variables 'tracepoint_list' and
4405 'stepping_list'. Call init_collection_list and make cleanup
4406 which calls do_clear_collection_list. Don't call
4407 clear_collection_list.
4408 (_initialize_tracepoint): Delete references to
4409 'tracepoint_list' and 'stepping_list'.
4411 2013-06-25 Tom Tromey <tromey@redhat.com>
4413 * common/create-version.sh (date): Use "$", not "$$" in sed
4416 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4418 * NEWS (New targets): Add entry for TI MSP430.
4420 2013-06-25 Yao Qi <yao@codesourcery.com>
4422 * remote.c (remote_start_remote): Move code to upload tsv
4425 2013-06-25 Yao Qi <yao@codesourcery.com>
4426 Hui Zhu <hui@codesourcery.com>
4427 Pedro Alves <palves@redhat.com>
4429 PR breakpoints/15075
4430 PR breakpoints/15434
4431 * breakpoint.c (bpstat_stop_status): Call
4432 b->ops->after_condition_true.
4433 (update_dprintf_command_list): Don't append "continue" command
4434 to the command list of dprintf breakpoint.
4435 (base_breakpoint_after_condition_true): New function.
4436 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4437 (dprintf_after_condition_true): New function.
4438 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4439 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4441 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4443 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4444 (ALLDEPFILES): Add msp430-tdep.c.
4445 * configure.tgt (msp430*-*-elf): New target.
4446 * msp430-tdep.c: New file.
4448 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4450 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4451 microMIPS synthetic symbols.
4453 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4455 * objfiles.h (pc_in_section): New prototype.
4456 (in_plt_section): Remove name argument, replace prototype with
4457 static inline function.
4458 * mips-tdep.h: Include "objfiles.h".
4459 (in_mips_stubs_section): New function.
4460 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4461 in_solib_call_trampoline member.
4462 (hppa_in_solib_call_trampoline): Remove name argument.
4463 * objfiles.c (pc_in_section): New function.
4464 (in_plt_section): Remove function.
4465 * mips-linux-tdep.c: Include "objfiles.h".
4466 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4467 name argument. Return 1 rather than the low 16-bit halfword of
4468 any instruction examined.
4469 (mips_linux_in_dynsym_resolve_code): Update
4470 mips_linux_in_dynsym_stub call accordingly.
4471 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4472 rather than an equivalent hand-coded sequence.
4473 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4474 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4475 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4476 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4478 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4479 on call to tdep->in_solib_call_trampoline.
4480 (hppa_in_solib_call_trampoline): Remove name argument, update
4481 according to in_plt_section change.
4482 (hppa_skip_trampoline_code): Update according to in_plt_section
4484 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4485 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4487 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4488 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4489 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4490 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4491 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4492 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4493 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4494 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4495 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4496 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4497 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4498 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4499 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4501 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4503 * common/create-version.sh: Fix expansion of $host_alias
4504 and $target_alias in generation of HOST_NAME and TARGET_NAME
4507 2013-06-24 Tom Tromey <tromey@redhat.com>
4509 * common/create-version.sh: New file.
4510 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4512 (HFILES_NO_SRCDIR): Use common/version.h.
4513 * version.in: Move to ...
4514 * common/version.in: ... here. Replace date with "DATE".
4515 * version.h: Move to ...
4516 * common/version.h: ... here.
4518 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4520 * gdb/gnulib/Makefile.in: Update date in copyright header.
4521 * gdb/gnulib/configure.ac: Ditto.
4522 * gdb/gnulib/update-gnulib.sh: Ditto.
4524 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4526 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4527 "gdb/gnulib/import".
4529 2013-06-21 Will Newton <will.newton@linaro.org>
4531 * doublest.c (ldfrexp): Remove function.
4532 (convert_doublest_to_floatformat): Call frexpl instead of
4535 2013-06-21 Will Newton <will.newton@linaro.org>
4537 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4538 * gnulib/aclocal.m4: Regenerate.
4539 * gnulib/config.in: Regenerate.
4540 * gnulib/configure: Regenerate.
4541 * gnulib/import/Makefile.am: Update.
4542 * gnulib/import/Makefile.in: Update.
4543 * gnulib/import/m4/gnulib-cache.m4: Update.
4544 * gnulib/import/m4/gnulib-comp.m4: Update.
4545 * gnulib/import/float+.h: Import.
4546 * gnulib/import/float.c: Import.
4547 * gnulib/import/float.in.h: Import.
4548 * gnulib/import/fpucw.h: Import.
4549 * gnulib/import/frexp.c: Import.
4550 * gnulib/import/frexpl.c: Import.
4551 * gnulib/import/isnan.c: Import.
4552 * gnulib/import/isnand-nolibm.h: Import.
4553 * gnulib/import/isnand.c: Import.
4554 * gnulib/import/isnanl-nolibm.h: Import.
4555 * gnulib/import/isnanl.c: Import.
4556 * gnulib/import/itold.c: Import.
4557 * gnulib/import/m4/exponentd.m4: Import.
4558 * gnulib/import/m4/exponentl.m4: Import.
4559 * gnulib/import/m4/float_h.m4: Import.
4560 * gnulib/import/m4/fpieee.m4: Import.
4561 * gnulib/import/m4/frexp.m4: Import.
4562 * gnulib/import/m4/frexpl.m4: Import.
4563 * gnulib/import/m4/isnand.m4: Import.
4564 * gnulib/import/m4/isnanl.m4: Import.
4565 * gnulib/import/m4/math_h.m4: Import.
4566 * gnulib/import/math.c: Import.
4567 * gnulib/import/math.in.h: Import.
4569 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4571 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4572 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4573 signature_INTEL_edx comparisons.
4575 2013-06-20 Doug Evans <dje@google.com>
4578 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4579 All callers updated.
4580 (open_dwp_file): If we can't find the dwp file, search the basename
4581 in debug-file-directory.
4583 * dwarf2read.c (struct dwp_file): Fix comment.
4584 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4586 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4589 2013-06-20 Yao Qi <yao@codesourcery.com>
4591 * breakpoint.c (create_breakpoint): Fix code indentation.
4593 2013-06-20 Yao Qi <yao@codesourcery.com>
4595 * breakpoint.c (create_breakpoints_sal_default): Remove
4596 parameter 'lsal'. Update declaration.
4597 (bkpt_create_breakpoints_sal): Caller update.
4598 (tracepoint_create_breakpoints_sal): Likewise.
4600 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4601 Yao Qi <yao@codesourcery.com>
4603 * NEWS: Mention the new option '--skip-unavailable' of command
4604 -data-list-register-values.
4605 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4606 --skip-unavailable option. Adjust to use output_register.
4607 (output_register): Add new 'skip_unavailable' parameter.
4610 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4612 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4613 common/i386-gcc-cpuid.h.
4614 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4615 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4616 Copy the latest version from upstream gcc.
4617 * common/linux-btrace.c: Include i386-cpuid.h.
4618 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4620 (cpu_supports_btrace): Likewise.
4621 * go32-nat.c: Include i386-cpuid.h.
4622 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4624 2013-06-19 Doug Evans <dje@google.com>
4626 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4627 (get_section_index): Ditto.
4629 2013-06-19 Tom Tromey <tromey@redhat.com>
4631 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4634 2013-06-18 Doug Evans <dje@google.com>
4636 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4638 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4639 Move test of cu_index closer to use. Print complaint if cu_index
4642 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4644 * machoread.c (oso_vector): Delete this global.
4645 (macho_register_oso): Add new parameter "oso_vector_ptr".
4646 Use it instead of the "oso_vector" global.
4647 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4648 (macho_symfile_read): Use a local oso_vector, to be free'ed
4649 at the end of this function, in place of the old "oso_vector"
4650 global. Update various function calls accordingly. Use one
4651 single cleanup chain for the entire function.
4653 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4655 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4656 DWARF2_PER_OBJFILE by uses of DATA instead.
4658 2013-06-18 Tom Tromey <tromey@redhat.com>
4660 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4662 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4663 Special case signals other than GDB_SIGNAL_TRAP.
4664 (explains_signal_watchpoint): New function.
4665 (base_breakpoint_explains_signal): Add 'sig' argument.
4666 (initialize_breakpoint_ops): Set 'explains_signal' method for
4668 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4670 (bpstat_explains_signal): Likewise.
4671 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4673 2013-06-18 Tom Tromey <tromey@redhat.com>
4675 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4677 2013-06-18 Tom Tromey <tromey@redhat.com>
4679 * python/python.c (finish_python_initialization): Decref
4680 'pythondir' on failure path as well.
4682 2013-06-18 Tom Tromey <tromey@redhat.com>
4685 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4686 after taking bits_to_skip into account. Sign extend byte_offset.
4687 * utils.h (gdb_sign_extend): Declare.
4688 * utils.c (gdb_sign_extend): New function.
4690 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4694 2013-06-17 Pierre Muller <muller@sourceware.org>
4696 * corelow.c (core_open): Print GDB signal name instead of target
4699 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4701 * .gitignore: Add /gcore.
4703 2013-06-13 Doug Evans <dje@google.com>
4705 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4706 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4708 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4710 * stack.c (backtrace_command_1): Fix indentation.
4712 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4714 * window-nat.c (thread_rec): Add missing empty line after
4715 local variable declaration.
4717 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4719 * windows-nat.c (thread_rec): Revert format used to print
4720 error code returned by SuspendThread from %d back to %u.
4722 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4724 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4726 (get_windows_debug_event): Likewise, for all debug traces.
4728 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4730 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4733 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4734 Yao Qi <yao@codesourcery.com>
4736 * mi/mi-main.c (get_register): Remove declaration.
4737 (output_register): Declare.
4738 (mi_cmd_data_list_register_values): Remove local variable
4739 'tuple_cleanup'. Move some code into output_register.
4740 (get_register): Renamed to ...
4741 (output_register): ... this. Output the register's
4742 "number" ui_out tuple here.
4744 2013-06-07 Pedro Alves <palves@redhat.com>
4746 * darwin-nat.c: Fix formating in copyright header.
4747 * darwin-nat.h: Likewise.
4748 * gnu-nat.c: Likewise.
4749 * machoread.c: Likewise.
4751 2013-06-07 Pedro Alves <palves@redhat.com>
4754 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4755 static. Output a global target description pointer.
4756 (init_registers_${name}): Adjust to initialize a
4757 target description structure.
4759 2013-06-07 Will Newton <will.newton@linaro.org>
4761 * printcmd.c (build_address_symbolic): Call
4762 gdbarch_addr_bits_remove for text minimal symbols.
4764 2013-06-07 Will Newton <will.newton@linaro.org>
4766 * MAINTAINERS: Add myself to Write After Approval.
4768 2013-06-07 Yao Qi <yao@codesourcery.com>
4770 * tracepoint.c (start_tracing): Move code to ...
4771 (trace_reset_local_state): ... here. New.
4772 (disconnect_tracing): Don't call set_current_traceframe,
4773 set_tracepoint_num, and set_traceframe_context. Call
4774 trace_reset_local_state instead.
4775 (tfile_close): Call trace_reset_local_state.
4776 * ctf.c (ctf_close): Likewise.
4777 * remote.c (remote_close): Likewise.
4778 * tracepoint.h (trace_reset_local_state): Declare.
4780 2013-06-06 Doug Evans <dje@google.com>
4782 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4783 and fix header docs.
4785 2013-06-05 Doug Evans <dje@google.com>
4786 Keith Seitz <keiths@redhat.com>
4789 * cp-namespace.c (find_symbol_in_baseclass): Call
4790 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4791 Check result of call to lookup_symbol_static.
4792 Call lookup_static_symbol_aux unconditionally.
4793 Call check_typedef on base types before accessing them.
4794 (cp_lookup_nested_symbol): Fix comment.
4796 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4798 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4799 minimal symbols pointing to function descriptors.
4801 2013-06-05 Tom Tromey <tromey@redhat.com>
4803 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4805 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4806 Pedro Alves <palves@redhat.com>
4808 * remote.c (remote_wait_as): Restore signal handler before returning
4809 when GDB gets a notification.
4811 2013-06-04 Gary Benson <gbenson@redhat.com>
4814 * breakpoint.h (handle_solib_event): Moved function declaration
4816 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4817 (bpstat_stop_status): Pass new argument to handle_solib_event.
4818 * solib.h (update_solib_breakpoints): New function declaration.
4819 (handle_solib_event): Moved function declaration from
4821 * solib.c (update_solib_breakpoints): New function.
4822 (handle_solib_event): Moved function from breakpoint.c.
4823 Updated to call solib_ops->handle_event if not NULL.
4824 * solist.h (target_so_ops): New fields "update_breakpoints" and
4826 * infrun.c (set_stop_on_solib_events): New function.
4827 (_initialize_infrun): Use the above for "set
4828 stop-on-solib-events".
4829 (handle_inferior_event): Pass new argument to handle_solib_event.
4830 * solib-svr4.c (probe.h): New include.
4831 (svr4_free_library_list): New forward declaration.
4832 (probe_action): New enum.
4833 (probe_info): New struct.
4834 (probe_info): New static variable.
4835 (NUM_PROBES): New definition.
4836 (svr4_info): New fields "using_xfer", "probes_table" and
4838 (free_probes_table): New function.
4839 (free_solib_list): New function.
4840 (svr4_pspace_data_cleanup): Free probes table and solib list.
4841 (svr4_copy_library_list): New function.
4842 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4843 (svr4_read_so_list): New parameter "prev_lm".
4844 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4845 (svr4_current_sos): New function.
4846 (probe_and_action): New struct.
4847 (hash_probe_and_action): New function.
4848 (equal_probe_and_action): Likewise.
4849 (register_solib_event_probe): Likewise.
4850 (solib_event_probe_at): Likewise.
4851 (solib_event_probe_action): Likewise.
4852 (solist_update_full): Likewise.
4853 (solist_update_incremental): Likewise.
4854 (disable_probes_interface_cleanup): Likewise.
4855 (svr4_handle_solib_event): Likewise.
4856 (svr4_update_solib_event_breakpoint): Likewise.
4857 (svr4_update_solib_event_breakpoints): Likewise.
4858 (svr4_create_solib_event_breakpoints): Likewise.
4859 (enable_break): Free probes table before creating breakpoints.
4860 Use svr4_create_solib_event_breakpoints to create breakpoints.
4861 (svr4_solib_create_inferior_hook): Free the solib list.
4862 (_initialize_svr4_solib): Initialise
4863 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4865 2013-06-04 Gary Benson <gbenson@redhat.com>
4867 * target.h (target_ops): New field
4868 "to_augmented_libraries_svr4_read".
4869 (target_augmented_libraries_svr4_read): New macro.
4870 * target.c (update_current_target): Handle
4871 to_augmented_libraries_svr4_read.
4872 * remote.c (remote_state): New field
4873 "augmented_libraries_svr4_read".
4874 (remote_augmented_libraries_svr4_read_feature): New function.
4875 (remote_protocol_features): Add entry for
4876 "augmented-libraries-svr4-read".
4877 (remote_augmented_libraries_svr4_read): New function.
4878 (init_remote_ops): Initialize
4879 remote_ops.to_augmented_libraries_svr4_read.
4881 2013-06-04 Gary Benson <gbenson@redhat.com>
4885 2013-06-04 Gary Benson <gbenson@redhat.com>
4887 * objfiles.h (inhibit_section_map_updates): New function
4889 (resume_section_map_updates): Likewise.
4890 (resume_section_map_updates_cleanup): Likewise.
4891 * objfiles.c (objfile_pspace_info): Removed field
4892 "objfiles_changed_p". New fields "new_objfiles_available",
4893 "section_map_dirty" and "inhibit_updates".
4894 (allocate_objfile): Set new_objfiles_available.
4895 (free_objfile): Set section_map_dirty.
4896 (objfile_relocate1): Likewise.
4897 (in_plt_section): Likewise.
4898 (find_pc_section): Update the conditions under which the
4899 section map will be updated.
4900 (inhibit_section_map_updates): New function.
4901 (resume_section_map_updates): Likewise.
4902 (resume_section_map_updates_cleanup): Likewise.
4904 2013-06-04 Gary Benson <gbenson@redhat.com>
4906 * probe.h (get_probe_argument_count): New declaration.
4907 (evaluate_probe_argument): Likewise.
4908 * probe.c (get_probe_argument_count): New function.
4909 (evaluate_probe_argument): Likewise.
4910 (probe_safe_evaluate_at_pc): Use the above new functions.
4912 2013-06-04 Alan Modra <amodra@gmail.com>
4914 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4915 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4916 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4917 target mem reads on optional insns.
4918 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4919 ppc_insns_match_pattern calls.
4920 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4921 Add match for power7 thread safety insns, and new order of
4922 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4923 invocation in comment, and update rest of comment.
4924 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4925 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4926 (ppc64_standard_linkage2_target): Update insn offsets.
4927 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4928 stubs first. Update calls.
4930 2013-06-04 Yao Qi <yao@codesourcery.com>
4932 * solib.c (solib_find): Don't need dir separator if path has
4935 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4937 Revert (indirectly causes a SIGSEGV):
4938 * machoread.c (macho_symfile_read): Assign first cleanup to
4941 2013-06-03 Yao Qi <yao@codesourcery.com>
4943 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4944 mi-parse.c. Make them static.
4945 (mi_all_values): Likewise.
4946 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4947 mi_parse_print_values. Make it external.
4948 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4949 Remove the declarations.
4950 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4951 * mi/mi-parse.h (mi_parse_print_values): Declare.
4952 * mi/mi-cmd-stack.c: Include mi-parse.h.
4953 (parse_print_values): Remove
4954 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4955 of parse_print_values.
4956 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4958 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4959 Yao Qi <yao@codesourcery.com>
4961 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4962 (encode_actions): Move code to ...
4963 (all_tracepoint_actions_and_cleanup): ... here. New.
4964 (trace_dump_command): Likewise.
4966 2013-05-30 Tom Tromey <tromey@redhat.com>
4968 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4970 2013-05-30 Tom Tromey <tromey@redhat.com>
4972 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4973 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4974 'old_chain' argument. Add 'parser_result' argument.
4975 (gdb_xml_create_parser_and_cleanup): Remove old version.
4976 (gdb_xml_parse_quick): Update.
4977 (xml_process_xincludes): Update.
4978 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4981 2013-05-30 Tom Tromey <tromey@redhat.com>
4983 * probe.c (collect_probes): Check arguments for NULL before
4984 calling compile_rx_or_error.
4985 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4988 2013-05-30 Tom Tromey <tromey@redhat.com>
4990 * infrun.c (adjust_pc_after_break): Introduce an outer null
4993 2013-05-30 Tom Tromey <tromey@redhat.com>
4995 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4997 2013-05-30 Tom Tromey <tromey@redhat.com>
4999 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5000 for 'old_chain'. Do not check 'head' before processing
5003 2013-05-30 Tom Tromey <tromey@redhat.com>
5005 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5008 2013-05-30 Tom Tromey <tromey@redhat.com>
5010 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5011 inner scope. Unconditionally call do_cleanups.
5013 2013-05-30 Tom Tromey <tromey@redhat.com>
5015 * source.c (find_and_open_source): Call do_cleanups.
5017 2013-05-30 Tom Tromey <tromey@redhat.com>
5019 * linux-thread-db.c (thread_db_load_search): Unconditionally
5022 2013-05-30 Tom Tromey <tromey@redhat.com>
5024 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5025 for 'cleanup'; instead use a later one.
5027 2013-05-30 Tom Tromey <tromey@redhat.com>
5029 * python/py-breakpoint.c (bppy_get_commands): Use
5030 explicit, unconditional return.
5031 * python/py-frame.c (frapy_read_var): Likewise.
5032 * python/python.c (gdbpy_decode_line): Likewise.
5034 2013-05-30 Tom Tromey <tromey@redhat.com>
5036 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5037 do_cleanups on all return paths.
5039 2013-05-30 Tom Tromey <tromey@redhat.com>
5041 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5043 2013-05-30 Tom Tromey <tromey@redhat.com>
5045 * stabsread.c (read_struct_type): Call do_cleanups along
5048 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5050 * mips-linux-tdep.c: Adjust formatting throughout.
5052 2013-05-30 Tom Tromey <tromey@redhat.com>
5054 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5055 along all return paths.
5057 2013-05-30 Tom Tromey <tromey@redhat.com>
5059 * symfile.c (find_separate_debug_file): Call do_cleanups
5060 along all return paths.
5062 2013-05-30 Tom Tromey <tromey@redhat.com>
5064 * symtab.c (search_symbols): Introduce a null cleanup for
5067 2013-05-30 Tom Tromey <tromey@redhat.com>
5069 * python/py-value.c (valpy_binop): Call do_cleanups before
5072 2013-05-30 Tom Tromey <tromey@redhat.com>
5074 * python/py-prettyprint.c (print_children): Remove extra
5077 2013-05-30 Tom Tromey <tromey@redhat.com>
5079 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5082 2013-05-30 Tom Tromey <tromey@redhat.com>
5084 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5085 along all return paths.
5087 2013-05-30 Tom Tromey <tromey@redhat.com>
5089 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5092 2013-05-30 Tom Tromey <tromey@redhat.com>
5094 * varobj.c (c_value_of_root): Call do_cleanups along all
5097 2013-05-30 Tom Tromey <tromey@redhat.com>
5099 * tracepoint.c (trace_dump_command): Unconditionally call
5102 2013-05-30 Tom Tromey <tromey@redhat.com>
5104 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5105 do_cleanups earlier.
5107 2013-05-30 Tom Tromey <tromey@redhat.com>
5109 * machoread.c (macho_symfile_read): Assign first cleanup to
5112 2013-05-30 Tom Tromey <tromey@redhat.com>
5114 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5116 2013-05-30 Tom Tromey <tromey@redhat.com>
5118 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5120 2013-05-30 Tom Tromey <tromey@redhat.com>
5122 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5123 call discard_cleanups.
5124 (inf_ptrace_attach): Likewise.
5126 2013-05-30 Tom Tromey <tromey@redhat.com>
5128 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5130 (mips_initialize): Likewise.
5131 (common_open): Call do_cleanups.
5133 2013-05-30 Tom Tromey <tromey@redhat.com>
5135 * utils.c (internal_vproblem): Call do_cleanups.
5137 2013-05-30 Tom Tromey <tromey@redhat.com>
5139 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5141 2013-05-30 Tom Tromey <tromey@redhat.com>
5143 * cli/cli-script.c (setup_user_args): Don't return after error.
5145 2013-05-30 Tom Tromey <tromey@redhat.com>
5147 * somread.c (som_symtab_read): Call do_cleanups.
5149 2013-05-30 Tom Tromey <tromey@redhat.com>
5151 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5153 2013-05-30 Tom Tromey <tromey@redhat.com>
5155 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5156 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5157 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5158 * source.c (show_substitute_path_command): Call do_cleanups.
5159 (unset_substitute_path_command, set_substitute_path_command):
5161 * symfile.c (load_command): Call do_cleanups.
5163 2013-05-30 Tom Tromey <tromey@redhat.com>
5165 * contrib/cleanup_check.py: New file.
5166 * contrib/gcc-with-excheck: Add option parsing.
5168 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5170 * windows-nat.c (windows_delete_thread): Add missing space
5173 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5175 * inferior.c (top level): Include tilde.h.
5176 (add_inferior_command): Call tilde_expand on the value of 'exec'
5179 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5180 Yao Qi <yao@codesourcery.com>
5182 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5184 (encode_actions): Likewise.
5185 * remote.c (remote_download_tracepoint): Caller update.
5186 * tracepoint.h (encode_actions): Update declaration.
5188 2013-05-30 Pedro Alves <palves@redhat.com>
5190 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5193 2013-05-30 Yao Qi <yao@codesourcery.com>
5195 * remote.c (remote_check_symbols): Remove unused parameter
5198 (remote_start_remote, remote_new_objfile): Caller update.
5200 2013-05-30 Yao Qi <yao@codesourcery.com>
5202 * mi/mi-cmds.c (mi_cmds): Define MI command
5203 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5206 2013-05-29 Pedro Alves <palves@redhat.com>
5208 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5209 (remote_insert_watchpoint, remote_remove_watchpoint)
5210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5211 (remote_verify_memory, compare_sections_command)
5212 (remote_search_memory): Set the general process/thread on the
5215 2013-05-29 Pedro Alves <palves@redhat.com>
5217 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5218 (_initialize_aarch64_tdep): Don't call
5219 initialize_tdesc_aarch64_without_fpu.
5220 * features/Makefile (WHICH): Remove reference to
5221 aarch64-without-fpu.
5222 * features/aarch64-without-fpu.c: Delete file.
5223 * regformats/aarch64-without-fpu.dat: Delete file.
5225 2013-05-28 Yao Qi <yao@codesourcery.com>
5227 * tracepoint.c (stringify_collection_list): Remove parameter
5229 (encode_actions): Caller update. Remove local variables.
5231 2013-05-24 Yao Qi <yao@codesourcery.com>
5233 * tracepoint.c (TFILE_PID): Remove.
5234 (tfile_open): Don't add thread and inferior.
5235 (tfile_close): Don't set 'inferior_ptid'. Don't call
5236 exit_inferior_silent.
5237 (tfile_thread_alive): Remove.
5238 (init_tfile_ops): Don't set field 'to_thread_alive' of
5241 2013-05-23 Doug Evans <dje@google.com>
5243 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5245 2013-05-23 Pedro Alves <palves@redhat.com>
5247 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5248 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5249 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5250 Only define if HAVE_SOCKETS is defined.
5251 * configure.ac: Check for sys/socket.h.
5252 * config.in, configure: Regenerate.
5254 2013-05-23 Pedro Alves <palves@redhat.com>
5256 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5257 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5258 printing uint32_t variables.
5260 2013-05-23 Pedro Alves <palves@redhat.com>
5262 * NEWS: Mention GDBserver range stepping support.
5264 2013-05-23 Yao Qi <yao@codesourcery.com>
5265 Pedro Alves <palves@redhat.com>
5267 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5269 * infcmd.c (step_once, until_next_command): Enable range stepping.
5270 * infrun.c (displaced_step_prepare): Disable range stepping.
5271 (resume): Disable range stepping if stepping over a breakpoint or
5272 we have software watchpoints. If range stepping is enabled,
5273 assert the thread is in the stepping range.
5274 (clear_proceed_status_thread): Clear may_range_step.
5275 (handle_inferior_event): Disable range stepping as soon as we know
5276 the thread that hit the event. Re-enable it whenever we're going
5277 to step with a step range.
5278 * remote.c (struct vCont_action_support) <r>: New field.
5279 (use_range_stepping): New global.
5280 (remote_vcont_probe): Handle 'r' action.
5281 (append_resumption): Append an 'r' action if the thread may range
5283 (show_range_stepping): New function.
5284 (set_range_stepping): New function.
5285 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5286 'set range-stepping' and 'show range-stepping' commands.
5287 * NEWS: Mention range stepping, the new vCont;r action, and the
5288 new "set/show range-stepping" commands.
5290 2013-05-23 Yao Qi <yao@codesourcery.com>
5291 Pedro Alves <palves@redhat.com>
5293 * remote.c (struct vCont_action_support): New struct.
5294 (struct remote_state) <support_vCont_t>: Remove field.
5295 <vCont_actions_support>: New field.
5296 (remote_vcont_probe, remote_stop_ns): Update.
5298 2013-05-23 Yao Qi <yao@codesourcery.com>
5299 Pedro Alves <palves@redhat.com>
5301 * gdbthread.h (pc_in_thread_step_range): New declaration.
5302 * thread.c (pc_in_thread_step_range): New function.
5303 * infrun.c (handle_inferior_event): Use it.
5305 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5307 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5310 2013-05-22 Keith Seitz <keiths@redhat.com>
5312 * ada-lang.c (is_known_support_routine): Add explicit free of
5313 'func_name' from find_frame_funname.
5314 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5315 for func_name from find_frame_funname.
5316 * python/py-frame.c (frapy_name): Add explicit free of
5317 'name' from find_frame_funname.
5318 * stack.c (find_frame_funname): Add comment explaining that
5319 funcp must be freed by the caller.
5320 Return copy of symbol names instead of pointers.
5321 (print_frame): Add a cleanup for 'funname' from
5323 * stack.h (find_frame_funname): Remove "const" from
5324 'funname' parameter.
5326 2013-05-22 Tom Tromey <tromey@redhat.com>
5329 * c-valprint.c (c_value_print): Use value_addr for
5330 references. Convert back to reference type with value_ref.
5332 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5334 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5335 unloaded DLL, it will be done by handle_solib_event. See
5336 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5339 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5341 * ui-out.c: Create typedef ui_out_level_p and define vector
5342 operations for that type.
5343 (struct ui_out): Use a vector instead of an array.
5344 (current_level): Return level from a vector.
5345 (push_level): Create a level in a vector.
5346 (pop_level): Delete a level in a vector.
5347 (ui_out_new): Create initial level zero level, and store in a
5349 (ui_out_destroy): Add vector cleanup.
5351 2013-05-22 Pedro Alves <palves@redhat.com>
5353 * python/python-internal.h (gdb_Py_DECREF): Tag with
5354 "ARI: editCase function".
5356 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5358 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5360 2013-05-21 Pedro Alves <palves@redhat.com>
5362 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5363 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5364 * python/py-utils.c (py_decref): Don't check for NULL before
5367 2013-05-21 Pedro Alves <palves@redhat.com>
5369 * python/py-utils.c (py_decref): Remove extra braces.
5370 (gdb_pymodule_addobject): Remove extra braces.
5371 * python-internal.h (gdb_Py_DECREF): New static inline function.
5372 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5374 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376 * breakpoints.c (detach_breakpoints): Do not
5377 detach breakpoints locations with loc_type bp_loc_other.
5379 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5381 Workaround Python 2.6.
5382 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5385 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 Code cleanup: constification.
5388 * solib.c (solib_ops): Make return type and ops variable type const.
5389 (set_solib_ops): Make the new_ops parameter and ops variable const.
5390 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5391 (solib_add, solib_keep_data_in_core, clear_solib)
5392 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5393 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5395 * solib.h (set_solib_ops): Make the new_ops parameter const.
5397 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5399 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5401 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5402 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5403 (SYSTEM_GDBINIT_FILES): New variables.
5404 (all): Add stamp-system-gdbinit.
5405 (stamp-system-gdbinit): New rule.
5406 (clean-system-gdbinit, install-system-gdbinit)
5407 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5408 (install-only): Add dependency on install-system-gdbinit.
5409 (uninstall): Add dependency on uninstall-system-gdbinit.
5410 (clean): Add dependency on clean-system-gdbinit.
5411 * system-gdbinit/elinos.py: New file.
5412 * system-gdbinit/wrs-linux.py: New file.
5414 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5416 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5418 2013-05-21 Hui Zhu <hui@codesourcery.com>
5420 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5421 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5422 * mi/mi-cmd-break.c (ctype.h): New include.
5423 (gdb_obstack.h): New include.
5424 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5425 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5426 (mi_cmd_dprintf_insert): New.
5427 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5428 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5430 2013-05-20 Tom Tromey <tromey@redhat.com>
5432 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5434 2013-05-20 Tom Tromey <tromey@redhat.com>
5436 * python/py-value.c (valpy_get_dynamic_type): Simplify
5437 dynamic_type assignment. Use Py_XINCREF.
5439 2013-05-20 Tom Tromey <tromey@redhat.com>
5441 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5443 2013-05-20 Tom Tromey <tromey@redhat.com>
5445 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5446 (gdbpy_selected_frame): Move object-construction code
5449 2013-05-20 Tom Tromey <tromey@redhat.com>
5451 * python/py-arch.c (gdbpy_initialize_arch): Use
5452 gdb_pymodule_addobject.
5453 * python/py-block.c (gdbpy_initialize_blocks): Use
5454 gdb_pymodule_addobject.
5455 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5456 gdb_pymodule_addobject.
5457 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5458 gdb_pymodule_addobject.
5459 * python/py-event.c (gdbpy_initialize_event_generic): Use
5460 gdb_pymodule_addobject.
5461 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5462 gdb_pymodule_addobject.
5463 * python/py-evts.c (add_new_registry): Use
5464 gdb_pymodule_addobject.
5465 (gdbpy_initialize_py_events): Likewise.
5466 * python/py-finishbreakpoint.c
5467 (gdbpy_initialize_finishbreakpoints): Use
5468 gdb_pymodule_addobject.
5469 * python/py-frame.c (gdbpy_initialize_frames): Use
5470 gdb_pymodule_addobject.
5471 * python/py-function.c (gdbpy_initialize_functions): Use
5472 gdb_pymodule_addobject.
5473 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5474 gdb_pymodule_addobject.
5475 * python/py-infthread.c (gdbpy_initialize_thread): Use
5476 gdb_pymodule_addobject.
5477 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5478 gdb_pymodule_addobject.
5479 * python/py-param.c (gdbpy_initialize_parameters): Use
5480 gdb_pymodule_addobject.
5481 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5482 gdb_pymodule_addobject.
5483 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5484 gdb_pymodule_addobject.
5485 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5486 gdb_pymodule_addobject.
5487 * python/py-type.c (gdbpy_initialize_types): Use
5488 gdb_pymodule_addobject.
5489 * python/py-utils.c (gdb_pymodule_addobject): New function.
5490 * python/py-value.c (gdbpy_initialize_values): Use
5491 gdb_pymodule_addobject.
5492 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5493 * python/python.c (_initialize_python): Use
5494 gdb_pymodule_addobject.
5496 2013-05-20 Tom Tromey <tromey@redhat.com>
5498 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5499 * python/py-param.c (get_set_value, get_show_value): Use
5501 * python/python.c (start_type_printers, apply_type_printers):
5502 Use explicit decrefs.
5504 2013-05-20 Tom Tromey <tromey@redhat.com>
5506 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5509 2013-05-20 Tom Tromey <tromey@redhat.com>
5511 * python/python.c (gdbpy_run_events): Decref the result
5512 of PyObject_CallObject.
5514 2013-05-20 Tom Tromey <tromey@redhat.com>
5516 * python/py-symtab.c (set_sal): Use
5517 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5518 (symtab_and_line_to_sal_object): Update.
5520 2013-05-20 Tom Tromey <tromey@redhat.com>
5522 * python/py-param.c (compute_enum_values): Decref 'item'.
5524 2013-05-20 Tom Tromey <tromey@redhat.com>
5526 * mi/mi-main.c: Include python-internal.h.
5527 (mi_cmd_list_features): Check gdb_python_initialized.
5528 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5529 (python_inferior_exit, python_new_objfile, add_thread_object)
5530 (delete_thread_object, py_free_inferior): Check
5531 gdb_python_initialized.
5532 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5533 gdb_python_initialized.
5534 * python/py-type.c (save_objfile_types): Check
5535 gdb_python_initialized.
5536 * python/python-internal.h (gdb_python_initialized): Declare.
5537 * python/python.c (ensure_python_env): Throw exception if
5538 Python not initialized.
5539 (before_prompt_hook, source_python_script_for_objfile)
5540 (start_type_printers, apply_type_printers,
5541 free_type_printers): Check gdb_python_initialized.
5542 * varobj.c (varobj_get_display_hint)
5543 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5544 (install_new_value_visualizer, varobj_set_visualizer)
5545 (value_get_print_value): Check gdb_python_initialized.
5547 2013-05-20 Tom Tromey <tromey@redhat.com>
5549 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5551 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5552 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5554 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5556 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5558 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5560 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5561 init function to return 'int'.
5562 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5563 Return 'int'. Check errors.
5564 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5566 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5567 Return 'int'. Check errors.
5568 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5570 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5572 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5574 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5576 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5578 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5580 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5582 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5584 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5586 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5588 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5590 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5592 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5594 * python/python-internal.h (gdbpy_initialize_auto_load,
5595 gdbpy_initialize_values, gdbpy_initialize_frames,
5596 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5597 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5598 gdbpy_initialize_blocks, gdbpy_initialize_types,
5599 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5600 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5601 gdbpy_initialize_finishbreakpoints,
5602 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5603 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5604 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5605 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5606 gdbpy_initialize_signal_event,
5607 gdbpy_initialize_breakpoint_event,
5608 gdbpy_initialize_continue_event,
5609 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5610 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5611 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5612 * python/python.c (gdb_python_initialized): New global.
5613 (gdbpy_initialize_events): Return 'int'. Check errors.
5614 (_initialize_python): Check errors. Set
5615 gdb_python_initialized.
5617 2013-05-20 Tom Tromey <tromey@redhat.com>
5619 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5620 Decref the reslut of PyObject_CallMethod.
5622 2013-05-20 Tom Tromey <tromey@redhat.com>
5624 * python/py-event.c (gdbpy_initialize_event_generic): Return
5625 early if PyType_Ready fails.
5627 2013-05-20 Tom Tromey <tromey@redhat.com>
5629 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5630 as 'default' in the switch.
5632 2013-05-20 Tom Tromey <tromey@redhat.com>
5634 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5635 get_addr_from_python calls out of TRY_CATCH.
5636 (infpy_write_memory, infpy_search_memory): Likewise.
5637 * python/py-utils.c (get_addr_from_python): Return negative
5638 value on error. Use TRY_CATCH.
5639 * python/python-internal.h (get_addr_from_python): Use
5640 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5642 2013-05-20 Tom Tromey <tromey@redhat.com>
5644 * python/py-event.c (evpy_emit_event): Decref the
5645 result of PyObject_CallFunctionObjArgs.
5647 2013-05-20 Tom Tromey <tromey@redhat.com>
5649 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5652 2013-05-20 Tom Tromey <tromey@redhat.com>
5654 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5656 2013-05-20 Tom Tromey <tromey@redhat.com>
5658 * python/py-event.h (gdbpy_initialize_event_generic): Use
5659 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5660 * python/py-evts.c (add_new_registry): Use
5661 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5662 * python/python-internal.h
5663 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5665 2013-05-20 Tom Tromey <tromey@redhat.com>
5667 * python/py-arch.c (archpy_disassemble): Update.
5668 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5669 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5670 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5671 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5673 (GDB_PY_HANDLE_EXCEPTION): Update.
5674 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5676 2013-05-20 Tom Tromey <tromey@redhat.com>
5678 * python/python-internal.h (events_object_type): Remove.
5680 2013-05-20 Tom Tromey <tromey@redhat.com>
5682 * python/py-event.h (evpy_emit_event): Use
5683 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5684 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5687 2013-05-20 Tom Tromey <tromey@redhat.com>
5689 * py-evtregistry.c (create_event_object): Decref
5690 eventregistry_object if PyList_New fails.
5692 2013-05-20 Tom Tromey <tromey@redhat.com>
5694 * py-cmd.c (gdbpy_string_to_argv): Check result of
5697 2013-05-20 Tom Tromey <tromey@redhat.com>
5699 * python/python.c (before_prompt_hook): Add cleanup to
5702 2013-05-20 Tom Tromey <tromey@redhat.com>
5704 * python/py-function.c (fnpy_init): Decref result of
5705 PyObject_GetAttrString.
5707 2013-05-20 Tom Tromey <tromey@redhat.com>
5709 * python/py-threadevent.c (get_event_thread): Use
5710 CPYCHECKER_RETURNS_BORROWED_REF.
5711 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5713 (pspace_to_pspace_object, objfile_to_objfile_object)
5714 (find_thread_object): Use it.
5716 2013-05-20 Tom Tromey <tromey@redhat.com>
5718 * python/py-arch.c (arch_object_type): Use
5719 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5720 * python/py-block.c (block_syms_iterator_object_type):
5721 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5722 * python/py-bpevent.c (breakpoint_event_object_type):
5723 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5724 * python/py-cmd.c (cmdpy_object_type): Use
5725 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5726 * python/py-continueevent.c (continue_event_object_type):
5727 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5728 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5729 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5730 * python/py-events.h (thread_event_object_type):
5731 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5732 * python/py-evtregistry.c (eventregistry_object_type): Use
5733 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5734 * python/py-exitedevent.c (exited_event_object_type):
5735 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5736 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5737 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5738 * python/py-function.c (fnpy_object_type): Use
5739 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5740 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5741 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5742 * python/py-infthread.c (thread_object_type): Use
5743 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5744 * python/py-lazy-string.c (lazy_string_object_type):
5745 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5746 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5747 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5748 * python/py-objfile.c (objfile_object_type): Use
5749 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5750 * python/py-param.c (parmpy_object_type):
5751 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5752 * python/py-progspace.c (pspace_object_type):
5753 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5754 * python/py-signalevent.c (signal_event_object_type):
5755 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5756 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5757 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5758 * python/py-type.c (type_object_type, field_object_type)
5759 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5760 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5762 (value_object_type, block_object_type, symbol_object_type)
5763 (event_object_type, stop_event_object_type, breakpoint_object_type)
5764 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5766 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5768 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5769 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5771 2013-05-20 Doug Evans <dje@google.com>
5773 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5775 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5776 reading_dwo_directly.
5777 (struct signatured_type): New member dwo_unit.
5778 (struct die_reader_specs): New member comp_dir.
5779 (create_signatured_type_table_from_index): Use malloc for
5780 all_type_units instead of objfile's obstack.
5781 (create_all_type_units): Ditto.
5782 (fill_in_sig_entry_from_dwo_entry): New function.
5783 (add_type_unit): New function.
5784 (lookup_dwo_signatured_type): New function.
5785 (lookup_dwp_signatured_type): New function.
5786 (lookup_signatured_type): New arg cu. All callers updated.
5787 (init_cu_die_reader): Initialize comp_dir.
5788 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5789 Change assert of matching type signatures to call error on mismatch.
5790 (lookup_dwo_unit): Add assert.
5791 (init_tu_and_read_dwo_dies): New function.
5792 (init_cutu_and_read_dies): Call it.
5793 (build_type_unit_groups): Handle case of no type unit groups created.
5794 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5795 (lookup_dwo_cutu): Tweak complaint.
5796 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5797 (dwarf2_per_objfile_free): Free all_type_units.
5799 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5801 * windows-nat.c (handle_unload_dll): Add missing empty line.
5803 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5805 * dwarf2read.c (prototyped_function_p): New function.
5806 (read_subroutine_type): Use it.
5808 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5810 * rs6000-aix-tdep.c: De-indent some example code provided
5813 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5815 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5816 region is ok for a hardware watchpoint using the new ptrace interface
5819 2013-05-17 Doug Evans <dje@google.com>
5821 * NEWS: Mention new maintenance commands check-symtabs, and
5822 expand-symtabs, and renamed check-psymtabs.
5823 * psymtab.c (maintenance_check_psymtabs): Renamed from
5824 maintenance_check_symtabs. Only process already-expanded symbol
5826 (_initialize_psymtab): Update.
5827 * symmisc.c (maintenance_check_symtabs): New function.
5828 (maintenance_expand_name_matcher): New function
5829 (maintenance_expand_file_matcher): New function
5830 (maintenance_expand_symtabs): New function.
5831 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5834 2013-05-17 Tom Tromey <tromey@redhat.com>
5836 * python/py-inferior.c (infpy_read_memory): Don't call
5837 PyErr_SetString if PyObject_New fails.
5838 * python/py-frame.c (frame_info_to_frame_object): Don't call
5839 PyErr_SetString if PyObject_New fails.
5841 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5843 * acinclude.m4: Add check for dlopen in libdl.
5844 * configure.ac: Ditto.
5845 * configure: Regenerate.
5847 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5849 * frame.c (frame_stash): Convert to htab.
5850 (frame_addr_hash): New function.
5851 (frame_addr_hash_eq): New function.
5852 (frame_stash_create): Convert function to create
5854 (frame_stash_add): Convert function to add an entry to a hash
5856 (frame_stash_find): Convert function to search the hash table.
5857 (frame_stash_invalidate): Convert function to empty the hash
5859 (get_frame_id): Only add to stash if a frame_id is created.
5860 (_initialize_frame): Call frame_stash_create.
5862 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5864 * configure.ac: Ensure MIG is available when building for GNU Hurd
5866 * configure: Regenerate.
5868 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5870 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5872 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5874 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5875 all cleanups are done before returning from this function.
5877 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5879 * utils.h: #include "exceptions.h".
5880 (enum errors): Remove partial declaration.
5882 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5884 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5885 * gdbarch.h, gdbarch.c: Regenerate.
5886 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5889 * rs6000-aix-tdep.h: New file.
5890 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5891 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5893 (struct field_info, struct ld_info_desc): New types.
5894 (ld_info32_desc, ld_info64_desc): New static constants.
5895 (struct ld_info): New type.
5896 (rs6000_aix_extract_ld_info): New function.
5897 (rs6000_aix_shared_library_to_xml): Likewise.
5898 (rs6000_aix_ld_info_to_xml): Likewise.
5899 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5900 (rs6000_aix_init_osabi): Add call to
5901 set_gdbarch_core_xfer_shared_libraries_aix.
5902 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5903 Remove "xml-utils.h" include.
5904 (LdInfo): Delete typedef.
5905 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5907 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5908 Adjust code accordingly.
5909 (rs6000_core_ldinfo): Delete, folded into
5910 rs6000_aix_core_xfer_shared_libraries_aix.
5911 (rs6000_xfer_shared_library): Delete.
5912 (rs6000_xfer_shared_libraries): Reimplement.
5914 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5916 * record.c (record_goto_cmdlist): New.
5917 (cmd_record_goto): Split into this ...
5918 (cmd_record_goto_begin): ... this
5919 (cmd_record_goto_end): ... and this.
5920 (_initialize_record): Change "record goto" to prefix command.
5921 Add commands for "record goto begin" and "record goto end".
5922 Add an alias for "record goto start" to "record goto begin".
5924 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5926 * linespec.c (convert_linespec_to_sals): New comment for
5927 SOURCE_FILENAME assignment.
5929 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5931 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5934 2013-05-14 Tom Tromey <tromey@redhat.com>
5936 * eval.c (parse_and_eval_long): Make 'exp' const.
5937 * value.h (parse_and_eval_long): Update.
5939 2013-05-14 Tom Tromey <tromey@redhat.com>
5941 * ui-file.c (gdb_fopen): Make arguments const.
5942 * ui-file.h (gdb_fopen): Make arguments const.
5944 2013-05-14 Tom Tromey <tromey@redhat.com>
5946 * remote.c (remote_set_trace_notes): Make arguments const.
5947 * target.c (update_current_target): Update cast.
5948 * target.h (to_set_trace_notes): Make arguments const.
5950 2013-05-14 Tom Tromey <tromey@redhat.com>
5952 * go32-nat.c (go32_terminal_info): Make 'args' const.
5953 * inferior.h (child_terminal_info): Update.
5954 * inflow.c (child_terminal_info): Make 'args' const.
5955 * target.c (default_terminal_info): Make 'args' const.
5956 (debug_to_terminal_save_ours): Likewise.
5957 * target.h (struct target_ops) <to_terminal_info>: Make argument
5960 2013-05-13 Tom Tromey <tromey@redhat.com>
5962 * gcore.c (create_gcore_bfd): Make 'filename' const.
5963 * gcore.h (create_gcore_bfd): Make 'filename' const.
5964 * record-full.c (record_full_save): Make 'recfilename' const.
5965 * target.c (target_save_record): Make 'filename' const.
5966 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5968 (target_save_record): Likewise.
5970 2013-05-13 Tom Tromey <tromey@redhat.com>
5973 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5974 ranges section has been read.
5976 2013-05-13 Tom Tromey <tromey@redhat.com>
5979 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5980 STRUCTOP_PTR>: Return a not_lval value for
5981 EVAL_AVOID_SIDE_EFFECTS.
5982 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5983 for EVAL_AVOID_SIDE_EFFECTS.
5985 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5987 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5988 floating point registers to register type before storing
5990 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5993 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5994 Tom Tromey <tromey@redhat.com>
5996 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5998 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6000 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6001 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6002 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6003 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6005 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6006 Tom Tromey <tromey@redhat.com>
6009 * configure: Rebuild.
6010 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6013 2013-05-10 Pedro Alves <palves@redhat.com>
6015 * remote.c (_initialize_remote): Fix spelling of
6016 qXfer:traceframe-info:read packet in packet config command.
6018 2013-05-10 David Taylor <dtaylor@emc.com>
6022 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6023 "QTro" at start of packet.
6025 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6027 * solib-aix.c (solib_aix_relocate_section_addresses):
6028 For the .bss section action, apply the same offset as
6031 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6033 * solib-aix.c (solib_aix_relocate_section_addresses):
6034 Remove FIXME comment.
6036 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6039 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6040 New functions, directly copied from sparc-sol-thread.c.
6041 * sparc-sol-thread.c: Delete.
6042 * configure.ac: Remove code handling sparc-solaris-thread.c.
6043 * configure: Regenerate.
6045 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6047 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6049 (backtrace_command): Add "no-filters" option parsing.
6050 (_initialize_stack): Alter help to reflect "no-filters" option.
6051 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6052 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6053 (py-frame.o): Add target
6054 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6056 * python/python.h: Add new frame filter constants, and flag enum.
6057 (apply_frame_filter): Add definition.
6058 * python/python.c (apply_frame_filter): New non-Python
6060 * python/py-utils.c (py_xdecref): New function.
6061 (make_cleanup_py_xdecref): Ditto.
6062 * python/py-objfile.c: Declare frame_filters dictionary.
6063 (objfpy_dealloc): Add frame_filters dealloc.
6064 (objfpy_new): Initialize frame_filters attribute.
6065 (objfile_to_objfile_object): Ditto.
6066 (objfpy_get_frame_filters): New function.
6067 (objfpy_set_frame_filters): New function.
6068 * python/py-progspace.c: Declare frame_filters dictionary.
6069 (pspy_dealloc): Add frame_filters dealloc.
6070 (pspy_new): Initialize frame_filters attribute.
6071 (pspacee_to_pspace_object): Ditto.
6072 (pspy_get_frame_filters): New function.
6073 (pspy_set_frame_filters): New function.
6074 * python/py-framefilter.c: New file.
6075 * python/lib/gdb/command/frame_filters.py: New file.
6076 * python/lib/gdb/frames.py: New file.
6077 * python/lib/gdb/__init__.py: Initialize global frame_filters
6079 * python/lib/gdb/FrameDecorator.py: New file.
6080 * python/lib/gdb/FrameIterator.py: New file.
6081 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6082 * mi/mi-cmds.h: Declare.
6083 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6084 --no-frame-filter logic, and Python frame filter logic.
6085 (stack_enable_frame_filters): New function.
6086 (parse_no_frame_option): Ditto.
6087 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6089 (mi_cmd_stack_list_locals): Ditto.
6090 (mi_cmd_stack_list_args): Ditto.
6091 (mi_cmd_stack_list_variables): Ditto.
6092 * NEWS: Add frame filter note.
6094 2013-05-09 Doug Evans <dje@google.com>
6096 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6097 All callers updated.
6098 (syms_from_objfile): Ditto. Make static.
6099 (symbol_file_add_with_addrs): Renamed from
6100 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6101 num_offsets. All callers updated.
6102 * symfile.h (syms_from_objfile): Delete.
6104 * symfile.c (decrement_reading_symtab): Add assert.
6105 (increment_reading_symtab): Ditto.
6107 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6109 * source.c (forward_search_command): Replace call to getc
6111 (reverse_search_command): Likewise.
6113 2013-05-08 Doug Evans <dje@google.com>
6115 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6118 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6120 * sol-thread.c (info_cb): Factorize the code a little.
6122 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6124 * sol-thread.c (info_cb): Rework the output of the "maintenance
6125 info sol-threads" command a bit.
6127 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6129 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6130 Replace ti.ti_startfunc by ti.ti_pc.
6132 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6134 * solib-aix.c (solib_aix_free_library_list): New function
6135 for the case where HAVE_LIBEXPAT is not defined.
6137 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6139 PR breakpoints/15413:
6140 * breakpoint.c (condition_completer): Simplify the code to
6141 disconsider multiple locations of breakpoints when completing the
6142 "condition" command.
6144 2013-05-07 Pierre Muller <muller@sourceware.org>
6146 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6147 instead of <sys/wait.h>.
6149 2013-05-07 Pierre Muller <muller@sourceware.org>
6151 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6152 trailing new line from warning message.
6154 2013-05-07 Pierre Muller <muller@sourceware.org>
6156 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6157 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6159 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6161 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6162 error message (ARI fix).
6164 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6166 * features/library-list-aix.dtd: Replace library-list by
6168 * rs6000-nat.c: Replace library-list by library-list-aix
6170 * solib-aix.c: Likewise.
6172 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6174 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6175 Renames TARGET_OBJECT_AIX_LIBRARIES.
6176 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6177 TARGET_OBJECT_LIBRARIES_AIX throughout.
6178 * solib-aix.c: Likwise.
6180 2013-05-07 Yao Qi <yao@codesourcery.com>
6182 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6183 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6185 2013-05-07 Yao Qi <yao@codesourcery.com>
6187 * solib-dsbt.c (enable_break): Declare.
6188 (dsbt_current_sos): Remove call to enable_break2.
6189 (enable_break2): Rename to enable_break. Set solib breakpoint
6190 on '_dl_debug_state'.
6191 (enable_break): Remove.
6193 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6195 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6196 debug state prior to replicating existing hardware watchpoints or
6199 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6201 * gcore.c (gcore_create_callback): Ignore sections with
6202 separate_debug_objfile_backlink != NULL.
6204 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6205 Andrew Jenner <andrew@codesourcery.com>
6206 Chung-Lin Tang <cltang@codesourcery.com>
6207 Julian Brown <julian@codesourcery.com>
6209 Based on the nios2-elf port from Altera Corporation.
6211 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6213 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6214 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6215 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6216 * nios2-tdep.h: New.
6217 * nios2-tdep.c: New.
6218 * nios2-linux-tdep.c: New.
6219 * features/Makefile (WHICH): Add nios2-linux.
6220 (nios2-linux-expedite): Set.
6221 * features/nios2-cpu.xml: New.
6222 * features/nios2.xml: New.
6223 * features/nios2-linux.xml: New.
6224 * features/nios2.c: New (autogenerated).
6225 * features/nios2-linux.c: New (autogenerated).
6226 * regformats/nios2-linux.dat: New (autogenerated).
6227 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6230 2013-05-06 Doug Evans <dje@google.com>
6232 * symfile.c: Whitespace cleanup.
6234 * solist.h (struct target_so_ops): New member clear_so.
6235 * solib-svr4.c (svr4_clear_so): New function.
6236 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6237 * solib.c (clear_so): Renamed from free_so_symbols.
6238 All callers updated. Call target clear_so if it exists.
6240 2013-05-06 Tom Tromey <tromey@redhat.com>
6242 * ada-lang.c (ada_value_primitive_packed_val): Don't
6244 * value.c (set_value_parent): Incref the new parent and decref
6246 (value_copy, value_primitive_field): Use set_value_parent.
6248 2013-05-06 Tom Tromey <tromey@redhat.com>
6250 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6251 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6253 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6254 * dwarf2read.c (write_constant_as_bytes)
6255 (dwarf2_fetch_constant_bytes): New functions.
6257 2013-05-06 Tom Tromey <tromey@redhat.com>
6259 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6261 (dwarf2_const_value_attr): Update.
6263 2013-05-06 Tom Tromey <tromey@redhat.com>
6265 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6266 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6267 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6270 2013-05-06 Tom Tromey <tromey@redhat.com>
6272 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6275 2013-05-06 Doug Evans <dje@google.com>
6277 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6278 * stabsread.h (process_one_symbol): Update declaration.
6279 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6280 * elfread.c (elf_symfile_relocate_probe): Ditto.
6281 * psymtab.c (relocate_psymtabs): Ditto.
6282 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6283 (objfile_relocate): Ditto.
6284 * objfiles.h (objfile_relocate): Update declaration.
6285 * symfile.c (relative_addr_info_to_section_offsets): Constify
6287 (default_symfile_offsets): Ditto.
6288 (syms_from_objfile_1): Constify offsets parameter.
6289 (syms_from_objfile): Ditto.
6290 (symbol_file_add_with_addrs_or_offsets): Ditto.
6291 (symfile_map_offsets_to_segments): Constify data parameter.
6292 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6293 delta parameters of member relocate.
6294 (struct sym_probe_fns): Constify new_offsets,
6295 delta parameters of member sym_relocate_probe.
6296 (struct sym_fns): Constify section_addr_info parameter of member
6298 (relative_addr_info_to_section_offsets): Update declaration.
6299 (default_symfile_offsets): Ditto.
6300 (syms_from_objfile): Ditto.
6301 (symfile_map_offsets_to_segments): Ditto.
6303 * symfile.c (syms_from_objfile_1): Use correct section count when
6304 objfile->sf == NULL.
6306 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6308 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6310 2013-05-06 Doug Evans <dje@google.com>
6312 * psympriv.h (struct partial_symtab): Augment comment for member
6315 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6317 Reimplement shared library support on ppc-aix...
6318 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6319 * features/library-list-aix.dtd: New file.
6320 * solib-aix.h, solib-aix.c: New file.
6321 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6322 (rs6000_find_toc_address_hook): Delete.
6323 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6324 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6325 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6327 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6328 (vmap_symtab, fixup_breakpoints): Delete.
6329 (rs6000_xfer_shared_libraries): New function.
6330 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6331 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6332 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6333 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6334 (rs6000_xfer_shared_library): New function.
6335 (find_toc_address): Delete.
6336 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6337 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6338 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6339 before creating minimal symbol. Adjust function description
6341 (scan_xcoff_symtab): Replace call to
6342 prim_record_minimal_symbol_and_info by call to
6343 record_minimal_symbol.
6344 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6345 around default_symfile_offsets.
6346 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6347 powerpc-aix targets.
6348 * config/rs6000/nm-rs6000.h: Delete.
6349 * config/powerpc/aix.mh (NAT_FILE): Delete.
6350 (NATDEPFILES): Remove xcoffsolib.o.
6351 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6352 (ALL_TARGET_OBS): Add solib-aix.o.
6353 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6354 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6355 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6356 * xcoffsolib.h, xcoffsolib.c: Delete.
6358 * solib.c (reload_shared_libraries): Remove reference to
6359 SOLIB_CREATE_INFERIOR_HOOK.
6360 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6361 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6362 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6364 * corelow.c (deprecated_core_resize_section_table): Delete.
6365 * exec.c: Remove include of xcoffsolib.h".
6366 (map_vmap, vmap): Delete.
6367 (exec_close_1): Remove references to vmap.
6368 (exec_file_attach): Remove vmap handling code, and reference
6369 to DEPRECATED_IBM6000_TARGET.
6370 (bfdsec_to_vmap): Delete.
6371 (exec_files_info): Remove block of code handling VMAP.
6372 * infcmd.c (post_create_inferior): Remove reference to
6373 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6374 * infrun.c (follow_exec): Remove reference to
6375 SOLIB_CREATE_INFERIOR_HOOK.
6376 * stack.c (print_frame): Remove reference to PC_SOLIB.
6377 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6378 (dsbt_relocate_main_executable): Likewise.
6379 * solib-frv.c (frv_current_sos): Likewise.
6381 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6383 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6384 to target_write_memory and target_read_memory.
6386 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6388 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6389 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6391 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6393 * darwin-nat.c: Replace all "%x" instances in format strings
6394 into "0x%x" throughout.
6396 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6398 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6399 gdb_assert by call to MACH_CHECK_ERROR.
6400 (darwin_attach_pid): Raise an error rather than a failed
6401 assertion when various system calls failed. Report a warning
6402 instead of raising a failed assertion when PREV_NOT is not NULL
6403 after call to mach_port_request_notification.
6404 (darwin_ptrace_me): Raise an error rather than a failed
6405 assertion when read returns nonzero.
6407 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6409 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6411 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6415 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6417 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6418 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6419 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6420 a stale cleanup. Fix double free of NAME.
6422 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6424 * windows-nat.c (windows_delete_thread): Accept an additional
6425 argument, the thread's exit code, and announce thread death when
6426 print_thread_events is non-zero and we are deleting a thread that
6427 is not the main thread.
6428 (get_windows_debug_event): Pass thread exit code to
6429 windows_delete_thread.
6431 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6433 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6434 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6435 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6436 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6437 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6438 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6439 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6440 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6441 (gdbarch_tdep): New struct.
6442 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6444 (v850e3v5_register_name): New function.
6445 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6446 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6447 code handling the struct return conventions for the RH850 ABI.
6449 (v850_eight_byte_align_p): New function.
6450 (v850_push_call_dummy): Push structs by value, not by reference
6451 for the RH850 ABI. Add support for eight byte alignment.
6452 (v850_dbtrap_breakpoint_from_pc): New function.
6453 (v850_gdbarch_init): Add ABI detection code. Register
6454 v850e3v5_register_name for the v850e3v5 architecture. Set the
6455 number of registers for v850e3v5. Register
6456 v850_dbtrap_breakpoint_from_pc as appropriate.
6457 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6459 2013-05-03 Doug Evans <dje@google.com>
6461 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6462 of bfd_count_sections.
6463 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6464 * symfile.c (default_symfile_offsets): Ditto.
6465 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6466 one entry, not bfd_count_sections entries.
6468 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6470 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6471 `save' and `restore' register groups. Don't include SPL
6472 or SPH in these groups.
6473 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6474 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6475 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6476 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6477 dwarf2_append_unwinders().
6479 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6481 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6482 ignore SIGINT and SIGTRAP in case these internal signals are
6485 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6487 * darwin-nat.c (darwin_read_write_inferior): Change types
6488 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6489 of copy_count to "mach_msg_type_number_t".
6490 (darwin_read_dyld_info): Change type of parameter
6491 rdaddr to "gdb_byte *".
6493 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6495 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6496 of &info->load_map from "char *" to "gdb_byte *".
6498 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6500 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6501 from "char *" to "gdb_byte *".
6502 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6504 2013-04-30 Doug Evans <dje@google.com>
6506 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6507 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6508 DWO stub. If DWO isn't found, just use stub.
6509 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6511 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6512 calling init_cutu_and_read_dies.
6514 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6516 * target-descriptions.c (maint_print_c_tdesc_cmd):
6517 Add case to parse structures as register types and
6520 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6522 * MAINTAINERS (Write After Approval): Add myself to the list.
6524 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6526 * sol-thread.c (rw_common): Change type of parameter "buf"
6528 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6529 rw_common to "gdb_byte *" instead of "char *".
6531 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6533 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6534 of local variable msym to const struct bound_minimal_symbol.
6535 Adjust use accordingly.
6536 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6538 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6540 * i386gnu-nat.c (CREG_OFFSET): New macro.
6541 (creg_offset): New array.
6542 (CREG_ADDR): Use creg_offset instead of reg_offset.
6544 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6546 * mep-tdep.c (mep_write_pc): Delete.
6547 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6548 Add call to set_gdbarch_pc_regnum.
6550 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6552 * common/filestuff.c: Replace #include <dirent.h> by
6553 #include "gdb_dirent.h".
6555 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6557 * common/filestuff.c: Replace #include <sys/stat.h> by
6558 #include "gdb_stat.h".
6560 2013-04-29 Pierre Muller <muller@sourceware.org>
6562 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6563 editCase function rule.
6564 (get_DW_AT_signature_type): Likewise.
6566 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6568 * m32r-tdep.c (m32r_write_pc): Delete.
6569 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6570 Add call to set_gdbarch_pc_regnum.
6572 2013-04-29 Pierre Muller <muller@sourceware.org>
6574 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6576 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6578 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6580 2013-04-28 Yao Qi <yao@codesourcery.com>
6582 * solib-dsbt.c (fetch_loadmap): Re-indent.
6583 (displacement_from_map, enable_break2): Likewise.
6584 (dsbt_relocate_section_addresses): Likewise.
6586 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6590 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6593 * dwarf2read.c (process_full_comp_unit): Always create a static
6596 2013-04-25 Hui Zhu <hui@codesourcery.com>
6598 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6599 to loc->cmd_bytecode.
6601 2013-04-24 Doug Evans <dje@google.com>
6603 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6605 2013-04-22 Keith Seitz <keiths@redhat.com>
6607 * tracepoint.c (trace_save): Call the writer's start method.
6609 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6612 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6615 2013-04-23 Tom Tromey <tromey@redhat.com>
6617 * common/filestuff.c: Check USE_WIN32API before including
6619 (HAVE_F_GETFD): New define.
6620 (mark_cloexec): Check HAVE_F_GETFD.
6621 (gdb_open_cloexec): Change 'mode' to unsigned long.
6622 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6623 (gdb_pipe_cloexec): Check HAVE_PIPE.
6624 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6627 2013-04-23 Hui Zhu <hui@codesourcery.com>
6630 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6632 2013-04-23 Hui Zhu <hui@codesourcery.com>
6635 * breakpoint.c (dprintf_print_recreate): New.
6636 (save_breakpoints): Let it not save dprintf commands.
6637 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6639 2013-04-22 Tom Tromey <tromey@redhat.com>
6642 * Makefile.in (SFILES): Add filestuff.c
6643 (COMMON_OBS): Add filestuff.o.
6644 (filestuff.o): New target.
6645 * auto-load.c (auto_load_objfile_script_1): Use
6647 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6648 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6649 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6650 * common/agent.c (gdb_connect_sync_socket): Use
6652 * common/filestuff.c: New file.
6653 * common/filestuff.h: New file.
6654 * common/linux-osdata.c (linux_common_core_of_thread)
6655 (command_from_pid, commandline_from_pid, print_source_lines)
6656 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6657 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6659 * common/linux-procfs.c (linux_proc_get_int)
6660 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6661 * config.in, configure: Rebuild.
6662 * configure.ac: Don't check for sys/socket.h. Check for
6664 * corelow.c (core_open): Use gdb_open_cloexec.
6665 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6666 * fork-child.c (fork_inferior): Call close_most_fds.
6667 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6668 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6669 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6670 Use gdb_fopen_cloexec.
6671 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6673 (linux_async_pipe): Use gdb_pipe_cloexec.
6674 * remote-fileio.c (remote_fileio_func_open): Use
6676 * remote.c (remote_file_put, remote_file_get): Use
6678 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6680 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6681 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6682 * solib.c (solib_find): Use gdb_open_cloexec.
6683 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6684 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6685 (tfile_open): Use gdb_open_cloexec.
6686 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6687 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6688 * xml-support.c (xml_fetch_content_from_file): Use
6690 * main.c (captured_main): Call notice_open_fds.
6692 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6694 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6695 'char *' to 'gdb_byte *'.
6696 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6699 2013-04-22 Yao Qi <yao@codesourcery.com>
6701 * infrun.c: Fix typo in comment.
6703 2013-04-22 Andrew Haley <aph@redhat.com>
6705 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6708 2013-04-20 Yao Qi <yao@codesourcery.com>
6710 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6711 'char *' to 'gdb_byte *'. Cast the return value of
6712 'bt_ctf_get_char_array' to 'gdb_byte *'.
6714 2013-04-19 Pedro Alves <palves@redhat.com>
6716 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6718 * configure: Regenerate.
6720 2013-04-19 Pedro Alves <palves@redhat.com>
6722 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6725 2013-04-19 Pedro Alves <palves@redhat.com>
6727 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6728 Change type of 'myaddr' parameter to gdb_byte pointer.
6729 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6730 to 'long long' pointer instead of to 'unsigned long long'.
6731 (monitor_write_memory_block, monitor_read_memory_single)
6732 (monitor_read_memory): Change type of 'myaddr' parameter to
6735 2013-04-19 Pedro Alves <palves@redhat.com>
6737 * record.c (validate_history_size): Make parameter 'setting'
6740 2013-04-19 Pedro Alves <palves@redhat.com>
6742 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6745 2013-04-19 Pedro Alves <palves@redhat.com>
6747 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6750 2013-04-19 Pedro Alves <palves@redhat.com>
6752 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6753 * ada-tasks.c (read_fat_string_value): Likewise.
6755 2013-04-19 Pedro Alves <palves@redhat.com>
6757 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6758 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6759 'offset', and adjust.
6761 2013-04-19 Pedro Alves <palves@redhat.com>
6763 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6764 (read_index_from_section): Add cast to 'char *'.
6766 2013-04-19 Pedro Alves <palves@redhat.com>
6768 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6770 2013-04-19 Pedro Alves <palves@redhat.com>
6772 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6774 2013-04-19 Pedro Alves <palves@redhat.com>
6776 * record-full.c (record_full_get_bookmark): Change local 'ret'
6777 type to char * and add cast to gdb_byte *.
6778 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6780 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6782 2013-04-19 Pedro Alves <palves@redhat.com>
6784 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6785 * python/py-prettyprint.c (print_string_repr): Change type of
6786 'output' local to char *. Add cast to gdb_byte * in
6787 LA_PRINT_STRING call.
6788 (print_children): Change type of 'output' local to char *.
6789 * python/py-value.c (valpy_string): Add cast to const char * in
6790 PyUnicode_Decode call.
6792 2013-04-19 Pedro Alves <palves@redhat.com>
6794 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6795 and change its type to 'const char *'. Adjust.
6796 (mips_send_packet): Add cast to 'char *', and remove cast to
6798 (mips_receive_packet): Remove cast to 'unsigned char *'.
6799 (mips_load_srec): Use bfd_byte.
6800 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6801 (pmon_checkset): Make 'value' parameter unsigned.
6803 2013-04-19 Pedro Alves <palves@redhat.com>
6805 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6807 2013-04-19 Pedro Alves <palves@redhat.com>
6809 * remote.c (remote_write_bytes_aux, compare_sections_command)
6811 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6812 (remote_hostio_readlink, remote_bfd_iovec_pread)
6813 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6814 binary buffer, and char when buffer is used as string.
6815 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6816 (trace_save, tfile_open, traceframe_walk_blocks)
6817 (tfile_fetch_registers): Likewise.
6819 2013-04-19 Pedro Alves <palves@redhat.com>
6821 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6822 buffer and size_t size. Adjust.
6823 * ser-base.h (ser_base_write): Adjust.
6824 * ser-go32.c (cnts): Change type to size_t.
6825 (dos_write): Change prototype -- take 'void *'
6826 buffer and size_t size. Adjust.
6827 (dos_info): Print elements of 'cnts' as unsigned long.
6828 * serial.c (serial_write): Likewise.
6829 * serial.h (serial_write): Adjust.
6830 (struct serial_ops) <write>: Change prototype -- take 'void *'
6831 buffer and size_t size. Adjust.
6833 2013-04-19 Pedro Alves <palves@redhat.com>
6835 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6837 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6839 2013-04-19 Pedro Alves <palves@redhat.com>
6841 * alpha-tdep.c (alpha_extract_return_value): Use
6842 regcache_cooked_read_unsigned to read 'v0'.
6844 2013-04-19 Pedro Alves <palves@redhat.com>
6846 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6847 parameters 'at', 'as' and 'offset' to uint32_t.
6849 2013-04-19 Pedro Alves <palves@redhat.com>
6851 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6852 'is64' to signed 'int'.
6854 2013-04-19 Pedro Alves <palves@redhat.com>
6856 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6859 2013-04-19 Pedro Alves <palves@redhat.com>
6861 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6862 'insnbuf' buffer type to unsigned int[].
6864 2013-04-19 Pedro Alves <palves@redhat.com>
6866 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6868 2013-04-19 Pedro Alves <palves@redhat.com>
6870 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6873 2013-04-19 Pedro Alves <palves@redhat.com>
6875 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6876 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6878 * mips-tdep.c (heuristic_fence_post): Change type to int.
6879 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6881 2013-04-19 Pedro Alves <palves@redhat.com>
6883 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6884 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6885 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6887 2013-04-19 Pedro Alves <palves@redhat.com>
6889 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6890 it to get a string view of the byte buffer.
6891 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6892 type to gdb_byte *. Adjust.
6893 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6894 Change local to char *.
6895 * solib-darwin.c (find_program_interpreter): Change return type to
6897 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6898 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6899 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6900 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6901 * solib-svr4.c (find_program_interpreter): Change return type to
6903 (enable_break): Change local 'interp_name' to char *.
6904 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6905 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6906 (spu_pseudo_register_write_spu): Use char for string buffer.
6908 (info_spu_event_command, info_spu_signal_command): Add casts to
6911 2013-04-19 Pedro Alves <palves@redhat.com>
6913 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6915 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6916 * ada-lang.c (ada_value_assign): Use gdb_byte.
6917 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6918 (alphanbsd_sigtramp_offset): Use gdb_byte.
6919 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6920 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6921 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6922 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6923 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6924 * arm-tdep.c (arm_stub_unwind_sniffer)
6925 (arm_displaced_init_closure): Use gdb_byte.
6926 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6927 (arm_default_thumb_le_breakpoint)
6928 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6929 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6930 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6931 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6932 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6933 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6934 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6935 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6936 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6937 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6938 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6939 (cris_store_return_value, cris_extract_return_value): Use
6941 (constraint): Change type of parameter to char * from signed
6942 char*. Use gdb_byte.
6943 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6944 of local buffer to gdb_byte *.
6945 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6946 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6947 (add_address_entry): Change type of local buffer to gdb_byte[].
6948 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6949 (frv_push_dummy_call): Use gdb_byte.
6950 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6951 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6952 (hppa_hpux_supply_save_state): Use gdb_byte.
6953 * hppa-tdep.c (hppa32_push_dummy_call)
6954 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6955 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6956 (slotN_contents, replace_slotN_contents): Change type of parameter
6958 (fetch_instruction, ia64_pseudo_register_write)
6959 (ia64_register_to_value, ia64_value_to_register)
6960 (ia64_extract_return_value, ia64_store_return_value)
6961 (ia64_push_dummy_call): Use gdb_byte.
6962 * m32c-tdep.c (m32c_return_value): Remove cast.
6963 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6964 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6966 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6967 * mn10300-tdep.c (mn10300_store_return_value)
6968 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6970 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6971 (moxie_process_record): Remove casts.
6972 * ppc-ravenscar-thread.c (supply_register_at_address)
6973 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6974 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6975 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6976 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6977 * remote.c (compare_sections_command): Use gdb_byte.
6978 * score-tdep.c (score7_free_memblock): Change type of parameter to
6980 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6981 gdb_byte *. Use gdb_byte.
6982 (sh_push_dummy_call_fpu): Use gdb_byte.
6983 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6984 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6985 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6986 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6987 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6988 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6989 (sh64_store_return_value, sh64_register_convert_to_virtual):
6990 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6991 (sh64_pseudo_register_write): Use gdb_byte.
6992 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6993 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6995 (irix_current_sos): Use gdb_byte.
6996 * solib-som.c (som_current_sos): Use gdb_byte.
6997 * sparc-ravenscar-thread.c (supply_register_at_address)
6998 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6999 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7000 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7001 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7003 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7005 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7006 * xstormy16-tdep.c (xstormy16_extract_return_value)
7007 (xstormy16_store_return_value): Change parameter type to
7008 'gdb_byte *'. Adjust.
7009 (xstormy16_push_dummy_call): Use gdb_byte.
7010 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7011 (call0_analyze_prologue, execute_code): Use gdb_byte.
7013 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7014 Pedro Alves <palves@redhat.com>
7016 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7019 2013-04-17 Doug Evans <dje@google.com>
7021 * dwarf2read.c (struct signatured_type): New member type.
7022 (struct attribute): Replace member signatured_type with signature.
7023 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7024 (read_call_site_scope): Call follow_die_ref instead of
7025 follow_die_ref_or_sig.
7026 (read_structure_type): Rewrite handling of signatured types.
7027 (read_enumeration_type): Ditto.
7028 (read_attribute_value): Update.
7029 (build_error_marker_type): New function.
7030 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7031 Don't call error for bad types, just build an error marker type.
7032 (dump_die_shallow): Update.
7033 (follow_die_sig_1): Renamed from follow_die_sig.
7034 Don't call error for bad types, instead return NULL.
7035 (follow_die_sig): New function.
7036 (get_signatured_type, get_DW_AT_signature_type): New functions.
7038 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7040 * aarch64-tdep.c (aarch64_write_pc): Removed.
7041 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7044 2013-04-17 Yao Qi <yao@codesourcery.com>
7046 * top.c (print_gdb_configuration): Print configure-time
7047 parameter on using libbabeltrace or not.
7049 2013-04-16 Pedro Alves <palves@redhat.com>
7051 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7053 2013-04-16 Pedro Alves <palves@redhat.com>
7055 * common/glibc_thread_db.h: Update from upstream glibc
7056 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7058 2013-04-16 Pedro Alves <palves@redhat.com>
7060 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7061 * common/glibc_thread_db.h: ... this new file ...
7062 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7064 2013-04-16 Will Newton <will.newton@gmail.com>
7065 Pedro Alves <palves@redhat.com>
7069 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7070 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7073 2013-04-16 Pedro Alves <palves@redhat.com>
7074 Eli Zaretskii <eliz@gnu.org>
7076 * NEWS: Mention "set foo unlimited".
7078 2013-04-15 Doug Evans <dje@google.com>
7080 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7081 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7082 (create_dwo_cu_reader): Renamed from
7083 create_dwo_debug_info_hash_table_reader.
7084 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7085 Remove support for multiple CUs in a DWO file.
7086 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7088 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7090 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7091 (create_dwo_in_dwp): Ditto.
7093 2013-04-15 Tom Tromey <tromey@redhat.com>
7095 * NEWS: Move recent entries into "since 7.6" section.
7097 2013-04-15 Tom Tromey <tromey@redhat.com>
7101 * break-catch-throw.c (struct exception_catchpoint)
7102 <exception_rx, pattern>: New fields.
7103 (fetch_probe_arguments, dtor_exception_catchpoint)
7104 (check_status_exception_catchpoint)
7105 (print_one_detail_exception_catchpoint): New functions.
7106 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7107 Compile regular expression if needed.
7108 (extract_exception_regexp): New function.
7109 (catch_exception_command_1): Use extract_exception_regexp.
7110 (compute_exception): Use fetch_probe_arguments.
7111 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7112 and check_status fields.
7113 * cp-abi.c (cplus_typename_from_type_info): New function.
7114 * cp-abi.h (cplus_typename_from_type_info): Declare.
7115 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7116 * gdb_regex.h (compile_rx_or_error): Declare.
7117 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7119 (init_gnuv3_ops): Set get_type_from_type_info field.
7120 * probe.c (compile_rx_or_error): Move...
7121 * utils.c (compile_rx_or_error): ... here.
7123 2013-04-15 Tom Tromey <tromey@redhat.com>
7127 * break-catch-throw.c (compute_exception): New function.
7128 (exception_funcs): New global.
7129 (_initialize_break_catch_throw): Create $_exception.
7130 * cp-abi.c (cplus_type_from_type_info): New function.
7131 * cp-abi.h (cplus_type_from_type_info): Declare.
7132 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7133 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7134 (gnuv3_get_type_from_type_info): New functions.
7135 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7137 2013-04-15 Tom Tromey <tromey@redhat.com>
7139 * break-catch-throw.c (struct exception_names): New.
7140 (exception_functions): Change type.
7141 (re_set_exception_catchpoint): Look for SDT probes.
7143 2013-04-15 Tom Tromey <tromey@redhat.com>
7146 * break-catch-throw.c (exception_functions): New global.
7147 (gnu_v3_exception_catchpoint_ops): Move earlier.
7148 (struct exception_catchpoint): New.
7149 (classify_exception_breakpoint): Rewrite.
7150 (re_set_exception_catchpoint): New function.
7151 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7152 Allocate a struct exception_catchpoint.
7153 (catch_exception_command_1): Update.
7154 (initialize_throw_catchpoint_ops): Set 're_set' method.
7156 2013-04-15 Tom Tromey <tromey@redhat.com>
7158 * Makefile.in (SFILES): Add break-catch-throw.c
7159 (COMMON_OBS): Add break-catch-throw.o.
7160 * break-catch-throw.c: New file.
7161 * breakpoint.c: Move exception-catching code to new file.
7162 (ep_parse_optional_if_clause): No longer static.
7163 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7165 2013-04-15 Tom Tromey <tromey@redhat.com>
7169 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7170 * c-exp.y (TYPEID): New token.
7171 (exp): Add new TYPEID productions.
7172 (ident_tokens): Add "typeid".
7173 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7174 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7175 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7176 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7177 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7179 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7180 (build_std_type_info_type, gnuv3_get_typeid_type)
7181 (gnuv3_get_typeid): New functions.
7182 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7183 new fields on ABI object.
7184 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7185 * std-operator.def (OP_TYPEID): New.
7187 2013-04-15 Tom Tromey <tromey@redhat.com>
7189 * elfread.c (elf_symtab_read): Install versioned symbol under
7190 unversioned name as well.
7192 2013-04-15 Tom Tromey <tromey@redhat.com>
7195 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7196 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7197 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7198 (gdb_demangle): New function.
7199 * cp-support.h (gdb_demangle): Declare.
7200 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7201 (dwarf2_name): Use gdb_demangle.
7202 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7203 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7205 (gnuv3_print_method_ptr): Use gdb_demangle.
7206 * jv-lang.c (java_demangle): Use gdb_demangle.
7207 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7208 * language.c (unk_lang_demangle): Use gdb_demangle.
7209 * symtab.c (symbol_find_demangled_name)
7210 (demangle_for_lookup): Use gdb_demangle.
7212 2013-04-15 Tom Tromey <tromey@redhat.com>
7216 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7218 (classify_exception_breakpoint): New function.
7219 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7220 (print_mention_exception_catchpoint)
7221 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7222 (catch_exception_command_1): Handle "rethrow" catchpoint.
7223 (catch_rethrow_command): New function.
7224 (_initialize_breakpoint): Add "catch rethrow" command.
7226 2013-04-15 Pierre Muller <muller@sourceware.org>
7228 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7229 set_gdbarch_write_pc as deprecated anymore.
7231 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7233 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7236 2013-04-13 Yao Qi <yao@codesourcery.com>
7238 * ctf.c (_initialize_ctf): Include "completer.h".
7239 Call add_target_with_completer instead of add_target.
7241 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 Fix GDB regression related to PR binutils/14813.
7244 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7245 * minidebug.c (lzma_close): Add return value comment.
7246 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7247 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7248 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7250 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7252 * config.in: Regenerate.
7254 2013-04-12 Tom Tromey <tromey@redhat.com>
7256 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7258 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7259 (struct die_reader_specs) <buffer>: Likewise.
7260 (die_reader_func_ftype): Make 'info_ptr' const.
7261 (struct line_header) <include_dirs, statement_program_start,
7262 statement_program_end>: Now const.
7263 (struct file_entry) <name>: Likewise.
7264 (struct partial_die_info) <sibling>: Likewise.
7265 (struct dwarf_block) <data>: Likewise.
7266 (dwarf2_read_section): Remove cast.
7267 (dwarf2_get_section_info): Make 'bufp' const.
7268 (read_index_from_section): Constify.
7269 (dw2_get_file_names_reader): Make 'info_ptr' const.
7270 (dw2_get_primary_filename_reader): Likewise.
7271 (read_comp_unit_head): Make 'info_ptr' and return type const.
7272 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7274 (read_abbrev_offset): Constify.
7275 (dwarf2_create_include_psymtab): Make 'name' const.
7276 (create_debug_types_hash_table): Update.
7277 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7278 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7280 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7281 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7282 (read_comp_units_from_section): Constify.
7283 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7284 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7286 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7287 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7288 (create_dwp_hash_table, dwarf2_ranges_read)
7289 (dwarf2_record_block_ranges): Constify.
7290 (read_die_and_children, read_die_and_siblings_1)
7291 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7293 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7294 (abbrev_table_read_table): Constify.
7295 (load_partial_dies): Make 'info_ptr' const.
7296 (read_partial_die, read_attribute_value, read_attribute): Make
7297 'info_ptr' and return type const.
7298 (read_address, read_initial_length)
7299 (read_checked_initial_length_and_offset, read_offset)
7300 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7302 (read_direct_string): Make 'buf' and return type const.
7303 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7304 (read_indirect_string): Make return type const.
7305 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7306 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7308 (read_str_index): Make return type const.
7309 (add_include_dir): Make 'include_dir' const.
7310 (add_file_name): Make 'name' const.
7311 (dwarf_decode_line_header): Constify.
7312 (psymtab_include_file_name): Make return type const.
7313 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7314 (dwarf2_start_subfile): Make 'filename' const.
7315 (dwarf2_const_value_attr): Make 'bytes' const.
7316 (read_signatured_type_reader): Make 'info_ptr' const.
7317 (decode_locdesc): Constify.
7318 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7320 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7321 'mac_end', and return type const.
7322 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7323 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7325 (per_cu_header_read_in): Constify.
7326 * symfile.h (dwarf2_get_section_info): Update.
7328 2013-04-12 Tom Tromey <tromey@redhat.com>
7330 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7332 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7334 * NEWS: Mention "show configuration", --configuration.
7335 * top.c (print_gdb_configuration): New function, displays the
7336 details about GDB configure-time parameters.
7337 (print_gdb_version): Mention "show configuration".
7338 * cli/cli-cmds.c (show_configuration): New function.
7339 (_initialize_cli_cmds): Add the "show configuration" command.
7340 * main.c (captured_main) <print_configuration>: New static var.
7341 <long_options>: Use it.
7342 If --configuration was given, call print_gdb_configuration.
7344 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 Pedro Alves <palves@redhat.com>
7347 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7348 (generated_files): Add gcore.
7349 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7350 HAVE_NATIVE_GCORE_HOST.
7352 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7353 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7354 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7355 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7356 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7357 Add HAVE_NATIVE_GCORE_HOST.
7358 * configure: Regenerate.
7359 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7360 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7361 AC_CONFIG_FILES for gcore.
7362 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7364 * gdb_gcore.sh: Rename to ...
7365 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7366 and GCORE_TRANSFORM_NAME substitutions.
7368 Fix parsing tabs in ${gdb_target_obs}.
7369 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7371 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7373 * remote.c (unpush_and_perror): Add output message final dot.
7375 2013-04-11 Yao Qi <yao@codesourcery.com>
7377 * tracepoint.c (tfile_interp_line): Fit parameters line and
7380 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7382 * solib.c (solib_map_sections): Remove code overwriting
7383 SO->SO_NAME with the bfd's filename.
7385 2013-04-10 Pedro Alves <palves@redhat.com>
7387 * cli/cli-decode.c (integer_unlimited_completer): New function.
7388 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7389 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7391 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7392 (is_unlimited_literal): New function.
7393 (do_set_command): Handle literal "unlimited" arguments.
7394 * frame.c (_initialize_frame) <set backtrace limit>: Document
7396 * printcmd.c (_initialize_printcmd) <set print
7397 max-symbolic-offset>: Add help text.
7398 * record-full.c (_initialize_record_full) <set record full
7399 insn-number-max>: Likewise.
7400 * record.c (_initialize_record) <set record
7401 instruction-history-size, set record function-call-history-size>:
7403 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7405 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7407 * source.c (_initialize_source) <set listsize>: Add help text.
7408 * utils.c (initialize_utils) <set height, set width>: Likewise.
7409 <set pagination>: Mention "set height unlimited".
7410 * valprint.c (_initialize_valprint) <set print elements, set print
7411 repeats>: Document "unlimited".
7413 2013-04-10 Pedro Alves <palves@redhat.com>
7415 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7416 instead of disconnect_tracing.
7417 * infcmd.c (detach_command, disconnect_command): Call
7418 query_if_trace_running. Adjust.
7419 * top.c: Include "tracepoint.h".
7420 (quit_target): Delete. Contents moved ...
7421 (quit_force): ... here. Wrap each stage of teardown in
7422 TRY_CATCH. Call disconnect_tracing before detaching.
7424 2013-04-10 Hui Zhu <hui@codesourcery.com>
7425 Yao Qi <yao@codesourcery.com>
7427 * configure.ac: Check libbabeltrace is installed.
7428 * config.in: Regenerate.
7429 * configure: Regenerate.
7430 * Makefile.in (LIBBABELTRACE): New.
7431 (CLIBS): Add LIBBABELTRACE.
7432 * ctf.c: Include "exec.h".
7433 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7434 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7435 (ctf_save_metadata_header): Define new type aliases in
7437 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7438 in metadata. Start a new faked packet for trace status.
7439 (ctf_write_status): Write trace status to CTF.
7440 (ctf_write_uploaded_tsv): Write TSV to CTF.
7441 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7442 (ctf_write_definition_end): End the faked packet.
7444 (ctx, ctf_iter, trace_dirname): New.
7445 (start_pos): New variable.
7446 (ctf_destroy, ctf_open_dir, ctf_open): New.
7447 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7449 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7450 (ctf_fetch_registers, ctf_xfer_partial): New.
7451 (ctf_get_trace_state_variable_value): New.
7452 (ctf_get_tpnum_from_frame_event): New.
7453 (ctf_get_traceframe_address): New.
7454 (ctf_trace_find, ctf_has_stack): New.
7455 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7456 (ctf_get_trace_status, ctf_read_status): New.
7457 (_initialize_ctf): New.
7458 * tracepoint.c (get_tracepoint_number): New
7459 (get_uploaded_tsv): Remove 'static'.
7460 (struct traceframe_info, trace_regblock_size): Move it to ...
7461 * tracepoint.h: ... here.
7462 (get_tracepoint_number): Declare it.
7463 (get_uploaded_tsv): Declare it.
7465 * NEWS: Mention new configure option.
7467 2013-04-10 Pedro Alves <palves@redhat.com>
7468 Hui Zhu <hui@codesourcery.com>
7470 * breakpoint.c (dprintf_re_set): New.
7471 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7474 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7476 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7477 Remove solib-svr4.o from the list.
7479 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7481 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7482 Use gdb_assert_not_reached instead of invalid boolean expression.
7484 2013-04-09 Pedro Alves <palves@redhat.com>
7486 * remote.c (unpush_and_perror): New function.
7487 (readchar, remote_serial_write): Use it.
7489 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7491 * NEWS: Mention new btrace RSP packets.
7493 2013-04-08 Tom Tromey <tromey@redhat.com>
7495 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7498 2013-04-08 Tom Tromey <tromey@redhat.com>
7500 * maint.c (print_bfd_section_info): Print the section index.
7501 * symmisc.c (dump_msymbols): Print the section index.
7503 2013-04-08 Tom Tromey <tromey@redhat.com>
7506 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7507 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7508 * breakpoint.c (resolve_sal_pc): Update.
7509 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7510 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7511 (minsym_lookup_iterator_cb): Use it.
7512 (default_read_var_value): Update.
7513 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7515 * infcmd.c (jump_command): Update.
7516 * linespec.c (minsym_found): Update.
7517 * maint.c (maintenance_translate_address): Update.
7518 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7519 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7520 * parse.c (write_exp_msymbol): Update.
7521 * printcmd.c (address_info): Update.
7522 * psymtab.c (find_pc_sect_psymbol): Update.
7523 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7525 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7526 Don't initialize SYMBOL_OBJ_SECTION.
7527 * spu-tdep.c (spu_catch_start): Update.
7528 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7529 * symmisc.c (dump_msymbols, print_symbol): Update.
7530 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7531 how fallback section is computed.
7532 (fixup_symbol_section): Update.
7533 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7535 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7536 Initialize SYMBOL_SECTION.
7537 * symtab.h (struct general_symbol_info) <section>: Update comment.
7538 <obj_section>: Remove.
7539 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7540 (SYMBOL_OBJFILE): New macro.
7542 2013-04-08 Tom Tromey <tromey@redhat.com>
7544 * coffread.c (record_minimal_symbol): Update.
7545 * dbxread.c (record_minimal_symbol): Update.
7546 * elfread.c (record_minimal_symbol): Update.
7547 * machoread.c (macho_symtab_add_minsym): Update.
7548 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7550 * minsyms.c (prim_record_minimal_symbol): Update.
7551 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7553 (prim_record_minimal_symbol_and_info): Likewise.
7554 * minsyms.h (prim_record_minimal_symbol_full)
7555 (prim_record_minimal_symbol_and_info): Update.
7556 * symtab.c (allocate_symbol, initialize_symbol)
7557 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7558 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7561 2013-04-08 Tom Tromey <tromey@redhat.com>
7564 * solib-som.c (som_solib_section_offsets): Use BFD section
7565 indices. Set offsets for all sections.
7566 * somread.c (som_symtab_read): Compute BFD section for
7567 symbol. Use prim_record_minimal_symbol_and_info.
7568 (som_symfile_read): Fix comment.
7569 (struct find_section_offset_arg): New.
7570 (find_section_offset, set_section_index): New functions.
7571 (som_symfile_offsets): Use set_section_index to compute
7574 2013-04-08 Tom Tromey <tromey@redhat.com>
7576 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7577 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7578 gdb_bfd_section_index.
7579 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7581 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7583 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7585 * objfiles.c (add_to_objfile_sections_full): New function.
7586 (add_to_objfile_sections): Use it.
7587 (build_section_table): Rewrite.
7588 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7589 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7590 (struct objfile) <sections>: Update comment.
7591 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7593 (ALL_OBJSECTIONS): Use it.
7594 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7595 * solib-frv.c (frv_relocate_main_executable): Update.
7596 * solib-target.c (solib_target_relocate_section_addresses):
7597 Use gdb_bfd_section_index.
7598 * symfile.c (build_section_addr_info_from_section_table):
7599 Use gdb_bfd_section_index.
7600 (build_section_addr_info_from_bfd, place_section): Likewise.
7601 * symtab.c (fixup_section): Update.
7602 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7604 2013-04-08 Tom Tromey <tromey@redhat.com>
7606 * minsyms.h (struct bound_minimal_symbol): New.
7607 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7608 Remove objfile argument.
7609 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7610 Return bound_minimal_symbol.
7611 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7612 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7613 Return bound_minimal_symbol.
7614 (in_gnu_ifunc_stub): Update.
7615 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7616 Remove 'objfile_p' argument.
7617 (lookup_solib_trampoline_symbol_by_pc): Update.
7618 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7619 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7620 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7621 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7622 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7623 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7624 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7625 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7626 stack.c, symtab.c, tui/tui-disasm.c: Update.
7628 2013-04-08 Tom Tromey <tromey@redhat.com>
7630 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7631 Use symbol's obstack, not an objfile.
7632 * coffread.c (process_coff_symbol): Update.
7633 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7634 * jv-lang.c (add_class_symbol): Update.
7635 * mdebugread.c (new_symbol): Update.
7636 * minsyms.c (prim_record_minimal_symbol_full)
7637 (terminate_minimal_symbol_table): Update.
7638 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7639 * stabsread.c (define_symbol, read_enum_type): Update.
7640 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7641 Handle Ada specially.
7642 (symbol_set_language): Add 'obstack' argument.
7643 (symbol_set_names): Update.
7644 (symbol_natural_name, symbol_demangled_name): Always use
7646 * symtab.h (struct general_symbol_info)
7647 <language_specific::obstack>: New field.
7648 <ada_mangled>: New field.
7649 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7650 (symbol_set_language): Update.
7652 2013-04-08 Tom Tromey <tromey@redhat.com>
7654 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7655 Take an obstack, not an objfile.
7656 (symbol_set_names): Update.
7657 * symtab.h (symbol_set_demangled_name): Update.
7659 2013-04-08 Tom Tromey <tromey@redhat.com>
7661 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7663 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7664 (read_func_scope): Call allocate_template_symbol.
7665 (new_symbol_full): Call allocate_symbol.
7666 * jit.c (finalize_symtab): Call allocate_symbol.
7667 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7668 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7669 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7670 (common_block_end): Call allocate_symbol.
7671 * symtab.c (allocate_symbol, initialize_symbol)
7672 (allocate_template_symbol): New functions.
7673 * symtab.c (allocate_symbol, initialize_symbol)
7674 (allocate_template_symbol): Declare.
7675 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7677 2013-04-08 Pedro Alves <palves@redhat.com>
7678 Keith Seitz <keiths@redhat.com>
7680 * breakpoint.c (create_breakpoint): Rename
7681 "parse_condition_and_thread" parameter to "parse_arg". Update
7682 describing comment. If !PARSE_ARG, then error out if ARG is not
7683 the empty string after extracting the location.
7684 * breakpoint.h (create_breakpoint): Rename
7685 "parse_condition_and_thread" parameter to "parse_arg".
7687 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7689 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7691 2013-04-07 Yao Qi <yao@codesourcery.com>
7693 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7694 and 'addr2' to CORE_ADDR.
7695 * target.c (update_current_target): Update.
7696 * target.h (struct target_ops) <to_trace_find>: Change parameter
7698 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7699 'addr2' to CORE_ADDR.
7700 (tfile_trace_find): Likewise.
7701 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7702 Change local variable 'addr' to type CORE_ADDR.
7703 * tracepoint.h (tfind_1): Update declaration.
7705 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7707 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7708 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7711 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7713 * main.h (windows_get_absolute_argv0): ...to here.
7715 2013-04-05 Doug Evans <dje@google.com>
7717 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7718 (read_cutu_die_from_dwo): Add comments.
7719 (read_structure_type): Update comment.
7720 (read_enumeration_type, read_namespace_type): Update comment.
7721 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7723 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7725 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7726 * Makefile.in (gdb.z): Remove.
7727 (install-only): Remove $(man1dir) and gdb.1 installation.
7730 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7732 Fix compatibility with Linux kernel 3.8.3.
7733 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7734 to more inner block. Remove parsing of NUMBER from outer block.
7735 Parse NUMBER only if KEYWORD has been identified.
7737 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7739 Fix variable name shadowing.
7740 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7741 filename to mapsfilename and update its uses.
7743 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7745 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7746 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7747 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7748 details of the problem.
7750 2013-04-04 Pedro Alves <palves@redhat.com>
7751 Hui Zhu <hui@codesourcery.com>
7753 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7754 tracepoint, reset its STEP_COUNT and call validate_actionline.
7756 2013-04-03 Doug Evans <dje@google.com>
7758 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7759 read_die_and_siblings.
7760 (read_die_and_siblings): New function.
7761 (read_cutu_die_from_dwo): Dump die if requested.
7762 (read_die_and_children): Call read_full_die_1 and
7763 read_die_and_siblings_1.
7764 (read_full_die): Dump die if requested.
7766 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7768 * dwarf2read.c (struct dwo_file): New member comp_dir.
7769 Rename member name to dwo_name. All uses updated.
7770 (hash_dwo_file): Include comp_dir in computation.
7771 (eq_dwo_file): Ditto.
7772 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7773 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7775 * psymtab.c (read_psymtabs_with_fullname): Don't call
7776 psymtab_to_fullname if the basenames are different.
7778 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7780 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7781 New entry about "fullname" presence.
7783 2013-04-03 Pedro Alves <palves@redhat.com>
7785 * NEWS: Mention x86_64/Cygwin as new native configuration.
7787 2013-04-02 Doug Evans <dje@google.com>
7789 * dwarf2read.c (read_structure_type): Fix typo in comment.
7791 2013-04-02 Pedro Alves <palves@redhat.com>
7793 * NEWS: Mention "set/show debug aarch64", "set/show debug
7794 coff-pe-read" and "set/show debug mach-o".
7796 2013-04-02 Pedro Alves <palves@redhat.com>
7798 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7800 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7802 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7803 gdb_string.h is now in common/.
7805 2013-04-02 Pedro Alves <palves@redhat.com>
7807 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7808 under "New options".
7810 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7814 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7816 2013-04-02 Pedro Alves <palves@redhat.com>
7820 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7821 (remote_serial_write): New function.
7822 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7824 2013-04-01 Jiong Wang <jiwang@tilera.com>
7826 * NEWS: Mention TILE-Gx in "New native configurations" and
7827 "New targets" sections.
7829 2013-04-01 Doug Evans <dje@google.com>
7831 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7832 (process_enumeration_scope): Simplify.
7834 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7836 (struct signatured_type): ... to here.
7837 (sig_type_ptr): New typedef.
7838 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7839 out of union 't'. All uses updated.
7840 (dw2_get_file_names_reader): Assert not called for a type unit.
7841 (dw2_get_file_names): Assert not called for a type unit or type
7843 (build_type_psymtabs_reader): Assert called for a type unit.
7844 (build_type_psymtab_dependencies): Assert called for a type unit group.
7846 * dwarf2read.c (free_dwo_file): Add comment.
7847 (dwarf2_per_objfile_free): Unref dwp bfd.
7849 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7851 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7852 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7853 (read_pe_exported_syms): Remove unused 'exportix'.
7854 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7855 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7856 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7858 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7860 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7861 (print_it_watchpoint): Remove unused 'bl'.
7862 (say_where): Remove unused 'uiout'.
7863 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7864 (bkpt_breakpoint_hit): Remove unused 'b'.
7865 (internal_bkpt_print_it): Remove unused 'uiout'.
7866 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7868 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7871 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7873 2013-03-29 Doug Evans <dje@google.com>
7875 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7876 Delete arg is_dwp. All callers updated.
7877 (open_dwp_file): New function.
7878 (open_and_init_dwp_file): Call it.
7879 (get_dwp_file): New function.
7880 (lookup_dwo_cutu): Call it.
7882 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7883 unnecessary, cleanup.
7885 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7887 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7888 (lookup_dwo_unit): New function.
7889 (init_cutu_and_read_dies): Move DWO handling to new functions.
7891 * dwarf2read.c (struct signatured_type): Tweak comment.
7892 (struct dwo_unit): Tweak comment.
7893 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7894 (create_dwo_debug_info_hash_table): Tweak comment.
7895 (dwarf2_per_cu_offset_and_type): Tweak comment.
7897 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7898 missing .debug_types section.
7900 2013-03-29 Yao Qi <yao@codesourcery.com>
7902 * corelow.c: Include "completer.h".
7903 (_initialize_corelow): Call add_target_with_completer with
7904 argument 'filename_completer'.
7905 * tracepoint.c: Likewise.
7906 * exec.c (_initialize_exec): Likewise.
7907 * target.c (add_target): Rename to ...
7908 (add_target_with_completer): ... this. Call set_cmd_completer
7909 if parameter completer is not NULL.
7911 * target.h: Include "command.h".
7912 (add_target_with_completer): Declare it.
7914 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7916 * coffread.c (is_import_fixup_symbol): New function.
7917 (record_minimal_symbol): Use is_import_fixup_symbol to
7918 detect import fixup symbols, and discard them.
7920 2013-03-28 Doug Evans <dje@google.com>
7922 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7923 types hash table until we know we need it.
7925 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7928 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7929 All callers updated.
7930 (dw2_print_stats): Print #read CUs too.
7931 (dump_die_shallow): Print signatured types better.
7933 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7934 info_or_types_section to section. All uses updated.
7935 (struct dwo_unit): Ditto.
7937 2013-03-28 Pedro Alves <palves@redhat.com>
7939 * NEWS (New options): New section.
7940 (New options): Mention set/show remote trace-status-packet.
7941 * remote.c (PACKET_qTStatus): New enumeration value.
7942 (remote_get_trace_status): Skip sending qTStatus if the packet is
7943 disabled. Use packet_ok.
7944 (_initialize_remote): Register a configuration command for
7947 2013-03-28 Doug Evans <dje@google.com>
7949 * symfile.c (find_separate_debug_file): Add comment.
7950 (terminate_after_last_dir_separator): Tweak comment.
7952 * dwarf2read.c (create_partial_symtab): Add forward decl.
7953 (create_partial_symtab): Move to be closer to other psymtab functions.
7954 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7956 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7957 (compute_symtab_includes): Remove unnecessary forward declaration.
7958 (die_needs_namespace): Add comment marking group of functions for
7959 dwarf2 name computation.
7961 * typeprint.c (_initialize_typeprint): Improve type help text.
7963 * python/python.c (finish_python_initialization): Provide suggestion
7964 for how to tell gdb to find its python files.
7966 2013-03-28 Pedro Alves <palves@redhat.com>
7970 * source.c (_initialize_source): Change back "set listsize" to an
7973 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7976 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7978 2013-03-27 Pedro Alves <palves@redhat.com>
7980 * top.c (history_size): Rename to ...
7981 (history_size_setshow_var): ... this. Add comment.
7982 (show_commands): Use readline's 'history_length' instead of
7983 computing the history length by calling history_get in a loop.
7984 (set_history_size_command): Error out for sizes over INT_MAX.
7985 Restore previous history size on invalid size.
7986 (init_history): If HISTSIZE is negative, leave the history size as
7988 (init_main): Adjust.
7990 2013-03-27 Pedro Alves <palves@redhat.com>
7992 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7993 coff_pe_read" command to "set debug coff-pe-read".
7995 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7997 * record.c (command_size_to_target_size): Fix size comparison.
7998 Change parameter type from pointer to integer to integer.
8001 2013-03-27 Pierre Muller <muller@sourceware.org>
8003 * windows-nat.c (handle_output_debug_string): Avoid typecast
8004 from integer of different size warning.
8006 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8008 * windows-nat.c (handle_output_debug_string): Add empty line
8009 after local block variable definition.
8011 2013-03-26 Pedro Alves <palves@redhat.com>
8013 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8014 (net_open): Make 'polls' local unsigned.
8016 2013-03-26 Pedro Alves <palves@redhat.com>
8018 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8019 a zuinteger command instead of uinteger.
8021 2013-03-26 Pedro Alves <palves@redhat.com>
8023 * record-full.c (record_full_insn_num): Make it unsigned.
8024 (record_full_check_insn_num, record_full_message)
8025 (record_full_registers_change, record_full_xfer_partial): Remove
8026 record_full_insn_max_num check (it's always != 0).
8027 (record_full_info, record_full_restore): Use %u as format string.
8028 (): Use %u as format string.
8029 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8030 check (it's always != 0).
8032 2013-03-26 Pedro Alves <palves@redhat.com>
8034 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8035 and "set dcache size" commands zuinteger instead of uinteger.
8037 2013-03-26 Pedro Alves <palves@redhat.com>
8039 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8040 command zuinteger instead of uinteger.
8042 2013-03-26 Pedro Alves <palves@redhat.com>
8044 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8045 zuinteger instead of uinteger.
8047 2013-03-26 Pedro Alves <palves@redhat.com>
8049 * record.c (record_insn_history_size_setshow_var)
8050 (record_call_history_size_setshow_var): New globals.
8051 (command_size_to_target_size): New function.
8052 (cmd_record_insn_history, cmd_record_call_history): Use
8053 command_size_to_target_size instead of cast.
8054 (validate_history_size, set_record_insn_history_size)
8055 (set_record_call_history_size): New functions.
8056 (_initialize_record): Install set_record_insn_history_size and
8057 set_record_call_history_size as "set" hooks of "set record
8058 instruction-history-size" and "set record
8059 function-call-history-size".
8061 2013-03-26 Pedro Alves <palves@redhat.com>
8063 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8064 use with history_max_entries use. Remove FIXME note.
8066 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8068 * record-btrace.c (record_btrace_close): Call
8069 record_btrace_auto_disable.
8071 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8073 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8075 2013-03-25 Doug Evans <dje@google.com>
8077 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8079 2013-03-25 Tom Tromey <tromey@redhat.com>
8082 * c-exp.y (exp): Add new productions for destructors after '.' and
8084 (write_destructor_name): New function.
8086 2013-03-25 Tom Tromey <tromey@redhat.com>
8089 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8090 value_struct_elt, not lookup_struct_elt_type.
8091 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8092 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8093 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8095 2013-03-25 Yao Qi <yao@codesourcery.com>
8097 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8098 instead of '_mkdir'.
8100 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8102 * windows-nat.c (windows_get_absolute_argv0): New function.
8103 * windows-nat.h: Add its prototype.
8105 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8106 Use IS_DIR_SEPARATOR instead of looking for a character inside
8107 SLASH_STRING. Include filenames.h.
8108 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8109 relocate_gdb_directory works when passed gdb_program_name.
8110 Include windows-nat.h.
8112 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8114 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8115 * remote.c (trace_error): Remove the special handling of '2'.
8116 (readchar) <SERIAL_EOF>
8117 (readchar) <SERIAL_ERROR>
8118 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8119 (remote_get_trace_status): Call throw_exception if EX is
8121 * utils.c (perror_with_name): Rename to ...
8122 (throw_perror_with_name): ... here. New parameter errcode, describe it
8123 in the function comment.
8124 (perror_with_name): New function wrapper.
8125 * utils.h (enum errors): New stub declaration.
8126 (throw_perror_with_name): New declaration.
8128 2013-03-22 Pedro Alves <palves@redhat.com>
8129 Yao Qi <yao@codesourcery.com>
8130 Mark Kettenis <kettenis@gnu.org>
8132 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8133 Don't let the user set the value to UINT_MAX directly.
8134 <var_integer>: Don't let the user set the value to INT_MAX
8137 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8139 * remote.c (remote_unpush_target): New function.
8140 (remote_open_1): Remove two pop_target calls, update one comment, add
8141 comment to target_preopen call. Replace pop_target call by
8142 remote_unpush_target call.
8143 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8144 pop_target calls by remote_unpush_target calls.
8146 2013-03-22 Pedro Alves <palves@redhat.com>
8148 * linux-nat.c (linux_child_follow_fork): Don't call
8149 linux_enable_event_reporting.
8150 (linux_handle_extended_wait): Don't call
8151 linux_enable_event_reporting.
8153 2013-03-22 Pedro Alves <palves@redhat.com>
8155 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8156 use it to rewrite the trampoline buffers with type gdb_byte[], and
8157 undefine the macro. Remove char* cast.
8159 2013-03-21 Doug Evans <dje@google.com>
8161 New commands "mt set per-command {space,time,symtab} {on,off}".
8163 * event-top.c: #include "maint.h".
8164 * main.c: #include "maint.h".
8165 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8166 timeval-utils.h, maint.h, cli/cli-setshow.h.
8167 (per_command_time, per_command_space): New static globals.
8168 (per_command_symtab): New static global.
8169 (per_command_setlist, per_command_showlist): New static globals.
8170 (struct cmd_stats): Move here from utils.c.
8171 (set_per_command_time): Renamed from set_display_time in utils.c
8172 and moved here. All callers updated.
8173 (set_per_command_space): Renamed from set_display_space in utils.c
8174 and moved here. All callers updated.
8175 (count_symtabs_and_blocks): New function.
8176 (report_command_stats): Moved here from utils.c. Add support for
8177 printing symtab stats. Only print data if enabled before command
8179 (make_command_stats_cleanup): Ditto.
8180 (sert_per_command_cmd, show_per_command_cmd): New functions.
8181 (_initialize_maint_cmds): Add new commands
8182 mt set per-command {space,time,symtab} {on,off}.
8183 * maint.h: New file.
8184 * top.c: #include "maint.h".
8185 * utils.c (reset_prompt_for_continue_wait_time): New function.
8186 (get_prompt_for_continue_wait_time): New function.
8187 * utils.h (reset_prompt_for_continue_wait_time): Declare
8188 (get_prompt_for_continue_wait_time): Declare.
8189 (make_command_stats_cleanup): Moved to maint.h.
8190 (set_display_time, set_display_space): Moved to maint.h and renamed
8191 to set_per_command_time, set_per_command_space.
8192 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8193 parse_binary_operation and made non-static. Don't call error,
8194 just return an error marker. All callers updated.
8195 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8197 2013-03-21 Tom Tromey <tromey@redhat.com>
8199 * symfile.c (alloc_section_addr_info): Update header. Don't set
8200 'num_sections' field.
8201 (build_section_addr_info_from_section_table): Set 'num_sections'.
8202 (build_section_addr_info_from_bfd): Likewise.
8203 (build_section_addr_info_from_objfile): Remove dead loop
8205 (free_section_addr_info): Unconditionally call xfree.
8206 (relative_addr_info_to_section_offsets, addrs_section_sort)
8207 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8209 (syms_from_objfile_1): Remove dead 'if' condition. Check
8211 (add_symbol_file_command): Set 'num_sections'.
8212 * symfile-mem.c (symbol_file_add_from_memory): Set
8214 * somread.c (som_symfile_offsets): Remove dead loop condition.
8215 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8216 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8218 2013-03-21 Tom Tromey <tromey@redhat.com>
8220 * tracepoint.h (decode_agent_options): Add 'trace_string'
8222 * tracepoint.c (decode_agent_options): Add 'trace_string'
8224 (validate_actionline): Update.
8225 (collect_symbol): Add 'trace_string' argument.
8226 (struct add_local_symbols_data) <trace_string>: New field.
8227 (do_collect_symbol): Update.
8228 (add_local_symbols): Add 'trace_string' argument.
8229 (encode_actions_1): Update.
8230 (trace_dump_actions): Update.
8231 * dwarf2loc.c (access_memory): Update.
8232 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8233 * ax-general.c (new_agent_expr): Update.
8234 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8235 (gen_trace_for_return_address): Add argument.
8236 (trace_kludge, trace_string_kludge): Remove.
8237 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8238 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8239 (gen_trace_for_var): Add 'trace_string' argument.
8240 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8241 (gen_printf, agent_eval_command_one): Update.
8243 2013-03-21 Tom Tromey <tromey@redhat.com>
8246 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8247 Handle FILENAME token.
8249 2013-03-21 Tom Tromey <tromey@redhat.com>
8251 * c-exp.y (YYPRINT): Define.
8252 (c_print_token): New function.
8254 2013-03-21 Tom Tromey <tromey@redhat.com>
8256 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8258 2013-03-21 Yao Qi <yao@codesourcery.com>
8260 * ctf.c: Include "gdb_stat.h".
8261 [USE_WIN32API]: New macro 'mkdir'.
8262 (ctf_start): Use permission bits macros if they are defined.
8264 2013-03-20 Keith Seitz <keiths@redhat.com>
8266 * breakpoint.h (struct breakpoint): Add comment to
8267 extra_string indicating that this member is mallod'd.
8268 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8270 2013-03-20 Pedro Alves <palves@redhat.com>
8274 * cli/cli-setshow.c (do_set_command)
8275 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8276 the result of parsing the command argument. Throw error if the
8277 value is greater than UINT_MAX. Print the invalid value with
8279 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8280 result of parsing the command argument. Throw error if the value
8281 is greater than INT_MAX, not greater or equal. Also throw error
8282 if the value is less than INT_MIN. Print the invalid value with
8284 <var_zuinteger_unlimited>: Throw error if the value is greater
8285 than INT_MAX, not greater or equal.
8286 (do_show_command) <var_integer, var_zinteger,
8287 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8289 2013-03-20 Tom Tromey <tromey@redhat.com>
8291 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8293 * dwarf2read.c (read_func_scope): Remove old FIXME.
8294 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8296 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8297 Unconditionally call via computed ops, if possible.
8298 * printcmd.c (address_info): Unconditionally call via computed ops,
8300 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8302 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8303 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8306 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8307 Tom Tromey <tromey@redhat.com>
8310 * coffread.c (coff_register_index): New global.
8311 (process_coff_symbol, coff_read_enum_type): Set
8312 SYMBOL_ACLASS_INDEX.
8313 (_initialize_coffread): Initialize new global.
8314 * dwarf2loc.c (locexpr_find_frame_base_location)
8315 (dwarf2_block_frame_base_locexpr_funcs)
8316 (loclist_find_frame_base_location)
8317 (dwarf2_block_frame_base_loclist_funcs): New.
8318 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8319 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8320 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8321 (dwarf2_block_frame_base_loclist_funcs): New.
8322 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8323 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8325 (read_func_scope): Update.
8326 (fixup_go_packaging, mark_common_block_symbol_computed)
8327 (var_decode_location, new_symbol_full, dwarf2_const_value):
8328 Set SYMBOL_ACLASS_INDEX.
8329 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8330 (_initialize_dwarf2_read): Initialize new globals.
8331 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8332 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8333 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8335 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8336 (_initialize_mdebugread): Initialize new globals.
8337 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8338 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8339 (stab_register_index, stab_regparm_index): New globals.
8340 (define_symbol, read_enum_type, common_block_end): Set
8341 SYMBOL_ACLASS_INDEX.
8342 (_initialize_stabsread): Initialize new globals.
8343 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8345 (MAX_SYMBOL_IMPLS): New define.
8346 (register_symbol_computed_impl, register_symbol_block_impl)
8347 (register_symbol_register_impl)
8348 (initialize_ordinary_address_classes): New functions.
8349 (_initialize_symtab): Call initialize_ordinary_address_classes.
8350 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8351 (struct symbol_impl): New.
8352 (SYMBOL_ACLASS_BITS): New define.
8353 (struct symbol) <aclass, ops>: Remove fields.
8354 <aclass_index>: New field.
8355 (symbol_impls): Declare.
8356 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8357 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8358 (register_symbol_computed_impl, register_symbol_block_impl)
8359 (register_symbol_register_impl): Declare.
8360 (struct symbol_computed_ops): Add location_has_loclist.
8361 (struct symbol_block_ops): New.
8362 (SYMBOL_BLOCK_OPS): New.
8363 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8365 2013-03-20 Tom Tromey <tromey@redhat.com>
8367 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8368 (print_partial_symbols, recursively_search_psymtabs): Use
8371 2013-03-20 Pierre Muller <muller@sourceware.org>
8373 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8374 addtion, subtraction, multiplication and division binary operator.
8376 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8379 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8380 * bsd-kvm.c (bsd_kvm_close): Likewise.
8381 * bsd-uthread.c (bsd_uthread_close): Likewise.
8382 * corelow.c (core_close): Likewise.
8383 (core_close_cleanup): Remove parameter quitting from a caller.
8384 * event-top.c (async_disconnect): Likewise.
8385 * exec.c (exec_close_1): Remove parameter quitting.
8386 * go32-nat.c (go32_close): Likewise.
8387 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8388 parameter quitting from a caller.
8389 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8391 (mips_linux_close): Remove parameter quitting. Remove parameter
8392 quitting from a caller.
8393 * monitor.c (monitor_close): Remove parameter quitting.
8394 * monitor.h (monitor_close): Likewise.
8395 * record-btrace.c (record_btrace_close): Likewise.
8396 * record-full.c (record_full_close): Likewise.
8397 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8398 it also from fprintf_unfiltered.
8399 * remote-mips.c (mips_close): Remove parameter quitting.
8400 (mips_detach): Remove parameter quitting from a caller.
8401 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8402 (gdbsim_close): Remove duplicate function comment. Remove parameter
8403 quitting and remove it also from printf_filtered.
8404 * remote.c (remote_close): Remove parameter quitting.
8405 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8406 * target.c (update_current_target): Remove parameter int from to_close
8408 (push_target, unpush_target, pop_target): Remove parameter quitting from
8410 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8411 Remove parameter quitting from a caller.
8412 (target_preopen): Remove parameter quitting from a caller.
8413 (target_close): Remove parameter quitting. Remove parameter quitting
8414 from a caller two times. Remove parameter quitting also from
8416 * target.h (struct target_ops): Remove parameter quitting and as int
8417 from fields to_xclose and to_close.
8418 (extern struct target_ops current_target):
8419 (target_close, pop_all_targets): Remove parameter quitting. Update the
8421 (pop_all_targets_above): Remove parameter quitting.
8422 * top.c (quit_target): Remove parameter quitting from a caller.
8423 * tracepoint.c (tfile_close): Remove parameter quitting.
8424 * windows-nat.c (windows_close): Remove parameter quitting.
8426 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8428 * windows-nat.c (handle_output_debug_string): Replace call
8429 to string_to_core_addr with call to strtoull.
8431 2013-03-20 Yao Qi <yao@codesourcery.com>
8433 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8434 and write it to CTF metadata.
8436 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8438 * windows-nat.c (handle_output_debug_string): Change type of n to
8439 SIZE_T to avoid crash on 64 bit systems.
8441 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8443 * python/python-internal.h (HAVE_SNPRINTF)
8444 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8445 about redefinition of snprintf by pyerrors.h.
8447 2013-03-15 Steve Ellcey <sellcey@mips.com>
8449 * remote-sim.c (sim_command_completer): Make char arguments const.
8451 2013-03-15 Tom Tromey <tromey@redhat.com>
8454 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8456 2013-03-14 Tom Tromey <tromey@redhat.com>
8458 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8460 (get_file_crc): Move from symfile.c.
8461 (gdb_bfd_crc): New function.
8462 * gdb_bfd.h (gdb_bfd_crc): Declare.
8463 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8464 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8465 (separate_debug_file_exists): Use gdb_bfd_crc.
8467 2013-03-14 Tom Tromey <tromey@redhat.com>
8469 * symfile.c (get_debug_link_info): Remove.
8470 (find_separate_debug_file_by_debuglink): Use
8471 bfd_get_debug_link_info.
8473 2013-03-14 Tom Tromey <tromey@redhat.com>
8475 * symtab.c (error_in_psymtab_expansion): New function.
8476 (lookup_symbol_aux_quick)
8477 (basic_lookup_transparent_type_quick): Remove "last resort"
8478 code. Use error_in_psymtab_expansion.
8480 2013-03-14 Doug Evans <dje@google.com>
8481 Jan Kratochvil <jan.kratochvil@redhat.com>
8483 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8484 any successful compare_filenames_for_search or FILENAME_CMP.
8485 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8486 * symtab.c (iterate_over_some_symtabs): Likewise.
8488 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8490 * source.c (print_source_lines_base): Make a local copy of
8493 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8494 Jan Kratochvil <jan.kratochvil@redhat.com>
8496 * source.c (print_source_lines_base): Suppress "file" for TUI.
8498 2013-03-14 Keith Seitz <keiths@redhat.com>
8499 Alan Matsuoka <alanm@redhat.com>
8503 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8505 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8508 2013-03-14 Yao Qi <yao@codesourcery.com>
8510 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8511 status to tfile if trace is stopped by command 'tstop'.
8513 2013-03-14 Yao Qi <yao@codesourcery.com>
8515 * tracepoint.c (tfile_write_status): Write trace notes and user
8516 name into tfile if they are not NULL.
8518 2013-03-14 Hui Zhu <hui@codesourcery.com>
8519 Yao Qi <yao@codesourcery.com>
8521 * Makefile.in (REMOTE_OBS): Add ctf.o.
8522 (SFILES): Add ctf.c.
8523 (HFILES_NO_SRCDIR): Add ctf.h.
8524 * ctf.c, ctf.h: New files.
8525 * tracepoint.c: Include 'ctf.h'.
8526 (collect_pseudocommand): Remove static.
8527 (trace_save_command): Parse option "-ctf".
8528 Produce different trace file writers per option.
8529 Adjust output message.
8530 (trace_save_tfile, trace_save_ctf): New.
8531 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8532 * mi/mi-main.c: Include 'ctf.h'.
8533 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8534 trace_save_tfile or trace_save_ctf.
8535 * NEWS: Mention these changes.
8537 2013-03-14 Yao Qi <yao@codesourcery.com>
8539 * tracepoint.c (trace_file_writer_xfree): New.
8540 (struct tfile_writer_data): New.
8541 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8542 (tfile_write_header, tfile_write_regblock_type): New.
8543 (tfile_write_status, tfile_write_uploaded_tsv): New.
8544 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8545 (tfile_write_raw_data, (tfile_end): New.
8546 (tfile_write_ops): New global variable.
8547 (TRACE_WRITE_R_BLOCK): New macro.
8548 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8549 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8550 (TRACE_WRITE_V_BLOCK): New macro.
8551 (trace_save): Add extra one parameter WRITER. Make it static.
8552 Use WRITER to writer trace.
8553 (tfile_trace_file_writer_new): New.
8554 (trace_save_command): Caller update.
8555 (trace_save_tfile): Write trace data in TFILE format.
8556 * tracepoint.h (struct trace_frame_write_ops): New.
8557 (struct trace_file_write_ops): New.
8558 (struct trace_file_writer): New.
8559 (trace_save): Remove its declaration.
8560 (trace_save_tfile): Declare it.
8561 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8562 instead of trace_save.
8564 2013-03-13 Pedro Alves <palves@redhat.com>
8566 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8568 2013-03-13 Pedro Alves <palves@redhat.com>
8570 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8572 * demangle.c (current_demangling_style_string): Make it const.
8573 (set_demangling_command): Assert the demangling style is known.
8574 Remove all handling of unknown styles. Set
8575 'current_demangling_style_string' to an element of the
8576 demangling_style_names array.
8577 (set_demangling_style): Delete.
8578 (_initialize_demangler): Set current_demangling_style_string to the
8579 element of the demangling_style_names array that corresponds to
8580 the default demangling style. Remove FIXME note. Don't call
8581 set_demangling_style.
8582 * gdb-demangle.h (set_demangling_style): Remove declaration.
8584 2013-03-13 Pedro Alves <palves@redhat.com>
8586 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8588 (ada_make_symbol_completion_list): Make "text0" parameter const.
8589 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8590 * breakpoint.c (condition_completer): Make "text" and "word"
8591 parameters const. Adjust.
8592 (check_tracepoint_command): Adjust to validate_actionline
8594 (catch_syscall_completer): Make "text" and "word" parameters
8596 * cli/cli-cmds.c (show_user): Make "comname" local const.
8597 (valid_command_p): Make "command" parameter const.
8598 (alias_command): Make "alias_prefix" and "command_prefix" locals
8600 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8601 (add_alias_cmd): Make "name" and "oldname" parameters const.
8602 Adjust. No longer make copy of OLDNAME.
8603 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8604 (add_setshow_cmd_full, add_setshow_enum_cmd)
8605 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8606 (add_setshow_filename_cmd, add_setshow_string_cmd)
8607 (add_setshow_string_noescape_cmd)
8608 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8609 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8610 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8611 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8612 Make "name" parameter const.
8613 (help_cmd): Rename "command" parameter to "arg". New const local
8615 (find_cmd): Make "command" parameter const.
8616 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8617 deprecated_cmd_warning prototype change.
8618 (undef_cmd_error): Make "cmdtype" parameter const.
8619 (lookup_cmd): Make "line" parameter const.
8620 (deprecated_cmd_warning): Change type of "text" parameter to
8621 pointer to const char, from pointer to pointer to char. Adjust.
8622 (lookup_cmd_composition): Make "text" parameter const.
8623 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8625 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8627 * cli/cli-script.c (validate_comname): Make "tem" local const.
8628 (define_command): New const local "tem_c". Use it in calls to
8630 (document_command): Make "tem" and "comfull" locals const.
8631 (show_user_1): Make "prefix" and "name" parameters const.
8632 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8634 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8635 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8636 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8637 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8638 (complete_on_enum, add_setshow_enum_cmd)
8639 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8640 (add_setshow_filename_cmd, add_setshow_string_cmd)
8641 (add_setshow_string_noescape_cmd)
8642 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8643 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8644 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8645 Change prototypes, constifying strings.
8646 * completer.c (noop_completer, filename_completer): Make "text"
8647 and "prefix" parameters const.
8648 (location_completer, expression_completer)
8649 (complete_line_internal): Make "text" and "prefix" parameters
8651 (command_completer, signal_completer): Make "text" and "prefix"
8653 * completer.h (noop_completer, filename_completer)
8654 (expression_completer, location_completer, command_completer)
8655 (signal_completer): Change prototypes.
8656 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8658 * cp-abi.c (cp_abi_completer): Likewise.
8659 * expression.h (parse_expression_for_completion): Change
8661 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8663 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8664 * infrun.c (handle_completer): Make "text" and "word" parameters
8666 * interps.c (interpreter_completer): Make "text" and "word"
8668 * language.h (struct language_defn)
8669 <la_make_symbol_completion_list>: Make "text" and "word"
8671 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8672 (parse_exp_in_context): Rename to ...
8673 (parse_exp_in_context_1): ... this.
8674 (parse_exp_in_context): Reimplement, with const hack from
8676 (parse_expression_for_completion): Make "string" parameter const.
8677 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8678 to pointer to const char. Adjust.
8679 (print_command_1): Make "exp" parameter const.
8680 (output_command): Rename to ...
8681 (output_command_const): ... this. Make "exp" parameter const.
8682 (output_command): Reimplement.
8683 (x_command): Adjust.
8684 (display_command): Rename "exp" parameter to "arg". New "exp"
8685 local, const version of "arg".
8686 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8687 "cmd_name" local const.
8688 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8690 (cmdpy_completer): Make "text" and "word" parameters const.
8691 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8692 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8694 * remote.c (_initialize_remote): Make "cmd_name" local const.
8695 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8696 parameters const. Adjust.
8697 (completion_list_add_fields): Make "sym_text", "text" and "word"
8699 (struct add_name_data) <sym_text, text, word>: Make fields const.
8700 (default_make_symbol_completion_list_break_on): Make "text" and
8701 "word" parameters const. Adjust locals.
8702 (default_make_symbol_completion_list)
8703 (make_symbol_completion_list, make_symbol_completion_type)
8704 (make_symbol_completion_list_fn): Make "text" and "word"
8706 (make_file_symbol_completion_list): Make "text", "word" and
8707 "srcfile" parameters const. Adjust locals.
8708 (add_filename_to_list): Make "text" and "word" parameters const.
8709 (struct add_partial_filename_data) <text, word>: Make fields
8711 (make_source_files_completion_list): Make "text" and "word"
8713 * symtab.h (default_make_symbol_completion_list_break_on)
8714 (default_make_symbol_completion_list, make_symbol_completion_list)
8715 (make_symbol_completion_type enum type_code)
8716 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8717 (make_source_files_completion_list): Change prototype.
8718 * top.c (execute_command): Adjust to pass pointer to pointer to
8719 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8721 (set_verbose): Make "cmdname" local const.
8722 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8724 (validate_actionline): Make "line" parameter a pointer to const
8726 (encode_actions_1): Make "action_exp" local const, and adjust.
8727 (encode_actions): Adjust.
8728 (replace_comma): Delete.
8729 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8730 const, and adjust. Don't frob the action string while splitting
8731 it at commas. Instead, make a copy of each split substring in
8733 (trace_dump_command): Adjust to validate_actionline prototype
8735 * tracepoint.h (decode_agent_options, decode_agent_options)
8736 (encode_actions, validate_actionline): Change prototypes.
8737 * valprint.h (output_command): Delete declaration.
8738 (output_command_const): Declare.
8739 * value.c (function_destroyer): Cast const away in xfree call.
8741 2013-03-13 Pedro Alves <palves@redhat.com>
8743 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8744 rather than casting 'const char * const *' to 'const char **'.
8745 * ada-lex.l (processInt): Make "trailer" local const. Remove
8746 'const char **' cast.
8747 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8748 locals, and use those as strtol output pointer, instead than doing
8749 invalid casts to from 'const char **' to 'char **'.
8750 (_initialize_demangle): Remove cast.
8751 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8752 locals, and use those as strtol output pointer, instead than doing
8753 invalid casts to from 'const char **' to 'char **'.
8754 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8756 * stap-probe.c (stap_parse_register_operand)
8757 (stap_parse_single_operand): Likewise.
8759 2013-03-13 Yao Qi <yao@codesourcery.com>
8761 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8762 the last matched 'V' blcok in trace frame.
8764 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8766 * NEWS: Create a new section for the next release branch.
8767 Rename the section of the current branch, now that it has
8770 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8772 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8773 * version.in: Bump version to 7.6.50.20130312-cvs.
8775 2013-03-12 Keith Seitz <keiths@redhat.com>
8777 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8778 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8779 Remove temporary copy of input string.
8780 (mi_execute_command_wrapper): Make "cmd" const.
8781 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8782 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8784 (mi_parse): Make "cmd" const.
8786 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8788 2013-03-12 Keith Seitz <keiths@redhat.com>
8790 * ada-lang.c (ada_read_renaming_var_value): Pass const
8791 pointer to expression string to parse_exp_1.
8792 (create_excep_cond_exprs): Likewise.
8793 * ax-gdb.c (agent_eval_command_one): Likewise.
8794 (maint_agent_printf_command): Likewise.
8795 Constify much of the string handling/parsing.
8796 * breakpoint.c (set_breakpoint_condition): Pass const
8797 pointer to expression string to parse_exp_1.
8798 (update_watchpoint): Likewise.
8799 (parse_cmd_to_aexpr): Constify string handling.
8800 Pass const pointer to parse_exp_1.
8801 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8802 (find_condition_and_thread): Likewise.
8804 (watch_command_1): Make "arg" const.
8805 Constify string handling.
8806 Copy the expression string instead of changing the input
8808 (update_breakpoint_location): Pass const pointer to
8810 * eval.c (parse_and_eval_address): Make "exp" const.
8811 (parse_to_comma_and_eval): Make "expp" const.
8812 (parse_and_eval): Make "exp" const.
8813 * expression.h (parse_expression): Make argument const.
8814 (parse_exp_1): Make first argument const.
8815 * findcmd.c (parse_find_args): Treat "args" as const.
8816 * linespec.c (parse_linespec): Pass const pointer to
8817 linespec_expression_to_pc.
8818 (linespec_expression_to_pc): Make "exp_ptr" const.
8819 * parse.c (parse_exp_1): Make "stringptr" const.
8820 Make a copy of the expression to pass to parse_exp_in_context until
8821 this whole interface can be constified.
8822 (parse_expression): Make "string" const.
8823 * printcmd.c (ui_printf): Treat "arg" as const.
8824 Handle const strings.
8825 * tracepoint.c (validate_actionline): Pass const pointer to
8826 all calls to parse_exp_1.
8827 (encode_actions_1): Likewise.
8828 * value.h (parse_to_comma_and_eval): Make argument const.
8829 (parse_and_eval_address): Likewise.
8830 (parse_and_eval): Likewise.
8831 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8832 (varobj_set_value): Likewise.
8833 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8834 constify string handling.
8835 Pass const pointers to parse_and_eval_address and
8836 parse_to_comman_and_eval.
8837 * cli/cli-utils.c (skip_to_space): Rename to ...
8838 (skip_to_space_const): ... this. Handle const strings.
8839 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8840 skip_to_space_const.
8841 (skip_to_space_const): Declare.
8842 * common/format.c (parse_format_string): Make "arg" const.
8843 Handle const strings.
8844 * common/format.h (parse_format_string): Make "arg" const.
8845 * gdbserver/ax.c (ax_printf): Make "format" const.
8846 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8847 of the expression string.
8849 2013-03-12 Hui Zhu <hui@codesourcery.com>
8851 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8853 2013-03-12 Yao Qi <yao@codesourcery.com>
8854 Hui Zhu <hui@codesourcery.com>
8856 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8857 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8860 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8862 * ada-lex.l (rules): Only recognize 'thread' as a
8863 delimiter when followed by numerals, as for c-exp.y.
8864 Use new rewind_to_char function to rewind the input for
8865 expression-delimiting tokens.
8866 (rewind_to_char): New function.
8868 2013-03-11 Pedro Alves <palves@redhat.com>
8869 Jan Kratochvil <jan.kratochvil@redhat.com>
8871 * configure: Regenerate.
8872 * configure.ac (check dynamic export flag): Link python test with
8875 2013-03-11 Doug Evans <dje@google.com>
8876 Keith Seitz <keiths@redhat.com>
8878 * linespec.c (find_linespec_symbols): Call find_function_symbols
8879 first, and then call lookup_prefix_sym/find_method.
8881 2013-03-11 Pedro Alves <palves@redhat.com>
8883 * charset.c (convert_between_encodings): Don't cast between
8884 different pointer to pointer types. Instead, make the 'inp' local
8885 be of the type iconv expects.
8886 (wchar_iterate): Don't cast between different pointer to pointer
8887 types. Instead, use new pointer local of the type iconv expects.
8888 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8889 Add new local of type char pointer, and use it to get a
8890 char/string view of the byte buffer, instead of casting between
8891 pointer to pointer types.
8893 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8895 * remote.c (remote_set_trace_buffer_size): Move != operator
8896 to the start of next line to fix an ARI warning.
8898 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8900 * NEWS: Add record changes.
8902 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8904 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8905 the instruction history disassembly.
8906 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8907 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8911 * Makefile.in (SFILES): Add record-btrace.c
8912 (COMMON_OBS): Add record-btrace.o
8913 * record-btrace.c: New.
8914 * objfiles.c: Include btrace.h.
8915 (free_objfile): call btrace_free_objfile.
8917 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8919 * target.c (target_call_history, target_call_history_from,
8920 target_call_history_range): New.
8921 * target.h (target_ops) <to_call_history, to_call_history_from,
8922 to_call_history_range>: New fields.
8923 (target_call_history, target_call_history_from,
8924 target_call_history_range): New declaration.
8925 * record.c (get_call_history_modifiers, cmd_record_call_history,
8926 record_call_history_size): New.
8927 (_initialize_record): Add the "record function-call-history" command.
8928 Add "set/show record function-call-history-size" commands.
8929 * record.h (record_print_flag): New.
8931 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8933 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8934 to_insn_history_range>: New fields.
8935 (target_insn_history): New.
8936 (target_insn_history_from): New.
8937 (target_insn_history_range): New.
8938 * target.c (target_insn_history): New.
8939 (target_insn_history_from): New.
8940 (target_insn_history_range): New.
8941 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8942 (record_insn_history_size): New.
8943 (get_insn_number): New.
8944 (get_context_size): New.
8946 (get_insn_history_modifiers): New.
8947 (cmd_record_insn_history): New.
8948 (_initialize_record): Add "set/show record instruction-history-size"
8949 command. Add "record instruction-history" command.
8951 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8953 * record.h (record_disconnect): New.
8954 (record_detach): New.
8955 (record_mourn_inferior): New.
8957 * record-full.c (record_disconnect, record_detach,
8958 record_mourn_inferior, record_kill): Move to...
8959 * record.c: ...here.
8962 (record_unpush): New.
8963 (cmd_record_stop): Call record_stop. Replace unpush_target
8964 call with record_unpush call.
8965 (record_disconnect, record_detach): Assert that the target
8966 is of record stratum. Call record_unpush, record_stop, and
8968 (record_mourn_inferior, record_kill): Assert that the target
8969 is of record stratum. Call record_unpush and DEBUG.
8971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8973 * record-full.h, record-full.c (record_memory_query): Rename
8975 (record_full_memory_query): ...this. Update all users.
8976 (record_arch_list_add_reg): Rename to ...
8977 (record_full_arch_list_add_reg): ...this. Update all users.
8978 (record_arch_list_add_mem): Rename to ...
8979 (record_full_arch_list_add_mem): ...this. Update all users.
8980 (record_arch_list_add_end): Rename to ...
8981 (record_full_arch_list_add_end): ...this. Update all users.
8982 (record_gdb_operation_disable_set): Rename to ...
8983 (record_full_gdb_operation_disable_set): ...this.
8986 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8988 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8989 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8990 (RECORD_IS_REPLAY): Renamed to ...
8991 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8992 (RECORD_FILE_MAGIC): Renamed to ...
8993 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8994 (record_mem_entry): Renamed to ...
8995 (record_full_mem_entry): ... this. Updated all users.
8996 (record_reg_entry): Renamed to ...
8997 (record_full_reg_entry): ... this. Updated all users.
8998 (record_end_entry): Renamed to ...
8999 (record_full_end_entry): ... this. Updated all users.
9000 (record_type) <record_end, record_reg, record_mem>: Renamed
9002 (record_full_type) <record_full_end, record_full_reg,
9003 record_full_mem>: ... this. Updated all users.
9004 (record_entry): Renamed to ...
9005 (record_full_entry): ... this. Updated all users.
9006 (record_core_buf_entry): Renamed to ...
9007 (record_full_core_buf_entry): ... this. Updated all users.
9008 (record_core_regbuf): Renamed to ...
9009 (record_full_core_regbuf): ... this. Updated all users.
9010 (record_core_start): Renamed to ...
9011 (record_full_core_start): ... this. Updated all users.
9012 (record_core_end): Renamed to ...
9013 (record_full_core_end): ... this. Updated all users.
9014 (record_core_buf_list): Renamed to ...
9015 (record_full_core_buf_list): ... this. Updated all users.
9016 (record_first): Renamed to ...
9017 (record_full_first): ... this. Updated all users.
9018 (record_list): Renamed to ...
9019 (record_full_list): ... this. Updated all users.
9020 (record_arch_list_head): Renamed to ...
9021 (record_full_arch_list_head): ... this. Updated all users.
9022 (record_arch_list_tail): Renamed to ...
9023 (record_full_arch_list_tail): ... this. Updated all users.
9024 (record_stop_at_limit): Renamed to ...
9025 (record_full_stop_at_limit): ... this. Updated all users.
9026 (record_insn_max_num): Renamed to ...
9027 (record_full_insn_max_num): ... this. Updated all users.
9028 (record_insn_num): Renamed to ...
9029 (record_full_insn_num): ... this. Updated all users.
9030 (record_insn_count): Renamed to ...
9031 (record_full_insn_count): ... this. Updated all users.
9032 (record_ops): Renamed to ...
9033 (record_full_ops): ... this. Updated all users.
9034 (record_core_ops): Renamed to ...
9035 (record_full_core_ops): ... this. Updated all users.
9036 (set_record_cmdlist): Renamed to ...
9037 (set_record_full_cmdlist): ... this. Updated all users.
9038 (show_record_cmdlist): Renamed to ...
9039 (show_record_full_cmdlist): ... this. Updated all users.
9040 (record_cmdlist): Renamed to ...
9041 (record_full_cmdlist): ... this. Updated all users.
9042 (record_beneath_to_resume_ops): Renamed to ...
9043 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9044 (record_beneath_to_resume): Renamed to ...
9045 (record_full_beneath_to_resume): ... this. Updated all users.
9046 (record_beneath_to_wait_ops): Renamed to ...
9047 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9048 (record_beneath_to_wait): Renamed to ...
9049 (record_full_beneath_to_wait): ... this. Updated all users.
9050 (record_beneath_to_store_registers_ops): Renamed to ...
9051 (record_full_beneath_to_store_registers_ops): ... this.
9053 (record_beneath_to_store_registers): Renamed to ...
9054 (record_full_beneath_to_store_registers): ... this.
9056 (record_beneath_to_xfer_partial_ops): Renamed to ...
9057 (record_full_beneath_to_xfer_partial_ops): ... this.
9059 (record_beneath_to_xfer_partial): Renamed to ...
9060 (record_full_beneath_to_xfer_partial): ... this.
9062 (record_beneath_to_insert_breakpoint): Renamed to ...
9063 (record_full_beneath_to_insert_breakpoint): ... this.
9065 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9066 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9068 (record_beneath_to_stopped_data_address): Renamed to ...
9069 (record_full_beneath_to_stopped_data_address): ... this.
9071 (record_beneath_to_async): Renamed to ...
9072 (record_full_beneath_to_async): ... this. Updated all users.
9073 (record_goto_insn): Renamed to ...
9074 (record_full_goto_insn): ... this. Updated all users.
9075 (record_save): Renamed to ...
9076 (record_full_save): ... this. Updated all users.
9077 (record_reg_alloc): Renamed to ...
9078 (record_full_reg_alloc): ... this. Updated all users.
9079 (record_reg_release): Renamed to ...
9080 (record_full_reg_release): ... this. Updated all users.
9081 (record_mem_alloc): Renamed to ...
9082 (record_full_mem_alloc): ... this. Updated all users.
9083 (record_mem_release): Renamed to ...
9084 (record_full_mem_release): ... this. Updated all users.
9085 (record_end_alloc): Renamed to ...
9086 (record_full_end_alloc): ... this. Updated all users.
9087 (record_end_release): Renamed to ...
9088 (record_full_end_release): ... this. Updated all users.
9089 (record_entry_release): Renamed to ...
9090 (record_full_entry_release): ... this. Updated all users.
9091 (record_list_release): Renamed to ...
9092 (record_full_list_release): ... this. Updated all users.
9093 (record_list_release_following): Renamed to ...
9094 (record_full_list_release_following): ... this.
9096 (record_list_release_first): Renamed to ...
9097 (record_full_list_release_first): ... this. Updated all users.
9098 (record_arch_list_add): Renamed to ...
9099 (record_full_arch_list_add): ... this. Updated all users.
9100 (record_get_loc): Renamed to ...
9101 (record_full_get_loc): ... this. Updated all users.
9102 (record_check_insn_num): Renamed to ...
9103 (record_full_check_insn_num): ... this. Updated all users.
9104 (record_arch_list_cleanups): Renamed to ...
9105 (record_full_arch_list_cleanups): ... this. Updated all users.
9106 (record_message): Renamed to ...
9107 (record_full_message): ... this. Updated all users.
9108 (record_message_wrapper): Renamed to ...
9109 (record_full_message_wrapper): ... this. Updated all users.
9110 (record_message_wrapper_safe): Renamed to ...
9111 (record_full_message_wrapper_safe): ... this. Updated all users.
9112 (record_gdb_operation_disable): Renamed to ...
9113 (record_full_gdb_operation_disable): ... this. Updated all users.
9114 (record_hw_watchpoint): Renamed to ...
9115 (record_full_hw_watchpoint): ... this. Updated all users.
9116 (record_exec_insn): Renamed to ...
9117 (record_full_exec_insn): ... this. Updated all users.
9118 (record_restore): Renamed to ...
9119 (record_full_restore): ... this. Updated all users.
9120 (record_async_inferior_event_token): Renamed to ...
9121 (record_full_async_inferior_event_token): ... this.
9123 (record_async_inferior_event_handler): Renamed to ...
9124 (record_full_async_inferior_event_handler): ... this.
9126 (record_core_open_1): Renamed to ...
9127 (record_full_core_open_1): ... this. Updated all users.
9128 (record_open_1): Renamed to ...
9129 (record_full_open_1): ... this. Updated all users.
9130 (record_open): Renamed to ...
9131 (record_full_open): ... this. Updated all users.
9132 (record_close): Renamed to ...
9133 (record_full_close): ... this. Updated all users.
9134 (record_resume_step): Renamed to ...
9135 (record_full_resume_step): ... this. Updated all users.
9136 (record_resumed): Renamed to ...
9137 (record_full_resumed): ... this. Updated all users.
9138 (record_execution_dir): Renamed to ...
9139 (record_full_execution_dir): ... this. Updated all users.
9140 (record_resume): Renamed to ...
9141 (record_full_resume): ... this. Updated all users.
9142 (record_get_sig): Renamed to ...
9143 (record_full_get_sig): ... this. Updated all users.
9144 (record_sig_handler): Renamed to ...
9145 (record_full_sig_handler): ... this. Updated all users.
9146 (record_wait_cleanups): Renamed to ...
9147 (record_full_wait_cleanups): ... this. Updated all users.
9148 (record_wait_1): Renamed to ...
9149 (record_full_wait_1): ... this. Updated all users.
9150 (record_wait): Renamed to ...
9151 (record_full_wait): ... this. Updated all users.
9152 (record_stopped_by_watchpoint): Renamed to ...
9153 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9154 (record_disconnect): Renamed to ...
9155 (record_full_disconnect): ... this. Updated all users.
9156 (record_detach): Renamed to ...
9157 (record_full_detach): ... this. Updated all users.
9158 (record_mourn_inferior): Renamed to ...
9159 (record_full_mourn_inferior): ... this. Updated all users.
9160 (record_kill): Renamed to ...
9161 (record_full_kill): ... this. Updated all users.
9162 (record_stopped_data_address): Renamed to ...
9163 (record_full_stopped_data_address): ... this. Updated all users.
9164 (record_registers_change): Renamed to ...
9165 (record_full_registers_change): ... this. Updated all users.
9166 (record_store_registers): Renamed to ...
9167 (record_full_store_registers): ... this. Updated all users.
9168 (record_xfer_partial): Renamed to ...
9169 (record_full_xfer_partial): ... this. Updated all users.
9170 (record_breakpoint): Renamed to ...
9171 (record_full_breakpoint): ... this. Updated all users.
9172 (record_breakpoint_p): Renamed to ...
9173 (record_full_breakpoint_p): ... this. Updated all users.
9174 (record_breakpoints): Renamed to ...
9175 (record_full_breakpoints): ... this. Updated all users.
9176 (record_sync_record_breakpoints): Renamed to ...
9177 (record_full_sync_record_breakpoints): ... this.
9179 (record_init_record_breakpoints): Renamed to ...
9180 (record_full_init_record_breakpoints): ... this.
9182 (record_insert_breakpoint): Renamed to ...
9183 (record_full_insert_breakpoint): ... this. Updated all users.
9184 (record_remove_breakpoint): Renamed to ...
9185 (record_full_remove_breakpoint): ... this. Updated all users.
9186 (record_can_execute_reverse): Renamed to ...
9187 (record_full_can_execute_reverse): ... this. Updated all users.
9188 (record_get_bookmark): Renamed to ...
9189 (record_full_get_bookmark): ... this. Updated all users.
9190 (record_goto_bookmark): Renamed to ...
9191 (record_full_goto_bookmark): ... this. Updated all users.
9192 (record_async): Renamed to ...
9193 (record_full_async): ... this. Updated all users.
9194 (record_can_async_p): Renamed to ...
9195 (record_full_can_async_p): ... this. Updated all users.
9196 (record_is_async_p): Renamed to ...
9197 (record_full_is_async_p): ... this. Updated all users.
9198 (record_execution_direction): Renamed to ...
9199 (record_full_execution_direction): ... this. Updated all users.
9200 (record_info): Renamed to ...
9201 (record_full_info): ... this. Updated all users.
9202 (record_delete): Renamed to ...
9203 (record_full_delete): ... this. Updated all users.
9204 (record_is_replaying): Renamed to ...
9205 (record_full_is_replaying): ... this. Updated all users.
9206 (record_goto_entry): Renamed to ...
9207 (record_full_goto_entry): ... this. Updated all users.
9208 (record_goto_begin): Renamed to ...
9209 (record_full_goto_begin): ... this. Updated all users.
9210 (record_goto_end): Renamed to ...
9211 (record_full_goto_end): ... this. Updated all users.
9212 (record_goto): Renamed to ...
9213 (record_full_goto): ... this. Updated all users.
9214 (init_record_ops): Renamed to ...
9215 (init_record_full_ops): ... this. Updated all users.
9216 (record_core_resume): Renamed to ...
9217 (record_full_core_resume): ... this. Updated all users.
9218 (record_core_kill): Renamed to ...
9219 (record_full_core_kill): ... this. Updated all users.
9220 (record_core_fetch_registers): Renamed to ...
9221 (record_full_core_fetch_registers): ... this. Updated all users.
9222 (record_core_prepare_to_store): Renamed to ...
9223 (record_full_core_prepare_to_store): ... this. Updated all users.
9224 (record_core_store_registers): Renamed to ...
9225 (record_full_core_store_registers): ... this. Updated all users.
9226 (record_core_xfer_partial): Renamed to ...
9227 (record_full_core_xfer_partial): ... this. Updated all users.
9228 (record_core_insert_breakpoint): Renamed to ...
9229 (record_full_core_insert_breakpoint): ... this. Updated all users.
9230 (record_core_remove_breakpoint): Renamed to ...
9231 (record_full_core_remove_breakpoint): ... this. Updated all users.
9232 (record_core_has_execution): Renamed to ...
9233 (record_full_core_has_execution): ... this. Updated all users.
9234 (init_record_core_ops): Renamed to ...
9235 (init_record_full_core_ops): ... this. Updated all users.
9236 (cmd_record_restore): Renamed to ...
9237 (cmd_record_full_restore): ... this. Updated all users.
9238 (record_save_cleanups): Renamed to ...
9239 (record_full_save_cleanups): ... this. Updated all users.
9240 (cmd_record_start): Renamed to ...
9241 (cmd_record_full_start): ... this. Updated all users.
9242 (set_record_insn_max_num): Renamed to ...
9243 (set_record_full_insn_max_num): ... this. Updated all users.
9244 (set_record_command): Renamed to ...
9245 (set_record_full_command): ... this. Updated all users.
9246 (show_record_command): Renamed to ...
9247 (show_record_full_command): ... this. Updated all users.
9248 (_initialize_record): Renamed to ...
9249 (_initialize_record_full): ... this. Updated all users.
9251 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9253 * record.h: Split into this and ...
9254 * record-full.h: ... this.
9255 * record.c: Split into this and ...
9256 * record-full.c: ... this.
9257 * target.h (target_ops): Add new fields to_info_record,
9258 to_save_record, to_delete_record, to_record_is_replaying,
9259 to_goto_record_begin, to_goto_record_end, to_goto_record.
9260 (target_info_record): New.
9261 (target_save_record): New.
9262 (target_supports_delete_record): New.
9263 (target_delete_record): New.
9264 (target_record_is_replaying): New.
9265 (target_goto_record_begin): New.
9266 (target_goto_record_end): New.
9267 (target_goto_record): New.
9268 * target.c (target_info_record): New.
9269 (target_save_record): New.
9270 (target_supports_delete_record): New.
9271 (target_delete_record): New.
9272 (target_record_is_replaying): New.
9273 (target_goto_record_begin): New.
9274 (target_goto_record_end): New.
9275 (target_goto_record): New.
9276 * record.h: Declare struct cmd_list_element.
9277 (record_cmdlist): New declaration.
9278 (set_record_cmdlist): New declaration.
9279 (show_record_cmdlist): New declaration.
9280 (info_record_cmdlist): New declaration.
9281 (cmd_record_goto): New declaration.
9282 * record.c: Remove unnecessary includes.
9284 (cmd_record_goto): Remove declaration.
9285 (record_cmdlist): Now extern. Initialize.
9286 (set_record_cmdlist): Now extern. Initialize.
9287 (show_record_cmdlist): Now extern. Initialize.
9288 (info_record_cmdlist): Now extern. Initialize.
9289 (find_record_target): New.
9290 (require_record_target): New.
9291 (cmd_record_start): Update.
9292 (cmd_record_delete): Remove target-specific code.
9293 Call target_delete_record.
9294 (cmd_record_stop): Unpush any record target.
9295 (set_record_insn_max_num): Move to record-full.c
9296 (set_record_command): Add comment.
9297 (show_record_command): Add comment.
9298 (info_record_command): Update comment.
9299 Remove target-specific code.
9300 Call the record target's to_info_record.
9301 (cmd_record_start): New.
9302 (cmd_record_goto): Now extern.
9303 Remove target-specific code.
9304 Call target_goto_begin, target_goto_end, or target_goto.
9305 (_initialize_record): Move record target ops initialization to
9307 Change "record" command help text.
9308 Move "record restore", "record set", and "record show" commands to
9310 * Makefile.in (SFILES): Add record-full.c.
9311 (HFILES_NO_SRCDIR): Add record-full.h.
9312 (COMMON_OBS): Add record-full.o.
9313 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9314 * arm-tdep.c: Include record-full.h.
9315 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9316 * i386-tdep.c: Include record-full.h.
9317 * infrun.c: Include record-full.h.
9318 * linux-record.c: Include record-full.h.
9319 * moxie-tdep.c: Include record-full.h.
9320 * record-full.c: Include record-full.h.
9321 Change module comment.
9322 (set_record_full_cmdlist): New.
9323 (show_record_full_cmdlist): New.
9324 (record_full_cmdlist): New.
9325 (record_goto_insn): New declaration.
9326 (record_save): New declaration.
9327 (record_check_insn_num): Change query string.
9329 (record_delete): New.
9330 (record_is_replaying): New.
9331 (record_goto_entry): New.
9332 (record_goto_begin): New.
9333 (record_goto_end): New.
9335 (init_record_ops): Update.
9336 (init_record_core_ops): Update.
9337 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9338 (cmd_record_start): New.
9339 (set_record_insn_max_num): Moved from record.c
9340 (set_record_full_command): New.
9341 (show_record_full_command): New.
9342 (_initialize_record_full): New.
9344 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9346 * target.h (add_deprecated_target_alias): New.
9347 * target.c (add_deprecated_target_alias): New.
9349 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9351 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9353 (linux_supports_btrace): Add kernel and
9355 (kernel_supports_btrace): New function.
9356 (cpu_supports_btrace): New function.
9357 (intel_supports_btrace): New function.
9359 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9361 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9362 * remote.c: Include btrace.h.
9363 (struct btrace_target_info): New struct.
9364 (remote_supports_btrace): New function.
9365 (send_Qbtrace): New function.
9366 (remote_enable_btrace): New function.
9367 (remote_disable_btrace): New function.
9368 (remote_teardown_btrace): New function.
9369 (remote_read_btrace): New function.
9370 (init_remote_ops): Add btrace ops.
9371 (enum <unnamed>): Add btrace packets.
9372 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9373 (_initialize_remote): Add packet configuration for branch tracing.
9375 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9377 * features/btrace.dtd: New file.
9378 * Makefile.in (XMLFILES): Add btrace.dtd.
9379 * btrace.h (parse_xml_btrace): New declaration.
9380 * btrace.c: Include xml-support.h.
9381 (parse_xml_btrace): New function.
9382 (parse_xml_btrace_block): New function.
9383 (block_attributes): New struct.
9384 (btrace_attributes): New struct.
9385 (btrace_children): New struct.
9386 (btrace_elements): New struct.
9388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9390 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9391 (amd64_linux_enable_btrace): New.
9392 (amd64_linux_disable_btrace): New.
9393 (amd64_linux_teardown_btrace): New.
9394 (_initialize_amd64_linux_nat): Initialize btrace ops.
9395 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9396 (i386_linux_enable_btrace): New.
9397 (i386_linux_disable_btrace): New.
9398 (i386_linux_teardown_btrace): New.
9399 (_initialize_i386_linux_nat): Initialize btrace ops.
9400 * config/i386/linux.mh: Add linux-btrace.o.
9401 * config/i386/linux64.mh: Add linux-btrace.o.
9403 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9405 * common/linux_btrace.h: New file.
9406 * common/linux_btrace.c: New file.
9407 * Makefile.in (SFILES): Add btrace.c.
9408 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9409 (COMMON_OBS): Add btrace.o.
9410 (linux-btrace.o): New rule.
9412 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9414 * target.h: Include btrace.h.
9415 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9416 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9417 * target.c (target_supports_btrace): New function.
9418 (target_enable_btrace): New function.
9419 (target_disable_btrace): New function.
9420 (target_teardown_btrace): New function.
9421 (target_read_btrace): New function.
9422 * btrace.h: New file.
9423 * btrace.c: New file.
9424 * Makefile.in: Add btrace.c.
9425 * gdbthread.h: Include btrace.h.
9426 (struct thread_info): Add btrace field.
9427 * thread.c: Include btrace.h.
9428 (clear_thread_inferior_resources): Call target_teardown_btrace.
9429 * common/btrace-common.h: New file.
9431 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9433 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9434 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9435 kill_status to outer block.
9437 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9439 Fix entry-values if the callee called a noreturn function.
9440 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9441 get_frame_address_in_block. Add new comment.
9443 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9445 Fix entry-values in C++ across CUs.
9446 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9447 lookup_minimal_symbol. Add a comment.
9449 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9452 2013-03-08 Yao Qi <yao@codesourcery.com>
9454 * tracepoint.c (_initialize_tracepoint): Indent the code.
9456 2013-03-08 Pedro Alves <palves@redhat.com>
9458 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9459 (parse_find_args, find_command): Change type of pattern buffer
9460 locals to 'gdb_byte *'.
9462 2013-03-08 Stan Shebs <stan@codesourcery.com>
9463 Hafiz Abid Qadeer <abidh@codesourcery.com>
9465 * NEWS: Mention set and show trace-buffer-size commands.
9467 * target.h (struct target_ops): New method
9468 to_set_trace_buffer_size.
9469 (target_set_trace_buffer_size): New macro.
9470 * target.c (update_current_target): Set up new method.
9471 * tracepoint.c (trace_buffer_size): New global.
9472 (start_tracing): Send it to the target.
9473 (set_trace_buffer_size): New function.
9474 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9475 * remote.c (remote_set_trace_buffer_size): New function.
9476 (_initialize_remote): Use it.
9477 (QTBuffer:size) New remote command.
9478 (PACKET_QTBuffer_size): New enum.
9479 (remote_protocol_features): Add an entry for
9480 PACKET_QTBuffer_size.
9482 2013-03-08 Tom Tromey <tromey@redhat.com>
9484 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9487 2013-03-07 Pedro Alves <palves@redhat.com>
9489 * target.c (target_read_stralloc, target_fileio_read_alloc):
9490 *Cast pointer to 'gdb_byte *' in target call.
9492 2013-03-07 Pedro Alves <palves@redhat.com>
9494 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9497 2013-03-07 Keith Seitz <keiths@redhat.com>
9499 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9500 (trace_pass_command): Likewise.
9501 * cli/cli-cmds.c: Include cli/cli-utils.h.
9502 (source_command): Use skip-spaces.
9503 (disassemble_command): Likewise.
9504 * findcmd.c: Include cli/cli-utils.h.
9505 (parse_find_args): Use skip_spaces.
9506 * go32-nat.c: Include cli/cli-utils.h.
9507 (go32_sldt): Use skip_spaces.
9508 (go32_sgdt): Likewise.
9509 (go32_sidt): Likewise.
9510 (go32_pde): Likewise.
9511 (go32_pte): Likewise.
9512 (go32_pte_for_address): Likewise.
9513 * infcmd.c: Include cli/cli-utils.h.
9514 (registers_info): Use skip_spaces.
9515 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9516 (linux_info_proc): Likewise.
9517 * linux-thread-db.c: Include cli/cli-utils.h.
9518 (info_auto_load_libthread_db): Use skip_spaces_const.
9519 * m32r-rom.c: Include cli/cli-utils.h.
9520 (m32r_upload_command): Use skip_spaces.
9521 * maint.c: Include cli/cli-utils.h.
9522 (maintenance_translate_address): Use skip_spaces.
9523 * mi/mi-parse.c: Include cli/cli-utils.h.
9524 (mi_parse_argv): Use skip_spaces.
9525 (mi_parse): Likewise.
9526 * minsyms.c: Include cli/cli-utils.h.
9527 (msymbol_hash_iw): Use skip_spaces_const.
9528 * objc-lang.c: Include cli/cli-utils.h.
9529 (parse_selector): Use skip_spaces.
9530 (parse_method): Likewise.
9531 * python/python.c: Include cli/cli-utils.h.
9532 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9533 (python_command)[HAVE_PYTHON]: Likewise.
9534 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9535 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9536 (m32r_load): Use skip_spaces.
9537 * serial.c: Include cli/cli-utils.h.
9538 (serial_open): Use skip_spaces_const.
9539 * stack.c: Include cli/cli-utils.h.
9540 (parse_frame_specification_1): Use skip_spaces_const.
9541 * symfile.c: Include cli/cli-utils.h.
9542 (set_ext_lang_command): Use skip_spaces.
9543 * symtab.c: Include cli/cli-utils.h.
9544 (rbreak_command): Use skip_spaces.
9545 * thread.c (thread_name_command): Use skip_spaces.
9546 * tracepoint.c (validate_actionline): Use skip_spaces.
9547 (encode_actions_1): Likewise.
9548 (trace_find_range_command): Likewise.
9549 (trace_find_outside_command): Likewise.
9550 (trace_dump_actions): Likewise.
9552 2013-03-07 Pedro Alves <palves@redhat.com>
9554 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9555 * expprint.c (print_subexp_standard): Likewise.
9556 * utils.c (host_char_to_target): Likewise.
9557 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9558 * varobj.c (value_get_print_value): Change type of local to char*.
9559 Cast it gdb_byte * in call to language printer.
9561 2013-03-07 Pedro Alves <palves@redhat.com>
9563 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9565 (make_wchar_iterator): Remove cast to char*.
9566 (wchar_iterate): Change type of local.
9568 2013-03-07 Pedro Alves <palves@redhat.com>
9570 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9571 for 'regcache->register_status'.
9573 2013-03-07 Pedro Alves <palves@redhat.com>
9575 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9578 2013-03-07 Pedro Alves <palves@redhat.com>
9580 * stap-probe.c (handle_stap_probe): Add cast to char*.
9582 2013-03-07 Pedro Alves <palves@redhat.com>
9584 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9585 RECORD_MSGRCV>: Pass a signed variable to
9586 regcache_raw_read_signed, instead of an unsigned one.
9588 2013-03-07 Pedro Alves <palves@redhat.com>
9590 * remote-notif.c (notif_debug): Change type to int.
9591 * remote-notif.h (notif_debug): Likewise.
9593 2013-03-07 Pedro Alves <palves@redhat.com>
9595 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9597 2013-03-07 Pedro Alves <palves@redhat.com>
9599 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9600 * remote.h (hex2bin, bin2hex): ... here.
9601 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9603 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9605 * utils.c (initialize_utils): Improve doc strings of "set/show
9606 width", "set/show height", and "set/show pagination".
9608 2013-03-06 Keith Seitz <keiths@redhat.com>
9610 * ax-gdb.c (gen_printf): Make FORMAT const.
9611 * ax-gdb.h (gen_printf): Likewise.
9612 * ax-general.c (ax_string): Make STR const.
9613 * ax.h (ax_string): Likewise.
9615 2013-03-06 Doug Evans <dje@google.com>
9617 * elfread.c (elf_symfile_read): Move debugging printf to more
9620 2013-03-06 Pedro Alves <palves@redhat.com>
9622 * python/py-utils.c (target_string_to_unicode): Delete function.
9623 * python/python-internal.h (target_string_to_unicode): Delete
9626 2013-03-06 Pierre Muller <muller@sourceware.org>
9628 * linespec.c (get_current_search_block): ARI fix, use (void)
9629 for empty parameter list.
9631 2013-03-05 Doug Evans <dje@google.com>
9633 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9634 of old ada_lookup_symbol_list. In !full_search case, don't
9636 (ada_lookup_symbol_list): Delete arg full_search, all callers
9637 updated. Call ada_lookup_symbol_list_worker.
9638 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9639 * ada-lang.h (ada_lookup_symbol_list): Update.
9640 * language.h (language_defn): Update comment for
9641 la_iterate_over_symbols.
9642 * linespec.c (iterate_over_file_blocks): New function.
9643 (iterate_over_all_matching_symtabs): Call it.
9644 (lookup_prefix_sym): Ditto.
9645 (get_current_search_block): New function.
9646 (get_search_block): Delete.
9647 (find_label_symbols): Call get_current_search_block.
9648 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9649 * symtab.c (iterate_over_symbols): Don't search superblocks.
9651 2013-03-05 Yao Qi <yao@codesourcery.com>
9653 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9654 parameter VAR's type from "unsigned int" to "int".
9655 * command.h (var_zuinteger_unlimited): Update its comments.
9656 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9658 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9660 * NEWS: Mention new target x86_64-*-cygwin*.
9662 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9664 * configure.host: Add x86_64-*-cygwin* as host.
9665 * configure.tgt: Add x86_64-*-cygwin* as target.
9666 * config/i386/cygwin64.mh: New file.
9668 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9670 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9672 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9674 * linespec.c (struct linespec_canonical_name): New.
9675 (struct linespec_state): Change canonical_names type to it.
9676 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9677 xrealloc element size. Initialize the different CANONICAL fields.
9678 (canonical_to_fullform): New.
9679 (filter_results): Use it. Add variables canonical, fullform and
9681 (struct decode_line_2_item, decode_line_2_compare_items): New.
9682 (decode_line_2): Remove variables iter and item_names, add variables
9683 items and items_count. Modify the code for these new variables.
9685 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9687 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9690 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9692 * tracepoint.c (build_traceframe_info): Add code for byte order.
9694 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9696 * v850-tdep.c: (v850e2_register_name): Revise system register
9697 names to match current V850E2M architecture specifications.
9698 Update register number enum comments too.
9700 2013-03-01 Jiong Wang <jiwang@tilera.com>
9701 Pedro Alves <palves@redhat.com>
9703 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9705 (tilegx_skip_prologue): Limit prologue analysis to section end.
9707 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9709 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9712 2013-03-01 Pedro Alves <palves@redhat.com>
9714 Use gdb_byte for bytes from the program being debugged.
9716 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9717 Change type of local 'buf' to gdb_byte.
9718 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9719 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9720 * cris-tdep.c (cris_sigcontext_addr)
9721 (cris_sigtramp_frame_unwind_cache): Likewise.
9722 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9723 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9725 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9726 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9727 (hppa32_hpux_search_dummy_call_sequence)
9728 (hppa_hpux_supply_save_state): Likewise.
9729 * hppa-linux-tdep.c (insns_match_pattern)
9730 (hppa_linux_find_global_pointer): Likewise.
9731 * hppa-tdep.c (hppa_in_function_epilogue_p)
9732 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9733 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9734 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9735 (i386fbsd_collect_uthread): Likewise.
9736 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9737 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9738 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9739 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9740 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9741 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9742 (ia64_libunwind_frame_prev_register)
9743 (ia64_libunwind_sigtramp_frame_this_id)
9744 (ia64_find_global_pointer_from_dynamic_section)
9745 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9746 (ia64_unwind_pc): Likewise.
9747 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9748 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9749 (m68hc11_extract_return_value): Likewise.
9750 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9751 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9752 (mep_get_insn, mep_push_dummy_call): Likewise.
9753 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9754 (mips_linux_in_dynsym_stub): Likewise.
9755 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9756 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9757 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9759 * remote-mips.c (mips_set_register): Likewise.
9760 * remote-sim.c (gdbsim_fetch_register): Likewise.
9761 * score-tdep.c (score7_fetch_inst): Change type of parameter
9762 'memblock' and local 'buf' to gdb_byte.
9763 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9764 Change type of local 'buf' to gdb_byte. Adjust.
9765 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9767 (score7_analyze_prologue): Change type of 'memblock' and
9768 'memblock_ptr' locals to gdb_byte*.
9769 * sh64-tdep.c (sh64_extract_return_value)
9770 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9771 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9772 * solib-pa64.c (pa64_solib_create_inferior_hook)
9773 (pa64_open_symbol_file_object): Remove local 'buf'.
9774 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9775 (som_open_symbol_file_object): Likewise.
9776 * solib-spu.c (spu_current_sos): Likewise.
9777 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9778 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9779 (spu_store_registers): Likewise.
9780 * target.c (debug_print_register): Likewise.
9781 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9782 * xstormy16-tdep.c (xstormy16_store_return_value)
9783 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9784 (xstormy16_find_jmp_table_entry): Likewise.
9786 2013-03-01 Jiong Wang <jiwang@tilera.com>
9788 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9789 (tilegx_gdbarch_init): Install it.
9791 2013-02-28 Tom Tromey <tromey@redhat.com>
9793 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9796 2013-02-28 Doug Evans <dje@google.com>
9798 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9799 * python/python.c (gdbpy_find_pc_line): Ditto.
9801 2013-02-28 Tom Tromey <tromey@redhat.com>
9803 * contrib/excheck.py: New file.
9804 * contrib/exsummary.py: New file.
9805 * contrib/gcc-with-excheck: New file.
9807 2013-02-28 Tom Tromey <tromey@redhat.com>
9809 * python/python.c (gdbpy_print_stack): Call begin_line and
9810 fprintf_filtered inside TRY_CATCH.
9812 2013-02-28 Tom Tromey <tromey@redhat.com>
9814 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9817 2013-02-28 Tom Tromey <tromey@redhat.com>
9819 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9820 frame_object_to_frame_info inside TRY_CATCH.
9822 2013-02-28 Tom Tromey <tromey@redhat.com>
9824 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9827 2013-02-28 Tom Tromey <tromey@redhat.com>
9829 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9831 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9833 * windows-nat.c: Throughout, fix format strings and casts of
9834 printf-like functions to avoid type related warnings on all
9836 (handle_output_debug_string): Fetch context information address
9837 from debug string using string_to_core_addr.
9839 2013-02-27 Jiong Wang <jiwang@tilera.com>
9841 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9842 * regformats/reg-tilegx32.dat: New.
9844 2013-02-27 Jiong Wang <jiwang@tilera.com>
9846 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9848 2013-02-27 Jiong Wang <jiwang@tilera.com>
9850 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9852 2013-02-27 Yao Qi <yao@codesourcery.com>
9853 Pedro Alves <palves@redhat.com>
9855 * tracepoint.c (tfile_trace_find): For tfind
9856 pc/tp/range/outside, look for the next trace frame instead of
9857 always starting from frame 0.
9859 2013-02-26 Anthony Green <green@moxielogic.com>
9861 * configure.tgt: Add support for moxie-*-rtems* target.
9863 2013-02-25 Pedro Alves <palves@redhat.com>
9865 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9868 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9870 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9871 if $fp is used as the virtual frame pointer.
9873 2013-02-23 Alan Modra <amodra@gmail.com>
9875 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9877 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9878 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9879 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9880 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9882 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9885 * elfread.c (build_id_bfd_get): Make the return type const.
9886 (build_id_verify): Make the check parameter const.
9887 (build_id_to_debug_filename): Make the build_id parameter and variable
9889 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9891 2013-02-21 Alan Modra <amodra@gmail.com>
9893 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9895 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9897 Add a new method 'disassemble' to gdb.Architecture class.
9898 * python/py-arch.c (archpy_disassmble): Implementation of the
9899 new method gdb.Architecture.disassemble.
9900 (arch_object_methods): Add entry for the new method.
9902 2013-02-20 Jiong Wang <jiwang@tilera.com>
9904 * MAINTAINERS (Write After Approval): Add myself to the list.
9906 2013-02-19 Pedro Alves <palves@redhat.com>
9908 Garbage collect 'struct monitor_ops'::load_routine.
9910 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9911 * monitor.c (monitor_load): No longer call
9912 current_monitor->load_routine.
9913 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9914 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9915 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9917 2013-02-19 Pedro Alves <palves@redhat.com>
9921 Harmonize with generic_load.
9923 * monitor.c: Include "readline/readline.h".
9924 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9925 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9926 long/strtol for the 'load_offset' local. Error out if no argument
9927 is given or if too many arguments are given. Tilde expand the
9928 passed in file name.
9930 2013-02-19 Kai Tietz <ktietz@redhat.com>
9933 * symfile.c (load_section_data): Change type of load_offset
9935 (generic_load): User strtoulst instead of strtoul for conversion
9938 2013-02-19 Jiong Wang <jiwang@tilera.com>
9940 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9941 for return address, "lr" register, saved on stack.
9942 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9943 after we invoke tilegx_analyze_prologue.
9945 2013-02-19 Jiong Wang <jiwang@tilera.com>
9947 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9949 2013-02-19 Jiong Wang <jiwang@tilera.com>
9951 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9953 2013-02-19 Jiong Wang <jiwang@tilera.com>
9955 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9956 (tilegx_write_pc): New function.
9957 (tilegx_cannot_reference_register): Return zero if REGNO
9958 is TILEGX_FAULTNUM_REGNUM.
9959 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9960 (tilegx_register_name): Add handling of "faultnum" register.
9961 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9962 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9963 handling of TILEGX_FAULTNUM_REGNUM.
9964 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9966 2013-02-19 Jiong Wang <jiwang@tilera.com>
9968 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9969 should be aligned to 64bit.
9971 2013-02-19 Kai Tietz <ktietz@redhat.com>
9973 * windows-nat.c (windows_xfer_memory): Fix debug-output
9976 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9978 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9979 Don't check DSP register number if HAVE_DSP is not set.
9981 2013-02-19 Alan Modra <amodra@gmail.com>
9983 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9984 throughout file instead.
9985 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9986 Don't xmalloc return value.
9987 (build_id_verify): Similarly. Don't xfree.
9988 (build_id_to_debug_filename): Update.
9989 (find_separate_debug_file_by_buildid): Update, don't xfree.
9991 2013-02-18 Tom Tromey <tromey@redhat.com>
9994 * dwarf2read.c (read_subrange_type): Use result of
9997 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9999 * frame.c: Remove one extra white space after #include
10002 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10004 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10006 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10009 and dir commands into an if block.
10011 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10013 * python/py-breakpoint (struct pybp_code): Use int instead of
10016 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10017 Hafiz Abid Qadeer <abidh@codesourcery.com>
10019 * NEWS: Mention new field "trace-file".
10020 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10021 (tfile_open): Record the trace file's filename in the trace
10023 (tfile_files_info): Mention the name of the trace file.
10024 Check the "filename" field explicitely.
10025 (trace_status_command): Explicitely check "filename" field.
10026 (trace_find_command): Ditto.
10027 (trace_find_pc_command): Ditto.
10028 (trace_find_tracepoint_command): Ditto.
10029 (trace_find_line_command): Ditto.
10030 (trace_find_range_command): Ditto.
10031 (trace_find_outside_command): Ditto.
10032 * tracepoint.h (struct trace_status) <from_file>: Rename it
10033 to "filename" and make it hold the trace file's filename
10034 instead of a boolean.
10035 * remote.c (remote_get_trace_status): Initialize "filename"
10036 field with NULL instead of 0.
10038 2013-02-15 Yao Qi <yao@codesourcery.com>
10040 * remote.c: Fix a typo.
10042 2013-02-14 Pierre Muller <muller@sourceware.org>
10044 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10046 2013-02-14 Pedro Alves <palves@redhat.com>
10048 * utils.c (savestring): Don't #undef it. Move function to
10049 common/common-utils.c.
10050 * common/common-utils.c: Include gdb_string.h.
10051 (savestring): Move here from utils.c.
10052 * common/common-utils.h (savestring): Declare.
10054 2013-02-14 Pedro Alves <palves@redhat.com>
10056 * utils.c (savestring): Rename parameter 'size' to 'len'.
10058 2013-02-14 Pedro Alves <palves@redhat.com>
10059 Yufeng Zhang <yufeng.zhang@arm.com>
10061 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10062 (aarch64_inferior_data, struct aarch64_inferior_data):
10064 (struct aarch64_process_info): New.
10065 (aarch64_process_list): New global.
10066 (aarch64_find_process_pid, aarch64_add_process)
10067 (aarch64_process_info_get): New functions.
10068 (aarch64_inferior_data_get): Delete.
10069 (aarch64_process_info_get): New function.
10070 (aarch64_forget_process): New function.
10071 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10072 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10073 aarch64_get_debug_reg_state.
10074 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10075 instead of linux_nat_iterate_watchpoint_lwps.
10076 (aarch64_linux_new_fork): New function.
10077 (aarch64_linux_child_post_startup_inferior): Use
10078 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10079 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10080 (aarch64_linux_remove_hw_breakpoint)
10081 (aarch64_handle_aligned_watchpoint)
10082 (aarch64_handle_unaligned_watchpoint)
10083 (aarch64_linux_insert_watchpoint)
10084 (aarch64_linux_remove_watchpoint)
10085 (aarch64_linux_stopped_data_address): Adjust to pass the current
10086 process id to aarch64_debug_reg_state.
10087 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10088 linux_nat_new_fork hook, and aarch64_forget_process as
10089 linux_nat_forget_process hook; remove the call to
10090 register_inferior_data_with_cleanup.
10092 2013-02-14 Pedro Alves <palves@redhat.com>
10094 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10095 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10098 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10099 Hafiz Abid Qadeer <abidh@codesourcery.com>
10101 * tracepoint.h (validate_trace_state_variable_name): Declare.
10102 * tracepoint.c (validate_trace_state_variable_name): New.
10103 (trace_variable_command): Parse the trace state variable's name
10104 without using parse_expression. Do several validations.
10105 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10106 trace state variable's name with parse_expression. Validate it.
10108 2013-02-14 Yao Qi <yao@codesourcery.com>
10110 * infcmd.c (breakpoint_proceeded): Remove it.
10112 2013-02-14 Yao Qi <yao@codesourcery.com>
10114 * tracepoint.c (end_actions_pseudocommand): Make it static.
10115 (while_stepping_pseudocommand): Likewise.
10116 * tracepoint.h (end_actions_pseudocommand): Remove the
10118 (while_stepping_pseudocommand): Likewise.
10120 2013-02-14 Yao Qi <yao@codesourcery.com>
10122 * cli/cli-decode.c (help_cmd): Remove the declaration of
10124 (help_all): Likewise.
10126 2013-02-13 Pedro Alves <palves@redhat.com>
10128 * amd64-linux-nat.c (update_debug_registers_callback):
10130 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10132 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10133 i386_debug_reg_state.
10134 (amd64_linux_new_fork): New function.
10135 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10136 linux_nat_new_fork hook, and i386_forget_process as
10137 linux_nat_forget_process hook.
10138 * i386-linux-nat.c (update_debug_registers_callback):
10140 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10142 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10143 i386_debug_reg_state.
10144 (i386_linux_new_fork): New function.
10145 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10146 linux_nat_new_fork hook, and i386_forget_process as
10147 linux_nat_forget_process hook.
10148 * i386-nat.c (i386_init_dregs): Delete.
10149 (i386_inferior_data, struct i386_inferior_data):
10151 (struct i386_process_info): New.
10152 (i386_process_list): New global.
10153 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10155 (i386_inferior_data_get): Delete.
10156 (i386_process_info_get): New function.
10157 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10158 (i386_forget_process): New function.
10159 (i386_cleanup_dregs): Rewrite.
10160 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10161 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10162 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10163 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10164 to i386_debug_reg_state.
10165 (i386_use_watchpoints): Don't register inferior data.
10166 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10168 (i386_forget_process): Declare.
10169 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10170 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10171 New static globals.
10172 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10173 (add_initial_lwp): New, factored out from ...
10174 (add_lwp): ... this. Don't check the number of lwps before
10175 calling linux_nat_new_thread.
10176 (linux_nat_iterate_watchpoint_lwps): Delete.
10177 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10178 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10180 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10182 (linux_nat_kill, linux_nat_mourn_inferior): Call
10183 linux_nat_forget_process.
10184 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10185 (linux_nat_forget_process): New functions.
10186 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10188 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10189 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10191 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10192 (linux_nat_forget_process): New declarations.
10194 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10195 (amd64fbsd_mourn_inferior): New function.
10196 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10197 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10199 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10201 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10204 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10206 * aarch64-linux-nat.c (debug_reg_change_callback)
10207 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10210 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10212 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10215 2013-02-13 Pedro Alves <palves@redhat.com>
10216 Hafiz Abid Qadeer <abidh@codesourcery.com>
10218 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10220 2013-02-12 Tom Tromey <tromey@redhat.com>
10223 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10225 (classify_inner_name): Remove 'first_name' argument, add
10226 'context'. Remove unused variable.
10227 (yylex): Explicitly maintain the context type. Exit loop earlier
10228 if NAME result is seen.
10230 2013-02-12 Pedro Alves <palves@redhat.com>
10232 * amd64-darwin-tdep.c: Add (C) after Copyright.
10233 * cli/cli-cmds.h: Ditto.
10234 * cli/cli-decode.c: Ditto.
10235 * cli/cli-decode.h: Ditto.
10236 * cli/cli-dump.c: Ditto.
10237 * cli/cli-dump.h: Ditto.
10238 * cli/cli-interp.c: Ditto.
10239 * cli/cli-logging.c: Ditto.
10240 * cli/cli-script.c: Ditto.
10241 * cli/cli-script.h: Ditto.
10242 * cli/cli-setshow.c: Ditto.
10243 * cli/cli-setshow.h: Ditto.
10244 * cli/cli-utils.c: Ditto.
10245 * cli/cli-utils.h: Ditto.
10246 * config/alpha/nm-osf3.h: Ditto.
10247 * config/djgpp/djconfig.sh: Ditto.
10248 * config/i386/nm-fbsd.h: Ditto.
10249 * config/i386/nm-i386gnu.h: Ditto.
10250 * config/nm-linux.h: Ditto.
10251 * config/nm-nto.h: Ditto.
10252 * config/rs6000/nm-rs6000.h: Ditto.
10253 * config/sparc/nm-sol2.h: Ditto.
10254 * darwin-nat-info.c: Ditto.
10257 * gdb-demangle.h: Ditto.
10258 * i386-darwin-nat.c: Ditto.
10259 * i386-darwin-tdep.c: Ditto.
10260 * linux-fork.h: Ditto.
10261 * m32c-tdep.c: Ditto.
10262 * microblaze-linux-tdep.c: Ditto.
10263 * microblaze-rom.c: Ditto.
10264 * microblaze-tdep.c: Ditto.
10265 * microblaze-tdep.h: Ditto.
10266 * mips-linux-tdep.h: Ditto.
10267 * ppc-ravenscar-thread.c: Ditto.
10268 * ppc-ravenscar-thread.h: Ditto.
10269 * prologue-value.c: Ditto.
10270 * prologue-value.h: Ditto.
10271 * ravenscar-thread.c: Ditto.
10272 * ravenscar-thread.h: Ditto.
10273 * sparc-ravenscar-thread.c: Ditto.
10274 * sparc-ravenscar-thread.h: Ditto.
10275 * tilegx-linux-tdep.c: Ditto.
10276 * unwind_stop_reasons.def: Ditto.
10277 * windows-nat.h: Ditto.
10278 * xtensa-linux-tdep.c: Ditto.
10279 * xtensa-xtregs.c: Ditto.
10280 * regformats/regdat.sh: Ditto.
10281 * regformats/regdef.h: Ditto.
10283 2013-02-12 Pedro Alves <palves@redhat.com>
10285 * break-catch-sig.c: Update copyright years.
10287 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10289 Add support for a destructor for ui_out data and use it to
10290 provide a ui_out destructor.
10291 * ui-out.h: Declare the new ui_out destructor.
10292 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10293 * ui-out.c (default_data_destroy): Add a default data destructor
10294 which does nothing.
10295 (default_ui_out_impl): Set the new data_destroy field to
10296 default_data_destroy
10297 (uo_data_destroy): Local function which invokes the data
10298 destructor if present.
10299 (clear_table): Local function which clears the table data of a
10301 (ui_out_destroy): Public function which frees a ui_out object.
10302 (ui_out_table_end): Use the new clear_table function.
10303 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10305 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10308 2013-02-11 Doug Evans <dje@google.com>
10310 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10311 (printf_decfloat): New function. Broken out from ui_printf.
10312 Remove unnecessary code to shift the entire format string down.
10313 (printf_pointer): New function.
10314 (ui_printf): Code to print C strings, wide C strings, decfloats,
10315 and pointers moved to separate functions.
10317 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10319 * valops.c (value_assign): Handling bitfield offset in
10320 `lval_internalvar_component' case.
10322 2013-02-08 Doug Evans <dje@google.com>
10324 * common/format.c (parse_format_string): Fix whitespace.
10326 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10328 * stack.c (return_command): Work around uninitialized variable
10331 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10333 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10334 number of the registers from 36 to 34.
10336 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10338 * NEWS: Mention new AArch64 native and target support.
10340 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10342 * MAINTAINERS (Write After Approval): Add myself.
10344 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10345 Marcus Shawcroft <marcus.shawcroft@arm.com>
10346 Nigel Stephens <nigel.stephens@arm.com>
10347 Yufeng Zhang <yufeng.zhang@arm.com>
10349 * aarch64-linux-nat.c: New file.
10350 * config/aarch64/linux.mh: New file.
10351 * configure.host: Add AArch64.
10352 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10354 2013-02-07 Doug Evans <dje@google.com>
10356 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10357 disassemble command.
10359 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10361 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10362 set_gdbarch_fetch_tls_load_module_address.
10364 2013-02-06 David S. Miller <davem@davemloft.net>
10366 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10367 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10368 * value.c (struct_return_convention): New function.
10369 (using_struct_return): Implement in terms of struct_return_convention.
10370 * value.h (struct_return_convention): Declare.
10371 * stack.c (return_command): Allow successful overriding of the return
10372 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10374 2013-02-06 Tom Tromey <tromey@redhat.com>
10376 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10377 outside of TRY_CATCH.
10379 2013-02-06 Yao Qi <yao@codesourcery.com>
10381 * mi/mi-interp.c: Include "tracepoint.h".
10382 (mi_tsv_modified): Declare.
10383 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10384 (mi_interpreter_init): Call observer_attach_tsv_modified.
10385 (mi_tsv_modified): New.
10386 (mi_tsv_created, mi_tsv_deleted): Update.
10387 * tracepoint.c (trace_variable_command): Call
10388 observer_notify_tsv_modified if the initial value of tsv is
10390 (delete_trace_state_variable): Call
10391 observer_notify_tsv_deleted earlier.
10392 (trace_variable_command): Caller update.
10393 (create_tsv_from_upload): Likewise.
10394 * observer.sh: Declare "struct trace_state_variable".
10396 * NEWS: Mention the new MI notification "=tsv-modified".
10398 2013-02-05 Doug Evans <dje@google.com>
10400 * completer.c (location_completer): Fix typo in comment.
10402 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10404 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10407 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10409 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10410 Refactor if statement to avoid trailing || operator.
10412 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10414 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10416 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10418 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10419 * configure.host: Add powerpc*-*-freebsd* target.
10420 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10421 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10422 * config/powerpc/fbsd.mh: New file.
10424 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10425 Denys Vlasenko <dvlasenk@redhat.com>
10426 Pedro Alves <palves@redhat.com>
10428 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10429 (struct elf_internal_linux_prpsinfo): Forward declare.
10430 * gdbarch.h, gdbarch.c: Regenerate.
10431 * linux-tdep.c: Include `cli/cli-utils.h'.
10432 (linux_fill_prpsinfo): New function.
10433 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10434 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10435 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10436 depending on gdbarch pointer bitness.
10437 * ppc-linux-tdep.c: Include elf-bfd.h.
10438 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10441 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10442 Marcus Shawcroft <marcus.shawcroft@arm.com>
10443 Nigel Stephens <nigel.stephens@arm.com>
10444 Yufeng Zhang <yufeng.zhang@arm.com>
10446 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10448 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10449 Marcus Shawcroft <marcus.shawcroft@arm.com>
10450 Nigel Stephens <nigel.stephens@arm.com>
10451 Yufeng Zhang <yufeng.zhang@arm.com>
10453 * aarch64-newlib-tdep.c: New file.
10454 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10456 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10457 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10458 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10459 * osabi.c (gdb_osabi_names): Add "Newlib".
10461 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10462 Marcus Shawcroft <marcus.shawcroft@arm.com>
10463 Nigel Stephens <nigel.stephens@arm.com>
10464 Yufeng Zhang <yufeng.zhang@arm.com>
10466 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10467 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10468 * aarch64-linux-tdep.c: New file.
10469 * aarch64-linux-tdep.h: New file.
10470 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10471 * configure.tgt: Add aarch64-none-linux-gnu.
10473 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10474 Marcus Shawcroft <marcus.shawcroft@arm.com>
10475 Nigel Stephens <nigel.stephens@arm.com>
10476 Yufeng Zhang <yufeng.zhang@arm.com>
10478 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10479 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10480 (ALLDEPFILES): Add aarch64-tdep.c.
10481 * aarch64-tdep.c: New file.
10482 * aarch64-tdep.h: New file.
10483 * configure.tgt: Add AArch64.
10484 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10485 (aarch64-expedite): New definition.
10486 * features/aarch64-core.xml: New file.
10487 * features/aarch64-fpu.xml: New file.
10488 * features/aarch64-without-fpu.c: New file (generated).
10489 * features/aarch64-without-fpu.xml: New file.
10490 * features/aarch64.c: New file (generated).
10491 * features/aarch64.xml: New file.
10492 * regformats/aarch64-without-fpu.dat: New file (generated).
10493 * regformats/aarch64.dat: New file (generated).
10495 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10497 * contrib/expect-read1.c: New file.
10498 * contrib/expect-read1.sh: New file.
10500 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10502 * dwarf2read.c (file_file_name): New function with code from
10504 (file_full_name): Move most of the code to file_file_name.
10505 (macro_start_file): Rename variable full_name to file_name and use
10506 file_file_name for it. Add comp_dir parameter to new_macro_table.
10507 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10508 macro_source_file->filename access by macro_source_fullname call.
10509 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10511 * macrotab.c (struct macro_table): New field comp_dir.
10512 (macro_include): New variables link_fullname and source_fullname.
10513 Replace any macro_source_file->filename access by macro_source_fullname
10515 (macro_lookup_inclusion): Remove the partial filenames checking code.
10516 (check_for_redefinition): New variables source_fullname and
10517 found_key_fullname. Replace any macro_source_file->filename access by
10518 macro_source_fullname call.
10519 (macro_undef): New variables source_fullname and key_fullname. Replace
10520 any macro_source_file->filename access by macro_source_fullname call.
10521 (macro_lookup_definition): New variables retval and source_fullname.
10522 Replace any macro_source_file->filename access by macro_source_fullname
10524 (foreach_macro): New variable key_fullname. Replace any
10525 macro_source_file->filename access by macro_source_fullname call.
10526 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10527 macro_source_file->filename access by macro_source_fullname call.
10528 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10529 (macro_source_fullname): New function.
10530 * macrotab.h (struct macro_source_file): Extent the filename field
10532 (new_macro_table): New parameter comp_dir, add a comment for it.
10533 (macro_source_fullname): new declaration.
10535 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10537 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10538 this_real_name to outer block. Use it also for
10539 compare_filenames_for_search.
10540 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10541 with dw2_get_real_path for file_matcher, considering also
10542 BASENAMES_MAY_DIFFER.
10543 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10545 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10547 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10548 to the file_matcher parameter. Pass 0 to it.
10549 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10550 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10551 NULL psymtab_to_fullname result.
10552 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10553 an expected filename instead.
10554 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10555 file_matcher parameter. Call also psymtab_to_fullname, after newly
10556 considering BASENAMES_MAY_DIFFER.
10557 * source.c (rewrite_source_path): Remove static.
10558 * source.h (rewrite_source_path): New declaration.
10559 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10560 the expand_symtabs_matching field. Comment it.
10561 * symtab.c (file_matches): New function comment. Add parameter
10562 basenames, implement it.
10563 (search_symbols_file_matches): Add basenames parameter. Update the
10564 file_matches caller.
10565 (search_symbols): Match FILES also against symtab_to_fullname.
10566 Optimize it for BASENAMES_MAY_DIFFER.
10568 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10570 * source.c (print_source_lines_base): Print for TUI also "fullname".
10571 * tui/tui-data.c (init_content_element): Change tui_locator_element
10572 field to full_name.
10573 * tui/tui-data.h (struct tui_locator_element): Likewise.
10574 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10575 tui_update_locator_filename calls to tui_update_locator_fullname.
10576 Replace symtab->filename refererence by symtab_to_fullname call.
10577 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10578 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10579 field to full_name. Replace symtab->filename refererence by
10580 symtab_to_fullname call.
10581 (tui_show_symtab_source): Rename parameter to fullname. Change
10582 tui_locator_element field to full_name.
10583 * tui/tui-stack.c: Include source.h.
10584 (tui_set_locator_filename): Rename the declaration to ...
10585 (tui_set_locator_fullname): ... here. Rename its parameter to
10586 fullname, updates its comment.
10587 (tui_set_locator_info): Rename its parameter to fullname.
10588 (tui_set_locator_filename): Rename the definition to ...
10589 (tui_set_locator_fullname): ... here. Rename its parameter to
10590 fullname, updates its comment. Change tui_locator_element field to
10592 (tui_set_locator_info): Rename its parameter to fullname.
10593 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10594 (tui_update_locator_filename): Rename to ...
10595 (tui_update_locator_fullname): ... here. Rename callee to
10596 tui_set_locator_fullname.
10597 (tui_show_frame_info): Replace symtab->filename refererence by
10598 symtab_to_fullname call.
10599 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10600 (tui_update_locator_fullname): ... here.
10601 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10602 tui_update_locator_fullname. Replace symtab->filename refererence by
10603 symtab_to_fullname call.
10604 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10605 Rename the callee to tui_update_locator_fullname.
10606 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10608 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10610 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10611 by symtab_to_filename_for_display calls.
10612 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10613 (clear_command): New variable sal_fullname, initialize it. Replace
10614 compare_filenames_for_search by filename_cmp with sal_fullname.
10615 (say_where, update_static_tracepoint): Replace symtab->filename
10616 refererences by symtab_to_filename_for_display calls.
10617 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10619 * dwarf2read.c: Include source.h.
10620 (fixup_go_packaging): Replace symtab->filename refererences by
10621 symtab_to_filename_for_display calls.
10622 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10623 Replace symtab->filename refererences by symtab_to_filename_for_display
10625 (create_sals_line_offset, convert_linespec_to_sals): New variable
10626 fullname, initialize it, replace symtab->filename reference by the
10628 * linux-fork.c: Include source.h.
10629 (info_checkpoints_command): Replace symtab->filename refererences by
10630 symtab_to_filename_for_display calls.
10631 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10632 by symtab_to_filename_for_display calls.
10633 * mdebugread.c: Include source.h.
10634 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10635 symtab_to_filename_for_display calls.
10636 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10637 (mi_cmd_file_list_exec_source_files): Likewise.
10638 * printcmd.c: Include source.h.
10639 (build_address_symbolic): Replace symtab->filename refererences by
10640 symtab_to_filename_for_display calls.
10641 * psymtab.c (partial_map_symtabs_matching_filename)
10642 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10643 with psymtab_to_fullname.
10644 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10645 by symtab_to_filename_for_display calls.
10646 (stpy_get_filename): New variable filename, initialize it, use instead
10647 of symtab->filename refererences.
10648 (salpy_str): Make variable filename const char *. Replace
10649 symtab->filename refererences by symtab_to_filename_for_display calls.
10650 * skip.c: Include source.h and filenames.h.
10651 (skip_file_command): Remove const from the symtab variable. Replace
10652 symtab->filename refererences by symtab_to_fullname call.
10653 (function_name_is_marked_for_skip): New variables searched_for_fullname
10654 and fullname. Use them to search also with symtab's fullname.
10655 * source.c (find_source_lines): Replace symtab->filename refererences
10656 by symtab_to_filename_for_display calls.
10657 (print_source_lines_base): New variable filename, use it instead of
10658 symtab->filename. Replace symtab->filename refererences by
10659 symtab_to_filename_for_display calls.
10660 (line_info, forward_search_command): Replace symtab->filename
10661 refererences by symtab_to_filename_for_display calls.
10662 (reverse_search_command): Replace symtab->filename refererences by
10663 symtab_to_filename_for_display calls. New variable filename for it.
10664 * stack.c (frame_info): Likewise.
10665 * symmisc.c: Include source.h.
10666 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10667 (maintenance_info_symtabs): Replace symtab->filename refererences by
10668 symtab_to_filename_for_display calls.
10669 * symtab.c (iterate_over_some_symtabs): Call
10670 compare_filenames_for_search also with symtab_to_fullname.
10671 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10672 symtab->filename refererences by symtab_to_filename_for_display calls.
10673 (find_line_symtab): Replace symtab->filename refererences by
10674 symtab_to_filename_for_display calls.
10675 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10676 (print_symbol_info): Make the last parameter const char *. New
10677 variable s_filename. Use it in the function.
10678 (symtab_symbol_info): Make the last_filename variable const char *.
10679 Replace symtab->filename refererences by symtab_to_filename_for_display
10681 (rbreak_command): New variable fullname. Use it. Replace
10682 symtab->filename refererence by symtab_to_filename_for_display call.
10683 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10684 (print_one_static_tracepoint_marker): Replace symtab->filename
10685 refererences by symtab_to_filename_for_display calls.
10686 * tui/tui-source.c (tui_set_source_content): New variables filename and
10687 s_filename. Replace symtab->filename refererences by this variable.
10688 Replace other symtab->filename refererences by
10689 symtab_to_filename_for_display calls.
10691 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10692 Jan Kratochvil <jan.kratochvil@redhat.com>
10694 Add a new variable that controls a way in which filenames are
10696 * NEWS (set filename-display): New entry.
10697 * source.c (filename_display_basename, filename_display_relative)
10698 (filename_display_absolute, filename_display_kind_names)
10699 (filename_display_string, show_filename_display_string)
10700 (symtab_to_filename_for_display): New.
10701 (_initialize_source): Added initialization of 'filename-display'
10703 * source.h (symtab_to_filename_for_display): Added declaration.
10704 * stack.c (print_frame): Added new variable and calling of a new
10705 function and condition with this variable. Changed third argument of
10706 calling of a function.
10708 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10710 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10711 Rename field reference filename to fullname.
10712 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10713 fullname. New comment for it.
10714 * tui/tui-source.c (tui_set_source_content): Rename field reference
10715 filename to fullname. Initialize field by symtab_to_fullname now.
10716 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10717 reference filename to fullname. Use symtab_to_fullname during
10720 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10723 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10724 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10725 filename to fullname. Rename variable this_name to this_fullname.
10726 Lowercase FILENAME_CMP call.
10727 (dw2_find_symbol_file): New comment for the returned string.
10728 (dwarf2_gdb_index_functions): Rename the function to
10729 dw2_expand_symtabs_with_fullname.
10730 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10731 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10733 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10734 * symfile.h (struct quick_symbol_functions): Rename field
10735 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10736 parameter filename to fullname. Document returned string meaning for
10738 * symtab.c (find_line_symtab): Rename the called function to
10739 expand_symtabs_with_fullname.
10741 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10744 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10745 call of filename_cmp with compare_filenames_for_search.
10746 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10747 is_abs, unify the call of FILENAME_CMP with
10748 compare_filenames_for_search. New gdb_asserts for real_path and name.
10749 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10750 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10751 * symfile.h (struct quick_symbol_functions): Extend the comment for
10752 map_symtabs_matching_filename.
10753 * symtab.c (compare_filenames_for_search): Remove the function comment
10754 relative path requirement. Handle absolute filenames, with a comment.
10755 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10756 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10757 real_path and name. Unify the call of compare_filenames_for_search
10759 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10761 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10764 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10765 source_file references by symtab field references. Remove variables
10767 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10768 (clear_command, say_where): Replace bp_location field source_file
10769 references by symtab field references.
10770 (bp_location_dtor): Remove the source_file reference.
10771 (update_static_tracepoint): Replace bp_location field source_file
10772 references by symtab field references.
10773 (breakpoint_free_objfile): New function.
10774 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10775 Replace the field source_file by field symtab, extend its comment.
10776 (breakpoint_free_objfile): New declaration.
10777 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10778 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10779 field source_file references by symtab field references.
10781 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10783 Replace xfullpath calls by gdb_realpath calls.
10784 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10786 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10787 Remove it from the iterate_over_some_symtabs call.
10788 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10789 Remove it from the dw2_map_expand_apply calls, remove a block handling
10791 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10792 Remove it from the iterate_over_some_symtabs call.
10793 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10794 Remove it from the partial_map_expand_apply calls, remove a block
10795 handling it. Drop gdb_realpath call and cleanups from the real_path
10797 * source.c (openp): Drop the comment part about xfullpath. Replace
10798 xfullpath calls by gdb_realpath calls.
10799 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10800 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10801 from method map_symtabs_matching_filename and its comment.
10802 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10804 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10805 remove it also from the function comment, remove a block handling it.
10806 Drop gdb_realpath call and cleanups from the real_path handling.
10807 (iterate_over_symtabs): Drop variable full_path and its use.
10808 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10809 * utils.c (xfullpath): Remove.
10810 * utils.h (xfullpath): Remove.
10812 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10814 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10815 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10816 (ALLDEPFILES): Add ppc64-tdep.c.
10817 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10818 ppc64-tdep.o to gdb_target_obs.
10819 * ppc64-tdep.h: New file.
10820 * ppc64-tdep.c: New file.
10821 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10822 ppc-linux-tdep.c to here.
10823 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10824 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10825 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10826 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10827 from ppc-linux-tdep.c to here.
10828 (ppc64_convert_from_func_ptr_addr): Rename from
10829 ppc64_linux_convert_from_func_ptr_addr to
10830 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10833 (read_insn): Move from ppc-linux-tdep.c to here.
10834 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10835 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10836 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10837 Removed above functions.
10838 (ppc_linux_init_abi): Adjust.
10840 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10842 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10844 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10846 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10848 2013-02-01 Pedro Alves <palves@redhat.com>
10850 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10851 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10853 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10855 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10856 files with no separate debug info.
10857 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10858 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10859 only for files with no separate debug info.
10861 2013-01-31 Tom Tromey <tromey@redhat.com>
10863 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10865 (struct jit_program_space_data): Rename from jit_inferior_data.
10867 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10868 Change return type. Attach data to program space.
10869 (jit_program_space_data_cleanup): Rename from
10870 jit_inferior_data_cleanup; change argument type.
10871 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10873 (jit_register_code): Update.
10874 (jit_update_inferior_cache): Remove.
10875 (jit_breakpoint_deleted): Get jit data from the location's program
10877 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10878 'ps_data', change type.
10879 (jit_inferior_init, jit_breakpoint_re_set_internal)
10880 (jit_event_handler): Update.
10881 (free_objfile_data): Get data from objfile's program space.
10882 (_initialize_jit): Update.
10884 2013-01-31 Tom Tromey <tromey@redhat.com>
10887 * jit.c (struct jit_inferior_data) <cached_code_address,
10888 jit_breakpoint>: New fields.
10889 (jit_breakpoint_re_set_internal): Fix logging. Only create
10890 breakpoint if cached address has changed.
10891 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10893 (_initialize_jit): Register breakpoint deleted observer.
10895 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10897 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10898 (save_infcall_suspend_state): Ifdef out unused inf.
10899 (restore_infcall_suspend_state): Ifdef out unused inf.
10900 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10901 (jit_frame_sniffer): Remove unused inf_data.
10903 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10905 * c-exp.y (classify_inner_name): Remove unused type.
10906 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10907 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10909 (c_get_string): Remove unused kind.
10910 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10912 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10914 * charset.c (intermediate_encoding): Remove unused i.
10915 * completer.c (signal_completer): Remove unused i.
10916 * continuations.c (discard_my_continuations_1): Remove unused
10918 * corelow.c (core_close): Remove unuseD name.
10919 (get_core_siginfo): Remove unused pid.
10920 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10922 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10923 (loclist_describe_location): Remove unused first.
10924 * event-top.c (command_line_handler): Remove unused got_eof.
10925 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10926 (resize_section_table): Remove unused old_value.
10927 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10928 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10929 * i386-tdep.c (i386_process_record): Remove unused rex.
10930 * infcmd.c (get_return_value): Remove unused uiout.
10931 * jv-lang.c (type_from_class): Remove unused is_array.
10932 * jv-valprint.c (java_val_print): Remove unused i.
10933 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10934 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10935 * m2-typeprint.c (m2_print_type): Remove unused code.
10936 * macroexp.c (get_character_constant): Remove unused body_start.
10937 (macro_stringify): Remove unused result.
10938 * objc-lang.c (find_methods): Remove unused gdbarch.
10939 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10940 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10941 * stack.c (print_frame_args): Remove unused summary.
10942 * thread.c (thread_apply_command): Remove unused p.
10943 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10944 * valops.c (search_struct_method): Remove unused skip.
10945 * valprint.c (generic_val_print): Remove unused byte_order.
10946 * varobj.c (varobj_update): Remove unused changed.
10947 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10948 (alias_command): Remove unused c.
10949 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10950 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10952 (mi_cmd_data_write_memory): Remove unused word_format.
10953 (mi_cmd_data_write_memory_bytes): Remove unused r.
10954 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10956 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10957 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10960 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10962 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10963 * symtab.c (iterate_over_symtabs): Remove unused s.
10964 (find_pc_sect_symtab): Remove unused pspAce.
10965 (find_pc_sect_line): Remove unused alt_symtab.
10966 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10967 (completion_list_add_name): Remove unused newsize.
10969 2013-01-31 Tom Tromey <tromey@redhat.com>
10972 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10975 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10977 * target.c (target_read_string): Remove unused origlen.
10979 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10981 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10982 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10983 * ax-general.c (ax_print): Remove unused is_float.
10984 * blockframe.c (block_innermost_frame): Remove unused start, end.
10985 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10987 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10989 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10990 (svr4_read_so_list): Remove unused lmo.
10991 * solib-target.c (solib_target_relocate_section_addresses): Remove
10994 2013-01-30 Tom Tromey <tromey@redhat.com>
10996 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10998 2013-01-30 Tom Tromey <tromey@redhat.com>
11000 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11001 * utils.c (gnu_debuglink_crc32): Remove.
11002 * utils.h (gnu_debuglink_crc32): Don't declare.
11004 2013-01-30 Tom Tromey <tromey@redhat.com>
11006 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11007 (read_structure_type, read_enumeration_type): Remove cast.
11009 2013-01-30 Tom Tromey <tromey@redhat.com>
11011 * dwarf2read.c (read_namespace_type): Remove cast.
11012 (read_typedef): Likewise.
11014 2013-01-29 Tom Tromey <tromey@redhat.com>
11016 * dwarf2read.c (free_dwo_file): Remove assert.
11018 2013-01-29 Tom Tromey <tromey@redhat.com>
11020 * value.c (deprecated_set_value_modifiable): Remove.
11021 * value.h (deprecated_set_value_modifiable): Remove.
11023 2013-01-28 Doug Evans <dje@google.com>
11025 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11026 to addresses from dwo files.
11028 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11030 * valops.c (find_overload_match): Remove unused argument 'lax'.
11031 * value.h: Remove unused argument 'lax' from the declaration of
11032 find_overload_match.
11033 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11034 to find_overload_match.
11035 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11036 argument to find_overload_match.
11038 2013-01-25 Tom Tromey <tromey@redhat.com>
11040 * dwarf2read.c (processing_has_namespace_info): Remove.
11041 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11042 (process_die, read_func_scope, dwarf2_start_symtab)
11043 (new_symbol_full): Update.
11045 2013-01-25 Tom Tromey <tromey@redhat.com>
11047 * cp-namespace.c (cp_set_block_scope): Remove.
11048 * cp-support.h (cp_set_block_scope): Remove.
11049 * dbxread.c: Include block.h.
11050 (cp_set_block_scope): New function.
11051 (process_one_symbol): Update.
11052 * dwarf2read.c (read_func_scope): Use block_set_scope.
11054 2013-01-25 Pedro Alves <palves@redhat.com>
11056 * remote.c (add_current_inferior_and_thread): Tweak comment.
11058 2013-01-25 Tom Tromey <tromey@redhat.com>
11060 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11061 (cp_add_using_directive): Add 'copy_names' argument.
11062 * cp-support.h (cp_add_using_directive): Update.
11063 (struct using_direct) <import_src, import_dest, alias,
11064 declaration>: Now const.
11065 * dwarf2read.c (read_import_statement): Use obconcat.
11066 Don't copy names passed to cp_add_using_directive.
11068 2013-01-25 Tom Tromey <tromey@redhat.com>
11070 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11072 2013-01-25 Pedro Alves <palves@redhat.com>
11074 * remote.c (stop_reply_extract_thread): New.
11075 (add_current_inferior_and_thread): New parameter 'wait_status'.
11077 (remote_start_remote): Pass wait status to
11078 add_current_inferior_and_thread.
11079 (extended_remote_run): Update comment.
11080 (extended_remote_create_inferior_1): Pass wait status to
11081 add_current_inferior_and_thread.
11083 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11084 Ulrich Weigand <uweigand@de.ibm.com>
11086 * valarith.c (value_vector_widen): New function for replicating a
11087 scalar into a vector.
11088 (value_binop): Use value_vector_widen to widen scalar to vector
11089 rather than casting, this better matches gcc C behaviour.
11090 * valops.c (value_casst): Update logic for casting between vector
11091 types, and for casting from scalar to vector, try to match gcc C
11093 * value.h (value_vector_widen): Declare.
11094 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11095 function, handle special case for casting scalar to vector.
11096 (opencl_relop): Use opencl_value_cast.
11097 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11098 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11099 in order to use opencl_value_cast.
11101 2013-01-25 Yao Qi <yao@codesourcery.com>
11103 * event-loop.c: Include "queue.h".
11104 (gdb_event_p): New typedef.
11105 (DECLARE_QUEUE_P): Use.
11106 (DEFINE_QUEUE_P): Use.
11107 (async_queue_event): Remove.
11108 (gdb_event_xfree): New.
11109 (initialize_event_loop): New.
11110 (process_event): Use QUEUE macros.
11111 (event_queue): Remove.
11112 (gdb_wait_for_event): Caller update.
11113 (check_async_event_handlers): Likewise.
11114 (poll_timers): Likewise.
11115 * event-loop.h (initialize_event_loop): Declare.
11116 * event-loop.c (gdb_event_xfree): New.
11117 * top.c (gdb_init): Call initialize_event_loop.
11119 2013-01-25 Yao Qi <yao@codesourcery.com>
11121 * event-loop.c (async_queue_event): Remove one parameter
11122 'position'. Remove code handling 'position' == TAIL.
11123 (gdb_wait_for_event): Caller update.
11124 (check_async_event_handlers): Caller update.
11125 (poll_timers): Caller update.
11126 * event-loop.h (enum queue_position): Remove.
11128 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11130 * MAINTAINERS: Update my email.
11132 2013-01-25 Yao Qi <yao@codesourcery.com>
11134 * main.c (print_gdb_help): Remove "--epoch" from the help
11137 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11139 * symtab.c (skip_prologue_using_sal): Consider a file
11140 change the same as an increased line number
11142 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11144 * MAINTAINERS (Write After Approval): Add myself to the list.
11146 2013-01-24 Tom Tromey <tromey@redhat.com>
11148 * ada-lang.h (ada_decode_symbol): Make return type const.
11149 * ada-lang.c (ada_decode_symbol): Likewise.
11151 2013-01-23 Doug Evans <dje@google.com>
11153 * linespec.c (find_linespec_symbols): Make static.
11155 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11157 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11158 type on float conversion for complex type.
11160 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11162 Add a new class gdb.Architecture which exposes GDB's
11163 internal representation of architecture via GDB Python API.
11164 * Makefile.in: Add entries corresponding to the new file
11166 * NEWS (Python Scripting): Add entries for the new class
11167 gdb.Architecture and the new method gdb.Frame.architecture.
11168 * python/py-arch.c: Implement gdb.Architecture class.
11169 * python/py-frame.c (frapy_arch): Implement the method
11170 gdb.Frame.architecture().
11171 (frame_object_methods): Add 'architecture' to the method table.
11172 * python/python-internal.h: Add declarations of new utility
11174 * python/python.c (_initialize_python): Initialize
11175 gdb.Architecture class.
11177 2013-01-23 Doug Evans <dje@google.com>
11179 Work around binutils/15021.
11180 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11181 type_unit_group out of union s. All uses updated.
11182 (read_index_from_section): Watch for index version 8.
11183 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11184 an imported symtab.
11185 (write_psymtabs_to_index): Increment version number to 8.
11187 2013-01-22 Pedro Alves <palves@redhat.com>
11189 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11192 2013-01-22 Pedro Alves <palves@redhat.com>
11194 * annotate.c (annotate_breakpoints_changed): Rename to ...
11195 (annotate_breakpoints_invalid): ... this. Make static.
11196 (breakpoint_changed): Adjust.
11197 (_initialize_annotate): Always install the observers. Install a
11198 "breakpoint_created" observer.
11199 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11200 * breakpoint.c (set_breakpoint_condition)
11201 (breakpoint_set_commands, do_map_commands_command)
11202 (init_raw_breakpoint, clear_command, set_ignore_count)
11203 (enable_breakpoint_disp): No longer call
11204 annotate_breakpoints_changed.
11206 2013-01-22 Pedro Alves <palves@redhat.com>
11208 * annotate.c: Include "inferior.h".
11209 (frames_invalid_emitted)
11210 (breakpoints_invalid_emitted): New globals.
11211 (async_background_execution_p): New function.
11212 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11213 emitting the annotation if it has already been emitted.
11214 (annotate_display_prompt): New function.
11215 * annotate.h (annotate_display_prompt): New declaration.
11216 * event-top.c: Include annotate.h.
11217 (display_gdb_prompt): Call annotate_display_prompt.
11219 2013-01-22 Pedro Alves <palves@redhat.com>
11221 * annotate.c (ignore_count_changed): Delete.
11222 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11223 (annotate_ignore_count_change): Delete.
11224 (annotate_stopped): Don't emit a delayed breakpoints-changed
11226 * annotate.h (annotate_ignore_count_change): Delete.
11227 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11228 annotate_ignore_count_change.
11230 2013-01-22 Tom Tromey <tromey@redhat.com>
11232 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11233 require_rvalue for a register location.
11235 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11237 * breakpoint.c (print_one_breakpoint_location): Add MI
11238 field 'thread-groups' when printing a breakpoint.
11239 (output_thread_groups): New function.
11241 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11243 * python/lib/gdb/commands/explore.py
11244 (CompoundExplorer.explore_expr): Correct the name of a method
11246 (ExploreTypeCommand.invoke): Add a missing 'return'.
11248 2013-01-21 Tom Tromey <tromey@redhat.com>
11250 * gdb_obstack.h (obconcat): Move declaration here, from...
11251 * symfile.h (obconcat): ... here.
11252 * gdb_obstack.c: New file.
11253 (obconcat): Move from...
11254 * symfile.c (obconcat): ... here.
11255 * Makefile.in (SFILES): Add gdb_obstack.c.
11256 (COMMON_OBS): Add gdb_obstack.o.
11258 2013-01-21 Tom Tromey <tromey@redhat.com>
11260 * symfile.h (obsavestring): Don't declare.
11261 * symfile.c (obsavestring): Remove.
11262 * ada-exp.y: Use obstack_copy0, not obsavestring.
11263 * ada-lang.c: Use obstack_copy0, not obsavestring.
11264 * coffread.c: Use obstack_copy0, not obsavestring.
11265 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11266 * dbxread.c: Use obstack_copy0, not obsavestring.
11267 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11268 * jit.c: Use obstack_copy0, not obsavestring.
11269 * mdebugread.c: Use obstack_copy0, not obsavestring.
11270 * psymtab.c: Use obstack_copy0, not obsavestring.
11271 * stabsread.c: Use obstack_copy0, not obsavestring.
11272 * xcoffread.c: Use obstack_copy0, not obsavestring.
11274 2013-01-21 Tom Tromey <tromey@redhat.com>
11276 * dwarf2read.c (fixup_go_packaging): Save package name
11277 on objfile obstack.
11278 * gdbtypes.c (init_type): Don't copy name.
11280 2013-01-21 Tom Tromey <tromey@redhat.com>
11282 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11284 (struct attribute) <u.str>: Now const.
11285 (struct fnfieldlist) <name>: Now const.
11286 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11287 (partial_die_parent_scope): Make return type const.
11288 (partial_die_full_name, add_partial_symbol): Update.
11289 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11291 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11292 (read_file_scope, read_func_scope, dwarf2_add_field)
11293 (dwarf2_add_member_fn, read_structure_type)
11294 (process_enumeration_scope, read_array_type, read_module_type)
11295 (read_base_type, read_subrange_type): Update.
11296 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11297 (new_symbol_full, guess_full_die_structure_name): Update.
11298 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11299 (dwarf2_name): Return const type.
11300 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11303 2013-01-21 Tom Tromey <tromey@redhat.com>
11305 * gdbtypes.c (init_type): Make 'name' const.
11306 * gdbtypes.h (init_type): Update.
11308 2013-01-21 Tom Tromey <tromey@redhat.com>
11310 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11311 (start_symtab): Make 'name' and 'dirname' const. Use
11312 set_last_source_file.
11313 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11314 (last_source_file): Define. Now static.
11315 (set_last_source_file, get_last_source_file): New functions.
11316 * buildsym.h (last_source_file): Don't declare.
11317 (start_symtab): Update.
11318 (set_last_source_file, get_last_source_file): Declare.
11319 * coffread.c (complete_symtab): Use set_last_source_file.
11320 (coff_end_symtab): Likewise.
11321 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11322 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11323 set_last_source_file.
11324 (process_one_symbol): Use get_last_source_file.
11325 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11326 (psymtab_to_symtab_1): Use get_last_source_file.
11327 * xcoffread.c (process_linenos): Use get_last_source_file.
11328 (complete_symtab): Use set_last_source_file.
11329 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11330 (scan_xcoff_symtab): Use set_last_source_file.
11332 2013-01-21 Tom Tromey <tromey@redhat.com>
11334 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11335 (symbol_set_names): Remove casts. Handle field const-ness.
11337 2013-01-21 Tom Tromey <tromey@redhat.com>
11339 * dwarf2read.c (new_symbol_full): Remove cast.
11340 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11341 * symtab.h (symbol_set_demangled_name): Update.
11343 2013-01-21 Tom Tromey <tromey@redhat.com>
11345 * main.c (captured_main): Call bfd_init.
11347 2013-01-21 Tom Tromey <tromey@redhat.com>
11349 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11350 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11351 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11354 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11356 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11358 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11360 Fix gdb.fortran/common-block.exp crash in PIE mode.
11361 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11363 * f-valprint.c (info_common_command_for_block): Expect
11364 LOC_COMMON_BLOCK in gdb_assert.
11365 * symtab.h (struct general_symbol_info): Update comment for the
11366 common_block member.
11367 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11368 (enum address_class): New member LOC_COMMON_BLOCK.
11370 2013-01-18 David Blaikie <dblaikie@gmail.com>
11372 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11374 2013-01-18 Tom Tromey <tromey@redhat.com>
11377 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11378 Call require_rvalue.
11380 2013-01-18 Yao Qi <yao@codesourcery.com>
11382 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11383 (dbx_read_symtab): New declaration.
11384 (dbx_psymtab_to_symtab): Delete.
11385 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11386 Rename parameter PST to SELF. Exchanged two parameters.
11387 (start_psymtab): Caller update.
11388 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11389 (dwarf2_read_symtab): New declaration.
11390 (dwarf2_psymtab_to_symtab): Delete.
11391 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11392 Rename parameter PST to SELF. Exchanged two parameters.
11393 (create_partial_symtab): Caller update.
11394 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11395 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11396 Rename parameter PST to SELF. Exchanged two parameters.
11397 (parse_partial_symbols, new_psymtab): Caller update.
11398 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11400 * psymtab.c (psymtab_to_symtab): Caller update.
11401 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11402 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11403 Rename parameter PST to SELF. Exchanged two parameters.
11404 (xcoff_start_psymtab): Caller update.
11406 2013-01-18 Yao Qi <yao@codesourcery.com>
11408 * infrun.c (proceed): Rename local variable 'oneproc' to
11411 2013-01-17 Doug Evans <dje@google.com>
11413 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11414 (dw2_build_type_unit_groups): Delete. All uses updated.
11416 * symtab.h (struct symbol_search): Add comment.
11418 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11420 * symtab.c (compare_filenames_for_search): New comment for
11423 2013-01-17 Tom Tromey <tromey@redhat.com>
11425 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11427 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11429 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11430 initialize it by existing make_cleanup. Call new do_cleanups.
11432 2013-01-17 Tom Tromey <tromey@redhat.com>
11434 * cp-abi.c (cp_abi_completer): New function.
11435 (_initialize_cp_abi): Set completer for "set cp-abi".
11437 2013-01-17 Tom Tromey <tromey@redhat.com>
11439 * mem-break.c: Remove obsolete comment.
11440 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11442 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11444 * jit.c (jit_reader_load_command): Interpret the jit reader name
11445 as an absolute path if it begins with a forward slash.
11447 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11451 * jit.c (finalize_symtab): Ensure that only the global block has a
11454 2013-01-17 Pedro Alves <palves@redhat.com>
11456 * acinclude.m4: Include ../config/plugins.m4,
11457 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11458 * Makefile.in (aclocal_m4_deps): Update.
11459 * aclocal.m4: Renegerate.
11461 2013-01-16 Doug Evans <dje@google.com>
11463 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11465 2013-01-16 Pedro Alves <palves@redhat.com>
11466 Tom Tromey <tromey@redhat.com>
11469 * NEWS: Add "catch signal".
11470 * breakpoint.c (base_breakpoint_ops): No longer static.
11471 (bpstat_explains_signal): New function.
11472 (init_catchpoint): No longer static.
11473 (base_breakpoint_explains_signal): New function.
11474 (base_breakpoint_ops): Initialize new field.
11475 * breakpoint.h (enum bpstat_signal_value): New.
11476 (struct breakpoint_ops) <explains_signal>: New field.
11477 (bpstat_explains_signal): Remove macro, declare as function.
11478 (base_breakpoint_ops, init_catchpoint): Declare.
11479 * break-catch-sig.c: New file.
11480 * inferior.h (signal_catch_update): Declare.
11481 * infrun.c (signal_catch): New global.
11482 (handle_syscall_event): Update for change to
11483 bpstat_explains_signal.
11484 (handle_inferior_event): Likewise. Always handle random signals
11486 (signal_cache_update): Check signal_catch.
11487 (signal_catch_update): New function.
11488 (_initialize_infrun): Initialize signal_catch.
11489 * Makefile.in (SFILES): Add break-catch-sig.c.
11490 (COMMON_OBS): Add break-catch-sig.o.
11492 2013-01-16 Tom Tromey <tromey@redhat.com>
11494 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11495 (print_one_catch_solib, print_one_catch_syscall)
11496 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11499 2013-01-16 Yao Qi <yao@codesourcery.com>
11501 * printcmd.c (current_display_number): Make it static.
11503 2013-01-16 Yao Qi <yao@codesourcery.com>
11505 * infcmd.c (step_once): Don't check '!single_inst' as it was
11508 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11510 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11512 2013-01-14 Tom Tromey <tromey@redhat.com>
11514 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11516 * command.h (add_setshow_string_noescape_cmd): Update.
11517 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11518 (complete_set_gnutarget): New function.
11519 (_initialize_core): Set the "set gnutarget" completer.
11521 2013-01-14 Tom Tromey <tromey@redhat.com>
11524 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11525 (c_type_print_modifier): Likewise.
11526 * dwarf2read.c (read_tag_restrict_type): New function.
11527 (read_type_die_1): Handle DW_TAG_restrict_type.
11528 * gdbtypes.c (make_restrict_type): New function.
11529 (recursive_dump_type): Handle TYPE_RESTRICT.
11530 * gdbtypes.h (enum type_flag_values): Renumber.
11531 (enum type_instance_flag_value): Add
11532 TYPE_INSTANCE_FLAG_RESTRICT.
11533 (TYPE_RESTRICT): New macro.
11534 (make_restrict_type): Declare.
11536 2013-01-14 Tom Tromey <tromey@redhat.com>
11539 * psymtab.c (struct psymtab_state): New.
11540 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11542 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11543 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11545 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11546 Pedro Alves <palves@redhat.com>
11550 * remote.c (remote_threads_info): Make a copy of the reply from
11551 qfThreadInfo and use that instead of rs->buf.
11553 2013-01-14 Yao Qi <yao@codesourcery.com>
11555 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11556 (dbx_psymtab_to_symtab): Likewise.
11557 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11558 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11559 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11561 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11563 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11564 make_cleanup_restore_current_language. Call set_language. Move
11565 OLD_CHAIN and INNER_CHAIN cleanups.
11566 * utils.c (do_restore_current_language)
11567 (make_cleanup_restore_current_language): New functions.
11568 * utils.h (make_cleanup_restore_current_language): New declaration.
11570 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11572 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11573 non-existing files.
11575 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11576 non-existing files if FILENAME is already absolute.
11578 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11580 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11581 fputs_filtered. Append trailing newline.
11583 2013-01-11 Yao Qi <yao@codesourcery.com>
11584 Stan Shebs <stan@codesourcery.com>
11586 * psymtab.c (init_psymbol_list): Clarify the comment.
11588 2013-01-11 Yao Qi <yao@codesourcery.com>
11590 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11591 (update_dprintf_command_list): Assert that 'printf_line' is
11592 non-null. Remove condition check.
11594 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11597 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11599 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11601 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11603 2013-01-09 Anthony Green <green@moxielogic.com>
11605 * cp-abi.c (cplus_print_vtable): Don't return value from void
11607 * ada-lang.c (re_set_catch_assert): Ditto.
11609 2013-01-09 Doug Evans <dje@google.com>
11611 * symfile.h (quick_symbol_functions): Delete member
11612 pre_expand_symtabs_matching. All uses removed.
11613 * dwarf2read.c (dw2_lookup_symbol): Implement.
11614 (dw2_do_expand_symtabs_matching): Delete.
11615 (dw2_pre_expand_symtabs_matching): Delete.
11616 (struct dw2_symtab_iterator): New type.
11617 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11618 (dw2_expand_symtabs_for_function): Rewrite.
11619 (dwarf2_gdb_index_functions): Update.
11620 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11621 (psym_functions): Update.
11623 2013-01-09 Tom Tromey <tromey@redhat.com>
11625 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11626 * configure: Rebuild.
11627 * configure.ac: Add somread.o to the build if BFD has SOM
11629 * somread.c: Include som/aout.h, not syms.h.
11630 (som_symtab_read): Use som_external_symbol_dictionary_record.
11631 Unpack records manually.
11632 (_initialize_somread): Declare.
11634 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11636 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11637 Cast return_address to 64bits.
11639 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11641 * printcmd.c: Remove define of function output_command.
11642 * tracepoint.c: Remove extern of function output_command.
11643 * valprint.h: (output_command): New extern.
11645 2013-01-07 Tom Tromey <tromey@redhat.com>
11647 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11649 (objc_language_defn): Use c_printchar, c_printstr,
11652 2013-01-07 Tom Tromey <tromey@redhat.com>
11656 * ada-valprint.c (printstr, print_field_values): Remove
11658 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11660 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11662 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11663 * main.c (captured_main): Remove "epoch" argument.
11664 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11665 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11666 * p-valprint.c (pascal_object_print_value_fields): Remove
11668 * printcmd.c (print_command_1): Remove 'inspect' argument.
11669 (print_command, call_command): Update.
11670 (inspect_command): Remove.
11671 (_initialize_printcmd): Make "inspect" an alias for "print".
11672 * top.c (epoch_interface): Remove.
11673 * top.h (epoch_interface): Remove.
11674 * valprint.c (user_print_options): Update.
11675 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11676 * valprint.h (struct value_print_options) <inspect_it>: Remove
11679 2013-01-04 Tom Tromey <tromey@redhat.com>
11681 * valprint.h (read_string): Add 'extern'.
11683 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11685 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11686 used to decide whether to define darwin_read_dyld_info or not.
11688 2013-01-03 Pierre Muller <muller@sourceware.org>
11690 * main.c (relocate_gdb_directory): Avoid calling stat function
11693 2013-01-03 Yao Qi <yao@codesourcery.com>
11695 * psymtab.c (fixup_psymbol_section): Update declaration.
11696 (fixup_psymbol_section): Remove code returning value.
11698 2013-01-03 Yao Qi <yao@codesourcery.com>
11700 * symtab.h: Remove some out of date comments.
11701 (enum exception_event_kind): Move it ...
11702 * breakpoint.c: ... here.
11704 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11707 * darwin-nat.c (darwin_read_dyld_info): Only build if
11708 TASK_DYLD_INFO_COUNT is defined.
11709 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11710 TASK_DYLD_INFO_COUNT is defined.
11712 2013-01-02 Tom Tromey <tromey@redhat.com>
11714 * symfile.h (struct ecoff_debug_hack): Remove.
11715 * objfiles.c: Don't include mdebugread.h.
11717 2013-01-02 Tom Tromey <tromey@redhat.com>
11719 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11720 * configure.ac: Check for Mach-O support in BFD. Update
11722 * configure: Rebuild.
11724 2013-01-02 Tom Tromey <tromey@redhat.com>
11726 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11727 * configure.ac: Use GDB_AC_CHECK_BFD.
11728 * configure: Rebuild.
11730 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11732 * MAINTAINERS: Update my email.
11734 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11736 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11738 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11740 * rs6000-nat.c (bss_data_overlap): New function.
11741 (vmap_symtab): Use it to adjust the .bss section's offset.
11743 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11745 Update year range in copyright notice of all files.
11747 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11749 * top.c (print_gdb_version): Update copyright year.
11751 For older changes see ChangeLog-2012.
11757 version-control: never