1 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
3 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
5 (BPPY_SET_REQUIRE_VALID): Ditto.
6 (bpnum_is_valid): Delete function.
7 (bppy_get_visibility): New function.
8 (bppy_new): Parse for, and validate internal keyword. Pass
9 internal keyword to breakpoint or watchpoint functions.
10 (build_bp_list): New function.
11 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
12 iterate_over_breakpoints.
13 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
15 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
16 to internal breakpoint chain.
18 * breakpoint.c (set_breakpoint_number): New function.
19 (breakpoint_1): Check if breakpoint number is more than zero.
20 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
21 (create_breakpoint_sal): Take a new parameter called internal.
22 Call set_breakpoint_number with internal parameter. Do not
23 mention internal breakpoints. All callers updated.
24 (create_breakpoint): Ditto.
25 (create_breakpoints_sal): Ditto.
26 (watch_command_1): Ditto.
27 (watch_command_wrapper): Take a new parameter called internal.
29 (rwatch_command_wrapper): Ditto.
30 (awatch_command_wrapper): Ditto.
31 (save_breakpoints): Update breakpoint save condition check.
32 (iterate_over_breakpoints): New function.
33 * breakpoint.h: Add conditional python includes. Add py_bp_object
34 and comment to struct breakpoint. Update all callers.
35 * defs.h: Add PyObject definition for GDB builds without Python.
37 2010-11-10 Doug Evans <dje@google.com>
39 * python/lib/gdb/command/pretty_printers.py
40 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
42 * value.c (set_value_enclosing_type): Renamed from
43 value_change_enclosing_type. All callers updated.
44 * value.h (set_value_enclosing_type): Update.
45 * valops.c (value_full_object): Always return a copy if we need to
46 make changes to the input value.
48 2010-11-09 Pedro Alves <pedro@codesourcery.com>
50 * breakpoint.c (watch_command_1): Get a pointer of the lazy
51 version of the expression's value, even if reading the value from
52 memory fails. When creating a -location watchpoint, get the
53 value's address from the lazy value pointer.
55 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
57 * infrun.c (restore_inferior_thread_state): Use
58 discard_inferior_thread_state to free the data.
59 (discard_inferior_thread_state): xfree also siginfo_data.
61 2010-11-05 Doug Evans <dje@google.com>
63 Make gdb.parameter("directories") work.
64 New command "set directories".
65 * NEWS: Document them.
66 * source.c (set_directories_command): New function.
67 (show_directories_1): Renamed from show_directories.
69 (show_directories_command): New function.
70 (_initialize_source): Install "directories" as a set/show
71 variable instead of just a show command.
73 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
75 * NEWS: Mention OpenCL C language support.
76 * Makefile.in (SFILES): Add opencl-lang.c.
77 (COMMON_OBS): Add opencl-lang.o.
78 * opencl-lang.c: New File
79 * defs.h (enum language): Add language_opencl.
80 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
81 IBM XL C OpenCL compiler.
82 * c-lang.h: Include "parser-defs.h".
83 (evaluate_subexp_c): Declare.
84 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
85 (c_op_print_tab): Add declaration.
86 * eval.c (binop_promote): Handle language_opencl.
87 * c-exp.y: Lookup the primitive types instead of referring to the
90 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
92 Fix configure --enable-plugins --without-python.
93 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
94 * configure: Regenerate.
96 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
98 * solib.c (solib_read_symbols): Call exception_fprintf even without
99 FROM_TTY. Print also so->so_name.
101 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
103 * gdbtypes.h (struct rank): Created subrank.
104 * gdbtypes.c: Initialized subrank for all
106 (distance_to_ancestor): New function.
107 (is_ancestor): Use distance_to_ancestor.
108 (is_public_ancestor): Ditto.
109 (sum_ranks): Handle subrank.
110 (compare_ranks): Ditto.
111 (rank_one_type): Subrank base conversions.
113 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
115 * gdbtypes.h: Create struct rank.
116 Convert all 'BADNESS' macros to const struct rank declarations.
117 (sum_ranks): New function.
118 (compare_ranks): New function.
119 * valops.c (find_oload_champ): Updated.
120 (classify_oload_match): Use compare_ranks.
122 (compare_parameters): Use compare_ranks.
123 * gdbtypes.c: Initialize 'BADNESS' constants.
124 (sum_ranks): New function.
125 (compare_ranks): New function.
126 (compare_badness): Use compare_ranks.
127 (rank_function): Use global constants instead of literals.
128 (rank_one_type): Ditto.
132 2010-11-04 Doug Evans <dje@google.com>
134 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
135 (find_pretty_printer): Fix comments.
137 2010-11-04 Hui Zhu <teawater@gmail.com>
139 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
141 2010-11-03 Joel Brobecker <brobecker@adacore.com>
143 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
144 and `len' declaration and computation inside block where they
147 2010-11-03 Joel Brobecker <brobecker@adacore.com>
149 * valprint.c (val_print_array_elements): Put back handling of
152 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
154 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
155 DIE and set the length of the type.
156 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
157 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
158 return 0 if the corresponding bounds of the type are undefined.
159 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
160 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
161 (val_print_array_elements): Use get_array_bounds to compute the number
162 of array elements instead of dividing the length of the array by the
163 length of the element types.
164 * valarith.c (vector_binop): Likewise.
165 * valops.c (value_cast): Likewise.
166 * c-valprint.c (c_val_print): Likewise.
167 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
169 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
171 * valarith.c (value_pos, value_neg, value_complement): Handle
173 * valops.c (value_one): Likewise.
175 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
177 * value.h (value_non_lval): Declare.
178 * value.c (value_non_lval): New function.
179 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
180 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
183 2010-11-02 Doug Evans <dje@google.com>
185 New python module gdb.printing, and new commands info pretty-printer,
186 enable pretty-printer, disable pretty-printer.
187 * NEWS: Mention them.
188 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
189 gdb/command/__init__.py, gdb/command/pretty_printers.py.
190 * python/lib/gdb/__init__.py: Install pretty-printer commands.
191 * python/lib/gdb/printing.py: New file.
192 * python/lib/gdb/command/__init__.py: New file.
193 * python/lib/gdb/command/pretty_printers.py: New file.
195 2010-11-02 Tom Tromey <tromey@redhat.com>
197 * NEWS: Mention Guile removal.
198 * defs.h (enum language) <language_scm>: Remove.
199 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
201 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
202 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
203 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
206 2010-11-02 Doug Evans <dje@google.com>
208 * top.c: #include "python/python.h".
209 (gdb_init): Add a comment regarding initialize_all_files.
210 Call finish_python_initialization at the end.
211 * python/python.h (finish_python_initialization): Declare.
212 * python/python.c (finish_python_initialization): New function.
213 (_initialize_python): Move python-implemented initialization there
215 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
217 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
220 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
221 Pedro Alves <pedro@codesourcery.com>
222 * gdbthread.h (currently_stepping): New declaration.
223 * infrun.c (currently_stepping): Remove the forward declaration.
224 (currently_stepping): Make it global.
225 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
226 variables tp and step, initialized them. Pass STEP to to_resume.
227 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
228 * remote.c (currently_stepping_callback): New.
229 (remote_vcont_resume)
230 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
231 New variable tp. Call currently_stepping_callback and step such
234 2010-11-01 Hui Zhu <teawater@gmail.com>
236 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
238 2010-10-28 Hui Zhu <teawater@gmail.com>
240 * tracepoint.c (trace_save): Change utp->actions to
243 2010-10-26 Joel Brobecker <brobecker@adacore.com>
245 * (_FILE_OFFSET_BITS): Fix typo in comment.
247 2010-10-26 Joel Brobecker <brobecker@adacore.com>
249 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
250 (PyEval_InitThreads): Remove duplicate. Define as nothing.
251 (PyEval_ReleaseLock): Define as nothing.
253 2010-10-26 Joel Brobecker <brobecker@adacore.com>
255 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
256 by call to FILENAME_CMP.
258 2010-10-26 Joel Brobecker <brobecker@adacore.com>
260 * dictionary.c (dict_hash): Move assignment out of if condition.
262 2010-10-22 Jie Zhang <jie@codesourcery.com>
264 * Makefile.in (install): Remove dependency of install-only and
265 recursively invoke make for install-only.
266 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
267 (install): Pass FLAGS_TO_PASS when recursively make install-only.
269 2010-10-20 Hui Zhu <teawater@gmail.com>
271 * tracepoint.c (tfile_get_traceframe_address): Call
272 extract_signed_integer.
273 (tfile_trace_find): Call extract_signed_integer and
274 extract_unsigned_integer. Change data_size to unsigned int.
275 (tfile_fetch_registers): Call extract_unsigned_integer.
276 (tfile_xfer_partial): Ditto.
277 (tfile_get_trace_state_variable_value): Call
278 extract_signed_integer and extract_unsigned_integer.
280 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
282 * remote.c (remote_get_threadlist): If we got empty
283 response, bail out immediately, and don't emit any
286 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
288 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
289 for "mov pc, REG" as well.
290 (thumb_instruction_changes_pc): Likewise.
292 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
295 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
296 * eval.c (evaluate_subexp_standard): Check for overload of
298 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
299 (value_x_unop): Ditto.
300 * valops.c: Include "exceptions.h".
301 (find_overload_match): Throw NOT_FOUND_ERROR.
302 (value_struct_elt): Ditto.
304 2010-10-19 Tom Tromey <tromey@redhat.com>
306 * python/py-cmd.c (cmdpy_function): Unreference exception state.
308 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
310 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
311 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
313 Make all other conversions illegal.
315 2010-10-18 Doug Evans <dje@google.com>
317 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
318 assumptions of when this case happens. Print "<unnamed typedef>".
320 2010-10-18 Tom Tromey <tromey@redhat.com>
322 * valprint.c (val_print_string): Pass 'encoding' to
325 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
327 Fix the `stopped language detection' testcase for gcc-4.5.
328 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
329 * symfile.c (set_initial_language): Move variable filename to a more
330 inner block. Prefer LANGUAGE_OF_MAIN.
331 * symtab.c (language_of_main): New variable.
332 (set_main_name): Always reset LANGUAGE_OF_MAIN.
333 * symtab.h (language_of_main): New declaration.
335 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
336 Pedro Alves <pedro@codesourcery.com>
338 * gdbthread.h (currently_stepping): New declaration.
339 * infrun.c (currently_stepping): Remove the forward declaration.
340 (currently_stepping): Make it global.
341 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
342 variables tp and step, initialized them. Pass STEP to to_resume.
343 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
344 * remote.c (currently_stepping_callback): New.
345 (remote_vcont_resume)
346 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
347 New variable tp. Call currently_stepping_callback and step such
350 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
352 * infrun.c (follow_exec): Replace symbol_file_add_main by
353 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
355 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
357 * objfiles.c (free_all_objfiles): Likewise.
358 * remote-m32r-sdi.c (m32r_load): Likewise.
359 * solib-som.c (som_solib_create_inferior_hook): Likewise.
360 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
361 clear_symtab_users with ADD_FLAGS.
362 (reread_symbols): Use parameter 0 for clear_symtab_users.
363 (clear_symtab_users): New parameter add_flags. Do not call
364 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
365 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
366 * symtab.h (clear_symtab_users): New parameter add_flags.
368 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
370 Fix GCC false warning.
371 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
373 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
375 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
376 display of type of method arguments.
378 2010-10-15 Tom Tromey <tromey@redhat.com>
381 * varobj.c (value_get_print_value): Use val_print_string to print
383 * python/py-prettyprint.c (print_string_repr): Use
384 val_print_string to print lazy strings. Fix cleanup logic.
385 (print_children): Likewise.
386 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
387 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
388 Change return type to 'void', add 'addr' argument.
389 * value.h (val_print_string): Update.
390 * valprint.c (val_print_string): Add 'encoding' argument.
391 * printcmd.c (print_formatted): Update.
392 * p-valprint.c (pascal_val_print): Update.
393 * m2-valprint.c (print_unpacked_pointer): Update.
394 (m2_print_array_contents): Likewise.
395 * jv-valprint.c (java_value_print): Update.
396 * f-valprint.c (f_val_print): Update.
397 * c-valprint.c (c_val_print): Update.
398 * auxv.c (fprint_target_auxv): Update.
400 2010-10-15 Doug Evans <dje@google.com>
401 Jan Kratochvil <jan.kratochvil@redhat.com>
404 * gdbtypes.c (check_typedef): Clean up function comment.
405 Keep track of instance flags as we strip typedefs and create a new
406 type to preserve them if necessary.
407 * gdbtypes.h (type) <instance_flags>: Extend the comment.
409 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
411 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
413 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
415 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
416 * gdbtypes.c (rank_one_type): Move type comparison code out of here
418 (types_equal): ...here. And changed it as follows:
419 Outside of typedefs type must be of the same TYPE_CODE.
420 When compairing two pointers or references they are equal if their
422 Correct pointer conversions.
424 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
426 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
427 having fields without names.
429 2010-10-13 Tom Tromey <tromey@redhat.com>
431 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
433 2010-10-13 Doug Evans <dje@google.com>
435 New python module gdb.types.
437 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
438 * python/lib/gdb/types.py: New file.
440 * c-typeprint.c: Whitespace cleanup.
441 (cp_type_print_method_args): Remove unnecessary forward decl.
442 (cp_type_print_derivation_info): Ditto.
443 (c_type_print_varspec_prefix): Mark as static at definition.
444 (c_type_print_modifier): Fix arg descriptions.
446 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
448 * python/py-breakpoint.c (bppy_set_condition): New comment.
449 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
450 failed PyUnicode_Decode.
451 (cmdpy_completer): Skip element for failed
452 python_string_to_host_string.
453 (cmdpy_init): Return -1 on failed python_string_to_host_string.
454 * python/py-frame.c (frapy_read_var): Extend the function comment.
455 * python/py-function.c (fnpy_init): Return -1 on failed
456 python_string_to_host_string.
457 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
458 the function comment.
459 (infpy_search_memory): Extend the function comment. Remove the
460 PyErr_SetString call on already set error state.
461 * python/py-param.c (set_parameter_value): Extend the function
462 comment. Return -1 on failed python_string_to_host_string, twice.
463 (set_attr): Extend the function comment.
464 (compute_enum_values): Extend the function comment. New variable
465 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
466 failed python_string_to_host_string.
467 (get_doc_string): Call gdbpy_print_stack on failed
468 python_string_to_host_string.
469 (parmpy_init): Extend the function comment.
470 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
471 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
472 failed python_string_to_host_string.
473 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
474 (valpy_binop, valpy_richcompare): Extend the function comment.
476 (struct python_env) <error_type, error_value, error_traceback>: New
478 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
479 (ensure_python_env): Call PyErr_Fetch.
480 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
481 failed convert_value_from_python.
482 (value_get_print_value): Call gdbpy_print_stack on failed
483 python_string_to_target_python_string.
485 2010-10-12 Tom Tromey <tromey@redhat.com>
487 * python/py-prettyprint.c (search_pp_list): Fix error checking.
489 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
491 * gdbtypes.c (do_is_ancestor): New function.
492 (is_ancestor): Use do_is_ancestor.
493 (is_public_ancestor): Use do_is_ancestor.
495 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
497 * ser-go32.c (struct dos_ops): Add missing fdopen field.
499 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
501 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
503 2010-10-11 Doug Evans <dje@google.com>
505 * c-typeprint.c (c_type_print_modifier): Add note that this prints
506 the address space id too.
508 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Fix attaching to re-prelinked executables on ppc64.
511 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
512 initialize it, try to adjust FILESZ field by it.
514 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
516 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
517 messages if info_verbose.
519 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
521 * valops.c (value_cast): Handle vector types.
522 * valarith.c (value_binop): Widen scalar to vector if appropriate.
524 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
526 * arm-tdep.c (thumb_expand_immediate): New function.
527 (thumb_instruction_changes_pc): Likewise.
528 (thumb2_instruction_changes_pc): Likewise.
529 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
530 prologue parsing. Improved support for optimized code.
531 (thumb_scan_prologue): Do not reply on line-number information,
532 use same heuristics as arm_scan_prologue insead.
533 (skip_prologue_function): Accept functions
534 "__tls_get_addr" and "__aeabi_read_tp".
536 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
537 Daniel Jacobowitz <dan@codesourcery.com>
539 * arm-tdep.c (thumb_in_function_epilogue_p)
540 (arm_in_function_epilogue_p): New.
541 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
542 gdbarch_in_function_epilogue_p callback.
544 2010-10-07 Doug Evans <dje@google.com>
546 * cc-with-index.sh (output_file): Default to a.out.
548 * dwarf2read.c (mapped_index): Rename member index_table to
549 symbol_table and index_table_slots to symbol_table_slots.
551 (create_symbol_hash_table): Renamed from create_index_table.
553 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
554 (write_hash_table): Rename local index_table to symbol_hash_table.
556 * addrmap.h (addrmap_foreach_fn): New typedef.
557 (addrmap_foreach): Declare.
558 * addrmap.c (struct addrmap_funcs): New member foreach.
559 (addrmap_foreach): New function.
560 (addrmap_fixed_foreach): New function.
561 (addrmap_fixed_funcs): Update.
562 (struct mutable_foreach_data): New struct.
563 (addrmap_mutable_foreach_worker): New function.
564 (addrmap_mutable_foreach): New function.
565 (addrmap_mutable_funcs): Update.
567 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
569 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
572 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
574 * ada-lang.c (full_match): Declare.
575 (ada_match_name): Rename to match_name (we should avoid prefixing static
576 symbols with "ada_").
577 (match_name): New name for ada_match_name.
578 (struct ada_psym_data): Remove and replace with...
579 (struct match_data): User data for map_matching_symbols.
580 (ada_add_psyms): Remove.
581 (aux_add_nonlocal_symbols): New function, used as callback for
582 map_matching_symbols.
583 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
585 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
586 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
587 Rework to use map_matching_symbols instead of map_ada_symtabs.
588 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
589 * psymtab.c: Include dependency on dictionary.h.
590 (match_partial_symbol): New function.
591 (ada_lookup_partial_symbol): Remove.
592 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
593 (map_matching_symbols_psymtab): New function.
594 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
595 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
597 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
599 * ada-lang.c (ada_match_name): Use new API for wild_match.
600 (wild_match): Change API to be consistent with that of strcmp_iw;
601 return 0 for a match, and switch operand order.
602 (full_match): New function.
603 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
604 matching to allow use of hashing.
605 * dictionary.c (struct dict_vector): Generalize iter_name_first,
606 iter_name_next ot iter_match_first, iter_match_next.
607 (iter_name_first_hashed): Replace with iter_match_first_hashed.
608 (iter_name_next_hashed): Replace with iter_match_next_hashed.
609 (iter_name_first_linear): Replace with iter_match_first_linear.
610 (iter_name_next_linear): Replace with iter_match_next_linear.
611 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
612 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
613 (dict_iter_match_first): New function.
614 (dict_iter_match_next): New function.
615 (dict_hash): New function.
616 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
617 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
619 2010-10-06 Doug Evans <dje@google.com>
621 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
623 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
625 * dwarf2read.c (read_tag_const_type): Handle const arrays.
627 2010-10-06 Doug Evans <dje@google.com>
629 * Makefile.in (REQUIRED_SUBDIRS): New var.
630 (subdir_do): Verify required subdir Makefiles exist.
632 Create subdir data-directory.
633 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
634 data-directory/Makefile.in.
635 (SUBDIRS): Add data-directory.
636 (all): Remove xml-syscall-copy dependency.
637 (xml-syscall-copy): Moved to data-directory/Makefile.in as
639 (xml-syscall-install): Moved to data-directory/Makefile.in as
641 (install-only): Remove xml-syscall-install dependency.
642 (all-data-directory): New rule.
643 (data-directory/Makefile): New rule.
644 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
645 * configure: Regenerate.
646 * data-directory/Makefile.in: New file.
647 * python/lib/gdb/__init__.py: New file.
649 2010-10-06 Joel Brobecker <brobecker@adacore.com>
651 Fix ARI warnings in advance_wild_match.
652 * ada-lang.c (advance_wild_match): Delete local variable t2.
653 Adjust code accordingly. Minor reformatting.
655 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
657 * gdbtypes.h (struct main_type): Remove flag_nottext.
658 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
659 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
660 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
661 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
662 of TYPE_FLAG_NOTTEXT.
663 (init_type): Remove the initialization of the flag_nottext field.
664 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
666 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
668 2010-10-04 Doug Evans <dje@google.com>
670 * cc-with-index.sh: New file.
672 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
674 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
675 (create_cus_from_index, create_addrmap_from_index): Ditto.
676 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
677 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
678 (dw2_do_expand_symtabs_matching): Ditto.
679 (eq_strtab_entry, create_strtab, add_string): Ditto.
680 (hash_strtab_entry): Ditto.
681 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
682 (create_index_table, create_mapped_symtab, find_slot): Ditto.
683 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
684 (write_hash_table, add_address_entry, write_psymbols): Ditto.
685 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
686 (write_psymtabs_to_index): Ditto.
688 2010-10-04 Joel Brobecker <brobecker@adacore.com>
690 * ada-lang.c: #include "value.h".
691 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
692 arguments. Implement using value_allocate_space_in_inferior
693 instead of allocating memory from the stack.
694 (make_array_descriptor): Remove gdbarch and sp parameters. Update
695 calls to ensure_lval.
696 (ada_convert_actual): Remove gdbarch and sp parameters. Update
697 calls to make_array_descriptor and ensure_lval.
698 * ada-lang.h (ada_convert_actual): Update declaration.
699 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
701 2010-10-04 Doug Evans <dje@google.com>
703 * python/python.c (_initialize_python): Define new function
704 GdbSetPythonDirectory in python. Use it to update sys.path and
707 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
709 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
710 incorporating and generalizing print_record_field_types.
711 (print_record_field_types): Change return value and update comment.
712 Re-implement using print_selected_record_field_types.
713 (print_choices): Print "=>" here.
714 Handle case of unencoded variant branch.
715 (print_variant_clauses): Reformat comment.
716 Special-case unencoded variant branch.
718 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
720 * ada-lang.c (wild_match): Reimplement.
721 Change API to eliminate unused length argument, reverse arguments and
722 make 0 the 'true' return value.
723 (advance_wild_match): New auxiliary function for wild_match to improve
725 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
726 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
728 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
730 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
732 2010-10-01 Doug Evans <dje@google.com>
734 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
735 for `save gdb-index' command.
737 2010-10-01 Tom Tromey <tromey@redhat.com>
739 * symfile.h (allocate_symtab): Update.
740 * symfile.c (allocate_symtab): Make 'filename' const.
741 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
742 (add_psymbol_to_list): Likewise.
743 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
745 (add_psymbol_to_list): Update.
746 * mdebugread.c (new_symtab): Make 'name' const.
747 (psymtab_to_symtab_1): Make 'filename' const.
748 * elfread.c (elfstab_offset_sections): Update.
749 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
750 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
751 (psymtab_include_file_name): Update.
752 * dbxread.c (find_stab_function_addr): Make 'filename' const.
753 * buildsym.h (start_subfile): Update.
754 * buildsym.c (start_subfile): Make arguments const.
756 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
758 * fork-child.c (breakup_args): Fix crash if shell forking is
759 disabled at compile time.
761 2010-10-01 Joel Brobecker <brobecker@adacore.com>
763 * ada-lang.c (desc_bounds): Add handling of the case where
764 the P_BOUNDS field is a pointer to a stub.
765 (desc_data_target_type): Same for P_ARRAY field.
766 (ada_check_typedef): Strip the typedef layers from the type
767 found by ada_find_any_type.
769 2010-10-01 Joel Brobecker <brobecker@adacore.com>
771 * sparc-tdep.c (sparc32_frame_align): New function.
772 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
773 * sparc64-tdep.c (sparc64_frame_align): New function.
774 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
776 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
778 * defs.h (MAX_REGISTER_SIZE): Set to 64.
780 2010-09-30 Tom Tromey <tromey@redhat.com>
782 * symfile.h (struct sym_fns) <next>: Remove.
783 (add_symtab_fns): Update.
784 * symfile.c (sym_fns_ptr): New typedef.
785 (symtab_fns): Now a VEC.
786 (add_symtab_fns): Update. Change argument type.
787 (find_sym_fns): Update. Change return type.
788 (get_symfile_segment_data): Update.
789 * objfiles.h (struct objfile) <sf>: Now const.
790 * somread.c (som_sym_fns): Now const. Update.
791 * xcoffread.c (xcoff_sym_fns): Now const. Update.
792 * mipsread.c (ecoff_sym_fns): Now const. Update.
793 * machoread.c (macho_sym_fns): Now const. Update.
794 * elfread.c (elf_sym_fns): Now const. Update.
795 (elf_sym_fns_gdb_index): Likewise.
796 * dbxread.c (aout_sym_fns): Now const. Update.
797 * coffread.c (coff_sym_fns): Now const. Update.
799 2010-09-30 Tom Tromey <tromey@redhat.com>
801 * value.c (value_primitive_field): Take 'offset' into account for
804 2010-09-30 Tom Tromey <tromey@redhat.com>
806 * completer.c (count_struct_fields): Handle anonymous structs and
808 (add_struct_fields): Likewise.
810 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
812 Fix printing parameters of inlined functions.
813 * ada-lang.c (is_known_support_routine)
814 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
815 for find_frame_funname.
816 * python/py-frame.c (frapy_name): Likewise.
817 * stack.c (find_frame_funname): New parameter funcp. Update the
818 function comment. Fill it in.
819 (print_frame): New variable func. Initialize it by
820 find_frame_funname. Print arguments only if FUNC is not NULL. Use
821 FUNC as the parameter of print_args_stub.
822 * stack.h (find_frame_funname): New parameter funcp. Remove the
823 function declaration comment.
825 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
828 * inferior.c (have_live_inferiors): New variables old_chain, inf and
829 tp. Iterate INFERIOR_LIST and call target_has_execution.
831 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
833 Fix GDB crash on inferior calls with self-referencing classes.
834 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
837 2010-09-29 Doug Evans <dje@google.com>
839 Workaround for gcc/45682.
840 * dwarf2read.c (partial_die_info): New fields fixup_called,
842 (guess_partial_die_structure_name): Renamed from guess_structure_name.
843 Move definition next to use. Use linkage_name to determine if class
844 is in a namespace. All callers updated.
845 (fixup_partial_die): Return early if already called.
846 Set fixup_called when done.
847 (guess_full_die_structure_name): New function.
848 (determine_prefix): Call it for class/struct/union dies if c++ and
849 .debug_types section is present and parent is DW_TAG_compile_unit.
851 2010-09-28 Joel Brobecker <brobecker@adacore.com>
853 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
854 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
856 2010-09-28 Joel Brobecker <brobecker@adacore.com>
858 * NEWS: Announce Ravenscar Profile support.
860 2010-09-28 Joel Brobecker <brobecker@adacore.com>
861 Jerome Guitton <guitton@adacore.com>
863 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
865 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
866 ravenscar-sparc-thread.o to gdb_target_obs.
868 2010-09-28 Joel Brobecker <brobecker@adacore.com>
870 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
871 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
873 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
875 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
876 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
877 skip_main_prologue method.
879 2010-09-27 Tom Tromey <tromey@redhat.com>
881 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
882 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
883 Only emit a given psymbol once.
884 (struct signatured_type_index_data) <psyms_seen>: New field.
885 (write_one_signatured_type): Update.
886 (cleanup_htab): New function.
887 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
889 (save_gdb_index_command): Update index documentation.
891 2010-09-27 Tom Tromey <tromey@redhat.com>
893 * bcache.c (expand_hash_table): Use hash_function, not hash.
895 2010-09-27 Tom Tromey <tromey@redhat.com>
897 * gdb_wchar.h: Change minimum libiconv to 0x108.
899 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
901 Fix lost siginfo_t for inferior calls.
903 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
904 (save_inferior_thread_state): New variables regcache, gdbarch and
905 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
906 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
908 (restore_inferior_thread_state): New variables regcache and gdbarch.
909 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
910 REGCACHE. Free also SIGINFO_DATA.
912 2010-09-24 Tom Tromey <tromey@redhat.com>
914 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
916 (dw2_map_symbol_names): Likewise.
918 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
920 * valops.c (find_oload_champ_namespace_loop): replace incorrect
921 discard_cleanups do_cleanups.
923 2010-09-24 Pedro Alves <pedro@codesourcery.com>
927 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
928 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
929 si_code is < 0. Check for si_code == SI_TIMER before checking for
932 2010-09-24 Pedro Alves <pedro@codesourcery.com>
934 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
936 2010-09-22 Joel Brobecker <brobecker@adacore.com>
938 * ada-tasks.c (read_atcb): Do not compute the task ptid when
939 debugging a core file.
941 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
944 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
945 (free_objfile) <objfile->name != NULL>: Remove the conditional around
947 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
948 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
950 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
951 Remove the conditional.
952 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
954 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
956 * main.c: Include objfiles.h.
957 (captured_main): New variable objfile. Call
958 load_auto_scripts_for_objfile for ALL_OBJFILES.
960 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
962 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
965 2010-09-22 Joel Brobecker <brobecker@adacore.com>
967 * dwarf2read.c (scan_partial_symbols): Add handling of
968 DW_TAG_constant DIEs.
969 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
971 2010-09-22 Joel Brobecker <brobecker@adacore.com>
973 * configure.ac: Add support for --enable-gdbserver.
974 * configure: Regenerate.
976 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
979 * valops.c (find_oload_champ_namespace_loop): removed incorrect
980 'old_cleanups' reassignment.
982 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
987 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
990 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
991 read_var_value and common_val_print and print a warning.
993 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
996 keep the list in alphabetical order. Use longer e-mail address.
998 2010-09-15 Tom Tromey <tromey@redhat.com>
1000 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1002 2010-09-15 Tom Tromey <tromey@redhat.com>
1004 * charset.c (iconv_open): New define.
1006 (iconv_close): Likewise.
1007 (phony_iconv_open): Add "phony_" prefix.
1008 (phony_iconv_close): Likewise.
1009 (phony_iconv): Likewise.
1010 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1011 Change how INTERMEDIATE_ENCODING is defined.
1013 2010-09-15 Doug Evans <dje@google.com>
1015 * dwarf2read.c (struct die_info): Fix comment.
1017 2010-09-15 Alan Modra <amodra@gmail.com>
1020 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1021 than setting SEC_NEVER_LOAD on sections that need not be copied.
1023 2010-09-14 Tom Tromey <tromey@redhat.com>
1025 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1026 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1028 * symfile.h (extend_psymbol_list): Remove.
1029 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1030 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1031 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1033 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1035 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1038 2010-09-14 Tom Tromey <tromey@redhat.com>
1041 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1042 for unrecognized frame base expression.
1044 2010-09-14 Tom Tromey <tromey@redhat.com>
1047 * value.c (value_static_field): Use value_of_variable.
1049 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1051 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1052 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1054 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1057 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1060 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1062 * NEWS: Add x86-lynxos to the list of platforms supported by
1065 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1067 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1069 2010-09-13 Tom Tromey <tromey@redhat.com>
1071 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1073 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1075 * i386-tdep.c (i386_ymm_type): Set type name to
1076 builtin_type_vec256i.
1078 2010-09-12 Michael Snyder <msnyder@vmware.com>
1080 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1082 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1084 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1086 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1088 * amd64-tdep.c (amd64_register_name): Removed.
1089 (amd64_init_abi): Don't call set_gdbarch_register_name.
1091 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1093 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1095 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1096 Paul Bolle <pebolle@tiscali.nl>
1098 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1099 * cli-logging.c (struct saved_output_files) <targerr>: New.
1100 (set_logging_redirect, pop_output_files, handle_redirections):
1101 Redirect also gdb_stdtargerr.
1102 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1104 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1105 also gdb_stdtargerr.
1106 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1107 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1108 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1109 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1110 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1113 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1115 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1116 to display a host address.
1117 * monitor.c (monitor_read_memory): Likewise.
1118 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1120 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1122 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1123 `CORE_ADDRESS' as it might contain target addresses.
1125 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1127 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1128 before cast to pointer to avoid warning.
1130 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1132 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1135 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1137 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1138 anonymous class partial DIEs.
1140 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1142 * dwarf2read.c (dwarf2_compute_name): Check that the first
1143 argument is a pointer.
1145 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1147 * dwarf2read.c (read_func_scope, read_structure_type)
1148 (read_common_block): Check for a NULL return from new_symbol.
1150 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1152 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1154 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1156 * dwarf2read.c (read_structure_type): Move processing of
1157 fields and member functions from here...
1158 (process_structure_scope): ... to here.
1160 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1162 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1164 (gnuv3_make_method_ptr): Likewise.
1166 2010-09-08 Tom Tromey <tromey@redhat.com>
1168 * breakpoint.c (create_breakpoint): Add missing _().
1170 2010-09-08 Doug Evans <dje@google.com>
1172 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1174 2010-09-08 Tom Tromey <tromey@redhat.com>
1177 2010-09-01 Tom Tromey <tromey@redhat.com>
1178 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1179 symtab.h: Revert earlier change.
1181 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1183 * psymtab.c (add_psymbol_to_bcache): Initialize
1185 memset psymbol.ginfo.value to 0.
1187 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1189 * infrun.c (resume): Extend comment on ignoring single-step
1190 requests on vfork parents waiting for a vfork-done.
1192 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1193 Pedro Alves <pedro@codesourcery.com>
1195 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1197 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1199 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1200 calling strsignal. Use enum target_signal type for saved_signo.
1201 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1202 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1203 target_signal_to_host before calling strsignal.
1204 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1207 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1208 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 * common/signals.c (ANY): Remove.
1211 (SET): No longer use ANY.
1213 2010-09-06 Yao Qi <yao@codesourcery.com>
1215 * infrunc(resume): When inferior is waiting_for_vfork_done,
1216 clear step and don't use displaced stepping.
1218 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1220 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1223 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 Code cleanup - split print_stop_reason.
1226 * infrun.c (enum inferior_stop_reason): Remove.
1227 (print_stop_reason): Remove by splitting into ...
1228 (print_exited_reason, print_signal_exited_reason)
1229 (print_no_history_reason, print_signal_received_reason)
1230 (print_end_stepping_range_reason): ... these new functions. Update
1231 the preceding comment.
1232 (handle_inferior_event): Change the calls to print_exited_reason,
1233 print_signal_exited_reason, print_no_history_reason,
1234 print_signal_received_reason, print_end_stepping_range_reason.
1235 (handle_step_into_function, handle_step_into_function_backward):
1236 Change the calls to print_end_stepping_range_reason.
1238 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1240 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1241 * cli-out.c: Include vec.h.
1242 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1243 variable stream, initialize it, use it.
1244 (cli_redirect): New function comment. Replace the stream and
1245 original_stream fields by the new streams field. Remove the
1246 original_stream != NULL conditional, assert error on NULL instead.
1247 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1248 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1249 original_stream fields by the new streams field.
1250 (cli_out_set_stream): Replace the stream field by the new streams
1252 * cli-out.h: Include vec.h.
1253 (ui_filep): New typedef, call DEF_VEC_P for it.
1254 (struct cli_ui_out_data): Replace the stream and original_stream
1255 fields by the new streams field.
1256 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1257 NULL first. Extend the comment.
1258 (handle_redirections): Call ui_out_redirect with output.
1259 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1260 calls outside of the TRY_CATCH block.
1262 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1266 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1268 Back out the following change:
1269 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1270 | * record.c (set_record_pic_cmdlist,
1271 | show_record_pic_cmdlist): New variables.
1272 | (set_record_pic_command,
1273 | show_record_pic_command): New functions.
1274 | (record_pic_function, record_pic_line, record_pic_enum,
1275 | set_record_pic_type, record_pic_hide_nofunction,
1276 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1277 | (record_pic_fputs): New function.
1278 | (function_list, node_list, edge_list): New struct.
1279 | (function_list, node_list, edge_list): New variables.
1280 | (record_pic_cleanups, record_pic_node,
1281 | record_pic_edge, cmd_record_pic): New functions.
1282 | (_initialize_record): Add new commands for record pic.
1284 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1286 * config.in, configure: Regenerated.
1287 * configure.ac: Check for waitpid.
1288 * ser-pipe.c (pipe_close): Wait for the program to exit.
1290 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1292 * cli/cli-logging.c: Include gdb_assert.h.
1293 (set_logging_overwrite): New function.
1294 (logging_redirect): New comment.
1295 (logging_no_redirect_file, set_logging_redirect)
1296 (pop_output_files) <logging_no_redirect_file>: New.
1297 (handle_redirections) <!logging_redirect>: New variable
1298 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1299 discard cleanup for the close of former OUTPUT. Set
1300 LOGGING_NO_REDIRECT_FILE.
1301 (handle_redirections) <logging_redirect>: gdb_assert
1302 LOGGING_NO_REDIRECT_FILE.
1303 (show_logging_command) <logging_redirect handling>: Adjust messages
1304 for SAVED_FILENAME not NULL.
1305 (_initialize_cli_logging): Install set_logging_overwrite and
1306 set_logging_redirect.
1308 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1312 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1315 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1316 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1317 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1319 2010-09-02 Yao Qi <yao@codesourcery.com>
1321 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1322 number from a WIFSIGNALED status.
1324 2010-09-01 Tom Tromey <tromey@redhat.com>
1326 * symtab.h (lookup_type_symbol): Declare.
1327 * symtab.c (lookup_symbol_in_language_full): Rename from
1328 lookup_symbol_in_language. Add 'for_type' argument.
1329 (lookup_symbol_in_language): New function.
1330 (lookup_type_symbol): Likewise.
1331 (lookup_symbol_aux): Add 'for_type' argument.
1332 (match_symbol_aux): New function.
1333 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1334 (match_transparent_type): New function.
1335 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1336 * symfile.h (struct quick_symbol_functions)
1337 <pre_expand_symtabs_matching>: Remove.
1338 <expand_one_symtab_matching>: New field.
1339 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1340 (pre_expand_symtabs_matching_psymtabs): Remove.
1341 (psym_functions): Update.
1342 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1343 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1344 (dw2_pre_expand_symtabs_matching): Remove.
1345 (dw2_expand_one_symtab_matching): New function.
1346 (dwarf2_gdb_index_functions): Update.
1348 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1350 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1352 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1354 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1355 as a feature reported by -list-target-features.
1357 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1359 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1360 (powerpc-32.o, powerpc-32.c): New rules.
1361 (clean): Also remove powerpc-32.c.
1362 * regformats/rs6000/powerpc-32.dat: Generate.
1364 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1366 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1367 psymbol_bcache_init.
1368 * psymtab.h (psymbol_bcache_init): New function prototype.
1369 (psymbol_bcache_free): New function prototype.
1370 (psymbol_bcache_get_bcache): New function prototype.
1371 * psymtab.c (psymbol_bcache_init): New function.
1372 (psymbol_bcache_free): New function.
1373 (psymbol_bcache_full): New function.
1374 (psymbol_bcache_get_bcache): New function.
1375 (add_psymbol_to_bcache): use psymbol_bcache_full.
1376 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1378 * symmisc.c (print_symbol_bcache_statistics): Updated.
1379 (print_objfile_statistics): Updated.
1380 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1382 (free_objfile): Use psymbol_bcache_free.
1384 2010-08-31 Tom Tromey <tromey@redhat.com>
1387 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1388 Don't set TYPE_NAME on the type.
1390 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1392 * infrun.c (set_exec_direction_func): Error out if target does not
1393 support reverse execution.
1395 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 Make linux_get_siginfo_type `type *' unique.
1398 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1399 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1400 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1401 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1402 (_initialize_linux_tdep): New.
1404 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 * defs.h (find_memory_region_ftype): New typedef.
1408 (exec_set_find_memory_regions): Use it.
1409 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1410 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1411 * gcore.c (objfile_find_memory_regions): Likewise.
1412 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1413 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1414 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1415 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1416 find_memory_region_ftype.
1417 (insert_dbx_link_bpt_in_region): Likewise.
1418 (iterate_over_mappings): Likewise. Drop the comment part about the
1420 (find_memory_regions_callback): Use find_memory_region_ftype.
1421 (proc_find_memory_regions): Likewise.
1422 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1423 find_memory_region_ftype.
1424 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1425 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1427 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1429 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1430 'static partial_symbol psymbol'.
1431 (psymbol_hash): New function.
1432 (psymbol_compare): New function.
1433 * bcache.c (hash_continue): New.
1434 (hash): Use hash_continue.
1435 * bcache.c: Add hash_function and compare_function
1436 pointers to bcache struct.
1437 (bcache_full): Use bcache->hash_function, and
1438 bcache->compare_function.
1439 (bcache_compare): New function.
1440 (bcache_xmalloc): Take hash_function and
1441 compare_function arguments and initialize the
1444 * objfiles.c (allocate_objfile): Updated.
1445 * symfile.c (reread_symbols): Updated.
1446 * python/py-type.c (typy_richcompare): Updated.
1448 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1449 Tom Tromey <tromey@redhat.com>
1452 * python/py-value.c (valpy_get_dynamic_type): New function.
1453 (value_object_getset): Add "dynamic_type".
1454 (valpy_get_type): Fail on error.
1456 2010-08-30 Yao Qi <yao@codesourcery.com>
1458 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1459 (arm_linux_syscall_next_pc): New.
1460 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1461 (arm_linux_init_abi): Initialize syscall_next_pc.
1462 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1463 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1464 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1465 Declare arm_frame_is_thumb.
1467 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1470 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1471 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1473 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1474 calls of bpstat_alloc. Remove explicit bs chain termination.
1476 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1479 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1480 (my_waitpid): Likewise.
1482 2010-08-27 Doug Evans <dje@google.com>
1484 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1487 2010-08-27 Tom Tromey <tromey@redhat.com>
1489 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1490 TYPE_FIELD_IGNORE_BITS.
1492 2010-08-27 Doug Evans <dje@google.com>
1494 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1495 the order they're defined in. munmap .debug_types buffer.
1497 2010-08-26 Doug Evans <dje@google.com>
1499 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1500 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1501 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1502 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1503 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1504 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1505 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1506 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1507 (write_psymtabs_to_index): Ditto.
1509 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1511 * NEWS: Mention libthread_db debugging with core files.
1513 2010-08-26 Doug Evans <dje@google.com>
1515 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1516 forward decl. Pass pst->dirname to dwarf_decode_lines.
1517 (psymtab_include_file_name): New function.
1518 (dwarf_decode_lines): Call it. Update comments.
1520 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1522 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1523 compilation unit being different from target die's.
1525 2010-08-24 Doug Evans <dje@google.com>
1528 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1529 debug_types_type_hash.
1530 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1532 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1533 appropriate type_hash table. All callers updated.
1534 (allocate_signatured_type_table): Renamed from
1535 allocate_signatured_type_hash_table. All callers updated.
1536 (create_signatured_type_table_from_index): Renamed from
1537 create_signatured_type_hash_from_index. All callers updated.
1538 (read_die_type): Add comment. Move actual reading to ...
1539 (read_die_type_1): ... here. New function.
1540 (follow_die_ref_or_sig): Tweak comment.
1541 (set_die_type): Rewrite to use appropriate choice of
1542 debug_info_type_hash or debug_types_type_hash.
1543 (get_die_type_at_offset): New function.
1544 (get_die_type): Call it.
1546 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 * python/py-type.c (typy_richcompare): Initialize worklist.
1550 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1551 Kazu Hirata <kazu@codesourcery.com>
1552 Jonathan Larmour <jifl@eCosCentric.com>
1554 * arm-tdep.c: Include features/arm-with-m.c.
1555 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1557 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1558 Check is_m after force-mode.
1559 (arm_gdbarch_init): Check the binary before the target description.
1560 Add check for M profile attribute. If we have an M-profile device,
1561 but no target register description, use arm-with-m. Recognize the
1562 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1563 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1564 * arm-tdep.h (XPSR_T): Define.
1565 (struct gdbarch_tdep): Add is_m member.
1566 * features/arm-m-profile.xml, features/arm-with-m.c,
1567 features/arm-with-m.xml: New files.
1569 2010-08-23 Doug Evans <dje@google.com>
1571 * dwarf2read.c (read_structure_type): Add comment.
1572 (read_enumeration_type): Add comment.
1573 (process_enumeration_scope): Move definition of some locals
1574 closer to their use.
1575 (read_namespace_type): Add comment.
1576 (set_die_type): Fix typo in comment.
1578 2010-08-23 Tom Tromey <tromey@redhat.com>
1581 * python/py-value.c: Include expression.h.
1582 (valpy_do_cast): New function.
1583 (valpy_cast): Use it.
1584 (valpy_dynamic_cast): New function.
1585 (valpy_reinterpret_cast): Likewise.
1586 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1588 2010-08-23 Tom Tromey <tromey@redhat.com>
1591 * python/py-value.c (valpy_nonzero): Don't throw error for other
1594 2010-08-23 Tom Tromey <tromey@redhat.com>
1597 * python/py-type.c: Include bcache.h, vec.h.
1598 (struct type_equality_entry): New.
1599 (compare_strings): New function.
1600 (check_types_equal): Likewise.
1601 (check_types_worklist): Likewise.
1602 (typy_richcompare): Likewise.
1603 (type_object_type): Set tp_richcompare field.
1605 2010-08-23 Tom Tromey <tromey@redhat.com>
1608 * python/py-type.c (typy_fields): Call check_typedef.
1609 (typy_template_argument): Add TRY_CATCH.
1611 2010-08-23 Tom Tromey <tromey@redhat.com>
1614 * python/py-type.c (typy_array): New function.
1615 (type_object_methods): Add "array".
1617 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1619 * python/python.c: Include "serial.h".
1620 (gdbpy_event_fds): Change type to `struct serial *' a array from
1622 (gdbpy_run_events): Change parameters. Use serial_readchar in
1624 (gdbpy_post_event): Use serial_write in place of write.
1625 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1626 serial_async in place of add_file_handler.
1628 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1630 * serial.h (gdb_pipe, serial_pipe): Declare.
1631 * serial.c (serial_interface_lookup): Take a const char pointer.
1632 (serial_fdopen): Rename to ...
1633 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1634 Call the OPS' fdopen function if there is one.
1635 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1637 (struct serial_ops) <fdopen>: New field.
1639 * ser-mingw.c (free_pipe_state):
1640 (free_pipe_state): Close output on non-pex pipes.
1641 (pipe_windows_fdopen): New.
1643 (_initialize_ser_windows): Register pipe_windows_fdopen.
1644 * ser-go32.c (gdb_pipe): New.
1645 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1650 2010-08-20 Keith Seitz <keiths@redhat.com>
1653 * dwarf2read.c (struct delayed_method_info): New struct.
1654 (struct dwarf2_cu): Add vector method_list.
1655 (scan_partial_symbols): Count methods for union, class, structure,
1656 and interface types.
1657 (add_to_method_list): New function.
1658 (free_delayed_list): New function.
1659 (compute_delayed_physnames): New function.
1660 (process_full_comp_unit): Make a cleanup for the CU's delayed
1661 physname list, compute the delayed physnames, and free the
1663 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1664 of the physname until after the CU is read.
1666 * dwarf2read.c (read_structure_type): Check if the current
1667 DIE's type was already completed after dwarf2_full_name
1670 2010-08-19 Stan Shebs <stan@codesourcery.com>
1672 * NEWS: Mention some additional changes.
1674 2010-08-19 Tom Tromey <tromey@redhat.com>
1676 * Makefile.in (install-python): Add DESTDIR.
1678 2010-08-19 Doug Evans <dje@google.com>
1681 * parser-defs.h (parse_float, parse_c_float): Declare.
1682 * parse.c (parse_float, parse_c_float): New function.
1683 * c-exp.y (parse_number): Call parse_c_float.
1684 * objc-exp.y (parse_number): Ditto.
1685 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1686 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1688 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1690 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1691 the arguments in the correct order.
1692 * symtab.c (maybe_add_partial_symtab_filename): Declare
1693 the arguments in the correct order.
1695 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1697 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1698 initialize it by null_frame_id, wrap its usage by get_frame_id,
1699 frame_id_p and frame_find_by_id.
1701 2010-08-18 Tom Tromey <tromey@redhat.com>
1704 * configure: Rebuild.
1705 * configure.ac: Add install-python to CONFIG_INSTALL.
1706 * Makefile.in (install-python): New.
1708 2010-08-18 Doug Evans <dje@google.com>
1710 * gdb_assert.h (gdb_assert_not_reached): New macro.
1711 (gdb_assert_fail): Fix typo in comment.
1712 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1714 * darwin-nat.c (darwin_check_new_threads): Ditto.
1715 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1716 (munmap_section_buffer): Ditto.
1717 * m32c-tdep.c (make_types): Ditto.
1718 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1719 * macroexp.c (get_character_constant): Ditto.
1720 (get_string_literal): Ditto.
1721 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1722 (mep_pseudo_cr_index, mep_register_type): Ditto.
1723 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1724 (mep_get_insn, mep_analyze_prologue): Ditto.
1725 * objfiles.c (qsort_cmp): Ditto.
1726 * prologue-value.c (pv_is_identical): Ditto.
1727 * record.c (record_get_loc): Ditto.
1728 * value.c (value_static_field): Ditto.
1729 * xtensa-tdep.c (call0_track_op): Ditto.
1731 2010-08-18 Tom Tromey <tromey@redhat.com>
1734 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1735 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1736 name-copying lower. Document exception behavior.
1737 * completer.c (expression_completer): Catch exceptions from
1738 parse_field_expression.
1740 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1744 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1745 workaround on core files.
1746 (try_thread_db_load_1): Don't try enabling thread event reporting
1748 (thread_db_load): Allow thread_db on core files.
1749 (attach_thread): Don't check thread signals on core files, nor try
1750 really attaching to the thread, nor enabling thread event event
1752 (thread_db_detach): Don't try disabing thread event reporting or
1753 removing thread event breakpoints when debugging a core file.
1754 (find_new_threads_callback): Don't try enabling thread event
1755 reporting on core files.
1756 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1757 debugging a core file.
1758 (thread_db_find_new_threads): Don't update thread
1759 cores (processors) when debugging a core (dump).
1761 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1765 * corelow.c (add_to_thread_list): Don't use
1766 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1767 (get_core_register_section): Don't use
1768 gdbarch_core_reg_section_encodes_pid.
1770 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1771 * gdbarch.h, gdbarch.c: Regenerate.
1772 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1773 gdbarch_core_reg_section_encodes_pid.
1774 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1775 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1776 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1778 2010-08-18 Yao Qi <yao@codesourcery.com>
1780 * MAINTAINERS : Add myself under Write After Approval.
1782 2010-08-17 Tom Tromey <tromey@redhat.com>
1784 * NEWS: Mention template parameter support.
1786 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1788 PR breakpoints/11371
1790 * breakpoint.c (decref_bp_location): Assert the reference count is
1793 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1795 PR breakpoints/11371
1797 * breakpoint.c (breakpoint_init_inferior): Decrement the
1798 location's reference count instead of deleting right away.
1799 (bpstat_free): Decrement the location's reference count. Make
1801 (bpstat_copy): Increment the location's reference count.
1802 (bpstat_find_breakpoint): Adjust.
1803 (bpstat_num): Adjust.
1804 (print_it_typical): Adjust. Use the breakpoint pointer in the
1805 bpstat instead of the location's owner.
1806 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1807 Adjust to record the location's owner in the bpstat.
1808 (watchpoint_check): Use the breakpoint pointer in the bpstat
1809 instead of the location's owner.
1810 (bpstat_check_breakpoint_conditions): Don't handle
1811 bp_watchpoint_scope here. Use the breakpoint pointer in the
1812 bpstat instead of the location's owner.
1813 (bpstat_stop_status): Defer inferior function calls to after
1814 building the bpstat list. Handle bp_watchpoint_scope here. Use
1815 the breakpoint pointer in the bpstat instead of the location's
1817 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1818 the location's owner.
1819 (free_bp_location): Don't walk bpstats clearing locations.
1820 (incref_bp_location): New.
1821 (decref_bp_location): New.
1822 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1823 instead of the location's owner.
1824 (update_global_location_list): Clear the location's owner, and
1825 decrement the location's reference count instead of deleting it
1827 (breakpoint_retire_moribund): Decrement the location's reference
1828 count instead of deleting it right away.
1829 (bpstat_remove_bp_location): Delete.
1830 (bpstat_remove_breakpoint): New.
1831 (bpstat_remove_bp_location_callback): Delete.
1832 (bpstat_remove_breakpoint_callback): New.
1833 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1834 clearing references to the breakpoint that is being deleted.
1836 * breakpoint.h (struct bp_location) <refc>: New field.
1837 <owner>: Update comments.
1838 (bpstat_free): Delete declaration.
1839 (struct bpstats): Change the type of the breakpoint_at field to
1840 struct breakpoint point, from struct bp_location pointer. Add new
1841 field bp_location_at.
1843 2010-08-16 Tom Tromey <tromey@redhat.com>
1847 2010-08-16 Tom Tromey <tromey@redhat.com>
1849 * NEWS: Mention watch -location.
1851 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1853 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1854 EXP_STRING_REPARSE to EXP_STRING.
1855 (watch_command_1): Set also EXP_STRING_REPARSE.
1856 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1857 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1858 Update comment for exp_string.
1860 2010-08-16 Tom Tromey <tromey@redhat.com>
1862 * value.c (release_value): Clear 'next' pointer.
1863 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1864 (watch_command_wrapper): Update.
1865 (watch_maybe_just_location): New function.
1866 (watch_command): Update.
1867 (rwatch_command_wrapper): Update.
1868 (rwatch_command): Update.
1869 (awatch_command_wrapper): Update.
1870 (awatch_command): Update.
1871 (check_for_argument): New function.
1872 (_initialize_breakpoint): Update help text.
1874 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1876 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1877 typedef'ed function types correctly.
1879 2010-08-13 Tom Tromey <tromey@redhat.com>
1881 * python/python-internal.h (gdbpy_get_hook_function): Don't
1884 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1886 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1889 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1891 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1892 the format strings to be compatible with Python 2.4.
1894 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1896 Easier and more stubborn MI memory read commands.
1898 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1899 and data-write-memory-bytes.
1900 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1901 (mi_cmd_data_write_memory_bytes): New.
1902 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1903 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1905 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1906 * target.c (target_read_until_error): Remove.
1907 (read_whatever_is_readable, free_memory_read_result_vector)
1908 (read_memory_robust): New.
1909 * target.h (target_read_until_error): Remove.
1910 (struct memory_read_result, free_memory_read_result_vector)
1911 (read_memory_robust): New.
1913 2010-08-13 Hui Zhu <teawater@gmail.com>
1915 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1916 (read_comp_unit): Initialize back_to.
1918 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1919 Pedro Alves <pedro@codesourcery.com>
1921 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1922 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1923 (struct partial_die_info) <has_template_arguments>: New field.
1924 <num_attrs>: Change type to unsigned char.
1925 <building_fullname>: New field.
1926 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1927 allocate a CU if we don't have one already. Add a cleanup for the
1929 (partial_die_full_name): Handle template arguments not in
1931 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1932 (load_full_comp_unit): Only allocate a CU if we don't have one
1934 (do_ui_file_peek_last): New.
1935 (dwarf2_compute_name): Handle template parameters not in
1937 (read_comp_unit): Read and free abbrevs if not read yet.
1938 (load_partial_dies): Handle template arguments not in DW_AT_name.
1939 (find_partial_die): If we have a CU, but no a partial dies yet,
1940 also read in the CU.
1941 (dwarf2_const_value_attr): New, abstracted out from
1943 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1944 dwarf2_const_value_attr.
1945 (determine_prefix): Detect and break loops created by RCVT's debug
1947 (maybe_queue_comp_unit): Bail out early if reading partial
1949 (follow_die_offset): Load full CU if we have no dies.
1950 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1951 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1953 2010-08-11 Tom Tromey <tromey@redhat.com>
1954 Phil Muldoon <pmuldoon@redhat.com>
1956 * python/python.c (gdbpy_run_events): New function.
1957 (gdbpy_post_event): Likewise.
1958 (gdbpy_initialize_events): Likewise.
1959 (_initialize_python): Call gdbpy_initialize_events.
1961 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1963 * gdb/valarith.c (vector_binop): New function.
1964 (scalar_binop): Likewise.
1965 (value_binop): Call scalar_binop or vector_binop depending on the types.
1966 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1967 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1969 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1971 2010-08-11 Brad Roberts <braddr@puremagic.com>
1973 * d-lang.c (extract_identifiers): Handle multiple digits.
1975 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1979 Rename to dummy_frame_unwind.
1980 (dummy_frame_unwind): Remove.
1981 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1982 * frame-unwind.c (frame_unwind_init): Use address of
1983 dummy_frame_unwind and inline_frame_unwind.
1984 * frame.c (create_sentinel_frame): Use address of
1985 sentinel_frame_unwind.
1986 * inline-frame.c (inline_frame_unwinder): Rename to
1987 inline_frame_unwind.
1988 (inline_frame_unwind): Remove.
1989 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1990 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1991 sentinel_frame_unwind.
1992 (sentinel_frame_unwind): Remove.
1993 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1996 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2000 and returned value. New comment from frame-unwind.h.
2001 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2003 * frame.c (get_frame_id, frame_unwind_register_value)
2004 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2005 (get_frame_type, frame_unwind_arch): Do not use the return value of
2006 frame_unwind_find_by_frame.
2008 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2009 Thiago Jung Bauermann <bauerman@br.ibm.com>
2010 Tom Tromey <tromey@redhat.com>
2012 * python/python.c (gdbpy_solib_address): New function.
2013 (gdbpy_decode_line): Likewise.
2015 2010-08-10 Tom Tromey <tromey@redhat.com>
2017 Revert gdb-add-index addition:
2018 * Makefile.in (install-only): Don't install gdb-add-index.
2019 * gdb-add-index.sh: Remove.
2021 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2023 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2024 `target_has_execution' check with `to_has_memory' check.
2025 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2026 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2027 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2029 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2031 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2032 (resume_siggnal, resume_step): Move these static globals...
2033 (struct sim_inferior_data): ...into this new struct.
2034 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2036 (gdb_callback, callbacks_initialized): Move these globals to
2037 a point earlier in the file.
2038 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2039 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2040 (gdbsim_close_inferior, gdbsim_resume_inferior)
2041 (gdbsim_stop_inferior): New functions.
2042 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2044 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2045 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2046 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2047 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2048 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2049 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2050 new local variable `sim_data' in each of these functions. Use
2051 `sim_data' to reference former globals `program_loaded',
2052 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2054 (gdbsim_open): Remove local variable `argv'. Put results of call
2055 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2056 make a cleanup for it. Free it though when a sim instance cannot
2058 (gdbsim_close): Free sim_argv and null it out as appropriate.
2059 Close sim instances in all inferiors.
2060 (gdbsim_cntrl_c): Stop all inferiors.
2062 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2064 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2066 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2067 function after symbol construction is complete.
2068 Do the same for template symbol addition to template_symbols list.
2070 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2072 * symtab.c (symbol_get_demangled_name): Remove assertion and
2073 return NULL when language_specific.cplus_specific is not initialized.
2074 * stabsread.c (define_symbol): Set the name before calling
2075 cp_scan_for_anonymous_namespaces.
2077 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2079 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2080 SYMBOL_SET_LANGUAGE.
2081 (symbol_init_language_specific): Renamed to symbol_set_language.
2082 * symtab.c (symbol_init_language_specific): Removed redundant check
2084 Renamed to symbol_set_language.
2085 * stabsread.c (define_symbol): Updated.
2086 (read_enum_type): Updated
2087 * psymtab.c (add_psymbol_to_bcache): Updated.
2088 * minsyms.c (install_minimal_symbols): Updated.
2089 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2090 SYMBOL_LANGUAGE to set the language.
2091 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2092 * mdebugread.c (new_symbol): Ditto.
2093 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2094 * dwarf2read.c (new_symbol_full): Ditto.
2095 * jv-lang.c (add_class_symbol): Ditto.
2097 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2100 (make_cleanup_restore_page_info)
2101 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2102 * gdbcmd.h (execute_command_to_string): New declaration.
2103 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2104 (make_cleanup_restore_ui_file): Move to utils.c
2105 (execute_gdb_command) <to_string>: Move ...
2106 * top.c (execute_command_to_string): ... here. Call
2107 set_batch_flag_and_make_cleanup_restore_page_info.
2108 * utils.c (make_cleanup_restore_integer): New source file blank line.
2109 (make_cleanup_restore_uinteger): New.
2110 (struct restore_ui_file_closure, do_restore_ui_file)
2111 (make_cleanup_restore_ui_file): Move here from python/python.c.
2112 (init_page_info) <batch_flag>
2113 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2114 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2116 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2118 * thread.c (add_thread_silent): Use null_ptid instead of
2119 minus_one_ptid while getting rid of stale inferior_ptid.
2121 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2123 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2124 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2125 (decode_frame_entry_1): Remove redundant setting of
2126 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2127 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2128 on examined frame section. Add comment to explain why.
2129 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2130 comment to explain usage.
2131 * gdbarch.c: Regenerate.
2132 * gdbarch.h: Regenerate.
2134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2136 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2142 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2144 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2145 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2146 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2147 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2148 linux-tdep.o to gdb_target_obs.
2150 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2152 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2155 2010-08-05 Hui Zhu <teawater@gmail.com>
2157 * mips-linux-tdep.c(regset.h): New include.
2158 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2159 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2160 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2161 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2162 mips_linux_regset_from_core_section): New functions.
2163 (fetch_core_registers, regset_core_fns): Deleted.
2164 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2165 Deleted regset_core_fns.
2166 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2167 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2168 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2171 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2173 * s390-tdep.c: Include linux-tdep.h.
2174 (s390_gdbarch_init): Call linux_init_abi.
2176 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2178 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2179 instead of printing "Thread" here.
2180 * linux-tdep.c: Include inferior.h.
2181 (linux_core_pid_to_str): New.
2182 (linux_init_abi): New.
2183 * linux-tdep.h (linux_init_abi): Declare.
2184 * alpha-linux-tdep.c: Include linux-tdep.h.
2185 (alpha_linux_init_abi): Call linux_init_abi.
2186 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2187 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2188 * frv-linux-tdep.c: Include linux-tdep.h
2189 (frv_linux_init_abi): Call linux_init_abi.
2190 * hppa-linux-tdep.c: Include linux-tdep.h
2191 (hppa_linux_init_abi): Call linux_init_abi.
2192 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2193 * ia64-linux-tdep.c: Include linux-tdep.h.
2194 (ia64_linux_init_abi): Call linux_init_abi.
2195 * m32r-linux-tdep.c: Include linux-tdep.h.
2196 (m32r_linux_init_abi): Call linux_init_abi.
2197 * m68klinux-tdep.c: Include linux-tdep.h.
2198 (m68k_linux_init_abi): Call linux_init_abi.
2199 * microblaze-linux-tdep.c: Include linux-tdep.h.
2200 (microblaze_linux_init_abi): Call linux_init_abi.
2201 * mips-linux-tdep.c: Include linux-tdep.h.
2202 (mips_linux_init_abi): Call linux_init_abi.
2203 * mn10300-linux-tdep.c: Include linux-tdep.h.
2204 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2205 'gdbinfo' parameter to 'info'.
2206 * ppc-linux-tdep.c: Include linux-tdep.h.
2207 (ppc_linux_init_abi): Call linux_init_abi.
2208 * sh-linux-tdep.c: Include linux-tdep.h.
2209 (sh_linux_init_abi): Call linux_init_abi.
2210 * sparc-linux-tdep.c: Include linux-tdep.h.
2211 (sparc32_linux_init_abi): Call linux_init_abi.
2212 * sparc64-linux-tdep.c: Include linux-tdep.h.
2213 (sparc64_linux_init_abi): Call linux_init_abi.
2214 * xtensa-linux-tdep.c: Include linux-tdep.h.
2215 (xtensa_linux_init_abi): Call linux_init_abi.
2216 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2217 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2220 2010-08-03 Doug Evans <dje@google.com>
2222 * breakpoint.c (bpdisp_text): Constify bpdisps.
2223 * solib-svr4.c (solib_break_names): Constify.
2224 (bkpt_names, main_name_list): Constify.
2225 (match_main): Constify soname arg.
2226 (bfd_lookup_symbol): Remove unnecessary forward decl.
2227 Constify symname arg.
2228 (enable_break): Constify bkpt_namep.
2229 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2230 (symtab_symbol_info): Constify classnames.
2232 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2234 * NEWS: Document Python value inferior function calls.
2236 2010-08-02 Doug Evans <dje@google.com>
2238 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2240 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2242 * linux-thread-db.c (libthread_db_debug): New variable.
2243 (thread_db_find_new_threads_silently): Control verbosity with it.
2244 (try_thread_db_load_1, try_thread_db_load): Likewise.
2245 (find_new_threads_once): Likewise.
2246 (_initialize_thread_db): Set/show it.
2248 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * common/signals.c (signals): Move the content to signals.def.
2251 Include it. Remove the INDENT comments.
2253 2010-07-30 Tom Tromey <tromey@redhat.com>
2255 * Makefile.in (install-only): Install gdb-add-index.
2256 * gdb-add-index.sh: New file.
2258 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2260 * MAINTAINERS: Add myself for write after approval privileges.
2262 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 * symfile.c (addr_section_name): New function.
2265 (addrs_section_compar): Use it.
2266 (addr_info_make_relative): Use it. Move variable sect_name into a more
2267 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2269 2010-07-30 Tom Tromey <tromey@redhat.com>
2271 * configure: Rebuild.
2272 * configure.ac: Add missing case for Python 2.7.
2274 2010-07-29 DJ Delorie <dj@redhat.com>
2276 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2279 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2281 * PROBLEMS: Remove mention of all problems.
2283 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2286 * configure.ac: Check for wresize.
2287 * configure, config.in: Regenerate.
2288 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2291 2010-07-28 Tom Tromey <tromey@redhat.com>
2294 * python/py-type.c (typy_legacy_template_argument): New function,
2295 extracted from typy_template_argument.
2296 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2299 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2301 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2303 2010-07-27 Tom Tromey <tromey@redhat.com>
2305 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2307 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2309 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2310 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2312 2010-07-28 Tom Tromey <tromey@redhat.com>
2314 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2316 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2318 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2319 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2321 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2323 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2324 down, just before the block that parse the breakpoint addr_string.
2326 2010-07-28 Tom Tromey <tromey@redhat.com>
2329 * symfile.c (reread_symbols): Clear template_symbols.
2330 * symtab.h (struct symbol) <is_cplus_template_function>: New
2332 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2333 (struct template_symbol): New.
2334 * symtab.c (lookup_symbol_aux_local): Use
2335 cp_lookup_symbol_imports_or_template.
2336 * objfiles.h (struct objfile) <template_symbols>: New field.
2337 * objfiles.c (relocate_one_symbol): New function.
2338 (objfile_relocate1): Use it. Relocate isolated symbols.
2339 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2340 template_arguments>: New fields.
2341 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2342 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2343 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2344 (lookup_typename): Update.
2345 * gdbtypes.c (lookup_typename): Constify "block" argument.
2346 * dwarf2read.c: Include vec.h.
2347 (symbolp): New typedef.
2348 (read_func_scope): Read template arguments. Allocate a
2349 template_symbol when needed.
2350 (read_structure_type): Read template arguments.
2351 (new_symbol_full): New function, from new_symbol. Handle
2352 DW_TAG_template_type_param and DW_TAG_template_value_param.
2353 (new_symbol): Rewrite as wrapper.
2354 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2355 * cp-namespace.c: Include language.h.
2356 (search_symbol_list): New function.
2357 (cp_lookup_symbol_imports_or_template): Likewise.
2359 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2361 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2362 the command window to the new size and position.
2364 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2366 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2369 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2371 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2372 after a detecting a resize.
2373 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2376 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2378 * configure.ac: Check for resize_term.
2379 * configure, config.in: Regenerate.
2381 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2383 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2385 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2387 * dwarf2read.c (read_string): Rename to ...
2388 (read_direct_string): ... this.
2389 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2390 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2392 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2395 (count_events_callback, select_event_lwp_callback)
2396 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2398 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2400 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2401 (_initialize_ia64_linux_nat): Install it.
2402 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2403 (linux_nat_set_status_is_event): New.
2404 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2405 cancel_breakpoints_callback, linux_nat_filter_event)
2406 (linux_nat_wait_1): Use linux_nat_status_is_event.
2407 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2409 2010-07-27 Tom Tromey <tromey@redhat.com>
2411 * NEWS: Mention labels, .gdb_index.
2413 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2415 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2416 "start,+length" form of arguments.
2417 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2418 since GDB 7.1"; and merge two separated paragraphs of disassemble
2419 description in "Changes in GDB 7.0".
2421 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2423 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2424 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2425 (fputs_maybe_filtered): Do not do filtering also on
2426 ! INPUT_FROM_TERMINAL_P.
2428 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2430 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2433 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2435 * python/py-value.c (valpy_call): New Function.
2437 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2439 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2440 types_list_elements variables.
2442 2010-07-26 Tom Tromey <tromey@redhat.com>
2444 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2445 TLS with DW_OP_const4u or DW_OP_const8u.
2447 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2449 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2450 VSX registers contents.
2452 2010-07-26 Jerome Guitton <guitton@adacore.com>
2454 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2455 its adress is null. Add comment to explain why.
2456 (new_symbol): Ditto.
2458 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2460 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2461 the host signal first.
2463 2010-07-23 Tom Tromey <tromey@redhat.com>
2465 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2466 type_comp_units>: New fields.
2467 (dw2_get_cu): New function.
2468 (create_cus_from_index): Remove unused argument.
2469 (create_signatured_type_hash_from_index): New function.
2470 (create_addrmap_from_index): Update.
2471 (dwarf2_read_index): Handle version 2.
2472 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2473 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2474 (dw2_print_stats, dw2_expand_all_symtabs)
2475 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2476 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2477 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2478 (allocate_signatured_type_hash_table): New function.
2479 (add_signatured_type_cu_to_list): Likewise.
2480 (create_debug_types_hash_table): Use them. Set type_comp_units.
2481 (read_signatured_type): Ensure section data is available.
2482 (add_address_entry): Don't record empty ranges.
2483 (struct signatured_type_index_data): New.
2484 (write_one_signatured_type): New function.
2485 (write_psymtabs_to_index): Write type CUs.
2486 (save_gdb_index_command): Update comment.
2487 (process_type_comp_unit): Move inititalization of
2489 (create_debug_types_hash_table): ... here.
2491 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2493 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2494 cleanup and generating of gdb script to it.
2495 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2496 and terminal size. Convert $tmpfile to a series of -ex-es.
2498 2010-07-23 Keith Seitz <keiths@redhat.com>
2500 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2501 hook for STATIC_BLOCK types, too.
2503 2010-07-23 Keith Seitz <keiths@redhat.com>
2505 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2506 and vector definition.
2508 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2510 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2512 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * dwarf2read.c: Include completer.h.
2515 (save_gdb_index_command): Use matching usage command name.
2516 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2517 Set filename_completer for it.
2519 2010-07-22 Tom Tromey <tromey@redhat.com>
2521 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2522 type signature's per-CU data.
2524 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2526 * NEWS: Mention target reported shared libraries support by
2529 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2534 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2535 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2536 and DW_TAG_volatile_type.
2537 (new_symbol): Likewise.
2539 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2541 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2542 function symbols before overload resolution.
2544 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2546 * breakpoint.c (bptype_string): New, abstracted out from
2547 print_one_breakpoint_location.
2548 (print_one_breakpoint_location): Adjust.
2549 (breakpoint_1): Adjust the type column width dynamically.
2551 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2553 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2554 a gdb_assert call, new comment.
2556 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 * linux-nat.c (linux_handle_extended_wait): Handle case when
2559 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2561 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2564 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2565 linux_nat_wait_1. Use always LP->STATUS afterwards.
2567 2010-07-20 Hui Zhu <teawater@gmail.com>
2569 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2570 (inf_ptrace_attach): Ditto.
2572 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2574 Make core files the process_stratum.
2575 * corefile.c (core_target): New variable.
2576 (core_file_command): Remove variable t, use core_target.
2577 * corelow.c (core_ops): Make it static.
2578 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2579 * defs.h (make_cleanup_unpush_target): New prototype.
2580 * gdbarch.h: Regenerate.
2581 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2582 * gdbcore.h (core_target): New declaration.
2583 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2584 variables ops_already_pushed and back_to. Use push_target,
2585 make_cleanup_unpush_target and discard_cleanups calls.
2586 * record.c (record_open): Replace core_stratum by a core_bfd check.
2587 * target.c (target_is_pushed): New function.
2588 (find_core_target): Remove.
2589 * target.h (enum strata) <core_stratum>: Remove.
2590 (target_is_pushed): New declaration.
2591 (find_core_target): Remove declaration.
2592 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2593 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2595 2010-07-19 Hui Zhu <teawater@gmail.com>
2597 * breakpoint.c (single_step_breakpoints_inserted): New
2599 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2600 * infrun.c (maybe_software_singlestep): Add check code.
2601 * record.c (record_resume): Add code for software single step.
2602 (record_wait): Ditto.
2604 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2606 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2607 a more inner block. Remove its unused declaration initializer.
2609 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2611 * NEWS: Mention support for the new ptrace interface and hardware
2612 accelerated watchpoint conditions on powerpc-linux.
2614 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2616 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2617 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2618 and host_address_to_string() and %s for pointers.
2619 (debug_to_remove_breakpoint): Likewise.
2620 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2621 (debug_to_can_accel_watchpoint_condition): Likewise.
2622 (debug_to_stopped_data_address): Likewise.
2623 (debug_to_watchpoint_addr_within_range): Likewise.
2624 (debug_to_insert_hw_breakpoint): Likewise.
2625 (debug_to_remove_hw_breakpoint): Likewise.
2626 (debug_to_insert_watchpoint): Likewise.
2627 (debug_to_remove_watchpoint): Likewise.
2629 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2631 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2633 (cplus_specific): New struct.
2634 * symtab.c (symbol_set_demangled_name): Updated.
2635 Use cplus_specific for cplus symbols.
2636 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2637 struct for cplus symbols.
2638 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2639 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2640 * symtab.c (symbol_init_cplus_specific): New function.
2642 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2644 * symtab.h (symbol_set_demangled_name): New function.
2645 (symbol_get_demangled_name): New function.
2646 * symtab.c (symbol_set_demangled_name): New function.
2647 (symbol_get_demangled_name): New function.
2648 (symbol_init_language_specific): Use demangled_name setter and getter.
2649 (symbol_set_names): Ditto.
2650 (symbol_natural_name): Ditto.
2651 (symbol_demangled_name): Ditto.
2652 * dwarf2read.c (new_symbol): Ditto.
2654 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2656 * symtab.h: Renamed cplus_specific to mangled_lang.
2657 * symtab.c (symbol_init_language_specific): Updated.
2658 (symbol_set_names): Updated.
2659 (symbol_natural_name): Updated.
2660 (symbol_demangled_name): Updated.
2661 * ada-lang.c (ada_decode_symbol): Updated.
2662 * dwarf2read.c (new_symbol): Updated.
2664 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2666 * valops.c (value_assign): Do not call to value_coerce_to_target.
2667 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2669 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2671 * MAINTAINERS: Add myself for write after approval privileges.
2673 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2675 * c-valprint.c (c_val_print): Add embedded_offset to address in
2676 call to val_print_array_elements.
2678 2010-07-13 Tom Tromey <tromey@redhat.com>
2680 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2682 2010-07-13 Tom Tromey <tromey@redhat.com>
2684 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2687 2010-07-13 Tom Tromey <tromey@redhat.com>
2689 * symfile.c (set_initial_language): Update.
2690 (deduce_language_from_filename): Argument type now const.
2691 * symtab.h (find_main_filename): Update.
2692 (deduce_language_from_filename): Update.
2693 * symtab.c (find_main_filename): Make result const.
2694 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2695 * psymtab.c (find_symbol_file_from_partial): Change return type.
2696 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2699 2010-07-13 Tom Tromey <tromey@redhat.com>
2701 * breakpoint.c (save_cmdlist): No longer static.
2702 * gdbcmd.h (save_cmdlist): Declare.
2703 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2704 OBJF_READNOW on objfile if readnow_symbol_files.
2705 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2706 (elf_sym_fns_gdb_index): New global.
2707 * dwarf2read.c: Include exceptions.h.
2709 (struct mapped_index): New.
2710 (dwarf2_per_cu_data_ptr): New typedef.
2711 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2713 (GDB_INDEX_SECTION): New define.
2714 (struct dwarf2_per_cu_quick_data): New.
2715 (struct dwarf2_per_cu_data) <objfile>: New field.
2718 (byte_swap): New function.
2719 (MAYBE_SWAP): New macro.
2720 (INDEX_SUFFIX): New macro.
2721 (dw2_do_instantiate_symtab): New function.
2722 (dw2_instantiate_symtab): Likewise.
2723 (create_cus_from_index): Likewise.
2724 (create_addrmap_from_index): Likewise.
2725 (mapped_index_string_hash): Likewise.
2726 (find_slot_in_mapped_hash): Likewise.
2727 (dwarf2_read_index): Likewise.
2728 (dw2_setup): Likewise.
2729 (dw2_require_line_header): Likewise.
2730 (dw2_require_full_path): Likewise.
2731 (dw2_find_last_source_symtab): Likewise.
2732 (dw2_forget_cached_source_info): Likewise.
2733 (dw2_lookup_symtab): Likewise.
2734 (dw2_lookup_symbol): Likewise.
2735 (dw2_do_expand_symtabs_matching): Likewise.
2736 (dw2_pre_expand_symtabs_matching): Likewise.
2737 (dw2_print_stats): Likewise.
2738 (dw2_dump): Likewise.
2739 (dw2_relocate): Likewise.
2740 (dw2_expand_symtabs_for_function): Likewise.
2741 (dw2_expand_all_symtabs): Likewise.
2742 (dw2_expand_symtabs_with_filename): Likewise.
2743 (dw2_find_symbol_file): Likewise.
2744 (dw2_map_ada_symtabs): Likewise.
2745 (dw2_expand_symtabs_matching): Likewise.
2746 (dw2_find_pc_sect_symtab): Likewise.
2747 (dw2_map_symbol_names): Likewise.
2748 (dw2_map_symbol_filenames): Likewise.
2749 (dw2_has_symbols): Likewise.
2750 (dwarf2_gdb_index_functions): New global.
2751 (dwarf2_initialize_objfile): New function.
2752 (process_psymtab_comp_unit): Update.
2753 (add_partial_subprogram): Likewise.
2754 (dwarf2_psymtab_to_symtab): Likewise.
2755 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2756 (process_full_comp_unit): Update.
2757 (find_file_and_directory): New function.
2758 (read_file_scope): Use find_file_and_directory.
2759 (dwarf2_per_cu_objfile): Update.
2760 (dwarf2_per_cu_addr_size): Update.
2761 (dwarf2_per_cu_offset_size): Update.
2762 (dwarf2_free_objfile): Free the index, if needed.
2763 (dwarf2_per_objfile_free): Unmap the index, if needed.
2764 (struct strtab_entry): New.
2765 (hash_strtab_entry): New function.
2766 (eq_strtab_entry): Likewise.
2767 (create_strtab): Likewise.
2768 (add_string): Likewise.
2769 (struct symtab_index_entry): New.
2770 (struct mapped_symtab): New.
2771 (hash_symtab_entry): New function.
2772 (eq_symtab_entry): Likewise.
2773 (delete_symtab_entry): Likewise.
2774 (create_index_table): Likewise.
2775 (create_mapped_symtab): Likewise.
2776 (cleanup_mapped_symtab): Likewise.
2777 (find_slot): Likewise.
2778 (hash_expand): Likewise.
2779 (add_index_entry): Likewise.
2780 (add_indices_to_cpool): Likewise.
2781 (write_hash_table): Likewise.
2782 (add_address_entry): Likewise.
2783 (write_psymbols): Likewise.
2784 (write_obstack): Likewise.
2785 (unlink_if_set): Likewise.
2786 (write_psymtabs_to_index): Likewise.
2787 (save_gdb_index_command): Likewise.
2788 (_initialize_dwarf2_read): Install "save gdb-index"
2790 (create_all_comp_units): Initialize 'objfile' field of CU.
2791 (dwarf2_locate_sections): Check for .gdb_index.
2792 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2793 * symfile.h (dwarf2_initialize_objfile): Declare.
2795 2010-07-13 Tom Tromey <tromey@redhat.com>
2797 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2798 (basic_lookup_transparent_type): Likewise.
2799 * symfile.h (struct quick_symbol_functions)
2800 <pre_expand_symtabs_matching>: New field.
2801 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2802 (psym_functions): Update.
2804 2010-07-13 Tom Tromey <tromey@redhat.com>
2806 PR breakpoints/8357:
2807 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2808 * linespec.c (decode_line_1): Update comment. Call decode_label.
2809 (decode_label): New function.
2810 (symbol_found): Handle LOC_LABEL.
2811 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2812 domain. Call add_symbol_to_list.
2814 2010-07-13 Tom Tromey <tromey@redhat.com>
2816 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2817 * dwarf2loc.c (find_location_expression): Use
2818 dwarf2_per_cu_text_offset.
2819 (dwarf2_evaluate_loc_desc): Likewise.
2820 (dwarf2_loc_desc_needs_frame): Likewise.
2821 (compile_dwarf_to_ax): Likewise.
2822 (loclist_describe_location): Likewise.
2823 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2824 (dwarf2_per_cu_objfile): Update comment.
2826 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2828 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2829 * p-lang.c (pascal_printstr): Likewise.
2831 2010-07-09 Tom Tromey <tromey@redhat.com>
2833 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2834 'hint' if it is NULL.
2836 2010-07-09 Hui Zhu <teawater@gmail.com>
2838 * source.c (print_source_lines_base): Add check for noprint.
2840 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2842 * python/python-config.py: Resync with Python 2.7 version of this
2845 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2847 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2849 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2851 * NEWS: Create a new section for the next release branch.
2852 Rename the section of the current branch, now that it has
2855 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2857 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2858 * version.in: Bump version to 7.2.50.20100707-cvs.
2860 2010-07-07 Tom Tromey <tromey@redhat.com>
2862 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2863 LOC_COMPUTED symbol.
2864 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2865 (dwarf2_loc_desc_needs_frame): Likewise.
2866 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2867 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2868 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2869 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2871 (struct dwarf2_frame_cache) <text_offset>: New field.
2872 (dwarf2_frame_cache): Set new field.
2873 (dwarf2_frame_prev_register): Update.
2874 (dwarf2_frame_sniffer): Update.
2875 (dwarf2_frame_base_sniffer): Update.
2876 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2878 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2879 Thiago Jung Bauermann <bauerman@br.ibm.com>
2881 Support for hw accelerated condition watchpoints in booke powerpc.
2883 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2884 and move to eval.c. Change callers.
2885 (insert_bp_location): Pass watchpoint condition in
2886 target_insert_watchpoint.
2887 (remove_breakpoint_1) Pass watchpoint condition in
2888 target_remove_watchpoint.
2889 (watchpoint_locations_match): Call
2890 target_can_accel_watchpoint_condition.
2891 * eval.c: Include wrapper.h.
2892 (fetch_subexp_value): Moved from breakpoint.c.
2893 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2895 (can_use_watchpoint_cond_accel): New function.
2896 (calculate_dvc): Likewise.
2897 (num_memory_accesses): Likewise.
2898 (check_condition): Likewise.
2899 (ppc_linux_can_accel_watchpoint_condition): Likewise
2900 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2901 check_condition and calculate_dvc.
2902 (ppc_linux_remove_watchpoint): Likewise.
2903 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2904 ppc_linux_can_accel_watchpoint_condition
2905 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2907 (debug_to_remove_watchpoint): Likewise.
2908 (debug_to_can_accel_watchpoint_condition): New function.
2909 (update_current_target): Set to_can_accel_watchpoint_condition.
2910 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2911 * target.h: Add opaque declaration for struct expression.
2912 (struct target_ops) <to_insert_watchpoint>,
2913 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2914 <to_can_accel_watchpoint_condition>: New member.
2915 condition. Update all callers and implementations.
2916 (target_can_accel_watchpoint_condition): New macro.
2917 * value.c (free_value_chain): New function.
2918 * value.h (fetch_subexp_value): New prototype.
2919 (free_value_chain): Likewise.
2921 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2923 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2924 from gdbarch_core_regset_sections also for .reg if present.
2926 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2927 section size for .reg.
2928 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2929 (ppc_linux_vmx_regset_sections): Likewise.
2930 (ppc_linux_fp_regset_sections): Likewise.
2931 (ppc64_linux_vsx_regset_sections): New variable.
2932 (ppc64_linux_vmx_regset_sections): Likewise.
2933 (ppc64_linux_fp_regset_sections): Likewise.
2934 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2935 for current word size.
2937 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2939 * server.c (myresume): Make static.
2941 2010-07-06 Tom Tromey <tromey@redhat.com>
2943 * configure, config.in: Rebuild.
2944 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2945 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2947 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2949 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2952 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2954 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2955 * gdbtypes.c (floatformats_ieee_half): New variable.
2956 * doublest.c (floatformat_from_length): Set format to
2957 gdbarch_half_format if length matches.
2958 * gdbarch.sh (half_bit): New architecture method.
2959 (half_format): Likewise.
2960 * gdbarch.h: Regenerate.
2961 * gdbarch.c: Likewise.
2963 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 Joel Brobecker <brobecker@adacore.com>
2966 Fix re-run of PIE executable, PR shlibs/11776.
2967 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2968 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2970 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 Joel Brobecker <brobecker@adacore.com>
2973 * auxv.c (memory_xfer_auxv): Update attach comment.
2974 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2975 svr4_relocate_main_executable.
2976 (svr4_solib_create_inferior_hook): Make the call to
2977 svr4_relocate_main_executable unconditional.
2979 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 Joel Brobecker <brobecker@adacore.com>
2982 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2984 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2985 Joel Brobecker <brobecker@adacore.com>
2987 Fix attaching to PIEs prelinked on the disk after the process was
2989 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2990 Verify it against bfd_get_arch_size. Try to match arbitrary
2991 displacement for the phdrs comparison.
2993 2010-07-02 Tom Tromey <tromey@redhat.com>
2996 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2997 value as optimized-out.
2999 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3000 Thiago Jung Bauermann <bauerman@br.ibm.com>
3002 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3003 represent?" question in comment. Change comment to a proper sentence.
3005 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3007 * c-valprint.c (c_val_print): Fix printing of character vectors.
3009 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3011 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3012 create_breakpoint prototype.
3014 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3016 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3017 usefulness suggestion of multiple breakpoints at same location.
3019 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3021 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3023 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3025 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3026 (loclist_tracepoint_var_ref): Handle optimized out values.
3028 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3030 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3031 unnecessary space in string.
3032 * filesystem.c (_initialize_filesystem): Ditto.
3033 * frame.c (_initialize_frame): Ditto.
3034 * infcmd.c (step_once): Ditto.
3035 * infrun.c (_initialize_infrun): Ditto.
3036 * linux-nat.c (linux_child_follow_fork): Ditto.
3037 * maint.c (maintenance_deprecate): Ditto.
3038 * memattr.c (_initialize_mem): Ditto.
3039 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3040 * monitor.c (monitor_open): Ditto.
3041 * procfs.c (procfs_xfer_memory): Ditto.
3042 * reverse.c (bookmarks_info): Ditto.
3043 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3044 * stack.c (_initialize_stack): Ditto.
3045 * tracepoint.c (_initialize_tracepoint): Ditto.
3046 * xtensa-tdep.c (xtensa_supply_gregset,
3047 xtensa_regset_from_core_section): Ditto.
3049 2010-07-01 Tom Tromey <tromey@redhat.com>
3051 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3053 * value.c (value_entirely_optimized_out): Invert result. Update
3054 for new function name.
3056 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3058 Static tracepoints support.
3060 * NEWS: Mention new support for static tracepoints.
3061 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3062 qXfer:statictrace:read.
3063 (New features in the GDB remote stub, GDBserver): Mention static
3064 tracepoints support using an UST based backend.
3065 (New commands): Mention "info static-tracepoint-markers" and
3067 * breakpoint.c (is_marker_spec): New.
3068 (is_tracepoint): Handle static tracepoints.
3069 (validate_commands_for_breakpoint): Static tracepoints can't do
3071 (static_tracepoints_here): New.
3072 (bpstat_what): Handle static tracepoints.
3073 (print_one_breakpoint_location, allocate_bp_location, mention):
3075 (create_breakpoint_sal): Ditto.
3076 (decode_static_tracepoint_spec): New.
3077 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3078 `type_wanted'. Adjust. Handle static tracepoint marker
3080 (break_command_1): Adjust.
3081 (update_static_tracepoint): New.
3082 (update_breakpoint_locations): Handle static tracepoints.
3083 (breakpoint_re_set_one): Handle static tracepoint marker
3085 (disable_command, enable_command): Handle static tracepoints.
3086 (trace_command, ftrace_command): Adjust.
3087 (strace_command): New.
3088 (create_tracepoint_from_upload): Adjust.
3089 (save_breakpoints): Handle static tracepoints.
3090 (_initialize_breakpoint): Install the "strace" command.
3091 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3092 (struct breakpoint): New fields static_trace_marker_id and
3093 static_trace_marker_id_idx.
3094 (breakpoints_here_p): Declare.
3095 (create_breakpoint): Adjust.
3096 (static_tracepoints_here): Declare.
3097 * remote.c (struct remote_state) <static_tracepoints>: New field.
3098 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3099 (remote_static_tracepoint_marker_at): New.
3100 (remote_static_tracepoint_markers_by_strid): New.
3101 (remote_static_tracepoint_feature): New.
3102 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3103 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3104 (remote_supports_static_tracepoints): New.
3105 (remote_download_tracepoint): Download static tracepoints.
3106 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3107 remote_static_tracepoint_markers_by_strid.
3108 (_initialize_remote): Install set|show remote static-tracepoints,
3109 and set|show remote read-sdata-object commands.
3110 * target.c (update_current_target): Inherit and default
3111 to_static_tracepoint_marker_at, and
3112 to_static_tracepoint_markers_by_strid.
3113 * target.h (static_tracepoint_marker): Forward declare.
3114 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3115 (static_tracepoint_marker_p): New typedef.
3116 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3117 (struct target_ops): New fields to_static_tracepoint_marker_at and
3118 to_static_tracepoint_markers_by_strid.
3119 (target_static_tracepoint_marker_at)
3120 (target_static_tracepoint_markers_by_strid): New.
3121 * tracepoint.c: Include source.h.
3122 (validate_actionline): Handle $_sdata.
3123 (struct collection_list): New field strace_data.
3124 (add_static_trace_data): New.
3125 (clear_collection_list): Clear strace_data.
3126 (stringify_collection_list): Account for a possible static trace
3128 (encode_actions_1): Encode an $_sdata collection.
3129 (parse_tracepoint_definition): Handle static tracepoints.
3130 (parse_static_tracepoint_marker_definition): New.
3131 (release_static_tracepoint_marker): New.
3132 (print_one_static_tracepoint_marker): New.
3133 (info_static_tracepoint_markers_command): New.
3134 (sdata_make_value): New.
3135 (_initialize_tracepoint): Create the $_sdata convenience variable.
3136 Add the "info static-tracepoint-markers" command.
3137 Mention $_sdata in the "collect" command's help output.
3138 * tracepoint.h (struct static_tracepoint_marker): New.
3139 (parse_static_tracepoint_marker_definition)
3140 (release_static_tracepoint_marker): Declare.
3141 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3142 * python/py-breakpoint.c (bppy_new): Adjust.
3144 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3146 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3149 2010-06-29 Doug Evans <dje@google.com>
3152 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3153 DW_AT_external is present.
3157 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3158 create a symbol for the field and record the value.
3159 (new_symbol): Handle DW_TAG_member.
3160 * gdbtypes.c (field_is_static): Remove FIXME.
3161 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3162 only ignore LOC_CONST symbols that are enums.
3164 * dwarf2read.c: Remove trailing whitespace.
3166 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3167 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3168 (struct main_type, field loc): Delete dwarf_block.
3169 (FIELD_DWARF_BLOCK): Delete.
3170 (SET_FIELD_DWARF_BLOCK): Delete.
3171 (TYPE_FIELD_DWARF_BLOCK): Delete.
3172 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3175 2010-06-29 Hui Zhu <teawater@gmail.com>
3177 * record.c (set_record_pic_cmdlist,
3178 show_record_pic_cmdlist): New variables.
3179 (set_record_pic_command,
3180 show_record_pic_command): New functions.
3181 (record_pic_function, record_pic_line, record_pic_enum,
3182 set_record_pic_type, record_pic_hide_nofunction,
3183 record_pic_hide_nosource, record_pic_hide_same): New variables.
3184 (record_pic_fputs): New function.
3185 (function_list, node_list, edge_list): New struct.
3186 (function_list, node_list, edge_list): New variables.
3187 (record_pic_cleanups, record_pic_node,
3188 record_pic_edge, cmd_record_pic): New functions.
3189 (_initialize_record): Add new commands for record pic.
3191 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3193 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3194 ALLOCATE_CPLUS_STRUCT_TYPE.
3196 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3197 Tom Tromey <tromey@redhat.com>
3198 Thiago Jung Bauermann <bauerman@br.ibm.com>
3200 * value.c (pack_unsigned_long): New function.
3201 (value_from_ulongest): New function.
3202 * value.h (value_from_ulongest): Declare.
3203 * python/python.c (_initialize_python): Call
3204 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3205 * python/python-internal.h: Define thread_object.
3206 (gdbpy_inferiors, gdbpy_selected_thread)
3207 (frame_info_to_frame_object, create_thread_object)
3208 (find_thread_object, find_inferior_object)
3209 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3210 (gdbpy_is_value_object, get_addr_from_python): Declare.
3211 * python/py-value.c (builtin_type_upylong): Define.
3212 (convert_value_from_python): Add logic for ulongest.
3213 (gdbpy_is_value_object): New function.
3214 * python/py-utils.c (get_addr_from_python): New function.
3215 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3216 (gdbpy_selected_frame): Use PyObject over frame_info.
3217 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3219 (SUBDIR_PYTHON_SRCS): Likewise.
3220 (py-inferior.o): New Rule.
3221 (py-infthread.o): New Rule.
3222 * python/py-inferior.c: New File.
3223 * python/py-infthread.c: New File.
3225 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3227 * c-typeprint.c (c_type_print_base): For no fields check include also
3228 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3229 * dwarf2read.c (struct typedef_field_list)
3230 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3231 (dwarf2_add_typedef): New.
3232 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3233 Copy also FI.TYPEDEF_FIELD_LIST.
3234 * gdbtypes.h (struct typedef_field)
3235 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3236 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3237 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3239 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3241 * cp-namespace.c (cp_lookup_nested_type): New variable
3242 concatenated_name. Turn the current return condition into a reverse
3243 one. Call also lookup_static_symbol_aux on the constructed qualified
3245 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3246 other files into a called ...
3247 (lookup_static_symbol_aux): ... new function here.
3248 * symtab.h (lookup_static_symbol_aux): New prototype.
3249 * valops.c (value_maybe_namespace_elt): Call also
3250 lookup_static_symbol_aux if we failed otherwise.
3252 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3254 Fix PR c++/11703 and PR gdb/1448.
3255 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3258 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3260 Fix modification of cplus_struct_default.
3261 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3262 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3263 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3265 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3267 * NEWS: Add entry announcing the python directory.
3269 2010-06-28 Tom Tromey <tromey@redhat.com>
3271 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3273 2010-06-28 Doug Evans <dje@google.com>
3275 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3276 All callers updated.
3278 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3280 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3281 obstack_begin after each obstack_free.
3283 2010-06-27 Doug Evans <dje@google.com>
3285 * value.c (value_static_field): Use `switch' instead of `if'.
3286 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3288 * valops.c (search_struct_field): Fix typo in error message.
3290 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3292 * dwarf2expr.c (execute_stack_op): Place preprocessor
3293 directives at the start of the source line.
3295 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3297 * defs.h (make_command_stats_cleanup): Declare.
3298 (set_display_time): Declare.
3299 (set_display_space): Declare.
3300 * event-top.c (command_handler): Use make_command_stats_cleanup.
3301 * main.c (display_time, display_space): Move definitions to utils.c.
3302 (captured_main): Use make_command_stats_cleanup to get start-up
3304 Use set_display_time and set_display_space for processing OPT_STATISTICS
3306 * maint.c (maintenance_time_display): Use set_display_time.
3307 (maintenance_space_display): Use set_display_space.
3308 * top.c (execute_command): Remove obsolete 'maint time' code.
3309 (command_loop): Use make_command_stats_cleanup.
3310 * utils.c (struct cmd_stats): Structure for storing initial time
3312 (display_time, display_space): Move definitions here from utils.c.
3313 (set_display_time): New function.
3314 (set_display_space): New function.
3315 (make_command_stats_cleanup): New function.
3316 (report_command_stats): New auxiliary function for
3317 make_command_stats_cleanup.
3319 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3321 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3322 hosts where CORE_ADDR is long long.
3324 2010-06-25 Tom Tromey <tromey@redhat.com>
3327 * python/python.c (execute_gdb_command): Add keywords. Accept
3328 "to_string" argument.
3329 (struct restore_ui_file_closure): New.
3330 (restore_ui_file): New function.
3331 (make_cleanup_restore_ui_file): Likewise.
3332 (GdbMethods) <execute>: Update.
3334 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3336 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3337 during inferior call stack frame setup.
3339 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3341 * solib-spu.c: Include "exception.h".
3342 (ocl_program_data_key): New variable.
3343 (append_ocl_sos): New function.
3344 (ocl_enable_break): Likewise.
3345 (spu_current_sos): Call append_ocl_sos.
3346 (spu_solib_loaded): Call ocl_enable_break.
3347 (_initialize_spu_solib): Register ocl_program_data_key.
3349 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3351 * cp-support.c (reset_directive_searched): New function.
3352 (make_symbol_overload_list_using): Prevent recursive calls.
3354 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3356 * printcmd.c (print_variable_and_value): Print error message on
3359 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3361 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3363 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3365 (dwarf_expr_push): Change input type to ULONGEST.
3366 (dwarf_expr_fetch): Change return type to ULONGEST.
3367 (dwarf_expr_fetch_address): Add prototype.
3368 (dwarf2_read_address): Remove prototype.
3369 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3370 Truncate stack values to ctx->addr_size bytes.
3371 (dwarf_expr_fetch): Change return value to ULONGEST.
3372 (dwarf_expr_fetch_address): New function.
3373 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3374 when appropriate. Update for struct dwarf_expr_piece changes.
3375 (dwarf2_read_address): Remove.
3376 (unsigned_address_type): Remove.
3377 (signed_address_type): Remove.
3378 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3379 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3380 values. Perform operations on ULONGEST instead of on GDB values,
3381 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3382 values and DW_OP_deref results as unsigned integers.
3383 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3385 (write_pieced_value): Likewise.
3386 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3387 dwarf_expr_fetch when appropriate.
3388 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3389 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3390 instead of dwarf_expr_fetch when appropriate.
3392 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3394 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3396 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3398 * python/python.c (_initialize_python): Add new "constant"
3399 PYTHONDIR in gdb module. Insert this path at the head of
3400 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3401 exec its __init__.py script if it exists in that directory.
3403 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3405 * rx-tdep.c (RX_ACC_REGNUM): Define.
3406 (RX_NUM_REGS): Redefine to 26.
3407 (rx_register_name): Add register "acc". Change order of several
3408 registers. Change name of "vct" register to "fintv" to match RX
3410 (rx_register_type): Add case for RX_ACC_REGNUM.
3412 2010-06-24 Tom Tromey <tromey@redhat.com>
3414 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3416 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 Tom Tromey <tromey@redhat.com>
3419 Fix GDB startup on readonly filesystem.
3420 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3422 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3423 Pedro Alves <pedro@codesourcery.com>
3426 * breakpoint.c (handle_jit_event): New function.
3427 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3428 jit, err, table and bs_class. New variables shlib_event, jit_event,
3429 this_action and bptype. Change bs_class assignments to this_action
3430 assignments. new unhandled bptype internal error. Move here
3431 shlib_event and jit_event handling from handle_inferior_event.
3432 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3433 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3434 BPSTAT_WHAT_CHECK_JIT.
3435 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3436 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3437 (handle_inferior_event): Reinitialize frame and gdbarch after
3438 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3439 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3440 gdbarch when frame gets reinitialized.
3442 2010-06-24 Hui Zhu <teawater@gmail.com>
3444 * printcmd.c (ui_printf): New function.
3445 (printf_command): Call ui_printf.
3446 (_initialize_printcmd): New command "eval".
3448 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3450 * infrun.c (handle_inferior_event): Handle presence of single-step
3451 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3452 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3453 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3454 * breakpoint.c (detach_single_step_breakpoints): New function.
3455 (detach_breakpoints): Call it.
3456 (cancel_single_step_breakpoints): New function.
3457 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3459 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3460 (spu_gdbarch_init): Install it.
3462 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3464 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3465 * configure: Regenerate.
3467 2010-06-22 Hui Zhu <teawater@gmail.com>
3469 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3470 (i386_process_record): Ditto.
3471 * record.c (record_memory_query): New variable.
3472 (_initialize_record): New command "set record memory-query".
3473 * record.h (record_memory_query): New extern.
3475 2010-06-21 Doug Evans <dje@google.com>
3477 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3478 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3479 (i386_syscall_p): Change type of lengthp to int.
3480 (i386_displaced_step_fixup): Handle kernels that run one past a
3482 * i386-linux-tdep.c (i386_linux_init_abi): Use
3483 i386_displaced_step_copy_insn instead of
3484 simple_displaced_step_copy_insn.
3486 2010-06-21 Tom Tromey <tromey@redhat.com>
3488 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3489 (dwarf_type_encoding_name): Likewise.
3491 2010-06-21 Tom Tromey <tromey@redhat.com>
3493 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3494 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3495 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3496 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3497 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3498 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3499 * dwarf2read.c (tag_type_to_type): Create a new error type on
3501 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3502 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3504 2010-06-21 Michael Snyder <msnyder@vmware.com>
3506 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3507 not add_abbrev_prefix_cmd, for "enable breakpoints".
3509 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3511 * dwarf2loc.c (find_location_expression): Add relocation offset
3512 to base-address-selection entry base addresses. Read addresses
3513 (and offsets) as signed/unsigned integers, depending on the
3514 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3515 (loclist_describe_location): Likewise.
3516 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3517 unsigned integer. Do not call dwarf2_read_address.
3518 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3520 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3522 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3523 value instead of hard-coded SPU_LS_SIZE.
3524 (spu_software_single_step): Likewise.
3525 * spu-tdep.h (SPU_LS_SIZE): Remove.
3527 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3529 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3530 limit on local store memory accesses.
3531 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3532 * spu-tdep.c (spu_lslr): Remove.
3533 (spu_pointer_to_address): Do not truncate addresses.
3534 (spu_integer_to_address): Likewise.
3535 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3536 * spu-tdep.h: Add comments.
3537 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3538 (SPU_OVERLAY_LMA): Define.
3540 2010-06-18 Stan Shebs <stan@codesourcery.com>
3542 * osdata.c (get_osdata): Warn separately if target does not report
3544 (info_osdata_command): Allow empty type, report error if target
3545 does not return available types of OS data.
3546 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3547 types if no annex supplied.
3549 * thread.c (thread_id_make_value): Make a value representing the
3551 (_initialize_thread): Create $_thread.
3553 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3555 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3556 last local variable declaration. No real code change.
3558 2010-06-17 Tom Tromey <tromey@redhat.com>
3560 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3561 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3564 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3565 Jan Kratochvil <jan.kratochvil@redhat.com>
3567 * breakpoint.c: Include parser-defs.h.
3568 (watchpoint_exp_is_const): New function.
3569 (watch_command_1): Call watchpoint_exp_is_const to check
3570 if the expression is constant.
3572 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3574 * configure.ac: Check for RDYNAMIC also for cross builds.
3575 * configure: Regenerate.
3577 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3579 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3580 (SFILES): Remove solib-null.c, add solib-target.c.
3581 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3582 (ALLDEPFILES): Remove solib-target.c.
3583 * solib-target.c (_initialize_solib_target): Set
3584 current_target_so_ops to solib_target_so_ops if not already set.
3585 * solib-null.c: Delete.
3587 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3589 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3592 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3594 * cp-valprint.c (cp_print_static_field): Members of
3595 dont_print_stat_array_obstack are of type "struct type *".
3596 (_initialize_cp_valprint): Likewise.
3598 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3600 * frame.c (frame_register_unwind): Do not access contents
3601 of "optimized out" unwound register value.
3603 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3605 * ada-lang.h (ada_print_type): Make varstring const.
3606 * ada-typeprint.c (print_func_type): Make name const.
3607 (ada_print_type): Make varstring const.
3608 * c-lang.h (c_print_type): Make varstring const.
3609 * c-typeprint.c (c_print_type): Likewise.
3610 * f-lang.h (f_print_type): Likewise.
3611 * f-typeprint.c (f_print_type): Likewise.
3612 * jv-lang.h (java_print_type): Likewise.
3613 * jv-typeprint.c (java_print_type): Likewise.
3614 * language.c (unk_lang_print_type): Likewise.
3615 * language.h (struct language_defn) <la_print_type>: Likewise.
3616 * m2-lang.h (m2_print_type): Likewise.
3617 * m2-typeprint.c (m2_print_type): Likewise.
3618 * p-lang.h (pascal_print_type): Likewise.
3619 * p-typeprint.c (pascal_print_type): Likewise.
3621 2010-06-11 Stan Shebs <stan@codesourcery.com>
3623 Add per-operation permission flags.
3625 * target.h (struct target_ops): New method to_set_permissions.
3626 (target_set_permissions): New macro.
3627 (target_insert_breakpoint): Change macro to function.
3628 (target_remove_breakpoint): Ditto.
3629 (target_stop): Ditto.
3630 (may_write_registers): Declare.
3631 (may_write_memory): Declare.
3632 (may_insert_breakpoints): Declare.
3633 (may_insert_tracepoints): Declare.
3634 (may_insert_fast_tracepoints): Declare.
3635 (may_stop): Declare.
3636 * target.c (may_write_registers, may_write_registers_1): New globals.
3637 (may_write_memory, may_write_memory_1): New globals.
3638 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3639 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3640 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3642 (may_stop, may_stop_1): New global.
3643 (target_xfer_partial): Test for write permission.
3644 (target_store_registers): Ditto.
3645 (target_insert_breakpoint): New function.
3646 (target_remove_breakpoint): New function.
3647 (target_stop): New function.
3648 (_initialize_targets): Add new set/show variables.
3649 (set_write_memory_permission): New function.
3650 (update_target_permissions): New function.
3651 (set_target_permissions): New function.
3652 (update_current_target): Default to_set_permissions.
3653 (_initialize_targets): Use new globals and setter function.
3654 * tracepoint.c (start_tracing): Test for permission.
3655 * inferior.h (update_observer_mode): Declare.
3656 * infrun.c (non_stop_1): Define earlier.
3657 (observer_mode, observer_mode_1): New globals.
3658 (set_observer_mode, show_observer_mode): New functions.
3659 (update_observer_mode): New function.
3660 (_initialize_infrun): Define "set observer" command.
3661 * remote.c (PACKET_QAllow): New optional packet.
3662 (remote_protocol_features): Add QAllow.
3663 (remote_set_permissions): New function.
3664 (remote_start_remote): Call it.
3665 (init_remote_ops): Add it to target vector.
3666 (_initialize_remote): Add config command for QAllow.
3668 2010-06-11 Tom Tromey <tromey@redhat.com>
3670 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3671 DW_AT_vtable_elem_location even when GCC extension is seen.
3673 2010-06-11 Tom Tromey <tromey@redhat.com>
3675 PR gdb/9977, PR exp/11636:
3676 * value.h (value_offset): Update.
3677 (struct lval_funcs) <check_validity>: New field.
3678 <copy_closure>: Make argument const.
3679 (value_computed_closure): Update.
3680 (value_contents_for_printing): Declare.
3681 (value_bits_valid): Likewise.
3682 (val_print): Likewise.
3683 (set_value_component_location): Update.
3684 (value_entirely_optimized_out): Declare.
3685 * value.c (value_offset): Argument now const.
3686 (require_not_optimized_out): New function.
3687 (value_contents_for_printing): New function.
3688 (value_contents_all): Call require_not_optimized_out.
3689 (value_contents): Likewise.
3690 (value_bits_valid): New function.
3691 (value_computed_closure): Argument now const.
3692 (set_value_component_location): Make 'whole' argument const.
3693 (value_entirely_optimized_out): New function.
3694 (value_bitsize): Argument now 'const'.
3695 (value_bitpos): Likewise.
3696 (value_type): Likewise.
3697 * valprint.h (val_print_array_elements): Update.
3698 * valprint.c (val_print): Add 'val' argument. Use
3699 valprint_check_validity.
3700 (valprint_check_validity): New function.
3701 (value_check_printable): Use value_entirely_optimized_out.
3702 (common_val_print): Update.
3703 (value_print): Likewise.
3704 (val_print_array_elements): Add 'val' argument.
3705 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3706 value_bits_valid. Reinit frame cache for lval_computed.
3707 * sh64-tdep.c (sh64_do_register): Update.
3708 * scm-valprint.c (scm_val_print): Add 'val' argument.
3709 * scm-lang.h (scm_val_print): Update.
3710 * python/python.h (apply_val_pretty_printer): Update.
3711 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3712 argument. Call set_value_component_location.
3713 * printcmd.c (print_scalar_formatted): Update.
3714 * p-valprint.c (pascal_val_print): Add 'val' argument.
3715 (pascal_object_print_value_fields): Likewise.
3716 (pascal_object_print_value): Likewise.
3717 (pascal_object_print_static_field): Update.
3718 * p-lang.h (pascal_val_print): Update.
3719 (pascal_object_print_value_fields): Update.
3720 * mt-tdep.c (mt_registers_info): Update.
3721 * mi/mi-main.c (get_register): Update.
3722 (mi_cmd_data_evaluate_expression): Use common_val_print.
3723 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3724 (m2_print_unbounded_array): Likewise.
3725 (m2_val_print): Likewise.
3726 * m2-lang.h (m2_val_print): Update.
3727 * language.h (struct language_defn) <la_val_print>: Add 'val'
3729 (LA_VAL_PRINT): Likewise.
3730 * language.c (unk_lang_val_print): Add 'val' argument.
3731 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3732 (java_val_print): Likewise.
3733 * jv-lang.h (java_val_print): Add 'val' argument.
3734 * infcmd.c (default_print_registers_info): Update.
3735 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3736 (f77_print_array): Likewise.
3737 (f_val_print): Likewise.
3738 * f-lang.h (f_val_print): Add 'val' argument.
3739 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3741 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3742 set_value_optimized_out.
3743 (write_pieced_value): Use value_bitsize and value_bitpos.
3744 <default>: Don't exit loop.
3745 (check_pieced_value_validity): New function.
3746 (pieced_value_funcs): Reference check_pieced_value_validity,
3747 check_pieced_value_invalid.
3748 (copy_pieced_value_closure): Update.
3749 (check_pieced_value_bits): New function.
3750 (check_pieced_value_invalid): New function.
3751 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3752 (d_val_print): Likewise.
3753 * d-lang.h (d_val_print): Update.
3754 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3755 (cp_print_value_fields_rtti): Likewise.
3756 (cp_print_value): Likewise.
3757 (cp_print_static_field): Update.
3758 * c-valprint.c (c_val_print): Add 'val' argument.
3759 (c_value_print): Update.
3760 * c-lang.h (c_val_print): Update.
3761 (cp_print_value_fields): Likewise.
3762 (cp_print_value_fields_rtti): Likewise.
3763 * ada-valprint.c (struct ada_val_print_args): Remove.
3764 (val_print_packed_array_elements): Add 'val' argument.
3765 (ada_val_print): Likewise. Rewrite.
3766 (ada_val_print_stub): Remove.
3767 (ada_val_print_array): Add 'val' argument.
3768 (ada_val_print_1): Likewise.
3769 (print_variant_part): Likewise.
3770 (ada_value_print): Update.
3771 (print_record): Add 'val' argument.
3772 (print_field_values): Likewise.
3773 * ada-lang.h (ada_val_print): Update.
3775 2010-06-11 Tom Tromey <tromey@redhat.com>
3777 * vec.h (VEC_cleanup): New macro.
3778 (DEF_VEC_ALLOC_FUNC_I): Update.
3779 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3780 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3781 * dwarf2loc.c (struct axs_var_loc): Remove.
3782 (unimplemented): New function.
3783 (translate_register): Likewise.
3784 (access_memory): Likewise.
3785 (compile_dwarf_to_ax): Likewise.
3786 (dwarf2_tracepoint_var_loc): Remove.
3787 (dwarf2_tracepoint_var_access): Likewise.
3788 (dwarf2_tracepoint_var_ref): Likewise.
3789 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3790 (loclist_tracepoint_var_ref): Likewise.
3791 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3792 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3793 require_composition. No longer static.
3794 (execute_stack_op): Update.
3795 * ax-gdb.h (trace_kludge): Declare.
3797 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3799 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3800 (should_be_inserted): Return zero also on NULL OWNER.
3801 (breakpoint_program_space_exit): New OWNER comment.
3802 (insert_breakpoint_locations): Extend comment for OWNER.
3803 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3804 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3806 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3807 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3808 (bpstat_check_location): New assert on OWNER.
3809 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3810 and B initializations to the code block. New assert on them.
3811 (print_one_breakpoint_location): New OWNER comment.
3812 (watchpoint_locations_match): Assert on OWNER.
3813 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3814 initializations to the code block. New assert on OWNER.
3815 (set_breakpoint_location_function): New assert on OWNER.
3816 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3817 (bp_location_compare, update_global_location_list)
3818 (update_global_location_list): New OWNER comment.
3820 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3822 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3824 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3826 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3827 (lin_thread_get_thread_signals): Remove prototype.
3828 (GET_THREAD_SIGNALS): Remove.
3829 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3830 * linux-thread-db.c (check_thread_signals): Directly call
3831 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3833 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3835 * gregset.h (GDB_FPXREGSET_T): Remove.
3836 (gdb_fpxregset_t): Likewise.
3837 (supply_fpxregset): Remove prototype.
3838 (fill_fpxregset): Likewise.
3839 * i386-linux-nat.c (supply_fpxregset): Remove.
3840 (fill_fpxregset): Likewise.
3841 (fetch_fpxregs): Inline supply_fpxregset call.
3842 (store_fpxregs): Inline fill_fpxregset call.
3844 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3845 * config/i386/nm-linux.h: Remove file.
3847 2010-06-09 Michael Snyder <msnyder@vmware.com>
3849 * target.c (update_current_target): Fix spelling error in comment.
3850 (target_mourn_inferior): Fix spelling error in error message.
3852 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3854 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3855 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3857 2010-06-08 Michael Snyder <msnyder@vmware.com>
3859 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3861 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3863 * configure.ac <"${have_libpython}" != no>: New workaround of
3865 * configure: Regenerate.
3867 2010-06-08 Hui Zhu <teawater@gmail.com>
3869 * record.c (record_wait): Move signal out of replay code.
3871 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * dwarf2-frame.c (no_dwarf_call): New function.
3875 (execute_stack_op): Set CTX->DWARF_CALL.
3876 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3877 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3878 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3879 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3880 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3881 (needs_frame_dwarf_call): New function.
3882 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3883 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3884 Update the comment. Move variables die, offset and error call to ...
3885 (follow_die_ref): ... a new function.
3886 (dwarf2_fetch_die_location_block): New function.
3887 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3889 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3892 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3893 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3894 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3896 (struct needs_frame_baton): New field per_cu.
3897 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3898 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3900 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3902 * cp-support.c (make_symbol_overload_list_namespace): Only search
3903 static and global blocks.
3904 (make_symbol_overload_list_block): New function.
3905 (make_symbol_overload_list): Separate namespace search from block
3907 (make_symbol_overload_list_qualified): Use
3908 make_symbol_overload_list_block.
3910 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3912 * value.h: Created oload_search_type enum.
3913 (find_overload_match): Use oload_search_type enum.
3914 * valops.c (find_overload_match): Support combined member and
3916 * eval.c (evaluate_subexp_standard): Calls to
3917 find_overload_match now use oload_search_type enum.
3918 (oload_method_static): Verify index is a proper value.
3919 * valarith.c (value_user_defined_cpp_op): Search for and handle
3920 both member and non-member operators.
3921 (value_user_defined_cpp_op): New function.
3922 (value_user_defined_op): New function.
3923 (value_x_unop): Use value_user_defined_op.
3924 (value_x_binop): Ditto.
3925 * cp-support.c (make_symbol_overload_list_using): Added block
3927 Add check for namespace aliases and imported declarations.
3929 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3931 * breakpoint.h (owner): Extend the comment.
3933 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 Clear stale specific bp_location from former whole breakpoint.
3936 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3938 (free_bp_location): ... here. Rename there the called function to
3939 bpstat_remove_bp_location_callback.
3940 (bpstat_remove_breakpoint_callback): Rename to ...
3941 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3942 to struct bp_location. Change the called function to
3943 bpstat_remove_bp_location. Create new declaration for the function.
3944 (bpstat_remove_breakpoint): Rename to ...
3945 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3946 code for the new parameter type.
3948 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3950 * README: Make version-agnostic.
3952 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3954 Fix duplicate types for single DIE.
3955 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3957 (read_array_type): Remove type initialization. Recheck get_die_type
3958 after initial die_type. Move set_die_type before set_descriptive_type.
3959 (read_set_type): New variable domain_type. Recheck get_die_type after
3960 initial die_type. Move attr initialization later.
3961 (read_tag_pointer_type, read_tag_reference_type): New variable
3962 target_type. Recheck get_die_type after initial die_type.
3963 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3964 die_type and die_containing_type.
3965 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3966 Recheck get_die_type after initial die_type.
3967 (read_subrange_type): Recheck get_die_type after initial die_type.
3968 Move set_die_type before set_descriptive_type.
3969 (set_die_type): Extend the function comment. Call complaint if DIE has
3970 some type already set.
3972 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3974 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3975 for current naming of thread groups (iN, not N).
3977 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3979 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3980 * parse.c (operator_length): Likewise.
3981 (operator_length_standard): Likewise.
3982 * parser-defs.h (operator_length): Likewise.
3983 (operator_length_standard): Likewise.
3984 (struct exp_descriptor <operator_length>): Likewise.
3986 2010-06-04 Doug Evans <dje@google.com>
3988 Add support for enabling/disabling individual pretty-printers.
3989 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3990 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3991 * python/python.c (gdbpy_enabled_cst): Define.
3992 (_initialize_python): Initialize gdbpy_enabled_cst.
3995 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3997 * breakpoint.c (update_global_location_list): Fix comment typo.
3999 2010-06-04 Hui Zhu <teawater@gmail.com>
4001 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4003 2010-06-03 Doug Evans <dje@google.com>
4005 * configure.ac: Don't fail if python is unusable when
4006 configured with --with-python=auto.
4007 * configure: Regenerate.
4009 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4011 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4013 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4015 * valprint.h (get_array_bounds): Change low and high parameter types
4017 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4019 (val_print_array_elements): Adapt to change above.
4020 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4021 * p-valprint.c (pascal_val_print): Likewise.
4023 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4025 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4026 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4029 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 Support DW_TAG_module as separate namespaces.
4032 * dwarf2read.c (typename_concat): New parameter physname.
4033 (read_module_type): New function and declaration.
4034 (scan_partial_symbols): Scan also DW_TAG_module children.
4035 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4036 to typename_concat backward compatible physname value 0.
4037 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4038 backward compatible physname value 0.
4039 (add_partial_module, read_module): Remove FIXME comment.
4040 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4041 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4042 DIEs under DW_TAG_module.
4043 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4044 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4045 && physname and return there instead of just setting NAME. Extend
4046 the main block for language_fortran. Pass physname parameter to the
4047 typename_concat call.
4048 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4049 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4050 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4051 missing from SYMBOL_SET_NAMES in the language_fortran case.
4052 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4054 (read_type_die) <DW_TAG_module>: New.
4055 (MAX_SEP_LEN): Increase to 7.
4056 (typename_concat): New parameter physname. New variable lead. Support
4057 also language_fortran.
4058 * f-exp.y (yylex): Consider : also as a symbol name character class.
4059 * f-lang.c: Include cp-support.h.
4060 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4061 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4062 f_word_break_characters and f_make_symbol_completion_list.
4063 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4064 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4065 * symtab.c (symbol_init_language_specific): Support language_fortran.
4066 (symbol_find_demangled_name): New comment on language_fortran.
4067 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4068 for language_fortran.
4069 (lookup_symbol_aux_local): Check imports also for language_fortran.
4070 (default_make_symbol_completion_list): Rename to ...
4071 (default_make_symbol_completion_list_break_on): ... this name. New
4072 parameter break_on, use it.
4073 (default_make_symbol_completion_list): New stub.
4074 * symtab.h (default_make_symbol_completion_list_break_on): New
4077 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4079 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4082 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4084 * dwarf2read.c (typename_concat): Add const to the variable sep.
4086 2010-06-02 Tom Tromey <tromey@redhat.com>
4088 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4089 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4090 type is const. Add 'def' argument. Add missing operators, remove
4092 (decode_locdesc): Update.
4093 (dwarf2_always_disassemble): New global.
4094 (show_dwarf2_always_disassemble): New function.
4095 (_initialize_dwarf2_read): Add always-disassemble.
4096 (dwarf2_per_cu_offset_size): New function.
4097 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4098 (piece_end_p): New function.
4099 (locexpr_describe_location_piece): Replace 'size' argument with
4100 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4101 some constants. Remove errors.
4102 (disassemble_dwarf_expression): New function.
4103 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4104 Add 'offset_size' argument.
4105 (loclist_describe_location): Change output formatting.
4106 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4108 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4110 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4111 anonymous type case.
4113 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4115 * dwarf2read.c (read_subrange_type): Handle missing base type
4116 according to Dwarf-2 specifications.
4118 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4120 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4122 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4123 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4124 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4125 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4126 UNOP_CHMAX, UNOP_CHMIN.
4127 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4128 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4129 UNOP_CHMIN>: Remove opcodes.
4131 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4133 * dwarf2read.c (read_func_scope): Do not complain for
4134 external function if bounds are not found.
4136 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4138 * NEWS: Mention gdbserver fast tracepoints support.
4140 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4142 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4144 (windows_set_console_info): New function.
4145 (windows_create_inferior): Call windows_set_console_info
4146 if NEW_CONSOLE is true.
4147 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4148 (_initialize_loadable): Initialize GetConsoleFontSize and
4149 GetCurrentConsoleFont.
4151 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4153 * Makefile.in (RDYNAMIC): New.
4154 (SFILES): Add proc-service.list.
4155 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4156 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4157 * config/arm/linux.mh: Likewise.
4158 * config/i386/linux.mh: Likewise.
4159 * config/i386/linux64.mh: Likewise.
4160 * config/ia64/linux.mh: Likewise.
4161 * config/m32r/linux.mh: Likewise.
4162 * config/m68k/linux.mh: Likewise.
4163 * config/mips/linux.mh: Likewise.
4164 * config/pa/linux.mh: Likewise.
4165 * config/powerpc/linux.mh: Likewise.
4166 * config/powerpc/ppc64-linux.mh: Likewise.
4167 * config/s390/s390.mh: Likewise.
4168 * config/sparc/linux.mh: Likewise.
4169 * config/sparc/linux64.mh: Likewise.
4170 * config/xtensa/linux.mh: Likewise.
4171 * configure.ac: New RDYNAMIC on native host and GCC.
4172 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4173 * configure: Regenerate.
4174 * proc-service.list: New.
4176 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4178 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4181 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 * linux-nat.c (linux_nat_wait_1): Do not call
4184 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4185 TARGET_WAITKIND_SIGNALLED.
4187 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4189 * ada-lang.c (ada_inferior_data): New struct.
4190 (ada_inferior_data): New static global.
4191 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4192 (ada_get_tsd_type): New functions.
4193 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4194 to look the tsd type up.
4195 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4196 event. Set ada_inferior_data.
4198 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4200 * remote.c (unpack_varlen_hex): Remove forward declaration.
4201 (remote_console_output): Make static, and add forward declaration.
4202 * remote.h: Drop FIXME comment.
4203 (unpack_varlen_hex): Declare.
4204 (remote_console_output, remote_cisco_objfile_relocate)
4205 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4206 Delete declarations.
4207 * tracepoint.c: Include "remote.h".
4208 (unpack_varlen_hex): Delete declaration.
4210 2010-05-27 Tom Tromey <tromey@redhat.com>
4212 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4213 (allocate_piece_closure): Initialize refc.
4214 (copy_pieced_value_closure): Use refc.
4215 (free_pieced_value_closure): Likewise.
4217 2010-05-27 Tom Tromey <tromey@redhat.com>
4219 * arm-tdep.c (push_stack_item): 'contents' now const.
4220 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4221 value_contents_writeable. Introduce new temporary.
4223 2010-05-27 Tom Tromey <tromey@redhat.com>
4225 * findcmd.c (parse_find_args): Use value_contents, not
4228 2010-05-27 Tom Tromey <tromey@redhat.com>
4230 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4231 const. Use value_contents, not value_contents_writeable.
4233 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4235 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4236 by call to value_contents.
4238 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4240 * MAINTAINERS: Add myself for write after approval privileges.
4242 2010-05-26 Doug Evans <dje@google.com>
4244 Allow python to find its files if moved from original location.
4245 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4246 (GDB_AC_WITH_DIR): Call it.
4247 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4248 python installation directory.
4249 * config.in: Regenerate.
4250 * configure: Regenerate.
4251 * defs.h (python_libdir): Declare.
4252 * main.c (python_libdir): Define.
4253 (captured_main): Initialize python_libdir.
4254 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4255 call Py_SetProgramName to make sure python can find its libraries
4258 * configure.ac: Try to use python's distutils to fetch compilation
4260 * configure: Regenerate.
4261 * python/python-config.py: New file.
4263 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4265 * ser-tcp.c (net_open): Check error return from socket() call by its
4266 equality to -1 not by it being negative.
4267 (net_close): Likewise.
4269 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4271 * NEWS: Mention the `qRelocInsn' feature.
4272 * gdbarch.sh (relocate_instruction): New.
4273 * amd64-tdep.c (rip_relative_offset): New.
4274 (append_insns): New.
4275 (amd64_relocate_instruction): New.
4276 (amd64_init_abi): Install it.
4277 * i386-tdep.c (append_insns): New.
4278 (i386_relocate_instruction): New.
4279 (i386_gdbarch_init): Install it.
4280 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4281 * gdbarch.h, gdbarch.c: Regenerate.
4283 2010-05-26 Tom Tromey <tromey@redhat.com>
4285 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4286 (struct dwarf2_loclist_baton) <data>: Likewise.
4287 * dwarf2loc.c (find_location_expression): Constify return type.
4288 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4289 (dwarf2_loc_desc_needs_frame): Likewise.
4290 (loclist_read_variable): Constify.
4291 (loclist_describe_location): Likewise.
4292 (loclist_tracepoint_var_ref): Likewise.
4294 2010-05-25 Tom Tromey <tromey@redhat.com>
4296 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4297 (dwarf_expr_frame_base_1): Likewise.
4298 (read_pieced_value): Update.
4299 (needs_frame_frame_base): Constify.
4300 (dwarf2_tracepoint_var_loc): Likewise.
4301 (dwarf2_tracepoint_var_access): Likewise.
4302 (locexpr_describe_location_piece): Likewise.
4303 (locexpr_describe_location_1): Likewise.
4304 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4307 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4308 (dwarf_expr_eval, read_uleb128, read_sleb128)
4309 (dwarf2_read_address): Update.
4310 * dwarf2expr.c (dwarf_expr_eval): Constify.
4311 (read_uleb128): Likewise.
4312 (read_sleb128): Likewise.
4313 (dwarf2_read_address): Likewise.
4314 (require_composition): Likewise.
4315 (execute_stack_op): Likewise.
4316 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4318 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4320 (no_get_frame_base): Constify.
4321 (execute_stack_op): Likewise.
4322 (execute_cfa_program): Likewise.
4323 (read_encoded_value): Likewise.
4325 2010-05-25 Doug Evans <dje@google.com>
4327 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4329 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4330 * event-loop.c: ... here.
4331 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4332 `error' for clarity.
4333 (tui_getc): Pass correct value for `error' parameter to
4334 tui_readline_output.
4336 Add python gdb.GdbError and gdb.string_to_argv.
4337 * NEWS: Document them.
4338 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4339 the exception is gdb.GdbError. Print a second traceback if there's
4340 an error computing the error message.
4341 (gdbpy_string_to_argv): New function.
4342 * python/py-utils.c (gdbpy_obj_to_string): New function.
4343 (gdbpy_exception_to_string): New function.
4344 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4345 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4346 (gdbpy_gdberror_exc): Declare.
4347 * python/python.c (gdbpy_gdberror_exc): New global.
4348 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4350 (GdbMethods): Add string_to_argv.
4352 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4354 * windows-nat.c (display_selector): Call GetLastError to give better
4355 failure explanation.
4357 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4359 * config.in: Regenerate.
4361 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 * target.c (push_target): Return only void. Remove the return value
4366 * target.h (push_target): Return only void.
4368 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4370 Update gnulib from latest git.
4371 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4373 * gnulib/memcmp.c: Removed.
4374 * gnulib/memchr.valgrind: New.
4375 * gnulib/stddef.in.h: New.
4376 * gnulib/Makefile.am: Updated.
4377 * gnulib/memchr.c: Updated.
4378 * gnulib/memmem.c: Updated.
4379 * gnulib/stdint.in.h: Updated.
4380 * gnulib/str-two-way.h: Updated.
4381 * gnulib/string.in.h: Updated.
4382 * gnulib/wchar.in.h: Updated.
4384 * gnulib/extra/link-warning.h: Removed.
4385 * gnulib/extra/c++defs.h: New.
4386 * gnulib/extra/warn-on-use.h: New.
4387 * gnulib/extra/arg-nonnull.h: Updated.
4389 * gnulib/m4/extensions.m4: Updated.
4390 * gnulib/m4/gnulib-cache.m4: Updated.
4391 * gnulib/m4/gnulib-common.m4: Updated.
4392 * gnulib/m4/gnulib-comp.m4: Updated.
4393 * gnulib/m4/gnulib-tool.m4: Updated.
4394 * gnulib/m4/include_next.m4: Updated.
4395 * gnulib/m4/longlong.m4: Updated.
4396 * gnulib/m4/memchr.m4: Updated.
4397 * gnulib/m4/memmem.m4: Updated.
4398 * gnulib/m4/stdint.m4: Updated.
4399 * gnulib/m4/string_h.m4: Updated.
4400 * gnulib/m4/memcmp.m4: Removed.
4401 * gnulib/m4/onceonly_2_57.m4: Removed.
4402 * gnulib/m4/00gnulib.m4: New.
4403 * gnulib/m4/mmap-anon.m4: New.
4404 * gnulib/m4/multiarch.m4: New.
4405 * gnulib/m4/onceonly.m4: New.
4406 * gnulib/m4/stddef_h.m4: New.
4407 * gnulib/m4/warn-on-use.m4: New.
4408 * gnulib/m4/wchar.m4: Removed.
4409 * gnulib/m4/wchar_h.m4: New.
4410 * gnulib/m4/wchar_t.m4: New.
4411 * gnulib/m4/wint_t.m4: New.
4413 * aclocal.m4: Regenerate.
4414 * config.in: Likewise.
4415 * configure: Likewise.
4416 * gnulib/Makefile.in: Likewise.
4418 2010-05-21 Tom Tromey <tromey@redhat.com>
4420 * dwarf2loc.c (extract_bits_primitive): New function.
4421 (extract_bits): Likewise.
4422 (insert_bits): Likewise.
4423 (copy_bitwise): Likewise.
4424 (read_pieced_value): Do all operations in bits.
4425 (write_pieced_value): Likewise.
4426 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4427 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4428 Always use xrealloc to resize piece array.
4429 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4430 <DW_OP_piece>: Update.
4431 <DW_OP_bit_piece>: New case.
4433 2010-05-21 Tom Tromey <tromey@redhat.com>
4435 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4436 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4437 * dwarf2expr.h (enum dwarf_value_location)
4438 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4439 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4440 (add_piece): Handle empty piece.
4441 (execute_stack_op) <DW_OP_piece>: Handle
4442 DWARF_VALUE_OPTIMIZED_OUT.
4444 2010-05-21 Tom Tromey <tromey@redhat.com>
4446 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4447 evaluate_subexp, not evaluate_subexp_with_coercion.
4449 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4451 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4454 2010-05-21 Tom Tromey <tromey@redhat.com>
4456 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4458 (write_pieced_value): Likewise.
4460 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4462 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4463 and DW_TAG_volatile_type.
4464 (new_symbol): Likewise.
4466 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4468 * p-valprint.c (pascal_val_print): Call get_array_bounds
4469 to obtain the number of elements in an array.
4471 2010-05-19 Doug Evans <dje@google.com>
4473 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4475 * python.c (source_python_script): Add comment.
4476 (source_python_script_for_objfile): Remove unnecessary call to
4479 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 Sergio Durigan Junior <sergiodj@redhat.com>
4483 * parse.c (exp_iterate): Use operator_length wrapper function.
4485 2010-05-18 Michael Snyder <msnyder@vmware.com>
4487 * ada-lang.c: White space.
4488 * ada-typeprint.c: White space.
4489 * ada-valprint.c: White space.
4490 * addrmap.c: White space.
4491 * auxv.c: White space.
4492 * ax-gdb.c: White space.
4494 2010-05-18 Hui Zhu <teawater@gmail.com>
4496 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4498 (inferior_call_waitpid): Move make_cleanup out of check.
4499 Check the return of waitpid.
4500 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4502 2010-05-17 Michael Snyder <msnyder@vmware.com>
4504 * tui/tui.c: White space.
4505 * tui/tui-data.c: White space.
4506 * tui/tui-disasm.c: White space.
4507 * tui/tui-file.c: White space.
4508 * tui/tui-interp.c: White space.
4509 * tui/tui-main.c: White space.
4510 * tui/tui-out.c: White space.
4511 * tui/tui-regs.c: White space.
4512 * tui/tui-source.c: White space.
4513 * tui/tui-stack.c: White space.
4514 * tui/tui-win.c: White space.
4515 * tui/tui-winsource.c: White space.
4517 * procfs.c: White space.
4519 * python/py-auto-load.c: White space.
4520 * python/py-block.c: White space.
4521 * python/py-breakpoint.c: White space.
4522 * python/py-cmd.c: White space.
4523 * python/py-function.c: White space.
4524 * python/py-lazy-string.c: White space.
4525 * python/py-objfile.c: White space.
4526 * python/py-param.c: White space.
4527 * python/py-prettyprint.c: White space.
4528 * python/py-progspace.c: White space.
4529 * python/py-symtab.c: White space.
4530 * python/python.c: White space.
4531 * python/py-type.c: White space.
4532 * python/py-utils.c: White space.
4533 * python/py-value.c: White space.
4535 * mi/mi-cmd-break.c: White space.
4536 * mi/mi-cmd-env.c: White space.
4537 * mi/mi-cmds.c: White space.
4538 * mi/mi-cmd-stack.c: White space.
4539 * mi/mi-cmd-var.c: White space.
4540 * mi/mi-console.c: White space.
4541 * mi/mi-getopt.c: White space.
4542 * mi/mi-interp.c: White space.
4543 * mi/mi-main.c: White space.
4544 * mi/mi-out.c: White space.
4545 * mi/mi-parse.c: White space.
4547 * cli/cli-cmds.c: White space.
4548 * cli/cli-decode.c: White space.
4549 * cli/cli-dump.c: White space.
4550 * cli/cli-interp.c: White space.
4551 * cli/cli-logging.c: White space.
4552 * cli/cli-script.c: White space.
4553 * cli/cli-setshow.c: White space.
4555 * valarith.c: White space.
4556 * valops.c: White space.
4557 * valprint.c: White space.
4558 * value.c: White space.
4559 * varobj.c: White space.
4560 * xcoffread.c: White space.
4561 * xml-support.c: White space.
4562 * xml-tdesc.c: White space.
4564 2010-05-17 Andreas Schwab <schwab@redhat.com>
4567 * c-lang.c (c_printstr): Compute real length of NUL terminated
4570 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4572 * parse.c (parse_exp_in_context): When block is not NULL, use
4573 its associated language to parse the expression instead of
4574 the current_language.
4576 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4578 * jv-lang.c (java_lookup_class): Remove commented out code.
4579 (type_from_class): Likewise.
4580 (java_op_print_tab): Remove commented-out elements.
4582 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4584 * ada-lang.c (to_fixed_range_type): The the raw index type as
4585 argument instead of the raw type name. Remove orig_type parameter.
4586 Update calls throughout.
4587 (ada_fixup_array_indexes_type): New function.
4588 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4589 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4590 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4591 Remove name parameter.
4592 (print_array_type): Add call to ada_fixup_array_indexes_type.
4593 Update calls to print_range_type.
4594 (ada_print_type): Update calls to print_range_type.
4596 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4598 * dwarf2read.c (read_set_type): Set type length if
4599 DW_AT_byte_size attribute is present.
4601 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4603 * p-valprint.c (pascal_val_print): Handle set type if range limits
4604 are undefined but size is known.
4606 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4608 * procfs.c: Reformat.
4610 2010-05-16 Michael Snyder <msnyder@vmware.com>
4612 * target.c: White space.
4613 * target-descriptions.c: White space.
4614 * target-memory.c: White space.
4615 * thread.c: White space.
4616 * top.c: White space.
4617 * tracepoint.c: White space.
4618 * trad-frame.c: White space.
4619 * tramp-frame.c: White space.
4620 * ui-file.c: White space.
4621 * ui-out.c: White space.
4622 * user-regs.c: White space.
4623 * utils.c: White space.
4625 * scm-exp.c: White space.
4626 * scm-lang.c: White space.
4627 * scm-valprint.c: White space.
4628 * sentinel-frame.c: White space.
4629 * ser-base.c: White space.
4630 * ser-go32.c: White space.
4631 * serial.c: White space.
4632 * ser-mingw.c: White space.
4633 * ser-pipe.c: White space.
4634 * ser-tcp.c: White space.
4635 * ser-unix.c: White space.
4636 * solib.c: White space.
4637 * solib-darwin.c: White space.
4638 * solib-frv.c: White space.
4639 * solib-irix.c: White space.
4640 * solib-osf.c: White space.
4641 * solib-pa64.c: White space.
4642 * solib-som.c: White space.
4643 * solib-spu.c: White space.
4644 * solib-svr4.c: White space.
4645 * solib-target.c: White space.
4646 * source.c: White space.
4647 * stabsread.c: White space.
4648 * stack.c: White space.
4649 * std-regs.c: White space.
4650 * symfile.c: White space.
4651 * symmisc.c: White space.
4652 * symtab.c: White space.
4654 2010-05-16 Michael Snyder <msnyder@vmware.com>
4656 * source.c (_initialize_source): Add "rev" as an abbreviation
4657 for the "reverse-search" command.
4659 2010-05-16 Michael Snyder <msnyder@vmware.com>
4661 * record.c: White space.
4662 * regcache.c: White space.
4663 * reggroups.c: White space.
4664 * remote-fileio.c: White space.
4665 * remote-m32r-sdi.c: White space.
4666 * remote-mips.c: White space.
4667 * remote-sim.c: White space.
4668 * remote.c: White space.
4669 (process_g_packet): Remove orphan braces.
4671 2010-05-15 Michael Snyder <msnyder@vmware.com>
4673 * parse.c: White space.
4674 * p-lang.c: White space.
4675 * posix-hdep.c: White space.
4676 * printcmd.c: White space.
4677 * progspace.c: White space.
4678 * prologue-value.c: White space.
4679 * psymtab.c: White space.
4680 * p-typeprint.c: White space.
4681 * p-valprint.c: White space.
4683 * objc-lang.c: White space.
4684 * objfiles.c: White space.
4685 * observer.c: White space.
4686 * osabi.c: White space.
4687 * osdata.c: White space.
4689 * m2-lang.c: White space.
4690 * m2-valprint.c: White space.
4691 * macrocmd.c: White space.
4692 * macroexp.c: White space.
4693 * macroscope.c: White space.
4694 * macrotab.c: White space.
4695 * main.c: White space.
4696 * maint.c: White space.
4697 * mdebugread.c: White space.
4698 * memattr.c: White space.
4699 * minsyms.c: White space.
4700 * monitor.c: White space.
4702 2010-05-14 Michael Snyder <msnyder@vmware.com>
4704 * jv-lang.c: White space.
4705 * jv-typeprint.c: White space.
4706 * jv-valprint.c: White space.
4707 * language.c: White space.
4708 * libunwind-frame.c: White space.
4709 * linespec.c: White space.
4710 * linux-nat.c: White space.
4711 * linux-record.c: White space.
4712 * linux-thread-db.c: White space.
4714 * infcall.c: White space.
4715 * inf-child.c: White space.
4716 * infcmd.c: White space.
4717 * inferior.c: White space.
4718 * inf-loop.c: White space.
4719 * inflow.c: White space.
4720 * inline-frame.c: White space.
4721 * interps.c: White space.
4723 * gcore.c: White space.
4724 * gdb.c: White space.
4725 * gdbtypes.c: White space.
4726 * gnu-nat.c: White space.
4727 * gnu-v2-abi.c: White space.
4728 * gnu-v3-abi.c: White space.
4730 * findcmd.c: White space.
4731 * findvar.c: White space.
4732 * fork-child.c: White space.
4733 * frame-base.c: White space.
4734 * frame.c: White space.
4735 * frame-unwind.c: White space.
4736 * f-valprint.c: White space.
4738 * elfread.c: White space.
4739 * environ.c: White space.
4740 * eval.c: White space.
4741 * event-loop.c: White space.
4742 * event-top.c: White space.
4743 * exceptions.c: White space.
4744 * exec.c: White space.
4745 * expprint.c: White space.
4747 * dbxread.c: White space.
4748 * dcache.c: White space.
4749 * disasm.c: White space.
4750 * doublest.c: White space.
4751 * dsrec.c: White space.
4752 * dummy-frame.c: White space.
4753 * dwarf2expr.c: White space.
4754 * dwarf2-frame.c: White space.
4755 * dwarf2loc.c: White space.
4756 * dwarf2read.c: White space.
4758 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4762 * python/py-value.c (valpy_hash): New function.
4763 (value_object_type): Register valpy_hash.
4765 2010-05-14 Hui Zhu <teawater@gmail.com>
4766 Michael Snyder <msnyder@vmware.com>
4768 * linux-fork.c (gdbthread.h): New include.
4769 (fork_info): Add parent_ptid.
4770 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4772 (delete_checkpoint_command): Call inferior_call_waitpid.
4773 (checkpoint_command): Set parent_ptid.
4775 2010-05-13 Michael Snyder <msnyder@vmware.com>
4777 * dictionary.c: Re-indent to GNU coding standard.
4779 * charset.c: White space.
4780 * c-lang.c: White space.
4781 * cli-out.c: White space.
4782 * coffread.c: White space.
4783 * complaints.c: White space.
4784 * completer.c: White space.
4785 * corefile.c: White space.
4786 * corelow.c: White space.
4787 * cp-abi.c: White space.
4788 * cp-namespace.c: White space.
4789 * cp-support.c: White space.
4790 * cp-valprint.c: White space.
4791 * c-typeprint.c: White space.
4792 * c-valprint.c: White space.
4793 * blockframe.c: White space.
4794 * breakpoint.c: White space.
4795 * buildsym.c: White space.
4796 * blockframe.c: White space.
4797 * bcache.c: White space.
4798 * gdbarch.sh: White space, add blank lines.
4799 * arch-utils.c: Ditto.
4800 * gdbarch.c: Regenerate.
4801 * frame.c: White space, add blank lines.
4802 * stack.c: White space, add blank lines.
4803 (initialize_stack): Remove long-dead code.
4805 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4808 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4809 (locexpr_read_variable, loclist_read_variable): Update the callers.
4811 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4814 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4815 Remove check of NULL returned by tag_type_to_type.
4816 (die_containing_type): Remove variable type. Remove type_die variable
4817 initialization. Remove check of NULL returned by tag_type_to_type.
4819 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4822 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4823 names of unnamed structures or unions.
4825 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4827 * procfs.c (proc_watchpoint_address): New function.
4828 (procfs_stopped_by_watchpoint): Remove useless check after
4829 find_procinfo_or_die call.
4830 (procfs_stopped_data_address): New function.
4831 (procfs_use_watchpoints): Register new watchpoint related function.
4833 2010-05-11 Tom Tromey <tromey@redhat.com>
4835 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4837 2010-05-10 Michael Snyder <msnyder@vmware.com>
4839 * utils.c: White space cleanup.
4841 2010-05-10 Tom Tromey <tromey@redhat.com>
4843 * eval.c (ptrmath_type_p): Add 'lang' argument.
4844 (evaluate_subexp_standard): Update.
4845 (evaluate_subexp_with_coercion): Update.
4846 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4848 2010-05-10 Michael Snyder <msnyder@vmware.com>
4850 * utils.c (do_fclose_cleanup) Restore local variable.
4852 2010-05-09 Doug Evans <dje@google.com>
4854 * record.c (init_record_core_ops): Rename record_core to record-core.
4856 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4858 Implement task switching on pa-hpux.
4859 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4860 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4862 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4864 * valops.c (find_overload_match): Add missing i18n markup.
4866 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4868 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4870 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4873 list for the obconcat call.
4874 * mdebugread.c (parse_symbol): Likewise.
4875 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4877 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4878 New variable ap. Remove variables len and val.
4879 * symfile.h (obconcat): Likewise for the prototype.
4881 2010-05-07 Michael Snyder <msnyder@vmware.com>
4883 * python/python.c (execute_gdb_command): Remove unused variables.
4884 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4885 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4886 Remove unused variable.
4887 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4888 (cmdpy_completer): Remove unused variable.
4889 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4890 * python/py-function.c (fnpy_call): Remove unused variable.
4891 * python/py-objfile.c (objfile_to_objfile_object):
4892 Remove unused variable.
4893 * python/py-param.c (parmpy_init): Remove unused variable.
4894 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4895 Remove unused variable.
4896 (gdbpy_default_visualizer): Remove unused variable.
4897 * python/py-progspace.c (pspace_to_pspace_object):
4898 Remove unused variable.
4899 * python/py-symtab.c (symtab_and_line_to_sal_object):
4900 Remove unused variable.
4901 * python/py-type.c (typy_template_argument):
4902 Remove unused variable.
4903 * python/py-value.c (valpy_string): Remove unused variable.
4904 (convert_value_from_python): Remove unused variables.
4906 2010-05-07 Michael Snyder <msnyder@vmware.com>
4908 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4909 and use it to compute variable 't1'.
4911 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4913 * ada-lang.c (assign_aggregate): Remove unused variable.
4915 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4918 * valops.c (find_overload_match): Handle fsym == NULL case.
4919 Add int no_adl argument.
4920 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4922 Add int no_adl argument.
4923 (find_oload_champ_namespace): Add int no_adl argument.
4924 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4926 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4927 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4928 Evaluate arguments and use them to perform ADL lookup.
4929 Pass no_adl argument to find_overload_match.
4930 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4931 * cp-support.h: Added prototype for
4932 make_symbol_overload_list_namespace.
4933 * cp-support.c (make_symbol_overload_list_namespace): New function.
4934 (make_symbol_overload_list_adl_namespace): New function.
4935 (make_symbol_overload_list_adl): New function.
4936 (make_symbol_overload_list_using): Moved code to add function to
4937 overload set to make_symbol_overload_list_namespace.
4938 * c-exp.y: create UNKNOWN_CPP_NAME token.
4939 Add parse rule for ADL functions.
4940 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4942 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4944 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4947 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4949 Implement task switching on solaris targets.
4950 * sol-thread.c (thread_db_find_thread_from_tid)
4951 (sol_get_ada_task_ptid): New functions.
4952 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4954 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4956 * remote.c (remote_query_supported_append): Use reconcat.
4957 (remote_query_supported): Install a cleanup. Use reconcat.
4959 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4961 * gdbarch.sh (qsupported): Delete.
4962 * gdbarch.h, gdbarch.c: Regenerate.
4963 * remote.c (remote_query_supported): Remove use of
4966 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4968 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4971 2010-05-06 Michael Snyder <msnyder@vmware.com>
4973 * xml-support.c (xinclude_start_include): Delete unused variable.
4974 (xml_process_xincludes): Delete unused variable.
4975 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4976 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4977 (tdesc_find_arch_register): Delete unused variable.
4978 (tdesc_use_registers): Delete unused variable.
4979 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4980 * inferior.c (print_inferior): Delete unused variable.
4981 * record.c (record_open_1): Delete unused variable.
4982 (record_restore): Delete unused variable.
4983 (cmd_record_save): Delete unused variable.
4984 * gcore.c (derive_heap_segment): Delete unused variable.
4985 (objfile_find_memory_regions): Use unused variable.
4986 * jit.c (jit_inferior_init): Delete unused variable.
4987 * progspace.c (clone_program_space): Delete unused variable.
4988 (pspace_empty_p): Delete unused variable.
4990 * frame-unwind.c (frame_unwind_find_by_frame):
4991 Delete unused variable.
4992 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4993 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4994 (method_name_from_physname): Delete unused variable.
4995 (cp_func_name): Delete unused variable.
4996 (cp_validate_operator): Delete unused variable.
4997 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4998 Delete unused variable.
4999 * trad-frame.c (trad_frame_get_prev_register):
5000 Delete unused variable.
5001 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5003 * serial.c (serial_for_fd): Delete unused variable.
5004 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5005 * top.c (execute_command): Delete unused variable.
5006 (init_main): Delete unused variable.
5007 * utils.c (do_fclose_cleanup): Delete unused variable.
5008 (do_all_inferior_continuations): Delete unused variable.
5009 (initialize_utils): Delete unused variable.
5010 (internal_problem_mode): Delete unused global.
5011 * frame.c (get_prev_frame): Delete unused global.
5012 (get_frame_locals_address): Delete unused global.
5013 (get_frame_args_address): Delete unused global.
5015 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5016 (pascal_type_print_varspec_prefix): Delete unused variable.
5017 * f-typeprint.c (f_type_print_base): Delete unused variable.
5018 (f_type_print_varspec_suffix): Delete unused variable.
5019 * m2-typeprint.c (m2_print_type): Delete unused variable.
5020 (m2_long_set): Delete unused variable.
5021 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5022 * d-valprint.c (dynamic_array_type): Delete unused variable.
5023 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5024 Delete unused variable.
5025 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5026 * m2-valprint.c (m2_val_print): Delete unused variable.
5028 * ui-out.c (ui_out_field_int): Delete unused variable.
5029 (ui_out_field_fmt_int): Delete unused variable.
5030 * varobj.c (varobj_list_children): Delete unused variable.
5031 (varobj_set_value): Delete unused variable.
5032 (install_new_value_visualizer): Delete unused variable.
5033 (varobj_set_visualizer): Delete unused variable.
5034 (varobj_update): Delete unused variable.
5035 (varobj_editable_p): Delete unused variable.
5036 (c_value_of_root): Delete unused variable.
5037 (cplus_describe_child): Delete unused variable.
5039 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5040 (decode_constrained_packed_array_type): Delete unused variable.
5041 (add_defn_to_vec): Delete unused variable.
5042 (symbol_completion_match): Delete unused variable.
5043 (value_tag_from_contents_and_address): Delete unused variable.
5044 (ada_evaluate_subexp): Delete unused variable.
5045 * c-lang.c (classify_type): Delete unused variable.
5046 * f-lang.c (f_printstr): Delete unused variable.
5047 * objc-lang.c (objc_printstr): Delete unused variable.
5048 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5049 * jv-lang.c (type_from_class): ifdef unused variable.
5050 (java_class_name_from_physname): Delete unused variable.
5051 * m2-lang.c (m2_printstr): Delete unused variable.
5053 * objfiles.c (objfile_relocate): Delete unused variable.
5054 * maint.c (_initialize_maint_cmds): Delete unused variable.
5055 * demangle.c (_initialize_demangler): Delete unused variable.
5056 * corefile.c (reopen_exec_file): Delete unused variable.
5057 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5058 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5060 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5061 * memattr.c (mem_delete): Delete unused variable.
5062 (invalidate_target_mem_regions): Delete unused variable.
5063 * mem-break.c (default_memory_insert_breakpoint):
5064 Delete unused variable.
5065 * target.c (target_get_osdata): Delete unused variable.
5066 * parse.c (length_of_subexp): Delete unused variable.
5067 (prefixify_subexp): Delete unused variable.
5068 (exp_iterate): Delete unused variable.
5069 * reverse.c (delete_bookmark_command): Delete unused variable.
5071 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5072 * macroexp.c (gather_arguments): Delete unused variable.
5073 (substitute_args): Delete unused variable.
5074 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5075 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5076 (_initialize_gdbarch): Delete unused variable.
5077 * gdbarch.c, gdbarch.h: Regenerate.
5078 * arch-utils.c (initialize_current_architecture):
5079 Delete unused variable.
5080 (_initialize_gdbarch_utils): Delete unused variable.
5081 * gdbtypes.c (make_cv_type): Delete unused variable.
5082 (make_type_with_address_space): Delete unused variable.
5084 * linespec.c (decode_compound): Delete unused variable.
5085 * dictionary.c (iterator_next_hashed): Delete unused variable.
5086 * infcall.c (call_function_by_hand): Delete unused variable.
5087 * infcmd.c (step_1): Delete unused variable.
5088 (registers_info): Delete unused variable.
5089 (attach_command): Delete unused variable.
5090 * infrun.c (follow_exec): Delete unused variable.
5091 (handle_step_into_function_backwards): Delete unused variable.
5092 (_initialize_infrun): Delete unused variable.
5093 * stack.c (parse_frame_specification_1): Delete unused variable.
5094 (frame_info): Delete unused variable.
5095 (backtrace_command_1): Delete unused variable.
5096 (catch_info): Delete unused variable.
5098 * eval.c (evaluate_subexp_standard): Delete unused variable.
5099 * valops.c (value_cast_pointers): Delete unused variable.
5100 (value_dynamic_cast): Delete unused variable.
5101 (value_array): Delete unused variable.
5102 (find_overload_match): Delete unused variable.
5103 * valarith.c (value_subscript): Delete unused variable.
5104 (value_binop): Delete unused variable.
5105 * valprint.c (_initialize_valprint): Delete unused variable.
5106 * printcmd.c (print_command_1): Delete unused variable.
5107 (address_info): Delete unused variable.
5108 (printf_command): Delete unused variable.
5110 * auxv.c (target_auxv_search): Delete unused variable.
5111 * blockframe.c (get_frame_block): Delete unused variable.
5112 * regcache.c (regcache_cpy): Delete unused variable.
5113 (regcache_cpy_no_passthrough): Delete unused variable.
5114 * charset.c (wchar_iterate): Delete unused variable.
5115 (find_charset_names): Delete unused variable.
5116 (_initialize_charset): Delete unused variable.
5117 * disasm.c (do_mixed_source_and_assembly):
5118 Delete unused variable.
5119 * source.c (set_default_source_symtab_and_line):
5120 Delete unused variable.
5121 (set_substitute_path_command): Delete unused variable.
5122 * value.c (preserve_values): Delete unused variable.
5123 (value_from_double): Delete unused variable.
5125 2010-05-05 Michael Snyder <msnyder@vmware.com>
5127 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5128 (find_last_source_symtab_from_partial): Delete unused variable.
5129 * symfile.c (place_section): Delete unused variable.
5130 (default_symfile_offsets): Delete unused variable.
5131 (get_debug_link_info): Delete unused variable.
5132 (find_separate_debug_file_by_debuglink): Delete unused variable.
5133 (add_symbol_file_command): Delete unused variable.
5134 (symfile_find_segment_sections): Delete unused variable.
5135 * symmisc.c (free_symtab): Delete unused variable.
5136 (dump_symtab_1): Delete unused variable.
5137 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5138 (find_pc_sect_symtab): Delete unused variable.
5139 (skip_prologue_using_lineinfo): Delete unused variable.
5140 (sources_info): Delete unused variable.
5141 (completion_list_add_name): Delete unused variable.
5142 (expand_line_sal): Delete unused variable.
5144 * breakpoint.c (validate_commands_for_breakpoint):
5145 Delete unused variables.
5146 (insert_catchpoint): Delete unused variable.
5147 (update_watchpoint): Delete unused variable.
5148 (insert_bp_location): Delete unused variable.
5149 (insert_breakpoint_locations): Delete unused variable.
5150 (remove_breakpoint_1): Delete unused variable.
5151 (software_breakpoint_inserted_here_p): Delete unused variable.
5152 (watchpoints_triggered): Delete unused variable.
5153 (bpstat_check_watchpoint): Delete unused variable.
5154 (bpstat_stop_status): Delete unused variable.
5155 (print_one_breakpoint_location): Delete unused variable.
5156 (allocate_bp_location): Delete unused variable.
5157 (create_breakpoint): Delete unused variable.
5158 (watch_command_1): Delete unused variable.
5159 (catch_exception_command_1): Delete unused variable.
5160 (catch_ada_exception_command): Delete unused variable.
5161 (delete_breakpoint): Delete unused variable.
5162 (breakpoint_re_set_one): Delete unused variable.
5163 (do_enable_breakpoint): Delete unused variable.
5165 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5167 * amd64-tdep.c: Include disasm.h.
5168 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5169 (amd64_insn_length): Moved to disasm.c and renamed.
5170 (fixup_riprel): Adjust.
5171 * disasm.c (do_ui_file_delete): New.
5172 (gdb_insn_length): New.
5173 (gdb_buffered_insn_length_fprintf)
5174 (gdb_buffered_insn_length_init_dis)
5175 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5177 * disasm.h (gdb_insn_length): Declare.
5178 (gdb_buffered_insn_length): Declare.
5180 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5182 * remote.c (clear_threads_parsing_context): New.
5183 (remote_threads_info): Delete unused null_cleanup. Install a
5184 cleanup to clear the threads_parsing_context in case parsing
5187 2010-05-05 Michael Snyder <msnyder@vmware.com>
5189 * c-exp.y (parse_string_or_char): Delete unused variable.
5190 (c_lex): Delete unused variable.
5191 * cp-name-parser.y (cpname_lex): Delete unused variable.
5192 * ada-exp.y (find_primitive_type): Delete unused variable.
5193 (write_var_or_type): Delete unused variable.
5194 * jv-exp.y (java_parse): Delete unused variable.
5195 (push_expression_name): Delete unused variable.
5196 * p-exp.y (pascal_lex): Delete unused variable.
5198 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5200 * remote.c (remote_threads_info): Really revert previous previous
5203 2010-05-05 Michael Snyder <msnyder@vmware.com>
5205 * elfread.c (elf_symtab_read): Delete unused variable.
5206 (find_separate_debug_file_by_buildid): Delete unused variables.
5207 (elf_symfile_read): Delete unused variable.
5209 * coffread.c (coff_symfile_read): Delete unused variables.
5211 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5212 (read_pe_exported_syms): Delete unused variable.
5214 * stabsread.c (define_symbol): Delete unused variable.
5216 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5217 (process_psymtab_comp_unit): Delete unused variable.
5218 (dwarf2_build_psymtabs_hard): Delete unused variable.
5219 (load_partial_comp_unit): Delete unused variable.
5220 (create_all_comp_units): Delete unused variable.
5221 (scan_partial_symbols): Delete unused variable.
5222 (add_partial_symbol): Delete unused variable.
5223 (add_partial_namespace): Delete unused variable.
5224 (add_partial_enumeration): Delete unused variable.
5225 (load_full_comp_unit): Delete unused variable.
5226 (process_full_comp_unit): Delete unused variable.
5227 (read_file_scope): Delete unused variable.
5228 (read_type_unit_scope): Delete unused variable.
5229 (process_structure_scope): Delete unused variable.
5230 (process_enumeration_scope): Delete unused variable.
5231 (read_tag_ptr_to_member_type): Delete unused variable.
5232 (read_typedef): Delete unused variable.
5233 (read_partial_die): Delete unused variable.
5234 (decode_locdesc): Delete unused variable.
5235 (zeroed_partial_die): Delete unused global variable.
5237 * tui/tui-interp.c (_initialize_tui_interp):
5238 Delete unused variable.
5239 * tui/tui-regs.c tui_display_registers_from):
5240 Delete unused variable.
5241 (tui_check_register_values): Delete unused variable.
5242 (tui_register_format): Delete unused variable.
5243 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5244 * tui/tui-windata.c (tui_display_data_from_line):
5245 Delete unused variables.
5246 (tui_vertical_data_scroll): Delete unused variables.
5248 2010-05-05 Michael Snyder <msnyder@vmware.com>
5250 * remote.c (remote_threads_info): Revert questionable part of
5251 the previous change.
5253 2010-05-05 Michael Snyder <msnyder@vmware.com>
5255 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5256 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5257 (mi_cmd_var_list_children): Delete unused variable.
5258 (varobj_update_one): Delete unused variable.
5259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5260 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5261 Delete unused variable.
5262 (mi_cmd_stack_list_variables): Delete unused variable.
5263 (list_args_or_locals): Delete unused variable.
5264 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5265 Delete unused variables.
5266 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5267 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5268 Delete unused variable.
5269 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5270 (mi_cmd_interpreter_exec): Delete unused variable.
5271 (mi_on_normal_stop): Delete unused variable.
5272 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5273 (print_one_inferior): Delete unused variables.
5274 (mi_execute_command): Delete unused variable.
5275 (mi_cmd_execute): Delete unused variable.
5276 (timestamp): Delete unused variable.
5278 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5279 (restore_binary_file): Delete unused variable.
5280 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5281 * cli/cli-script.c (define_command): Delete unused variables.
5282 (recurse_read_control_structure): Delete unused variable.
5283 (script_from_file): Delete unused variable.
5284 * cli/cli-cmds.c (complete_command): Delete unused variable.
5285 (disassemble_command): Delete unused variable.
5287 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5288 * tracepoint.c (delete_trace_variable_command):
5289 Delete unused variables.
5290 (encode_actions_1): Delete unused variables.
5291 (start_tracing): Delete unused variable.
5292 (trace_status_mi): Delete unused variable.
5293 (tfind_1): Delete unused variable.
5294 (trace_find_pc_command): Delete unused variable.
5295 (trace_find_line_command): Delete unused variables.
5296 (trace_find_range_command): Delete unused variables.
5297 (trace_find_outside_command): Delete unused variables.
5298 (parse_tracepoint_definition): Delete unused variables.
5299 (tfile_fetch_registers): Delete unused variable.
5301 * dcache.c (dcache_init): Delete unused variable.
5302 (dcache_info): Delete unused variable.
5304 * remote.c (remote_threads_info): Delete unused variable.
5305 (process_stop_reply) :Delete unused variable.
5306 (remote_get_trace_status): Delete unused variables.
5308 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5309 (thread_from_lwp): Delete unused variable.
5310 (enable_thread_event_reporting): Delete unused variable.
5311 (check_for_thread_db): Delete unused variables.
5312 (thread_db_find_new_threads_2): Delete unused variable.
5314 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5315 (checkpoint_command): Delete unused variable.
5316 (linux_fork_context): Delete unused variables.
5318 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5319 (linux_tracefork_child): Delete unused variable.
5320 (linux_child_follow_fork): Delete unused variable.
5321 (linux_nat_detach): Delete unused variable.
5322 (linux_handle_extended_wait): Delete unused variable.
5323 (linux_nat_has_pending_sigint): Delete unused variable.
5324 (linux_nat_find_memory_regions): Delete unused variable.
5325 (linux_nat_make_corefile_notes): Delete unused variables.
5326 (linux_nat_info_proc_cmd): Delete unused variable.
5327 (linux_proc_pending_signals): Delete unused variable.
5328 (linux_nat_stop_lwp): Delete unused variables.
5329 (_initialize_linux_nat): Delete unused variable.
5331 * ser-pipe.c (pipe_ops): Delete unused global variable.
5333 * linux-record.c (record_linux_system_call):
5334 Delete unused variables.
5336 * corelow.c (core_xfer_partial): Delete unused variables.
5338 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5339 (svr4_solib_create_inferior_hook): Add ifdef around
5340 conditionally-used variable declarations.
5342 * solib.c (solib_find): Delete unused variable.
5343 (free_so_symbols): Delete unused variable.
5344 (info_sharedlibrary_command): Delete unused variable.
5345 (reload_shared_libraries_1): Delete unused variable.
5346 (_initialize_solib): Delete unused variable.
5348 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5349 (i386_collect_xstateregset): Delete unused variable.
5350 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5352 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5353 Delete unused variable 'type'.
5355 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5357 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5358 ada-lang.c: Remove comment mentioning these macros.
5359 * m2-exp.y: Delete commented out code.
5361 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5363 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5365 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5367 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5369 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5370 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5372 (cleanup_kernel_helper_return): Likewise.
5373 * arm-tdep.c (copy_unmodified): Likewise.
5374 (copy_preload): Likewise.
5375 (copy_copro_load_store): Likewise.
5376 (cleanup_branch): Likewise.
5377 (copy_b_bl_blx): Likewise.
5378 (copy_bx_blx_reg): Likewise.
5379 (copy_alu_imm): Likewise.
5380 (copy_alu_reg): Likewise.
5381 (copy_alu_shifted_reg): Likewise.
5382 (cleanup_load): Likewise.
5383 (cleanup_store): Likewise.
5384 (cleanup_block_load_pc): Likewise.
5385 (cleanup_svc): Likewise.
5386 (copy_undef): Likewise.
5387 (copy_unpred): Likewise.
5388 * remote.c (register_remote_support_xml): Likewise.
5390 2010-05-05 Hui Zhu <teawater@gmail.com>
5392 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5394 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5396 * remote.c (register_remote_support_xml)
5397 (remote_query_supported_append, remote_query_supported): Add cast
5398 to NULL used as sentinel.
5399 * tracepoint.c (tvariables_info_1): Likewise.
5400 * utils.c (add_internal_problem_command): Likewise.
5402 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5404 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5405 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5406 registers gracefully.
5408 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5410 * exec.c (print_section_info): Display entry point without arch
5413 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5416 * printcmd.c (x_command): Only dereference once implicitly for
5419 2010-05-03 Doug Evans <dje@google.com>
5421 * event-loop.c (gdb_timer): Delete unused global.
5422 (create_timer): Update.
5424 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5426 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5427 CURRENT->DECLARATION case.
5428 * cp-support.h (struct using_direct): Provide extended comment.
5430 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5432 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5433 HPPABSD_SIZEOF_GREGS.
5434 (HPPAOBSD_SIZEOF_FPREGS): New define.
5435 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5436 (hppaobsd_supply_fpregset): New function.
5437 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5438 (hppaobsd_fpregset): New variable.
5439 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5440 (_initialize_hppabsd_tdep): Remove spurious blank line.
5442 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5445 * p-valprint.c (pascal_value_print): Always dereference a value with
5446 type code TYPE_CODE_REF.
5448 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5450 * remote.c (remote_notice_signals): New.
5451 (remote_start_remote): In non-stop mode, update the remote end on
5452 which signals it can silently pass.
5453 (init_remote_ops): Install remote_notice_signals.
5455 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5457 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5458 * command.h (error_no_arg): ... here. Remove NORETURN, change
5459 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5460 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5461 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5462 (internal_verror, internal_error, nomem): Remove NORETURN, change
5463 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5464 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5465 (throw_vfatal, throw_error): Remove NORETURN.
5466 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5467 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5468 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5469 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5470 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5471 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5473 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5474 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5476 * target.c (tcomplain): Likewise.
5477 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5479 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5480 (internal_error, perror_with_name, nomem): Remove NORETURN.
5481 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5484 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5486 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5487 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5488 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5489 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5490 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5491 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5492 * complaints.h (complaint, internal_complaint): Likewise.
5493 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5494 (ATTR_FORMAT): Remove.
5495 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5496 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5497 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5498 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5499 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5500 (internal_error, internal_vwarning, internal_warning, warning)
5501 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5502 * disasm.c (fprintf_disasm): Likewise.
5503 * exceptions.c (throw_it): Likewise.
5504 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5505 (throw_error): Likewise.
5506 * language.h (type_error, range_error): Likewise.
5507 * linespec.c (cplusplus_error): Likewise.
5508 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5509 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5510 * monitor.c (monitor_debug): Likewise.
5511 * parser-defs.h (parser_fprintf): Likewise.
5512 * serial.h (serial_printf): Likewise.
5513 * tui/tui-hooks.c (tui_query_hook): Likewise.
5514 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5515 (uo_message): Likewise.
5516 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5517 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5519 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5521 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5523 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5524 (cli_table_header, cli_begin, cli_end, cli_field_int)
5525 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5526 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5527 Delete forward declarations.
5528 (cli_ui_out_impl): Move below the callbacks.
5529 (_initialize_cli_out): Delete.
5531 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5533 * README: Use consistent `GDB' and `GDBserver' spellings.
5535 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5537 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5539 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5541 * infrun.c (prepare_for_detach): In non-stop, context switch to
5542 the thread that got the event before handling the event.
5544 2010-04-30 Tom Tromey <tromey@redhat.com>
5546 * symtab.c (symbol_set_names): Fix typo.
5548 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5550 * python/py-param.c (parm_constants): Avoid ARI warning
5551 by adding ARI comment.
5552 (parmpy_init): Likewise.
5554 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5556 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5557 and created type for re-use.
5559 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5561 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5563 2010-04-29 Doug Evans <dje@google.com>
5565 * ser-base.h (reschedule): Delete prototype.
5566 * ser-base.c (reschedule): Make static.
5568 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5570 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5571 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5572 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5574 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5577 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5581 * regcache.c (registers_changed): Rename to ...
5582 (registers_changed_ptid): ... this, and only delete register cache
5583 entries matching the ptid filter argument.
5584 (registers_changed): Reimplement on top of registers_changed_ptid.
5585 * regcache.h (registers_changed_ptid): Declare.
5586 * target.c (target_resume): Flush register caches.
5588 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5589 Tom Tromey <tromey@redhat.com>
5590 Thiago Jung Bauermann <bauerman@br.ibm.com>
5592 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5593 (SUBDIR_PYTHON_SRCS): Likewise.
5594 (py-parameter.o): New rule.
5595 * python/py-parameter.c: New file.
5596 * python/python-internal.h (gdbpy_initialize_parameter)
5597 (gdbpy_parameter, gdbpy_parameter_value)
5598 (gdbpy_parse_command_name): Declare.
5599 * python/py-cmd.c (parse_command_name): Rename to
5600 gdbpy_parse_command_name.
5601 (gdbpy_parse_command_name): Accept a starting list parameter and
5603 (cmdpy_init): Use gdbpy_parse_command_name.
5604 * python/python.c (parameter_to_python): Rename to
5605 gdbpy_parameter_to_python. Accept enum var_types and value.
5606 (gdbpy_parameter): Use gdbpy_parameter_value.
5607 (_initialize_python): Call gdbpy_initialize_parameters.
5609 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5611 * MAINTAINERS: Add myself for write after approval privileges.
5613 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5616 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5617 (COMMON_OBS): Add d-lang.o d-valprint.o.
5618 (HFILES_NO_SRCDIR): Add d-lang.h.
5619 * NEWS: Mention D language support.
5620 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5621 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5622 * d-lang.c: New file.
5623 * d-lang.h: New file.
5624 * d-valprint.c: New file.
5625 * defs.h (enum language): Add language_d.
5626 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5627 * language.c (binop_result_type, integral_type, character_type)
5628 (string_type, boolean_type, structured_type): Add language_d.
5629 * symfile.c (init_filename_language_table): Add language_d.
5630 * symtab.c: Include d-lang.h.
5631 (symbol_init_language_specific, symbol_find_demangled_name)
5632 (symbol_natural_name, lookup_symbol_in_language)
5633 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5635 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5637 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5639 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5641 * symfile.c (init_filename_language_table): Register .dg files
5644 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5646 * gdbtypes.h (struct main_type): Expand comment about target_type
5649 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5650 Tristan Gingold <gingold@adacore.com>
5652 * symfile.c (reread_symbols): Also search for file in libraries.
5655 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5657 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5658 in terms of configuration.
5660 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5662 * objfiles.c: Include solist.h.
5663 (free_all_objfiles): New variable so. Check stale solist objfiles.
5664 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5665 and no_shared_libraries.
5667 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5670 * python/py-auto-load.c (source_section_scripts): Remove trailing
5671 new-line in i18n string.
5673 2010-04-26 Doug Evans <dje@google.com>
5675 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5677 2010-04-26 Tom Tromey <tromey@redhat.com>
5679 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5682 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5684 Removal of config/i386/nm-i386sol2.h native configuration file.
5685 * config/i386/nm-i386sol2.h: Remove file.
5686 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5687 * config/i386/sol2-64.mh: Idem.
5688 * config/djgpp/fnchange.lst: Remove reference to that file.
5689 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5691 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5693 PR breakpoints/11531.
5694 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5695 macro definition and related comment.
5696 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5697 (resume): Remove code and comment related to this macro.
5699 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5701 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5704 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5706 * defs.h: Adjust comment.
5707 * filesystem.h, filesystem.c: New files.
5708 * Makefile.in (SFILES): Add filesystem.c.
5709 (COMMON_OBS): Add filesystem.o.
5710 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5711 different target and host path flavours.
5712 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5713 has_dos_based_file_system on the gdbarch.
5714 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5715 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5716 * i386-tdep.c (i386_go32_init_abi): Ditto.
5717 * gdbarch.sh (has_dos_based_file_system): New.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * NEWS: Mention improved support for remote targets with DOS-based
5720 filesystems. Mention new `set/show target-file-system-kind'
5723 2010-04-23 Stan Shebs <stan@codesourcery.com>
5725 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5727 (struct agent_reqs): Remove.
5728 (ax_reg_mask): Declare.
5729 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5730 (free_agent_expr): Free reg_mask.
5731 (ax_print): Add scope and register mask info.
5732 (ax_reqs): Remove agent_reqs argument, use agent expression
5733 fields, and move part of register mask computation to...
5734 (ax_reg_mask): New function.
5735 * ax-gdb.c (gen_trace_static_fields): Call it.
5736 (gen_traced_pop): Ditto.
5737 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5738 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5739 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5740 (gen_eval_for_expr): Ditto, and require an rvalue.
5741 (agent_command): Call ax_reqs.
5742 (agent_eval_command): Ditto.
5743 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5744 (validate_action_line): Ditto.
5745 (collect_symbol): Ditto.
5746 (encode_actions_1): Ditto.
5748 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5749 Paul Pluzhnikov <ppluzhnikov@google.com>
5750 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 Fix deadlock on looped list of loaded shared objects.
5753 * solib-svr4.c (LM_PREV): New function.
5754 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5755 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5756 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5757 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5759 2010-04-23 Doug Evans <dje@google.com>
5761 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5763 * configure: Regenerate.
5764 * main.c: #include "python/python.h".
5765 (captured_main): Defer loading auto-loaded scripts until after
5766 local_gdbinit has been sourced.
5767 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5768 (load_auto_scripts_for_objfile): New function.
5769 (auto_load_new_objfile): Call it.
5770 * python/python.h (gdbpy_global_auto_load): Declare.
5771 (load_auto_scripts_for_objfile): Declare.
5773 Add support for auto-loading scripts from .debug_gdb_scripts section.
5774 * NEWS: Add entry for .debug_gdb_scripts.
5775 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5776 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5777 (py-auto-load.o): New rule.
5778 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5779 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5780 * python/py-auto-load.c: New file.
5781 * python/python-internal.h: #include <stdio.h>.
5782 (set_python_list, show_python_list): Declare.
5783 (gdbpy_initialize_auto_load): Declare.
5784 (source_python_script_for_objfile): Declare.
5785 * python/python.c: Remove #include of observer.h.
5786 (gdbpy_auto_load): Moved to py-auto-load.c.
5787 (GDBPY_AUTO_FILENAME): Ditto.
5788 (gdbpy_new_objfile): Delete.
5789 (source_python_script_for_objfile): New function.
5790 (set_python_list, show_python_list): Make externally visible.
5791 (_initialize_python): Move "auto-load" command to py-auto-load.c
5792 and observer_attach_new_objfile to py-auto-load.c.
5794 2010-04-23 Jerome Guitton <guitton@adacore.com>
5796 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5797 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5798 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5800 (alpha_heuristic_analyze_probing_loop): New function.
5801 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5802 and handle cases when a stack probe loop is generated.
5803 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5804 (alpha_mdebug_max_frame_size_exceeded): New function.
5805 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5806 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5807 Return 0 when the maximum debuggable frame size has been exceeded.
5809 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5812 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5814 2010-04-20 Chris Moller <cmoller@redhat.com>
5818 * symtab.c (rbreak_command): Added code to include a filename
5819 specification in the rbreak argument.
5820 * NEWS: Added a brief description of filename-qualified rbreak.
5822 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5824 Fix crashes on dangling display expressions.
5825 * ada-lang.c (ada_operator_check): New function.
5826 (ada_exp_descriptor): Fill-in the field operator_check.
5827 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5828 * jv-lang.c (exp_descriptor_java): Likewise.
5829 * m2-lang.c (exp_descriptor_modula2): Likewise.
5830 * scm-lang.c (exp_descriptor_scm): Likewise.
5831 * parse.c (exp_descriptor_standard): Likewise.
5832 (operator_check_standard): New function.
5833 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5834 * parser-defs.h (struct exp_descriptor): New field operator_check.
5835 (operator_check_standard, exp_uses_objfile): New declarations.
5836 * printcmd.c: Remove the inclusion of solib.h.
5837 (display_uses_solib_p): Remove the function.
5838 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5839 and exp_uses_objfile instead of display_uses_solib_p.
5840 * solist.h (struct so_list) <objfile>: New comment.
5841 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5842 * symtab.h (lookup_objfile_from_block): New declaration.
5843 (struct general_symbol_info) <obj_section>: Extend the comment.
5845 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5846 Thiago Jung Bauermann <bauerman@br.ibm.com>
5848 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5849 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5850 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5851 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5852 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5853 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5854 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5855 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5856 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5857 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5858 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5859 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5860 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5861 Define, in case <ptrace.h> doesn't provide it.
5862 (booke_debug_info): New variable.
5863 (max_slots_number): Ditto.
5864 (hw_break_tuple): New struct.
5865 (thread_points): Ditto.
5866 (ppc_threads): New variable.
5867 (PPC_DEBUG_CURRENT_VERSION): New define.
5868 (have_ptrace_new_debug_booke): New function.
5869 (ppc_linux_check_watch_resources): Renamed to ...
5870 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5871 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5872 (booke_cmp_hw_point): New function.
5873 (booke_find_thread_points_by_tid): Ditto.
5874 (booke_insert_point): Ditto.
5875 (booke_remove_point): Ditto.
5876 (ppc_linux_insert_hw_breakpoint): Ditto.
5877 (ppc_linux_remove_hw_breakpoint): Ditto.
5878 (get_trigger_type): Ditto.
5879 (ppc_linux_insert_watchpoint): Handle BookE processors.
5880 (ppc_linux_remove_watchpoint): Ditto.
5881 (ppc_linux_new_thread): Ditto.
5882 (ppc_linux_thread_exit): New function..
5883 (ppc_linux_stopped_data_address): Handle BookE processors.
5884 (ppc_linux_watchpoint_addr_within_range): Ditto.
5885 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5886 to_remove_hw_breakpoint fields of the target operations struct.
5887 Add observe for the thread_exit event.
5889 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5891 * i386-linux-nat.c (regmap): Removed.
5892 (fetch_register): Replace regmap with
5893 i386_linux_gregset_reg_offset.
5894 (store_register): Likewise.
5895 (supply_gregset): Likewise.
5896 (fill_gregset): Likewise.
5898 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5901 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5903 2010-04-22 Chris Moller <cmoller@redhat.com>
5905 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5906 method of popping recursion-detection stack with a method based on
5907 obstack_object_size(). (Similar to the PR9167 patch below, but for
5908 the static array obstack rather than the static member obstack.)
5910 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5912 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5913 (_initialize_amd64_linux_nat): Replace
5914 amd64_linux_gregset64_reg_offset with
5915 amd64_linux_gregset_reg_offset.
5917 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5920 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5922 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5925 * stabsread.c (set_length_in_type_chain): New function.
5926 (read_struct_type): Call set_length_in_type_chain function.
5927 (read_enum_type): Idem.
5929 2010-04-21 Stan Shebs <stan@codesourcery.com>
5930 Nathan Sidwell <nathan@codesourcery.com>
5932 * tracepoint.c (trace_save): Open in binary mode.
5934 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5936 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5938 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5939 builtin_char32 fields.
5940 * printcmd.c (decode_format): Set char size to '\0'
5941 for strings unless explicit size is given.
5942 (print_formatted): Correct calculation of NEXT_ADDRESS
5943 for 16 or 32 bit strings.
5944 (do_examine): Do not force byte size for strings.
5945 Use builtin_char16 and builtin_char32 types to display
5946 16 or 32 bit-wide strings.
5947 (x_command): Set LAST_SIZE to 'b' for string type.
5949 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5952 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5955 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5956 there is no .reg-xstate section.
5957 (i386_linux_core_read_description): Check XCR0 first.
5959 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5961 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5964 2010-04-21 Chris Moller <cmoller@redhat.com>
5967 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5968 method of popping recursion-detection stack with a method based on
5969 obstack_object_size().
5971 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5974 * p-valprint.c (pascal_val_print): Fix default printing of integer
5977 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5979 Fix compilation warning on gcc-4.1.2.
5980 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5981 local variable`pc' to zero.
5983 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5985 Implement thread support with core files on alpha-tru64.
5986 * dec-thread.c (dec_thread_find_new_threads): New function,
5987 extracted from resync_thread_list.
5988 (resync_thread_list): Add OPS parameter. Replace extracted-out
5989 code by call to dec_thread_find_new_threads.
5990 (dec_thread_wait): Update call to resync_thread_list.
5991 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5993 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5995 * ada-lang.c (value_pointer): New function.
5996 (make_array_descriptor): Call value_pointer to convert addresses to
5999 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6001 * rs6000-aix-tdep.c: #include exceptions.h.
6002 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6003 while reading the memory at ADDR, then ADDR cannot be a function
6006 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6008 * ada-typeprint.c (ada_print_typedef): New function.
6009 * ada-lang.h (ada_print_typedef): Add declaration.
6010 * ada-lang.c (ada_language_defn): set la_print_typdef field
6011 to ada_print_typedef.
6013 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6015 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6017 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6019 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6020 (iterate_over_mappings): Adjust function profile. Add declaration.
6021 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6024 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6026 * procfs.c (solib_mappings_callback): Move function up to avoid
6029 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6031 * procfs.c (find_signalled_thread, find_stop_signal): Move
6032 these functions down to define them only when used.
6034 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6036 * valprint.c (common_val_print): Fix the value before extracting
6038 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6039 * ada-lang.h (ada_to_fixed_value): New function declaration.
6040 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6041 to avoid code duplication and fix a bug in the handling of
6042 fixed types contents.
6044 2010-04-20 Tom Tromey <tromey@redhat.com>
6046 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6047 (read_partial_die): Likewise.
6048 (dwarf_attr_name): Likewise.
6050 2010-04-20 Chris Moller <cmoller@redhat.com>
6054 * cp-valprint.c (global): Adding new static array recursion
6056 (cp_print_value_fields, cp_print_static_field): Added new static
6057 array recursion detection code.
6059 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6061 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6062 general-purpose register set should be 68 instead of 144.
6063 (i386_linux_sse_regset_sections): Likewise.
6064 (i386_linux_avx_regset_sections): Likewise.
6066 2010-04-20 Stan Shebs <stan@codesourcery.com>
6067 Nathan Sidwell <nathan@codesourcery.com>
6069 * dwarf2loc.c (struct axs_var_loc): New struct.
6070 (dwarf2_tracepoint_var_loc): New function.
6071 (dwarf2_tracepoint_var_access): New function.
6072 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6074 (locexpr_describe_location_piece): New function.
6075 (locexpr_describe_location_1): New function.
6076 (locexpr_describe_location): Call it, update signature.
6077 (loclist_describe_location): Rewrite to loop over locations,
6079 * symtab.h (struct symbol_computed_ops): Add address to
6080 describe_location arguments, return void.
6081 * printcmd.c (address_info): Get context PC, pass to computed
6082 location description.
6083 * tracepoint.c (scope_info): Ditto.
6084 * ax-gdb.c (trace_kludge): Export.
6086 2010-04-20 Tom Tromey <tromey@redhat.com>
6088 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6089 (struct dwarf2_cie) <segment_size>: New field.
6090 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6091 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6093 (read_attribute_value): Handle DW_FORM_flag_present,
6094 DW_FORM_sec_offset, DW_FORM_exprloc.
6095 (dump_die_shallow): Likewise.
6096 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6097 (dwarf2_const_value): Handle DW_FORM_exprloc.
6098 (attr_form_is_block): Likewise.
6099 (struct line_header) <maximum_ops_per_instruction>: New field.
6100 (dwarf_decode_line_header): Set new field.
6101 (dwarf_decode_lines): Handle new field.
6103 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 * f-exp.y: Add new production to recognize the `logical*8' type.
6106 (LOGICAL_S8_KEYWORD): New token.
6107 * f-lang.c (enum f_primitive_types)
6108 <f_primitive_type_logical_s8>: New field.
6109 (f_language_arch_info): Handling `logical*8' type.
6110 (build_fortran_types): Building `logical*8' type.
6111 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6113 2010-04-19 Doug Evans <dje@google.com>
6115 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6116 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6117 (pipe_close): Ditto.
6119 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6121 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6123 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6125 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6126 type to void function.
6128 2010-04-19 Stan Shebs <stan@codesourcery.com>
6129 Vladimir Prus <vladimir@codesourcery.com>
6131 * tracepoint.c (tfind_1): Add missing newline, report exit from
6133 * target.c (update_current_target): Make default
6134 to_trace_find return -1.
6136 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6138 * objc-lang.c (find_methods): Move symname check up.
6140 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6142 * ada-lang.c (print_recreate_exception)
6143 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6144 not "catch unhandled".
6146 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6148 PR breakpoints/8554.
6150 Implement `save-breakpoints'.
6152 * breakpoint.c (save_cmdlist): New.
6153 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6155 (print_recreate_catch_fork): New.
6156 (catch_fork_breakpoint_ops): Install it.
6157 (print_recreate_catch_vfork): New.
6158 (catch_vfork_breakpoint_ops): Install it.
6159 (print_recreate_catch_syscall): New.
6160 (catch_syscall_breakpoint_ops): Install it.
6161 (print_recreate_catch_exec): New.
6162 (catch_exec_breakpoint_ops): Install it.
6163 (print_recreate_exception_catchpoint): New.
6164 (gnu_v3_exception_catchpoint_ops): Install it.
6165 (save_breakpoints): New, based on tracepoint_save_command, but
6166 handle all breakpoint types.
6167 (save_breakpoints_command): New.
6168 (tracepoint_save_command): Rename to...
6169 (save_tracepoints_command): ... this, and reimplement using
6171 (save_command): New.
6172 (_initialize_breakpoints): Install the "save" command prefix.
6173 Install the "save breakpoints" command. Make "save-tracepoints" a
6174 deprecated alias for "save tracepoints".
6175 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6176 * ada-lang.c (print_recreate_exception): New.
6177 (print_recreate_catch_exception): New.
6178 (catch_exception_breakpoint_ops): Install it.
6179 (print_recreate_catch_exception_unhandled): New.
6180 (catch_exception_unhandled_breakpoint_ops): Install it.
6181 (print_recreate_catch_assert): New.
6182 (catch_assert_breakpoint_ops): Install it.
6184 * NEWS: Mention the new `save breakpoints' command. Mention the
6185 new `save tracepoints' alias and that `save-tracepoints' is now
6188 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6192 * tui/tui-out.c: Include cli-out.h.
6193 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6194 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6195 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6196 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6198 (struct ui_out_data): Rename to...
6199 (struct tui_ui_out_data): ... this. Remove `stream' and
6200 `suppress_output' fields, and inherit cli_ui_out_data.
6201 (tui_out_data): New typedef.
6202 (tui_ui_out_impl): Don't initialize fields staticaly.
6203 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6204 (tui_begin, tui_end): Delete.
6205 (tui_field_int): Adjust to delegate most work to the base type.
6206 (tui_field_skip): Delete.
6207 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6208 delegate most work to the base type.
6209 (tui_spaces): Delete.
6210 (tui_text): Adjust to delegate most work to the base type.
6211 (tui_message): Delete.
6212 (tui_wrap_hint): Delete.
6213 (tui_flush): Delete.
6214 (out_field_fmt): Delete.
6215 (field_separator): Delete.
6216 (tui_out_new): Adjust to initialize the base type.
6217 (_initialize_tui_out): Initialize tui_ui_out_impl.
6218 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6220 (cli_out_data): Adjust.
6221 (cli_ui_out_impl): Make extern.
6222 (cli_table_header, cli_field_int, cli_field_skip): Use
6223 uo_field_string instead of cli_field_string.
6224 (cli_redirect): Adjust to use cli_out_data.
6225 (cli_out_data_ctor): New.
6226 (cli_out_new): Use it.
6227 * cli-out.h (struct ui_file): Remove forward declaration.
6228 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6229 (cli_ui_out_impl): Declare.
6230 (cli_out_data_ctor): Declare.
6231 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6232 (uo_field_string): No longer static.
6233 (ui_out_data): Change return type to void pointer.
6234 (ui_out_new): Change `data' parameter type to void pointer.
6235 * ui-out.h (struct ui_out_data): Don't forward declare.
6236 (ui_out_data): Change return type to void pointer.
6237 (ui_out_new): Change `data' parameter type to void pointer.
6238 (uo_field_string): Declare.
6240 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6242 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6243 instead of always false.
6245 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6248 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6251 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6253 * breakpoint.c (watchpoints_triggered): Use
6254 is_hardware_watchpoint.
6255 (watchpoints_triggered): Ditto.
6256 (bpstat_check_location): Use is_watchpoint and
6257 is_hardware_watchpoint.
6258 (bpstat_check_watchpoint): Use is_watchpoint and
6259 is_hardware_watchpoint.
6260 (bpstat_stop_status): Fix comment.
6261 (user_settable_breakpoint): Use is_watchpoint.
6262 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6263 (disable_watchpoints_before_interactive_call_start): Use
6265 (enable_watchpoints_after_interactive_call_stop): Use
6267 (clear_command): Use is_watchpoint.
6268 (do_enable_breakpoint): Use is_watchpoint.
6270 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6272 * solib-frv.c (enable_break1_done): Delete.
6273 (enable_break2): Do not check enable_break1_done. Move the
6274 enable_break2_done setting and call to
6275 remove_solib_event_breakpoints() to the end. Return without
6276 warning when the contents of _dl_debug_addr are 0.
6277 (enable_break): Do not set enable_break1_done.
6278 (frv_clear_solib): Likewise.
6280 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6282 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6283 instead of an error if no PLT entry is found. Return a
6284 potentially useful result.
6285 (m32c_m16c_pointer_to_address): Add code to search for function
6286 address when no .plt entry is found.
6288 2010-04-16 Stan Shebs <stan@codesourcery.com>
6290 * tracepoint.c (trace_variable_command): Run a cleanup.
6292 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6294 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6296 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6298 Support for Windows OS Thread Information Block.
6299 * NEWS: Document new feature.
6300 * remote.c (PACKET_qGetTIBAddr): New enum element.
6301 (remote_get_tib_address): New function.
6302 (init_remote_ops): Set to_get_tib_address field
6303 to remote_get_tib_address.
6304 (_initialize_remote): Add add_packet_config_cmd
6305 for PACKET_qGetTIBAddr.
6306 * target.c (update_current_target): Set default value for
6307 new to_get_tib_address field.
6308 * target.h (target_ops): New field to_get_tib_address.
6309 (target_get_tib_address): New macro.
6310 * windows-nat.c (thread_info): Add thread_local_base field.
6311 (windows_add_thread): Add tlb argument of type 'void *'.
6312 (fake_create_process): Adapt windows_add_thread call.
6313 (get_windows_debug_event): Idem.
6314 (windows_get_tib_address): New function.
6315 (init_windows_ops): Set to_get_tib_address field
6316 to remote_get_tib_address.
6317 (_initialize_windows_nat): Replace info_w32_cmdlist
6318 initialization by a call to init_w32_command_list.
6319 (info_w32_command, info_w32_cmdlist): Removed from here...
6320 to windows-tdep.c file.
6321 * windows-tdep.h (info_w32_cmdlist): Declare.
6322 (init_w32_command_list): New external function
6324 * windows-tdep.c: Add several headers.
6325 (info_w32_cmdlist): to here, made global.
6326 (thread_information_32): New struct.
6327 (thread_information_64): New struct.
6328 (TIB_NAME): New char array.
6329 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6330 (maint_display_all_tib): New static variable.
6331 (windows_get_tlb_type): New function.
6332 (tlb_value_read, tlb_value_write): New functions.
6333 (tlb_value_funcs): New static struct.
6334 (tlb_make_value): New function.
6335 (display_one_tib): New function.
6336 (display_tib): New function.
6337 (show_maint_show_all_tib):New function.
6338 (info_w32_command): Moved from windows-nat.c.
6339 (init_w32_command_list): New function.
6340 (_initialize_windows_tdep): New function.
6341 New "maint set/show show-all-tib" command
6342 New "$_tlb" internal variable.
6344 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6346 * tui/tui-regs.c (tui_display_register): Add comment about
6348 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6350 2010-04-15 Stan Shebs <stan@codesourcery.com>
6352 * frame.c: Include tracepoint.h.
6353 (get_current_frame): Allow a trace frame to be an alternate source
6354 of stack frame data.
6355 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6358 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6360 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6362 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6364 2010-04-15 Doug Evans <dje@google.com>
6366 * NEWS: Add entry for python program space support.
6367 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6368 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6369 (py-progspace.o): New rule.
6370 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6372 (find_pretty_printer_from_progspace): New function.
6373 (find_pretty_printer_from_gdb): New function.
6374 (find_pretty_printer): Rewrite.
6375 * python/py-progspace.c: New file.
6376 * python/python-internal.h (program_space): Add forward decl.
6377 (pspace_to_pspace_object, pspy_get_printers): Declare.
6378 (gdbpy_initialize_pspace): Declare.
6379 * python/python.c: #include "progspace.h".
6380 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6381 (_initialize_python): Call gdbpy_initialize_pspace.
6382 (GdbMethods): Add current_progspace, progspaces.
6384 Add -s option to source command.
6385 * NEWS: Document new option.
6386 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6387 Delete from_tty and cleanupp args. Split filep arg into file and
6388 full_pathp. New arg search_path.
6389 (source_script_from_stream): New function.
6390 (source_script_with_search): New function.
6391 (source_script): Rewrite.
6392 (source_command): Parse "-s" option.
6393 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6394 * python/python.c (source_python_script): Make file arg a const char *.
6395 Don't call fclose, leave for caller.
6396 * python/python.h (source_python_script): Update.
6398 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6399 Pedro Alves <pedro@codesourcery.com>
6401 Avoid rereading shared libraries that haven't changed.
6403 * solib.c (free_so_symbols): New function, from ...
6404 (free_so): ... here. Call it.
6405 (solib_read_symbols): Don't warn here if symbols have already been
6407 (solib_add): Warn here instead, if a pattern was specified.
6408 (reload_shared_libraries_1): New.
6409 (reload_shared_libraries): Rewrite to not fetch the library list.
6411 2010-04-14 Doug Evans <dje@google.com>
6413 * source.c (openp): Strip DOS drive letter if present before
6414 concatenating string to search path.
6416 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6418 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6419 * objfiles.c (gdb_bfd_close_or_warn): New.
6420 * corelow.c: Include objfiles.h
6421 (core_close): Use gdb_bfd_close_or_warn.
6422 * elfread.c (build_id_verify): Ditto.
6423 * exec.c (exec_close, exec_close_1): Ditto.
6425 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6426 Pedro Alves <pedro@codesourcery.com>
6428 Group errors for many missing shared libraries.
6430 * solist.h (struct so_list): Remove from_tty.
6431 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6432 (solib_map_sections): Take so_list argument. Return 0 if we
6433 failed to open a BFD. Add target sections here.
6434 (symbol_add_stub): Delete.
6435 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6436 not from_tty copied from the so_list. Don't warn a second time
6437 for a missing library.
6438 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6439 add to the section table here. Print out a single warning for all
6441 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6444 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6446 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6447 error/warning messages. Capitalize and use complete sentences.
6448 (blpy_block_syms_iternext): Likewise.
6449 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6450 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6451 (frame_info_to_frame_object, frapy_read_var)
6452 (gdbpy_frame_stop_reason_string): Likewise.
6453 * python/py-lazy-string.c (stpy_convert_to_value)
6454 (gdbpy_create_lazy_string_object): Likewise.
6455 * python/py-objfile.c (objfpy_set_printers): Likewise.
6456 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6457 * python/python.c (parameter_to_python): Likewise.
6458 * python/py-type.c (typy_range, typy_target): Likewise.
6459 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6460 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6463 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6467 * python/py-prettyprint.c (pretty_print_one_value): Test for
6469 (print_string_repr): Test for Py_None. Set flags accordingly.
6470 Return value depending on return type.
6471 (print_children): Take a value indicating whether data was printed
6472 before this function was called. Alter output accordingly.
6473 (apply_val_pretty_printer): Capture return value from
6474 print_string_repr and pass to print_children.
6476 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6479 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6480 register note sections.
6481 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6483 (i386_linux_init_abi): Install list of supported register note
6484 sections that matches the target description.
6486 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6488 * remote.c (remote_get_noisy_reply): Don't error out on empty
6490 (remote_start_remote): Update and merge tracepoints and trace
6491 state variables as long as the target supports tracepoints.
6492 (remote_trace_init): Fix prototype.
6493 (remote_download_trace_state_variable): Validate reply.
6494 (remote_trace_set_readonly_regions): Fix prototype.
6495 (remote_trace_start): Fix prototype. Check for empty reply.
6496 (remote_get_trace_status): Small cleanup.
6497 (remote_trace_stop): Fix prototype. Check for empty reply.
6498 (remote_trace_find): Check for empty reply.
6499 (remote_save_trace_data): Validate reply.
6500 (remote_set_disconnected_tracing): Check for empty reply, and
6502 (remote_set_circular_trace_buffer): Ditto.
6504 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6506 Suppress unused value warning during compilation.
6507 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6509 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6511 2010-04-12 Stan Shebs <stan@codesourcery.com>
6513 * tracepoint.c (tfile_xfer_partial): Check read result.
6515 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6517 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6518 * remote-sim.c (gdbsim_files_info): Likewise.
6520 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6522 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6523 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6525 (fetch_vfp_registers): New function to fetch VFP registers.
6526 (store_vfp_registers): New function to store VFP registers.
6527 (arm_linux_fetch_inferior_registers): Add support for VFP
6529 (arm_linux_store_inferior_registers): Likewise.
6530 (arm_linux_read_description): Likewise.
6531 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6534 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6536 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6538 (amd64_collect_xstateregset): Likewise.
6540 2010-04-09 Stan Shebs <stan@codesourcery.com>
6542 * tracepoint.c (trace_status_mi): Report frames created.
6544 * tracepoint.c (trace_dump_command): Include default-collect
6547 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6549 * symtab.c (find_function_start_sal): Never return SAL pointing
6550 before function start address, even if line info is missing.
6552 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6554 * NEWS: Mention tracepoints support.
6556 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6558 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6559 circular trace buffer statuses.
6561 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6563 * config/djgpp/fnchange.lst: Fix typo in translations for
6564 symbol-without-target_section.exp and symbol-without-target_section.c.
6566 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6568 * breakpoint.c (condition_command): Pass condition expression to
6569 set_breakpoint_condition stripped from breakpoint number.
6571 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6572 Thiago Jung Bauermann <bauerman@br.ibm.com>
6573 Tom Tromey <tromey@redhat.com>
6575 * breakpoint.c (condition_command): Simplify. Move condition
6577 (set_breakpoint_condition): ... here. New function.
6578 * breakpoint.h (set_breakpoint_condition): Declare.
6579 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6580 (SUBDIR_PYTHON_SRCS): Likewise.
6581 (py-breakpoint.o): New rule.
6582 * python/py-breakpoint.c: New file.
6583 * python/python-internal.h (gdbpy_breakpoints)
6584 (gdbpy_initialize_breakpoints): Declare.
6585 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6587 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6589 * regformats/regdat.sh: Include server.h. Don't include
6592 2010-04-08 Stan Shebs <stan@codesourcery.com>
6593 Pedro Alves <pedro@codesourcery.com>
6595 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6596 and circular_buffer.
6597 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6598 * tracepoint.c (trace_status_command): Display target's status for
6599 disconnected tracing and circular buffer.
6600 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6601 query for non-disconnected-tracing case, remove the stop_tracing
6603 (tfile_open): Clear disconnected and circular buffer status.
6604 (trace_save): Save disconnected and circular buffer status.
6605 (parse_trace_status): Parse disconnected and circular buffer status,
6606 also recognize disconnected as a stop reason.
6607 * remote.c (remote_set_disconnected_tracing): Only set
6608 QTDisconnected if the remote end supports disconnected tracing.
6609 Warn otherwise, if trying to enable disconnected tracing.
6610 * infcmd.c (detach_command): Update disconnect_tracing call.
6611 * cli/cli-cmds.c (quit_command): Ditto.
6613 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6615 * i387-tdep.c (i387_collect_xsave): Replace abort with
6618 2010-04-08 Stan Shebs <stan@codesourcery.com>
6620 * breakpoint.c (default_collect_info): New function.
6621 (breakpoints_info): Call it.
6622 (maintenance_info_breakpoints): Ditto.
6623 (tracepoints_info): Ditto.
6625 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6627 * i387-tdep.c (i387_collect_xsave): Re-indent.
6629 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6631 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6632 if HAVE_PTRACE_GETFPXREGS is defined.
6633 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6634 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6636 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6637 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6638 if .reg-xfp section doesn't exist.
6639 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6641 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6643 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6644 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6645 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6646 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6647 (i386_gdbarch_init): Update comments.
6648 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6650 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6652 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6654 * features/Makefile (i386/i386-mmx-expedite): New.
6655 (i386/i386-mmx-linux-expedite): Likewise.
6656 ($(outdir)/i386/i386-mmx.dat): Likewise.
6657 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6659 * features/i386/i386-mmx-linux.c: New.
6660 * features/i386/i386-mmx-linux.xml: Likewise.
6661 * features/i386/i386-mmx.c: Likewise.
6662 * features/i386/i386-mmx.xml: Likewise.
6663 * regformats/i386/i386-mmx-linux.dat: Likewise.
6664 * regformats/i386/i386-mmx.dat: Likewise.
6666 * features/Makefile (WHICH): Add i386/i386-mmx and
6667 i386/i386-mmx-linux.
6669 2010-04-08 Doug Evans <dje@google.com>
6671 * source.c (openp): Skip $cdir in PATH.
6673 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6676 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6678 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6679 address and a zero length.
6681 2010-04-08 Hui Zhu <teawater@gmail.com>
6683 * i386-tdep.c (i386_process_record): Add support for insn
6686 2010-04-07 Doug Evans <dje@google.com>
6688 * python/python.c (source_python_script): Use ensure_python_env
6689 to prepare environment for script.
6691 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6693 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6694 <sys/uio.h> and "i386-xstate.h".
6695 (PTRACE_GETREGSET): New.
6696 (PTRACE_SETREGSET): Likewise.
6697 (have_ptrace_getregset): Likewise.
6698 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6700 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6702 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6703 (amd64_linux_store_inferior_registers): Likewise.
6704 (amd64_linux_read_description): Check and enable AVX target
6707 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6708 and "features/i386/amd64-avx-linux.c".
6709 (amd64_linux_regset_sections): New.
6710 (amd64_linux_core_read_description): Check and enable AVX
6712 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6713 set_gdbarch_core_regset_sections.
6714 (_initialize_amd64_linux_tdep): Call
6715 initialize_tdesc_amd64_avx_linux.
6717 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6718 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6719 (tdesc_amd64_avx_linux): New.
6720 (amd64_linux_update_xstateregset): Likewise.
6722 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6723 (amd64_ymm_names): New.
6724 (amd64_ymmh_names): Likewise.
6725 (amd64_register_name): Likewise.
6726 (amd64_supply_xstateregset): Likewise.
6727 (amd64_collect_xstateregset): Likewise.
6728 (amd64_supply_xsave): Likewise.
6729 (amd64_collect_xsave): Likewise.
6730 (AMD64_NUM_REGS): Removed.
6731 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6732 %xmmN if AVX is available.
6733 (amd64_pseudo_register_name): Support pseudo YMM registers.
6734 (amd64_regset_from_core_section): Support .reg-xstate section.
6735 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6736 and ymm0h_regnum. Call set_gdbarch_register_name.
6737 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6739 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6740 AMD64_YMM15H_REGNUM.
6741 (AMD64_NUM_REGS): New.
6742 (amd64_supply_xsave): Likewise.
6743 (amd64_collect_xsave): Likewise.
6744 (amd64_register_name): Removed.
6745 (amd64_register_type): Likewise.
6747 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6749 * i387-tdep.c: Include "i386-xstate.h".
6750 (XSAVE_XSTATE_BV_ADDR): New.
6751 (xsave_avxh_offset): Likewise.
6752 (XSAVE_AVXH_ADDR): Likewise.
6753 (i387_supply_xsave): Likewise.
6754 (i387_collect_xsave): Likewise.
6756 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6757 (I387_YMM0H_REGNUM): Likewise.
6758 (I387_YMMENDH_REGNUM): Likewise.
6759 (i387_supply_xsave): Likewise.
6760 (i387_collect_xsave): Likewise.
6762 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6764 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6765 <sys/uio.h> and "i386-xstate.h".
6766 (PTRACE_GETREGSET): New.
6767 (PTRACE_SETREGSET): Likewise.
6768 (fetch_xstateregs): Likewise.
6769 (store_xstateregs): Likewise.
6770 (GETXSTATEREGS_SUPPLIES): Likewise.
6771 (regmap): Include 8 upper YMM registers.
6772 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6774 (i386_linux_store_inferior_registers): Likewise.
6775 (i386_linux_read_description): Check and enable AVX target
6778 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6779 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6780 (i386_linux_regset_sections): Add ".reg-xstate".
6781 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6782 (i386_linux_core_read_xcr0): New.
6783 (i386_linux_core_read_description): Check and enable AVX target
6785 (i386_linux_init_abi): Set xsave_xcr0_offset.
6786 (_initialize_i386_linux_tdep): Call
6787 initialize_tdesc_i386_avx_linux.
6789 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6790 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6791 (i386_linux_core_read_xcr0): New.
6792 (tdesc_i386_avx_linux): Likewise.
6793 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6795 * i386-tdep.c: Include "i386-xstate.h" and
6796 "features/i386/i386-avx.c".
6797 (i386_ymm_names): New.
6798 (i386_ymmh_names): Likewise.
6799 (i386_ymmh_regnum_p): Likewise.
6800 (i386_ymm_regnum_p): Likewise.
6801 (i386_xmm_regnum_p): Likewise.
6802 (i386_register_name): Likewise.
6803 (i386_ymm_type): Likewise.
6804 (i386_supply_xstateregset): Likewise.
6805 (i386_collect_xstateregset): Likewise.
6806 (i386_sse_regnum_p): Removed.
6807 (i386_pseudo_register_name): Support pseudo YMM registers.
6808 (i386_pseudo_register_type): Likewise.
6809 (i386_pseudo_register_read): Likewise.
6810 (i386_pseudo_register_write): Likewise.
6811 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6812 %xmmN if AVX is available.
6813 (i386_regset_from_core_section): Support .reg-xstate section.
6814 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6815 (i386_process_record): Replace i386_sse_regnum_p with
6817 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6818 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6819 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6820 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6821 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6822 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6824 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6826 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6827 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6829 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6830 (I386_AVX_NUM_REGS): New.
6831 (i386_xmm_regnum_p): Likewise.
6832 (i386_ymm_regnum_p): Likewise.
6833 (i386_ymmh_regnum_p): Likewise.
6835 * common/i386-xstate.h: New.
6837 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6839 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6841 * features/Makefile (WHICH): Add i386/i386-avx,
6842 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6843 (i386/i386-avx-expedite): New.
6844 (i386/i386-avx-linux-expedite): Likewise.
6845 (i386/x86-64-avx-expedite):Likewise.
6846 (i386/x86-64-avx-linux-expedite): Likewise.
6847 ($(outdir)/i386/i386-avx.dat): New dependency.
6848 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6849 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6850 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6852 * features/i386/32bit-avx.xml: New.
6853 * features/i386/64bit-avx.xml: Likewise.
6854 * features/i386/i386-avx-linux.c: Likewise.
6855 * features/i386/i386-avx-linux.xml: Likewise.
6856 * features/i386/i386-avx.c: Likewise.
6857 * features/i386/i386-avx.xml: Likewise.
6858 * features/i386/x86-64-avx-linux.c: Likewise.
6859 * features/i386/x86-64-avx-linux.xml: Likewise.
6860 * features/i386/x86-64-avx.c: Likewise.
6861 * features/i386/x86-64-avx.xml: Likewise.
6862 * regformats/i386/i386-avx-linux.dat: Likewise.
6863 * regformats/i386/i386-avx.dat: Likewise.
6864 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6865 * regformats/i386/x86-64-avx.dat: Likewise.
6867 2010-04-07 Doug Evans <dje@google.com>
6869 * top.c (source_file_name): Make const char *.
6870 * top.h (source_file_name): Update.
6871 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6873 (script_from_file): Change `file' arg to const char *.
6874 * cli/cli-script.h (script_from_file): Update.
6876 2010-04-06 Doug Evans <dje@google.com>
6878 * cli/cli-cmds.c (source_command): Run cleanups.
6880 2010-04-06 Stan Shebs <stan@codesourcery.com>
6882 * defs.h (char_ptr): Move typedef here from...
6883 * ada-lang.c (char_ptr): Remove.
6884 * charset.c (char_ptr): Remove.
6885 * tracepoint.h (struct uploaded_string): Remove.
6886 (struct uploaded_tp): Use vectors for string arrays.
6887 * tracepoint.c (trace_save): Use vectors of actions.
6888 (parse_tracepoint_definition): Ditto.
6889 (get_uploaded_tp): Clear vectors.
6890 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6891 (next_cmd): Change to an int.
6892 (read_next_cmd): Use vector of command strings.
6894 2010-04-06 Doug Evans <dje@google.com>
6896 * top.h (source_script, cd_command): Delete.
6897 * main.c: #include "cli/cli-cmds.h"
6899 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6901 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6902 type in bytes, not bits.
6904 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6906 * stabsread.c (define_symbol): Add support for char
6907 and string constants.
6909 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6911 Remove remaining "%ll" uses.
6912 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6914 * rs6000-nat.c (rs6000_ptrace64): Idem.
6915 * solib-pa64.c (pa64_current_sos): Idem.
6916 * solib-spu.c (spu_current_sos): Idem.
6917 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6919 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6921 * sh64-tdep.c (sh64_show_media_regs): Idem.
6923 2010-04-05 Stan Shebs <stan@codesourcery.com>
6925 * tracepoint.c: Include gdbcore.h.
6926 (tfile_xfer_partial): Return partial results, also try reading
6928 (tfile_has_all_memory): New function.
6929 (init_tfile_ops): Use it.
6931 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6934 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6935 the changes in data-directory.
6936 (init_sysinfo): Reload the syscall XML file if the data-directory
6939 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6944 2010-04-04 Stan Shebs <stan@codesourcery.com>
6945 Nathan Sidwell <nathan@codesourcery.com>
6947 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6948 breakpoints printed.
6949 (is_hardware_watchpoint): Make argument const.
6950 (is_watchpoint): Ditto.
6951 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6953 (breakpoints_info): Pass NULL to breakpoint_1.
6954 (maintenance_info_breakpoints): Ditto.
6955 (watchpoints_info): New function.
6956 (tracepoints_info): Use breakpoint_1 filter.
6957 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6958 (_initialize_breakpoint): Make "info watchpoints" its own command.
6959 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6960 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6962 2010-04-04 Stan Shebs <stan@codesourcery.com>
6964 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6966 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6968 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6969 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6971 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6973 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6974 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6976 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6978 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6981 2010-04-02 Hui Zhu <teawater@gmail.com>
6983 * i386-tdep.c (OT_DQUAD): New enum.
6984 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6985 SSE3, SSSE3 and SSE4.
6987 2010-04-02 Hui Zhu <teawater@gmail.com>
6989 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6992 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6994 * tracepoint.c (trace_dump_actions): New, factored out from
6995 trace_dump_command, and adjusted to recurse into while-stepping's
6997 (trace_dump_command): Use it.
6999 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7001 * breakpoint.h (struct counted_command_line): Moved definition to
7002 breakpoint.c, and forward declare.
7003 (breakpoint_commands): Declare.
7004 * breakpoint.c (struct counted_command_line): Moved here.
7005 (breakpoint_commands): New.
7006 * tracepoint.c (encode_actions): Use breakpoint_commands.
7007 * remote.c (remote_download_tracepoint): Ditto.
7009 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7011 * remote.c (remote_parse_stop_reply): Use hex_string instead
7012 of phex_nz for error.
7014 2010-04-01 Stan Shebs <stan@codesourcery.com>
7015 Nathan Sidwell <nathan@codesourcery.com>
7017 * tracepoint.h (enum actionline_type): Remove.
7018 (validate_actionline): Change return to void.
7019 * tracepoint.c (report_agent_reqs_errors): New function.
7020 (validate_actionline): Call it, change return to void, report errors
7022 (collect_symbol): Call report_agent_reqs_errors.
7023 (encode_actions_1): Ditto.
7024 (encode_actions): Don't expect a result from validate_actionline.
7026 2010-04-01 Stan Shebs <stan@codesourcery.com>
7028 * tracepoint.c (trace_start_command): Confirm if trace is running.
7029 (trace_stop_command): Error if trace not running.
7031 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7033 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7034 (AMD64_NUM_LOWER_BYTE_REGS): New.
7035 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7036 (amd64_pseudo_register_write): Likewise.
7037 (amd64_init_abi): Set num_byte_regs to 20.
7039 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7041 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7042 (prev_breakpoint_count): New.
7043 (set_breakpoint_count): Adjust.
7044 (rbreak_start_breakpoint_count): New.
7045 (start_rbreak_breakpoints): Adjust.
7046 (end_rbreak_breakpoints): Adjust.
7047 (struct commands_info) <arg>: New field.
7048 (do_map_commands_command): Tweak output to include breakpoint spec
7050 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7051 ARG was empty on entry. Set INFO's arg.
7052 (create_breakpoint): Adjust.
7054 * NEWS: Clarify `commands' changes.
7056 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7058 * tracepoint.c: Include stack.h.
7059 (struct add_local_symbols_data): New.
7060 (do_collect_symbol): New.
7061 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7062 iterate_over_block_local_vars.
7063 * stack.c (print_block_frame_locals): Rewrite as ...
7064 (iterate_over_block_locals): ... this. Take a callback function
7065 pointer and generic data pointer, and call that instead of
7066 print_variable_and_value.
7067 (struct print_variable_and_value_data): New.
7068 (do_print_variable_and_value): New.
7069 (iterate_over_block_local_vars): New, abstracted out from
7070 print_frame_local_vars.
7071 (print_frame_local_vars): Rewrite using
7072 iterate_over_block_local_vars.
7073 (iterate_over_block_arg_vars): New, abstracted out from
7074 print_frame_arg_vars.
7075 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7076 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7077 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7079 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7081 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7082 instructions. Use the PC+4 if the base of the TBB or TBH is the
7085 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7087 Fix crash on reading wrong function declaration DWARF.
7088 * dwarf2read.c (read_subroutine_type): New variable void_type.
7089 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7090 more close to their use.
7092 2010-03-31 Stan Shebs <stan@codesourcery.com>
7094 * breakpoint.c (tracepoint_save_command): Include variables,
7095 conditionals, tracepoint types, and default-collect.
7096 * tracepoint.c (save_trace_state_variables): New function.
7097 * tracepoint.h (save_trace_state_variables): Declare it.
7099 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7101 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7103 2010-03-30 Keith Seitz <keiths@redhat.com>
7105 * c-typeprint.c (c_type_print_args): Don't print "void"
7106 for java, regardless of whether it is TYPE_PROTOTYPED.
7107 Use the passed-in language instead of current_language.
7108 (c_type_print_varspec_suffix): Use current_language instead
7109 of assuming language_c.
7110 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7111 any return type specifier from the physname.
7113 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7115 * tui/tui-interp.c (tui_is_toplevel): New.
7117 (tui_allowed_p): New.
7118 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7120 * tui/tui.h (tui_allowed_p): Declare.
7122 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7124 * serial.h: Include winsock2.h before windows.h.
7126 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7128 * NEWS: Mention xmlRegisters= in qSupported packet.
7130 * i386-tdep.c: Include "remote.h".
7131 (_initialize_i386_tdep): Call register_remote_support_xml.
7133 * remote.c (remote_support_xml): New.
7134 (register_remote_support_xml): Likewise.
7135 (remote_query_supported_append): Likewise.
7136 (remote_query_supported): Support remote_support_xml.
7138 * remote.h (register_remote_support_xml): New.
7140 2010-03-29 Stan Shebs <stan@codesourcery.com>
7142 * tracepoint.c (trace_find_line_command): Remove dead code.
7144 * tracepoint.h (struct uploaded_string): New struct.
7145 (struct uploaded_tp): New fields for source strings.
7146 * breakpoint.c (this_utp, next_cmd): New globals.
7147 (read_uploaded_action): New function.
7148 (create_tracepoint_from_upload): Fill in more parts
7150 * tracepoint.c (encode_source_string): New function.
7151 (trace_save): Write out source strings, fix error checks.
7152 (parse_tracepoint_definition): Add source string parsing.
7153 * remote.c (PACKET_TracepointSource): New packet type.
7154 (remote_download_command_source): New function.
7155 (remote_download_tracepoint): Download source pieces also.
7156 (_initialize_remote): Add packet config command.
7158 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7161 * tracepoint.c (start_tracing): Check tracepoints before sending
7162 commands to target, don't start if all tracepoints disabled.
7164 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7166 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7168 2010-03-26 Stan Shebs <stan@codesourcery.com>
7170 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7172 2010-03-26 Tom Tromey <tromey@redhat.com>
7174 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7176 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7178 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7179 (skip_prologue_sal): Remove local definition.
7180 (resolve_sal_pc): Remove now unnecessary code.
7181 * linespec.c (minsym_found): Call skip_prologue_sal.
7182 * symtab.c (find_function_start_pc): Remove.
7183 (find_function_start_sal): Extract prologue skipping into ...
7184 (skip_prologue_sal): ... this new function. Handle code both
7185 with and without debug info. Respect SAL's explicit_pc and
7186 explicit_line flags. Inline old find_function_start_pc.
7187 * symtab.h (find_function_start_pc): Remove.
7188 (skip_prologue_sal): Add prototype.
7190 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7192 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7193 for DW_TAG_imported_module children.
7195 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7197 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7198 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7199 * completer.c (add_struct_fields): Fix inverted logic.
7201 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7203 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7205 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7207 * tracepoint.c (current_trace_status): Don't make sure error_desc
7209 (parse_trace_status): Release a previous error_desc string, and
7210 set it to NULL by default. If stop reason is tracepoint_error,
7211 make sure error_desc is not left NULL.
7213 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7215 * tracepoint.c (trace_save): Remove X from tracepoint error
7218 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7220 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7221 the terror description. Don't expect an X prefix.
7223 2010-03-25 Stan Shebs <stan@codesourcery.com>
7225 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7226 (struct trace_status): New field error_desc.
7227 * tracepoint.c (stop_reason_names): Add terror.
7228 (current_trace_status): Ensure non-NULL error description.
7229 (trace_status_command): Add error report.
7230 (trace_status_mi): Ditto.
7231 (trace_save): Add special case for error description.
7232 (parse_trace_status): Add case for errors.
7234 2010-03-25 Keith Seitz <keiths@redhat.com>
7236 * dwarf2read.c (read_subroutine_type): If the compilation unit
7237 language is Java, mark any formal parameter named "this" as
7238 artificial (GCC/43521).
7239 (dwarf2_name): Add special handling for Java constructors.
7241 2010-03-25 Tom Tromey <tromey@redhat.com>
7243 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7244 * infrun.c (handle_inferior_event): Change initialization of
7246 (handle_inferior_event): Change assignment to stop_stack_dummy.
7247 (normal_stop): Update use of stop_stack_dummy.
7248 (struct inferior_status) <stop_stack_dummy>: Change type.
7249 * inferior.h (stop_stack_dummy): Update.
7250 * infcmd.c (stop_stack_dummy): Change type.
7251 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7253 (call_function_by_hand): Call set_std_terminate_breakpoint.
7254 Rewrite std::terminate handling.
7255 * breakpoint.h (enum bptype) <bp_std_terminate,
7256 bp_std_terminate_master>: New.
7257 (enum stop_stack_kind): New.
7258 (struct bpstat_what) <call_dummy>: Change type.
7259 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7261 * breakpoint.c (create_std_terminate_master_breakpoint): New
7263 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7264 Call create_std_terminate_master_breakpoint.
7265 (print_it_typical): Handle new breakpoint kinds.
7266 (bpstat_stop_status): Handle bp_std_terminate_master.
7267 (bpstat_what): Correctly set call_dummy field. Handle
7268 bp_std_terminate_master and bp_std_terminate.
7269 (print_one_breakpoint_location): Update.
7270 (allocate_bp_location): Update.
7271 (set_std_terminate_breakpoint): New function.
7272 (delete_std_terminate_breakpoint): Likewise.
7273 (create_thread_event_breakpoint): Update.
7274 (delete_command): Update.
7275 (breakpoint_re_set_one): Update.
7276 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7278 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7280 * symfile.c (build_section_addr_info_from_bfd): New.
7281 (build_section_addr_info_from_objfile): Base it on
7282 build_section_addr_info_from_bfd.
7283 (addrs_section_compar, addrs_section_sort): New.
7284 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7285 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7286 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7288 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7290 * elfread.c (find_separate_debug_file_by_buildid):
7291 Remove unused local variable.
7293 2010-03-24 Tom Tromey <tromey@redhat.com>
7295 PR breakpoints/9352:
7296 * NEWS: Mention changes to `commands' and `rbreak'.
7297 * symtab.c (do_end_rbreak_breakpoints): New function.
7298 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7299 end_rbreak_breakpoints.
7300 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7301 (set_breakpoint_count): Likewise. Clear last_was_multi.
7302 (multi_start, multi_end, last_was_multi): New globals.
7303 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7305 (struct commands_info): New
7306 (do_map_commands_command): New function.
7307 (commands_command_1): New function.
7308 (commands_command): Use it.
7309 (commands_from_control_command): Likewise.
7310 (do_delete_breakpoint): New function.
7311 (delete_command): Use it.
7312 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7313 (do_map_disable_breakpoint): New function.
7314 (disable_command): Use it.
7315 (do_map_enable_breakpoint): New function.
7316 (enable_command): Use it.
7317 (enable_once_breakpoint): Add argument.
7318 (enable_once_command): Update.
7319 (enable_delete_breakpoint): Add argument.
7320 (enable_delete_command): Update.
7321 (break_command_really): Set last_was_multi when needed.
7322 (check_tracepoint_command): Fix formatting.
7323 (validate_commands_for_breakpoint): New function.
7324 (breakpoint_set_commands): Use it.
7325 (tracepoint_save_command): Update.
7326 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7329 2010-03-24 Tom Tromey <tromey@redhat.com>
7331 * breakpoint.h (struct counted_command_line): New struct.
7332 (struct breakpoint) <commands>: Change type.
7333 (struct bpstats) <commands>: Change type.
7334 <commands_left>: New field.
7335 * breakpoint.c (alloc_counted_command_line): New function.
7336 (incref_counted_command_line): Likewise.
7337 (decref_counted_command_line): Likewise.
7338 (do_cleanup_counted_command_line): Likewise.
7339 (make_cleanup_decref_counted_command_line): Likewise.
7340 (breakpoint_set_commands): Use decref_counted_command_line and
7341 alloc_counted_command_line.
7342 (commands_command): Don't error if breakpoint commands are
7344 (commands_from_control_command): Likewise.
7345 (bpstat_free): Update.
7346 (bpstat_copy): Likewise.
7347 (bpstat_clear_actions): Likewise.
7348 (bpstat_do_actions_1): Likewise.
7349 (bpstat_stop_status): Likewise.
7350 (print_one_breakpoint_location): Likewise.
7351 (delete_breakpoint): Likewise.
7352 (bpstat_alloc): Initialize new field.
7353 (tracepoint_save_command): Update.
7354 * tracepoint.c (encode_actions): Update.
7355 (trace_dump_command): Update.
7357 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7359 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7360 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7361 (read_structure_type): For RealView, set TYPE_STUB on structures with
7362 no byte size and no children.
7363 (read_subroutine_type): Mark functions as prototyped by default.
7364 * symtab.c (producer_is_realview): New function.
7365 * symtab.h (expand_line_sal): Fix declaration formatting.
7366 (producer_is_realview): Declare.
7368 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7370 * arm-tdep.c (skip_prologue_function): New function.
7371 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7372 (thumb_analyze_prologue): Document return value. Recognize more
7373 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7375 (arm_skip_prologue): Remove call dummy check. Check the prologue
7376 for non-GNU compilers.
7377 (arm_instruction_changes_pc): New function.
7378 (arm_analyze_prologue): New function, broken out from
7379 arm_scan_prologue. Recognize more ARM instructions and skippable
7380 calls. Update comments. Handle NULL cache. Return the address
7381 of the first unrecognized instruction. Do not skip past other
7382 instructions which change control flow. Add debug output.
7383 (arm_scan_prologue): Use arm_analyze_prologue.
7384 (ARM_PC_32): Delete.
7385 (shifted_reg_val): Simplify ARM_PC_32 check.
7387 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7389 * tracepoint.c (tvariables_info_1): Actually compute
7390 the number of rows in the result.
7392 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7394 * remote.c (crc32): Constify `buf' parameter.
7395 (remote_verify_memory): New, abstracted out from...
7396 (compare_sections_command): ... this. Remove hardcoded target
7398 (init_remote_ops): Install remote_verify_memory.
7399 * target.c (target_verify_memory): New.
7400 * target.h (struct target_ops) <to_verify_memory>: New field.
7401 (target_verify_memory): Declare.
7403 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7405 Implement -trace-save.
7407 * mi-cmds.h (mi_cmds_trace_save): Declare.
7408 * mi-cmds.c (mi_cmds): Register -trace-save.
7409 * mi/mi-main.c (mi_cmd_trace_save): New.
7410 * remote.c (remote_save_trace_data): Take const parameter.
7411 * target.h (struct target_ops::to_save_trace_data): Take
7413 * target.c (update_current_target): Adjust to the above.
7414 * tracepoint.c (trave_save): New, extracted from
7415 (trace_save_command): ...this.
7416 (tfile_trace_find): Remove message that is unnecessary now
7417 that 'tfind' reports found frame.
7418 * tracepoint.h (trace_save): Declare.
7420 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7422 Implement -trace-find.
7424 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7425 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7426 * mi/mi-main.c (mi_cmd_trace_find): New.
7427 * target.h (struct target_ops): Document to_trace_find.
7428 * tracepoint.h (tfind_1): Declare.
7429 * tracepoint.c (finish_tfind_command): Rename to...
7431 * remote.c (remote_trace_find): Return -1 if target say
7432 there's no frame. Improve error diagnostics.
7434 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7436 -trace-define-variable and -trace-list-variables.
7438 * tracepoint.c (create_trace_state_variable): Make
7439 private copy of name, as opposed to assuming the
7440 pointer lives forever.
7441 (tvariables_info_1): New.
7442 (tvariables_info): Use the above.
7443 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7445 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7446 and -trace-list-variables.
7447 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7448 (mi_cmd_trace_list_variables): New.
7449 * mi/mi-main.c (mi_cmd_trace_define_variable)
7450 (mi_cmd_trace_list_variables): New.
7452 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7454 Implement -break-passcount.
7456 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7457 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7458 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7460 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7462 -trace-start/-trace-end/-trace-status.
7464 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7466 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7467 (mi_cmd_trace_stop): Declare.
7468 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7469 (mi_cmd_trace_stop): New.
7470 * tracepoint.c (start_tracing): New, extracted from...
7471 (trace_start_command): ...this.
7472 (trace_status_mi): New.
7473 * tracepoint.h (struct trace_status): Document
7474 stopping_tracepoint.
7475 (start_tracing, stop_tracing, trace_status_mi): Declare.
7477 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7479 Implement creating tracepoints with -break-insert.
7481 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7482 to mean that tracepoint should be created.
7484 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7486 * breakpoint.c (check_no_tracepoint_commands): Use
7487 current spelling of 'teval'.
7489 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7491 Unify actions and commands
7493 * defs.h (read_command_lines, read_command_lines_1): New
7494 parameters validator and closure.
7495 * tracepoint.h (struct action_line): Remove.
7496 * breakpoint.h (struct breakpoint): Remove the 'actions'
7498 * defs.h (enum command_control_type): New value
7499 while_stepping_control.
7500 (struct command_line): Add comments.
7501 * breakpoint.c (breakoint_is_tracepoint): New.
7502 (breakpoint_set_commands): For tracepoints,
7503 verify the commands are permissible.
7504 (check_tracepoint_commands): New.
7505 (commands_command): Require that each new line is validated using
7506 check_tracepoint_command, if we set commands for a tracepoint.
7507 (create_tracepoint_from_upload): Likewise.
7508 (print_one_breakpoint_location): Remove the code to print
7509 actions specifically.
7510 (tracepoint_save_command): Relay to print_command_lines.
7511 * cli/cli-script.c (process_next_line): New parameters validator
7512 and closure. Handle 'while-stepping'. Call validator if not null.
7513 (read_command_lines, read_command_lines1): Likewise.
7514 (recurse_read_control_structure): New parameters validator and
7515 closure. Handle while_stepping_control.
7516 (print_command_lines): Handle while-stepping.
7517 (get_command_line, define_command, document_command): Adjust.
7518 * remote.c (remote_download_tracepoint): Adjust.
7519 * tracepoint.c (make_cleanup_free_actions, read_actions)
7520 (free_actions, do_free_actions_cleanup): Remove.
7521 (trace_actions_command): Use read_command_lines.
7522 (validate_actionline): Use error in one place.
7523 (encode_actions_1): New, extracted from...
7524 (encode_actions): ...this. Also use cleanups for exception
7526 (trace_dump_command): Adjust.
7527 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7530 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7532 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7534 2010-03-22 Stan Shebs <stan@codesourcery.com>
7536 * value.c (value_static_field): Be lazy about the field's value.
7538 2010-03-22 Reid Kleckner <reid@kleckner.net>
7541 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7543 (disable_breakpoints_in_shlibs): Likewise.
7545 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7547 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7548 GCC 4.1 debug info generation (GCC PR c++/28460).
7549 (determine_prefix): Likewise.
7551 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7553 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7555 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7557 2010-03-19 Stan Shebs <stan@codesourcery.com>
7559 * ax-gdb.c (gen_fetch): Handle bool.
7560 (gen_usual_unary): Ditto.
7562 (gen_equal): New function.
7563 (gen_less): New function.
7564 (gen_expr_binop_rest): Call them, also return integer type from
7568 2010-03-19 Tom Tromey <tromey@redhat.com>
7570 * jv-lang.c (jv_dynamics_objfile_data_key)
7571 (jv_type_objfile_data_key): New globals.
7572 (class_symtab): Move earlier.
7573 (jv_per_objfile_free): New function.
7574 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7576 Remove ancient #if 1.
7577 (add_class_symbol): Remove redundant declaration.
7578 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7579 (java_link_class_type): Mark as static. Update.
7580 (jv_clear_object_type): New function.
7581 (set_java_object_type): Likewise.
7582 (get_java_object_type): Use set_java_object_type.
7583 (is_object_type): Likewise.
7584 (_initialize_java_language): Register new objfile keys.
7585 (get_java_class_symtab): Add 'gdbarch' parameter.
7586 (add_class_symtab_symbol): Update.
7587 (type_from_class): Update.
7589 2010-03-19 Stan Shebs <stan@codesourcery.com>
7591 * ax-general.c (ax_const_l): Fix a sizing bug.
7593 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7597 2010-03-18 Stan Shebs <stan@codesourcery.com>
7598 Pedro Alves <pedro@codesourcery.com>
7600 * target.h (struct target_ops): New method
7601 to_set_circular_trace_buffer.
7602 (target_set_circular_trace_buffer): New macro.
7603 * target.c (update_current_target): Add
7604 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7606 * remote.c (remote_set_circular_trace_buffer): New function.
7607 (init_remote_ops): Add it to vector.
7608 * tracepoint.h (struct trace_status): New field traceframes_created,
7609 change buffer_size and buffer_free to int.
7610 * tracepoint.c (circular_trace_buffer): New global.
7611 (start_tracing): Send values of disconnected tracing and circular
7612 trace buffer settings.
7613 (set_circular_trace_buffer): New function.
7614 (parse_trace_state): Handle total space and frames created.
7615 (trace_status_command): Display total space and total frames
7617 (trace_save): Write out new status values.
7618 (parse_trace_status): Set traceframe_count, traceframes_created,
7619 buffer_free and buffer_size to -1 by default.
7620 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7621 * NEWS: Mention the circular trace buffer option.
7623 2010-03-18 Tom Tromey <tromey@redhat.com>
7625 * infcmd.c (finish_command_continuation): Wrap print_return_value
7628 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7630 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7631 DIE has a name before creating the associated partial symbol.
7632 (read_func_scope): Emit a complaint if the subprogram does not
7633 have a name or when we can't extract the subprogram PC bounds.
7635 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7637 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7638 instead of selected frame architecture.
7640 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7642 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7643 a valid selected thread, and that it is not running.
7644 (advance_command): Ditto.
7645 (finish_command): Ditto.
7647 2010-03-17 Stan Shebs <stan@codesourcery.com>
7649 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7651 * infcall.c: Include tracepoint.h.
7652 (call_function_by_hand): Disallow calls in tfind mode.
7653 * infcmd.c: Include tracepoint.h.
7654 (ensure_not_tfind_mode): New function.
7655 (continue_1): Call it.
7657 (jump_command): Ditto.
7658 (signal_command): Ditto.
7659 (advance_command): Ditto.
7660 (until_command): Ditto.
7661 (finish_command): Ditto.
7662 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7664 * ax-gdb.h (struct axs_value): New field optimized_out.
7665 (gen_trace_for_var): Add gdbarch argument.
7666 * ax-gdb.c (gen_trace_static_fields): New function.
7667 (gen_traced_pop): Call it, add gdbarch argument.
7668 (gen_trace_for_expr): Update call to it.
7669 (gen_trace_for_var): Ditto, and report optimized-out variables.
7670 (gen_struct_ref_recursive): Check for optimized-out value.
7671 (gen_struct_elt_for_reference): Ditto.
7672 (gen_static_field): Pass gdbarch instead of expression, assume
7673 optimization if field not found.
7674 (gen_var_ref): Set the optimized_out flag.
7675 (gen_expr): Error on optimized-out variable.
7676 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7677 expressions, skip optimized-out variables with computed locations.
7678 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7679 erroring out if location expression missing.
7680 (loclist_tracepoint_var_ref): Don't error out here.
7682 2010-03-17 Tom Tromey <tromey@redhat.com>
7684 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7685 DWARF data is available.
7687 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7689 * symfile.c (generic_load): Reset breakpoints after loading.
7691 2010-03-17 Tom Tromey <tromey@redhat.com>
7693 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7695 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7697 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7698 create_breakpoint call, adjust the parameters.
7700 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 Chandru <chandru@in.ibm.com>
7703 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7704 * valarith.c (value_subscripted_rvalue): Suppress error if
7705 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7707 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7709 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7711 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7713 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7714 before doing the associated thread switch.
7716 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7718 * MAINTAINERS: Update my email address.
7720 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7722 Simplify MI breakpoint setting.
7724 * breakpoint.c (break_command_really): Make nonstatic and
7726 (create_breakpoint): ...this. Rename prior function by this name
7728 (create_breakpoint_sal): ...this.
7729 (create_breakpoints): Rename to...
7730 (create_breakpoints_sal): ...this.
7731 (set_breakpoint): Remove.
7732 * breakpoint.h: Adjust to above changes.
7733 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7735 2010-03-15 Stan Shebs <stan@codesourcery.com>
7737 * ax-gdb.c: Include cp-support.h.
7738 (find_field): Remove.
7739 (gen_primitive_field): New function.
7740 (gen_struct_ref_recursive): New function.
7741 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7743 (gen_static_field): New function.
7744 (gen_struct_elt_for_reference): New.
7745 (gen_namespace_elt): New.
7746 (gen_maybe_namespace_elt): New.
7747 (gen_aggregate_elt_ref): New.
7748 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7750 2010-03-15 Tom Tromey <tromey@redhat.com>
7752 * dwarf2read.c (die_needs_namespace): Also return 0 for
7755 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7758 * cp-support.h: Added char *declaration element to using_direct
7760 (cp_add_using): Added char *declaration argument.
7761 (cp_add_using_directive): Ditto.
7762 (cp_lookup_symbol_imports): made extern.
7763 * cp-namespace.c: Updated with the above changes.
7764 * dwarf2read.c (read_import_statement): Ditto.
7765 (read_namespace): Ditto.
7766 (read_import_statement): Support import declarations.
7767 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7769 Added support for 'declaration_only' search.
7770 (cp_lookup_symbol_namespace): Attempt to search for the name as
7771 is before consideration of imports.
7772 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7773 search at every block level search.
7774 Now takes language argument.
7775 (lookup_symbol_aux): Updated.
7777 2010-03-15 Tom Tromey <tromey@redhat.com>
7779 * c-exp.y (name_not_typename): Add 'operator' clause.
7781 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7783 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7784 * configure: Regenerate.
7786 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7788 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7789 and ".sdynbss". Update the comment.
7791 2010-03-15 Jie Zhang <jie@codesourcery.com>
7793 * MAINTAINERS: Update my email address.
7795 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7797 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7799 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7801 * charset.c [USE_WIN32API]: Include <windows.h>.
7802 (_initialize_charset): Correct type of w32_host_default_charset.
7804 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7806 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7808 2010-03-12 Tom Tromey <tromey@redhat.com>
7811 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7812 in a lexical block does not need a namespace.
7813 (new_symbol) <DW_TAG_variable>: Put extern variables on
7814 list_in_scope in all cases.
7816 2010-03-12 Stan Shebs <stan@codesourcery.com>
7818 * ax-gdb.c (gen_expr): Add shift expressions.
7819 (gen_expr_binop_rest): Ditto.
7821 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7823 * buildsym.c (finish_block): Reset using_directives pointer
7824 after block initialization.
7826 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7828 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7829 * i386-tdep.c (i386_word_names): Likewise.
7831 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7833 * target.c (memory_xfer_partial): Don't use the stack cache if
7834 inspecting trace frames.
7835 * tracepoint.c (finish_tfind_command): Invalidate the target
7838 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7841 for the PIC displacement, print also the displacement value.
7842 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7844 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7846 * remote-mips.c (close_ports, mips_initialize_cleanups)
7847 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7848 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7849 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7850 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7851 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7852 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7853 comments describing each of these functions.
7854 (mips_enter_debug, mips_exit_debug, common_open)
7855 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7856 blank line after the comment describing the function.
7858 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7860 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7861 parameter displacementp. Update comment.
7862 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7863 element exists. Return if svr4_exec_displacement was not successful.
7866 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7867 Daniel Jacobowitz <dan@codesourcery.com>
7869 * solib-svr4.c (read_program_header): Support type == -1 to read
7870 all program headers.
7871 (read_program_headers_from_bfd): New function.
7872 (svr4_static_exec_displacement): Remove and move the comment ...
7873 (svr4_exec_displacement): ... here. Remove variable found. New
7874 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7875 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7876 targets using read_program_headers_from_bfd. Remove the call of
7877 svr4_static_exec_displacement.
7879 2010-03-10 Tom Tromey <tromey@redhat.com>
7881 * dwarf2read.c (struct pubnames_header): Remove.
7882 (_PUBNAMES_HEADER): Remove.
7883 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7884 (struct aranges_header): Remove.
7885 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7886 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7887 (PUBNAMES_SECTION): Remove.
7888 (ARANGES_SECTION): Remove.
7889 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7890 (dwarf2_build_psymtabs): Remove dead code.
7891 (dwarf2_build_psymtabs_easy): Remove.
7893 2010-03-10 Tom Tromey <tromey@redhat.com>
7895 * elfread.c (elf_symfile_read): Don't call
7896 dwarf2_build_frame_info.
7897 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7898 (struct dwarf2_per_objfile) <objfile>: New field.
7899 (dwarf2_has_info): Now idempotent. Set objfile field.
7900 (dwarf2_read_section): Check and set readin field. Call
7902 (dwarf2_build_psymtabs): Don't read all sections.
7903 (read_type_comp_unit_head): Read types section.
7904 (create_debug_types_hash_table): Likewise.
7905 (init_cu_die_reader): Add asserts.
7906 (process_type_comp_unit): Add assert.
7907 (dwarf2_build_psymtabs_hard): Read info section.
7908 (load_partial_comp_unit): Add assert.
7909 (create_all_comp_units): Read info section.
7910 (load_full_comp_unit): Likewise.
7911 (dwarf2_ranges_read): Read ranges section.
7912 (dwarf2_record_block_ranges): Add assert.
7913 (dwarf2_read_abbrevs): Read abbrev section.
7914 (read_indirect_string): Read str section.
7915 (dwarf_decode_line_header): Read line section.
7916 (read_signatured_type_at_offset): Read types section.
7917 (dwarf_decode_macros): Read macinfo section.
7918 (dwarf2_symbol_mark_computed): Read loc section.
7919 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7920 dwarf2_build_frame_info.
7921 (dwarf2_build_frame_info): Unconditionally set
7922 dwarf2_frame_objfile_data on the objfile.
7923 * configure.ac: Check for posix_madvise.
7924 * config.in, configure: Rebuild.
7926 2010-03-10 Tom Tromey <tromey@redhat.com>
7928 * xcoffread.c (xcoff_start_psymtab): Update.
7929 (xcoff_end_psymtab): Update.
7930 * psymtab.c (allocate_psymtab): Remove dead code.
7931 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7933 * mdebugread.c (parse_partial_symbols): Update.
7934 (new_psymtab): Likewise.
7935 * dwarf2read.c (process_psymtab_comp_unit): Update.
7936 (psymtab_to_symtab_1): Update.
7937 * dbxread.c (start_psymtab): Update.
7938 (end_psymtab): Likewise.
7940 2010-03-10 Tom Tromey <tromey@redhat.com>
7942 * xcoffread.c: Include psymtab.h.
7943 (xcoff_sym_fns): Update.
7944 * symtab.h (struct partial_symbol): Remove.
7945 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7946 (struct partial_symtab): Remove.
7947 (PSYMTAB_TO_SYMTAB): Remove.
7948 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7949 (find_pc_sect_psymtab): Remove.
7950 (find_pc_sect_symtab_via_partial): Declare.
7951 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7952 (find_main_psymtab): Remove.
7953 (find_main_filename): Declare.
7954 (fixup_psymbol_section): Remove.
7955 (fixup_section): Declare.
7956 * symtab.c: Include psymtab.h.
7957 (lookup_symtab): Use lookup_symtab method.
7958 (lookup_partial_symtab): Remove.
7959 (find_pc_sect_psymtab_closer): Remove.
7960 (find_pc_sect_psymtab): Remove.
7961 (find_pc_sect_symtab_via_partial): New function.
7962 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7963 (fixup_section): No longer static.
7964 (fixup_psymbol_section): Remove.
7965 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7966 (lookup_global_symbol_from_objfile): Likewise.
7967 (lookup_symbol_aux_psymtabs): Remove.
7968 (lookup_symbol_aux_quick): New function.
7969 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7970 (lookup_partial_symbol): Remove.
7971 (basic_lookup_transparent_type_quick): New function.
7972 (basic_lookup_transparent_type): Use it.
7973 (find_main_psymtab): Remove.
7974 (find_main_filename): New function.
7975 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7976 (find_line_symtab): Use expand_symtabs_with_filename method.
7977 (output_partial_symbol_filename): New function.
7978 (sources_info): Use map_partial_symbol_filenames.
7979 (struct search_symbols_data): New type.
7980 (search_symbols_file_matches): New function.
7981 (search_symbols_name_matches): Likewise.
7982 (search_symbols): Use expand_symtabs_matching method.
7983 (struct add_name_data): Rename from add_macro_name_data.
7984 (add_macro_name): Update.
7985 (add_partial_symbol_name): New function.
7986 (default_make_symbol_completion_list): Use
7987 map_partial_symbol_names.
7988 (struct add_partial_symbol_name): New type.
7989 (maybe_add_partial_symtab_filename): New function.
7990 (make_source_files_completion_list): Use
7991 map_partial_symbol_filenames.
7992 (expand_line_sal): Use expand_symtabs_with_filename method.
7993 * symmisc.c: Include psymtab.h.
7994 (print_objfile_statistics): Use print_stats method.
7995 (dump_objfile): Use dump method.
7996 (dump_psymtab, maintenance_print_psymbols)
7997 (maintenance_info_psymtabs, maintenance_check_symtabs)
7998 (extend_psymbol_list): Remove.
7999 * symfile.h (struct quick_symbol_functions): New struct.
8000 (struct sym_fns) <qf>: New field.
8001 (sort_pst_symbols): Remove.
8002 (increment_reading_symtab): Declare.
8003 * symfile.c: Include psymtab.h.
8004 (compare_psymbols, sort_pst_symbols): Remove.
8005 (psymtab_to_symtab): Remove.
8006 (increment_reading_symtab): New function.
8007 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8009 (set_initial_language): Use find_main_filename.
8010 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8011 (free_named_symtabs): Remove unused code.
8012 (start_psymtab_common, add_psymbol_to_bcache)
8013 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8015 * stack.c: Include psymtab.h, symfile.h.
8016 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8017 * source.h (psymtab_to_fullname): Don't declare.
8018 * source.c: Include psymtab.h.
8019 (select_source_symtab): Use find_last_source_symtab method.
8020 (forget_cached_source_info): Use forget_cached_source_info
8022 (find_and_open_source): No longer static.
8023 (psymtab_to_fullname): Remove.
8024 * somread.c: Include psymtab.h.
8025 (som_sym_fns): Update.
8026 * psympriv.h: New file.
8027 * psymtab.h: New file.
8028 * psymtab.c: New file.
8029 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8030 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8031 * objfiles.c: Include psymtab.h.
8032 (objfile_relocate1): Use relocate method.
8033 (objfile_has_partial_symbols): Use has_symbols method.
8034 * mipsread.c: Include psymtab.h.
8035 (ecoff_sym_fns): Update.
8036 * mi/mi-cmd-file.c: Include psymtab.h.
8037 (print_partial_file_name): New function.
8038 (mi_cmd_file_list_exec_source_files): Use
8039 map_partial_symbol_filenames.
8040 * mdebugread.c: Include psympriv.h.
8041 * machoread.c: Include psympriv.h.
8042 (macho_sym_fns): Update.
8043 * m2-exp.y (yylex): Use lookup_symtab.
8044 * elfread.c: Include psympriv.h.
8045 (elf_sym_fns): Update.
8046 * dwarf2read.c: Include psympriv.h.
8047 * dbxread.c: Include psympriv.h.
8048 (aout_sym_fns): Update.
8049 * cp-support.c: Include psymtab.h.
8050 (read_in_psymtabs): Remove.
8051 (make_symbol_overload_list_qualified): Use
8052 expand_symtabs_for_function method.
8053 * coffread.c: Include psympriv.h.
8054 (coff_sym_fns): Update.
8055 * blockframe.c: Include psymtab.h.
8056 (find_pc_partial_function): Use find_pc_sect_symtab method.
8057 * ada-lang.h (ada_update_initial_language): Update.
8058 * ada-lang.c: Include psymtab.h.
8059 (ada_update_initial_language): Remove 'main_pst' argument.
8060 (ada_lookup_partial_symbol): Remove.
8061 (struct ada_psym_data): New type.
8062 (ada_add_psyms): New function.
8063 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8064 (struct add_partial_datum): New type.
8065 (ada_add_partial_symbol_completions): New function.
8066 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8067 (ada_exception_support_info_sniffer): Update.
8068 * Makefile.in (SFILES): Add psymtab.c.
8069 (COMMON_OBS): Add psymtab.o.
8070 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8072 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8074 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8076 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8079 * cp-namespace.c (cp_add_using): Deleted.
8080 (cp_add_using_directive): Use obstack allocations.
8081 Merged the function cp_add_using into this one.
8082 Added 'struct obstack *' argument.
8083 (cp_scan_for_anonymous_namespaces): Updated.
8084 * cp-support.h: Updated.
8085 * dwarf2read.c (read_import_statement): Updated.
8086 (read_namespace): Updated.
8088 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8090 * windows-nat.c (cygwin_conv_path): Remove old macro.
8092 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8094 * breakpoint.c (condition_command): Handle watchpoint conditions.
8095 (is_hardware_watchpoint): Add comment.
8096 (is_watchpoint): New.
8097 (update_watchpoint): Don't reparse the watchpoint's condition
8100 (watchpoint_check): Use it.
8101 (bpstat_check_watchpoint): Handle it.
8102 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8103 conditions in a frame where it makes sense.
8104 (watch_command_1): Store the innermost block of the condition
8106 (delete_breakpoint): Delete the watchpoint condition expression.
8107 * breakpoint.h (struct bp_location) <cond>: Update comment.
8108 (struct breakpoint): New field `cond_exp_valid_block'.
8110 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8112 Adjust handling of Ada DIEs after dwarf2_physname patch.
8113 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8115 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8116 Pierre Muller <muller@ics.u-strasbg.fr>
8118 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8119 from/to posix/win32.
8120 (windows_make_so): Use non-Cygwin 1.7 specific function.
8121 (windows_create_inferior): Make sure that cygallargs points to
8122 original args in non Cygwin 1.7. case.
8124 2010-03-09 Michael Snyder <msnyder@vmware.com>
8126 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8127 after target_read_memory to get host byte order.
8128 (i386_process_record): Ditto.
8130 2010-03-09 Keith Seitz <keiths@redhat.com>
8132 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8133 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8134 print out const or volatile qualifiers, too.
8135 (c_type_print_args): Add parameters show_artificial and language.
8136 Skip artificial parameters when requested.
8137 Use the appropriate language printer.
8138 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8139 parameters and pass language_c.
8140 * dwarf2read.c (die_list): New file global.
8141 (struct partial_die_info): Update comments for name field.
8142 (pdi_needs_namespace): Renamed to ...
8143 (die_needs_namespace): ... this. Rewrite.
8144 (dwarf2_linkage_name): Remove.
8145 (add_partial_symbol): Do not predicate the call to
8146 partial_die_full_name based on pdi_needs_namespace.
8147 Remove call to cp_check_possible_namespace_symbols and associated
8149 (guess_structure_name): Do not inspect child subprogram DIEs.
8150 (dwarf2_fullname): Update comments.
8151 Use die_needs_namespace to assist in computing the name.
8152 (read_func_scope): Use dwarf2_name to get the DIE's name.
8153 Use dwarf2_physname to get the "linkage name" of the DIE.
8154 (dwarf2_add_member_field): Use dwarf2_physname instead of
8155 dwarf2_linkage_name.
8156 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8157 (determine_class): Remove.
8158 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8160 (new_symbol): Unconditionally call dwarf2_name.
8161 Compute the "linkage name" using dwarf2_physname.
8162 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8163 When determining to scan for anonymous C++ namespaces, ignore
8165 (dwarf2_physname): New function.
8166 (dwarf2_full_name): Move content to new function and call
8168 (dwarf2_compute_name): "New" function.
8169 (_initialize_dwarf2_read): Initialize die_list.
8170 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8172 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8173 without a demangled name.
8174 Print out type information for non-virtual methods.
8175 * linespec.c (decode_line_1): Force ANY string using "::" (or
8176 "." for java) to use decode_compound, and clean up any stray quoting.
8177 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8178 (decode_compound): Stop consuming at an open parenthesis.
8179 Keep template parameters.
8180 Keep any overload information.
8181 Keep keywords like "const".
8182 Remove paren_pointer.
8183 Move is_quoted check from set_flags to here.
8184 Remove #if 0 code from 2000. Ten years is long enough.
8185 (find_method): Before comparing symbol names, canonicalize the string
8187 If a specific overload is requested, find it. Otherwise throw an error.
8188 (find_method_overload_end): New function.
8189 (set_flags): Remove.
8190 (decode_compound): Assume that parentheses are matched.
8192 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8194 * linespec.c (decode_line_1): Keep important keywords like
8195 "const" and "volatile".
8196 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8197 * typeprint.h (c_type_print_args): Add declaration.
8198 * ui-file.c (do_ui_file_obsavestring): New function.
8199 (ui_file_obsavestring): New function.
8200 * ui-file.h (ui_file_obsavestring): Add declaration.
8201 * valops.c (find_overload_match): Resolve the object to
8203 If the object is a data member, search the object for the member
8204 and return with staticp set.
8205 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8206 Do not attempt to extract a function name from non-function types.
8207 If the extracted function name and the original name are the same,
8208 we don't have a C++ method.
8210 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8211 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8213 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8214 and arguments from symbol lookups.
8215 * ax-gdb.c (gen_expr): Likewise.
8216 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8217 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8218 lookup_possible_namespace_symbol): Likewise.
8219 * cp-support.c (read_in_psymtabs): Likewise.
8220 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8221 * language.h (la_lookup_symbol_nonlocal): Likewise.
8222 * scm-valprint.c (scm_inferior_print): Likewise.
8223 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8224 * solib-svr.c (elf_lookup_lib): Likewise.
8225 * solib.c (show_auto_solib_add): Likewise.
8226 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8227 * symmisc.c (maintenance_check_symtabs): Likewise.
8228 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8229 lookup_symbol_aux_local, lookup_symbol_aux_block,
8230 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8231 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8232 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8233 basic_lookup_transparent_type, find_main_psymtab,
8234 lookup_block_symbol): Likewise.
8235 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8236 lookup_symbol_global, lookup_symbol_aux_block,
8237 lookup_symbol_partial_symbol, lookup_block_symbol,
8238 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8240 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8242 * python/python-internal.h: Include symtab.h.
8244 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8245 Pierre Muller <muller@ics.u-strasbg.fr>
8247 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8248 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8251 2010-03-08 Tom Tromey <tromey@redhat.com>
8253 * breakpoint.c (breakpoint_1): Add "QUIT".
8255 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8256 Pedro Alves <pedro@codesourcery.com>
8258 * solib.c (solib_find): Replace extension if
8259 solib_symbols_extension is set in the target gdbarch.
8260 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8261 solib_symbols_extension to "sym".
8262 * gdbarch.sh (solib_symbols_extension): New variable.
8263 (pstring): New function.
8264 * gdbarch.h, gdbarch.c: Regenerate.
8266 2010-03-08 Tom Tromey <tromey@redhat.com>
8270 * utils.c: Include main.h.
8271 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8272 (defaulted_query): Use default answer if `batch_flag'.
8273 * main.h (batch_flag): Declare.
8274 * main.c (batch_flag): New global.
8275 (captured_main): Remove 'batch'. Update.
8277 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8279 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8282 * remote-mips.c (rockhopper_ops): New target_ops struct.
8283 (MON_ROCKHOPPER): New mips_monitor_type.
8284 (read_hex_value): New function.
8285 (mips_request): Send 8-byte values with a 'T' packet. Read the
8286 packet argument as a string and use read_hex_value to parse it.
8287 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8288 (rockhopper_open): New function.
8289 (mips_wait): Read the PC, FP and SP fields as strings. Use
8290 read_hex_value to parse them and mips_set_register to commit them.
8291 (mips_set_register): New function.
8292 (mips_fetch_registers): Do not cast register value to "unsigned"
8293 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8294 (mips_store_registers): Use a 'T' packet to set registers when
8295 using MON_ROCKHOPPER.
8296 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8297 and expect the total to be printed before the entry address.
8298 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8300 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8302 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8303 Change return value to int. Store value fetched in location
8304 addressed by `val'. Use function's return value as success
8305 or failure indicator. Adjust all callers.
8307 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8309 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8311 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8312 Hui Zhu <teawater@gmail.com>
8314 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8315 tmp_to_stopped_data_address.
8316 (record_open): Reset tmp_to_stopped_by_watchpoint and
8317 tmp_to_stopped_data_address.
8318 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8319 to_stopped_data_address.
8321 2010-03-08 Hui Zhu <teawater@gmail.com>
8323 * i386-tdep.c (i386_process_record): Initialize regnum.
8325 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8327 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8328 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8330 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8332 Memory error when reading wrong core file.
8333 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8334 errors while reading the inferior memory, and return zero if
8335 an exception was raised.
8337 2010-03-07 Michael Snyder <msnyder@vmware.com>
8339 * record.c (record_restore): Rename tmpu8 to rectype.
8341 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8342 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8344 (i386_record_push): Rename local tmpulongest to addr.
8346 (i386_process_record): Rename local tmpulongest to addr.
8348 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8351 Rename local variable tmpu8 to opcode8 and regnum.
8353 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8355 * remote.c (remote_get_ada_task_ptid): New function.
8356 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8358 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8360 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8361 block. Define helper macros to reduce ifdefs in code.
8362 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8363 size. Call unadorned GetModuleFileNameEx rather than
8364 GetModuleFileNameEx*.
8365 (windows_make_so): Use __PMAX to denote maximum buffer size and
8366 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8368 (get_image_name): Use __PMAX to denote maximum buffer size.
8369 (handle_load_dll): Likewise.
8370 (windows_pid_to_exec_file): Likewise.
8371 (windows_create_inferior): Add many accommodations for older Cygwin and
8373 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8374 __USEWIDE conditional.
8375 (bad_GetModuleFileNameExA): Likewise.
8376 (_initialize_loadable): Just use real function names without the dyn_
8377 part since they are defined earlier.
8379 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8380 Tom Tromey <tromey@redhat.com>
8382 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8383 (parse_escape): Likewise.
8384 * python/py-utils.c (unicode_to_target_string): Update.
8385 (unicode_to_target_python_string): Update.
8386 (target_string_to_unicode): Update.
8387 * printcmd.c (printf_command): Update.
8388 * p-exp.y (yylex): Update.
8389 * objc-exp.y (yylex): Update.
8390 * mi/mi-parse.c: Include charset.h.
8391 (mi_parse_escape): New function.
8392 (mi_parse_argv): Use it.
8393 * jv-exp.y (yylex): Update.
8394 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8396 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8397 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8398 * gdbarch.c: Rebuild.
8399 * gdbarch.h: Rebuild.
8400 * defs.h (parse_escape): Update.
8401 * cli/cli-setshow.c: Include arch-utils.h.
8402 (do_setshow_command): Update.
8403 * cli/cli-cmds.c (echo_command): Update.
8404 * charset.h (target_charset, target_wide_charset): Update.
8405 * charset.c: Include arch-utils.h.
8406 (target_charset_name): Default to "auto".
8407 (target_wide_charset_name): Likewise.
8408 (show_target_charset_name): Handle "auto".
8409 (show_target_wide_charset_name): Likewise.
8410 (be_le_arch): New global.
8411 (set_be_le_names): Add 'gdbarch' argument.
8412 (validate): Likewise. Don't call set_be_le_names.
8413 (set_charset_sfunc, set_host_charset_sfunc)
8414 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8416 (target_charset): Add 'gdbarch' argument.
8417 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8418 (auto_target_charset_name): New global.
8419 (default_auto_charset, default_auto_wide_charset): New functions.
8420 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8421 for target charsets. Copy result of nl_langinfo. Use GetACP if
8423 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8424 remove 'byte_order' argument. Update.
8425 (classify_type): Likewise.
8426 (c_emit_char): Update.
8427 (c_printchar): Update.
8428 (c_printstr): Update.
8429 (c_get_string): Update.
8430 (evaluate_subexp_c): Update.
8431 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8433 * python/python.c (gdbpy_target_charset): New function.
8434 (gdbpy_target_wide_charset): Likewise.
8435 (GdbMethods): Update.
8438 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8440 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8441 off high address bits.
8443 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8445 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8446 address as UnsignedLongLong, not LongLong.
8448 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8449 Pedro Alves <pedro@codesourcery.com>
8451 * remote-mips.c (gdbthread.h): Include.
8452 (remote_mips_ptid): Declare.
8453 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8454 (common_open): Set inferior_ptid, add it as an inferior, and
8455 as a thread too. Delete FIXME comment regarding start_remote().
8456 (mips_close): Invoke generic_mourn_inferior().
8457 (mips_kill): Make sure that target_mourn_inferior is invoked.
8458 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8459 it's now invoked from mips_close().
8460 (mips_load): Don't null out inferior_ptid. Don't call
8461 clear_symtab_users().
8462 (mips_thread_alive, mips_pid_to_str): New functions.
8463 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8464 to_thread_alive and to_pid_to_str operations.
8466 2010-03-04 Tom Tromey <tromey@redhat.com>
8468 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8469 in DWARF 3 and later.
8470 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8472 2010-03-04 Keith Seitz <keiths@redhat.com>
8474 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8475 If the filename portion of the linespec was quoted, recheck the
8476 remainder for additional quoting.
8477 (locate_first_half): Skip over completer chars, too.
8479 2010-03-04 Tom Tromey <tromey@redhat.com>
8481 * printcmd.c (printf_command): Pass dummy argument to
8484 2010-03-04 Doug Evans <dje@google.com>
8486 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8489 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8491 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8493 * breakpoint.c (update_watchpoint): Create a sentinel location if
8494 the software watchpoint isn't watching any memory.
8495 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8497 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8499 * utils.c (fputs_maybe_filtered): Check if there's already a top
8500 level interpreter before dereferencing it. If there isn't one,
8501 don't paginate either.
8503 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8505 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8506 the state right when single stepping.
8507 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8508 Get the next PC along with the instruction state.
8509 (thumb_get_next_pc): Remove.
8510 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8512 2010-03-04 Hui Zhu <teawater@gmail.com>
8514 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8516 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8518 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8519 top level interpreter is MI.
8521 2010-03-03 Stan Shebs <stan@codesourcery.com>
8523 * remote.c (remote_download_tracepoint): Iterate over locations.
8524 * tracepoint.c (validate_actionline): Ditto.
8525 (encode_actions): Add location argument.
8526 (trace_dump_command): Check all locations to see if stepping
8529 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8530 Eli Zaretskii <eliz@gnu.org>
8532 * NEWS: Add X86 general purpose registers section.
8534 2010-03-03 Tom Tromey <tromey@redhat.com>
8537 * varobj.c (install_new_value): Handle case where new print_value
8540 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8543 * printcmd.c (printf_command): Print end of format string using
8546 2010-03-02 Tom Tromey <tromey@redhat.com>
8548 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8549 * defs.h (read_command_lines_1): Add missing 'void'.
8550 * cli/cli-script.c (recurse_read_control_structure): Add missing
8552 (read_next_line): Likewise.
8553 (read_command_lines_1): Likewise.
8555 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8557 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8558 store backchain as part of prologue.
8560 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8562 * progspace.c (update_address_spaces): Update inferior address spaces
8565 2010-03-02 Doug Evans <dje@google.com>
8567 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8568 lowpc,highpc args to addrmap_set_empty.
8570 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8572 * amd64-tdep.c (amd64_byte_names): New.
8573 (amd64_word_names): Likewise.
8574 (amd64_dword_names): Likewise.
8575 (amd64_pseudo_register_name): Likewise.
8576 (amd64_pseudo_register_read): Likewise.
8577 (amd64_pseudo_register_write): Likewise.
8578 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8579 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8580 set_gdbarch_pseudo_register_write and
8581 set_tdesc_pseudo_register_name. Don't call
8582 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8584 * i386-tdep.c (i386_num_mmx_regs): Removed.
8585 (i386_num_pseudo_regs): Likewise.
8586 (i386_byte_names): New.
8587 (i386_word_names): Likewise.
8588 (i386_byte_regnum_p): Likewise.
8589 (i386_word_regnum_p): Likewise.
8590 (i386_mmx_regnum_p): Updated.
8591 (i386_pseudo_register_name): Make it global. Handle byte and
8592 word pseudo-registers.
8593 (i386_pseudo_register_read): Likewise.
8594 (i386_pseudo_register_write): Likewise.
8595 (i386_pseudo_register_type): Handle byte, word and dword
8597 (i386_register_reggroup_p): Don't include pseudo
8598 registers, except for MXX, in any register groups. Don't
8599 include pseudo byte, word, dword registers in general_reggroup.
8600 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8601 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8602 pseudo-registers after word pseudo-registers. Call
8603 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8605 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8606 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8608 (i386_byte_regnum_p): New.
8609 (i386_word_regnum_p): Likewise.
8610 (i386_dword_regnum_p): Likewise.
8611 (i386_pseudo_register_name): Likewise.
8612 (i386_pseudo_register_read): Likewise.
8613 (i386_pseudo_register_write): Likewise.
8615 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8617 * target-descriptions.c (tdesc_type): Remove
8618 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8619 (tdesc_predefined_types): Likewise.
8620 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8621 if flag name is empty.
8622 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8624 * features/i386/32bit-core.xml: Define i386_eflags.
8625 * features/i386/64bit-core.xml: Likewise.
8627 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8628 * features/i386/64bit-sse.xml: Likewise.
8630 * features/i386/amd64-linux.c: Regenerated.
8631 * features/i386/amd64.c: Likewise.
8632 * features/i386/i386-linux.c: Likewise.
8633 * features/i386/i386.c: Likewise.
8635 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8637 * gdbtypes.c (append_composite_type_field_raw): New.
8638 (append_composite_type_field_aligned): Use the new function.
8639 * gdbtypes.h (append_composite_type_field_raw): Declare.
8640 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8641 (struct tdesc_type_flag): New type.
8642 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8643 kind. Add size to u.u. Add u.f for flags.
8644 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8645 (tdesc_free_type): Likewise.
8646 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8647 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8648 (tdesc_add_bitfield, tdesc_add_flag): New.
8649 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8650 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8651 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8652 current_type. Add current_type_size and current_type_is_flags.
8653 (tdesc_start_union): Clear the new fields.
8654 (tdesc_start_struct, tdesc_start_flags): New.
8655 (tdesc_start_field): Handle struct fields, including bitfields.
8656 (field_attributes): Make type optional. Add start and end.
8657 (union_children): Rename to struct_union_children.
8658 (union_attributes): Rename to struct_union_attributes. Add optional
8660 (flags_attributes): New.
8661 (feature_children): Add struct and flags.
8662 * features/gdb-target.dtd: Add flags and struct to features.
8663 Make field type optional. Add field start and end.
8665 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8667 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8668 (amd64_linux_read_description): Likewise.
8669 (_initialize_amd64_linux_nat): Set to_read_description to
8670 amd64_linux_read_description.
8672 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8673 (amd64_linux_register_name): Removed.
8674 (amd64_linux_register_type): Likewise.
8675 (amd64_linux_core_read_description): New.
8676 (amd64_linux_init_abi): Set target description to
8677 tdesc_amd64_linux if needed. Support orig_rax in target
8678 description. Don't call set_gdbarch_register_name nor
8679 set_gdbarch_register_type. Call
8680 set_gdbarch_core_read_description.
8681 (_initialize_amd64_linux_tdep): Call
8682 initialize_tdesc_amd64_linux.
8684 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8686 * amd64-tdep.c: Include "features/i386/amd64.c".
8687 (amd64_register_names): Removed.
8688 (amd64_register_name): Likewise.
8689 (amd64_register_type): Likewise.
8690 (amd64_init_abi): Set num_core_regs and register_names. Set
8691 target description to tdesc_amd64 if needed. Don't call
8692 set_gdbarch_register_name nor set_gdbarch_register_type.
8693 (_initialize_amd64_tdep): New.
8695 * i386-linux-nat.c (i386_linux_read_description): New.
8696 (_initialize_i386_linux_nat): Set to_read_description to
8697 i386_linux_read_description.
8699 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8700 (i386_linux_register_name): Removed.
8701 (i386_linux_core_read_description): New.
8702 (i386_linux_read_description): Likewise.
8703 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8704 Set target description to tdesc_i386_linux if needed. Support
8705 orig_eax. Set register_reggroup_p. Call
8706 set_gdbarch_core_read_description.
8707 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8709 * i386-linux-tdep.h (tdesc_i386_linux): New.
8711 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8714 * i386-tdep.c: Include "features/i386/i386.c".
8715 (i386_register_names): Make it const.
8716 (i386_mmx_names): Likewise.
8717 (i386_num_register_names): Removed.
8718 (i386_register_name): Likewise.
8719 (i386_eflags_type): Likewise.
8720 (i386_mxcsr_type): Likewise.
8721 (i386_sse_type): Likewise.
8722 (i386_register_type): Likewise.
8723 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8724 (i386_pseudo_register_name): New.
8725 (i386_pseudo_register_type): Likewise.
8726 (i386_mmx_type): Make it static.
8727 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8728 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8729 call set_gdbarch_register_name nor set_gdbarch_register_type.
8730 Set register_reggroup_p. Set target description to tdesc_i386
8731 if needed. Call set_tdesc_pseudo_register_type,
8732 set_tdesc_pseudo_register_name and tdesc_use_registers.
8733 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8734 initialize_tdesc_x86_64.
8736 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8737 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8738 register_names, tdesc and register_reggroup_p.
8739 (I386_NUM_FREGS): Removed.
8740 (i386_eflags_type): Likewise.
8741 (i386_mxcsr_type): Likewise.
8742 (i386_mmx_type): Likewise.
8743 (i386_sse_type): Likewise.
8744 (i386_register_name): Likewise.
8745 (i386_regnum): Add I386_MXCSR_REGNUM.
8746 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8748 * i387-tdep.h (I387_NUM_REGS): New.
8750 * regformats/i386/i386-linux.dat: Generated.
8751 * regformats/i386/i386.dat: Likewise.
8752 * regformats/i386/amd64-linux.dat: Likewise.
8753 * regformats/i386/amd64.dat: Likewise.
8755 * regformats/reg-i386-linux.dat: Removed.
8756 * regformats/reg-i386.dat: Likewise.
8757 * regformats/reg-x86-64-linux.dat: Likewise.
8758 * regformats/reg-x86-64.dat: Likewise.
8760 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8762 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8763 cygwin_conv_path API rather than the deprecated
8764 cygwin_conv_to_full_posix_path.
8766 (GetModuleFileNameExA): Undefine for Cygwin.
8767 (GetModuleFileNameExW): Define for Cygwin.
8768 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8769 Call GetModuleFileNameExW and convert path to POSIX using
8771 (windows_make_so): Always define p. Drop unused variable m.
8772 Don't use Win32 functions to check file existance, rather use
8773 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8774 Use canonicalize_file_name to get full path.
8775 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8776 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8777 use correct target buffer size in call to WideCharToMultiByte.
8778 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8779 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8780 (windows_create_inferior): Convert all paths and arguments to wchar_t
8781 and use CreateProcessW on Cygwin.
8782 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8783 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8784 (bad_GetModuleFileNameExW): Define for Cygwin.
8785 (_initialize_loadable): Load GetModuleFileNameExW into
8786 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8788 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8791 * python/py-frame.c (frapy_read_var): Add block argument and logic
8792 to cope with user provided blocks.
8794 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8796 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8799 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8801 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8802 (COMMON_OBS): ... to here since it's used unconditionally.
8803 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8806 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8808 * mips-linux-tdep.c: Update struct sigframe comments.
8809 (SIGFRAME_CODE_OFFSET): Delete macro.
8810 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8812 (mips_linux_n32n64_sigframe_init): Same.
8814 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8816 * remote-mips.c (mips_load): Don't use pseudo-register when
8817 invalidating regcache.
8819 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8821 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8823 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8825 * NEWS: Add "New targets" section, and mention ARM Symbian
8828 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8830 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8831 add ADDR_SIZE member.
8832 (allocate_piece_closure): Update.
8833 (copy_pieced_value_closure): Likewise.
8834 (dwarf2_evaluate_loc_desc): Likewise.
8835 (read_pieced_value): Use DWARF address size instead of
8836 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8838 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8839 Tom Tromey <tromey@redhat.com>
8841 * python/py-type.c (typy_lookup_typename): Add in block argument.
8842 If provided restrict lookup to specified blocks.
8843 (gdbpy_lookup_type): Likewise.
8844 (typy_lookup_type): Likewise.
8846 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8851 * arm-symbian-tdep.c: New.
8852 * configure.tgt (arm*-*-symbianelf*): New target.
8853 (*-*-symbianelf*): New OS.
8854 * osabi.c (gdb_osabi_names): Add Symbian.
8855 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8856 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8857 (ALLDEPFILES): Add arm-symbian-tdep.c.
8859 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8861 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8863 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8865 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8867 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8868 Tom Tromey <tromey@redhat.com>
8869 Thiago Jung Bauermann <bauerman@br.ibm.com>
8871 * python/python.c (_initialize_python): Call
8872 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8873 gdbpy_initialize_blocks.
8874 * python/python-internal.h: Declare struct symbol, block and
8875 symtab_and_line. Declare block_object_type and
8877 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8878 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8879 (symbol_to_symbol_object, block_to_block_object)
8880 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8881 (gdbpy_initialize_blocks ): Declare.
8882 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8883 (frapy_select): Add methods.
8884 (frapy_read_var): Add symbol branch.
8885 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8887 (SUBDIR_PYTHON_SRCS): Likewise.
8888 (py-symbol.o): New rule.
8889 (py-symtab.o): Likewise.
8890 (py-block.o): Likewise.
8891 * python/py-symbol.c: New file.
8892 * python/py-symtab.c: Likewise.
8893 * python/py-block.c: Likewise.
8895 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8899 * inferior.h (prepare_for_detach): Declare.
8900 (struct inferior) <detaching>: New field.
8901 * infrun.c (prepare_for_detach): New.
8902 (handle_inferior_event) <random signal>: Don't stop if detaching.
8903 * target.c (target_detach): Call prepare_for_detach.
8905 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8907 Per-process displaced stepping queue.
8909 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8910 (displaced_step_gdbarch, displaced_step_closure,
8911 (displaced_step_original, displaced_step_copy): Move globals to
8913 (struct displaced_step_inferior_state): ... new structure.
8914 (displaced_step_inferior_states): New global.
8915 (get_displaced_stepping_state, add_displaced_stepping_state)
8916 (remove_displaced_stepping_state, infrun_inferior_exit): New
8918 (displaced_step_clear): Add displaced_step_inferior_state
8919 parameter, and adjust to handle it.
8920 (displaced_step_clear_cleanup): Parameter is now a
8921 displaced_step_inferior_state. Adjust.
8922 (displaced_step_prepare): Adjust.
8923 (displaced_step_fixup, displaced_step_fixup)
8924 (infrun_thread_ptid_changed, resume): Adjust.
8925 (init_wait_for_inferior): Don't call displaced_step_clear.
8926 (infrun_thread_stop_requested): Rewrite.
8927 (_initialize_infrun): Install infrun_inferior_exit as
8928 inferior_exit observer.
8930 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8932 * inferior.h (ptid_match): Declare.
8933 * infrun.c (ptid_match): New.
8934 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8935 (handle_notification): Add debug output.
8936 * linux-nat.c (ptid_match): Delete.
8938 2010-02-24 David S. Miller <davem@davemloft.net>
8940 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8941 * syscalls/sparc-linux.xml: New.
8942 * syscalls/sparc64-linux.xml: New.
8943 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8944 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8945 (sparc32_linux_get_syscall_number): New function.
8946 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8947 syscall number fetcher.
8948 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8949 (sparc64_linux_get_syscall_number): New function.
8950 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8951 syscall number fetcher.
8953 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8957 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8958 * inferior.c (add_inferior_silent): Notify inferior_added
8960 (delete_inferior_1): Notify inferior_removed observer.
8961 (exit_inferior_1): Pass inferior, not pid, to observer.
8962 (inferior_appeared): Likewise.
8963 (add_inferior_with_spaces): New.
8964 (add_inferior_command): Use the above.
8965 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8968 * inflow.c (inflow_inferior_exit): Likewise.
8969 * jit.c (jit_inferior_exit_hook): Likewise.
8971 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8973 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8974 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8975 (report_initial_inferior): New.
8976 (mi_inferior_removed): Register the above. Make sure
8977 inferior_added observer is called on the first inferior.
8978 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8979 inferior number, not pid.
8980 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8982 * mi/mi-main.c (current_context): New.
8983 (proceed_thread_callback): Use typed closure.
8984 Proceed everything if pid is 0. Most implementation split into
8985 (proceed_thread): ... this.
8986 (run_one_inferior): New.
8987 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8988 Adjust for multiexec behaviour.
8989 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8990 (mi_cmd_execute): Handle the 'thread-group' option here.
8991 Do some extra checks.
8992 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8994 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8996 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8998 Make -exec-run a proper MI commands.
9000 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9001 * mi/mi-cmds.c (mi_cmds): Adjust.
9002 * mi/mi-main.c (mi_cmd_exec_run): New.
9004 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9005 Stan Shebs <stan@codesourcery.com>
9007 * tracepoint.h (set_traceframe_number)
9008 (cleanup_restore_current_traceframe): Declare.
9009 * tracepoint.c (set_traceframe_number): New.
9010 (struct current_traceframe_cleanup): New.
9011 (do_restore_current_traceframe_cleanup)
9012 (restore_current_traceframe_cleanup_dtor)
9013 (make_cleanup_restore_current_traceframe): New.
9014 * infrun.c: Include tracepoint.h.
9015 (fetch_inferior_event): Switch out and in of tfind mode.
9017 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9019 * breakpoint.c (breakpoint_init_inferior): Also delete
9020 bp_shlib_event breakpoints.
9021 * solib-frv.c (enable_break): Remove call to
9022 remove_solib_event_breakpoints.
9023 * solib-svr4.c (enable_break): Ditto.
9024 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9025 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9026 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9027 * solib-spu.c (spu_enable_break): Ditto.
9029 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9031 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9033 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9035 * varobj.c (varobj_update): Avoid non-constants in initializers.
9037 2010-02-23 Tom Tromey <tromey@redhat.com>
9039 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9040 handle big-endian values.
9041 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9043 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9048 * breakpoint.c (insert_bp_location): If inserting the read
9049 watchpoint failed, fallback to an access watchpoint.
9050 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9051 if the value changed, if not watching the same memory for writes.
9052 (watchpoint_locations_match): Add comment.
9053 (update_global_location_list): Copy the location's watchpoint type.
9054 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9055 handle read watchpoints here.
9056 (i386_insert_watchpoint): Read watchpoints aren't supported.
9057 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9059 * target.h (target_insert_watchpoint): Update description.
9061 2010-02-19 Tom Tromey <tromey@redhat.com>
9063 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9064 * m2-typeprint.c (m2_print_type): Update.
9065 * gdbtypes.c (recursive_dump_type): Update.
9066 (copy_type_recursive): Update.
9067 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9068 (c_type_print_base): Update.
9069 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9071 (struct cplus_struct_type) <ntemplate_args>: Remove.
9072 <struct template_arg>: Remove.
9073 <is_dynamic>: Move earlier.
9074 (TYPE_TEMPLATE_ARGS): Remove.
9075 (TYPE_NTEMPLATE_ARGS): Remove.
9076 (TYPE_TEMPLATE_ARG): Remove.
9078 2010-02-19 Tom Tromey <tromey@redhat.com>
9080 PR c++/8693, PR c++/9496:
9081 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9082 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9083 write_dollar_variable. Don't try to classify NAME tokens.
9084 (token_and_value): New type.
9085 (token_fifo, popping, name_obstack): New globals.
9086 (classify_name): New function.
9087 (classify_inner_name): Likewise.
9089 (VARIABLE): Now has type sval.
9090 (exp : VARIABLE): Call write_dollar_variable.
9091 (qualified_name): Use TYPENAME, not typebase. Add production for
9092 multiple "::" instances.
9093 (variable): Use name_not_typename.
9094 (qualified_type): Remove.
9097 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9099 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9100 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9101 found by bfd_get_section_by_name.
9102 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9104 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9106 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9107 7.0 section" into "Changes in 7.1".
9109 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9111 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9112 * version.in: Bump version to 7.1.50.20100219-cvs.
9114 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9116 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9117 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9119 2010-02-17 Tom Tromey <tromey@redhat.com>
9121 * NEWS: Add Python API Improvements section.
9123 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9125 * NEWS: Correct typo.
9127 2010-02-17 Tom Tromey <tromey@redhat.com>
9129 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9131 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9133 * symfile.c (build_section_addr_info_from_objfile): Include sections
9134 only if they are SEC_ALLOC or SEC_LOAD.
9136 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9139 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9140 of ULONGEST for address size.
9142 2010-02-17 Tom Tromey <tromey@redhat.com>
9144 * NEWS: Add C++ improvements section.
9146 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9148 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9149 PyThreadState_Swap): Avoid "statement with no effect" warning.
9151 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9153 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9154 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9156 2010-02-17 Tristan Gingold <gingold@adacore.com>
9157 Petr Hluzin <petr.hluzin@gmail.com>
9159 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9160 gdb_assert. Fix info->size for SIG prologue.
9162 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9164 * infcmd.c (show_inferior_tty_command): Check for NULL.
9165 Correct output message.
9167 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9169 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9170 FUNCTION contains parentheses. Improve removal of a trailing
9173 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9175 * gcore.c (do_bfd_delete_cleanup): New function.
9176 (gcore_command): Use it. Discard the cleanup after success.
9177 (gcore_copy_callback): Delete dead code.
9179 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9181 * symfile.c (addr_info_make_relative): Always use
9182 find_lowest_section.
9184 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9186 * NEWS: Added entry for namespace fixes.
9188 2010-02-15 Tom Tromey <tromey@redhat.com>
9190 * dwarf2read.c (guess_structure_name): Allocate name on the
9193 2010-02-15 Tom Tromey <tromey@redhat.com>
9195 * c-typeprint.c (c_type_print_base): Reverse order of test.
9197 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9199 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9200 initialize it from ELF BFD. Extend the prelink condition by it.
9202 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9204 * defs.h (parse_pid_to_attach): New.
9205 * utils.c (parse_pid_to_attach): New.
9206 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9207 * gnu-nat.c (gnu_attach): Likewise.
9208 * nto-procfs.c (procfs_attach): Likewise.
9209 * procfs.c (procfs_attach): Likewise.
9210 * windows-nat.c (windows_attach): Likewise.
9211 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9212 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9213 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9216 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9218 * MAINTAINERS: Add myself for write after approval privileges.
9220 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9222 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9225 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9227 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9228 only if INFO_VERBOSE.
9230 2010-02-12 Tomas Holmberg <th@virtutech.com>
9232 * mi/mi-main.c: Added the --reverse flag to the following MI
9233 commands: exec-continue, exec-finish, exec-next, exec-step,
9234 exec-next-instruction, exec-step-instruction. This is to
9235 support reverse execution over the MI interface to gdb.
9237 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9239 * tracepoint.c (_initialize_tracepoint): Specify that the address
9240 range of `tfind outsize' is exclusive, and that the address range
9241 of `tfind range' is inclusive, in the commands' help strings.
9243 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9245 Spurious "dll not found" error messages on x64-windows.
9246 * windows-nat.c: Add include of complaints.h.
9247 (handle_unload_dll): Change dll-not-found error into a complaint.
9249 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9251 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9252 bp_tracepoint and bp_fast_tracepoint, not
9253 bp_loc_software_breakpoint.
9254 (update_global_location_list): Tracepoints are never duplicates of
9257 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9259 * breakpoint.c (break_command_really): Change return type to int.
9260 Return false if no breakpoint was created, true otherwise.
9261 (trace_command): Don't set the tracepoint count if no tracepoint
9263 (ftrace_command): Ditto.
9264 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9265 created in the breakpoints table.
9267 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9268 Ulrich Weigand <uweigand@de.ibm.com>
9270 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9272 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9274 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9275 the offset value isn't of integral type.
9277 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9279 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9282 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9284 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9285 non-subscriptable types.
9286 * valarith.c (binop_types_user_defined_p): New, abstracted out
9288 (binop_user_defined_p): ... this.
9289 * value.h (binop_types_user_defined_p): Declare.
9291 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9293 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9294 Merge uploaded TSVs before merging uploaded tracepoints.
9296 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9298 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9300 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9302 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9303 whitespace character after a dot in comment.
9304 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9306 (list_args_or_locals): For the 'all' (that is
9307 -stack-list-variables) case, always output list of tuples.
9308 Output 'arg' field if variable is argument.
9310 2010-02-10 Tom Tromey <tromey@redhat.com>
9312 * parser-defs.h (parser_debug): Declare.
9313 * parse.c (_initialize_parse): Install "debug parser" set/show
9315 (parser_debug): New global.
9316 (show_parserdebug): New function.
9317 * c-exp.y (c_parse): Set yydebug.
9319 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9321 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9322 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9323 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9325 (tdesc_find_type): New.
9326 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9327 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9329 * target-descriptions.h (tdesc_find_type): New.
9331 2010-02-10 Michael Snyder <msnyder@vmware.com>
9333 * gdb-gdb.py: Comment fix.
9335 2010-02-09 Tristan Gingold <gingold@adacore.com>
9337 * machoread.c (macho_symfile_relocate): New function.
9338 (macho_sym_fns): Use macho_symfile_relocate instead of
9339 default_symfile_relocate.
9340 (macho_oso_data): New type.
9341 (current_oso): New variable.
9342 (macho_add_oso_symfile): Do not compute section_addr_info, but
9343 instead set vma of sections.
9344 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9345 Set and clear current_oso.
9347 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9349 Wrong type description for tagged type parameter.
9350 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9351 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9352 reference to a tagged type.
9354 2010-02-09 Tristan Gingold <gingold@adacore.com>
9356 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9357 brothers of the parent.
9359 2010-02-08 Tom Tromey <tromey@redhat.com>
9363 * valops.c (search_struct_field): Make 'name' const.
9364 (search_struct_method): Likewise.
9365 (find_method_list): Make 'method' const.
9366 (value_struct_elt): Make 'name' and 'err' const.
9367 (value_find_oload_method_list): Make 'method' const.
9368 (find_overload_match): Make 'name' const.
9369 * eval.c (evaluate_subexp_standard): New locals function,
9371 <OP_FUNCALL>: Handle OP_SCOPE specially.
9373 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9375 * infrun.c (handle_inferior_event): Do not look up regcache
9376 for exited processes.
9378 2010-02-08 Chris Moller <moller@mollerware.com>
9381 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9382 warn if found, and assume length = 1.
9384 2010-02-08 Chris Moller <cmoller@redhat.com>
9387 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9388 (cp_print_static_field) Fix use of obstacks.
9390 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9392 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9393 resumed LWPs as resumed.
9394 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9395 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9396 of throwing an internal error. If an LWP of a process we're not
9397 waiting for reports a signal, don't force collecting a SIGSTOP,
9398 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9399 go through all LWPs cancelling breakpoints in non-stop mode.
9400 (resume_stopped_resumed_lwps): New.
9401 (linux_nat_wait): Use it.
9403 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9405 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9406 i386/amd64 and i386/amd64-linux.
9407 (i386/i386-expedite): New.
9408 (i386/i386-linux-expedite): Likewise.
9409 (i386/amd64-expedite):Likewise.
9410 (i386/amd64-linux-expedite): Likewise.
9411 ($(outdir)/i386/i386-linux.dat): Likewise.
9412 ($(outdir)/i386/amd64.dat): Likewise.
9413 ($(outdir)/i386/amd64-linux.dat): Likewise.
9415 * features/i386/32bit-core.xml: New.
9416 * features/i386/32bit-linux.xml: Likewise.
9417 * features/i386/32bit-sse.xml: Likewise.
9418 * features/i386/64bit-core.xml: Likewise.
9419 * features/i386/64bit-linux.xml: Likewise.
9420 * features/i386/64bit-sse.xml: Likewise.
9421 * features/i386/i386-linux.xml: Likewise.
9422 * features/i386/i386.xml: Likewise.
9423 * features/i386/amd64-linux.xml: Likewise.
9424 * features/i386/amd64.xml: Likewise.
9425 * features/i386/i386-linux.c: Likewise.
9426 * features/i386/i386.c: Likewise.
9427 * features/i386/amd64-linux.c: Likewise.
9428 * features/i386/amd64.c: Likewise.
9430 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9433 * cp-support.h: Added char* alias element to using_direct data
9435 (cp_add_using): Added char* alias argument.
9436 (cp_add_using_directive): Ditto.
9437 * cp-namespace.c: Updated with the above changes.
9438 (cp_lookup_symbol_imports): Check for aliases.
9439 * dwarf2read.c (read_import_statement): Figure out local alias
9440 for the import and pass it on to cp_add_using.
9441 (read_namespace): Pass alias argument to cp_add_using.
9443 2010-02-05 Hui Zhu <teawater@gmail.com>
9445 * defs.h (gdb_bfd_errmsg): New extern.
9446 * exec.c (exec_file_attach): Change bfd_errmsg to
9448 * utils.c (AMBIGUOUS_MESS1): New macro.
9449 (AMBIGUOUS_MESS2): New macro.
9450 (gdb_bfd_errmsg): New function.
9452 2010-02-04 Doug Evans <dje@google.com>
9454 * solib-svr4.c (enable_break): Add comment.
9456 2010-02-04 Anthony Green <green@moxielogic.com>
9458 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9461 2010-02-04 Tom Tromey <tromey@redhat.com>
9463 * valops.c (search_struct_field): Account for
9464 value_embedded_offset. Fix check for virtual base past the end of
9465 the object. Use value_copy when making a slice of the value.
9467 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9470 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9471 only if gdb_stdout is a tty.
9473 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9475 * target-descriptions.c: Include "osabi.h".
9476 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9479 2010-02-04 Tristan Gingold <gingold@adacore.com>
9481 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9482 (macho_symtab_read): Adjust calls to macho_add_oso.
9483 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9484 (macho_symfile_read): Adjust call to macho_oso_symfile.
9485 (macho_new_init): Move this function after declarations.
9486 (macho_symfile_init): Ditto.
9487 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9488 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9490 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9492 Include MI command in remotelog.
9494 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9496 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9498 * remote.c (remote_state): Remove gdbarch.
9499 (init_remote_state): Don't set gdbarch.
9500 (remote_query_supported): Pass target_gdbarch instead of
9501 rs->gdbarch to gdbarch_qsupported.
9503 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9505 * gdbarch.sh: Add qsupported.
9507 * gdbarch.c: Regenerated.
9508 * gdbarch.h: Likewise.
9510 * remote.c (remote_state): Add gdbarch.
9511 (init_remote_state): Set gdbarch.
9512 (remote_query_supported): Support gdbarch_qsupported.
9514 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9516 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9517 __FreeBSD_kernel_version.
9519 2010-02-03 Tristan Gingold <gingold@adacore.com>
9521 * symfile.h (struct sym_fns): Add sym_relocate field.
9522 (default_symfile_relocate): New prototype.
9523 (symfile_relocate_debug_section): First argument is now an objfile.
9524 * symfile.c (default_symfile_relocate): Rename from
9525 symfile_relocate_debug_section, first argument is now an objfile.
9526 (symfile_relocate_debug_section): New function.
9527 * coffread.c (coff_sym_fns): Set sym_relocate field.
9528 * somread.c (som_sym_fns): Ditto.
9529 * mipsread.c (ecoff_sym_fns): Ditto.
9530 * machoread.c (macho_sym_fns): Ditto.
9531 * elfread.c (elf_sym_fns): Ditto.
9532 * dwarf2read.c (dwarf2_read_section): Ditto.
9533 * xcoffread.c (xcoff_sym_fns): Ditto.
9534 * dbxread.c (aout_sym_fns): Ditto.
9535 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9536 (elfstab_build_psymtabs): Ditto.
9538 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9540 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9542 2010-02-02 Tom Tromey <tromey@redhat.com>
9544 * valops.c (value_cast_structs): Try downcasting using the RTTI
9547 2010-02-02 Tom Tromey <tromey@redhat.com>
9549 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9550 (gnuv2_baseclass_offset): Now static.
9551 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9552 * gnu-v2-abi.h: Remove.
9554 2010-02-02 Tom Tromey <tromey@redhat.com>
9556 * m2-typeprint.c (m2_record_fields): Don't use
9558 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9559 (struct main_type) <flag_declared_class>: New field.
9560 (struct cplus_struct_type) <declared_type>: Remove.
9561 <ntemplate_args>: Move earlier.
9562 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9563 (DECLARED_TYPE_TEMPLATE): Remove.
9564 (TYPE_DECLARED_TYPE): Remove.
9565 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9566 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9567 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9570 2010-02-02 Tom Tromey <tromey@redhat.com>
9572 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9573 * valops.c (search_struct_field): Compute nbases after calling
9575 (check_field): Call CHECK_TYPEDEF.
9576 * cp-valprint.c (cp_print_value): Pass correct address to
9577 baseclass_offset. Fix check for virtual base past the end of the
9578 object. Don't offset address passed to cp_print_value_fields or
9579 apply_val_pretty_printer.
9580 (cp_print_value_fields): Fix call to val_print.
9581 (cp_print_value_fields_rtti): New function.
9582 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9583 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9585 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9587 * language.h (struct language_defn) <la_val_print>: Document.
9588 * c-lang.h (cp_print_value_fields_rtti): Declare.
9590 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9593 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9594 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9595 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9597 2010-02-01 Michael Matz <matz@suse.de>
9598 Daniel Jacobowitz <dan@codesourcery.com>
9600 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9601 functions use a frame pointer.
9603 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9605 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9606 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9607 * config/djgpp/fnchange.lst: Add translations for
9608 symbol-without-target_section.exp and symbol-without-target_section.c.
9610 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9612 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9613 (remote_breakpoint_for_pc): Correct invalid_p check.
9614 * gdbarch.c: Regenerated.
9616 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9618 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9620 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9621 (extend_buffer_earlier): New function.
9622 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9623 (arm_adjust_breakpoint_address): New function.
9624 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9626 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9628 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9629 (arm_linux_thumb2_le_breakpoint): New constants.
9630 (arm_linux_init_abi): Set thumb2_breakpoint and
9631 thumb2_breakpoint_size.
9632 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9633 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9634 Implement support for single stepping through IT blocks if
9635 a 32-bit Thumb breakpoint instruction is available.
9636 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9637 is available, use it when needed.
9638 (arm_remote_breakpoint_from_pc): New function.
9639 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9640 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9641 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9643 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9645 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9646 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9647 * gdbarch.c, gdbarch.h: Regenerated.
9648 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9649 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9650 gdbarch_remote_breakpoint_from_pc.
9652 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9654 * infrun.c (prepare_to_proceed): Handle other signals which might
9656 (handle_inferior_event): Move the check for unusual breakpoint
9659 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9661 amd64 - function returning record with field straddling 2 registers.
9662 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9663 a record of length <= 16 in which a field straddles the two
9666 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9668 Implement return values on amd64-windows.
9669 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9670 (amd64_windows_return_value): New function.
9671 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9672 amd64_windows_return_value.
9674 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9676 amd64-windows: 32 bytes allocated on stack by caller for integer
9677 parameter registers.
9678 * i386-tdep.h (struct gdbarch_tdep): Add new field
9679 integer_param_regs_saved_in_caller_frame.
9680 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9681 tdep->integer_param_regs_saved_in_caller_frame to 1.
9682 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9683 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9685 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9687 amd64-windows: memory args passed by pointer during function calls.
9688 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9689 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9690 where tdep->memory_args_by_pointer is non-zero.
9691 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9692 tdep->memory_args_by_pointer to 1.
9694 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9696 amd64-windows: Integer parameters in function calls.
9697 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9699 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9700 call_dummy_integer_regs, and classify.
9701 * amd64-tdep.h (amd64_classify): Add declaration.
9702 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9703 (amd64_reg_class): Delete, moved to i386-tdep.h.
9704 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9705 Replace call to amd64_classify by call to tdep->classify.
9706 (amd64_push_arguments): Get the list of registers to use for
9707 passing integer parameters from the gdbarch tdep structure,
9708 rather than using a hardcoded one. Replace calls to amd64_classify
9709 by calls to tdep->classify.
9710 (amd64_push_dummy_call): Get the register number used for
9711 the "hidden" argument from tdep->call_dummy_integer_regs.
9712 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9713 and tdep->call_dummy_integer_regs. Set tdep->classify.
9714 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9715 (amd64_windows_dummy_call_integer_regs): New static global.
9716 (amd64_windows_classify): New function.
9717 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9718 tdep->call_dummy_integer_regs and tdep->classify.
9720 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9722 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9723 for the new regcache. All callers updated.
9724 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9725 (get_thread_arch_regcache): Do not set aspace here.
9726 * regcache.h (regcache_xmalloc): Update declaration.
9728 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9729 regcache_xmalloc updated.
9731 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9733 Another -Wunused-function error in procfs.c (sparc-solaris)
9734 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9735 Only define if SYS_syssgi is defined.
9736 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9737 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9738 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9741 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9743 * windows-nat.c (windows_initialization_done): New variable.
9744 (get_windows_debug_event): Issue error when process dies before
9745 completely initializing.
9746 (do_initial_windows_stuff): Set flag to indicate when we are done with
9747 the initial steps of attaching to the child.
9749 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9751 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9753 2010-01-27 Doug Evans <dje@google.com>
9755 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9757 * breakpoint.c (bpstat_stop_status): Delete useless code.
9759 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9761 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9762 objfile via SYMBOL_SYMTAB.
9764 2010-01-26 Tom Tromey <tromey@redhat.com>
9767 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9768 coerce_array on result.
9770 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9772 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9773 search_parent argument.
9774 (cp_add_using): Initialize 'searched' field.
9775 (reset_directive_searched): New function.
9776 * cp-support.h: Add 'searched' field to using_direct struct.
9777 (cp_lookup_symbol_imports): Ditto.
9778 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9779 Perform recursive search.
9780 Implement non parent search.
9781 * valops.c (value_maybe_namespace_elt): Updated.
9783 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9786 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9787 scopes which contain using directives even if they contain no
9789 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9790 la_lookup_symbol_nonlocal.
9791 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9792 cp_lookup_symbol_namespace.
9793 (cp_lookup_symbol_namespace): Perform an import lookup at every
9795 (cp_lookup_symbol_imports): New function.
9796 (cp_lookup_symbol_in_namespace): New function.
9798 2010-01-25 Tom Tromey <tromey@redhat.com>
9801 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9804 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9806 * configure.ac: Only use host_os part when disabling TUI on osf.
9807 Use test to check variables, prefix strings with x.
9808 * configure: Regenerate.
9810 * solib-osf.c (osf_current_sos): Initialize tail.
9812 2010-01-25 gingold <gingold@adacore.com>
9814 * windows-nat.c (windows_continue): Use %x to print thread id.
9815 (get_windows_debug_event): Ditto.
9817 2010-01-22 Tom Tromey <tromey@redhat.com>
9820 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9821 type and arguments. Use smash_to_methodptr_type.
9822 (read_structure_type): Call quirk_gcc_member_function_pointer
9824 * gdbtypes.h (smash_to_methodptr_type): Declare.
9825 * gdbtypes.c (smash_to_methodptr_type): New function.
9826 (lookup_methodptr_type): Use it.
9828 2010-01-21 Tom Tromey <tromey@redhat.com>
9831 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9832 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9833 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9834 (glibc_skip_solib_resolver): Use
9835 lookup_minimal_symbol_and_objfile.
9837 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9839 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9842 2010-01-20 Tom Tromey <tromey@redhat.com>
9845 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9846 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9847 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9848 dwarf_stack_values, not CORE_ADDRs.
9849 (execute_stack_op): Change DW_OP_div and comparison operators to
9850 use signed operands.
9852 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9854 Per-inferior args and tty and environment.
9856 * infcmd.c (inferior_args): Rename to ...
9857 (inferior_args_scratch): ... this.
9858 (inferior_io_terminal): Rename to ...
9859 (inferior_io_terminal_scratch): ... this.
9860 (inferior_argc, inferior_argv): Remove.
9861 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9862 inside current_inferior().
9863 (set_inferior_tty_command, show_inferior_tty_command): New.
9864 (get_inferior_args, set_inferior_args): Store inside
9866 (notice_args_set): Likewise and rename to...
9867 (set_args_command): ... this.
9868 (set_inferior_args_vector): Likewise.
9869 (notice_args_read): Rename to...
9870 (show_args_command): ...new.
9871 (tty_command): Remove.
9872 (run_command_1): Don't free old args, as they are freed by
9873 set_inferior_arg now.
9874 (run_no_args_command): Likewise.
9875 (inferior_environ): Remove.
9876 (run_command_1): Use environment of the current inferior.
9877 (environment_info, set_environment_command)
9878 (unset_environment_command, path_info, path_command): Likewise.
9879 (_initialize_infcmd): Adjust for function and variable renames.
9880 Do not init inferior_environ.
9881 * inferior.h (set_inferior_arg): Adjust prototype.
9882 (struct inferior): New fields args, argc, argv, terminal, environment.
9883 (inferior_environ): Remove declaration.
9884 * inferior.c (free_inferior): Free new fields.
9885 (add_inferior_silent): Initialize 'environment' field.
9886 * main.c (captured_main): Set arguments only after the initial
9887 inferior has been created. Set set_inferior_io_terminal,
9889 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9891 (_initialize_mi_cmd_env): Adjust for disappearance of global
9893 * solib.c (solib_find): Use environment of the current inferior.
9895 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9897 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9899 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9901 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9903 Get rid of ada-lang.c:function_name_from_pc.
9904 * ada-lang.c: Add "stack.h" #include.
9905 (function_name_from_pc): Delete.
9906 (is_known_support_routine): Replace call to function_name_from_pc
9907 by call to find_frame_funname.
9908 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9910 2010-01-19 Tom Tromey <tromey@redhat.com>
9913 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9916 2010-01-19 Tom Tromey <tromey@redhat.com>
9918 * top.c (stop_sig, float_handler, do_nothing): Remove.
9920 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9922 * breakpoint.c (watchpoint_check): Check the call
9923 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9925 * config/djgpp/fnchange.lst: Add translations for
9926 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9927 watchpoint-cond-gone-stripped.c.
9929 2010-01-19 Tom Tromey <tromey@redhat.com>
9932 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9933 into parent scope, and enumerator into grandparent scope.
9935 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9937 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9939 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9941 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9942 i[34567]86-*-solaris2.1[0-9]*.
9943 * configure.tgt: Likewise.
9945 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9947 * NEWS: Document the source command enhancement allowing it
9948 to load Python scripts. Document the "set/show script-extension"
9951 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9953 Add -Wunused-function to compile flags.
9954 * configure.ac: Add -Wunused-function to build_warnings.
9955 * configure: Regenerate.
9957 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9959 "delete" ada-lex.c:input function, not used.
9960 * ada-lex.l: #define YY_NO_INPUT.
9962 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9964 Delete free_named_symtabs and associated cleanup.
9965 * symfile.h (free_named_symtabs): Delete declaration.
9966 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9967 (cashier_psymtab): Comment function out.
9969 (free_named_symtabs): Delete.
9970 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9971 * dbxread.c (end_psymtab): Likewise.
9972 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9973 * exec.c (exec_close_1): Ditto.
9974 * xcoffread.c (xcoff_end_psymtab): Likewise.
9976 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9978 * stack.c (print_block_frame_labels): Comment function out.
9980 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9982 Delete unused or undefined functions.
9983 * breakpoint.c (ep_parse_optional_filename): Delete.
9984 * dcache.c (dcache_write_line): Remove declaration.
9985 * infrun.c (build_infrun): Remove declaration.
9986 * tracepoint.c (tracepoint_save_command): Remove declaration.
9987 * linux-nat.c (init_lwp_list): Delete. No longer used.
9988 * event-loop.c (check_async_signal_handlers): Delete declaration.
9989 * infrun.c (init_execution_control_state): Delete.
9990 (proceed): Update comment to avoid mentioning
9991 init_execution_control_state.
9992 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9993 * ada-lang.c (ada_to_static_fixed_value): Delete.
9994 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9995 * cp-namespace.c (cp_copy_usings): Delete.
9996 * xml-syscall.c (xml_number_of_syscalls): Delete.
9997 * progspace.c (find_program_space_by_num): Delete.
9998 * inflow.c (handle_sigio): Delete declaration.
9999 * hppa-tdep.c (hppa_alignof): Delete.
10000 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10001 (mipsnbsd_core_osabi_sniffer): Delete.
10003 2010-01-18 Tom Tromey <tromey@redhat.com>
10006 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10007 (CONST_CAST): New tokens.
10008 (exp): Add new productions.
10009 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10011 (is_cast_operator): New function.
10012 (yylex): Handle cast operators specially.
10013 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10014 UNOP_REINTERPRET_CAST>: New cases.
10015 * expprint.c (print_subexp_standard): Likewise.
10016 (op_name_standard): Likewise.
10017 (dump_subexp_body_standard): Likewise.
10018 * parse.c (operator_length_standard): Likewise.
10019 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10020 UNOP_REINTERPRET_CAST.
10021 * gdbtypes.c (class_types_same_p): New function.
10022 (is_ancestor): Use it.
10023 (is_public_ancestor): New function.
10024 (is_unique_ancestor_worker): Likewise.
10025 (is_unique_ancestor): Likewise.
10026 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10027 (is_unique_ancestor): Declare.
10028 * valops.c (value_reinterpret_cast): New function.
10029 (dynamic_cast_check_1): Likewise.
10030 (dynamic_cast_check_2): Likewise.
10031 (value_dynamic_cast): Likewise.
10032 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10034 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10036 Fix build failure when building without Python support.
10037 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10040 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10042 Use XVS field type instead of doing a parallel lookup.
10043 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10044 if it is a reference type instead of doing a type lookup using
10045 the XVS field name.
10047 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10049 Trust PAD types instead of using PAD___XVS.
10050 * ada-lang.c (trust_pad_over_xvs): New static variable.
10051 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10052 parallel XVS type, follow the XVS type instead of the PAD type.
10053 (unwrap_value): Make sure that there is no parallel XVE type
10054 before returning the value as is.
10055 (set_ada_list, show_ada_list): New static variables.
10056 (set_ada_command, show_ada_command): New functions.
10057 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10058 Add new "set/show ada trust-PAD-over-XVS" setting.
10060 2010-01-18 Tom Tromey <tromey@redhat.com>
10061 Thiago Jung Bauermann <bauerman@br.ibm.com>
10063 Allow "source" to load python scripts.
10064 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10065 * python/python.c (source_python_script): New function.
10066 * python/python.h (source_python_script): Add declaration.
10067 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10068 (script_ext_off, script_ext_soft, script_ext_strict)
10069 (script_ext_enums, script_ext_mode): New static constants.
10070 (show_script_ext_mode, find_and_open_script): New functions.
10071 (source_script): Enhance to handle Python scripts.
10072 (init_cli_cmds): Add set/show script-extension commands.
10074 2010-01-16 Stan Shebs <stan@codesourcery.com>
10076 * tracepoint.h (struct trace_status): Use unsigned long long
10078 * tracepoint.c (trace_status_command): Fix printf directive.
10079 (trace_save_command): Check fwrite returns, fix printf directive.
10080 (trace_filename): New global.
10081 (tfile_open): Set it, check read returns.
10082 (tfile_close): Free trace_filename.
10083 (tfile_get_traceframe_address): Check read returns.
10084 (tfile_trace_find): Ditto.
10085 (tfile_fetch_registers): Ditto.
10086 (tfile_xfer_partial): Ditto.
10087 (tfile_get_trace_state_variable_value): Ditto.
10089 2010-01-15 Stan Shebs <stan@codesourcery.com>
10091 Add trace file support.
10092 * tracepoint.h (enum trace_stop_reason): New enum.
10093 (struct trace_status): New struct.
10094 (parse_trace_status): Declare.
10095 (struct uploaded_tp): Move here from remote.c,
10096 add fields for actions.
10097 (struct uploaded_tsv): New struct.
10098 * tracepoint.c (tfile_ops): New target vector.
10099 (trace_fd): New global.
10100 (tfile_open): New function.
10101 (tfile_close): New function.
10102 (tfile_files_info): New function.
10103 (tfile_get_trace_status): New function.
10104 (tfile_get_traceframe_address): New function.
10105 (tfile_trace_find): New function.
10106 (tfile_fetch_registers): New function.
10107 (tfile_xfer_partial): New function.
10108 (tfile_get_trace_state_variable_value): New function.
10109 (init_tfile_ops): New function.
10110 (_initialize_tracepoint): Call it, add tfile target.
10111 (trace_status): New global.
10112 (current_trace_status): New function.
10113 (trace_running_p): Remove, change all users to get from
10114 current_trace_status()->running.
10115 (get_trace_status): Remove.
10116 (trace_status_command): Call target_get_trace_status directly,
10117 report more detail including tracing stop reasons.
10118 (trace_find_command): Always allow tfind on a file.
10119 (trace_find_pc_command): Ditto.
10120 (trace_find_tracepoint_command): Ditto.
10121 (trace_find_line_command): Ditto.
10122 (trace_find_range_command): Ditto.
10123 (trace_find_outside_command): Ditto.
10124 (trace_frames_offset, cur_offset): Declare as off_t.
10125 (trace_regblock_size): Rename from reg_size, update users.
10126 (parse_trace_status): New function.
10127 (tfile_interp_line): New function.
10128 (disconnect_or_stop_tracing): Ensure current trace
10129 status before asking what to do.
10130 (stop_reason_names): New global.
10131 (trace_save_command): New command.
10132 (get_uploaded_tp): Move here from remote.c.
10133 (find_matching_tracepoint): Ditto.
10134 (merge_uploaded_tracepoints): New function.
10135 (parse_trace_status): Use stop_reason_names.
10136 (_initialize_tracepoint): Define tsave command.
10137 * target.h (target_ops): New fields to_save_trace_data,
10138 to_upload_tracepoints, to_upload_trace_state_variables,
10139 to_get_raw_trace_data, change to_get_trace_status
10140 to take a pointer to a status struct.
10141 (target_save_trace_data): New macro.
10142 (target_upload_tracepoints): New macro.
10143 (target_upload_trace_state_variables): New macro.
10144 (target_get_raw_trace_data): New macro.
10145 * target.c (update_current_target): Add new methods, change
10146 signature of to_get_trace_status.
10147 * remote.c (hex2bin): Make globally visible.
10149 (remote_download_trace_state_variable): Download name also.
10150 (remote_get_trace_status): Update parameter, use
10151 parse_trace_status.
10152 (remote_save_trace_data): New function.
10153 (remote_upload_tracepoints): New function.
10154 (remote_upload_trace_state_variables): New function.
10155 (remote_get_raw_trace_data): New function.
10156 (remote_start_remote): Use them.
10157 (_initialize_remote_ops): Add operations.
10158 * ax-gdb.c: Include breakpoint.h.
10159 * breakpoint.c (create_tracepoint_from_upload): Use
10160 break_command_really, return tracepoint, warn about unimplemented
10162 * NEWS: Mention trace file addition.
10164 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 Fix compilation warning on gcc-3.4.
10167 * exec.c (print_section_info): Move the `displacement' variable
10168 initialization to its declaration.
10170 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10172 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10175 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10177 "info tasks" broken by typedefs in ATCB type definitions.
10178 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10179 ada_check_typedef before retrieving the length of the type for
10182 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10184 Do not use name-based lookup for unconstrained packed arrays.
10185 * ada-lang.c (find_parallel_type_by_descriptive_type):
10186 Limit the fallback to name-based lookups to the case where
10187 the type is a constrained packed array.
10189 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10191 Enhance gdb-gdb.py to handle main_type.type_specific.
10192 * gdb-gdb.py: Print the type-specific part of struct main_type.
10194 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10196 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10197 * configure: Regenerate.
10198 * config.in: Regenerate.
10199 * utils.c: Include sys/resource.h.
10200 (dump_core, can_dump_core): New.
10201 (internal_vproblem): Update the comment. Check can_dump_core while
10202 setting dump_core_p. Replace two abort calls by dump_core calls.
10204 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10205 Eli Zaretskii <eliz@gnu.org>
10207 * NEWS: Document the PIE support.
10209 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10211 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10212 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10214 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10216 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10217 Replace exec_entry_point call by bfd_get_start_address.
10219 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10221 Support Valgrind attachments broken by the PIE support.
10222 * auxv.c: Include gdbcore.h.
10223 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10224 parameters ops, object and annex. Remove their assertions.
10225 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10226 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10227 (memory_xfer_auxv): ... here.
10228 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10230 * procfs.c (procfs_xfer_partial): Likewise.
10231 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10232 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10233 (svr4_solib_create_inferior_hook): Conditionalize the
10234 svr4_relocate_main_executable call.
10236 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10238 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10239 target_section. Find SECT in current_target_sections, gdb_assert it.
10240 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10242 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10243 of separate debug info file.
10245 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10247 Support PIEs with no symfile_objfile.
10248 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10249 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10251 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10253 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10255 (svr4_static_exec_displacement): ... a new function.
10256 (svr4_exec_displacement): New function.
10257 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10258 new_offsets using alloca now. Remove variable old_chain and changed.
10259 Call objfile_relocate unconditionally now.
10261 2010-01-14 Doug Evans <dje@google.com>
10263 * gdbtypes.c (arch_flags_type): Fix comment.
10264 * gdbtypes.h (arch_composite_type): Fix comment.
10266 2009-01-14 Tristan Gingold <gingold@adacore.com>
10268 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10269 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10270 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10271 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10272 macho_add_oso_symfile.
10273 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10275 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10277 Tru64: Dead threads are never deleted.
10278 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10279 (dec_thread_count_gdb_threads): Fix counter increment.
10280 (dec_thread_add_gdb_thread): Fix *listp increment.
10281 (resync_thread_list): Fix bug in deletion of dead threads that
10282 caused all threads to be deleted, instead of just the dead ones.
10284 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10288 * python/python-internal.h: Add lazy_string_object_type
10290 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10291 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10292 * python/py-value.c (valpy_lazy_string): New function.
10293 (convert_value_from_python): Add lazy string conversion.
10294 * python/py-prettyprint.c (pretty_print_one_value): Check if
10295 return is also a lazy string.
10296 (print_string_repr): Add lazy string printing branch.
10297 (print_children): Likewise.
10298 * python/py-lazy-string.c: New file. Implement lazy strings.
10299 * python/python.c (_initialize_python): Call
10300 gdbpy_initialize_lazy_string.
10301 * varobj.c (value_get_print_value): Add lazy string printing
10302 branch. Account for encoding.
10303 * c-lang.c (c_printstr): Account for new encoding argument. If
10304 encoding is NULL, find encoding suited for type, otherwise use
10306 * language.h (language_defn): Add encoding argument.
10307 (LA_PRINT_STRING): Likewise.
10308 * language.c (unk_lang_printstr): Update to reflect new encoding
10309 argument to language_defn.
10310 * ada-lang.h (ada_printstr): Likewise.
10311 * c-lang.h (c_printstr): Likewise.
10312 * p-lang.h (pascal_printstr);
10313 * f-lang.c (f_printstr): Likewise.
10314 * m2-lang.c (m2_printstr): Likewise.
10315 * objc-lang.c (objc_printstr): Likewise.
10316 * p-lang.c (pascal_printstr): Likewise.
10317 * scm-lang.c (scm_printstr): Likewise.
10318 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10320 * ada-valprint.c (ada_printstr): Likewise.
10321 * f-valprint.c (f_val_print): Likewise
10322 * m2-valprint.c (m2_val_print): Likewise.
10323 * p-valprint.c (pascal_val_print): Likewise.
10324 * expprint.c (print_subexp_standard): Likewise.
10325 * valprint.c (val_print_string): Likewise.
10326 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10327 (SUBDIR_PYTHON_SRCS): Likewise.
10328 (py-lazy-string.o): New rule.
10330 2010-01-13 Doug Evans <dje@google.com>
10332 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10333 uninitialized" warning from gcc on local `tree'.
10335 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10337 Implement core awareness.
10339 * bcache.c (compare_ints): Remove
10340 (print_percentage): Use compare_positive_ints.
10341 * defs.h (compare_positive_ints): Declare.
10342 * linux-nat.h (struct lin_lwp): New field core.
10343 (linux_nat_core_of_thread_1): Declare.
10344 * linux-nat.c (add_lwp): Init the 'core' field.
10345 (linux_nat_wait_1): Record the core.
10346 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10347 (linux_nat_add_target): Register the above.
10348 * linux-thread-db.c (update_thread_core): New.
10349 (thread_db_find_new_threads): Update core information for
10351 * remote.c (struct private_thread_info): New.
10352 (free_private_thread_info, demand_private_info): New.
10353 (PACKET_qXfer_threads, use_osdata_threads): New.
10354 (struct thread_item, threads_parsing_context
10355 (start_thread, end_thread, thread_attributes)
10356 (thread_children, threads_children, threads_elements): New.
10357 (remote_threads_info): Try qXfer:threads before anything
10359 (remote_protocol_packets): Register qXfer:threads.
10360 (remote_open_1): Init use_osdata_threads.
10361 (struct stop_reply): New field 'core'.
10362 (remote_parse_stop_reply): Parse core number.
10363 (process_stop_reply): Record core number.
10364 (remote_xfer_partial): Handle qXfer:threads.
10365 (remote_core_of_thread): New.
10366 (init_remote_ops): Register remote_core_of_thread.
10367 (_initialize_remote): Register qXfer:read.
10368 * target.c (target_core_of_thread): New
10369 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10370 (struct target_ops): New field to_core_of_threads.
10371 (target_core_of_thread): Declare.
10372 * gdbthread.h (struct thread_info): New field private_dtor.
10373 * thread.c (print_thread_info): Report the core.
10374 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10375 * utils.c (compare_positive_ints): New.
10376 * features/threads.dtd: New.
10377 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10378 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10379 (do_nothing, free_vector_of_osdata_items)
10380 (splay_tree_int_comparator, free_splay_tree): New.
10381 (print_one_inferior_data): Implemented printing of selected
10382 inferiors. Collect and print cores.
10383 (output_cores): New.
10384 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10385 thread groups together with --available.
10387 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10389 * configure: Regenerate (for _STRUCTURED_PROC).
10391 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10393 Delete dead function.
10394 * ada-lang.c (extract_string): Delete. No longer used.
10396 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10398 Fix -Wunused warning in dec-thread.c.
10399 * dec-thread.c (dec_thread_count_gdb_threads)
10400 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10402 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10404 * ada-valprint.c (ada_print_floating): Remove trailing space.
10406 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10408 Add support for DW_AT_GNAT_descriptive_type.
10409 * gdbtypes.h (enum type_specific_kind): New enum.
10410 (struct main_type) [type_specific_field]: New component.
10411 [type_specific]: Add new component "gnat_stuff".
10412 (struct gnat_aux_type): New type.
10413 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10414 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10415 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10416 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10417 (TYPE_SPECIFIC_FIELD): New macros.
10418 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10419 type does not hold any cplus-specific data.
10420 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10421 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10422 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10423 cplus-specific data.
10424 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10425 Set new component TYPE_SPECIFIC_FIELD (type).
10426 (gnat_aux_default): New constant.
10427 (allocate_gnat_aux_type): New function.
10428 (init_type): Add initialization the type-specific stuff for
10429 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10430 (print_gnat_stuff): New function.
10431 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10432 specific data. Adjust code that prints the contents of the
10433 type-specific union using the TYPE_SPECIFIC_FIELD value.
10434 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10435 the type cplus stuff for Ada types.
10436 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10437 Error out if these routines are called with an Ada type.
10438 (read_structure_type, read_array_type, read_subrange_type):
10439 Add call to set_descriptive_type.
10440 (set_die_type): Initialize the gnat-specific data if necessary.
10441 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10443 * ada-lang.c (decode_constrained_packed_array_type): Use
10444 decode_constrained_packed_array_type instead of doing a standard
10445 lookup to locate a parallel type.
10446 (find_parallel_type_by_descriptive_type): New function.
10447 (ada_find_parallel_type_with_name): New function.
10448 (ada_find_parallel_type): Reimplement using
10449 ada_find_parallel_type_with_name.
10450 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10451 to check if type has a cplus stuff.
10452 * linespec.c (total_number_of_methods): Likewise.
10453 * mdebugread.c (new_type): Likewise.
10455 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10457 * NEWS: Document the 0b binary number prefix parsing.
10459 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10461 * objfiles.c (objfile_relocate1): Change the return type to int.
10462 Describe the new return value. Return non-zero if data changed.
10463 (objfile_relocate): New variable changed. Set it. Call
10464 breakpoint_re_set depending on CHANGED.
10466 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10468 Implement binary numbers parsing.
10469 * c-exp.y (parse_number): New case 'b' and 'B'.
10471 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10472 Tristan Gingold <gingold@adacore.com>
10474 * solib.c (info_sharedlibrary_command): Replace
10475 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10476 objfile_has_symbols.
10478 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10480 * NEWS: Document the improvements made to the mips-irix port.
10482 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10484 Fix the documentation of valprint.c:value_print.
10485 * valprint.c (value_print): Update the function description to
10486 mention that the syntax of the output follows the current_language,
10489 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10491 Fix displacement of separate debug info files.
10492 * objfiles.c (objfile_relocate): Rename to ...
10493 (objfile_relocate1): ... here and make it static. Extend the comment.
10494 (objfile_relocate): New function.
10495 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10496 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10497 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10498 allocated using alloca.
10499 * symfile.c (copy_section_addr_info): Remove.
10500 (build_section_addr_info_from_objfile): Make it global. New variables
10501 addr_bit and mask, use them.
10502 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10503 (copy_section_addr_info): Remove.
10505 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10507 Signal unwinder for mips-irix N32.
10508 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10510 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10511 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10512 (SIGCONTEXT_LO_OFF): New macros.
10513 (mips_irix_n32_tramp_frame_init): New function.
10514 (mips_irix_n32_tramp_frame): New static constant.
10515 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10517 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10519 Breakpoint in shared library does not work on mips-irix.
10520 * procfs.c: #include "observer.h".
10521 (procfs_inferior_created): New function, moving here the code
10522 which unsets the syssgi syscall-exit notifications.
10523 (procfs_create_inferior): Remove the code which unsets the syssgi
10524 syscall-exit notifications. It is too early to do this here.
10525 (_initialize_procfs): Attach the procfs_inferior_created observer.
10527 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10529 Wrong return convention for arrays (mips-irix).
10530 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10531 128 bits or smaller are returned the same way as structs
10532 and unions of the the same size.
10534 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10536 Cannot set the PC on mips-irix.
10537 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10538 register number, no the cooked one.
10540 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10542 Error while loading core file on mips-irix.
10543 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10544 if debugging from a core file.
10546 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10548 GDB hangs when attaching to process on mips-irix.
10549 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10550 attaching to a process.
10552 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10554 Use the correct breakpoint instruction on mips-irix.
10555 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10556 containing the correct breakpoint instruction to use on mips-irix.
10557 Use it when the osabi is GDB_OSABI_IRIX.
10559 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10561 -Wunused warning in procfs.c (mips-irix only).
10562 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10563 throughout instead of using praddset and prdelset respectively.
10565 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10567 GDB crash while stepping into function.
10568 * infrun.c (handle_inferior_event): Refetch the current frame
10569 after handling what.main_action, in case that pointer became
10572 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10574 Fix build failure of solaris-hosted cross debuggers.
10575 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10577 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10579 Fix build failure on sparc-solaris.
10580 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10582 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10584 Move some symfile code into subroutines.
10585 * symfile.h (relative_addr_info_to_section_offsets)
10586 (addr_info_make_relative): New prototypes.
10587 * symfile.c (default_symfile_offsets): Move a part to ...
10588 (relative_addr_info_to_section_offsets): ... this new function.
10589 (default_symfile_offsets): Call it.
10590 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10592 (addr_info_make_relative): ... this new function.
10594 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10596 Add from_tty to solib_create_inferior_hook.
10597 * infcmd.c (post_create_inferior): Move solib_add after
10598 solib_create_inferior_hook. Pass from_tty to
10599 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10600 0 from_tty and comment why.
10601 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10602 * linux-nat.c (linux_child_follow_fork): Likewise.
10603 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10604 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10606 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10607 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10608 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10609 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10610 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10611 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10612 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10613 Pass it to svr4_so_ops.solib_create_inferior_hook.
10614 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10616 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10618 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10620 * solib-target.c (solib_target_solib_create_inferior_hook): New
10621 parameter from_tty.
10622 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10623 it to ops->solib_create_inferior_hook.
10624 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10625 Move solib_add after solib_create_inferior_hook, call it now with
10626 from_tty as 0. New comment there.
10627 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10628 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10631 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10633 Fix multiexec race.
10634 * infrun.c (handle_inferior_event): Use get_thread_regcache
10635 with events ptid, not get_current_regcache.
10637 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10639 GDB crash with empty executable name (MinGW).
10640 * source.c (openp): Add assert that parameter string is not NULL.
10641 if parameter string is an empty string, then return with a failure
10644 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10646 Get rid of support for VAX Floats.
10647 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10648 (ada_vax_float_print_function): Delete.
10649 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10650 (ada_vax_float_print_function): Delete.
10651 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10652 (ada_print_type): Remove support for VAX floats.
10653 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10655 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10657 * stabsread.c (read_args): Handle zero arguments.
10659 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10661 Cannot find in-tree libiconv.a after reconfigure.
10662 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10663 that we can use, then cache the path to this archive.
10664 * configure: Regenerate.
10666 2010-01-07 Stan Shebs <stan@codesourcery.com>
10668 Make tracepoint operations go through target vector.
10669 * target.h (enum trace_find_type): New enum.
10670 (struct target_ops): New fields to_trace_init,
10671 to_download_tracepoint, to_download_trace_state_variable,
10672 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10673 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10674 to_set_disconnected_tracing.
10675 (target_trace_init): New macro.
10676 (target_download_tracepoint): New macro.
10677 (target_download_trace_state_variable): New macro.
10678 (target_trace_start): New macro.
10679 (target_trace_set_readonly_regions): New macro.
10680 (target_get_trace_status): New macro.
10681 (target_trace_stop): New macro.
10682 (target_trace_find): New macro.
10683 (target_get_trace_state_variable_value): New macro.
10684 (target_set_disconnected_tracing): New macro.
10685 * target.c (update_current_target): Inherit and set defaults for
10686 tracepoint operations.
10687 * tracepoint.c (default_collect): Make globally visible.
10688 (target_is_remote): Remove, along with all calls.
10689 (tvariables_info): Call target_get_trace_state_variable_value.
10690 (remote_set_transparent_ranges): Remove.
10691 (trace_start_command): Call target_trace_init,
10692 target_download_tracepoint, etc.
10693 (download_tracepoint): Remove.
10694 (trace_stop_command): Simplify.
10695 (stop_tracing): Call target_trace_stop.
10696 (get_trace_status): Call target_get_trace_status.
10697 (trace_status_command): Add case for targets that cannot trace.
10698 (finish_tfind_command): Change to take numerical arguments, call
10700 (trace_find_command): Update call to finish_tfind_command.
10701 (trace_find_pc_command): Ditto.
10702 (trace_find_tracepoint_command): Ditto.
10703 (trace_find_line_command): Ditto.
10704 (trace_find_range_command): Ditto.
10705 (trace_find_outside_command): Ditto.
10706 (set_disconnected_tracing_value): Call
10707 target_set_disconnected_tracing.
10708 * remote.c: Add protocol encoding bits from tracepoint.c.
10709 (trace_error): Move from tracepoint.c.
10710 (remote_get_noisy_reply): Ditto.
10711 (free_actions_list_cleanup_wrapper): Ditto.
10712 (free_actions_list): Ditto.
10713 (remote_trace_init): New function.
10714 (remote_download_tracepoint): New function.
10715 (remote_download_trace_state_variable): New function.
10716 (remote_trace_set_readonly_regions): New function.
10717 (remote_trace_start): New function.
10718 (remote_get_trace_status): New function.
10719 (remote_trace_stop): New function.
10720 (remote_trace_find): New function.
10721 (remote_download_trace_state_variable): New function.
10722 (remote_set_disconnected_tracing): New function.
10723 (init_remote_ops): Add tracepoint operations.
10725 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10727 2010-01-07 Tristan Gingold <gingold@adacore.com>
10729 * symfile.c (build_section_addr_info_from_objfile): New function.
10730 (symbol_file_add_separate): Don't use offsets from objfile but
10731 built an addr info.
10733 2010-01-06 Stan Shebs <stan@codesourcery.com>
10735 Support disconnected tracing.
10736 * infcmd.c (detach_command): Ask whether to stop tracing.
10737 * cli/cli-cmds.c (quit_command): Ditto.
10738 * breakpoint.h (struct breakpoint): New field number_on_target.
10739 * breakpoint.c (create_tracepoint_from_upload): New function.
10740 (get_tracepoint_by_number_on_target): New function.
10741 * remote.c (struct remote): New field disconnected_tracing.
10742 (remote_disconnected_tracing_feature): New function.
10743 (remote_protocol_features): Add DisconnectedTracing.
10744 (struct uploaded_tp): New struct.
10745 (uploaded_tps): New global.
10746 (get_uploaded_tp): New function.
10747 (find_matching_tracepoint): New function.
10748 (remote_get_tracing_state): New function.
10749 (remote_start_remote): Call it.
10750 * tracepoint.c (disconnected_tracing): New global.
10751 (trace_start_command): Initialize number_on_target.
10752 (stop_tracing): New function, split out from...
10753 (trace_stop_command): Call stop_tracing.
10754 (get_trace_status): New function, split out from...
10755 (trace_status_command): Call get_trace_status, add info on
10756 disconnection behavior.
10757 (disconnect_or_stop_tracing): New function.
10758 (finish_tfind_command): Translate from number on target.
10759 (trace_find_tracepoint_command): Translate to number on target.
10760 (send_disconnected_tracing_value): New function.
10761 (set_disconnected_tracing): New function.
10762 (_initialize_tracepoint): Add disconnected-tracing variable.
10763 * NEWS: Mention disconnected tracing.
10765 2010-01-06 Tristan Gingold <gingold@adacore.com>
10767 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10768 parameter to main_objfile. Iterate on all separate debug objfiles.
10769 * symfile.h (symbol_file_add_separate)
10770 (find_separate_debug_file_by_debuglink): Remove parameter names.
10771 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10772 (reread_symbols): Use free_objfile_separate_debug.
10773 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10775 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10776 (free_objfile_separate_debug): New prototypes.
10777 * objfiles.c (objfile_separate_debug_iterate): New function.
10778 (add_separate_debug_objfile, free_objfile_separate_debug): New
10780 (free_objfile): Use free_objfile_separate_debug. Adjust for
10781 multiple separate debug objfile.
10782 (objfile_has_symbols): Adjust comment. Iterate on all separate
10784 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10786 (lookup_minimal_symbol_text): Ditto.
10787 (lookup_minimal_symbol_by_pc_name): Ditto.
10788 (lookup_minimal_symbol_solib_trampoline): Ditto.
10789 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10792 2010-01-05 Stan Shebs <stan@codesourcery.com>
10794 Add fast tracepoints.
10795 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10796 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10797 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10798 * breakpoint.c (tracepoint_type): New function.
10799 (ALL_TRACEPOINTS): Use it.
10800 (should_be_inserted): Ditto.
10801 (bpstat_check_location): Ditto.
10802 (print_one_breakpoint_location): Ditto.
10803 (user_settable_breakpoint): Ditto.
10804 (set_breakpoint_location_function): Ditto.
10805 (disable_breakpoints_in_shlibs): Ditto.
10806 (delete_trace_command): Ditto.
10807 (print_it_typical): Add bp_fast_tracepoint case.
10808 (bpstat_what): Ditto.
10809 (print_one_breakpoint_location): Ditto.
10810 (allocate_bp_location): Ditto.
10812 (breakpoint_re_set_one): Ditto.
10813 (disable_command): Ditto.
10814 (enable_command): Ditto.
10815 (check_fast_tracepoint_sals): New function.
10816 (break_command_really): Call it.
10817 (ftrace_command): New function.
10818 (_initialize_breakpoint): Add ftrace command.
10819 * gdbarch.sh (fast_tracepoint_valid_at): New.
10820 * gdbarch.h, gdbarch.c: Regenerate.
10821 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10822 (i386_gdbarch_init): Use it.
10823 * remote.c (struct remote_state): New field fast_tracepoints.
10824 (PACKET_FastTracepoints): New packet config type.
10825 (remote_fast_tracepoint_feature): New function.
10826 (remote_protocol_features): Add FastTracepoints.
10827 (remote_supports_fast_tracepoints): New function.
10828 (_initialize_remote): Add FastTracepoints.
10829 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10830 * NEWS: Mention fast tracepoints.
10832 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10834 * gdb-gdb.py: New file.
10836 2010-01-05 Michael Snyder <msnyder@vmware.com>
10838 * infrun.c (handle_inferior_event): Fix typo in comment.
10840 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10842 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10844 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10846 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10848 (s390-linux32-expedite): Define.
10849 (s390-linux64-expedite): Define.
10850 (s390x-linux64-expedite): Define.
10851 * features/s390-acr.xml: New file.
10852 * features/s390-fpr.xml: New file.
10853 * features/s390-core32.xml: New file.
10854 * features/s390-core64.xml: New file.
10855 * features/s390x-core64.xml: New file.
10856 * features/s390-linux32.xml: New file.
10857 * features/s390-linux64.xml: New file.
10858 * features/s390x-linux64.xml: New file.
10859 * features/s390-linux32.c: New generated file.
10860 * features/s390-linux64.c: New generated file.
10861 * features/s390x-linux64.c: New generated file.
10863 * regformats/s390-linux32.dat: New generated file.
10864 * regformats/s390-linux64.dat: New generated file.
10865 * regformats/s390x-linux64.dat: New generated file.
10866 * regformats/reg-s390.dat: Remove.
10867 * regformats/reg-s390x.dat: Remove.
10869 * s390-nat.c: Include "auxv.h" and <elf.h>.
10870 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10871 (s390_target_wordsize): New function.
10872 (s390_auxv_parse): Likewise.
10873 (s390_get_hwcap): Likewise.
10874 (s390_read_description): Likewise.
10875 (_initialize_s390_nat): Install s390_auxv_parse and
10876 s390_read_description.
10878 * s390-tdep.c: Include "features/s390-linux32.c",
10879 "features/s390-linux64.c", and "features/s390x-linux64.c".
10880 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10881 (s390_register_call_saved): New function.
10882 (s390_register_name): Remove.
10883 (s390_register_type): Remove.
10884 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10885 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10886 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10887 (s390_pseudo_register_name): New function.
10888 (s390_pseudo_register_type): New function.
10889 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10890 Handle full GPR pesudos and varying pseudo register numbers.
10891 (s390_pseudo_register_write): Likewise
10892 (s390x_pseudo_register_read): Remove.
10893 (s390x_pseudo_register_write): Likewise.
10894 (s390_register_group): Remove.
10895 (s390_pseudo_register_group): New function.
10896 (s390_regmap_gregset): Add GPR upper halves.
10897 (s390x_regmap_gregset): Likewise.
10898 (s390_regmap_fpregset): Likewise.
10899 (s390_regmap_upper): New global variable.
10900 (s390_upper_regset): New global variable.
10901 (s390_upper_regset_sections): New global variable.
10902 (s390_regset_from_core_section): Handle GPR upper halves.
10903 (s390_core_read_description): New function.
10904 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10905 register information. Handle varying pseudo register numbers.
10906 (s390_backchain_frame_unwind_cache): Likewise.
10907 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10908 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10909 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10910 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10911 Handle varying pseudo register numbers.
10912 (s390_unwind_pc): Handle varying pseudo register numbers.
10913 (s390_dwarf2_prev_register): New function.
10914 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10915 register information. Handle varying pseudo register numbers.
10916 Install s390_dwarf2_prev_register to unwind full GPRs.
10917 (s390_gdbarch_init): Handle target descriptions. Assign varying
10918 pseudo register numbers. Install s390_adjust_frame_regnum.
10919 (_initialize_s390_tdep): Initialize target descriptions.
10921 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10922 (S390_NUM_REGS): Redefine to include upper half registers.
10923 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10924 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10925 (tdesc_s390_linux32): Add declaration.
10926 (tdesc_s390_linux64): Likewise.
10927 (tdesc_s390x_linux64): Likewise.
10929 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10931 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10932 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10933 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10934 (ppc_linux_vmx_regset_sections): Likewise.
10935 (ppc_linux_fp_regset_sections): Likewise.
10937 * corelow.c (get_core_register_section): Constify arguments.
10938 (get_core_registers): Use gdbarch_core_regset_sections instead
10939 of hard-coded platform-specific register section names.
10941 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10943 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10944 a register, assume the least-significant part is used.
10945 (write_pieced_value): Likewise.
10947 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10949 * printcmd.c: Include "arch-utils.h".
10950 (do_one_display): Re-parse expression if current architecture changed.
10952 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10953 Joel Brobecker <brobecker@adacore.com>
10955 * gdbtypes.c (check_typedef): New comment on type length.
10956 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10957 comment on type length.
10958 (value_primitive_field): Keep the original TYPE value, new comment.
10960 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10962 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10963 p_start. Change != comparisons to > and < comparisons.
10965 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10967 * cli/cli-script.c (process_next_line): Check P2 overrun.
10969 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10971 Update the copyright hearder to add year 2010 for most GDB files.
10973 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10975 Fix build failure in inf-ptrace.c.
10976 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10978 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10980 * top.c (print_gdb_version): Update copyright year.
10982 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10984 Fix break *FUN'address thread NUM.
10985 * ada-lex.l (task): Expand rule to also match the thread keyword.
10987 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10989 Fix break *FUN'address task NUM.
10990 * ada-lex.l (task): New rule.
10991 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10992 been built before using it.
10994 For older changes see ChangeLog-2009.
11000 version-control: never