1 2010-11-22 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_template_to_fixed_record_type_1):
4 For dynamic fields, check the field size against the maximum
7 2010-11-22 Joel Brobecker <brobecker@adacore.com>
9 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
11 (mips_irix_n32_stack_tramp_frame): New static global.
12 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
15 2010-11-22 Jerome Guitton <guitton@adacore.com>
17 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
20 2010-11-22 Joel Brobecker <brobecker@adacore.com>
22 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
23 if type1 is a typedef.
25 2010-11-22 Joel Brobecker <brobecker@adacore.com>
27 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
28 "_finalizer" to the list.
30 2010-11-22 Joel Brobecker <brobecker@adacore.com>
32 * symfile.c: Remove all "#if 0"/"#endif" blocks.
34 2010-11-22 Joel Brobecker <brobecker@adacore.com>
36 * symfile.c: Add missing second space after period in various comments.
38 2010-11-22 Joel Brobecker <brobecker@adacore.com>
40 * ada-typeprint.c (print_array_type): Fix formatting in comment.
41 (print_selected_record_field_types): Fix formatting in function
44 2010-11-22 Joel Brobecker <brobecker@adacore.com>
46 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
47 in name of "show ravenscar" prefix command name.
49 2010-11-22 Joel Brobecker <brobecker@adacore.com>
51 * ravenscar-thread.c (show_ravenscar_task_switching_command):
52 Add missing '\n' in output.
54 2010-11-22 Joel Brobecker <brobecker@adacore.com>
56 * ravenscar-thread.c (running_thread_name): Change value.
57 (read_thread_id): Remove advance declaration.
58 (get_running_thread_msymbol): New function.
59 (has_ravenscar_runtime): Use get_running_thread_msymbol to
60 compute msym_running_thread.
61 (get_running_thread_id): Renames read_thread_id. Slight modifications
62 to not take any argument anymore, using get_running_thread_msymbol
63 to determine which symbol to use instead.
64 (ravenscar_running_thread): Use get_running_thread_id instead of
67 2010-11-22 Joel Brobecker <brobecker@adacore.com>
69 * ravenscar-sparc-thread.c (supply_register_at_address):
70 Fix passing of buf in call to regcache_raw_supply.
72 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
74 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
76 2010-11-22 Tom Tromey <tromey@redhat.com>
78 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
80 2010-11-19 Keith Seitz <keiths@redhat.com>
82 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
83 Remove extraneous '/' after $(DESTDIR).
84 (PYTHON_INSTALL_DIR): Likewise.
86 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
88 Fix stale memory references.
89 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
92 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
93 Tom Tromey <tromey@redhat.com>
95 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
96 (.PHONY): Remove for .y outputs.
98 2010-11-19 Will Drewry <wad@google.com>
99 Tavis Ormandy <taviso@google.com>
100 Jan Kratochvil <jan.kratochvil@redhat.com>
102 * dwarf2read.c (decode_locdesc): Enforce location description stack
105 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
107 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
108 instruction is found.
110 2010-11-17 Tom Tromey <tromey@redhat.com>
112 * value.c (value_entirely_optimized_out): Check the
113 'check_any_valid' field.
115 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
117 * ada-lang.c (modify_general_field): Remove.
118 (make_array_descriptor): Replace all modify_general_field calls by
120 * value.c (modify_field): Update comment. New variable bytesize.
121 Normalize BITPOS. Initialize BYTESIZE, use it.
123 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
125 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
126 elements after xfree.
128 2010-11-16 Tom Tromey <tromey@redhat.com>
130 * gdb-add-index.sh: Really remove.
132 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
135 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
136 (init_one_comp_unit): ... this one.
137 (prepare_one_comp_unit): New prototype.
138 (dw2_require_line_header, process_psymtab_comp_unit): Use
140 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
141 (load_partial_comp_unit): Remove variable attr. Use
142 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
143 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
144 prepare_one_comp_unit.
145 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
146 Use prepare_one_comp_unit.
147 (alloc_one_comp_unit): Rename to ...
148 (init_one_comp_unit): ... here and remove there calloc, new parameter
150 (prepare_one_comp_unit): New function.
152 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
154 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
155 possible used of uninitialized variable.
157 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
159 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
160 (rs6000_gdbarch_init): Call it.
162 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
164 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
165 instructions if debugging an E500 binary.
167 2010-11-12 Tom Tromey <tromey@redhat.com>
169 * varobj.c (value_get_print_value): Rearrange. Pass stream to
170 apply_varobj_pretty_printer.
171 * c-lang.c: Include exceptions.h.
172 (c_get_string): Throw MEMORY_ERROR when appropriate.
173 * python/py-prettyprint.c (enum string_repr_result): New.
174 (print_stack_unless_memory_error): New function.
175 (print_string_repr): Change return type. Use
176 print_stack_unless_memory_error.
177 (print_children): Use print_stack_unless_memory_error.
178 (apply_val_pretty_printer): Update. Don't print children if
179 string representation threw an exception.
180 (apply_varobj_pretty_printer): Add 'stream' argument. Use
181 print_stack_unless_memory_error.
182 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
184 (_initialize_python): Initialize them.
185 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
186 gdbpy_convert_exception.
187 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
188 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
189 (gdbpy_convert_exception): Declare.
190 (apply_varobj_pretty_printer): Update.
191 * python/py-utils.c (gdbpy_convert_exception): New function.
193 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
195 * mi/mi-main.c (mi_cmd_target_detach): Accept new
196 thread-group id format.
198 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
202 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
204 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
206 (BPPY_SET_REQUIRE_VALID): Ditto.
207 (bpnum_is_valid): Delete function.
208 (bppy_get_visibility): New function.
209 (bppy_new): Parse for, and validate internal keyword. Pass
210 internal keyword to breakpoint or watchpoint functions.
211 (build_bp_list): New function.
212 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
213 iterate_over_breakpoints.
214 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
216 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
217 to internal breakpoint chain.
219 * breakpoint.c (set_breakpoint_number): New function.
220 (breakpoint_1): Check if breakpoint number is more than zero.
221 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
222 (create_breakpoint_sal): Take a new parameter called internal.
223 Call set_breakpoint_number with internal parameter. Do not
224 mention internal breakpoints. All callers updated.
225 (create_breakpoint): Ditto.
226 (create_breakpoints_sal): Ditto.
227 (watch_command_1): Ditto.
228 (watch_command_wrapper): Take a new parameter called internal.
230 (rwatch_command_wrapper): Ditto.
231 (awatch_command_wrapper): Ditto.
232 (save_breakpoints): Update breakpoint save condition check.
233 (iterate_over_breakpoints): New function.
234 * breakpoint.h: Add conditional python includes. Add py_bp_object
235 and comment to struct breakpoint. Update all callers.
236 * defs.h: Add PyObject definition for GDB builds without Python.
238 2010-11-10 Doug Evans <dje@google.com>
240 * python/lib/gdb/command/pretty_printers.py
241 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
243 * value.c (set_value_enclosing_type): Renamed from
244 value_change_enclosing_type. All callers updated.
245 * value.h (set_value_enclosing_type): Update.
246 * valops.c (value_full_object): Always return a copy if we need to
247 make changes to the input value.
249 2010-11-09 Pedro Alves <pedro@codesourcery.com>
251 * breakpoint.c (watch_command_1): Get a pointer of the lazy
252 version of the expression's value, even if reading the value from
253 memory fails. When creating a -location watchpoint, get the
254 value's address from the lazy value pointer.
256 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * infrun.c (restore_inferior_thread_state): Use
259 discard_inferior_thread_state to free the data.
260 (discard_inferior_thread_state): xfree also siginfo_data.
262 2010-11-05 Doug Evans <dje@google.com>
264 Make gdb.parameter("directories") work.
265 New command "set directories".
266 * NEWS: Document them.
267 * source.c (set_directories_command): New function.
268 (show_directories_1): Renamed from show_directories.
270 (show_directories_command): New function.
271 (_initialize_source): Install "directories" as a set/show
272 variable instead of just a show command.
274 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
276 * NEWS: Mention OpenCL C language support.
277 * Makefile.in (SFILES): Add opencl-lang.c.
278 (COMMON_OBS): Add opencl-lang.o.
279 * opencl-lang.c: New File
280 * defs.h (enum language): Add language_opencl.
281 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
282 IBM XL C OpenCL compiler.
283 * c-lang.h: Include "parser-defs.h".
284 (evaluate_subexp_c): Declare.
285 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
286 (c_op_print_tab): Add declaration.
287 * eval.c (binop_promote): Handle language_opencl.
288 * c-exp.y: Lookup the primitive types instead of referring to the
291 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
293 Fix configure --enable-plugins --without-python.
294 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
295 * configure: Regenerate.
297 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
299 * solib.c (solib_read_symbols): Call exception_fprintf even without
300 FROM_TTY. Print also so->so_name.
302 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
304 * gdbtypes.h (struct rank): Created subrank.
305 * gdbtypes.c: Initialized subrank for all
307 (distance_to_ancestor): New function.
308 (is_ancestor): Use distance_to_ancestor.
309 (is_public_ancestor): Ditto.
310 (sum_ranks): Handle subrank.
311 (compare_ranks): Ditto.
312 (rank_one_type): Subrank base conversions.
314 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
316 * gdbtypes.h: Create struct rank.
317 Convert all 'BADNESS' macros to const struct rank declarations.
318 (sum_ranks): New function.
319 (compare_ranks): New function.
320 * valops.c (find_oload_champ): Updated.
321 (classify_oload_match): Use compare_ranks.
323 (compare_parameters): Use compare_ranks.
324 * gdbtypes.c: Initialize 'BADNESS' constants.
325 (sum_ranks): New function.
326 (compare_ranks): New function.
327 (compare_badness): Use compare_ranks.
328 (rank_function): Use global constants instead of literals.
329 (rank_one_type): Ditto.
333 2010-11-04 Doug Evans <dje@google.com>
335 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
336 (find_pretty_printer): Fix comments.
338 2010-11-04 Hui Zhu <teawater@gmail.com>
340 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
342 2010-11-03 Joel Brobecker <brobecker@adacore.com>
344 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
345 and `len' declaration and computation inside block where they
348 2010-11-03 Joel Brobecker <brobecker@adacore.com>
350 * valprint.c (val_print_array_elements): Put back handling of
353 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
355 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
356 DIE and set the length of the type.
357 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
358 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
359 return 0 if the corresponding bounds of the type are undefined.
360 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
361 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
362 (val_print_array_elements): Use get_array_bounds to compute the number
363 of array elements instead of dividing the length of the array by the
364 length of the element types.
365 * valarith.c (vector_binop): Likewise.
366 * valops.c (value_cast): Likewise.
367 * c-valprint.c (c_val_print): Likewise.
368 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
370 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
372 * valarith.c (value_pos, value_neg, value_complement): Handle
374 * valops.c (value_one): Likewise.
376 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
378 * value.h (value_non_lval): Declare.
379 * value.c (value_non_lval): New function.
380 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
381 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
384 2010-11-02 Doug Evans <dje@google.com>
386 New python module gdb.printing, and new commands info pretty-printer,
387 enable pretty-printer, disable pretty-printer.
388 * NEWS: Mention them.
389 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
390 gdb/command/__init__.py, gdb/command/pretty_printers.py.
391 * python/lib/gdb/__init__.py: Install pretty-printer commands.
392 * python/lib/gdb/printing.py: New file.
393 * python/lib/gdb/command/__init__.py: New file.
394 * python/lib/gdb/command/pretty_printers.py: New file.
396 2010-11-02 Tom Tromey <tromey@redhat.com>
398 * NEWS: Mention Guile removal.
399 * defs.h (enum language) <language_scm>: Remove.
400 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
402 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
403 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
404 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
407 2010-11-02 Doug Evans <dje@google.com>
409 * top.c: #include "python/python.h".
410 (gdb_init): Add a comment regarding initialize_all_files.
411 Call finish_python_initialization at the end.
412 * python/python.h (finish_python_initialization): Declare.
413 * python/python.c (finish_python_initialization): New function.
414 (_initialize_python): Move python-implemented initialization there
416 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
418 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
421 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
422 Pedro Alves <pedro@codesourcery.com>
423 * gdbthread.h (currently_stepping): New declaration.
424 * infrun.c (currently_stepping): Remove the forward declaration.
425 (currently_stepping): Make it global.
426 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
427 variables tp and step, initialized them. Pass STEP to to_resume.
428 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
429 * remote.c (currently_stepping_callback): New.
430 (remote_vcont_resume)
431 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
432 New variable tp. Call currently_stepping_callback and step such
435 2010-11-01 Hui Zhu <teawater@gmail.com>
437 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
439 2010-10-28 Hui Zhu <teawater@gmail.com>
441 * tracepoint.c (trace_save): Change utp->actions to
444 2010-10-26 Joel Brobecker <brobecker@adacore.com>
446 * (_FILE_OFFSET_BITS): Fix typo in comment.
448 2010-10-26 Joel Brobecker <brobecker@adacore.com>
450 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
451 (PyEval_InitThreads): Remove duplicate. Define as nothing.
452 (PyEval_ReleaseLock): Define as nothing.
454 2010-10-26 Joel Brobecker <brobecker@adacore.com>
456 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
457 by call to FILENAME_CMP.
459 2010-10-26 Joel Brobecker <brobecker@adacore.com>
461 * dictionary.c (dict_hash): Move assignment out of if condition.
463 2010-10-22 Jie Zhang <jie@codesourcery.com>
465 * Makefile.in (install): Remove dependency of install-only and
466 recursively invoke make for install-only.
467 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
468 (install): Pass FLAGS_TO_PASS when recursively make install-only.
470 2010-10-20 Hui Zhu <teawater@gmail.com>
472 * tracepoint.c (tfile_get_traceframe_address): Call
473 extract_signed_integer.
474 (tfile_trace_find): Call extract_signed_integer and
475 extract_unsigned_integer. Change data_size to unsigned int.
476 (tfile_fetch_registers): Call extract_unsigned_integer.
477 (tfile_xfer_partial): Ditto.
478 (tfile_get_trace_state_variable_value): Call
479 extract_signed_integer and extract_unsigned_integer.
481 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
483 * remote.c (remote_get_threadlist): If we got empty
484 response, bail out immediately, and don't emit any
487 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
489 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
490 for "mov pc, REG" as well.
491 (thumb_instruction_changes_pc): Likewise.
493 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
496 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
497 * eval.c (evaluate_subexp_standard): Check for overload of
499 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
500 (value_x_unop): Ditto.
501 * valops.c: Include "exceptions.h".
502 (find_overload_match): Throw NOT_FOUND_ERROR.
503 (value_struct_elt): Ditto.
505 2010-10-19 Tom Tromey <tromey@redhat.com>
507 * python/py-cmd.c (cmdpy_function): Unreference exception state.
509 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
511 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
512 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
514 Make all other conversions illegal.
516 2010-10-18 Doug Evans <dje@google.com>
518 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
519 assumptions of when this case happens. Print "<unnamed typedef>".
521 2010-10-18 Tom Tromey <tromey@redhat.com>
523 * valprint.c (val_print_string): Pass 'encoding' to
526 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
528 Fix the `stopped language detection' testcase for gcc-4.5.
529 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
530 * symfile.c (set_initial_language): Move variable filename to a more
531 inner block. Prefer LANGUAGE_OF_MAIN.
532 * symtab.c (language_of_main): New variable.
533 (set_main_name): Always reset LANGUAGE_OF_MAIN.
534 * symtab.h (language_of_main): New declaration.
536 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
537 Pedro Alves <pedro@codesourcery.com>
539 * gdbthread.h (currently_stepping): New declaration.
540 * infrun.c (currently_stepping): Remove the forward declaration.
541 (currently_stepping): Make it global.
542 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
543 variables tp and step, initialized them. Pass STEP to to_resume.
544 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
545 * remote.c (currently_stepping_callback): New.
546 (remote_vcont_resume)
547 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
548 New variable tp. Call currently_stepping_callback and step such
551 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
553 * infrun.c (follow_exec): Replace symbol_file_add_main by
554 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
556 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
558 * objfiles.c (free_all_objfiles): Likewise.
559 * remote-m32r-sdi.c (m32r_load): Likewise.
560 * solib-som.c (som_solib_create_inferior_hook): Likewise.
561 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
562 clear_symtab_users with ADD_FLAGS.
563 (reread_symbols): Use parameter 0 for clear_symtab_users.
564 (clear_symtab_users): New parameter add_flags. Do not call
565 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
566 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
567 * symtab.h (clear_symtab_users): New parameter add_flags.
569 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
571 Fix GCC false warning.
572 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
574 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
576 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
577 display of type of method arguments.
579 2010-10-15 Tom Tromey <tromey@redhat.com>
582 * varobj.c (value_get_print_value): Use val_print_string to print
584 * python/py-prettyprint.c (print_string_repr): Use
585 val_print_string to print lazy strings. Fix cleanup logic.
586 (print_children): Likewise.
587 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
588 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
589 Change return type to 'void', add 'addr' argument.
590 * value.h (val_print_string): Update.
591 * valprint.c (val_print_string): Add 'encoding' argument.
592 * printcmd.c (print_formatted): Update.
593 * p-valprint.c (pascal_val_print): Update.
594 * m2-valprint.c (print_unpacked_pointer): Update.
595 (m2_print_array_contents): Likewise.
596 * jv-valprint.c (java_value_print): Update.
597 * f-valprint.c (f_val_print): Update.
598 * c-valprint.c (c_val_print): Update.
599 * auxv.c (fprint_target_auxv): Update.
601 2010-10-15 Doug Evans <dje@google.com>
602 Jan Kratochvil <jan.kratochvil@redhat.com>
605 * gdbtypes.c (check_typedef): Clean up function comment.
606 Keep track of instance flags as we strip typedefs and create a new
607 type to preserve them if necessary.
608 * gdbtypes.h (type) <instance_flags>: Extend the comment.
610 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
612 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
614 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
616 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
617 * gdbtypes.c (rank_one_type): Move type comparison code out of here
619 (types_equal): ...here. And changed it as follows:
620 Outside of typedefs type must be of the same TYPE_CODE.
621 When compairing two pointers or references they are equal if their
623 Correct pointer conversions.
625 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
627 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
628 having fields without names.
630 2010-10-13 Tom Tromey <tromey@redhat.com>
632 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
634 2010-10-13 Doug Evans <dje@google.com>
636 New python module gdb.types.
638 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
639 * python/lib/gdb/types.py: New file.
641 * c-typeprint.c: Whitespace cleanup.
642 (cp_type_print_method_args): Remove unnecessary forward decl.
643 (cp_type_print_derivation_info): Ditto.
644 (c_type_print_varspec_prefix): Mark as static at definition.
645 (c_type_print_modifier): Fix arg descriptions.
647 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
649 * python/py-breakpoint.c (bppy_set_condition): New comment.
650 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
651 failed PyUnicode_Decode.
652 (cmdpy_completer): Skip element for failed
653 python_string_to_host_string.
654 (cmdpy_init): Return -1 on failed python_string_to_host_string.
655 * python/py-frame.c (frapy_read_var): Extend the function comment.
656 * python/py-function.c (fnpy_init): Return -1 on failed
657 python_string_to_host_string.
658 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
659 the function comment.
660 (infpy_search_memory): Extend the function comment. Remove the
661 PyErr_SetString call on already set error state.
662 * python/py-param.c (set_parameter_value): Extend the function
663 comment. Return -1 on failed python_string_to_host_string, twice.
664 (set_attr): Extend the function comment.
665 (compute_enum_values): Extend the function comment. New variable
666 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
667 failed python_string_to_host_string.
668 (get_doc_string): Call gdbpy_print_stack on failed
669 python_string_to_host_string.
670 (parmpy_init): Extend the function comment.
671 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
672 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
673 failed python_string_to_host_string.
674 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
675 (valpy_binop, valpy_richcompare): Extend the function comment.
677 (struct python_env) <error_type, error_value, error_traceback>: New
679 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
680 (ensure_python_env): Call PyErr_Fetch.
681 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
682 failed convert_value_from_python.
683 (value_get_print_value): Call gdbpy_print_stack on failed
684 python_string_to_target_python_string.
686 2010-10-12 Tom Tromey <tromey@redhat.com>
688 * python/py-prettyprint.c (search_pp_list): Fix error checking.
690 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
692 * gdbtypes.c (do_is_ancestor): New function.
693 (is_ancestor): Use do_is_ancestor.
694 (is_public_ancestor): Use do_is_ancestor.
696 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
698 * ser-go32.c (struct dos_ops): Add missing fdopen field.
700 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
702 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
704 2010-10-11 Doug Evans <dje@google.com>
706 * c-typeprint.c (c_type_print_modifier): Add note that this prints
707 the address space id too.
709 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
711 Fix attaching to re-prelinked executables on ppc64.
712 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
713 initialize it, try to adjust FILESZ field by it.
715 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
717 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
718 messages if info_verbose.
720 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
722 * valops.c (value_cast): Handle vector types.
723 * valarith.c (value_binop): Widen scalar to vector if appropriate.
725 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
727 * arm-tdep.c (thumb_expand_immediate): New function.
728 (thumb_instruction_changes_pc): Likewise.
729 (thumb2_instruction_changes_pc): Likewise.
730 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
731 prologue parsing. Improved support for optimized code.
732 (thumb_scan_prologue): Do not reply on line-number information,
733 use same heuristics as arm_scan_prologue insead.
734 (skip_prologue_function): Accept functions
735 "__tls_get_addr" and "__aeabi_read_tp".
737 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
738 Daniel Jacobowitz <dan@codesourcery.com>
740 * arm-tdep.c (thumb_in_function_epilogue_p)
741 (arm_in_function_epilogue_p): New.
742 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
743 gdbarch_in_function_epilogue_p callback.
745 2010-10-07 Doug Evans <dje@google.com>
747 * cc-with-index.sh (output_file): Default to a.out.
749 * dwarf2read.c (mapped_index): Rename member index_table to
750 symbol_table and index_table_slots to symbol_table_slots.
752 (create_symbol_hash_table): Renamed from create_index_table.
754 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
755 (write_hash_table): Rename local index_table to symbol_hash_table.
757 * addrmap.h (addrmap_foreach_fn): New typedef.
758 (addrmap_foreach): Declare.
759 * addrmap.c (struct addrmap_funcs): New member foreach.
760 (addrmap_foreach): New function.
761 (addrmap_fixed_foreach): New function.
762 (addrmap_fixed_funcs): Update.
763 (struct mutable_foreach_data): New struct.
764 (addrmap_mutable_foreach_worker): New function.
765 (addrmap_mutable_foreach): New function.
766 (addrmap_mutable_funcs): Update.
768 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
770 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
773 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
775 * ada-lang.c (full_match): Declare.
776 (ada_match_name): Rename to match_name (we should avoid prefixing static
777 symbols with "ada_").
778 (match_name): New name for ada_match_name.
779 (struct ada_psym_data): Remove and replace with...
780 (struct match_data): User data for map_matching_symbols.
781 (ada_add_psyms): Remove.
782 (aux_add_nonlocal_symbols): New function, used as callback for
783 map_matching_symbols.
784 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
786 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
787 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
788 Rework to use map_matching_symbols instead of map_ada_symtabs.
789 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
790 * psymtab.c: Include dependency on dictionary.h.
791 (match_partial_symbol): New function.
792 (ada_lookup_partial_symbol): Remove.
793 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
794 (map_matching_symbols_psymtab): New function.
795 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
796 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
798 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
800 * ada-lang.c (ada_match_name): Use new API for wild_match.
801 (wild_match): Change API to be consistent with that of strcmp_iw;
802 return 0 for a match, and switch operand order.
803 (full_match): New function.
804 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
805 matching to allow use of hashing.
806 * dictionary.c (struct dict_vector): Generalize iter_name_first,
807 iter_name_next ot iter_match_first, iter_match_next.
808 (iter_name_first_hashed): Replace with iter_match_first_hashed.
809 (iter_name_next_hashed): Replace with iter_match_next_hashed.
810 (iter_name_first_linear): Replace with iter_match_first_linear.
811 (iter_name_next_linear): Replace with iter_match_next_linear.
812 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
813 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
814 (dict_iter_match_first): New function.
815 (dict_iter_match_next): New function.
816 (dict_hash): New function.
817 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
818 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
820 2010-10-06 Doug Evans <dje@google.com>
822 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
824 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
826 * dwarf2read.c (read_tag_const_type): Handle const arrays.
828 2010-10-06 Doug Evans <dje@google.com>
830 * Makefile.in (REQUIRED_SUBDIRS): New var.
831 (subdir_do): Verify required subdir Makefiles exist.
833 Create subdir data-directory.
834 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
835 data-directory/Makefile.in.
836 (SUBDIRS): Add data-directory.
837 (all): Remove xml-syscall-copy dependency.
838 (xml-syscall-copy): Moved to data-directory/Makefile.in as
840 (xml-syscall-install): Moved to data-directory/Makefile.in as
842 (install-only): Remove xml-syscall-install dependency.
843 (all-data-directory): New rule.
844 (data-directory/Makefile): New rule.
845 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
846 * configure: Regenerate.
847 * data-directory/Makefile.in: New file.
848 * python/lib/gdb/__init__.py: New file.
850 2010-10-06 Joel Brobecker <brobecker@adacore.com>
852 Fix ARI warnings in advance_wild_match.
853 * ada-lang.c (advance_wild_match): Delete local variable t2.
854 Adjust code accordingly. Minor reformatting.
856 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
858 * gdbtypes.h (struct main_type): Remove flag_nottext.
859 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
860 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
861 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
862 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
863 of TYPE_FLAG_NOTTEXT.
864 (init_type): Remove the initialization of the flag_nottext field.
865 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
867 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
869 2010-10-04 Doug Evans <dje@google.com>
871 * cc-with-index.sh: New file.
873 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
875 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
876 (create_cus_from_index, create_addrmap_from_index): Ditto.
877 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
878 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
879 (dw2_do_expand_symtabs_matching): Ditto.
880 (eq_strtab_entry, create_strtab, add_string): Ditto.
881 (hash_strtab_entry): Ditto.
882 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
883 (create_index_table, create_mapped_symtab, find_slot): Ditto.
884 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
885 (write_hash_table, add_address_entry, write_psymbols): Ditto.
886 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
887 (write_psymtabs_to_index): Ditto.
889 2010-10-04 Joel Brobecker <brobecker@adacore.com>
891 * ada-lang.c: #include "value.h".
892 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
893 arguments. Implement using value_allocate_space_in_inferior
894 instead of allocating memory from the stack.
895 (make_array_descriptor): Remove gdbarch and sp parameters. Update
896 calls to ensure_lval.
897 (ada_convert_actual): Remove gdbarch and sp parameters. Update
898 calls to make_array_descriptor and ensure_lval.
899 * ada-lang.h (ada_convert_actual): Update declaration.
900 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
902 2010-10-04 Doug Evans <dje@google.com>
904 * python/python.c (_initialize_python): Define new function
905 GdbSetPythonDirectory in python. Use it to update sys.path and
908 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
910 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
911 incorporating and generalizing print_record_field_types.
912 (print_record_field_types): Change return value and update comment.
913 Re-implement using print_selected_record_field_types.
914 (print_choices): Print "=>" here.
915 Handle case of unencoded variant branch.
916 (print_variant_clauses): Reformat comment.
917 Special-case unencoded variant branch.
919 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
921 * ada-lang.c (wild_match): Reimplement.
922 Change API to eliminate unused length argument, reverse arguments and
923 make 0 the 'true' return value.
924 (advance_wild_match): New auxiliary function for wild_match to improve
926 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
927 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
929 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
931 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
933 2010-10-01 Doug Evans <dje@google.com>
935 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
936 for `save gdb-index' command.
938 2010-10-01 Tom Tromey <tromey@redhat.com>
940 * symfile.h (allocate_symtab): Update.
941 * symfile.c (allocate_symtab): Make 'filename' const.
942 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
943 (add_psymbol_to_list): Likewise.
944 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
946 (add_psymbol_to_list): Update.
947 * mdebugread.c (new_symtab): Make 'name' const.
948 (psymtab_to_symtab_1): Make 'filename' const.
949 * elfread.c (elfstab_offset_sections): Update.
950 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
951 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
952 (psymtab_include_file_name): Update.
953 * dbxread.c (find_stab_function_addr): Make 'filename' const.
954 * buildsym.h (start_subfile): Update.
955 * buildsym.c (start_subfile): Make arguments const.
957 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
959 * fork-child.c (breakup_args): Fix crash if shell forking is
960 disabled at compile time.
962 2010-10-01 Joel Brobecker <brobecker@adacore.com>
964 * ada-lang.c (desc_bounds): Add handling of the case where
965 the P_BOUNDS field is a pointer to a stub.
966 (desc_data_target_type): Same for P_ARRAY field.
967 (ada_check_typedef): Strip the typedef layers from the type
968 found by ada_find_any_type.
970 2010-10-01 Joel Brobecker <brobecker@adacore.com>
972 * sparc-tdep.c (sparc32_frame_align): New function.
973 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
974 * sparc64-tdep.c (sparc64_frame_align): New function.
975 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
977 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
979 * defs.h (MAX_REGISTER_SIZE): Set to 64.
981 2010-09-30 Tom Tromey <tromey@redhat.com>
983 * symfile.h (struct sym_fns) <next>: Remove.
984 (add_symtab_fns): Update.
985 * symfile.c (sym_fns_ptr): New typedef.
986 (symtab_fns): Now a VEC.
987 (add_symtab_fns): Update. Change argument type.
988 (find_sym_fns): Update. Change return type.
989 (get_symfile_segment_data): Update.
990 * objfiles.h (struct objfile) <sf>: Now const.
991 * somread.c (som_sym_fns): Now const. Update.
992 * xcoffread.c (xcoff_sym_fns): Now const. Update.
993 * mipsread.c (ecoff_sym_fns): Now const. Update.
994 * machoread.c (macho_sym_fns): Now const. Update.
995 * elfread.c (elf_sym_fns): Now const. Update.
996 (elf_sym_fns_gdb_index): Likewise.
997 * dbxread.c (aout_sym_fns): Now const. Update.
998 * coffread.c (coff_sym_fns): Now const. Update.
1000 2010-09-30 Tom Tromey <tromey@redhat.com>
1002 * value.c (value_primitive_field): Take 'offset' into account for
1005 2010-09-30 Tom Tromey <tromey@redhat.com>
1007 * completer.c (count_struct_fields): Handle anonymous structs and
1009 (add_struct_fields): Likewise.
1011 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 Fix printing parameters of inlined functions.
1014 * ada-lang.c (is_known_support_routine)
1015 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1016 for find_frame_funname.
1017 * python/py-frame.c (frapy_name): Likewise.
1018 * stack.c (find_frame_funname): New parameter funcp. Update the
1019 function comment. Fill it in.
1020 (print_frame): New variable func. Initialize it by
1021 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1022 FUNC as the parameter of print_args_stub.
1023 * stack.h (find_frame_funname): New parameter funcp. Remove the
1024 function declaration comment.
1026 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1029 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1030 tp. Iterate INFERIOR_LIST and call target_has_execution.
1032 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 Fix GDB crash on inferior calls with self-referencing classes.
1035 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1038 2010-09-29 Doug Evans <dje@google.com>
1040 Workaround for gcc/45682.
1041 * dwarf2read.c (partial_die_info): New fields fixup_called,
1043 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1044 Move definition next to use. Use linkage_name to determine if class
1045 is in a namespace. All callers updated.
1046 (fixup_partial_die): Return early if already called.
1047 Set fixup_called when done.
1048 (guess_full_die_structure_name): New function.
1049 (determine_prefix): Call it for class/struct/union dies if c++ and
1050 .debug_types section is present and parent is DW_TAG_compile_unit.
1052 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1054 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1055 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1057 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1059 * NEWS: Announce Ravenscar Profile support.
1061 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1062 Jerome Guitton <guitton@adacore.com>
1064 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1066 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1067 ravenscar-sparc-thread.o to gdb_target_obs.
1069 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1071 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1072 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1074 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1076 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1077 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1078 skip_main_prologue method.
1080 2010-09-27 Tom Tromey <tromey@redhat.com>
1082 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1083 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1084 Only emit a given psymbol once.
1085 (struct signatured_type_index_data) <psyms_seen>: New field.
1086 (write_one_signatured_type): Update.
1087 (cleanup_htab): New function.
1088 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1090 (save_gdb_index_command): Update index documentation.
1092 2010-09-27 Tom Tromey <tromey@redhat.com>
1094 * bcache.c (expand_hash_table): Use hash_function, not hash.
1096 2010-09-27 Tom Tromey <tromey@redhat.com>
1098 * gdb_wchar.h: Change minimum libiconv to 0x108.
1100 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1102 Fix lost siginfo_t for inferior calls.
1104 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1105 (save_inferior_thread_state): New variables regcache, gdbarch and
1106 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1107 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1109 (restore_inferior_thread_state): New variables regcache and gdbarch.
1110 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1111 REGCACHE. Free also SIGINFO_DATA.
1113 2010-09-24 Tom Tromey <tromey@redhat.com>
1115 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1117 (dw2_map_symbol_names): Likewise.
1119 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1121 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1122 discard_cleanups do_cleanups.
1124 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1128 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1129 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1130 si_code is < 0. Check for si_code == SI_TIMER before checking for
1133 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1135 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1137 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1139 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1140 debugging a core file.
1142 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1145 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1146 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1148 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1149 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1151 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1152 Remove the conditional.
1153 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1155 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 * main.c: Include objfiles.h.
1158 (captured_main): New variable objfile. Call
1159 load_auto_scripts_for_objfile for ALL_OBJFILES.
1161 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1163 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1166 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1168 * dwarf2read.c (scan_partial_symbols): Add handling of
1169 DW_TAG_constant DIEs.
1170 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1172 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1174 * configure.ac: Add support for --enable-gdbserver.
1175 * configure: Regenerate.
1177 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1180 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1181 'old_cleanups' reassignment.
1183 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1185 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1188 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1191 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1192 read_var_value and common_val_print and print a warning.
1194 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1196 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1197 keep the list in alphabetical order. Use longer e-mail address.
1199 2010-09-15 Tom Tromey <tromey@redhat.com>
1201 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1203 2010-09-15 Tom Tromey <tromey@redhat.com>
1205 * charset.c (iconv_open): New define.
1207 (iconv_close): Likewise.
1208 (phony_iconv_open): Add "phony_" prefix.
1209 (phony_iconv_close): Likewise.
1210 (phony_iconv): Likewise.
1211 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1212 Change how INTERMEDIATE_ENCODING is defined.
1214 2010-09-15 Doug Evans <dje@google.com>
1216 * dwarf2read.c (struct die_info): Fix comment.
1218 2010-09-15 Alan Modra <amodra@gmail.com>
1221 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1222 than setting SEC_NEVER_LOAD on sections that need not be copied.
1224 2010-09-14 Tom Tromey <tromey@redhat.com>
1226 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1227 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1229 * symfile.h (extend_psymbol_list): Remove.
1230 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1231 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1232 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1234 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1236 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1239 2010-09-14 Tom Tromey <tromey@redhat.com>
1242 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1243 for unrecognized frame base expression.
1245 2010-09-14 Tom Tromey <tromey@redhat.com>
1248 * value.c (value_static_field): Use value_of_variable.
1250 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1252 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1253 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1255 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1258 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1261 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1263 * NEWS: Add x86-lynxos to the list of platforms supported by
1266 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1268 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1270 2010-09-13 Tom Tromey <tromey@redhat.com>
1272 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1274 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1276 * i386-tdep.c (i386_ymm_type): Set type name to
1277 builtin_type_vec256i.
1279 2010-09-12 Michael Snyder <msnyder@vmware.com>
1281 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1283 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1285 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1287 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1289 * amd64-tdep.c (amd64_register_name): Removed.
1290 (amd64_init_abi): Don't call set_gdbarch_register_name.
1292 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1294 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1296 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1297 Paul Bolle <pebolle@tiscali.nl>
1299 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1300 * cli-logging.c (struct saved_output_files) <targerr>: New.
1301 (set_logging_redirect, pop_output_files, handle_redirections):
1302 Redirect also gdb_stdtargerr.
1303 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1305 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1306 also gdb_stdtargerr.
1307 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1308 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1309 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1310 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1311 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1314 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1316 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1317 to display a host address.
1318 * monitor.c (monitor_read_memory): Likewise.
1319 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1321 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1323 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1324 `CORE_ADDRESS' as it might contain target addresses.
1326 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1328 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1329 before cast to pointer to avoid warning.
1331 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1333 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1336 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1338 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1339 anonymous class partial DIEs.
1341 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1343 * dwarf2read.c (dwarf2_compute_name): Check that the first
1344 argument is a pointer.
1346 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1348 * dwarf2read.c (read_func_scope, read_structure_type)
1349 (read_common_block): Check for a NULL return from new_symbol.
1351 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1353 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1355 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1357 * dwarf2read.c (read_structure_type): Move processing of
1358 fields and member functions from here...
1359 (process_structure_scope): ... to here.
1361 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1363 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1365 (gnuv3_make_method_ptr): Likewise.
1367 2010-09-08 Tom Tromey <tromey@redhat.com>
1369 * breakpoint.c (create_breakpoint): Add missing _().
1371 2010-09-08 Doug Evans <dje@google.com>
1373 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1375 2010-09-08 Tom Tromey <tromey@redhat.com>
1378 2010-09-01 Tom Tromey <tromey@redhat.com>
1379 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1380 symtab.h: Revert earlier change.
1382 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1384 * psymtab.c (add_psymbol_to_bcache): Initialize
1386 memset psymbol.ginfo.value to 0.
1388 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1390 * infrun.c (resume): Extend comment on ignoring single-step
1391 requests on vfork parents waiting for a vfork-done.
1393 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1394 Pedro Alves <pedro@codesourcery.com>
1396 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1398 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1400 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1401 calling strsignal. Use enum target_signal type for saved_signo.
1402 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1403 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1404 target_signal_to_host before calling strsignal.
1405 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1408 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1409 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 * common/signals.c (ANY): Remove.
1412 (SET): No longer use ANY.
1414 2010-09-06 Yao Qi <yao@codesourcery.com>
1416 * infrunc(resume): When inferior is waiting_for_vfork_done,
1417 clear step and don't use displaced stepping.
1419 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1421 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1424 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1426 Code cleanup - split print_stop_reason.
1427 * infrun.c (enum inferior_stop_reason): Remove.
1428 (print_stop_reason): Remove by splitting into ...
1429 (print_exited_reason, print_signal_exited_reason)
1430 (print_no_history_reason, print_signal_received_reason)
1431 (print_end_stepping_range_reason): ... these new functions. Update
1432 the preceding comment.
1433 (handle_inferior_event): Change the calls to print_exited_reason,
1434 print_signal_exited_reason, print_no_history_reason,
1435 print_signal_received_reason, print_end_stepping_range_reason.
1436 (handle_step_into_function, handle_step_into_function_backward):
1437 Change the calls to print_end_stepping_range_reason.
1439 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1441 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1442 * cli-out.c: Include vec.h.
1443 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1444 variable stream, initialize it, use it.
1445 (cli_redirect): New function comment. Replace the stream and
1446 original_stream fields by the new streams field. Remove the
1447 original_stream != NULL conditional, assert error on NULL instead.
1448 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1449 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1450 original_stream fields by the new streams field.
1451 (cli_out_set_stream): Replace the stream field by the new streams
1453 * cli-out.h: Include vec.h.
1454 (ui_filep): New typedef, call DEF_VEC_P for it.
1455 (struct cli_ui_out_data): Replace the stream and original_stream
1456 fields by the new streams field.
1457 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1458 NULL first. Extend the comment.
1459 (handle_redirections): Call ui_out_redirect with output.
1460 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1461 calls outside of the TRY_CATCH block.
1463 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1467 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1469 Back out the following change:
1470 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1471 | * record.c (set_record_pic_cmdlist,
1472 | show_record_pic_cmdlist): New variables.
1473 | (set_record_pic_command,
1474 | show_record_pic_command): New functions.
1475 | (record_pic_function, record_pic_line, record_pic_enum,
1476 | set_record_pic_type, record_pic_hide_nofunction,
1477 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1478 | (record_pic_fputs): New function.
1479 | (function_list, node_list, edge_list): New struct.
1480 | (function_list, node_list, edge_list): New variables.
1481 | (record_pic_cleanups, record_pic_node,
1482 | record_pic_edge, cmd_record_pic): New functions.
1483 | (_initialize_record): Add new commands for record pic.
1485 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1487 * config.in, configure: Regenerated.
1488 * configure.ac: Check for waitpid.
1489 * ser-pipe.c (pipe_close): Wait for the program to exit.
1491 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1493 * cli/cli-logging.c: Include gdb_assert.h.
1494 (set_logging_overwrite): New function.
1495 (logging_redirect): New comment.
1496 (logging_no_redirect_file, set_logging_redirect)
1497 (pop_output_files) <logging_no_redirect_file>: New.
1498 (handle_redirections) <!logging_redirect>: New variable
1499 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1500 discard cleanup for the close of former OUTPUT. Set
1501 LOGGING_NO_REDIRECT_FILE.
1502 (handle_redirections) <logging_redirect>: gdb_assert
1503 LOGGING_NO_REDIRECT_FILE.
1504 (show_logging_command) <logging_redirect handling>: Adjust messages
1505 for SAVED_FILENAME not NULL.
1506 (_initialize_cli_logging): Install set_logging_overwrite and
1507 set_logging_redirect.
1509 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1511 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1513 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1516 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1517 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1518 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1520 2010-09-02 Yao Qi <yao@codesourcery.com>
1522 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1523 number from a WIFSIGNALED status.
1525 2010-09-01 Tom Tromey <tromey@redhat.com>
1527 * symtab.h (lookup_type_symbol): Declare.
1528 * symtab.c (lookup_symbol_in_language_full): Rename from
1529 lookup_symbol_in_language. Add 'for_type' argument.
1530 (lookup_symbol_in_language): New function.
1531 (lookup_type_symbol): Likewise.
1532 (lookup_symbol_aux): Add 'for_type' argument.
1533 (match_symbol_aux): New function.
1534 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1535 (match_transparent_type): New function.
1536 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1537 * symfile.h (struct quick_symbol_functions)
1538 <pre_expand_symtabs_matching>: Remove.
1539 <expand_one_symtab_matching>: New field.
1540 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1541 (pre_expand_symtabs_matching_psymtabs): Remove.
1542 (psym_functions): Update.
1543 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1544 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1545 (dw2_pre_expand_symtabs_matching): Remove.
1546 (dw2_expand_one_symtab_matching): New function.
1547 (dwarf2_gdb_index_functions): Update.
1549 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1551 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1553 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1555 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1556 as a feature reported by -list-target-features.
1558 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1560 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1561 (powerpc-32.o, powerpc-32.c): New rules.
1562 (clean): Also remove powerpc-32.c.
1563 * regformats/rs6000/powerpc-32.dat: Generate.
1565 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1567 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1568 psymbol_bcache_init.
1569 * psymtab.h (psymbol_bcache_init): New function prototype.
1570 (psymbol_bcache_free): New function prototype.
1571 (psymbol_bcache_get_bcache): New function prototype.
1572 * psymtab.c (psymbol_bcache_init): New function.
1573 (psymbol_bcache_free): New function.
1574 (psymbol_bcache_full): New function.
1575 (psymbol_bcache_get_bcache): New function.
1576 (add_psymbol_to_bcache): use psymbol_bcache_full.
1577 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1579 * symmisc.c (print_symbol_bcache_statistics): Updated.
1580 (print_objfile_statistics): Updated.
1581 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1583 (free_objfile): Use psymbol_bcache_free.
1585 2010-08-31 Tom Tromey <tromey@redhat.com>
1588 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1589 Don't set TYPE_NAME on the type.
1591 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1593 * infrun.c (set_exec_direction_func): Error out if target does not
1594 support reverse execution.
1596 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1598 Make linux_get_siginfo_type `type *' unique.
1599 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1600 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1601 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1602 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1603 (_initialize_linux_tdep): New.
1605 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 * defs.h (find_memory_region_ftype): New typedef.
1609 (exec_set_find_memory_regions): Use it.
1610 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1611 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1612 * gcore.c (objfile_find_memory_regions): Likewise.
1613 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1614 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1615 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1616 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1617 find_memory_region_ftype.
1618 (insert_dbx_link_bpt_in_region): Likewise.
1619 (iterate_over_mappings): Likewise. Drop the comment part about the
1621 (find_memory_regions_callback): Use find_memory_region_ftype.
1622 (proc_find_memory_regions): Likewise.
1623 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1624 find_memory_region_ftype.
1625 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1626 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1628 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1630 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1631 'static partial_symbol psymbol'.
1632 (psymbol_hash): New function.
1633 (psymbol_compare): New function.
1634 * bcache.c (hash_continue): New.
1635 (hash): Use hash_continue.
1636 * bcache.c: Add hash_function and compare_function
1637 pointers to bcache struct.
1638 (bcache_full): Use bcache->hash_function, and
1639 bcache->compare_function.
1640 (bcache_compare): New function.
1641 (bcache_xmalloc): Take hash_function and
1642 compare_function arguments and initialize the
1645 * objfiles.c (allocate_objfile): Updated.
1646 * symfile.c (reread_symbols): Updated.
1647 * python/py-type.c (typy_richcompare): Updated.
1649 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1650 Tom Tromey <tromey@redhat.com>
1653 * python/py-value.c (valpy_get_dynamic_type): New function.
1654 (value_object_getset): Add "dynamic_type".
1655 (valpy_get_type): Fail on error.
1657 2010-08-30 Yao Qi <yao@codesourcery.com>
1659 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1660 (arm_linux_syscall_next_pc): New.
1661 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1662 (arm_linux_init_abi): Initialize syscall_next_pc.
1663 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1664 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1665 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1666 Declare arm_frame_is_thumb.
1668 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1672 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1674 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1675 calls of bpstat_alloc. Remove explicit bs chain termination.
1677 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1680 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1681 (my_waitpid): Likewise.
1683 2010-08-27 Doug Evans <dje@google.com>
1685 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1688 2010-08-27 Tom Tromey <tromey@redhat.com>
1690 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1691 TYPE_FIELD_IGNORE_BITS.
1693 2010-08-27 Doug Evans <dje@google.com>
1695 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1696 the order they're defined in. munmap .debug_types buffer.
1698 2010-08-26 Doug Evans <dje@google.com>
1700 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1701 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1702 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1703 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1704 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1705 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1706 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1707 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1708 (write_psymtabs_to_index): Ditto.
1710 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1712 * NEWS: Mention libthread_db debugging with core files.
1714 2010-08-26 Doug Evans <dje@google.com>
1716 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1717 forward decl. Pass pst->dirname to dwarf_decode_lines.
1718 (psymtab_include_file_name): New function.
1719 (dwarf_decode_lines): Call it. Update comments.
1721 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1723 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1724 compilation unit being different from target die's.
1726 2010-08-24 Doug Evans <dje@google.com>
1729 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1730 debug_types_type_hash.
1731 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1733 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1734 appropriate type_hash table. All callers updated.
1735 (allocate_signatured_type_table): Renamed from
1736 allocate_signatured_type_hash_table. All callers updated.
1737 (create_signatured_type_table_from_index): Renamed from
1738 create_signatured_type_hash_from_index. All callers updated.
1739 (read_die_type): Add comment. Move actual reading to ...
1740 (read_die_type_1): ... here. New function.
1741 (follow_die_ref_or_sig): Tweak comment.
1742 (set_die_type): Rewrite to use appropriate choice of
1743 debug_info_type_hash or debug_types_type_hash.
1744 (get_die_type_at_offset): New function.
1745 (get_die_type): Call it.
1747 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 * python/py-type.c (typy_richcompare): Initialize worklist.
1751 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1752 Kazu Hirata <kazu@codesourcery.com>
1753 Jonathan Larmour <jifl@eCosCentric.com>
1755 * arm-tdep.c: Include features/arm-with-m.c.
1756 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1758 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1759 Check is_m after force-mode.
1760 (arm_gdbarch_init): Check the binary before the target description.
1761 Add check for M profile attribute. If we have an M-profile device,
1762 but no target register description, use arm-with-m. Recognize the
1763 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1764 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1765 * arm-tdep.h (XPSR_T): Define.
1766 (struct gdbarch_tdep): Add is_m member.
1767 * features/arm-m-profile.xml, features/arm-with-m.c,
1768 features/arm-with-m.xml: New files.
1770 2010-08-23 Doug Evans <dje@google.com>
1772 * dwarf2read.c (read_structure_type): Add comment.
1773 (read_enumeration_type): Add comment.
1774 (process_enumeration_scope): Move definition of some locals
1775 closer to their use.
1776 (read_namespace_type): Add comment.
1777 (set_die_type): Fix typo in comment.
1779 2010-08-23 Tom Tromey <tromey@redhat.com>
1782 * python/py-value.c: Include expression.h.
1783 (valpy_do_cast): New function.
1784 (valpy_cast): Use it.
1785 (valpy_dynamic_cast): New function.
1786 (valpy_reinterpret_cast): Likewise.
1787 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1789 2010-08-23 Tom Tromey <tromey@redhat.com>
1792 * python/py-value.c (valpy_nonzero): Don't throw error for other
1795 2010-08-23 Tom Tromey <tromey@redhat.com>
1798 * python/py-type.c: Include bcache.h, vec.h.
1799 (struct type_equality_entry): New.
1800 (compare_strings): New function.
1801 (check_types_equal): Likewise.
1802 (check_types_worklist): Likewise.
1803 (typy_richcompare): Likewise.
1804 (type_object_type): Set tp_richcompare field.
1806 2010-08-23 Tom Tromey <tromey@redhat.com>
1809 * python/py-type.c (typy_fields): Call check_typedef.
1810 (typy_template_argument): Add TRY_CATCH.
1812 2010-08-23 Tom Tromey <tromey@redhat.com>
1815 * python/py-type.c (typy_array): New function.
1816 (type_object_methods): Add "array".
1818 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1820 * python/python.c: Include "serial.h".
1821 (gdbpy_event_fds): Change type to `struct serial *' a array from
1823 (gdbpy_run_events): Change parameters. Use serial_readchar in
1825 (gdbpy_post_event): Use serial_write in place of write.
1826 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1827 serial_async in place of add_file_handler.
1829 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1831 * serial.h (gdb_pipe, serial_pipe): Declare.
1832 * serial.c (serial_interface_lookup): Take a const char pointer.
1833 (serial_fdopen): Rename to ...
1834 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1835 Call the OPS' fdopen function if there is one.
1836 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1838 (struct serial_ops) <fdopen>: New field.
1840 * ser-mingw.c (free_pipe_state):
1841 (free_pipe_state): Close output on non-pex pipes.
1842 (pipe_windows_fdopen): New.
1844 (_initialize_ser_windows): Register pipe_windows_fdopen.
1845 * ser-go32.c (gdb_pipe): New.
1846 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1851 2010-08-20 Keith Seitz <keiths@redhat.com>
1854 * dwarf2read.c (struct delayed_method_info): New struct.
1855 (struct dwarf2_cu): Add vector method_list.
1856 (scan_partial_symbols): Count methods for union, class, structure,
1857 and interface types.
1858 (add_to_method_list): New function.
1859 (free_delayed_list): New function.
1860 (compute_delayed_physnames): New function.
1861 (process_full_comp_unit): Make a cleanup for the CU's delayed
1862 physname list, compute the delayed physnames, and free the
1864 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1865 of the physname until after the CU is read.
1867 * dwarf2read.c (read_structure_type): Check if the current
1868 DIE's type was already completed after dwarf2_full_name
1871 2010-08-19 Stan Shebs <stan@codesourcery.com>
1873 * NEWS: Mention some additional changes.
1875 2010-08-19 Tom Tromey <tromey@redhat.com>
1877 * Makefile.in (install-python): Add DESTDIR.
1879 2010-08-19 Doug Evans <dje@google.com>
1882 * parser-defs.h (parse_float, parse_c_float): Declare.
1883 * parse.c (parse_float, parse_c_float): New function.
1884 * c-exp.y (parse_number): Call parse_c_float.
1885 * objc-exp.y (parse_number): Ditto.
1886 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1887 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1889 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1891 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1892 the arguments in the correct order.
1893 * symtab.c (maybe_add_partial_symtab_filename): Declare
1894 the arguments in the correct order.
1896 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1899 initialize it by null_frame_id, wrap its usage by get_frame_id,
1900 frame_id_p and frame_find_by_id.
1902 2010-08-18 Tom Tromey <tromey@redhat.com>
1905 * configure: Rebuild.
1906 * configure.ac: Add install-python to CONFIG_INSTALL.
1907 * Makefile.in (install-python): New.
1909 2010-08-18 Doug Evans <dje@google.com>
1911 * gdb_assert.h (gdb_assert_not_reached): New macro.
1912 (gdb_assert_fail): Fix typo in comment.
1913 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1915 * darwin-nat.c (darwin_check_new_threads): Ditto.
1916 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1917 (munmap_section_buffer): Ditto.
1918 * m32c-tdep.c (make_types): Ditto.
1919 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1920 * macroexp.c (get_character_constant): Ditto.
1921 (get_string_literal): Ditto.
1922 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1923 (mep_pseudo_cr_index, mep_register_type): Ditto.
1924 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1925 (mep_get_insn, mep_analyze_prologue): Ditto.
1926 * objfiles.c (qsort_cmp): Ditto.
1927 * prologue-value.c (pv_is_identical): Ditto.
1928 * record.c (record_get_loc): Ditto.
1929 * value.c (value_static_field): Ditto.
1930 * xtensa-tdep.c (call0_track_op): Ditto.
1932 2010-08-18 Tom Tromey <tromey@redhat.com>
1935 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1936 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1937 name-copying lower. Document exception behavior.
1938 * completer.c (expression_completer): Catch exceptions from
1939 parse_field_expression.
1941 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1945 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1946 workaround on core files.
1947 (try_thread_db_load_1): Don't try enabling thread event reporting
1949 (thread_db_load): Allow thread_db on core files.
1950 (attach_thread): Don't check thread signals on core files, nor try
1951 really attaching to the thread, nor enabling thread event event
1953 (thread_db_detach): Don't try disabing thread event reporting or
1954 removing thread event breakpoints when debugging a core file.
1955 (find_new_threads_callback): Don't try enabling thread event
1956 reporting on core files.
1957 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1958 debugging a core file.
1959 (thread_db_find_new_threads): Don't update thread
1960 cores (processors) when debugging a core (dump).
1962 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1966 * corelow.c (add_to_thread_list): Don't use
1967 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1968 (get_core_register_section): Don't use
1969 gdbarch_core_reg_section_encodes_pid.
1971 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1972 * gdbarch.h, gdbarch.c: Regenerate.
1973 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1974 gdbarch_core_reg_section_encodes_pid.
1975 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1976 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1977 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1979 2010-08-18 Yao Qi <yao@codesourcery.com>
1981 * MAINTAINERS : Add myself under Write After Approval.
1983 2010-08-17 Tom Tromey <tromey@redhat.com>
1985 * NEWS: Mention template parameter support.
1987 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1989 PR breakpoints/11371
1991 * breakpoint.c (decref_bp_location): Assert the reference count is
1994 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1996 PR breakpoints/11371
1998 * breakpoint.c (breakpoint_init_inferior): Decrement the
1999 location's reference count instead of deleting right away.
2000 (bpstat_free): Decrement the location's reference count. Make
2002 (bpstat_copy): Increment the location's reference count.
2003 (bpstat_find_breakpoint): Adjust.
2004 (bpstat_num): Adjust.
2005 (print_it_typical): Adjust. Use the breakpoint pointer in the
2006 bpstat instead of the location's owner.
2007 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2008 Adjust to record the location's owner in the bpstat.
2009 (watchpoint_check): Use the breakpoint pointer in the bpstat
2010 instead of the location's owner.
2011 (bpstat_check_breakpoint_conditions): Don't handle
2012 bp_watchpoint_scope here. Use the breakpoint pointer in the
2013 bpstat instead of the location's owner.
2014 (bpstat_stop_status): Defer inferior function calls to after
2015 building the bpstat list. Handle bp_watchpoint_scope here. Use
2016 the breakpoint pointer in the bpstat instead of the location's
2018 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2019 the location's owner.
2020 (free_bp_location): Don't walk bpstats clearing locations.
2021 (incref_bp_location): New.
2022 (decref_bp_location): New.
2023 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2024 instead of the location's owner.
2025 (update_global_location_list): Clear the location's owner, and
2026 decrement the location's reference count instead of deleting it
2028 (breakpoint_retire_moribund): Decrement the location's reference
2029 count instead of deleting it right away.
2030 (bpstat_remove_bp_location): Delete.
2031 (bpstat_remove_breakpoint): New.
2032 (bpstat_remove_bp_location_callback): Delete.
2033 (bpstat_remove_breakpoint_callback): New.
2034 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2035 clearing references to the breakpoint that is being deleted.
2037 * breakpoint.h (struct bp_location) <refc>: New field.
2038 <owner>: Update comments.
2039 (bpstat_free): Delete declaration.
2040 (struct bpstats): Change the type of the breakpoint_at field to
2041 struct breakpoint point, from struct bp_location pointer. Add new
2042 field bp_location_at.
2044 2010-08-16 Tom Tromey <tromey@redhat.com>
2048 2010-08-16 Tom Tromey <tromey@redhat.com>
2050 * NEWS: Mention watch -location.
2052 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2055 EXP_STRING_REPARSE to EXP_STRING.
2056 (watch_command_1): Set also EXP_STRING_REPARSE.
2057 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2058 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2059 Update comment for exp_string.
2061 2010-08-16 Tom Tromey <tromey@redhat.com>
2063 * value.c (release_value): Clear 'next' pointer.
2064 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2065 (watch_command_wrapper): Update.
2066 (watch_maybe_just_location): New function.
2067 (watch_command): Update.
2068 (rwatch_command_wrapper): Update.
2069 (rwatch_command): Update.
2070 (awatch_command_wrapper): Update.
2071 (awatch_command): Update.
2072 (check_for_argument): New function.
2073 (_initialize_breakpoint): Update help text.
2075 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2077 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2078 typedef'ed function types correctly.
2080 2010-08-13 Tom Tromey <tromey@redhat.com>
2082 * python/python-internal.h (gdbpy_get_hook_function): Don't
2085 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2090 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2092 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2093 the format strings to be compatible with Python 2.4.
2095 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2097 Easier and more stubborn MI memory read commands.
2099 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2100 and data-write-memory-bytes.
2101 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2102 (mi_cmd_data_write_memory_bytes): New.
2103 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2104 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2106 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2107 * target.c (target_read_until_error): Remove.
2108 (read_whatever_is_readable, free_memory_read_result_vector)
2109 (read_memory_robust): New.
2110 * target.h (target_read_until_error): Remove.
2111 (struct memory_read_result, free_memory_read_result_vector)
2112 (read_memory_robust): New.
2114 2010-08-13 Hui Zhu <teawater@gmail.com>
2116 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2117 (read_comp_unit): Initialize back_to.
2119 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2120 Pedro Alves <pedro@codesourcery.com>
2122 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2123 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2124 (struct partial_die_info) <has_template_arguments>: New field.
2125 <num_attrs>: Change type to unsigned char.
2126 <building_fullname>: New field.
2127 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2128 allocate a CU if we don't have one already. Add a cleanup for the
2130 (partial_die_full_name): Handle template arguments not in
2132 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2133 (load_full_comp_unit): Only allocate a CU if we don't have one
2135 (do_ui_file_peek_last): New.
2136 (dwarf2_compute_name): Handle template parameters not in
2138 (read_comp_unit): Read and free abbrevs if not read yet.
2139 (load_partial_dies): Handle template arguments not in DW_AT_name.
2140 (find_partial_die): If we have a CU, but no a partial dies yet,
2141 also read in the CU.
2142 (dwarf2_const_value_attr): New, abstracted out from
2144 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2145 dwarf2_const_value_attr.
2146 (determine_prefix): Detect and break loops created by RCVT's debug
2148 (maybe_queue_comp_unit): Bail out early if reading partial
2150 (follow_die_offset): Load full CU if we have no dies.
2151 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2152 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2154 2010-08-11 Tom Tromey <tromey@redhat.com>
2155 Phil Muldoon <pmuldoon@redhat.com>
2157 * python/python.c (gdbpy_run_events): New function.
2158 (gdbpy_post_event): Likewise.
2159 (gdbpy_initialize_events): Likewise.
2160 (_initialize_python): Call gdbpy_initialize_events.
2162 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2164 * gdb/valarith.c (vector_binop): New function.
2165 (scalar_binop): Likewise.
2166 (value_binop): Call scalar_binop or vector_binop depending on the types.
2167 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2168 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2170 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2172 2010-08-11 Brad Roberts <braddr@puremagic.com>
2174 * d-lang.c (extract_identifiers): Handle multiple digits.
2176 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2179 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2180 Rename to dummy_frame_unwind.
2181 (dummy_frame_unwind): Remove.
2182 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2183 * frame-unwind.c (frame_unwind_init): Use address of
2184 dummy_frame_unwind and inline_frame_unwind.
2185 * frame.c (create_sentinel_frame): Use address of
2186 sentinel_frame_unwind.
2187 * inline-frame.c (inline_frame_unwinder): Rename to
2188 inline_frame_unwind.
2189 (inline_frame_unwind): Remove.
2190 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2191 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2192 sentinel_frame_unwind.
2193 (sentinel_frame_unwind): Remove.
2194 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2197 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2201 and returned value. New comment from frame-unwind.h.
2202 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2204 * frame.c (get_frame_id, frame_unwind_register_value)
2205 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2206 (get_frame_type, frame_unwind_arch): Do not use the return value of
2207 frame_unwind_find_by_frame.
2209 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2210 Thiago Jung Bauermann <bauerman@br.ibm.com>
2211 Tom Tromey <tromey@redhat.com>
2213 * python/python.c (gdbpy_solib_address): New function.
2214 (gdbpy_decode_line): Likewise.
2216 2010-08-10 Tom Tromey <tromey@redhat.com>
2218 Revert gdb-add-index addition:
2219 * Makefile.in (install-only): Don't install gdb-add-index.
2220 * gdb-add-index.sh: Remove.
2222 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2224 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2225 `target_has_execution' check with `to_has_memory' check.
2226 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2227 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2228 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2230 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2232 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2233 (resume_siggnal, resume_step): Move these static globals...
2234 (struct sim_inferior_data): ...into this new struct.
2235 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2237 (gdb_callback, callbacks_initialized): Move these globals to
2238 a point earlier in the file.
2239 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2240 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2241 (gdbsim_close_inferior, gdbsim_resume_inferior)
2242 (gdbsim_stop_inferior): New functions.
2243 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2245 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2246 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2247 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2248 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2249 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2250 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2251 new local variable `sim_data' in each of these functions. Use
2252 `sim_data' to reference former globals `program_loaded',
2253 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2255 (gdbsim_open): Remove local variable `argv'. Put results of call
2256 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2257 make a cleanup for it. Free it though when a sim instance cannot
2259 (gdbsim_close): Free sim_argv and null it out as appropriate.
2260 Close sim instances in all inferiors.
2261 (gdbsim_cntrl_c): Stop all inferiors.
2263 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2265 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2267 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2268 function after symbol construction is complete.
2269 Do the same for template symbol addition to template_symbols list.
2271 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2273 * symtab.c (symbol_get_demangled_name): Remove assertion and
2274 return NULL when language_specific.cplus_specific is not initialized.
2275 * stabsread.c (define_symbol): Set the name before calling
2276 cp_scan_for_anonymous_namespaces.
2278 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2280 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2281 SYMBOL_SET_LANGUAGE.
2282 (symbol_init_language_specific): Renamed to symbol_set_language.
2283 * symtab.c (symbol_init_language_specific): Removed redundant check
2285 Renamed to symbol_set_language.
2286 * stabsread.c (define_symbol): Updated.
2287 (read_enum_type): Updated
2288 * psymtab.c (add_psymbol_to_bcache): Updated.
2289 * minsyms.c (install_minimal_symbols): Updated.
2290 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2291 SYMBOL_LANGUAGE to set the language.
2292 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2293 * mdebugread.c (new_symbol): Ditto.
2294 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2295 * dwarf2read.c (new_symbol_full): Ditto.
2296 * jv-lang.c (add_class_symbol): Ditto.
2298 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2300 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2301 (make_cleanup_restore_page_info)
2302 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2303 * gdbcmd.h (execute_command_to_string): New declaration.
2304 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2305 (make_cleanup_restore_ui_file): Move to utils.c
2306 (execute_gdb_command) <to_string>: Move ...
2307 * top.c (execute_command_to_string): ... here. Call
2308 set_batch_flag_and_make_cleanup_restore_page_info.
2309 * utils.c (make_cleanup_restore_integer): New source file blank line.
2310 (make_cleanup_restore_uinteger): New.
2311 (struct restore_ui_file_closure, do_restore_ui_file)
2312 (make_cleanup_restore_ui_file): Move here from python/python.c.
2313 (init_page_info) <batch_flag>
2314 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2315 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2317 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2319 * thread.c (add_thread_silent): Use null_ptid instead of
2320 minus_one_ptid while getting rid of stale inferior_ptid.
2322 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2324 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2325 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2326 (decode_frame_entry_1): Remove redundant setting of
2327 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2328 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2329 on examined frame section. Add comment to explain why.
2330 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2331 comment to explain usage.
2332 * gdbarch.c: Regenerate.
2333 * gdbarch.h: Regenerate.
2335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2337 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2343 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2345 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2346 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2347 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2348 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2349 linux-tdep.o to gdb_target_obs.
2351 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2353 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2356 2010-08-05 Hui Zhu <teawater@gmail.com>
2358 * mips-linux-tdep.c(regset.h): New include.
2359 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2360 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2361 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2362 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2363 mips_linux_regset_from_core_section): New functions.
2364 (fetch_core_registers, regset_core_fns): Deleted.
2365 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2366 Deleted regset_core_fns.
2367 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2368 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2369 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2372 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2374 * s390-tdep.c: Include linux-tdep.h.
2375 (s390_gdbarch_init): Call linux_init_abi.
2377 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2379 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2380 instead of printing "Thread" here.
2381 * linux-tdep.c: Include inferior.h.
2382 (linux_core_pid_to_str): New.
2383 (linux_init_abi): New.
2384 * linux-tdep.h (linux_init_abi): Declare.
2385 * alpha-linux-tdep.c: Include linux-tdep.h.
2386 (alpha_linux_init_abi): Call linux_init_abi.
2387 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2388 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2389 * frv-linux-tdep.c: Include linux-tdep.h
2390 (frv_linux_init_abi): Call linux_init_abi.
2391 * hppa-linux-tdep.c: Include linux-tdep.h
2392 (hppa_linux_init_abi): Call linux_init_abi.
2393 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2394 * ia64-linux-tdep.c: Include linux-tdep.h.
2395 (ia64_linux_init_abi): Call linux_init_abi.
2396 * m32r-linux-tdep.c: Include linux-tdep.h.
2397 (m32r_linux_init_abi): Call linux_init_abi.
2398 * m68klinux-tdep.c: Include linux-tdep.h.
2399 (m68k_linux_init_abi): Call linux_init_abi.
2400 * microblaze-linux-tdep.c: Include linux-tdep.h.
2401 (microblaze_linux_init_abi): Call linux_init_abi.
2402 * mips-linux-tdep.c: Include linux-tdep.h.
2403 (mips_linux_init_abi): Call linux_init_abi.
2404 * mn10300-linux-tdep.c: Include linux-tdep.h.
2405 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2406 'gdbinfo' parameter to 'info'.
2407 * ppc-linux-tdep.c: Include linux-tdep.h.
2408 (ppc_linux_init_abi): Call linux_init_abi.
2409 * sh-linux-tdep.c: Include linux-tdep.h.
2410 (sh_linux_init_abi): Call linux_init_abi.
2411 * sparc-linux-tdep.c: Include linux-tdep.h.
2412 (sparc32_linux_init_abi): Call linux_init_abi.
2413 * sparc64-linux-tdep.c: Include linux-tdep.h.
2414 (sparc64_linux_init_abi): Call linux_init_abi.
2415 * xtensa-linux-tdep.c: Include linux-tdep.h.
2416 (xtensa_linux_init_abi): Call linux_init_abi.
2417 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2418 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2421 2010-08-03 Doug Evans <dje@google.com>
2423 * breakpoint.c (bpdisp_text): Constify bpdisps.
2424 * solib-svr4.c (solib_break_names): Constify.
2425 (bkpt_names, main_name_list): Constify.
2426 (match_main): Constify soname arg.
2427 (bfd_lookup_symbol): Remove unnecessary forward decl.
2428 Constify symname arg.
2429 (enable_break): Constify bkpt_namep.
2430 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2431 (symtab_symbol_info): Constify classnames.
2433 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2435 * NEWS: Document Python value inferior function calls.
2437 2010-08-02 Doug Evans <dje@google.com>
2439 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2441 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2443 * linux-thread-db.c (libthread_db_debug): New variable.
2444 (thread_db_find_new_threads_silently): Control verbosity with it.
2445 (try_thread_db_load_1, try_thread_db_load): Likewise.
2446 (find_new_threads_once): Likewise.
2447 (_initialize_thread_db): Set/show it.
2449 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * common/signals.c (signals): Move the content to signals.def.
2452 Include it. Remove the INDENT comments.
2454 2010-07-30 Tom Tromey <tromey@redhat.com>
2456 * Makefile.in (install-only): Install gdb-add-index.
2457 * gdb-add-index.sh: New file.
2459 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2461 * MAINTAINERS: Add myself for write after approval privileges.
2463 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2465 * symfile.c (addr_section_name): New function.
2466 (addrs_section_compar): Use it.
2467 (addr_info_make_relative): Use it. Move variable sect_name into a more
2468 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2470 2010-07-30 Tom Tromey <tromey@redhat.com>
2472 * configure: Rebuild.
2473 * configure.ac: Add missing case for Python 2.7.
2475 2010-07-29 DJ Delorie <dj@redhat.com>
2477 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2480 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2482 * PROBLEMS: Remove mention of all problems.
2484 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2487 * configure.ac: Check for wresize.
2488 * configure, config.in: Regenerate.
2489 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2492 2010-07-28 Tom Tromey <tromey@redhat.com>
2495 * python/py-type.c (typy_legacy_template_argument): New function,
2496 extracted from typy_template_argument.
2497 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2500 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2502 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2504 2010-07-27 Tom Tromey <tromey@redhat.com>
2506 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2508 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2510 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2511 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2513 2010-07-28 Tom Tromey <tromey@redhat.com>
2515 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2517 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2519 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2520 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2522 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2524 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2525 down, just before the block that parse the breakpoint addr_string.
2527 2010-07-28 Tom Tromey <tromey@redhat.com>
2530 * symfile.c (reread_symbols): Clear template_symbols.
2531 * symtab.h (struct symbol) <is_cplus_template_function>: New
2533 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2534 (struct template_symbol): New.
2535 * symtab.c (lookup_symbol_aux_local): Use
2536 cp_lookup_symbol_imports_or_template.
2537 * objfiles.h (struct objfile) <template_symbols>: New field.
2538 * objfiles.c (relocate_one_symbol): New function.
2539 (objfile_relocate1): Use it. Relocate isolated symbols.
2540 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2541 template_arguments>: New fields.
2542 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2543 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2544 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2545 (lookup_typename): Update.
2546 * gdbtypes.c (lookup_typename): Constify "block" argument.
2547 * dwarf2read.c: Include vec.h.
2548 (symbolp): New typedef.
2549 (read_func_scope): Read template arguments. Allocate a
2550 template_symbol when needed.
2551 (read_structure_type): Read template arguments.
2552 (new_symbol_full): New function, from new_symbol. Handle
2553 DW_TAG_template_type_param and DW_TAG_template_value_param.
2554 (new_symbol): Rewrite as wrapper.
2555 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2556 * cp-namespace.c: Include language.h.
2557 (search_symbol_list): New function.
2558 (cp_lookup_symbol_imports_or_template): Likewise.
2560 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2562 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2563 the command window to the new size and position.
2565 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2567 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2570 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2572 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2573 after a detecting a resize.
2574 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2577 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2579 * configure.ac: Check for resize_term.
2580 * configure, config.in: Regenerate.
2582 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2584 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2586 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2588 * dwarf2read.c (read_string): Rename to ...
2589 (read_direct_string): ... this.
2590 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2591 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2593 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2596 (count_events_callback, select_event_lwp_callback)
2597 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2599 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2602 (_initialize_ia64_linux_nat): Install it.
2603 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2604 (linux_nat_set_status_is_event): New.
2605 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2606 cancel_breakpoints_callback, linux_nat_filter_event)
2607 (linux_nat_wait_1): Use linux_nat_status_is_event.
2608 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2610 2010-07-27 Tom Tromey <tromey@redhat.com>
2612 * NEWS: Mention labels, .gdb_index.
2614 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2616 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2617 "start,+length" form of arguments.
2618 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2619 since GDB 7.1"; and merge two separated paragraphs of disassemble
2620 description in "Changes in GDB 7.0".
2622 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2625 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2626 (fputs_maybe_filtered): Do not do filtering also on
2627 ! INPUT_FROM_TERMINAL_P.
2629 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2631 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2634 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2636 * python/py-value.c (valpy_call): New Function.
2638 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2640 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2641 types_list_elements variables.
2643 2010-07-26 Tom Tromey <tromey@redhat.com>
2645 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2646 TLS with DW_OP_const4u or DW_OP_const8u.
2648 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2650 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2651 VSX registers contents.
2653 2010-07-26 Jerome Guitton <guitton@adacore.com>
2655 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2656 its adress is null. Add comment to explain why.
2657 (new_symbol): Ditto.
2659 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2661 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2662 the host signal first.
2664 2010-07-23 Tom Tromey <tromey@redhat.com>
2666 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2667 type_comp_units>: New fields.
2668 (dw2_get_cu): New function.
2669 (create_cus_from_index): Remove unused argument.
2670 (create_signatured_type_hash_from_index): New function.
2671 (create_addrmap_from_index): Update.
2672 (dwarf2_read_index): Handle version 2.
2673 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2674 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2675 (dw2_print_stats, dw2_expand_all_symtabs)
2676 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2677 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2678 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2679 (allocate_signatured_type_hash_table): New function.
2680 (add_signatured_type_cu_to_list): Likewise.
2681 (create_debug_types_hash_table): Use them. Set type_comp_units.
2682 (read_signatured_type): Ensure section data is available.
2683 (add_address_entry): Don't record empty ranges.
2684 (struct signatured_type_index_data): New.
2685 (write_one_signatured_type): New function.
2686 (write_psymtabs_to_index): Write type CUs.
2687 (save_gdb_index_command): Update comment.
2688 (process_type_comp_unit): Move inititalization of
2690 (create_debug_types_hash_table): ... here.
2692 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2694 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2695 cleanup and generating of gdb script to it.
2696 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2697 and terminal size. Convert $tmpfile to a series of -ex-es.
2699 2010-07-23 Keith Seitz <keiths@redhat.com>
2701 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2702 hook for STATIC_BLOCK types, too.
2704 2010-07-23 Keith Seitz <keiths@redhat.com>
2706 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2707 and vector definition.
2709 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2713 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2715 * dwarf2read.c: Include completer.h.
2716 (save_gdb_index_command): Use matching usage command name.
2717 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2718 Set filename_completer for it.
2720 2010-07-22 Tom Tromey <tromey@redhat.com>
2722 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2723 type signature's per-CU data.
2725 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2727 * NEWS: Mention target reported shared libraries support by
2730 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2735 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2736 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2737 and DW_TAG_volatile_type.
2738 (new_symbol): Likewise.
2740 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2742 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2743 function symbols before overload resolution.
2745 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2747 * breakpoint.c (bptype_string): New, abstracted out from
2748 print_one_breakpoint_location.
2749 (print_one_breakpoint_location): Adjust.
2750 (breakpoint_1): Adjust the type column width dynamically.
2752 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2755 a gdb_assert call, new comment.
2757 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2759 * linux-nat.c (linux_handle_extended_wait): Handle case when
2760 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2762 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2765 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2766 linux_nat_wait_1. Use always LP->STATUS afterwards.
2768 2010-07-20 Hui Zhu <teawater@gmail.com>
2770 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2771 (inf_ptrace_attach): Ditto.
2773 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2775 Make core files the process_stratum.
2776 * corefile.c (core_target): New variable.
2777 (core_file_command): Remove variable t, use core_target.
2778 * corelow.c (core_ops): Make it static.
2779 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2780 * defs.h (make_cleanup_unpush_target): New prototype.
2781 * gdbarch.h: Regenerate.
2782 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2783 * gdbcore.h (core_target): New declaration.
2784 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2785 variables ops_already_pushed and back_to. Use push_target,
2786 make_cleanup_unpush_target and discard_cleanups calls.
2787 * record.c (record_open): Replace core_stratum by a core_bfd check.
2788 * target.c (target_is_pushed): New function.
2789 (find_core_target): Remove.
2790 * target.h (enum strata) <core_stratum>: Remove.
2791 (target_is_pushed): New declaration.
2792 (find_core_target): Remove declaration.
2793 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2794 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2796 2010-07-19 Hui Zhu <teawater@gmail.com>
2798 * breakpoint.c (single_step_breakpoints_inserted): New
2800 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2801 * infrun.c (maybe_software_singlestep): Add check code.
2802 * record.c (record_resume): Add code for software single step.
2803 (record_wait): Ditto.
2805 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2807 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2808 a more inner block. Remove its unused declaration initializer.
2810 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2812 * NEWS: Mention support for the new ptrace interface and hardware
2813 accelerated watchpoint conditions on powerpc-linux.
2815 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2817 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2818 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2819 and host_address_to_string() and %s for pointers.
2820 (debug_to_remove_breakpoint): Likewise.
2821 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2822 (debug_to_can_accel_watchpoint_condition): Likewise.
2823 (debug_to_stopped_data_address): Likewise.
2824 (debug_to_watchpoint_addr_within_range): Likewise.
2825 (debug_to_insert_hw_breakpoint): Likewise.
2826 (debug_to_remove_hw_breakpoint): Likewise.
2827 (debug_to_insert_watchpoint): Likewise.
2828 (debug_to_remove_watchpoint): Likewise.
2830 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2832 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2834 (cplus_specific): New struct.
2835 * symtab.c (symbol_set_demangled_name): Updated.
2836 Use cplus_specific for cplus symbols.
2837 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2838 struct for cplus symbols.
2839 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2840 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2841 * symtab.c (symbol_init_cplus_specific): New function.
2843 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2845 * symtab.h (symbol_set_demangled_name): New function.
2846 (symbol_get_demangled_name): New function.
2847 * symtab.c (symbol_set_demangled_name): New function.
2848 (symbol_get_demangled_name): New function.
2849 (symbol_init_language_specific): Use demangled_name setter and getter.
2850 (symbol_set_names): Ditto.
2851 (symbol_natural_name): Ditto.
2852 (symbol_demangled_name): Ditto.
2853 * dwarf2read.c (new_symbol): Ditto.
2855 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2857 * symtab.h: Renamed cplus_specific to mangled_lang.
2858 * symtab.c (symbol_init_language_specific): Updated.
2859 (symbol_set_names): Updated.
2860 (symbol_natural_name): Updated.
2861 (symbol_demangled_name): Updated.
2862 * ada-lang.c (ada_decode_symbol): Updated.
2863 * dwarf2read.c (new_symbol): Updated.
2865 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2867 * valops.c (value_assign): Do not call to value_coerce_to_target.
2868 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2870 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2872 * MAINTAINERS: Add myself for write after approval privileges.
2874 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2876 * c-valprint.c (c_val_print): Add embedded_offset to address in
2877 call to val_print_array_elements.
2879 2010-07-13 Tom Tromey <tromey@redhat.com>
2881 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2883 2010-07-13 Tom Tromey <tromey@redhat.com>
2885 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2888 2010-07-13 Tom Tromey <tromey@redhat.com>
2890 * symfile.c (set_initial_language): Update.
2891 (deduce_language_from_filename): Argument type now const.
2892 * symtab.h (find_main_filename): Update.
2893 (deduce_language_from_filename): Update.
2894 * symtab.c (find_main_filename): Make result const.
2895 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2896 * psymtab.c (find_symbol_file_from_partial): Change return type.
2897 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2900 2010-07-13 Tom Tromey <tromey@redhat.com>
2902 * breakpoint.c (save_cmdlist): No longer static.
2903 * gdbcmd.h (save_cmdlist): Declare.
2904 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2905 OBJF_READNOW on objfile if readnow_symbol_files.
2906 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2907 (elf_sym_fns_gdb_index): New global.
2908 * dwarf2read.c: Include exceptions.h.
2910 (struct mapped_index): New.
2911 (dwarf2_per_cu_data_ptr): New typedef.
2912 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2914 (GDB_INDEX_SECTION): New define.
2915 (struct dwarf2_per_cu_quick_data): New.
2916 (struct dwarf2_per_cu_data) <objfile>: New field.
2919 (byte_swap): New function.
2920 (MAYBE_SWAP): New macro.
2921 (INDEX_SUFFIX): New macro.
2922 (dw2_do_instantiate_symtab): New function.
2923 (dw2_instantiate_symtab): Likewise.
2924 (create_cus_from_index): Likewise.
2925 (create_addrmap_from_index): Likewise.
2926 (mapped_index_string_hash): Likewise.
2927 (find_slot_in_mapped_hash): Likewise.
2928 (dwarf2_read_index): Likewise.
2929 (dw2_setup): Likewise.
2930 (dw2_require_line_header): Likewise.
2931 (dw2_require_full_path): Likewise.
2932 (dw2_find_last_source_symtab): Likewise.
2933 (dw2_forget_cached_source_info): Likewise.
2934 (dw2_lookup_symtab): Likewise.
2935 (dw2_lookup_symbol): Likewise.
2936 (dw2_do_expand_symtabs_matching): Likewise.
2937 (dw2_pre_expand_symtabs_matching): Likewise.
2938 (dw2_print_stats): Likewise.
2939 (dw2_dump): Likewise.
2940 (dw2_relocate): Likewise.
2941 (dw2_expand_symtabs_for_function): Likewise.
2942 (dw2_expand_all_symtabs): Likewise.
2943 (dw2_expand_symtabs_with_filename): Likewise.
2944 (dw2_find_symbol_file): Likewise.
2945 (dw2_map_ada_symtabs): Likewise.
2946 (dw2_expand_symtabs_matching): Likewise.
2947 (dw2_find_pc_sect_symtab): Likewise.
2948 (dw2_map_symbol_names): Likewise.
2949 (dw2_map_symbol_filenames): Likewise.
2950 (dw2_has_symbols): Likewise.
2951 (dwarf2_gdb_index_functions): New global.
2952 (dwarf2_initialize_objfile): New function.
2953 (process_psymtab_comp_unit): Update.
2954 (add_partial_subprogram): Likewise.
2955 (dwarf2_psymtab_to_symtab): Likewise.
2956 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2957 (process_full_comp_unit): Update.
2958 (find_file_and_directory): New function.
2959 (read_file_scope): Use find_file_and_directory.
2960 (dwarf2_per_cu_objfile): Update.
2961 (dwarf2_per_cu_addr_size): Update.
2962 (dwarf2_per_cu_offset_size): Update.
2963 (dwarf2_free_objfile): Free the index, if needed.
2964 (dwarf2_per_objfile_free): Unmap the index, if needed.
2965 (struct strtab_entry): New.
2966 (hash_strtab_entry): New function.
2967 (eq_strtab_entry): Likewise.
2968 (create_strtab): Likewise.
2969 (add_string): Likewise.
2970 (struct symtab_index_entry): New.
2971 (struct mapped_symtab): New.
2972 (hash_symtab_entry): New function.
2973 (eq_symtab_entry): Likewise.
2974 (delete_symtab_entry): Likewise.
2975 (create_index_table): Likewise.
2976 (create_mapped_symtab): Likewise.
2977 (cleanup_mapped_symtab): Likewise.
2978 (find_slot): Likewise.
2979 (hash_expand): Likewise.
2980 (add_index_entry): Likewise.
2981 (add_indices_to_cpool): Likewise.
2982 (write_hash_table): Likewise.
2983 (add_address_entry): Likewise.
2984 (write_psymbols): Likewise.
2985 (write_obstack): Likewise.
2986 (unlink_if_set): Likewise.
2987 (write_psymtabs_to_index): Likewise.
2988 (save_gdb_index_command): Likewise.
2989 (_initialize_dwarf2_read): Install "save gdb-index"
2991 (create_all_comp_units): Initialize 'objfile' field of CU.
2992 (dwarf2_locate_sections): Check for .gdb_index.
2993 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2994 * symfile.h (dwarf2_initialize_objfile): Declare.
2996 2010-07-13 Tom Tromey <tromey@redhat.com>
2998 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2999 (basic_lookup_transparent_type): Likewise.
3000 * symfile.h (struct quick_symbol_functions)
3001 <pre_expand_symtabs_matching>: New field.
3002 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3003 (psym_functions): Update.
3005 2010-07-13 Tom Tromey <tromey@redhat.com>
3007 PR breakpoints/8357:
3008 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3009 * linespec.c (decode_line_1): Update comment. Call decode_label.
3010 (decode_label): New function.
3011 (symbol_found): Handle LOC_LABEL.
3012 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3013 domain. Call add_symbol_to_list.
3015 2010-07-13 Tom Tromey <tromey@redhat.com>
3017 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3018 * dwarf2loc.c (find_location_expression): Use
3019 dwarf2_per_cu_text_offset.
3020 (dwarf2_evaluate_loc_desc): Likewise.
3021 (dwarf2_loc_desc_needs_frame): Likewise.
3022 (compile_dwarf_to_ax): Likewise.
3023 (loclist_describe_location): Likewise.
3024 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3025 (dwarf2_per_cu_objfile): Update comment.
3027 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3030 * p-lang.c (pascal_printstr): Likewise.
3032 2010-07-09 Tom Tromey <tromey@redhat.com>
3034 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3035 'hint' if it is NULL.
3037 2010-07-09 Hui Zhu <teawater@gmail.com>
3039 * source.c (print_source_lines_base): Add check for noprint.
3041 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3043 * python/python-config.py: Resync with Python 2.7 version of this
3046 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3048 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3050 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3052 * NEWS: Create a new section for the next release branch.
3053 Rename the section of the current branch, now that it has
3056 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3058 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3059 * version.in: Bump version to 7.2.50.20100707-cvs.
3061 2010-07-07 Tom Tromey <tromey@redhat.com>
3063 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3064 LOC_COMPUTED symbol.
3065 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3066 (dwarf2_loc_desc_needs_frame): Likewise.
3067 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3068 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3069 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3070 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3072 (struct dwarf2_frame_cache) <text_offset>: New field.
3073 (dwarf2_frame_cache): Set new field.
3074 (dwarf2_frame_prev_register): Update.
3075 (dwarf2_frame_sniffer): Update.
3076 (dwarf2_frame_base_sniffer): Update.
3077 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3079 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3080 Thiago Jung Bauermann <bauerman@br.ibm.com>
3082 Support for hw accelerated condition watchpoints in booke powerpc.
3084 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3085 and move to eval.c. Change callers.
3086 (insert_bp_location): Pass watchpoint condition in
3087 target_insert_watchpoint.
3088 (remove_breakpoint_1) Pass watchpoint condition in
3089 target_remove_watchpoint.
3090 (watchpoint_locations_match): Call
3091 target_can_accel_watchpoint_condition.
3092 * eval.c: Include wrapper.h.
3093 (fetch_subexp_value): Moved from breakpoint.c.
3094 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3096 (can_use_watchpoint_cond_accel): New function.
3097 (calculate_dvc): Likewise.
3098 (num_memory_accesses): Likewise.
3099 (check_condition): Likewise.
3100 (ppc_linux_can_accel_watchpoint_condition): Likewise
3101 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3102 check_condition and calculate_dvc.
3103 (ppc_linux_remove_watchpoint): Likewise.
3104 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3105 ppc_linux_can_accel_watchpoint_condition
3106 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3108 (debug_to_remove_watchpoint): Likewise.
3109 (debug_to_can_accel_watchpoint_condition): New function.
3110 (update_current_target): Set to_can_accel_watchpoint_condition.
3111 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3112 * target.h: Add opaque declaration for struct expression.
3113 (struct target_ops) <to_insert_watchpoint>,
3114 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3115 <to_can_accel_watchpoint_condition>: New member.
3116 condition. Update all callers and implementations.
3117 (target_can_accel_watchpoint_condition): New macro.
3118 * value.c (free_value_chain): New function.
3119 * value.h (fetch_subexp_value): New prototype.
3120 (free_value_chain): Likewise.
3122 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3124 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3125 from gdbarch_core_regset_sections also for .reg if present.
3127 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3128 section size for .reg.
3129 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3130 (ppc_linux_vmx_regset_sections): Likewise.
3131 (ppc_linux_fp_regset_sections): Likewise.
3132 (ppc64_linux_vsx_regset_sections): New variable.
3133 (ppc64_linux_vmx_regset_sections): Likewise.
3134 (ppc64_linux_fp_regset_sections): Likewise.
3135 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3136 for current word size.
3138 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3140 * server.c (myresume): Make static.
3142 2010-07-06 Tom Tromey <tromey@redhat.com>
3144 * configure, config.in: Rebuild.
3145 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3146 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3148 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3150 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3153 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3155 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3156 * gdbtypes.c (floatformats_ieee_half): New variable.
3157 * doublest.c (floatformat_from_length): Set format to
3158 gdbarch_half_format if length matches.
3159 * gdbarch.sh (half_bit): New architecture method.
3160 (half_format): Likewise.
3161 * gdbarch.h: Regenerate.
3162 * gdbarch.c: Likewise.
3164 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3165 Joel Brobecker <brobecker@adacore.com>
3167 Fix re-run of PIE executable, PR shlibs/11776.
3168 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3169 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3171 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 Joel Brobecker <brobecker@adacore.com>
3174 * auxv.c (memory_xfer_auxv): Update attach comment.
3175 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3176 svr4_relocate_main_executable.
3177 (svr4_solib_create_inferior_hook): Make the call to
3178 svr4_relocate_main_executable unconditional.
3180 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Joel Brobecker <brobecker@adacore.com>
3183 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3185 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3186 Joel Brobecker <brobecker@adacore.com>
3188 Fix attaching to PIEs prelinked on the disk after the process was
3190 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3191 Verify it against bfd_get_arch_size. Try to match arbitrary
3192 displacement for the phdrs comparison.
3194 2010-07-02 Tom Tromey <tromey@redhat.com>
3197 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3198 value as optimized-out.
3200 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3201 Thiago Jung Bauermann <bauerman@br.ibm.com>
3203 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3204 represent?" question in comment. Change comment to a proper sentence.
3206 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3208 * c-valprint.c (c_val_print): Fix printing of character vectors.
3210 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3212 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3213 create_breakpoint prototype.
3215 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3217 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3218 usefulness suggestion of multiple breakpoints at same location.
3220 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3222 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3224 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3226 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3227 (loclist_tracepoint_var_ref): Handle optimized out values.
3229 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3231 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3232 unnecessary space in string.
3233 * filesystem.c (_initialize_filesystem): Ditto.
3234 * frame.c (_initialize_frame): Ditto.
3235 * infcmd.c (step_once): Ditto.
3236 * infrun.c (_initialize_infrun): Ditto.
3237 * linux-nat.c (linux_child_follow_fork): Ditto.
3238 * maint.c (maintenance_deprecate): Ditto.
3239 * memattr.c (_initialize_mem): Ditto.
3240 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3241 * monitor.c (monitor_open): Ditto.
3242 * procfs.c (procfs_xfer_memory): Ditto.
3243 * reverse.c (bookmarks_info): Ditto.
3244 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3245 * stack.c (_initialize_stack): Ditto.
3246 * tracepoint.c (_initialize_tracepoint): Ditto.
3247 * xtensa-tdep.c (xtensa_supply_gregset,
3248 xtensa_regset_from_core_section): Ditto.
3250 2010-07-01 Tom Tromey <tromey@redhat.com>
3252 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3254 * value.c (value_entirely_optimized_out): Invert result. Update
3255 for new function name.
3257 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3259 Static tracepoints support.
3261 * NEWS: Mention new support for static tracepoints.
3262 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3263 qXfer:statictrace:read.
3264 (New features in the GDB remote stub, GDBserver): Mention static
3265 tracepoints support using an UST based backend.
3266 (New commands): Mention "info static-tracepoint-markers" and
3268 * breakpoint.c (is_marker_spec): New.
3269 (is_tracepoint): Handle static tracepoints.
3270 (validate_commands_for_breakpoint): Static tracepoints can't do
3272 (static_tracepoints_here): New.
3273 (bpstat_what): Handle static tracepoints.
3274 (print_one_breakpoint_location, allocate_bp_location, mention):
3276 (create_breakpoint_sal): Ditto.
3277 (decode_static_tracepoint_spec): New.
3278 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3279 `type_wanted'. Adjust. Handle static tracepoint marker
3281 (break_command_1): Adjust.
3282 (update_static_tracepoint): New.
3283 (update_breakpoint_locations): Handle static tracepoints.
3284 (breakpoint_re_set_one): Handle static tracepoint marker
3286 (disable_command, enable_command): Handle static tracepoints.
3287 (trace_command, ftrace_command): Adjust.
3288 (strace_command): New.
3289 (create_tracepoint_from_upload): Adjust.
3290 (save_breakpoints): Handle static tracepoints.
3291 (_initialize_breakpoint): Install the "strace" command.
3292 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3293 (struct breakpoint): New fields static_trace_marker_id and
3294 static_trace_marker_id_idx.
3295 (breakpoints_here_p): Declare.
3296 (create_breakpoint): Adjust.
3297 (static_tracepoints_here): Declare.
3298 * remote.c (struct remote_state) <static_tracepoints>: New field.
3299 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3300 (remote_static_tracepoint_marker_at): New.
3301 (remote_static_tracepoint_markers_by_strid): New.
3302 (remote_static_tracepoint_feature): New.
3303 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3304 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3305 (remote_supports_static_tracepoints): New.
3306 (remote_download_tracepoint): Download static tracepoints.
3307 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3308 remote_static_tracepoint_markers_by_strid.
3309 (_initialize_remote): Install set|show remote static-tracepoints,
3310 and set|show remote read-sdata-object commands.
3311 * target.c (update_current_target): Inherit and default
3312 to_static_tracepoint_marker_at, and
3313 to_static_tracepoint_markers_by_strid.
3314 * target.h (static_tracepoint_marker): Forward declare.
3315 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3316 (static_tracepoint_marker_p): New typedef.
3317 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3318 (struct target_ops): New fields to_static_tracepoint_marker_at and
3319 to_static_tracepoint_markers_by_strid.
3320 (target_static_tracepoint_marker_at)
3321 (target_static_tracepoint_markers_by_strid): New.
3322 * tracepoint.c: Include source.h.
3323 (validate_actionline): Handle $_sdata.
3324 (struct collection_list): New field strace_data.
3325 (add_static_trace_data): New.
3326 (clear_collection_list): Clear strace_data.
3327 (stringify_collection_list): Account for a possible static trace
3329 (encode_actions_1): Encode an $_sdata collection.
3330 (parse_tracepoint_definition): Handle static tracepoints.
3331 (parse_static_tracepoint_marker_definition): New.
3332 (release_static_tracepoint_marker): New.
3333 (print_one_static_tracepoint_marker): New.
3334 (info_static_tracepoint_markers_command): New.
3335 (sdata_make_value): New.
3336 (_initialize_tracepoint): Create the $_sdata convenience variable.
3337 Add the "info static-tracepoint-markers" command.
3338 Mention $_sdata in the "collect" command's help output.
3339 * tracepoint.h (struct static_tracepoint_marker): New.
3340 (parse_static_tracepoint_marker_definition)
3341 (release_static_tracepoint_marker): Declare.
3342 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3343 * python/py-breakpoint.c (bppy_new): Adjust.
3345 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3347 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3350 2010-06-29 Doug Evans <dje@google.com>
3353 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3354 DW_AT_external is present.
3358 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3359 create a symbol for the field and record the value.
3360 (new_symbol): Handle DW_TAG_member.
3361 * gdbtypes.c (field_is_static): Remove FIXME.
3362 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3363 only ignore LOC_CONST symbols that are enums.
3365 * dwarf2read.c: Remove trailing whitespace.
3367 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3368 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3369 (struct main_type, field loc): Delete dwarf_block.
3370 (FIELD_DWARF_BLOCK): Delete.
3371 (SET_FIELD_DWARF_BLOCK): Delete.
3372 (TYPE_FIELD_DWARF_BLOCK): Delete.
3373 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3376 2010-06-29 Hui Zhu <teawater@gmail.com>
3378 * record.c (set_record_pic_cmdlist,
3379 show_record_pic_cmdlist): New variables.
3380 (set_record_pic_command,
3381 show_record_pic_command): New functions.
3382 (record_pic_function, record_pic_line, record_pic_enum,
3383 set_record_pic_type, record_pic_hide_nofunction,
3384 record_pic_hide_nosource, record_pic_hide_same): New variables.
3385 (record_pic_fputs): New function.
3386 (function_list, node_list, edge_list): New struct.
3387 (function_list, node_list, edge_list): New variables.
3388 (record_pic_cleanups, record_pic_node,
3389 record_pic_edge, cmd_record_pic): New functions.
3390 (_initialize_record): Add new commands for record pic.
3392 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3395 ALLOCATE_CPLUS_STRUCT_TYPE.
3397 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3398 Tom Tromey <tromey@redhat.com>
3399 Thiago Jung Bauermann <bauerman@br.ibm.com>
3401 * value.c (pack_unsigned_long): New function.
3402 (value_from_ulongest): New function.
3403 * value.h (value_from_ulongest): Declare.
3404 * python/python.c (_initialize_python): Call
3405 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3406 * python/python-internal.h: Define thread_object.
3407 (gdbpy_inferiors, gdbpy_selected_thread)
3408 (frame_info_to_frame_object, create_thread_object)
3409 (find_thread_object, find_inferior_object)
3410 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3411 (gdbpy_is_value_object, get_addr_from_python): Declare.
3412 * python/py-value.c (builtin_type_upylong): Define.
3413 (convert_value_from_python): Add logic for ulongest.
3414 (gdbpy_is_value_object): New function.
3415 * python/py-utils.c (get_addr_from_python): New function.
3416 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3417 (gdbpy_selected_frame): Use PyObject over frame_info.
3418 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3420 (SUBDIR_PYTHON_SRCS): Likewise.
3421 (py-inferior.o): New Rule.
3422 (py-infthread.o): New Rule.
3423 * python/py-inferior.c: New File.
3424 * python/py-infthread.c: New File.
3426 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 * c-typeprint.c (c_type_print_base): For no fields check include also
3429 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3430 * dwarf2read.c (struct typedef_field_list)
3431 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3432 (dwarf2_add_typedef): New.
3433 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3434 Copy also FI.TYPEDEF_FIELD_LIST.
3435 * gdbtypes.h (struct typedef_field)
3436 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3437 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3438 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3440 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * cp-namespace.c (cp_lookup_nested_type): New variable
3443 concatenated_name. Turn the current return condition into a reverse
3444 one. Call also lookup_static_symbol_aux on the constructed qualified
3446 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3447 other files into a called ...
3448 (lookup_static_symbol_aux): ... new function here.
3449 * symtab.h (lookup_static_symbol_aux): New prototype.
3450 * valops.c (value_maybe_namespace_elt): Call also
3451 lookup_static_symbol_aux if we failed otherwise.
3453 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3455 Fix PR c++/11703 and PR gdb/1448.
3456 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3459 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3461 Fix modification of cplus_struct_default.
3462 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3463 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3464 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3466 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3468 * NEWS: Add entry announcing the python directory.
3470 2010-06-28 Tom Tromey <tromey@redhat.com>
3472 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3474 2010-06-28 Doug Evans <dje@google.com>
3476 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3477 All callers updated.
3479 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3482 obstack_begin after each obstack_free.
3484 2010-06-27 Doug Evans <dje@google.com>
3486 * value.c (value_static_field): Use `switch' instead of `if'.
3487 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3489 * valops.c (search_struct_field): Fix typo in error message.
3491 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3493 * dwarf2expr.c (execute_stack_op): Place preprocessor
3494 directives at the start of the source line.
3496 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3498 * defs.h (make_command_stats_cleanup): Declare.
3499 (set_display_time): Declare.
3500 (set_display_space): Declare.
3501 * event-top.c (command_handler): Use make_command_stats_cleanup.
3502 * main.c (display_time, display_space): Move definitions to utils.c.
3503 (captured_main): Use make_command_stats_cleanup to get start-up
3505 Use set_display_time and set_display_space for processing OPT_STATISTICS
3507 * maint.c (maintenance_time_display): Use set_display_time.
3508 (maintenance_space_display): Use set_display_space.
3509 * top.c (execute_command): Remove obsolete 'maint time' code.
3510 (command_loop): Use make_command_stats_cleanup.
3511 * utils.c (struct cmd_stats): Structure for storing initial time
3513 (display_time, display_space): Move definitions here from utils.c.
3514 (set_display_time): New function.
3515 (set_display_space): New function.
3516 (make_command_stats_cleanup): New function.
3517 (report_command_stats): New auxiliary function for
3518 make_command_stats_cleanup.
3520 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3522 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3523 hosts where CORE_ADDR is long long.
3525 2010-06-25 Tom Tromey <tromey@redhat.com>
3528 * python/python.c (execute_gdb_command): Add keywords. Accept
3529 "to_string" argument.
3530 (struct restore_ui_file_closure): New.
3531 (restore_ui_file): New function.
3532 (make_cleanup_restore_ui_file): Likewise.
3533 (GdbMethods) <execute>: Update.
3535 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3537 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3538 during inferior call stack frame setup.
3540 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3542 * solib-spu.c: Include "exception.h".
3543 (ocl_program_data_key): New variable.
3544 (append_ocl_sos): New function.
3545 (ocl_enable_break): Likewise.
3546 (spu_current_sos): Call append_ocl_sos.
3547 (spu_solib_loaded): Call ocl_enable_break.
3548 (_initialize_spu_solib): Register ocl_program_data_key.
3550 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3552 * cp-support.c (reset_directive_searched): New function.
3553 (make_symbol_overload_list_using): Prevent recursive calls.
3555 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3557 * printcmd.c (print_variable_and_value): Print error message on
3560 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3562 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3564 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3566 (dwarf_expr_push): Change input type to ULONGEST.
3567 (dwarf_expr_fetch): Change return type to ULONGEST.
3568 (dwarf_expr_fetch_address): Add prototype.
3569 (dwarf2_read_address): Remove prototype.
3570 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3571 Truncate stack values to ctx->addr_size bytes.
3572 (dwarf_expr_fetch): Change return value to ULONGEST.
3573 (dwarf_expr_fetch_address): New function.
3574 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3575 when appropriate. Update for struct dwarf_expr_piece changes.
3576 (dwarf2_read_address): Remove.
3577 (unsigned_address_type): Remove.
3578 (signed_address_type): Remove.
3579 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3580 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3581 values. Perform operations on ULONGEST instead of on GDB values,
3582 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3583 values and DW_OP_deref results as unsigned integers.
3584 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3586 (write_pieced_value): Likewise.
3587 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3588 dwarf_expr_fetch when appropriate.
3589 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3590 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3591 instead of dwarf_expr_fetch when appropriate.
3593 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3595 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3597 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3599 * python/python.c (_initialize_python): Add new "constant"
3600 PYTHONDIR in gdb module. Insert this path at the head of
3601 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3602 exec its __init__.py script if it exists in that directory.
3604 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3606 * rx-tdep.c (RX_ACC_REGNUM): Define.
3607 (RX_NUM_REGS): Redefine to 26.
3608 (rx_register_name): Add register "acc". Change order of several
3609 registers. Change name of "vct" register to "fintv" to match RX
3611 (rx_register_type): Add case for RX_ACC_REGNUM.
3613 2010-06-24 Tom Tromey <tromey@redhat.com>
3615 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3617 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3618 Tom Tromey <tromey@redhat.com>
3620 Fix GDB startup on readonly filesystem.
3621 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3623 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3624 Pedro Alves <pedro@codesourcery.com>
3627 * breakpoint.c (handle_jit_event): New function.
3628 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3629 jit, err, table and bs_class. New variables shlib_event, jit_event,
3630 this_action and bptype. Change bs_class assignments to this_action
3631 assignments. new unhandled bptype internal error. Move here
3632 shlib_event and jit_event handling from handle_inferior_event.
3633 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3634 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3635 BPSTAT_WHAT_CHECK_JIT.
3636 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3637 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3638 (handle_inferior_event): Reinitialize frame and gdbarch after
3639 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3640 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3641 gdbarch when frame gets reinitialized.
3643 2010-06-24 Hui Zhu <teawater@gmail.com>
3645 * printcmd.c (ui_printf): New function.
3646 (printf_command): Call ui_printf.
3647 (_initialize_printcmd): New command "eval".
3649 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3651 * infrun.c (handle_inferior_event): Handle presence of single-step
3652 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3653 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3654 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3655 * breakpoint.c (detach_single_step_breakpoints): New function.
3656 (detach_breakpoints): Call it.
3657 (cancel_single_step_breakpoints): New function.
3658 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3660 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3661 (spu_gdbarch_init): Install it.
3663 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3666 * configure: Regenerate.
3668 2010-06-22 Hui Zhu <teawater@gmail.com>
3670 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3671 (i386_process_record): Ditto.
3672 * record.c (record_memory_query): New variable.
3673 (_initialize_record): New command "set record memory-query".
3674 * record.h (record_memory_query): New extern.
3676 2010-06-21 Doug Evans <dje@google.com>
3678 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3679 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3680 (i386_syscall_p): Change type of lengthp to int.
3681 (i386_displaced_step_fixup): Handle kernels that run one past a
3683 * i386-linux-tdep.c (i386_linux_init_abi): Use
3684 i386_displaced_step_copy_insn instead of
3685 simple_displaced_step_copy_insn.
3687 2010-06-21 Tom Tromey <tromey@redhat.com>
3689 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3690 (dwarf_type_encoding_name): Likewise.
3692 2010-06-21 Tom Tromey <tromey@redhat.com>
3694 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3695 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3696 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3697 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3698 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3699 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3700 * dwarf2read.c (tag_type_to_type): Create a new error type on
3702 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3703 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3705 2010-06-21 Michael Snyder <msnyder@vmware.com>
3707 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3708 not add_abbrev_prefix_cmd, for "enable breakpoints".
3710 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3712 * dwarf2loc.c (find_location_expression): Add relocation offset
3713 to base-address-selection entry base addresses. Read addresses
3714 (and offsets) as signed/unsigned integers, depending on the
3715 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3716 (loclist_describe_location): Likewise.
3717 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3718 unsigned integer. Do not call dwarf2_read_address.
3719 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3721 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3723 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3724 value instead of hard-coded SPU_LS_SIZE.
3725 (spu_software_single_step): Likewise.
3726 * spu-tdep.h (SPU_LS_SIZE): Remove.
3728 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3730 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3731 limit on local store memory accesses.
3732 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3733 * spu-tdep.c (spu_lslr): Remove.
3734 (spu_pointer_to_address): Do not truncate addresses.
3735 (spu_integer_to_address): Likewise.
3736 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3737 * spu-tdep.h: Add comments.
3738 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3739 (SPU_OVERLAY_LMA): Define.
3741 2010-06-18 Stan Shebs <stan@codesourcery.com>
3743 * osdata.c (get_osdata): Warn separately if target does not report
3745 (info_osdata_command): Allow empty type, report error if target
3746 does not return available types of OS data.
3747 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3748 types if no annex supplied.
3750 * thread.c (thread_id_make_value): Make a value representing the
3752 (_initialize_thread): Create $_thread.
3754 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3756 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3757 last local variable declaration. No real code change.
3759 2010-06-17 Tom Tromey <tromey@redhat.com>
3761 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3762 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3765 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3766 Jan Kratochvil <jan.kratochvil@redhat.com>
3768 * breakpoint.c: Include parser-defs.h.
3769 (watchpoint_exp_is_const): New function.
3770 (watch_command_1): Call watchpoint_exp_is_const to check
3771 if the expression is constant.
3773 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3775 * configure.ac: Check for RDYNAMIC also for cross builds.
3776 * configure: Regenerate.
3778 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3780 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3781 (SFILES): Remove solib-null.c, add solib-target.c.
3782 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3783 (ALLDEPFILES): Remove solib-target.c.
3784 * solib-target.c (_initialize_solib_target): Set
3785 current_target_so_ops to solib_target_so_ops if not already set.
3786 * solib-null.c: Delete.
3788 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3790 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3793 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3795 * cp-valprint.c (cp_print_static_field): Members of
3796 dont_print_stat_array_obstack are of type "struct type *".
3797 (_initialize_cp_valprint): Likewise.
3799 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3801 * frame.c (frame_register_unwind): Do not access contents
3802 of "optimized out" unwound register value.
3804 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 * ada-lang.h (ada_print_type): Make varstring const.
3807 * ada-typeprint.c (print_func_type): Make name const.
3808 (ada_print_type): Make varstring const.
3809 * c-lang.h (c_print_type): Make varstring const.
3810 * c-typeprint.c (c_print_type): Likewise.
3811 * f-lang.h (f_print_type): Likewise.
3812 * f-typeprint.c (f_print_type): Likewise.
3813 * jv-lang.h (java_print_type): Likewise.
3814 * jv-typeprint.c (java_print_type): Likewise.
3815 * language.c (unk_lang_print_type): Likewise.
3816 * language.h (struct language_defn) <la_print_type>: Likewise.
3817 * m2-lang.h (m2_print_type): Likewise.
3818 * m2-typeprint.c (m2_print_type): Likewise.
3819 * p-lang.h (pascal_print_type): Likewise.
3820 * p-typeprint.c (pascal_print_type): Likewise.
3822 2010-06-11 Stan Shebs <stan@codesourcery.com>
3824 Add per-operation permission flags.
3826 * target.h (struct target_ops): New method to_set_permissions.
3827 (target_set_permissions): New macro.
3828 (target_insert_breakpoint): Change macro to function.
3829 (target_remove_breakpoint): Ditto.
3830 (target_stop): Ditto.
3831 (may_write_registers): Declare.
3832 (may_write_memory): Declare.
3833 (may_insert_breakpoints): Declare.
3834 (may_insert_tracepoints): Declare.
3835 (may_insert_fast_tracepoints): Declare.
3836 (may_stop): Declare.
3837 * target.c (may_write_registers, may_write_registers_1): New globals.
3838 (may_write_memory, may_write_memory_1): New globals.
3839 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3840 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3841 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3843 (may_stop, may_stop_1): New global.
3844 (target_xfer_partial): Test for write permission.
3845 (target_store_registers): Ditto.
3846 (target_insert_breakpoint): New function.
3847 (target_remove_breakpoint): New function.
3848 (target_stop): New function.
3849 (_initialize_targets): Add new set/show variables.
3850 (set_write_memory_permission): New function.
3851 (update_target_permissions): New function.
3852 (set_target_permissions): New function.
3853 (update_current_target): Default to_set_permissions.
3854 (_initialize_targets): Use new globals and setter function.
3855 * tracepoint.c (start_tracing): Test for permission.
3856 * inferior.h (update_observer_mode): Declare.
3857 * infrun.c (non_stop_1): Define earlier.
3858 (observer_mode, observer_mode_1): New globals.
3859 (set_observer_mode, show_observer_mode): New functions.
3860 (update_observer_mode): New function.
3861 (_initialize_infrun): Define "set observer" command.
3862 * remote.c (PACKET_QAllow): New optional packet.
3863 (remote_protocol_features): Add QAllow.
3864 (remote_set_permissions): New function.
3865 (remote_start_remote): Call it.
3866 (init_remote_ops): Add it to target vector.
3867 (_initialize_remote): Add config command for QAllow.
3869 2010-06-11 Tom Tromey <tromey@redhat.com>
3871 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3872 DW_AT_vtable_elem_location even when GCC extension is seen.
3874 2010-06-11 Tom Tromey <tromey@redhat.com>
3876 PR gdb/9977, PR exp/11636:
3877 * value.h (value_offset): Update.
3878 (struct lval_funcs) <check_validity>: New field.
3879 <copy_closure>: Make argument const.
3880 (value_computed_closure): Update.
3881 (value_contents_for_printing): Declare.
3882 (value_bits_valid): Likewise.
3883 (val_print): Likewise.
3884 (set_value_component_location): Update.
3885 (value_entirely_optimized_out): Declare.
3886 * value.c (value_offset): Argument now const.
3887 (require_not_optimized_out): New function.
3888 (value_contents_for_printing): New function.
3889 (value_contents_all): Call require_not_optimized_out.
3890 (value_contents): Likewise.
3891 (value_bits_valid): New function.
3892 (value_computed_closure): Argument now const.
3893 (set_value_component_location): Make 'whole' argument const.
3894 (value_entirely_optimized_out): New function.
3895 (value_bitsize): Argument now 'const'.
3896 (value_bitpos): Likewise.
3897 (value_type): Likewise.
3898 * valprint.h (val_print_array_elements): Update.
3899 * valprint.c (val_print): Add 'val' argument. Use
3900 valprint_check_validity.
3901 (valprint_check_validity): New function.
3902 (value_check_printable): Use value_entirely_optimized_out.
3903 (common_val_print): Update.
3904 (value_print): Likewise.
3905 (val_print_array_elements): Add 'val' argument.
3906 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3907 value_bits_valid. Reinit frame cache for lval_computed.
3908 * sh64-tdep.c (sh64_do_register): Update.
3909 * scm-valprint.c (scm_val_print): Add 'val' argument.
3910 * scm-lang.h (scm_val_print): Update.
3911 * python/python.h (apply_val_pretty_printer): Update.
3912 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3913 argument. Call set_value_component_location.
3914 * printcmd.c (print_scalar_formatted): Update.
3915 * p-valprint.c (pascal_val_print): Add 'val' argument.
3916 (pascal_object_print_value_fields): Likewise.
3917 (pascal_object_print_value): Likewise.
3918 (pascal_object_print_static_field): Update.
3919 * p-lang.h (pascal_val_print): Update.
3920 (pascal_object_print_value_fields): Update.
3921 * mt-tdep.c (mt_registers_info): Update.
3922 * mi/mi-main.c (get_register): Update.
3923 (mi_cmd_data_evaluate_expression): Use common_val_print.
3924 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3925 (m2_print_unbounded_array): Likewise.
3926 (m2_val_print): Likewise.
3927 * m2-lang.h (m2_val_print): Update.
3928 * language.h (struct language_defn) <la_val_print>: Add 'val'
3930 (LA_VAL_PRINT): Likewise.
3931 * language.c (unk_lang_val_print): Add 'val' argument.
3932 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3933 (java_val_print): Likewise.
3934 * jv-lang.h (java_val_print): Add 'val' argument.
3935 * infcmd.c (default_print_registers_info): Update.
3936 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3937 (f77_print_array): Likewise.
3938 (f_val_print): Likewise.
3939 * f-lang.h (f_val_print): Add 'val' argument.
3940 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3942 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3943 set_value_optimized_out.
3944 (write_pieced_value): Use value_bitsize and value_bitpos.
3945 <default>: Don't exit loop.
3946 (check_pieced_value_validity): New function.
3947 (pieced_value_funcs): Reference check_pieced_value_validity,
3948 check_pieced_value_invalid.
3949 (copy_pieced_value_closure): Update.
3950 (check_pieced_value_bits): New function.
3951 (check_pieced_value_invalid): New function.
3952 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3953 (d_val_print): Likewise.
3954 * d-lang.h (d_val_print): Update.
3955 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3956 (cp_print_value_fields_rtti): Likewise.
3957 (cp_print_value): Likewise.
3958 (cp_print_static_field): Update.
3959 * c-valprint.c (c_val_print): Add 'val' argument.
3960 (c_value_print): Update.
3961 * c-lang.h (c_val_print): Update.
3962 (cp_print_value_fields): Likewise.
3963 (cp_print_value_fields_rtti): Likewise.
3964 * ada-valprint.c (struct ada_val_print_args): Remove.
3965 (val_print_packed_array_elements): Add 'val' argument.
3966 (ada_val_print): Likewise. Rewrite.
3967 (ada_val_print_stub): Remove.
3968 (ada_val_print_array): Add 'val' argument.
3969 (ada_val_print_1): Likewise.
3970 (print_variant_part): Likewise.
3971 (ada_value_print): Update.
3972 (print_record): Add 'val' argument.
3973 (print_field_values): Likewise.
3974 * ada-lang.h (ada_val_print): Update.
3976 2010-06-11 Tom Tromey <tromey@redhat.com>
3978 * vec.h (VEC_cleanup): New macro.
3979 (DEF_VEC_ALLOC_FUNC_I): Update.
3980 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3981 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3982 * dwarf2loc.c (struct axs_var_loc): Remove.
3983 (unimplemented): New function.
3984 (translate_register): Likewise.
3985 (access_memory): Likewise.
3986 (compile_dwarf_to_ax): Likewise.
3987 (dwarf2_tracepoint_var_loc): Remove.
3988 (dwarf2_tracepoint_var_access): Likewise.
3989 (dwarf2_tracepoint_var_ref): Likewise.
3990 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3991 (loclist_tracepoint_var_ref): Likewise.
3992 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3993 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3994 require_composition. No longer static.
3995 (execute_stack_op): Update.
3996 * ax-gdb.h (trace_kludge): Declare.
3998 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4000 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4001 (should_be_inserted): Return zero also on NULL OWNER.
4002 (breakpoint_program_space_exit): New OWNER comment.
4003 (insert_breakpoint_locations): Extend comment for OWNER.
4004 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4005 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4007 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4008 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4009 (bpstat_check_location): New assert on OWNER.
4010 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4011 and B initializations to the code block. New assert on them.
4012 (print_one_breakpoint_location): New OWNER comment.
4013 (watchpoint_locations_match): Assert on OWNER.
4014 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4015 initializations to the code block. New assert on OWNER.
4016 (set_breakpoint_location_function): New assert on OWNER.
4017 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4018 (bp_location_compare, update_global_location_list)
4019 (update_global_location_list): New OWNER comment.
4021 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4023 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4025 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4027 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4028 (lin_thread_get_thread_signals): Remove prototype.
4029 (GET_THREAD_SIGNALS): Remove.
4030 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4031 * linux-thread-db.c (check_thread_signals): Directly call
4032 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4034 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4036 * gregset.h (GDB_FPXREGSET_T): Remove.
4037 (gdb_fpxregset_t): Likewise.
4038 (supply_fpxregset): Remove prototype.
4039 (fill_fpxregset): Likewise.
4040 * i386-linux-nat.c (supply_fpxregset): Remove.
4041 (fill_fpxregset): Likewise.
4042 (fetch_fpxregs): Inline supply_fpxregset call.
4043 (store_fpxregs): Inline fill_fpxregset call.
4045 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4046 * config/i386/nm-linux.h: Remove file.
4048 2010-06-09 Michael Snyder <msnyder@vmware.com>
4050 * target.c (update_current_target): Fix spelling error in comment.
4051 (target_mourn_inferior): Fix spelling error in error message.
4053 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4055 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4056 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4058 2010-06-08 Michael Snyder <msnyder@vmware.com>
4060 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4062 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4064 * configure.ac <"${have_libpython}" != no>: New workaround of
4066 * configure: Regenerate.
4068 2010-06-08 Hui Zhu <teawater@gmail.com>
4070 * record.c (record_wait): Move signal out of replay code.
4072 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 * dwarf2-frame.c (no_dwarf_call): New function.
4076 (execute_stack_op): Set CTX->DWARF_CALL.
4077 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4078 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4079 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4080 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4081 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4082 (needs_frame_dwarf_call): New function.
4083 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4084 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4085 Update the comment. Move variables die, offset and error call to ...
4086 (follow_die_ref): ... a new function.
4087 (dwarf2_fetch_die_location_block): New function.
4088 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4090 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4092 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4093 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4094 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4095 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4097 (struct needs_frame_baton): New field per_cu.
4098 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4099 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4101 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4103 * cp-support.c (make_symbol_overload_list_namespace): Only search
4104 static and global blocks.
4105 (make_symbol_overload_list_block): New function.
4106 (make_symbol_overload_list): Separate namespace search from block
4108 (make_symbol_overload_list_qualified): Use
4109 make_symbol_overload_list_block.
4111 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4113 * value.h: Created oload_search_type enum.
4114 (find_overload_match): Use oload_search_type enum.
4115 * valops.c (find_overload_match): Support combined member and
4117 * eval.c (evaluate_subexp_standard): Calls to
4118 find_overload_match now use oload_search_type enum.
4119 (oload_method_static): Verify index is a proper value.
4120 * valarith.c (value_user_defined_cpp_op): Search for and handle
4121 both member and non-member operators.
4122 (value_user_defined_cpp_op): New function.
4123 (value_user_defined_op): New function.
4124 (value_x_unop): Use value_user_defined_op.
4125 (value_x_binop): Ditto.
4126 * cp-support.c (make_symbol_overload_list_using): Added block
4128 Add check for namespace aliases and imported declarations.
4130 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4132 * breakpoint.h (owner): Extend the comment.
4134 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4136 Clear stale specific bp_location from former whole breakpoint.
4137 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4139 (free_bp_location): ... here. Rename there the called function to
4140 bpstat_remove_bp_location_callback.
4141 (bpstat_remove_breakpoint_callback): Rename to ...
4142 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4143 to struct bp_location. Change the called function to
4144 bpstat_remove_bp_location. Create new declaration for the function.
4145 (bpstat_remove_breakpoint): Rename to ...
4146 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4147 code for the new parameter type.
4149 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4151 * README: Make version-agnostic.
4153 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Fix duplicate types for single DIE.
4156 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4158 (read_array_type): Remove type initialization. Recheck get_die_type
4159 after initial die_type. Move set_die_type before set_descriptive_type.
4160 (read_set_type): New variable domain_type. Recheck get_die_type after
4161 initial die_type. Move attr initialization later.
4162 (read_tag_pointer_type, read_tag_reference_type): New variable
4163 target_type. Recheck get_die_type after initial die_type.
4164 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4165 die_type and die_containing_type.
4166 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4167 Recheck get_die_type after initial die_type.
4168 (read_subrange_type): Recheck get_die_type after initial die_type.
4169 Move set_die_type before set_descriptive_type.
4170 (set_die_type): Extend the function comment. Call complaint if DIE has
4171 some type already set.
4173 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4175 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4176 for current naming of thread groups (iN, not N).
4178 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4180 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4181 * parse.c (operator_length): Likewise.
4182 (operator_length_standard): Likewise.
4183 * parser-defs.h (operator_length): Likewise.
4184 (operator_length_standard): Likewise.
4185 (struct exp_descriptor <operator_length>): Likewise.
4187 2010-06-04 Doug Evans <dje@google.com>
4189 Add support for enabling/disabling individual pretty-printers.
4190 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4191 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4192 * python/python.c (gdbpy_enabled_cst): Define.
4193 (_initialize_python): Initialize gdbpy_enabled_cst.
4196 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4198 * breakpoint.c (update_global_location_list): Fix comment typo.
4200 2010-06-04 Hui Zhu <teawater@gmail.com>
4202 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4204 2010-06-03 Doug Evans <dje@google.com>
4206 * configure.ac: Don't fail if python is unusable when
4207 configured with --with-python=auto.
4208 * configure: Regenerate.
4210 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4212 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4214 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4216 * valprint.h (get_array_bounds): Change low and high parameter types
4218 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4220 (val_print_array_elements): Adapt to change above.
4221 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4222 * p-valprint.c (pascal_val_print): Likewise.
4224 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4226 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4227 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4230 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 Support DW_TAG_module as separate namespaces.
4233 * dwarf2read.c (typename_concat): New parameter physname.
4234 (read_module_type): New function and declaration.
4235 (scan_partial_symbols): Scan also DW_TAG_module children.
4236 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4237 to typename_concat backward compatible physname value 0.
4238 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4239 backward compatible physname value 0.
4240 (add_partial_module, read_module): Remove FIXME comment.
4241 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4242 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4243 DIEs under DW_TAG_module.
4244 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4245 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4246 && physname and return there instead of just setting NAME. Extend
4247 the main block for language_fortran. Pass physname parameter to the
4248 typename_concat call.
4249 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4250 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4251 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4252 missing from SYMBOL_SET_NAMES in the language_fortran case.
4253 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4255 (read_type_die) <DW_TAG_module>: New.
4256 (MAX_SEP_LEN): Increase to 7.
4257 (typename_concat): New parameter physname. New variable lead. Support
4258 also language_fortran.
4259 * f-exp.y (yylex): Consider : also as a symbol name character class.
4260 * f-lang.c: Include cp-support.h.
4261 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4262 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4263 f_word_break_characters and f_make_symbol_completion_list.
4264 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4265 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4266 * symtab.c (symbol_init_language_specific): Support language_fortran.
4267 (symbol_find_demangled_name): New comment on language_fortran.
4268 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4269 for language_fortran.
4270 (lookup_symbol_aux_local): Check imports also for language_fortran.
4271 (default_make_symbol_completion_list): Rename to ...
4272 (default_make_symbol_completion_list_break_on): ... this name. New
4273 parameter break_on, use it.
4274 (default_make_symbol_completion_list): New stub.
4275 * symtab.h (default_make_symbol_completion_list_break_on): New
4278 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4280 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4283 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4285 * dwarf2read.c (typename_concat): Add const to the variable sep.
4287 2010-06-02 Tom Tromey <tromey@redhat.com>
4289 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4290 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4291 type is const. Add 'def' argument. Add missing operators, remove
4293 (decode_locdesc): Update.
4294 (dwarf2_always_disassemble): New global.
4295 (show_dwarf2_always_disassemble): New function.
4296 (_initialize_dwarf2_read): Add always-disassemble.
4297 (dwarf2_per_cu_offset_size): New function.
4298 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4299 (piece_end_p): New function.
4300 (locexpr_describe_location_piece): Replace 'size' argument with
4301 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4302 some constants. Remove errors.
4303 (disassemble_dwarf_expression): New function.
4304 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4305 Add 'offset_size' argument.
4306 (loclist_describe_location): Change output formatting.
4307 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4309 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4311 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4312 anonymous type case.
4314 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4316 * dwarf2read.c (read_subrange_type): Handle missing base type
4317 according to Dwarf-2 specifications.
4319 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4321 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4323 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4324 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4325 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4326 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4327 UNOP_CHMAX, UNOP_CHMIN.
4328 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4329 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4330 UNOP_CHMIN>: Remove opcodes.
4332 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4334 * dwarf2read.c (read_func_scope): Do not complain for
4335 external function if bounds are not found.
4337 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4339 * NEWS: Mention gdbserver fast tracepoints support.
4341 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4343 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4345 (windows_set_console_info): New function.
4346 (windows_create_inferior): Call windows_set_console_info
4347 if NEW_CONSOLE is true.
4348 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4349 (_initialize_loadable): Initialize GetConsoleFontSize and
4350 GetCurrentConsoleFont.
4352 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4354 * Makefile.in (RDYNAMIC): New.
4355 (SFILES): Add proc-service.list.
4356 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4357 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4358 * config/arm/linux.mh: Likewise.
4359 * config/i386/linux.mh: Likewise.
4360 * config/i386/linux64.mh: Likewise.
4361 * config/ia64/linux.mh: Likewise.
4362 * config/m32r/linux.mh: Likewise.
4363 * config/m68k/linux.mh: Likewise.
4364 * config/mips/linux.mh: Likewise.
4365 * config/pa/linux.mh: Likewise.
4366 * config/powerpc/linux.mh: Likewise.
4367 * config/powerpc/ppc64-linux.mh: Likewise.
4368 * config/s390/s390.mh: Likewise.
4369 * config/sparc/linux.mh: Likewise.
4370 * config/sparc/linux64.mh: Likewise.
4371 * config/xtensa/linux.mh: Likewise.
4372 * configure.ac: New RDYNAMIC on native host and GCC.
4373 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4374 * configure: Regenerate.
4375 * proc-service.list: New.
4377 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4382 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4384 * linux-nat.c (linux_nat_wait_1): Do not call
4385 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4386 TARGET_WAITKIND_SIGNALLED.
4388 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4390 * ada-lang.c (ada_inferior_data): New struct.
4391 (ada_inferior_data): New static global.
4392 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4393 (ada_get_tsd_type): New functions.
4394 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4395 to look the tsd type up.
4396 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4397 event. Set ada_inferior_data.
4399 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4401 * remote.c (unpack_varlen_hex): Remove forward declaration.
4402 (remote_console_output): Make static, and add forward declaration.
4403 * remote.h: Drop FIXME comment.
4404 (unpack_varlen_hex): Declare.
4405 (remote_console_output, remote_cisco_objfile_relocate)
4406 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4407 Delete declarations.
4408 * tracepoint.c: Include "remote.h".
4409 (unpack_varlen_hex): Delete declaration.
4411 2010-05-27 Tom Tromey <tromey@redhat.com>
4413 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4414 (allocate_piece_closure): Initialize refc.
4415 (copy_pieced_value_closure): Use refc.
4416 (free_pieced_value_closure): Likewise.
4418 2010-05-27 Tom Tromey <tromey@redhat.com>
4420 * arm-tdep.c (push_stack_item): 'contents' now const.
4421 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4422 value_contents_writeable. Introduce new temporary.
4424 2010-05-27 Tom Tromey <tromey@redhat.com>
4426 * findcmd.c (parse_find_args): Use value_contents, not
4429 2010-05-27 Tom Tromey <tromey@redhat.com>
4431 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4432 const. Use value_contents, not value_contents_writeable.
4434 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4436 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4437 by call to value_contents.
4439 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4441 * MAINTAINERS: Add myself for write after approval privileges.
4443 2010-05-26 Doug Evans <dje@google.com>
4445 Allow python to find its files if moved from original location.
4446 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4447 (GDB_AC_WITH_DIR): Call it.
4448 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4449 python installation directory.
4450 * config.in: Regenerate.
4451 * configure: Regenerate.
4452 * defs.h (python_libdir): Declare.
4453 * main.c (python_libdir): Define.
4454 (captured_main): Initialize python_libdir.
4455 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4456 call Py_SetProgramName to make sure python can find its libraries
4459 * configure.ac: Try to use python's distutils to fetch compilation
4461 * configure: Regenerate.
4462 * python/python-config.py: New file.
4464 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4466 * ser-tcp.c (net_open): Check error return from socket() call by its
4467 equality to -1 not by it being negative.
4468 (net_close): Likewise.
4470 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4472 * NEWS: Mention the `qRelocInsn' feature.
4473 * gdbarch.sh (relocate_instruction): New.
4474 * amd64-tdep.c (rip_relative_offset): New.
4475 (append_insns): New.
4476 (amd64_relocate_instruction): New.
4477 (amd64_init_abi): Install it.
4478 * i386-tdep.c (append_insns): New.
4479 (i386_relocate_instruction): New.
4480 (i386_gdbarch_init): Install it.
4481 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4482 * gdbarch.h, gdbarch.c: Regenerate.
4484 2010-05-26 Tom Tromey <tromey@redhat.com>
4486 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4487 (struct dwarf2_loclist_baton) <data>: Likewise.
4488 * dwarf2loc.c (find_location_expression): Constify return type.
4489 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4490 (dwarf2_loc_desc_needs_frame): Likewise.
4491 (loclist_read_variable): Constify.
4492 (loclist_describe_location): Likewise.
4493 (loclist_tracepoint_var_ref): Likewise.
4495 2010-05-25 Tom Tromey <tromey@redhat.com>
4497 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4498 (dwarf_expr_frame_base_1): Likewise.
4499 (read_pieced_value): Update.
4500 (needs_frame_frame_base): Constify.
4501 (dwarf2_tracepoint_var_loc): Likewise.
4502 (dwarf2_tracepoint_var_access): Likewise.
4503 (locexpr_describe_location_piece): Likewise.
4504 (locexpr_describe_location_1): Likewise.
4505 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4508 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4509 (dwarf_expr_eval, read_uleb128, read_sleb128)
4510 (dwarf2_read_address): Update.
4511 * dwarf2expr.c (dwarf_expr_eval): Constify.
4512 (read_uleb128): Likewise.
4513 (read_sleb128): Likewise.
4514 (dwarf2_read_address): Likewise.
4515 (require_composition): Likewise.
4516 (execute_stack_op): Likewise.
4517 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4519 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4521 (no_get_frame_base): Constify.
4522 (execute_stack_op): Likewise.
4523 (execute_cfa_program): Likewise.
4524 (read_encoded_value): Likewise.
4526 2010-05-25 Doug Evans <dje@google.com>
4528 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4530 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4531 * event-loop.c: ... here.
4532 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4533 `error' for clarity.
4534 (tui_getc): Pass correct value for `error' parameter to
4535 tui_readline_output.
4537 Add python gdb.GdbError and gdb.string_to_argv.
4538 * NEWS: Document them.
4539 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4540 the exception is gdb.GdbError. Print a second traceback if there's
4541 an error computing the error message.
4542 (gdbpy_string_to_argv): New function.
4543 * python/py-utils.c (gdbpy_obj_to_string): New function.
4544 (gdbpy_exception_to_string): New function.
4545 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4546 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4547 (gdbpy_gdberror_exc): Declare.
4548 * python/python.c (gdbpy_gdberror_exc): New global.
4549 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4551 (GdbMethods): Add string_to_argv.
4553 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4555 * windows-nat.c (display_selector): Call GetLastError to give better
4556 failure explanation.
4558 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4560 * config.in: Regenerate.
4562 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4565 * target.c (push_target): Return only void. Remove the return value
4567 * target.h (push_target): Return only void.
4569 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4571 Update gnulib from latest git.
4572 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4574 * gnulib/memcmp.c: Removed.
4575 * gnulib/memchr.valgrind: New.
4576 * gnulib/stddef.in.h: New.
4577 * gnulib/Makefile.am: Updated.
4578 * gnulib/memchr.c: Updated.
4579 * gnulib/memmem.c: Updated.
4580 * gnulib/stdint.in.h: Updated.
4581 * gnulib/str-two-way.h: Updated.
4582 * gnulib/string.in.h: Updated.
4583 * gnulib/wchar.in.h: Updated.
4585 * gnulib/extra/link-warning.h: Removed.
4586 * gnulib/extra/c++defs.h: New.
4587 * gnulib/extra/warn-on-use.h: New.
4588 * gnulib/extra/arg-nonnull.h: Updated.
4590 * gnulib/m4/extensions.m4: Updated.
4591 * gnulib/m4/gnulib-cache.m4: Updated.
4592 * gnulib/m4/gnulib-common.m4: Updated.
4593 * gnulib/m4/gnulib-comp.m4: Updated.
4594 * gnulib/m4/gnulib-tool.m4: Updated.
4595 * gnulib/m4/include_next.m4: Updated.
4596 * gnulib/m4/longlong.m4: Updated.
4597 * gnulib/m4/memchr.m4: Updated.
4598 * gnulib/m4/memmem.m4: Updated.
4599 * gnulib/m4/stdint.m4: Updated.
4600 * gnulib/m4/string_h.m4: Updated.
4601 * gnulib/m4/memcmp.m4: Removed.
4602 * gnulib/m4/onceonly_2_57.m4: Removed.
4603 * gnulib/m4/00gnulib.m4: New.
4604 * gnulib/m4/mmap-anon.m4: New.
4605 * gnulib/m4/multiarch.m4: New.
4606 * gnulib/m4/onceonly.m4: New.
4607 * gnulib/m4/stddef_h.m4: New.
4608 * gnulib/m4/warn-on-use.m4: New.
4609 * gnulib/m4/wchar.m4: Removed.
4610 * gnulib/m4/wchar_h.m4: New.
4611 * gnulib/m4/wchar_t.m4: New.
4612 * gnulib/m4/wint_t.m4: New.
4614 * aclocal.m4: Regenerate.
4615 * config.in: Likewise.
4616 * configure: Likewise.
4617 * gnulib/Makefile.in: Likewise.
4619 2010-05-21 Tom Tromey <tromey@redhat.com>
4621 * dwarf2loc.c (extract_bits_primitive): New function.
4622 (extract_bits): Likewise.
4623 (insert_bits): Likewise.
4624 (copy_bitwise): Likewise.
4625 (read_pieced_value): Do all operations in bits.
4626 (write_pieced_value): Likewise.
4627 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4628 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4629 Always use xrealloc to resize piece array.
4630 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4631 <DW_OP_piece>: Update.
4632 <DW_OP_bit_piece>: New case.
4634 2010-05-21 Tom Tromey <tromey@redhat.com>
4636 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4637 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4638 * dwarf2expr.h (enum dwarf_value_location)
4639 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4640 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4641 (add_piece): Handle empty piece.
4642 (execute_stack_op) <DW_OP_piece>: Handle
4643 DWARF_VALUE_OPTIMIZED_OUT.
4645 2010-05-21 Tom Tromey <tromey@redhat.com>
4647 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4648 evaluate_subexp, not evaluate_subexp_with_coercion.
4650 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4652 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4655 2010-05-21 Tom Tromey <tromey@redhat.com>
4657 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4659 (write_pieced_value): Likewise.
4661 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4663 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4664 and DW_TAG_volatile_type.
4665 (new_symbol): Likewise.
4667 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4669 * p-valprint.c (pascal_val_print): Call get_array_bounds
4670 to obtain the number of elements in an array.
4672 2010-05-19 Doug Evans <dje@google.com>
4674 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4676 * python.c (source_python_script): Add comment.
4677 (source_python_script_for_objfile): Remove unnecessary call to
4680 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4681 Sergio Durigan Junior <sergiodj@redhat.com>
4684 * parse.c (exp_iterate): Use operator_length wrapper function.
4686 2010-05-18 Michael Snyder <msnyder@vmware.com>
4688 * ada-lang.c: White space.
4689 * ada-typeprint.c: White space.
4690 * ada-valprint.c: White space.
4691 * addrmap.c: White space.
4692 * auxv.c: White space.
4693 * ax-gdb.c: White space.
4695 2010-05-18 Hui Zhu <teawater@gmail.com>
4697 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4699 (inferior_call_waitpid): Move make_cleanup out of check.
4700 Check the return of waitpid.
4701 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4703 2010-05-17 Michael Snyder <msnyder@vmware.com>
4705 * tui/tui.c: White space.
4706 * tui/tui-data.c: White space.
4707 * tui/tui-disasm.c: White space.
4708 * tui/tui-file.c: White space.
4709 * tui/tui-interp.c: White space.
4710 * tui/tui-main.c: White space.
4711 * tui/tui-out.c: White space.
4712 * tui/tui-regs.c: White space.
4713 * tui/tui-source.c: White space.
4714 * tui/tui-stack.c: White space.
4715 * tui/tui-win.c: White space.
4716 * tui/tui-winsource.c: White space.
4718 * procfs.c: White space.
4720 * python/py-auto-load.c: White space.
4721 * python/py-block.c: White space.
4722 * python/py-breakpoint.c: White space.
4723 * python/py-cmd.c: White space.
4724 * python/py-function.c: White space.
4725 * python/py-lazy-string.c: White space.
4726 * python/py-objfile.c: White space.
4727 * python/py-param.c: White space.
4728 * python/py-prettyprint.c: White space.
4729 * python/py-progspace.c: White space.
4730 * python/py-symtab.c: White space.
4731 * python/python.c: White space.
4732 * python/py-type.c: White space.
4733 * python/py-utils.c: White space.
4734 * python/py-value.c: White space.
4736 * mi/mi-cmd-break.c: White space.
4737 * mi/mi-cmd-env.c: White space.
4738 * mi/mi-cmds.c: White space.
4739 * mi/mi-cmd-stack.c: White space.
4740 * mi/mi-cmd-var.c: White space.
4741 * mi/mi-console.c: White space.
4742 * mi/mi-getopt.c: White space.
4743 * mi/mi-interp.c: White space.
4744 * mi/mi-main.c: White space.
4745 * mi/mi-out.c: White space.
4746 * mi/mi-parse.c: White space.
4748 * cli/cli-cmds.c: White space.
4749 * cli/cli-decode.c: White space.
4750 * cli/cli-dump.c: White space.
4751 * cli/cli-interp.c: White space.
4752 * cli/cli-logging.c: White space.
4753 * cli/cli-script.c: White space.
4754 * cli/cli-setshow.c: White space.
4756 * valarith.c: White space.
4757 * valops.c: White space.
4758 * valprint.c: White space.
4759 * value.c: White space.
4760 * varobj.c: White space.
4761 * xcoffread.c: White space.
4762 * xml-support.c: White space.
4763 * xml-tdesc.c: White space.
4765 2010-05-17 Andreas Schwab <schwab@redhat.com>
4768 * c-lang.c (c_printstr): Compute real length of NUL terminated
4771 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4773 * parse.c (parse_exp_in_context): When block is not NULL, use
4774 its associated language to parse the expression instead of
4775 the current_language.
4777 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4779 * jv-lang.c (java_lookup_class): Remove commented out code.
4780 (type_from_class): Likewise.
4781 (java_op_print_tab): Remove commented-out elements.
4783 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4785 * ada-lang.c (to_fixed_range_type): The the raw index type as
4786 argument instead of the raw type name. Remove orig_type parameter.
4787 Update calls throughout.
4788 (ada_fixup_array_indexes_type): New function.
4789 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4790 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4791 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4792 Remove name parameter.
4793 (print_array_type): Add call to ada_fixup_array_indexes_type.
4794 Update calls to print_range_type.
4795 (ada_print_type): Update calls to print_range_type.
4797 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4799 * dwarf2read.c (read_set_type): Set type length if
4800 DW_AT_byte_size attribute is present.
4802 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4804 * p-valprint.c (pascal_val_print): Handle set type if range limits
4805 are undefined but size is known.
4807 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4809 * procfs.c: Reformat.
4811 2010-05-16 Michael Snyder <msnyder@vmware.com>
4813 * target.c: White space.
4814 * target-descriptions.c: White space.
4815 * target-memory.c: White space.
4816 * thread.c: White space.
4817 * top.c: White space.
4818 * tracepoint.c: White space.
4819 * trad-frame.c: White space.
4820 * tramp-frame.c: White space.
4821 * ui-file.c: White space.
4822 * ui-out.c: White space.
4823 * user-regs.c: White space.
4824 * utils.c: White space.
4826 * scm-exp.c: White space.
4827 * scm-lang.c: White space.
4828 * scm-valprint.c: White space.
4829 * sentinel-frame.c: White space.
4830 * ser-base.c: White space.
4831 * ser-go32.c: White space.
4832 * serial.c: White space.
4833 * ser-mingw.c: White space.
4834 * ser-pipe.c: White space.
4835 * ser-tcp.c: White space.
4836 * ser-unix.c: White space.
4837 * solib.c: White space.
4838 * solib-darwin.c: White space.
4839 * solib-frv.c: White space.
4840 * solib-irix.c: White space.
4841 * solib-osf.c: White space.
4842 * solib-pa64.c: White space.
4843 * solib-som.c: White space.
4844 * solib-spu.c: White space.
4845 * solib-svr4.c: White space.
4846 * solib-target.c: White space.
4847 * source.c: White space.
4848 * stabsread.c: White space.
4849 * stack.c: White space.
4850 * std-regs.c: White space.
4851 * symfile.c: White space.
4852 * symmisc.c: White space.
4853 * symtab.c: White space.
4855 2010-05-16 Michael Snyder <msnyder@vmware.com>
4857 * source.c (_initialize_source): Add "rev" as an abbreviation
4858 for the "reverse-search" command.
4860 2010-05-16 Michael Snyder <msnyder@vmware.com>
4862 * record.c: White space.
4863 * regcache.c: White space.
4864 * reggroups.c: White space.
4865 * remote-fileio.c: White space.
4866 * remote-m32r-sdi.c: White space.
4867 * remote-mips.c: White space.
4868 * remote-sim.c: White space.
4869 * remote.c: White space.
4870 (process_g_packet): Remove orphan braces.
4872 2010-05-15 Michael Snyder <msnyder@vmware.com>
4874 * parse.c: White space.
4875 * p-lang.c: White space.
4876 * posix-hdep.c: White space.
4877 * printcmd.c: White space.
4878 * progspace.c: White space.
4879 * prologue-value.c: White space.
4880 * psymtab.c: White space.
4881 * p-typeprint.c: White space.
4882 * p-valprint.c: White space.
4884 * objc-lang.c: White space.
4885 * objfiles.c: White space.
4886 * observer.c: White space.
4887 * osabi.c: White space.
4888 * osdata.c: White space.
4890 * m2-lang.c: White space.
4891 * m2-valprint.c: White space.
4892 * macrocmd.c: White space.
4893 * macroexp.c: White space.
4894 * macroscope.c: White space.
4895 * macrotab.c: White space.
4896 * main.c: White space.
4897 * maint.c: White space.
4898 * mdebugread.c: White space.
4899 * memattr.c: White space.
4900 * minsyms.c: White space.
4901 * monitor.c: White space.
4903 2010-05-14 Michael Snyder <msnyder@vmware.com>
4905 * jv-lang.c: White space.
4906 * jv-typeprint.c: White space.
4907 * jv-valprint.c: White space.
4908 * language.c: White space.
4909 * libunwind-frame.c: White space.
4910 * linespec.c: White space.
4911 * linux-nat.c: White space.
4912 * linux-record.c: White space.
4913 * linux-thread-db.c: White space.
4915 * infcall.c: White space.
4916 * inf-child.c: White space.
4917 * infcmd.c: White space.
4918 * inferior.c: White space.
4919 * inf-loop.c: White space.
4920 * inflow.c: White space.
4921 * inline-frame.c: White space.
4922 * interps.c: White space.
4924 * gcore.c: White space.
4925 * gdb.c: White space.
4926 * gdbtypes.c: White space.
4927 * gnu-nat.c: White space.
4928 * gnu-v2-abi.c: White space.
4929 * gnu-v3-abi.c: White space.
4931 * findcmd.c: White space.
4932 * findvar.c: White space.
4933 * fork-child.c: White space.
4934 * frame-base.c: White space.
4935 * frame.c: White space.
4936 * frame-unwind.c: White space.
4937 * f-valprint.c: White space.
4939 * elfread.c: White space.
4940 * environ.c: White space.
4941 * eval.c: White space.
4942 * event-loop.c: White space.
4943 * event-top.c: White space.
4944 * exceptions.c: White space.
4945 * exec.c: White space.
4946 * expprint.c: White space.
4948 * dbxread.c: White space.
4949 * dcache.c: White space.
4950 * disasm.c: White space.
4951 * doublest.c: White space.
4952 * dsrec.c: White space.
4953 * dummy-frame.c: White space.
4954 * dwarf2expr.c: White space.
4955 * dwarf2-frame.c: White space.
4956 * dwarf2loc.c: White space.
4957 * dwarf2read.c: White space.
4959 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4963 * python/py-value.c (valpy_hash): New function.
4964 (value_object_type): Register valpy_hash.
4966 2010-05-14 Hui Zhu <teawater@gmail.com>
4967 Michael Snyder <msnyder@vmware.com>
4969 * linux-fork.c (gdbthread.h): New include.
4970 (fork_info): Add parent_ptid.
4971 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4973 (delete_checkpoint_command): Call inferior_call_waitpid.
4974 (checkpoint_command): Set parent_ptid.
4976 2010-05-13 Michael Snyder <msnyder@vmware.com>
4978 * dictionary.c: Re-indent to GNU coding standard.
4980 * charset.c: White space.
4981 * c-lang.c: White space.
4982 * cli-out.c: White space.
4983 * coffread.c: White space.
4984 * complaints.c: White space.
4985 * completer.c: White space.
4986 * corefile.c: White space.
4987 * corelow.c: White space.
4988 * cp-abi.c: White space.
4989 * cp-namespace.c: White space.
4990 * cp-support.c: White space.
4991 * cp-valprint.c: White space.
4992 * c-typeprint.c: White space.
4993 * c-valprint.c: White space.
4994 * blockframe.c: White space.
4995 * breakpoint.c: White space.
4996 * buildsym.c: White space.
4997 * blockframe.c: White space.
4998 * bcache.c: White space.
4999 * gdbarch.sh: White space, add blank lines.
5000 * arch-utils.c: Ditto.
5001 * gdbarch.c: Regenerate.
5002 * frame.c: White space, add blank lines.
5003 * stack.c: White space, add blank lines.
5004 (initialize_stack): Remove long-dead code.
5006 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5010 (locexpr_read_variable, loclist_read_variable): Update the callers.
5012 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5015 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5016 Remove check of NULL returned by tag_type_to_type.
5017 (die_containing_type): Remove variable type. Remove type_die variable
5018 initialization. Remove check of NULL returned by tag_type_to_type.
5020 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5023 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5024 names of unnamed structures or unions.
5026 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5028 * procfs.c (proc_watchpoint_address): New function.
5029 (procfs_stopped_by_watchpoint): Remove useless check after
5030 find_procinfo_or_die call.
5031 (procfs_stopped_data_address): New function.
5032 (procfs_use_watchpoints): Register new watchpoint related function.
5034 2010-05-11 Tom Tromey <tromey@redhat.com>
5036 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5038 2010-05-10 Michael Snyder <msnyder@vmware.com>
5040 * utils.c: White space cleanup.
5042 2010-05-10 Tom Tromey <tromey@redhat.com>
5044 * eval.c (ptrmath_type_p): Add 'lang' argument.
5045 (evaluate_subexp_standard): Update.
5046 (evaluate_subexp_with_coercion): Update.
5047 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5049 2010-05-10 Michael Snyder <msnyder@vmware.com>
5051 * utils.c (do_fclose_cleanup) Restore local variable.
5053 2010-05-09 Doug Evans <dje@google.com>
5055 * record.c (init_record_core_ops): Rename record_core to record-core.
5057 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5059 Implement task switching on pa-hpux.
5060 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5061 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5063 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5065 * valops.c (find_overload_match): Add missing i18n markup.
5067 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5069 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5071 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5073 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5074 list for the obconcat call.
5075 * mdebugread.c (parse_symbol): Likewise.
5076 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5078 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5079 New variable ap. Remove variables len and val.
5080 * symfile.h (obconcat): Likewise for the prototype.
5082 2010-05-07 Michael Snyder <msnyder@vmware.com>
5084 * python/python.c (execute_gdb_command): Remove unused variables.
5085 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5086 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5087 Remove unused variable.
5088 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5089 (cmdpy_completer): Remove unused variable.
5090 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5091 * python/py-function.c (fnpy_call): Remove unused variable.
5092 * python/py-objfile.c (objfile_to_objfile_object):
5093 Remove unused variable.
5094 * python/py-param.c (parmpy_init): Remove unused variable.
5095 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5096 Remove unused variable.
5097 (gdbpy_default_visualizer): Remove unused variable.
5098 * python/py-progspace.c (pspace_to_pspace_object):
5099 Remove unused variable.
5100 * python/py-symtab.c (symtab_and_line_to_sal_object):
5101 Remove unused variable.
5102 * python/py-type.c (typy_template_argument):
5103 Remove unused variable.
5104 * python/py-value.c (valpy_string): Remove unused variable.
5105 (convert_value_from_python): Remove unused variables.
5107 2010-05-07 Michael Snyder <msnyder@vmware.com>
5109 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5110 and use it to compute variable 't1'.
5112 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5114 * ada-lang.c (assign_aggregate): Remove unused variable.
5116 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5119 * valops.c (find_overload_match): Handle fsym == NULL case.
5120 Add int no_adl argument.
5121 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5123 Add int no_adl argument.
5124 (find_oload_champ_namespace): Add int no_adl argument.
5125 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5127 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5128 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5129 Evaluate arguments and use them to perform ADL lookup.
5130 Pass no_adl argument to find_overload_match.
5131 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5132 * cp-support.h: Added prototype for
5133 make_symbol_overload_list_namespace.
5134 * cp-support.c (make_symbol_overload_list_namespace): New function.
5135 (make_symbol_overload_list_adl_namespace): New function.
5136 (make_symbol_overload_list_adl): New function.
5137 (make_symbol_overload_list_using): Moved code to add function to
5138 overload set to make_symbol_overload_list_namespace.
5139 * c-exp.y: create UNKNOWN_CPP_NAME token.
5140 Add parse rule for ADL functions.
5141 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5143 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5145 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5148 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5150 Implement task switching on solaris targets.
5151 * sol-thread.c (thread_db_find_thread_from_tid)
5152 (sol_get_ada_task_ptid): New functions.
5153 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5155 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5157 * remote.c (remote_query_supported_append): Use reconcat.
5158 (remote_query_supported): Install a cleanup. Use reconcat.
5160 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5162 * gdbarch.sh (qsupported): Delete.
5163 * gdbarch.h, gdbarch.c: Regenerate.
5164 * remote.c (remote_query_supported): Remove use of
5167 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5169 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5172 2010-05-06 Michael Snyder <msnyder@vmware.com>
5174 * xml-support.c (xinclude_start_include): Delete unused variable.
5175 (xml_process_xincludes): Delete unused variable.
5176 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5177 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5178 (tdesc_find_arch_register): Delete unused variable.
5179 (tdesc_use_registers): Delete unused variable.
5180 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5181 * inferior.c (print_inferior): Delete unused variable.
5182 * record.c (record_open_1): Delete unused variable.
5183 (record_restore): Delete unused variable.
5184 (cmd_record_save): Delete unused variable.
5185 * gcore.c (derive_heap_segment): Delete unused variable.
5186 (objfile_find_memory_regions): Use unused variable.
5187 * jit.c (jit_inferior_init): Delete unused variable.
5188 * progspace.c (clone_program_space): Delete unused variable.
5189 (pspace_empty_p): Delete unused variable.
5191 * frame-unwind.c (frame_unwind_find_by_frame):
5192 Delete unused variable.
5193 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5194 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5195 (method_name_from_physname): Delete unused variable.
5196 (cp_func_name): Delete unused variable.
5197 (cp_validate_operator): Delete unused variable.
5198 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5199 Delete unused variable.
5200 * trad-frame.c (trad_frame_get_prev_register):
5201 Delete unused variable.
5202 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5204 * serial.c (serial_for_fd): Delete unused variable.
5205 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5206 * top.c (execute_command): Delete unused variable.
5207 (init_main): Delete unused variable.
5208 * utils.c (do_fclose_cleanup): Delete unused variable.
5209 (do_all_inferior_continuations): Delete unused variable.
5210 (initialize_utils): Delete unused variable.
5211 (internal_problem_mode): Delete unused global.
5212 * frame.c (get_prev_frame): Delete unused global.
5213 (get_frame_locals_address): Delete unused global.
5214 (get_frame_args_address): Delete unused global.
5216 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5217 (pascal_type_print_varspec_prefix): Delete unused variable.
5218 * f-typeprint.c (f_type_print_base): Delete unused variable.
5219 (f_type_print_varspec_suffix): Delete unused variable.
5220 * m2-typeprint.c (m2_print_type): Delete unused variable.
5221 (m2_long_set): Delete unused variable.
5222 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5223 * d-valprint.c (dynamic_array_type): Delete unused variable.
5224 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5225 Delete unused variable.
5226 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5227 * m2-valprint.c (m2_val_print): Delete unused variable.
5229 * ui-out.c (ui_out_field_int): Delete unused variable.
5230 (ui_out_field_fmt_int): Delete unused variable.
5231 * varobj.c (varobj_list_children): Delete unused variable.
5232 (varobj_set_value): Delete unused variable.
5233 (install_new_value_visualizer): Delete unused variable.
5234 (varobj_set_visualizer): Delete unused variable.
5235 (varobj_update): Delete unused variable.
5236 (varobj_editable_p): Delete unused variable.
5237 (c_value_of_root): Delete unused variable.
5238 (cplus_describe_child): Delete unused variable.
5240 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5241 (decode_constrained_packed_array_type): Delete unused variable.
5242 (add_defn_to_vec): Delete unused variable.
5243 (symbol_completion_match): Delete unused variable.
5244 (value_tag_from_contents_and_address): Delete unused variable.
5245 (ada_evaluate_subexp): Delete unused variable.
5246 * c-lang.c (classify_type): Delete unused variable.
5247 * f-lang.c (f_printstr): Delete unused variable.
5248 * objc-lang.c (objc_printstr): Delete unused variable.
5249 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5250 * jv-lang.c (type_from_class): ifdef unused variable.
5251 (java_class_name_from_physname): Delete unused variable.
5252 * m2-lang.c (m2_printstr): Delete unused variable.
5254 * objfiles.c (objfile_relocate): Delete unused variable.
5255 * maint.c (_initialize_maint_cmds): Delete unused variable.
5256 * demangle.c (_initialize_demangler): Delete unused variable.
5257 * corefile.c (reopen_exec_file): Delete unused variable.
5258 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5259 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5261 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5262 * memattr.c (mem_delete): Delete unused variable.
5263 (invalidate_target_mem_regions): Delete unused variable.
5264 * mem-break.c (default_memory_insert_breakpoint):
5265 Delete unused variable.
5266 * target.c (target_get_osdata): Delete unused variable.
5267 * parse.c (length_of_subexp): Delete unused variable.
5268 (prefixify_subexp): Delete unused variable.
5269 (exp_iterate): Delete unused variable.
5270 * reverse.c (delete_bookmark_command): Delete unused variable.
5272 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5273 * macroexp.c (gather_arguments): Delete unused variable.
5274 (substitute_args): Delete unused variable.
5275 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5276 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5277 (_initialize_gdbarch): Delete unused variable.
5278 * gdbarch.c, gdbarch.h: Regenerate.
5279 * arch-utils.c (initialize_current_architecture):
5280 Delete unused variable.
5281 (_initialize_gdbarch_utils): Delete unused variable.
5282 * gdbtypes.c (make_cv_type): Delete unused variable.
5283 (make_type_with_address_space): Delete unused variable.
5285 * linespec.c (decode_compound): Delete unused variable.
5286 * dictionary.c (iterator_next_hashed): Delete unused variable.
5287 * infcall.c (call_function_by_hand): Delete unused variable.
5288 * infcmd.c (step_1): Delete unused variable.
5289 (registers_info): Delete unused variable.
5290 (attach_command): Delete unused variable.
5291 * infrun.c (follow_exec): Delete unused variable.
5292 (handle_step_into_function_backwards): Delete unused variable.
5293 (_initialize_infrun): Delete unused variable.
5294 * stack.c (parse_frame_specification_1): Delete unused variable.
5295 (frame_info): Delete unused variable.
5296 (backtrace_command_1): Delete unused variable.
5297 (catch_info): Delete unused variable.
5299 * eval.c (evaluate_subexp_standard): Delete unused variable.
5300 * valops.c (value_cast_pointers): Delete unused variable.
5301 (value_dynamic_cast): Delete unused variable.
5302 (value_array): Delete unused variable.
5303 (find_overload_match): Delete unused variable.
5304 * valarith.c (value_subscript): Delete unused variable.
5305 (value_binop): Delete unused variable.
5306 * valprint.c (_initialize_valprint): Delete unused variable.
5307 * printcmd.c (print_command_1): Delete unused variable.
5308 (address_info): Delete unused variable.
5309 (printf_command): Delete unused variable.
5311 * auxv.c (target_auxv_search): Delete unused variable.
5312 * blockframe.c (get_frame_block): Delete unused variable.
5313 * regcache.c (regcache_cpy): Delete unused variable.
5314 (regcache_cpy_no_passthrough): Delete unused variable.
5315 * charset.c (wchar_iterate): Delete unused variable.
5316 (find_charset_names): Delete unused variable.
5317 (_initialize_charset): Delete unused variable.
5318 * disasm.c (do_mixed_source_and_assembly):
5319 Delete unused variable.
5320 * source.c (set_default_source_symtab_and_line):
5321 Delete unused variable.
5322 (set_substitute_path_command): Delete unused variable.
5323 * value.c (preserve_values): Delete unused variable.
5324 (value_from_double): Delete unused variable.
5326 2010-05-05 Michael Snyder <msnyder@vmware.com>
5328 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5329 (find_last_source_symtab_from_partial): Delete unused variable.
5330 * symfile.c (place_section): Delete unused variable.
5331 (default_symfile_offsets): Delete unused variable.
5332 (get_debug_link_info): Delete unused variable.
5333 (find_separate_debug_file_by_debuglink): Delete unused variable.
5334 (add_symbol_file_command): Delete unused variable.
5335 (symfile_find_segment_sections): Delete unused variable.
5336 * symmisc.c (free_symtab): Delete unused variable.
5337 (dump_symtab_1): Delete unused variable.
5338 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5339 (find_pc_sect_symtab): Delete unused variable.
5340 (skip_prologue_using_lineinfo): Delete unused variable.
5341 (sources_info): Delete unused variable.
5342 (completion_list_add_name): Delete unused variable.
5343 (expand_line_sal): Delete unused variable.
5345 * breakpoint.c (validate_commands_for_breakpoint):
5346 Delete unused variables.
5347 (insert_catchpoint): Delete unused variable.
5348 (update_watchpoint): Delete unused variable.
5349 (insert_bp_location): Delete unused variable.
5350 (insert_breakpoint_locations): Delete unused variable.
5351 (remove_breakpoint_1): Delete unused variable.
5352 (software_breakpoint_inserted_here_p): Delete unused variable.
5353 (watchpoints_triggered): Delete unused variable.
5354 (bpstat_check_watchpoint): Delete unused variable.
5355 (bpstat_stop_status): Delete unused variable.
5356 (print_one_breakpoint_location): Delete unused variable.
5357 (allocate_bp_location): Delete unused variable.
5358 (create_breakpoint): Delete unused variable.
5359 (watch_command_1): Delete unused variable.
5360 (catch_exception_command_1): Delete unused variable.
5361 (catch_ada_exception_command): Delete unused variable.
5362 (delete_breakpoint): Delete unused variable.
5363 (breakpoint_re_set_one): Delete unused variable.
5364 (do_enable_breakpoint): Delete unused variable.
5366 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5368 * amd64-tdep.c: Include disasm.h.
5369 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5370 (amd64_insn_length): Moved to disasm.c and renamed.
5371 (fixup_riprel): Adjust.
5372 * disasm.c (do_ui_file_delete): New.
5373 (gdb_insn_length): New.
5374 (gdb_buffered_insn_length_fprintf)
5375 (gdb_buffered_insn_length_init_dis)
5376 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5378 * disasm.h (gdb_insn_length): Declare.
5379 (gdb_buffered_insn_length): Declare.
5381 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5383 * remote.c (clear_threads_parsing_context): New.
5384 (remote_threads_info): Delete unused null_cleanup. Install a
5385 cleanup to clear the threads_parsing_context in case parsing
5388 2010-05-05 Michael Snyder <msnyder@vmware.com>
5390 * c-exp.y (parse_string_or_char): Delete unused variable.
5391 (c_lex): Delete unused variable.
5392 * cp-name-parser.y (cpname_lex): Delete unused variable.
5393 * ada-exp.y (find_primitive_type): Delete unused variable.
5394 (write_var_or_type): Delete unused variable.
5395 * jv-exp.y (java_parse): Delete unused variable.
5396 (push_expression_name): Delete unused variable.
5397 * p-exp.y (pascal_lex): Delete unused variable.
5399 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5401 * remote.c (remote_threads_info): Really revert previous previous
5404 2010-05-05 Michael Snyder <msnyder@vmware.com>
5406 * elfread.c (elf_symtab_read): Delete unused variable.
5407 (find_separate_debug_file_by_buildid): Delete unused variables.
5408 (elf_symfile_read): Delete unused variable.
5410 * coffread.c (coff_symfile_read): Delete unused variables.
5412 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5413 (read_pe_exported_syms): Delete unused variable.
5415 * stabsread.c (define_symbol): Delete unused variable.
5417 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5418 (process_psymtab_comp_unit): Delete unused variable.
5419 (dwarf2_build_psymtabs_hard): Delete unused variable.
5420 (load_partial_comp_unit): Delete unused variable.
5421 (create_all_comp_units): Delete unused variable.
5422 (scan_partial_symbols): Delete unused variable.
5423 (add_partial_symbol): Delete unused variable.
5424 (add_partial_namespace): Delete unused variable.
5425 (add_partial_enumeration): Delete unused variable.
5426 (load_full_comp_unit): Delete unused variable.
5427 (process_full_comp_unit): Delete unused variable.
5428 (read_file_scope): Delete unused variable.
5429 (read_type_unit_scope): Delete unused variable.
5430 (process_structure_scope): Delete unused variable.
5431 (process_enumeration_scope): Delete unused variable.
5432 (read_tag_ptr_to_member_type): Delete unused variable.
5433 (read_typedef): Delete unused variable.
5434 (read_partial_die): Delete unused variable.
5435 (decode_locdesc): Delete unused variable.
5436 (zeroed_partial_die): Delete unused global variable.
5438 * tui/tui-interp.c (_initialize_tui_interp):
5439 Delete unused variable.
5440 * tui/tui-regs.c tui_display_registers_from):
5441 Delete unused variable.
5442 (tui_check_register_values): Delete unused variable.
5443 (tui_register_format): Delete unused variable.
5444 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5445 * tui/tui-windata.c (tui_display_data_from_line):
5446 Delete unused variables.
5447 (tui_vertical_data_scroll): Delete unused variables.
5449 2010-05-05 Michael Snyder <msnyder@vmware.com>
5451 * remote.c (remote_threads_info): Revert questionable part of
5452 the previous change.
5454 2010-05-05 Michael Snyder <msnyder@vmware.com>
5456 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5457 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5458 (mi_cmd_var_list_children): Delete unused variable.
5459 (varobj_update_one): Delete unused variable.
5460 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5461 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5462 Delete unused variable.
5463 (mi_cmd_stack_list_variables): Delete unused variable.
5464 (list_args_or_locals): Delete unused variable.
5465 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5466 Delete unused variables.
5467 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5468 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5469 Delete unused variable.
5470 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5471 (mi_cmd_interpreter_exec): Delete unused variable.
5472 (mi_on_normal_stop): Delete unused variable.
5473 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5474 (print_one_inferior): Delete unused variables.
5475 (mi_execute_command): Delete unused variable.
5476 (mi_cmd_execute): Delete unused variable.
5477 (timestamp): Delete unused variable.
5479 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5480 (restore_binary_file): Delete unused variable.
5481 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5482 * cli/cli-script.c (define_command): Delete unused variables.
5483 (recurse_read_control_structure): Delete unused variable.
5484 (script_from_file): Delete unused variable.
5485 * cli/cli-cmds.c (complete_command): Delete unused variable.
5486 (disassemble_command): Delete unused variable.
5488 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5489 * tracepoint.c (delete_trace_variable_command):
5490 Delete unused variables.
5491 (encode_actions_1): Delete unused variables.
5492 (start_tracing): Delete unused variable.
5493 (trace_status_mi): Delete unused variable.
5494 (tfind_1): Delete unused variable.
5495 (trace_find_pc_command): Delete unused variable.
5496 (trace_find_line_command): Delete unused variables.
5497 (trace_find_range_command): Delete unused variables.
5498 (trace_find_outside_command): Delete unused variables.
5499 (parse_tracepoint_definition): Delete unused variables.
5500 (tfile_fetch_registers): Delete unused variable.
5502 * dcache.c (dcache_init): Delete unused variable.
5503 (dcache_info): Delete unused variable.
5505 * remote.c (remote_threads_info): Delete unused variable.
5506 (process_stop_reply) :Delete unused variable.
5507 (remote_get_trace_status): Delete unused variables.
5509 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5510 (thread_from_lwp): Delete unused variable.
5511 (enable_thread_event_reporting): Delete unused variable.
5512 (check_for_thread_db): Delete unused variables.
5513 (thread_db_find_new_threads_2): Delete unused variable.
5515 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5516 (checkpoint_command): Delete unused variable.
5517 (linux_fork_context): Delete unused variables.
5519 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5520 (linux_tracefork_child): Delete unused variable.
5521 (linux_child_follow_fork): Delete unused variable.
5522 (linux_nat_detach): Delete unused variable.
5523 (linux_handle_extended_wait): Delete unused variable.
5524 (linux_nat_has_pending_sigint): Delete unused variable.
5525 (linux_nat_find_memory_regions): Delete unused variable.
5526 (linux_nat_make_corefile_notes): Delete unused variables.
5527 (linux_nat_info_proc_cmd): Delete unused variable.
5528 (linux_proc_pending_signals): Delete unused variable.
5529 (linux_nat_stop_lwp): Delete unused variables.
5530 (_initialize_linux_nat): Delete unused variable.
5532 * ser-pipe.c (pipe_ops): Delete unused global variable.
5534 * linux-record.c (record_linux_system_call):
5535 Delete unused variables.
5537 * corelow.c (core_xfer_partial): Delete unused variables.
5539 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5540 (svr4_solib_create_inferior_hook): Add ifdef around
5541 conditionally-used variable declarations.
5543 * solib.c (solib_find): Delete unused variable.
5544 (free_so_symbols): Delete unused variable.
5545 (info_sharedlibrary_command): Delete unused variable.
5546 (reload_shared_libraries_1): Delete unused variable.
5547 (_initialize_solib): Delete unused variable.
5549 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5550 (i386_collect_xstateregset): Delete unused variable.
5551 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5553 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5554 Delete unused variable 'type'.
5556 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5558 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5559 ada-lang.c: Remove comment mentioning these macros.
5560 * m2-exp.y: Delete commented out code.
5562 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5564 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5566 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5568 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5570 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5571 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5573 (cleanup_kernel_helper_return): Likewise.
5574 * arm-tdep.c (copy_unmodified): Likewise.
5575 (copy_preload): Likewise.
5576 (copy_copro_load_store): Likewise.
5577 (cleanup_branch): Likewise.
5578 (copy_b_bl_blx): Likewise.
5579 (copy_bx_blx_reg): Likewise.
5580 (copy_alu_imm): Likewise.
5581 (copy_alu_reg): Likewise.
5582 (copy_alu_shifted_reg): Likewise.
5583 (cleanup_load): Likewise.
5584 (cleanup_store): Likewise.
5585 (cleanup_block_load_pc): Likewise.
5586 (cleanup_svc): Likewise.
5587 (copy_undef): Likewise.
5588 (copy_unpred): Likewise.
5589 * remote.c (register_remote_support_xml): Likewise.
5591 2010-05-05 Hui Zhu <teawater@gmail.com>
5593 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5595 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5597 * remote.c (register_remote_support_xml)
5598 (remote_query_supported_append, remote_query_supported): Add cast
5599 to NULL used as sentinel.
5600 * tracepoint.c (tvariables_info_1): Likewise.
5601 * utils.c (add_internal_problem_command): Likewise.
5603 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5605 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5606 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5607 registers gracefully.
5609 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5611 * exec.c (print_section_info): Display entry point without arch
5614 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5617 * printcmd.c (x_command): Only dereference once implicitly for
5620 2010-05-03 Doug Evans <dje@google.com>
5622 * event-loop.c (gdb_timer): Delete unused global.
5623 (create_timer): Update.
5625 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5627 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5628 CURRENT->DECLARATION case.
5629 * cp-support.h (struct using_direct): Provide extended comment.
5631 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5633 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5634 HPPABSD_SIZEOF_GREGS.
5635 (HPPAOBSD_SIZEOF_FPREGS): New define.
5636 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5637 (hppaobsd_supply_fpregset): New function.
5638 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5639 (hppaobsd_fpregset): New variable.
5640 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5641 (_initialize_hppabsd_tdep): Remove spurious blank line.
5643 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5646 * p-valprint.c (pascal_value_print): Always dereference a value with
5647 type code TYPE_CODE_REF.
5649 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5651 * remote.c (remote_notice_signals): New.
5652 (remote_start_remote): In non-stop mode, update the remote end on
5653 which signals it can silently pass.
5654 (init_remote_ops): Install remote_notice_signals.
5656 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5658 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5659 * command.h (error_no_arg): ... here. Remove NORETURN, change
5660 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5661 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5662 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5663 (internal_verror, internal_error, nomem): Remove NORETURN, change
5664 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5665 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5666 (throw_vfatal, throw_error): Remove NORETURN.
5667 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5668 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5669 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5670 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5671 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5672 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5674 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5675 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5677 * target.c (tcomplain): Likewise.
5678 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5680 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5681 (internal_error, perror_with_name, nomem): Remove NORETURN.
5682 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5685 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5687 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5688 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5689 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5690 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5691 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5692 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5693 * complaints.h (complaint, internal_complaint): Likewise.
5694 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5695 (ATTR_FORMAT): Remove.
5696 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5697 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5698 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5699 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5700 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5701 (internal_error, internal_vwarning, internal_warning, warning)
5702 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5703 * disasm.c (fprintf_disasm): Likewise.
5704 * exceptions.c (throw_it): Likewise.
5705 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5706 (throw_error): Likewise.
5707 * language.h (type_error, range_error): Likewise.
5708 * linespec.c (cplusplus_error): Likewise.
5709 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5710 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5711 * monitor.c (monitor_debug): Likewise.
5712 * parser-defs.h (parser_fprintf): Likewise.
5713 * serial.h (serial_printf): Likewise.
5714 * tui/tui-hooks.c (tui_query_hook): Likewise.
5715 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5716 (uo_message): Likewise.
5717 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5718 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5720 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5722 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5724 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5725 (cli_table_header, cli_begin, cli_end, cli_field_int)
5726 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5727 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5728 Delete forward declarations.
5729 (cli_ui_out_impl): Move below the callbacks.
5730 (_initialize_cli_out): Delete.
5732 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5734 * README: Use consistent `GDB' and `GDBserver' spellings.
5736 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5740 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5742 * infrun.c (prepare_for_detach): In non-stop, context switch to
5743 the thread that got the event before handling the event.
5745 2010-04-30 Tom Tromey <tromey@redhat.com>
5747 * symtab.c (symbol_set_names): Fix typo.
5749 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5751 * python/py-param.c (parm_constants): Avoid ARI warning
5752 by adding ARI comment.
5753 (parmpy_init): Likewise.
5755 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5757 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5758 and created type for re-use.
5760 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5762 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5764 2010-04-29 Doug Evans <dje@google.com>
5766 * ser-base.h (reschedule): Delete prototype.
5767 * ser-base.c (reschedule): Make static.
5769 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5771 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5772 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5773 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5775 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5778 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5782 * regcache.c (registers_changed): Rename to ...
5783 (registers_changed_ptid): ... this, and only delete register cache
5784 entries matching the ptid filter argument.
5785 (registers_changed): Reimplement on top of registers_changed_ptid.
5786 * regcache.h (registers_changed_ptid): Declare.
5787 * target.c (target_resume): Flush register caches.
5789 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5790 Tom Tromey <tromey@redhat.com>
5791 Thiago Jung Bauermann <bauerman@br.ibm.com>
5793 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5794 (SUBDIR_PYTHON_SRCS): Likewise.
5795 (py-parameter.o): New rule.
5796 * python/py-parameter.c: New file.
5797 * python/python-internal.h (gdbpy_initialize_parameter)
5798 (gdbpy_parameter, gdbpy_parameter_value)
5799 (gdbpy_parse_command_name): Declare.
5800 * python/py-cmd.c (parse_command_name): Rename to
5801 gdbpy_parse_command_name.
5802 (gdbpy_parse_command_name): Accept a starting list parameter and
5804 (cmdpy_init): Use gdbpy_parse_command_name.
5805 * python/python.c (parameter_to_python): Rename to
5806 gdbpy_parameter_to_python. Accept enum var_types and value.
5807 (gdbpy_parameter): Use gdbpy_parameter_value.
5808 (_initialize_python): Call gdbpy_initialize_parameters.
5810 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5812 * MAINTAINERS: Add myself for write after approval privileges.
5814 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5817 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5818 (COMMON_OBS): Add d-lang.o d-valprint.o.
5819 (HFILES_NO_SRCDIR): Add d-lang.h.
5820 * NEWS: Mention D language support.
5821 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5822 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5823 * d-lang.c: New file.
5824 * d-lang.h: New file.
5825 * d-valprint.c: New file.
5826 * defs.h (enum language): Add language_d.
5827 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5828 * language.c (binop_result_type, integral_type, character_type)
5829 (string_type, boolean_type, structured_type): Add language_d.
5830 * symfile.c (init_filename_language_table): Add language_d.
5831 * symtab.c: Include d-lang.h.
5832 (symbol_init_language_specific, symbol_find_demangled_name)
5833 (symbol_natural_name, lookup_symbol_in_language)
5834 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5836 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5838 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5840 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5842 * symfile.c (init_filename_language_table): Register .dg files
5845 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5847 * gdbtypes.h (struct main_type): Expand comment about target_type
5850 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5851 Tristan Gingold <gingold@adacore.com>
5853 * symfile.c (reread_symbols): Also search for file in libraries.
5856 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5858 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5859 in terms of configuration.
5861 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5863 * objfiles.c: Include solist.h.
5864 (free_all_objfiles): New variable so. Check stale solist objfiles.
5865 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5866 and no_shared_libraries.
5868 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5871 * python/py-auto-load.c (source_section_scripts): Remove trailing
5872 new-line in i18n string.
5874 2010-04-26 Doug Evans <dje@google.com>
5876 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5878 2010-04-26 Tom Tromey <tromey@redhat.com>
5880 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5883 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5885 Removal of config/i386/nm-i386sol2.h native configuration file.
5886 * config/i386/nm-i386sol2.h: Remove file.
5887 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5888 * config/i386/sol2-64.mh: Idem.
5889 * config/djgpp/fnchange.lst: Remove reference to that file.
5890 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5892 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5894 PR breakpoints/11531.
5895 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5896 macro definition and related comment.
5897 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5898 (resume): Remove code and comment related to this macro.
5900 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5902 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5905 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5907 * defs.h: Adjust comment.
5908 * filesystem.h, filesystem.c: New files.
5909 * Makefile.in (SFILES): Add filesystem.c.
5910 (COMMON_OBS): Add filesystem.o.
5911 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5912 different target and host path flavours.
5913 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5914 has_dos_based_file_system on the gdbarch.
5915 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5916 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5917 * i386-tdep.c (i386_go32_init_abi): Ditto.
5918 * gdbarch.sh (has_dos_based_file_system): New.
5919 * gdbarch.h, gdbarch.c: Regenerate.
5920 * NEWS: Mention improved support for remote targets with DOS-based
5921 filesystems. Mention new `set/show target-file-system-kind'
5924 2010-04-23 Stan Shebs <stan@codesourcery.com>
5926 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5928 (struct agent_reqs): Remove.
5929 (ax_reg_mask): Declare.
5930 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5931 (free_agent_expr): Free reg_mask.
5932 (ax_print): Add scope and register mask info.
5933 (ax_reqs): Remove agent_reqs argument, use agent expression
5934 fields, and move part of register mask computation to...
5935 (ax_reg_mask): New function.
5936 * ax-gdb.c (gen_trace_static_fields): Call it.
5937 (gen_traced_pop): Ditto.
5938 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5939 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5940 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5941 (gen_eval_for_expr): Ditto, and require an rvalue.
5942 (agent_command): Call ax_reqs.
5943 (agent_eval_command): Ditto.
5944 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5945 (validate_action_line): Ditto.
5946 (collect_symbol): Ditto.
5947 (encode_actions_1): Ditto.
5949 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5950 Paul Pluzhnikov <ppluzhnikov@google.com>
5951 Jan Kratochvil <jan.kratochvil@redhat.com>
5953 Fix deadlock on looped list of loaded shared objects.
5954 * solib-svr4.c (LM_PREV): New function.
5955 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5956 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5957 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5958 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5960 2010-04-23 Doug Evans <dje@google.com>
5962 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5964 * configure: Regenerate.
5965 * main.c: #include "python/python.h".
5966 (captured_main): Defer loading auto-loaded scripts until after
5967 local_gdbinit has been sourced.
5968 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5969 (load_auto_scripts_for_objfile): New function.
5970 (auto_load_new_objfile): Call it.
5971 * python/python.h (gdbpy_global_auto_load): Declare.
5972 (load_auto_scripts_for_objfile): Declare.
5974 Add support for auto-loading scripts from .debug_gdb_scripts section.
5975 * NEWS: Add entry for .debug_gdb_scripts.
5976 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5977 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5978 (py-auto-load.o): New rule.
5979 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5980 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5981 * python/py-auto-load.c: New file.
5982 * python/python-internal.h: #include <stdio.h>.
5983 (set_python_list, show_python_list): Declare.
5984 (gdbpy_initialize_auto_load): Declare.
5985 (source_python_script_for_objfile): Declare.
5986 * python/python.c: Remove #include of observer.h.
5987 (gdbpy_auto_load): Moved to py-auto-load.c.
5988 (GDBPY_AUTO_FILENAME): Ditto.
5989 (gdbpy_new_objfile): Delete.
5990 (source_python_script_for_objfile): New function.
5991 (set_python_list, show_python_list): Make externally visible.
5992 (_initialize_python): Move "auto-load" command to py-auto-load.c
5993 and observer_attach_new_objfile to py-auto-load.c.
5995 2010-04-23 Jerome Guitton <guitton@adacore.com>
5997 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5998 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5999 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6001 (alpha_heuristic_analyze_probing_loop): New function.
6002 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6003 and handle cases when a stack probe loop is generated.
6004 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6005 (alpha_mdebug_max_frame_size_exceeded): New function.
6006 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6007 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6008 Return 0 when the maximum debuggable frame size has been exceeded.
6010 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6013 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6015 2010-04-20 Chris Moller <cmoller@redhat.com>
6019 * symtab.c (rbreak_command): Added code to include a filename
6020 specification in the rbreak argument.
6021 * NEWS: Added a brief description of filename-qualified rbreak.
6023 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6025 Fix crashes on dangling display expressions.
6026 * ada-lang.c (ada_operator_check): New function.
6027 (ada_exp_descriptor): Fill-in the field operator_check.
6028 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6029 * jv-lang.c (exp_descriptor_java): Likewise.
6030 * m2-lang.c (exp_descriptor_modula2): Likewise.
6031 * scm-lang.c (exp_descriptor_scm): Likewise.
6032 * parse.c (exp_descriptor_standard): Likewise.
6033 (operator_check_standard): New function.
6034 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6035 * parser-defs.h (struct exp_descriptor): New field operator_check.
6036 (operator_check_standard, exp_uses_objfile): New declarations.
6037 * printcmd.c: Remove the inclusion of solib.h.
6038 (display_uses_solib_p): Remove the function.
6039 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6040 and exp_uses_objfile instead of display_uses_solib_p.
6041 * solist.h (struct so_list) <objfile>: New comment.
6042 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6043 * symtab.h (lookup_objfile_from_block): New declaration.
6044 (struct general_symbol_info) <obj_section>: Extend the comment.
6046 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6047 Thiago Jung Bauermann <bauerman@br.ibm.com>
6049 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6050 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6051 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6052 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6053 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6054 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6055 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6056 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6057 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6058 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6059 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6060 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6061 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6062 Define, in case <ptrace.h> doesn't provide it.
6063 (booke_debug_info): New variable.
6064 (max_slots_number): Ditto.
6065 (hw_break_tuple): New struct.
6066 (thread_points): Ditto.
6067 (ppc_threads): New variable.
6068 (PPC_DEBUG_CURRENT_VERSION): New define.
6069 (have_ptrace_new_debug_booke): New function.
6070 (ppc_linux_check_watch_resources): Renamed to ...
6071 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6072 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6073 (booke_cmp_hw_point): New function.
6074 (booke_find_thread_points_by_tid): Ditto.
6075 (booke_insert_point): Ditto.
6076 (booke_remove_point): Ditto.
6077 (ppc_linux_insert_hw_breakpoint): Ditto.
6078 (ppc_linux_remove_hw_breakpoint): Ditto.
6079 (get_trigger_type): Ditto.
6080 (ppc_linux_insert_watchpoint): Handle BookE processors.
6081 (ppc_linux_remove_watchpoint): Ditto.
6082 (ppc_linux_new_thread): Ditto.
6083 (ppc_linux_thread_exit): New function..
6084 (ppc_linux_stopped_data_address): Handle BookE processors.
6085 (ppc_linux_watchpoint_addr_within_range): Ditto.
6086 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6087 to_remove_hw_breakpoint fields of the target operations struct.
6088 Add observe for the thread_exit event.
6090 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6092 * i386-linux-nat.c (regmap): Removed.
6093 (fetch_register): Replace regmap with
6094 i386_linux_gregset_reg_offset.
6095 (store_register): Likewise.
6096 (supply_gregset): Likewise.
6097 (fill_gregset): Likewise.
6099 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6102 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6104 2010-04-22 Chris Moller <cmoller@redhat.com>
6106 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6107 method of popping recursion-detection stack with a method based on
6108 obstack_object_size(). (Similar to the PR9167 patch below, but for
6109 the static array obstack rather than the static member obstack.)
6111 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6113 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6114 (_initialize_amd64_linux_nat): Replace
6115 amd64_linux_gregset64_reg_offset with
6116 amd64_linux_gregset_reg_offset.
6118 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6121 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6123 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6126 * stabsread.c (set_length_in_type_chain): New function.
6127 (read_struct_type): Call set_length_in_type_chain function.
6128 (read_enum_type): Idem.
6130 2010-04-21 Stan Shebs <stan@codesourcery.com>
6131 Nathan Sidwell <nathan@codesourcery.com>
6133 * tracepoint.c (trace_save): Open in binary mode.
6135 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6137 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6139 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6140 builtin_char32 fields.
6141 * printcmd.c (decode_format): Set char size to '\0'
6142 for strings unless explicit size is given.
6143 (print_formatted): Correct calculation of NEXT_ADDRESS
6144 for 16 or 32 bit strings.
6145 (do_examine): Do not force byte size for strings.
6146 Use builtin_char16 and builtin_char32 types to display
6147 16 or 32 bit-wide strings.
6148 (x_command): Set LAST_SIZE to 'b' for string type.
6150 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6153 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6156 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6157 there is no .reg-xstate section.
6158 (i386_linux_core_read_description): Check XCR0 first.
6160 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6162 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6165 2010-04-21 Chris Moller <cmoller@redhat.com>
6168 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6169 method of popping recursion-detection stack with a method based on
6170 obstack_object_size().
6172 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6175 * p-valprint.c (pascal_val_print): Fix default printing of integer
6178 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6180 Fix compilation warning on gcc-4.1.2.
6181 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6182 local variable`pc' to zero.
6184 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6186 Implement thread support with core files on alpha-tru64.
6187 * dec-thread.c (dec_thread_find_new_threads): New function,
6188 extracted from resync_thread_list.
6189 (resync_thread_list): Add OPS parameter. Replace extracted-out
6190 code by call to dec_thread_find_new_threads.
6191 (dec_thread_wait): Update call to resync_thread_list.
6192 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6194 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6196 * ada-lang.c (value_pointer): New function.
6197 (make_array_descriptor): Call value_pointer to convert addresses to
6200 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6202 * rs6000-aix-tdep.c: #include exceptions.h.
6203 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6204 while reading the memory at ADDR, then ADDR cannot be a function
6207 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6209 * ada-typeprint.c (ada_print_typedef): New function.
6210 * ada-lang.h (ada_print_typedef): Add declaration.
6211 * ada-lang.c (ada_language_defn): set la_print_typdef field
6212 to ada_print_typedef.
6214 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6216 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6218 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6220 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6221 (iterate_over_mappings): Adjust function profile. Add declaration.
6222 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6225 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6227 * procfs.c (solib_mappings_callback): Move function up to avoid
6230 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6232 * procfs.c (find_signalled_thread, find_stop_signal): Move
6233 these functions down to define them only when used.
6235 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6237 * valprint.c (common_val_print): Fix the value before extracting
6239 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6240 * ada-lang.h (ada_to_fixed_value): New function declaration.
6241 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6242 to avoid code duplication and fix a bug in the handling of
6243 fixed types contents.
6245 2010-04-20 Tom Tromey <tromey@redhat.com>
6247 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6248 (read_partial_die): Likewise.
6249 (dwarf_attr_name): Likewise.
6251 2010-04-20 Chris Moller <cmoller@redhat.com>
6255 * cp-valprint.c (global): Adding new static array recursion
6257 (cp_print_value_fields, cp_print_static_field): Added new static
6258 array recursion detection code.
6260 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6262 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6263 general-purpose register set should be 68 instead of 144.
6264 (i386_linux_sse_regset_sections): Likewise.
6265 (i386_linux_avx_regset_sections): Likewise.
6267 2010-04-20 Stan Shebs <stan@codesourcery.com>
6268 Nathan Sidwell <nathan@codesourcery.com>
6270 * dwarf2loc.c (struct axs_var_loc): New struct.
6271 (dwarf2_tracepoint_var_loc): New function.
6272 (dwarf2_tracepoint_var_access): New function.
6273 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6275 (locexpr_describe_location_piece): New function.
6276 (locexpr_describe_location_1): New function.
6277 (locexpr_describe_location): Call it, update signature.
6278 (loclist_describe_location): Rewrite to loop over locations,
6280 * symtab.h (struct symbol_computed_ops): Add address to
6281 describe_location arguments, return void.
6282 * printcmd.c (address_info): Get context PC, pass to computed
6283 location description.
6284 * tracepoint.c (scope_info): Ditto.
6285 * ax-gdb.c (trace_kludge): Export.
6287 2010-04-20 Tom Tromey <tromey@redhat.com>
6289 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6290 (struct dwarf2_cie) <segment_size>: New field.
6291 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6292 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6294 (read_attribute_value): Handle DW_FORM_flag_present,
6295 DW_FORM_sec_offset, DW_FORM_exprloc.
6296 (dump_die_shallow): Likewise.
6297 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6298 (dwarf2_const_value): Handle DW_FORM_exprloc.
6299 (attr_form_is_block): Likewise.
6300 (struct line_header) <maximum_ops_per_instruction>: New field.
6301 (dwarf_decode_line_header): Set new field.
6302 (dwarf_decode_lines): Handle new field.
6304 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6306 * f-exp.y: Add new production to recognize the `logical*8' type.
6307 (LOGICAL_S8_KEYWORD): New token.
6308 * f-lang.c (enum f_primitive_types)
6309 <f_primitive_type_logical_s8>: New field.
6310 (f_language_arch_info): Handling `logical*8' type.
6311 (build_fortran_types): Building `logical*8' type.
6312 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6314 2010-04-19 Doug Evans <dje@google.com>
6316 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6317 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6318 (pipe_close): Ditto.
6320 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6322 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6324 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6326 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6327 type to void function.
6329 2010-04-19 Stan Shebs <stan@codesourcery.com>
6330 Vladimir Prus <vladimir@codesourcery.com>
6332 * tracepoint.c (tfind_1): Add missing newline, report exit from
6334 * target.c (update_current_target): Make default
6335 to_trace_find return -1.
6337 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6339 * objc-lang.c (find_methods): Move symname check up.
6341 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6343 * ada-lang.c (print_recreate_exception)
6344 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6345 not "catch unhandled".
6347 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6349 PR breakpoints/8554.
6351 Implement `save-breakpoints'.
6353 * breakpoint.c (save_cmdlist): New.
6354 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6356 (print_recreate_catch_fork): New.
6357 (catch_fork_breakpoint_ops): Install it.
6358 (print_recreate_catch_vfork): New.
6359 (catch_vfork_breakpoint_ops): Install it.
6360 (print_recreate_catch_syscall): New.
6361 (catch_syscall_breakpoint_ops): Install it.
6362 (print_recreate_catch_exec): New.
6363 (catch_exec_breakpoint_ops): Install it.
6364 (print_recreate_exception_catchpoint): New.
6365 (gnu_v3_exception_catchpoint_ops): Install it.
6366 (save_breakpoints): New, based on tracepoint_save_command, but
6367 handle all breakpoint types.
6368 (save_breakpoints_command): New.
6369 (tracepoint_save_command): Rename to...
6370 (save_tracepoints_command): ... this, and reimplement using
6372 (save_command): New.
6373 (_initialize_breakpoints): Install the "save" command prefix.
6374 Install the "save breakpoints" command. Make "save-tracepoints" a
6375 deprecated alias for "save tracepoints".
6376 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6377 * ada-lang.c (print_recreate_exception): New.
6378 (print_recreate_catch_exception): New.
6379 (catch_exception_breakpoint_ops): Install it.
6380 (print_recreate_catch_exception_unhandled): New.
6381 (catch_exception_unhandled_breakpoint_ops): Install it.
6382 (print_recreate_catch_assert): New.
6383 (catch_assert_breakpoint_ops): Install it.
6385 * NEWS: Mention the new `save breakpoints' command. Mention the
6386 new `save tracepoints' alias and that `save-tracepoints' is now
6389 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6393 * tui/tui-out.c: Include cli-out.h.
6394 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6395 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6396 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6397 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6399 (struct ui_out_data): Rename to...
6400 (struct tui_ui_out_data): ... this. Remove `stream' and
6401 `suppress_output' fields, and inherit cli_ui_out_data.
6402 (tui_out_data): New typedef.
6403 (tui_ui_out_impl): Don't initialize fields staticaly.
6404 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6405 (tui_begin, tui_end): Delete.
6406 (tui_field_int): Adjust to delegate most work to the base type.
6407 (tui_field_skip): Delete.
6408 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6409 delegate most work to the base type.
6410 (tui_spaces): Delete.
6411 (tui_text): Adjust to delegate most work to the base type.
6412 (tui_message): Delete.
6413 (tui_wrap_hint): Delete.
6414 (tui_flush): Delete.
6415 (out_field_fmt): Delete.
6416 (field_separator): Delete.
6417 (tui_out_new): Adjust to initialize the base type.
6418 (_initialize_tui_out): Initialize tui_ui_out_impl.
6419 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6421 (cli_out_data): Adjust.
6422 (cli_ui_out_impl): Make extern.
6423 (cli_table_header, cli_field_int, cli_field_skip): Use
6424 uo_field_string instead of cli_field_string.
6425 (cli_redirect): Adjust to use cli_out_data.
6426 (cli_out_data_ctor): New.
6427 (cli_out_new): Use it.
6428 * cli-out.h (struct ui_file): Remove forward declaration.
6429 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6430 (cli_ui_out_impl): Declare.
6431 (cli_out_data_ctor): Declare.
6432 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6433 (uo_field_string): No longer static.
6434 (ui_out_data): Change return type to void pointer.
6435 (ui_out_new): Change `data' parameter type to void pointer.
6436 * ui-out.h (struct ui_out_data): Don't forward declare.
6437 (ui_out_data): Change return type to void pointer.
6438 (ui_out_new): Change `data' parameter type to void pointer.
6439 (uo_field_string): Declare.
6441 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6443 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6444 instead of always false.
6446 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6449 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6452 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6454 * breakpoint.c (watchpoints_triggered): Use
6455 is_hardware_watchpoint.
6456 (watchpoints_triggered): Ditto.
6457 (bpstat_check_location): Use is_watchpoint and
6458 is_hardware_watchpoint.
6459 (bpstat_check_watchpoint): Use is_watchpoint and
6460 is_hardware_watchpoint.
6461 (bpstat_stop_status): Fix comment.
6462 (user_settable_breakpoint): Use is_watchpoint.
6463 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6464 (disable_watchpoints_before_interactive_call_start): Use
6466 (enable_watchpoints_after_interactive_call_stop): Use
6468 (clear_command): Use is_watchpoint.
6469 (do_enable_breakpoint): Use is_watchpoint.
6471 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6473 * solib-frv.c (enable_break1_done): Delete.
6474 (enable_break2): Do not check enable_break1_done. Move the
6475 enable_break2_done setting and call to
6476 remove_solib_event_breakpoints() to the end. Return without
6477 warning when the contents of _dl_debug_addr are 0.
6478 (enable_break): Do not set enable_break1_done.
6479 (frv_clear_solib): Likewise.
6481 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6483 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6484 instead of an error if no PLT entry is found. Return a
6485 potentially useful result.
6486 (m32c_m16c_pointer_to_address): Add code to search for function
6487 address when no .plt entry is found.
6489 2010-04-16 Stan Shebs <stan@codesourcery.com>
6491 * tracepoint.c (trace_variable_command): Run a cleanup.
6493 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6495 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6497 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6499 Support for Windows OS Thread Information Block.
6500 * NEWS: Document new feature.
6501 * remote.c (PACKET_qGetTIBAddr): New enum element.
6502 (remote_get_tib_address): New function.
6503 (init_remote_ops): Set to_get_tib_address field
6504 to remote_get_tib_address.
6505 (_initialize_remote): Add add_packet_config_cmd
6506 for PACKET_qGetTIBAddr.
6507 * target.c (update_current_target): Set default value for
6508 new to_get_tib_address field.
6509 * target.h (target_ops): New field to_get_tib_address.
6510 (target_get_tib_address): New macro.
6511 * windows-nat.c (thread_info): Add thread_local_base field.
6512 (windows_add_thread): Add tlb argument of type 'void *'.
6513 (fake_create_process): Adapt windows_add_thread call.
6514 (get_windows_debug_event): Idem.
6515 (windows_get_tib_address): New function.
6516 (init_windows_ops): Set to_get_tib_address field
6517 to remote_get_tib_address.
6518 (_initialize_windows_nat): Replace info_w32_cmdlist
6519 initialization by a call to init_w32_command_list.
6520 (info_w32_command, info_w32_cmdlist): Removed from here...
6521 to windows-tdep.c file.
6522 * windows-tdep.h (info_w32_cmdlist): Declare.
6523 (init_w32_command_list): New external function
6525 * windows-tdep.c: Add several headers.
6526 (info_w32_cmdlist): to here, made global.
6527 (thread_information_32): New struct.
6528 (thread_information_64): New struct.
6529 (TIB_NAME): New char array.
6530 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6531 (maint_display_all_tib): New static variable.
6532 (windows_get_tlb_type): New function.
6533 (tlb_value_read, tlb_value_write): New functions.
6534 (tlb_value_funcs): New static struct.
6535 (tlb_make_value): New function.
6536 (display_one_tib): New function.
6537 (display_tib): New function.
6538 (show_maint_show_all_tib):New function.
6539 (info_w32_command): Moved from windows-nat.c.
6540 (init_w32_command_list): New function.
6541 (_initialize_windows_tdep): New function.
6542 New "maint set/show show-all-tib" command
6543 New "$_tlb" internal variable.
6545 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6547 * tui/tui-regs.c (tui_display_register): Add comment about
6549 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6551 2010-04-15 Stan Shebs <stan@codesourcery.com>
6553 * frame.c: Include tracepoint.h.
6554 (get_current_frame): Allow a trace frame to be an alternate source
6555 of stack frame data.
6556 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6559 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6561 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6563 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6565 2010-04-15 Doug Evans <dje@google.com>
6567 * NEWS: Add entry for python program space support.
6568 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6569 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6570 (py-progspace.o): New rule.
6571 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6573 (find_pretty_printer_from_progspace): New function.
6574 (find_pretty_printer_from_gdb): New function.
6575 (find_pretty_printer): Rewrite.
6576 * python/py-progspace.c: New file.
6577 * python/python-internal.h (program_space): Add forward decl.
6578 (pspace_to_pspace_object, pspy_get_printers): Declare.
6579 (gdbpy_initialize_pspace): Declare.
6580 * python/python.c: #include "progspace.h".
6581 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6582 (_initialize_python): Call gdbpy_initialize_pspace.
6583 (GdbMethods): Add current_progspace, progspaces.
6585 Add -s option to source command.
6586 * NEWS: Document new option.
6587 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6588 Delete from_tty and cleanupp args. Split filep arg into file and
6589 full_pathp. New arg search_path.
6590 (source_script_from_stream): New function.
6591 (source_script_with_search): New function.
6592 (source_script): Rewrite.
6593 (source_command): Parse "-s" option.
6594 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6595 * python/python.c (source_python_script): Make file arg a const char *.
6596 Don't call fclose, leave for caller.
6597 * python/python.h (source_python_script): Update.
6599 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6600 Pedro Alves <pedro@codesourcery.com>
6602 Avoid rereading shared libraries that haven't changed.
6604 * solib.c (free_so_symbols): New function, from ...
6605 (free_so): ... here. Call it.
6606 (solib_read_symbols): Don't warn here if symbols have already been
6608 (solib_add): Warn here instead, if a pattern was specified.
6609 (reload_shared_libraries_1): New.
6610 (reload_shared_libraries): Rewrite to not fetch the library list.
6612 2010-04-14 Doug Evans <dje@google.com>
6614 * source.c (openp): Strip DOS drive letter if present before
6615 concatenating string to search path.
6617 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6619 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6620 * objfiles.c (gdb_bfd_close_or_warn): New.
6621 * corelow.c: Include objfiles.h
6622 (core_close): Use gdb_bfd_close_or_warn.
6623 * elfread.c (build_id_verify): Ditto.
6624 * exec.c (exec_close, exec_close_1): Ditto.
6626 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6627 Pedro Alves <pedro@codesourcery.com>
6629 Group errors for many missing shared libraries.
6631 * solist.h (struct so_list): Remove from_tty.
6632 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6633 (solib_map_sections): Take so_list argument. Return 0 if we
6634 failed to open a BFD. Add target sections here.
6635 (symbol_add_stub): Delete.
6636 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6637 not from_tty copied from the so_list. Don't warn a second time
6638 for a missing library.
6639 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6640 add to the section table here. Print out a single warning for all
6642 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6645 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6647 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6648 error/warning messages. Capitalize and use complete sentences.
6649 (blpy_block_syms_iternext): Likewise.
6650 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6651 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6652 (frame_info_to_frame_object, frapy_read_var)
6653 (gdbpy_frame_stop_reason_string): Likewise.
6654 * python/py-lazy-string.c (stpy_convert_to_value)
6655 (gdbpy_create_lazy_string_object): Likewise.
6656 * python/py-objfile.c (objfpy_set_printers): Likewise.
6657 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6658 * python/python.c (parameter_to_python): Likewise.
6659 * python/py-type.c (typy_range, typy_target): Likewise.
6660 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6661 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6664 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6668 * python/py-prettyprint.c (pretty_print_one_value): Test for
6670 (print_string_repr): Test for Py_None. Set flags accordingly.
6671 Return value depending on return type.
6672 (print_children): Take a value indicating whether data was printed
6673 before this function was called. Alter output accordingly.
6674 (apply_val_pretty_printer): Capture return value from
6675 print_string_repr and pass to print_children.
6677 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6680 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6681 register note sections.
6682 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6684 (i386_linux_init_abi): Install list of supported register note
6685 sections that matches the target description.
6687 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6689 * remote.c (remote_get_noisy_reply): Don't error out on empty
6691 (remote_start_remote): Update and merge tracepoints and trace
6692 state variables as long as the target supports tracepoints.
6693 (remote_trace_init): Fix prototype.
6694 (remote_download_trace_state_variable): Validate reply.
6695 (remote_trace_set_readonly_regions): Fix prototype.
6696 (remote_trace_start): Fix prototype. Check for empty reply.
6697 (remote_get_trace_status): Small cleanup.
6698 (remote_trace_stop): Fix prototype. Check for empty reply.
6699 (remote_trace_find): Check for empty reply.
6700 (remote_save_trace_data): Validate reply.
6701 (remote_set_disconnected_tracing): Check for empty reply, and
6703 (remote_set_circular_trace_buffer): Ditto.
6705 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6707 Suppress unused value warning during compilation.
6708 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6710 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6712 2010-04-12 Stan Shebs <stan@codesourcery.com>
6714 * tracepoint.c (tfile_xfer_partial): Check read result.
6716 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6718 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6719 * remote-sim.c (gdbsim_files_info): Likewise.
6721 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6723 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6724 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6726 (fetch_vfp_registers): New function to fetch VFP registers.
6727 (store_vfp_registers): New function to store VFP registers.
6728 (arm_linux_fetch_inferior_registers): Add support for VFP
6730 (arm_linux_store_inferior_registers): Likewise.
6731 (arm_linux_read_description): Likewise.
6732 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6735 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6737 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6739 (amd64_collect_xstateregset): Likewise.
6741 2010-04-09 Stan Shebs <stan@codesourcery.com>
6743 * tracepoint.c (trace_status_mi): Report frames created.
6745 * tracepoint.c (trace_dump_command): Include default-collect
6748 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6750 * symtab.c (find_function_start_sal): Never return SAL pointing
6751 before function start address, even if line info is missing.
6753 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6755 * NEWS: Mention tracepoints support.
6757 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6759 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6760 circular trace buffer statuses.
6762 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6764 * config/djgpp/fnchange.lst: Fix typo in translations for
6765 symbol-without-target_section.exp and symbol-without-target_section.c.
6767 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6769 * breakpoint.c (condition_command): Pass condition expression to
6770 set_breakpoint_condition stripped from breakpoint number.
6772 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6773 Thiago Jung Bauermann <bauerman@br.ibm.com>
6774 Tom Tromey <tromey@redhat.com>
6776 * breakpoint.c (condition_command): Simplify. Move condition
6778 (set_breakpoint_condition): ... here. New function.
6779 * breakpoint.h (set_breakpoint_condition): Declare.
6780 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6781 (SUBDIR_PYTHON_SRCS): Likewise.
6782 (py-breakpoint.o): New rule.
6783 * python/py-breakpoint.c: New file.
6784 * python/python-internal.h (gdbpy_breakpoints)
6785 (gdbpy_initialize_breakpoints): Declare.
6786 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6788 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6790 * regformats/regdat.sh: Include server.h. Don't include
6793 2010-04-08 Stan Shebs <stan@codesourcery.com>
6794 Pedro Alves <pedro@codesourcery.com>
6796 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6797 and circular_buffer.
6798 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6799 * tracepoint.c (trace_status_command): Display target's status for
6800 disconnected tracing and circular buffer.
6801 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6802 query for non-disconnected-tracing case, remove the stop_tracing
6804 (tfile_open): Clear disconnected and circular buffer status.
6805 (trace_save): Save disconnected and circular buffer status.
6806 (parse_trace_status): Parse disconnected and circular buffer status,
6807 also recognize disconnected as a stop reason.
6808 * remote.c (remote_set_disconnected_tracing): Only set
6809 QTDisconnected if the remote end supports disconnected tracing.
6810 Warn otherwise, if trying to enable disconnected tracing.
6811 * infcmd.c (detach_command): Update disconnect_tracing call.
6812 * cli/cli-cmds.c (quit_command): Ditto.
6814 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6816 * i387-tdep.c (i387_collect_xsave): Replace abort with
6819 2010-04-08 Stan Shebs <stan@codesourcery.com>
6821 * breakpoint.c (default_collect_info): New function.
6822 (breakpoints_info): Call it.
6823 (maintenance_info_breakpoints): Ditto.
6824 (tracepoints_info): Ditto.
6826 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6828 * i387-tdep.c (i387_collect_xsave): Re-indent.
6830 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6832 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6833 if HAVE_PTRACE_GETFPXREGS is defined.
6834 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6835 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6837 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6838 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6839 if .reg-xfp section doesn't exist.
6840 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6842 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6844 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6845 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6846 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6847 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6848 (i386_gdbarch_init): Update comments.
6849 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6851 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6853 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6855 * features/Makefile (i386/i386-mmx-expedite): New.
6856 (i386/i386-mmx-linux-expedite): Likewise.
6857 ($(outdir)/i386/i386-mmx.dat): Likewise.
6858 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6860 * features/i386/i386-mmx-linux.c: New.
6861 * features/i386/i386-mmx-linux.xml: Likewise.
6862 * features/i386/i386-mmx.c: Likewise.
6863 * features/i386/i386-mmx.xml: Likewise.
6864 * regformats/i386/i386-mmx-linux.dat: Likewise.
6865 * regformats/i386/i386-mmx.dat: Likewise.
6867 * features/Makefile (WHICH): Add i386/i386-mmx and
6868 i386/i386-mmx-linux.
6870 2010-04-08 Doug Evans <dje@google.com>
6872 * source.c (openp): Skip $cdir in PATH.
6874 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6877 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6879 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6880 address and a zero length.
6882 2010-04-08 Hui Zhu <teawater@gmail.com>
6884 * i386-tdep.c (i386_process_record): Add support for insn
6887 2010-04-07 Doug Evans <dje@google.com>
6889 * python/python.c (source_python_script): Use ensure_python_env
6890 to prepare environment for script.
6892 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6894 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6895 <sys/uio.h> and "i386-xstate.h".
6896 (PTRACE_GETREGSET): New.
6897 (PTRACE_SETREGSET): Likewise.
6898 (have_ptrace_getregset): Likewise.
6899 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6901 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6903 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6904 (amd64_linux_store_inferior_registers): Likewise.
6905 (amd64_linux_read_description): Check and enable AVX target
6908 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6909 and "features/i386/amd64-avx-linux.c".
6910 (amd64_linux_regset_sections): New.
6911 (amd64_linux_core_read_description): Check and enable AVX
6913 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6914 set_gdbarch_core_regset_sections.
6915 (_initialize_amd64_linux_tdep): Call
6916 initialize_tdesc_amd64_avx_linux.
6918 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6919 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6920 (tdesc_amd64_avx_linux): New.
6921 (amd64_linux_update_xstateregset): Likewise.
6923 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6924 (amd64_ymm_names): New.
6925 (amd64_ymmh_names): Likewise.
6926 (amd64_register_name): Likewise.
6927 (amd64_supply_xstateregset): Likewise.
6928 (amd64_collect_xstateregset): Likewise.
6929 (amd64_supply_xsave): Likewise.
6930 (amd64_collect_xsave): Likewise.
6931 (AMD64_NUM_REGS): Removed.
6932 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6933 %xmmN if AVX is available.
6934 (amd64_pseudo_register_name): Support pseudo YMM registers.
6935 (amd64_regset_from_core_section): Support .reg-xstate section.
6936 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6937 and ymm0h_regnum. Call set_gdbarch_register_name.
6938 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6940 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6941 AMD64_YMM15H_REGNUM.
6942 (AMD64_NUM_REGS): New.
6943 (amd64_supply_xsave): Likewise.
6944 (amd64_collect_xsave): Likewise.
6945 (amd64_register_name): Removed.
6946 (amd64_register_type): Likewise.
6948 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6950 * i387-tdep.c: Include "i386-xstate.h".
6951 (XSAVE_XSTATE_BV_ADDR): New.
6952 (xsave_avxh_offset): Likewise.
6953 (XSAVE_AVXH_ADDR): Likewise.
6954 (i387_supply_xsave): Likewise.
6955 (i387_collect_xsave): Likewise.
6957 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6958 (I387_YMM0H_REGNUM): Likewise.
6959 (I387_YMMENDH_REGNUM): Likewise.
6960 (i387_supply_xsave): Likewise.
6961 (i387_collect_xsave): Likewise.
6963 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6965 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6966 <sys/uio.h> and "i386-xstate.h".
6967 (PTRACE_GETREGSET): New.
6968 (PTRACE_SETREGSET): Likewise.
6969 (fetch_xstateregs): Likewise.
6970 (store_xstateregs): Likewise.
6971 (GETXSTATEREGS_SUPPLIES): Likewise.
6972 (regmap): Include 8 upper YMM registers.
6973 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6975 (i386_linux_store_inferior_registers): Likewise.
6976 (i386_linux_read_description): Check and enable AVX target
6979 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6980 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6981 (i386_linux_regset_sections): Add ".reg-xstate".
6982 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6983 (i386_linux_core_read_xcr0): New.
6984 (i386_linux_core_read_description): Check and enable AVX target
6986 (i386_linux_init_abi): Set xsave_xcr0_offset.
6987 (_initialize_i386_linux_tdep): Call
6988 initialize_tdesc_i386_avx_linux.
6990 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6991 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6992 (i386_linux_core_read_xcr0): New.
6993 (tdesc_i386_avx_linux): Likewise.
6994 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6996 * i386-tdep.c: Include "i386-xstate.h" and
6997 "features/i386/i386-avx.c".
6998 (i386_ymm_names): New.
6999 (i386_ymmh_names): Likewise.
7000 (i386_ymmh_regnum_p): Likewise.
7001 (i386_ymm_regnum_p): Likewise.
7002 (i386_xmm_regnum_p): Likewise.
7003 (i386_register_name): Likewise.
7004 (i386_ymm_type): Likewise.
7005 (i386_supply_xstateregset): Likewise.
7006 (i386_collect_xstateregset): Likewise.
7007 (i386_sse_regnum_p): Removed.
7008 (i386_pseudo_register_name): Support pseudo YMM registers.
7009 (i386_pseudo_register_type): Likewise.
7010 (i386_pseudo_register_read): Likewise.
7011 (i386_pseudo_register_write): Likewise.
7012 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7013 %xmmN if AVX is available.
7014 (i386_regset_from_core_section): Support .reg-xstate section.
7015 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7016 (i386_process_record): Replace i386_sse_regnum_p with
7018 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7019 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7020 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7021 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7022 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7023 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7025 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7027 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7028 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7030 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7031 (I386_AVX_NUM_REGS): New.
7032 (i386_xmm_regnum_p): Likewise.
7033 (i386_ymm_regnum_p): Likewise.
7034 (i386_ymmh_regnum_p): Likewise.
7036 * common/i386-xstate.h: New.
7038 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7040 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7042 * features/Makefile (WHICH): Add i386/i386-avx,
7043 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7044 (i386/i386-avx-expedite): New.
7045 (i386/i386-avx-linux-expedite): Likewise.
7046 (i386/x86-64-avx-expedite):Likewise.
7047 (i386/x86-64-avx-linux-expedite): Likewise.
7048 ($(outdir)/i386/i386-avx.dat): New dependency.
7049 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7050 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7051 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7053 * features/i386/32bit-avx.xml: New.
7054 * features/i386/64bit-avx.xml: Likewise.
7055 * features/i386/i386-avx-linux.c: Likewise.
7056 * features/i386/i386-avx-linux.xml: Likewise.
7057 * features/i386/i386-avx.c: Likewise.
7058 * features/i386/i386-avx.xml: Likewise.
7059 * features/i386/x86-64-avx-linux.c: Likewise.
7060 * features/i386/x86-64-avx-linux.xml: Likewise.
7061 * features/i386/x86-64-avx.c: Likewise.
7062 * features/i386/x86-64-avx.xml: Likewise.
7063 * regformats/i386/i386-avx-linux.dat: Likewise.
7064 * regformats/i386/i386-avx.dat: Likewise.
7065 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7066 * regformats/i386/x86-64-avx.dat: Likewise.
7068 2010-04-07 Doug Evans <dje@google.com>
7070 * top.c (source_file_name): Make const char *.
7071 * top.h (source_file_name): Update.
7072 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7074 (script_from_file): Change `file' arg to const char *.
7075 * cli/cli-script.h (script_from_file): Update.
7077 2010-04-06 Doug Evans <dje@google.com>
7079 * cli/cli-cmds.c (source_command): Run cleanups.
7081 2010-04-06 Stan Shebs <stan@codesourcery.com>
7083 * defs.h (char_ptr): Move typedef here from...
7084 * ada-lang.c (char_ptr): Remove.
7085 * charset.c (char_ptr): Remove.
7086 * tracepoint.h (struct uploaded_string): Remove.
7087 (struct uploaded_tp): Use vectors for string arrays.
7088 * tracepoint.c (trace_save): Use vectors of actions.
7089 (parse_tracepoint_definition): Ditto.
7090 (get_uploaded_tp): Clear vectors.
7091 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7092 (next_cmd): Change to an int.
7093 (read_next_cmd): Use vector of command strings.
7095 2010-04-06 Doug Evans <dje@google.com>
7097 * top.h (source_script, cd_command): Delete.
7098 * main.c: #include "cli/cli-cmds.h"
7100 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7102 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7103 type in bytes, not bits.
7105 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7107 * stabsread.c (define_symbol): Add support for char
7108 and string constants.
7110 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7112 Remove remaining "%ll" uses.
7113 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7115 * rs6000-nat.c (rs6000_ptrace64): Idem.
7116 * solib-pa64.c (pa64_current_sos): Idem.
7117 * solib-spu.c (spu_current_sos): Idem.
7118 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7120 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7122 * sh64-tdep.c (sh64_show_media_regs): Idem.
7124 2010-04-05 Stan Shebs <stan@codesourcery.com>
7126 * tracepoint.c: Include gdbcore.h.
7127 (tfile_xfer_partial): Return partial results, also try reading
7129 (tfile_has_all_memory): New function.
7130 (init_tfile_ops): Use it.
7132 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7135 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7136 the changes in data-directory.
7137 (init_sysinfo): Reload the syscall XML file if the data-directory
7140 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7143 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7145 2010-04-04 Stan Shebs <stan@codesourcery.com>
7146 Nathan Sidwell <nathan@codesourcery.com>
7148 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7149 breakpoints printed.
7150 (is_hardware_watchpoint): Make argument const.
7151 (is_watchpoint): Ditto.
7152 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7154 (breakpoints_info): Pass NULL to breakpoint_1.
7155 (maintenance_info_breakpoints): Ditto.
7156 (watchpoints_info): New function.
7157 (tracepoints_info): Use breakpoint_1 filter.
7158 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7159 (_initialize_breakpoint): Make "info watchpoints" its own command.
7160 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7161 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7163 2010-04-04 Stan Shebs <stan@codesourcery.com>
7165 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7167 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7169 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7170 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7172 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7174 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7175 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7177 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7179 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7182 2010-04-02 Hui Zhu <teawater@gmail.com>
7184 * i386-tdep.c (OT_DQUAD): New enum.
7185 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7186 SSE3, SSSE3 and SSE4.
7188 2010-04-02 Hui Zhu <teawater@gmail.com>
7190 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7193 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7195 * tracepoint.c (trace_dump_actions): New, factored out from
7196 trace_dump_command, and adjusted to recurse into while-stepping's
7198 (trace_dump_command): Use it.
7200 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7202 * breakpoint.h (struct counted_command_line): Moved definition to
7203 breakpoint.c, and forward declare.
7204 (breakpoint_commands): Declare.
7205 * breakpoint.c (struct counted_command_line): Moved here.
7206 (breakpoint_commands): New.
7207 * tracepoint.c (encode_actions): Use breakpoint_commands.
7208 * remote.c (remote_download_tracepoint): Ditto.
7210 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7212 * remote.c (remote_parse_stop_reply): Use hex_string instead
7213 of phex_nz for error.
7215 2010-04-01 Stan Shebs <stan@codesourcery.com>
7216 Nathan Sidwell <nathan@codesourcery.com>
7218 * tracepoint.h (enum actionline_type): Remove.
7219 (validate_actionline): Change return to void.
7220 * tracepoint.c (report_agent_reqs_errors): New function.
7221 (validate_actionline): Call it, change return to void, report errors
7223 (collect_symbol): Call report_agent_reqs_errors.
7224 (encode_actions_1): Ditto.
7225 (encode_actions): Don't expect a result from validate_actionline.
7227 2010-04-01 Stan Shebs <stan@codesourcery.com>
7229 * tracepoint.c (trace_start_command): Confirm if trace is running.
7230 (trace_stop_command): Error if trace not running.
7232 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7234 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7235 (AMD64_NUM_LOWER_BYTE_REGS): New.
7236 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7237 (amd64_pseudo_register_write): Likewise.
7238 (amd64_init_abi): Set num_byte_regs to 20.
7240 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7242 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7243 (prev_breakpoint_count): New.
7244 (set_breakpoint_count): Adjust.
7245 (rbreak_start_breakpoint_count): New.
7246 (start_rbreak_breakpoints): Adjust.
7247 (end_rbreak_breakpoints): Adjust.
7248 (struct commands_info) <arg>: New field.
7249 (do_map_commands_command): Tweak output to include breakpoint spec
7251 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7252 ARG was empty on entry. Set INFO's arg.
7253 (create_breakpoint): Adjust.
7255 * NEWS: Clarify `commands' changes.
7257 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7259 * tracepoint.c: Include stack.h.
7260 (struct add_local_symbols_data): New.
7261 (do_collect_symbol): New.
7262 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7263 iterate_over_block_local_vars.
7264 * stack.c (print_block_frame_locals): Rewrite as ...
7265 (iterate_over_block_locals): ... this. Take a callback function
7266 pointer and generic data pointer, and call that instead of
7267 print_variable_and_value.
7268 (struct print_variable_and_value_data): New.
7269 (do_print_variable_and_value): New.
7270 (iterate_over_block_local_vars): New, abstracted out from
7271 print_frame_local_vars.
7272 (print_frame_local_vars): Rewrite using
7273 iterate_over_block_local_vars.
7274 (iterate_over_block_arg_vars): New, abstracted out from
7275 print_frame_arg_vars.
7276 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7277 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7278 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7280 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7282 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7283 instructions. Use the PC+4 if the base of the TBB or TBH is the
7286 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7288 Fix crash on reading wrong function declaration DWARF.
7289 * dwarf2read.c (read_subroutine_type): New variable void_type.
7290 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7291 more close to their use.
7293 2010-03-31 Stan Shebs <stan@codesourcery.com>
7295 * breakpoint.c (tracepoint_save_command): Include variables,
7296 conditionals, tracepoint types, and default-collect.
7297 * tracepoint.c (save_trace_state_variables): New function.
7298 * tracepoint.h (save_trace_state_variables): Declare it.
7300 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7302 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7304 2010-03-30 Keith Seitz <keiths@redhat.com>
7306 * c-typeprint.c (c_type_print_args): Don't print "void"
7307 for java, regardless of whether it is TYPE_PROTOTYPED.
7308 Use the passed-in language instead of current_language.
7309 (c_type_print_varspec_suffix): Use current_language instead
7310 of assuming language_c.
7311 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7312 any return type specifier from the physname.
7314 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7316 * tui/tui-interp.c (tui_is_toplevel): New.
7318 (tui_allowed_p): New.
7319 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7321 * tui/tui.h (tui_allowed_p): Declare.
7323 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7325 * serial.h: Include winsock2.h before windows.h.
7327 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7329 * NEWS: Mention xmlRegisters= in qSupported packet.
7331 * i386-tdep.c: Include "remote.h".
7332 (_initialize_i386_tdep): Call register_remote_support_xml.
7334 * remote.c (remote_support_xml): New.
7335 (register_remote_support_xml): Likewise.
7336 (remote_query_supported_append): Likewise.
7337 (remote_query_supported): Support remote_support_xml.
7339 * remote.h (register_remote_support_xml): New.
7341 2010-03-29 Stan Shebs <stan@codesourcery.com>
7343 * tracepoint.c (trace_find_line_command): Remove dead code.
7345 * tracepoint.h (struct uploaded_string): New struct.
7346 (struct uploaded_tp): New fields for source strings.
7347 * breakpoint.c (this_utp, next_cmd): New globals.
7348 (read_uploaded_action): New function.
7349 (create_tracepoint_from_upload): Fill in more parts
7351 * tracepoint.c (encode_source_string): New function.
7352 (trace_save): Write out source strings, fix error checks.
7353 (parse_tracepoint_definition): Add source string parsing.
7354 * remote.c (PACKET_TracepointSource): New packet type.
7355 (remote_download_command_source): New function.
7356 (remote_download_tracepoint): Download source pieces also.
7357 (_initialize_remote): Add packet config command.
7359 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7362 * tracepoint.c (start_tracing): Check tracepoints before sending
7363 commands to target, don't start if all tracepoints disabled.
7365 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7367 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7369 2010-03-26 Stan Shebs <stan@codesourcery.com>
7371 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7373 2010-03-26 Tom Tromey <tromey@redhat.com>
7375 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7377 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7379 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7380 (skip_prologue_sal): Remove local definition.
7381 (resolve_sal_pc): Remove now unnecessary code.
7382 * linespec.c (minsym_found): Call skip_prologue_sal.
7383 * symtab.c (find_function_start_pc): Remove.
7384 (find_function_start_sal): Extract prologue skipping into ...
7385 (skip_prologue_sal): ... this new function. Handle code both
7386 with and without debug info. Respect SAL's explicit_pc and
7387 explicit_line flags. Inline old find_function_start_pc.
7388 * symtab.h (find_function_start_pc): Remove.
7389 (skip_prologue_sal): Add prototype.
7391 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7393 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7394 for DW_TAG_imported_module children.
7396 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7398 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7399 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7400 * completer.c (add_struct_fields): Fix inverted logic.
7402 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7404 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7406 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7408 * tracepoint.c (current_trace_status): Don't make sure error_desc
7410 (parse_trace_status): Release a previous error_desc string, and
7411 set it to NULL by default. If stop reason is tracepoint_error,
7412 make sure error_desc is not left NULL.
7414 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7416 * tracepoint.c (trace_save): Remove X from tracepoint error
7419 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7421 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7422 the terror description. Don't expect an X prefix.
7424 2010-03-25 Stan Shebs <stan@codesourcery.com>
7426 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7427 (struct trace_status): New field error_desc.
7428 * tracepoint.c (stop_reason_names): Add terror.
7429 (current_trace_status): Ensure non-NULL error description.
7430 (trace_status_command): Add error report.
7431 (trace_status_mi): Ditto.
7432 (trace_save): Add special case for error description.
7433 (parse_trace_status): Add case for errors.
7435 2010-03-25 Keith Seitz <keiths@redhat.com>
7437 * dwarf2read.c (read_subroutine_type): If the compilation unit
7438 language is Java, mark any formal parameter named "this" as
7439 artificial (GCC/43521).
7440 (dwarf2_name): Add special handling for Java constructors.
7442 2010-03-25 Tom Tromey <tromey@redhat.com>
7444 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7445 * infrun.c (handle_inferior_event): Change initialization of
7447 (handle_inferior_event): Change assignment to stop_stack_dummy.
7448 (normal_stop): Update use of stop_stack_dummy.
7449 (struct inferior_status) <stop_stack_dummy>: Change type.
7450 * inferior.h (stop_stack_dummy): Update.
7451 * infcmd.c (stop_stack_dummy): Change type.
7452 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7454 (call_function_by_hand): Call set_std_terminate_breakpoint.
7455 Rewrite std::terminate handling.
7456 * breakpoint.h (enum bptype) <bp_std_terminate,
7457 bp_std_terminate_master>: New.
7458 (enum stop_stack_kind): New.
7459 (struct bpstat_what) <call_dummy>: Change type.
7460 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7462 * breakpoint.c (create_std_terminate_master_breakpoint): New
7464 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7465 Call create_std_terminate_master_breakpoint.
7466 (print_it_typical): Handle new breakpoint kinds.
7467 (bpstat_stop_status): Handle bp_std_terminate_master.
7468 (bpstat_what): Correctly set call_dummy field. Handle
7469 bp_std_terminate_master and bp_std_terminate.
7470 (print_one_breakpoint_location): Update.
7471 (allocate_bp_location): Update.
7472 (set_std_terminate_breakpoint): New function.
7473 (delete_std_terminate_breakpoint): Likewise.
7474 (create_thread_event_breakpoint): Update.
7475 (delete_command): Update.
7476 (breakpoint_re_set_one): Update.
7477 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7479 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * symfile.c (build_section_addr_info_from_bfd): New.
7482 (build_section_addr_info_from_objfile): Base it on
7483 build_section_addr_info_from_bfd.
7484 (addrs_section_compar, addrs_section_sort): New.
7485 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7486 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7487 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7489 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7491 * elfread.c (find_separate_debug_file_by_buildid):
7492 Remove unused local variable.
7494 2010-03-24 Tom Tromey <tromey@redhat.com>
7496 PR breakpoints/9352:
7497 * NEWS: Mention changes to `commands' and `rbreak'.
7498 * symtab.c (do_end_rbreak_breakpoints): New function.
7499 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7500 end_rbreak_breakpoints.
7501 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7502 (set_breakpoint_count): Likewise. Clear last_was_multi.
7503 (multi_start, multi_end, last_was_multi): New globals.
7504 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7506 (struct commands_info): New
7507 (do_map_commands_command): New function.
7508 (commands_command_1): New function.
7509 (commands_command): Use it.
7510 (commands_from_control_command): Likewise.
7511 (do_delete_breakpoint): New function.
7512 (delete_command): Use it.
7513 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7514 (do_map_disable_breakpoint): New function.
7515 (disable_command): Use it.
7516 (do_map_enable_breakpoint): New function.
7517 (enable_command): Use it.
7518 (enable_once_breakpoint): Add argument.
7519 (enable_once_command): Update.
7520 (enable_delete_breakpoint): Add argument.
7521 (enable_delete_command): Update.
7522 (break_command_really): Set last_was_multi when needed.
7523 (check_tracepoint_command): Fix formatting.
7524 (validate_commands_for_breakpoint): New function.
7525 (breakpoint_set_commands): Use it.
7526 (tracepoint_save_command): Update.
7527 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7530 2010-03-24 Tom Tromey <tromey@redhat.com>
7532 * breakpoint.h (struct counted_command_line): New struct.
7533 (struct breakpoint) <commands>: Change type.
7534 (struct bpstats) <commands>: Change type.
7535 <commands_left>: New field.
7536 * breakpoint.c (alloc_counted_command_line): New function.
7537 (incref_counted_command_line): Likewise.
7538 (decref_counted_command_line): Likewise.
7539 (do_cleanup_counted_command_line): Likewise.
7540 (make_cleanup_decref_counted_command_line): Likewise.
7541 (breakpoint_set_commands): Use decref_counted_command_line and
7542 alloc_counted_command_line.
7543 (commands_command): Don't error if breakpoint commands are
7545 (commands_from_control_command): Likewise.
7546 (bpstat_free): Update.
7547 (bpstat_copy): Likewise.
7548 (bpstat_clear_actions): Likewise.
7549 (bpstat_do_actions_1): Likewise.
7550 (bpstat_stop_status): Likewise.
7551 (print_one_breakpoint_location): Likewise.
7552 (delete_breakpoint): Likewise.
7553 (bpstat_alloc): Initialize new field.
7554 (tracepoint_save_command): Update.
7555 * tracepoint.c (encode_actions): Update.
7556 (trace_dump_command): Update.
7558 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7560 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7561 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7562 (read_structure_type): For RealView, set TYPE_STUB on structures with
7563 no byte size and no children.
7564 (read_subroutine_type): Mark functions as prototyped by default.
7565 * symtab.c (producer_is_realview): New function.
7566 * symtab.h (expand_line_sal): Fix declaration formatting.
7567 (producer_is_realview): Declare.
7569 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7571 * arm-tdep.c (skip_prologue_function): New function.
7572 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7573 (thumb_analyze_prologue): Document return value. Recognize more
7574 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7576 (arm_skip_prologue): Remove call dummy check. Check the prologue
7577 for non-GNU compilers.
7578 (arm_instruction_changes_pc): New function.
7579 (arm_analyze_prologue): New function, broken out from
7580 arm_scan_prologue. Recognize more ARM instructions and skippable
7581 calls. Update comments. Handle NULL cache. Return the address
7582 of the first unrecognized instruction. Do not skip past other
7583 instructions which change control flow. Add debug output.
7584 (arm_scan_prologue): Use arm_analyze_prologue.
7585 (ARM_PC_32): Delete.
7586 (shifted_reg_val): Simplify ARM_PC_32 check.
7588 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7590 * tracepoint.c (tvariables_info_1): Actually compute
7591 the number of rows in the result.
7593 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7595 * remote.c (crc32): Constify `buf' parameter.
7596 (remote_verify_memory): New, abstracted out from...
7597 (compare_sections_command): ... this. Remove hardcoded target
7599 (init_remote_ops): Install remote_verify_memory.
7600 * target.c (target_verify_memory): New.
7601 * target.h (struct target_ops) <to_verify_memory>: New field.
7602 (target_verify_memory): Declare.
7604 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7606 Implement -trace-save.
7608 * mi-cmds.h (mi_cmds_trace_save): Declare.
7609 * mi-cmds.c (mi_cmds): Register -trace-save.
7610 * mi/mi-main.c (mi_cmd_trace_save): New.
7611 * remote.c (remote_save_trace_data): Take const parameter.
7612 * target.h (struct target_ops::to_save_trace_data): Take
7614 * target.c (update_current_target): Adjust to the above.
7615 * tracepoint.c (trave_save): New, extracted from
7616 (trace_save_command): ...this.
7617 (tfile_trace_find): Remove message that is unnecessary now
7618 that 'tfind' reports found frame.
7619 * tracepoint.h (trace_save): Declare.
7621 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7623 Implement -trace-find.
7625 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7626 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7627 * mi/mi-main.c (mi_cmd_trace_find): New.
7628 * target.h (struct target_ops): Document to_trace_find.
7629 * tracepoint.h (tfind_1): Declare.
7630 * tracepoint.c (finish_tfind_command): Rename to...
7632 * remote.c (remote_trace_find): Return -1 if target say
7633 there's no frame. Improve error diagnostics.
7635 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7637 -trace-define-variable and -trace-list-variables.
7639 * tracepoint.c (create_trace_state_variable): Make
7640 private copy of name, as opposed to assuming the
7641 pointer lives forever.
7642 (tvariables_info_1): New.
7643 (tvariables_info): Use the above.
7644 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7646 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7647 and -trace-list-variables.
7648 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7649 (mi_cmd_trace_list_variables): New.
7650 * mi/mi-main.c (mi_cmd_trace_define_variable)
7651 (mi_cmd_trace_list_variables): New.
7653 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7655 Implement -break-passcount.
7657 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7658 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7659 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7661 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7663 -trace-start/-trace-end/-trace-status.
7665 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7667 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7668 (mi_cmd_trace_stop): Declare.
7669 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7670 (mi_cmd_trace_stop): New.
7671 * tracepoint.c (start_tracing): New, extracted from...
7672 (trace_start_command): ...this.
7673 (trace_status_mi): New.
7674 * tracepoint.h (struct trace_status): Document
7675 stopping_tracepoint.
7676 (start_tracing, stop_tracing, trace_status_mi): Declare.
7678 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7680 Implement creating tracepoints with -break-insert.
7682 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7683 to mean that tracepoint should be created.
7685 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7687 * breakpoint.c (check_no_tracepoint_commands): Use
7688 current spelling of 'teval'.
7690 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7692 Unify actions and commands
7694 * defs.h (read_command_lines, read_command_lines_1): New
7695 parameters validator and closure.
7696 * tracepoint.h (struct action_line): Remove.
7697 * breakpoint.h (struct breakpoint): Remove the 'actions'
7699 * defs.h (enum command_control_type): New value
7700 while_stepping_control.
7701 (struct command_line): Add comments.
7702 * breakpoint.c (breakoint_is_tracepoint): New.
7703 (breakpoint_set_commands): For tracepoints,
7704 verify the commands are permissible.
7705 (check_tracepoint_commands): New.
7706 (commands_command): Require that each new line is validated using
7707 check_tracepoint_command, if we set commands for a tracepoint.
7708 (create_tracepoint_from_upload): Likewise.
7709 (print_one_breakpoint_location): Remove the code to print
7710 actions specifically.
7711 (tracepoint_save_command): Relay to print_command_lines.
7712 * cli/cli-script.c (process_next_line): New parameters validator
7713 and closure. Handle 'while-stepping'. Call validator if not null.
7714 (read_command_lines, read_command_lines1): Likewise.
7715 (recurse_read_control_structure): New parameters validator and
7716 closure. Handle while_stepping_control.
7717 (print_command_lines): Handle while-stepping.
7718 (get_command_line, define_command, document_command): Adjust.
7719 * remote.c (remote_download_tracepoint): Adjust.
7720 * tracepoint.c (make_cleanup_free_actions, read_actions)
7721 (free_actions, do_free_actions_cleanup): Remove.
7722 (trace_actions_command): Use read_command_lines.
7723 (validate_actionline): Use error in one place.
7724 (encode_actions_1): New, extracted from...
7725 (encode_actions): ...this. Also use cleanups for exception
7727 (trace_dump_command): Adjust.
7728 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7731 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7733 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7735 2010-03-22 Stan Shebs <stan@codesourcery.com>
7737 * value.c (value_static_field): Be lazy about the field's value.
7739 2010-03-22 Reid Kleckner <reid@kleckner.net>
7742 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7744 (disable_breakpoints_in_shlibs): Likewise.
7746 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7748 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7749 GCC 4.1 debug info generation (GCC PR c++/28460).
7750 (determine_prefix): Likewise.
7752 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7754 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7756 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7758 2010-03-19 Stan Shebs <stan@codesourcery.com>
7760 * ax-gdb.c (gen_fetch): Handle bool.
7761 (gen_usual_unary): Ditto.
7763 (gen_equal): New function.
7764 (gen_less): New function.
7765 (gen_expr_binop_rest): Call them, also return integer type from
7769 2010-03-19 Tom Tromey <tromey@redhat.com>
7771 * jv-lang.c (jv_dynamics_objfile_data_key)
7772 (jv_type_objfile_data_key): New globals.
7773 (class_symtab): Move earlier.
7774 (jv_per_objfile_free): New function.
7775 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7777 Remove ancient #if 1.
7778 (add_class_symbol): Remove redundant declaration.
7779 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7780 (java_link_class_type): Mark as static. Update.
7781 (jv_clear_object_type): New function.
7782 (set_java_object_type): Likewise.
7783 (get_java_object_type): Use set_java_object_type.
7784 (is_object_type): Likewise.
7785 (_initialize_java_language): Register new objfile keys.
7786 (get_java_class_symtab): Add 'gdbarch' parameter.
7787 (add_class_symtab_symbol): Update.
7788 (type_from_class): Update.
7790 2010-03-19 Stan Shebs <stan@codesourcery.com>
7792 * ax-general.c (ax_const_l): Fix a sizing bug.
7794 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7798 2010-03-18 Stan Shebs <stan@codesourcery.com>
7799 Pedro Alves <pedro@codesourcery.com>
7801 * target.h (struct target_ops): New method
7802 to_set_circular_trace_buffer.
7803 (target_set_circular_trace_buffer): New macro.
7804 * target.c (update_current_target): Add
7805 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7807 * remote.c (remote_set_circular_trace_buffer): New function.
7808 (init_remote_ops): Add it to vector.
7809 * tracepoint.h (struct trace_status): New field traceframes_created,
7810 change buffer_size and buffer_free to int.
7811 * tracepoint.c (circular_trace_buffer): New global.
7812 (start_tracing): Send values of disconnected tracing and circular
7813 trace buffer settings.
7814 (set_circular_trace_buffer): New function.
7815 (parse_trace_state): Handle total space and frames created.
7816 (trace_status_command): Display total space and total frames
7818 (trace_save): Write out new status values.
7819 (parse_trace_status): Set traceframe_count, traceframes_created,
7820 buffer_free and buffer_size to -1 by default.
7821 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7822 * NEWS: Mention the circular trace buffer option.
7824 2010-03-18 Tom Tromey <tromey@redhat.com>
7826 * infcmd.c (finish_command_continuation): Wrap print_return_value
7829 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7831 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7832 DIE has a name before creating the associated partial symbol.
7833 (read_func_scope): Emit a complaint if the subprogram does not
7834 have a name or when we can't extract the subprogram PC bounds.
7836 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7838 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7839 instead of selected frame architecture.
7841 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7843 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7844 a valid selected thread, and that it is not running.
7845 (advance_command): Ditto.
7846 (finish_command): Ditto.
7848 2010-03-17 Stan Shebs <stan@codesourcery.com>
7850 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7852 * infcall.c: Include tracepoint.h.
7853 (call_function_by_hand): Disallow calls in tfind mode.
7854 * infcmd.c: Include tracepoint.h.
7855 (ensure_not_tfind_mode): New function.
7856 (continue_1): Call it.
7858 (jump_command): Ditto.
7859 (signal_command): Ditto.
7860 (advance_command): Ditto.
7861 (until_command): Ditto.
7862 (finish_command): Ditto.
7863 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7865 * ax-gdb.h (struct axs_value): New field optimized_out.
7866 (gen_trace_for_var): Add gdbarch argument.
7867 * ax-gdb.c (gen_trace_static_fields): New function.
7868 (gen_traced_pop): Call it, add gdbarch argument.
7869 (gen_trace_for_expr): Update call to it.
7870 (gen_trace_for_var): Ditto, and report optimized-out variables.
7871 (gen_struct_ref_recursive): Check for optimized-out value.
7872 (gen_struct_elt_for_reference): Ditto.
7873 (gen_static_field): Pass gdbarch instead of expression, assume
7874 optimization if field not found.
7875 (gen_var_ref): Set the optimized_out flag.
7876 (gen_expr): Error on optimized-out variable.
7877 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7878 expressions, skip optimized-out variables with computed locations.
7879 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7880 erroring out if location expression missing.
7881 (loclist_tracepoint_var_ref): Don't error out here.
7883 2010-03-17 Tom Tromey <tromey@redhat.com>
7885 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7886 DWARF data is available.
7888 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7890 * symfile.c (generic_load): Reset breakpoints after loading.
7892 2010-03-17 Tom Tromey <tromey@redhat.com>
7894 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7896 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7898 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7899 create_breakpoint call, adjust the parameters.
7901 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7902 Chandru <chandru@in.ibm.com>
7904 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7905 * valarith.c (value_subscripted_rvalue): Suppress error if
7906 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7908 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7910 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7912 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7914 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7915 before doing the associated thread switch.
7917 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7919 * MAINTAINERS: Update my email address.
7921 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7923 Simplify MI breakpoint setting.
7925 * breakpoint.c (break_command_really): Make nonstatic and
7927 (create_breakpoint): ...this. Rename prior function by this name
7929 (create_breakpoint_sal): ...this.
7930 (create_breakpoints): Rename to...
7931 (create_breakpoints_sal): ...this.
7932 (set_breakpoint): Remove.
7933 * breakpoint.h: Adjust to above changes.
7934 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7936 2010-03-15 Stan Shebs <stan@codesourcery.com>
7938 * ax-gdb.c: Include cp-support.h.
7939 (find_field): Remove.
7940 (gen_primitive_field): New function.
7941 (gen_struct_ref_recursive): New function.
7942 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7944 (gen_static_field): New function.
7945 (gen_struct_elt_for_reference): New.
7946 (gen_namespace_elt): New.
7947 (gen_maybe_namespace_elt): New.
7948 (gen_aggregate_elt_ref): New.
7949 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7951 2010-03-15 Tom Tromey <tromey@redhat.com>
7953 * dwarf2read.c (die_needs_namespace): Also return 0 for
7956 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7959 * cp-support.h: Added char *declaration element to using_direct
7961 (cp_add_using): Added char *declaration argument.
7962 (cp_add_using_directive): Ditto.
7963 (cp_lookup_symbol_imports): made extern.
7964 * cp-namespace.c: Updated with the above changes.
7965 * dwarf2read.c (read_import_statement): Ditto.
7966 (read_namespace): Ditto.
7967 (read_import_statement): Support import declarations.
7968 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7970 Added support for 'declaration_only' search.
7971 (cp_lookup_symbol_namespace): Attempt to search for the name as
7972 is before consideration of imports.
7973 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7974 search at every block level search.
7975 Now takes language argument.
7976 (lookup_symbol_aux): Updated.
7978 2010-03-15 Tom Tromey <tromey@redhat.com>
7980 * c-exp.y (name_not_typename): Add 'operator' clause.
7982 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7984 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7985 * configure: Regenerate.
7987 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7989 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7990 and ".sdynbss". Update the comment.
7992 2010-03-15 Jie Zhang <jie@codesourcery.com>
7994 * MAINTAINERS: Update my email address.
7996 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7998 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8000 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8002 * charset.c [USE_WIN32API]: Include <windows.h>.
8003 (_initialize_charset): Correct type of w32_host_default_charset.
8005 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8007 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8009 2010-03-12 Tom Tromey <tromey@redhat.com>
8012 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8013 in a lexical block does not need a namespace.
8014 (new_symbol) <DW_TAG_variable>: Put extern variables on
8015 list_in_scope in all cases.
8017 2010-03-12 Stan Shebs <stan@codesourcery.com>
8019 * ax-gdb.c (gen_expr): Add shift expressions.
8020 (gen_expr_binop_rest): Ditto.
8022 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8024 * buildsym.c (finish_block): Reset using_directives pointer
8025 after block initialization.
8027 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8029 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8030 * i386-tdep.c (i386_word_names): Likewise.
8032 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8034 * target.c (memory_xfer_partial): Don't use the stack cache if
8035 inspecting trace frames.
8036 * tracepoint.c (finish_tfind_command): Invalidate the target
8039 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8041 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8042 for the PIC displacement, print also the displacement value.
8043 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8045 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8047 * remote-mips.c (close_ports, mips_initialize_cleanups)
8048 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8049 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8050 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8051 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8052 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8053 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8054 comments describing each of these functions.
8055 (mips_enter_debug, mips_exit_debug, common_open)
8056 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8057 blank line after the comment describing the function.
8059 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8061 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8062 parameter displacementp. Update comment.
8063 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8064 element exists. Return if svr4_exec_displacement was not successful.
8067 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8068 Daniel Jacobowitz <dan@codesourcery.com>
8070 * solib-svr4.c (read_program_header): Support type == -1 to read
8071 all program headers.
8072 (read_program_headers_from_bfd): New function.
8073 (svr4_static_exec_displacement): Remove and move the comment ...
8074 (svr4_exec_displacement): ... here. Remove variable found. New
8075 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8076 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8077 targets using read_program_headers_from_bfd. Remove the call of
8078 svr4_static_exec_displacement.
8080 2010-03-10 Tom Tromey <tromey@redhat.com>
8082 * dwarf2read.c (struct pubnames_header): Remove.
8083 (_PUBNAMES_HEADER): Remove.
8084 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8085 (struct aranges_header): Remove.
8086 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8087 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8088 (PUBNAMES_SECTION): Remove.
8089 (ARANGES_SECTION): Remove.
8090 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8091 (dwarf2_build_psymtabs): Remove dead code.
8092 (dwarf2_build_psymtabs_easy): Remove.
8094 2010-03-10 Tom Tromey <tromey@redhat.com>
8096 * elfread.c (elf_symfile_read): Don't call
8097 dwarf2_build_frame_info.
8098 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8099 (struct dwarf2_per_objfile) <objfile>: New field.
8100 (dwarf2_has_info): Now idempotent. Set objfile field.
8101 (dwarf2_read_section): Check and set readin field. Call
8103 (dwarf2_build_psymtabs): Don't read all sections.
8104 (read_type_comp_unit_head): Read types section.
8105 (create_debug_types_hash_table): Likewise.
8106 (init_cu_die_reader): Add asserts.
8107 (process_type_comp_unit): Add assert.
8108 (dwarf2_build_psymtabs_hard): Read info section.
8109 (load_partial_comp_unit): Add assert.
8110 (create_all_comp_units): Read info section.
8111 (load_full_comp_unit): Likewise.
8112 (dwarf2_ranges_read): Read ranges section.
8113 (dwarf2_record_block_ranges): Add assert.
8114 (dwarf2_read_abbrevs): Read abbrev section.
8115 (read_indirect_string): Read str section.
8116 (dwarf_decode_line_header): Read line section.
8117 (read_signatured_type_at_offset): Read types section.
8118 (dwarf_decode_macros): Read macinfo section.
8119 (dwarf2_symbol_mark_computed): Read loc section.
8120 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8121 dwarf2_build_frame_info.
8122 (dwarf2_build_frame_info): Unconditionally set
8123 dwarf2_frame_objfile_data on the objfile.
8124 * configure.ac: Check for posix_madvise.
8125 * config.in, configure: Rebuild.
8127 2010-03-10 Tom Tromey <tromey@redhat.com>
8129 * xcoffread.c (xcoff_start_psymtab): Update.
8130 (xcoff_end_psymtab): Update.
8131 * psymtab.c (allocate_psymtab): Remove dead code.
8132 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8134 * mdebugread.c (parse_partial_symbols): Update.
8135 (new_psymtab): Likewise.
8136 * dwarf2read.c (process_psymtab_comp_unit): Update.
8137 (psymtab_to_symtab_1): Update.
8138 * dbxread.c (start_psymtab): Update.
8139 (end_psymtab): Likewise.
8141 2010-03-10 Tom Tromey <tromey@redhat.com>
8143 * xcoffread.c: Include psymtab.h.
8144 (xcoff_sym_fns): Update.
8145 * symtab.h (struct partial_symbol): Remove.
8146 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8147 (struct partial_symtab): Remove.
8148 (PSYMTAB_TO_SYMTAB): Remove.
8149 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8150 (find_pc_sect_psymtab): Remove.
8151 (find_pc_sect_symtab_via_partial): Declare.
8152 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8153 (find_main_psymtab): Remove.
8154 (find_main_filename): Declare.
8155 (fixup_psymbol_section): Remove.
8156 (fixup_section): Declare.
8157 * symtab.c: Include psymtab.h.
8158 (lookup_symtab): Use lookup_symtab method.
8159 (lookup_partial_symtab): Remove.
8160 (find_pc_sect_psymtab_closer): Remove.
8161 (find_pc_sect_psymtab): Remove.
8162 (find_pc_sect_symtab_via_partial): New function.
8163 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8164 (fixup_section): No longer static.
8165 (fixup_psymbol_section): Remove.
8166 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8167 (lookup_global_symbol_from_objfile): Likewise.
8168 (lookup_symbol_aux_psymtabs): Remove.
8169 (lookup_symbol_aux_quick): New function.
8170 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8171 (lookup_partial_symbol): Remove.
8172 (basic_lookup_transparent_type_quick): New function.
8173 (basic_lookup_transparent_type): Use it.
8174 (find_main_psymtab): Remove.
8175 (find_main_filename): New function.
8176 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8177 (find_line_symtab): Use expand_symtabs_with_filename method.
8178 (output_partial_symbol_filename): New function.
8179 (sources_info): Use map_partial_symbol_filenames.
8180 (struct search_symbols_data): New type.
8181 (search_symbols_file_matches): New function.
8182 (search_symbols_name_matches): Likewise.
8183 (search_symbols): Use expand_symtabs_matching method.
8184 (struct add_name_data): Rename from add_macro_name_data.
8185 (add_macro_name): Update.
8186 (add_partial_symbol_name): New function.
8187 (default_make_symbol_completion_list): Use
8188 map_partial_symbol_names.
8189 (struct add_partial_symbol_name): New type.
8190 (maybe_add_partial_symtab_filename): New function.
8191 (make_source_files_completion_list): Use
8192 map_partial_symbol_filenames.
8193 (expand_line_sal): Use expand_symtabs_with_filename method.
8194 * symmisc.c: Include psymtab.h.
8195 (print_objfile_statistics): Use print_stats method.
8196 (dump_objfile): Use dump method.
8197 (dump_psymtab, maintenance_print_psymbols)
8198 (maintenance_info_psymtabs, maintenance_check_symtabs)
8199 (extend_psymbol_list): Remove.
8200 * symfile.h (struct quick_symbol_functions): New struct.
8201 (struct sym_fns) <qf>: New field.
8202 (sort_pst_symbols): Remove.
8203 (increment_reading_symtab): Declare.
8204 * symfile.c: Include psymtab.h.
8205 (compare_psymbols, sort_pst_symbols): Remove.
8206 (psymtab_to_symtab): Remove.
8207 (increment_reading_symtab): New function.
8208 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8210 (set_initial_language): Use find_main_filename.
8211 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8212 (free_named_symtabs): Remove unused code.
8213 (start_psymtab_common, add_psymbol_to_bcache)
8214 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8216 * stack.c: Include psymtab.h, symfile.h.
8217 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8218 * source.h (psymtab_to_fullname): Don't declare.
8219 * source.c: Include psymtab.h.
8220 (select_source_symtab): Use find_last_source_symtab method.
8221 (forget_cached_source_info): Use forget_cached_source_info
8223 (find_and_open_source): No longer static.
8224 (psymtab_to_fullname): Remove.
8225 * somread.c: Include psymtab.h.
8226 (som_sym_fns): Update.
8227 * psympriv.h: New file.
8228 * psymtab.h: New file.
8229 * psymtab.c: New file.
8230 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8231 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8232 * objfiles.c: Include psymtab.h.
8233 (objfile_relocate1): Use relocate method.
8234 (objfile_has_partial_symbols): Use has_symbols method.
8235 * mipsread.c: Include psymtab.h.
8236 (ecoff_sym_fns): Update.
8237 * mi/mi-cmd-file.c: Include psymtab.h.
8238 (print_partial_file_name): New function.
8239 (mi_cmd_file_list_exec_source_files): Use
8240 map_partial_symbol_filenames.
8241 * mdebugread.c: Include psympriv.h.
8242 * machoread.c: Include psympriv.h.
8243 (macho_sym_fns): Update.
8244 * m2-exp.y (yylex): Use lookup_symtab.
8245 * elfread.c: Include psympriv.h.
8246 (elf_sym_fns): Update.
8247 * dwarf2read.c: Include psympriv.h.
8248 * dbxread.c: Include psympriv.h.
8249 (aout_sym_fns): Update.
8250 * cp-support.c: Include psymtab.h.
8251 (read_in_psymtabs): Remove.
8252 (make_symbol_overload_list_qualified): Use
8253 expand_symtabs_for_function method.
8254 * coffread.c: Include psympriv.h.
8255 (coff_sym_fns): Update.
8256 * blockframe.c: Include psymtab.h.
8257 (find_pc_partial_function): Use find_pc_sect_symtab method.
8258 * ada-lang.h (ada_update_initial_language): Update.
8259 * ada-lang.c: Include psymtab.h.
8260 (ada_update_initial_language): Remove 'main_pst' argument.
8261 (ada_lookup_partial_symbol): Remove.
8262 (struct ada_psym_data): New type.
8263 (ada_add_psyms): New function.
8264 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8265 (struct add_partial_datum): New type.
8266 (ada_add_partial_symbol_completions): New function.
8267 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8268 (ada_exception_support_info_sniffer): Update.
8269 * Makefile.in (SFILES): Add psymtab.c.
8270 (COMMON_OBS): Add psymtab.o.
8271 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8273 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8275 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8277 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8280 * cp-namespace.c (cp_add_using): Deleted.
8281 (cp_add_using_directive): Use obstack allocations.
8282 Merged the function cp_add_using into this one.
8283 Added 'struct obstack *' argument.
8284 (cp_scan_for_anonymous_namespaces): Updated.
8285 * cp-support.h: Updated.
8286 * dwarf2read.c (read_import_statement): Updated.
8287 (read_namespace): Updated.
8289 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8291 * windows-nat.c (cygwin_conv_path): Remove old macro.
8293 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8295 * breakpoint.c (condition_command): Handle watchpoint conditions.
8296 (is_hardware_watchpoint): Add comment.
8297 (is_watchpoint): New.
8298 (update_watchpoint): Don't reparse the watchpoint's condition
8301 (watchpoint_check): Use it.
8302 (bpstat_check_watchpoint): Handle it.
8303 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8304 conditions in a frame where it makes sense.
8305 (watch_command_1): Store the innermost block of the condition
8307 (delete_breakpoint): Delete the watchpoint condition expression.
8308 * breakpoint.h (struct bp_location) <cond>: Update comment.
8309 (struct breakpoint): New field `cond_exp_valid_block'.
8311 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8313 Adjust handling of Ada DIEs after dwarf2_physname patch.
8314 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8316 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8317 Pierre Muller <muller@ics.u-strasbg.fr>
8319 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8320 from/to posix/win32.
8321 (windows_make_so): Use non-Cygwin 1.7 specific function.
8322 (windows_create_inferior): Make sure that cygallargs points to
8323 original args in non Cygwin 1.7. case.
8325 2010-03-09 Michael Snyder <msnyder@vmware.com>
8327 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8328 after target_read_memory to get host byte order.
8329 (i386_process_record): Ditto.
8331 2010-03-09 Keith Seitz <keiths@redhat.com>
8333 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8334 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8335 print out const or volatile qualifiers, too.
8336 (c_type_print_args): Add parameters show_artificial and language.
8337 Skip artificial parameters when requested.
8338 Use the appropriate language printer.
8339 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8340 parameters and pass language_c.
8341 * dwarf2read.c (die_list): New file global.
8342 (struct partial_die_info): Update comments for name field.
8343 (pdi_needs_namespace): Renamed to ...
8344 (die_needs_namespace): ... this. Rewrite.
8345 (dwarf2_linkage_name): Remove.
8346 (add_partial_symbol): Do not predicate the call to
8347 partial_die_full_name based on pdi_needs_namespace.
8348 Remove call to cp_check_possible_namespace_symbols and associated
8350 (guess_structure_name): Do not inspect child subprogram DIEs.
8351 (dwarf2_fullname): Update comments.
8352 Use die_needs_namespace to assist in computing the name.
8353 (read_func_scope): Use dwarf2_name to get the DIE's name.
8354 Use dwarf2_physname to get the "linkage name" of the DIE.
8355 (dwarf2_add_member_field): Use dwarf2_physname instead of
8356 dwarf2_linkage_name.
8357 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8358 (determine_class): Remove.
8359 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8361 (new_symbol): Unconditionally call dwarf2_name.
8362 Compute the "linkage name" using dwarf2_physname.
8363 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8364 When determining to scan for anonymous C++ namespaces, ignore
8366 (dwarf2_physname): New function.
8367 (dwarf2_full_name): Move content to new function and call
8369 (dwarf2_compute_name): "New" function.
8370 (_initialize_dwarf2_read): Initialize die_list.
8371 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8373 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8374 without a demangled name.
8375 Print out type information for non-virtual methods.
8376 * linespec.c (decode_line_1): Force ANY string using "::" (or
8377 "." for java) to use decode_compound, and clean up any stray quoting.
8378 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8379 (decode_compound): Stop consuming at an open parenthesis.
8380 Keep template parameters.
8381 Keep any overload information.
8382 Keep keywords like "const".
8383 Remove paren_pointer.
8384 Move is_quoted check from set_flags to here.
8385 Remove #if 0 code from 2000. Ten years is long enough.
8386 (find_method): Before comparing symbol names, canonicalize the string
8388 If a specific overload is requested, find it. Otherwise throw an error.
8389 (find_method_overload_end): New function.
8390 (set_flags): Remove.
8391 (decode_compound): Assume that parentheses are matched.
8393 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8395 * linespec.c (decode_line_1): Keep important keywords like
8396 "const" and "volatile".
8397 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8398 * typeprint.h (c_type_print_args): Add declaration.
8399 * ui-file.c (do_ui_file_obsavestring): New function.
8400 (ui_file_obsavestring): New function.
8401 * ui-file.h (ui_file_obsavestring): Add declaration.
8402 * valops.c (find_overload_match): Resolve the object to
8404 If the object is a data member, search the object for the member
8405 and return with staticp set.
8406 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8407 Do not attempt to extract a function name from non-function types.
8408 If the extracted function name and the original name are the same,
8409 we don't have a C++ method.
8411 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8412 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8414 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8415 and arguments from symbol lookups.
8416 * ax-gdb.c (gen_expr): Likewise.
8417 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8418 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8419 lookup_possible_namespace_symbol): Likewise.
8420 * cp-support.c (read_in_psymtabs): Likewise.
8421 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8422 * language.h (la_lookup_symbol_nonlocal): Likewise.
8423 * scm-valprint.c (scm_inferior_print): Likewise.
8424 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8425 * solib-svr.c (elf_lookup_lib): Likewise.
8426 * solib.c (show_auto_solib_add): Likewise.
8427 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8428 * symmisc.c (maintenance_check_symtabs): Likewise.
8429 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8430 lookup_symbol_aux_local, lookup_symbol_aux_block,
8431 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8432 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8433 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8434 basic_lookup_transparent_type, find_main_psymtab,
8435 lookup_block_symbol): Likewise.
8436 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8437 lookup_symbol_global, lookup_symbol_aux_block,
8438 lookup_symbol_partial_symbol, lookup_block_symbol,
8439 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8441 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8443 * python/python-internal.h: Include symtab.h.
8445 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8446 Pierre Muller <muller@ics.u-strasbg.fr>
8448 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8449 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8452 2010-03-08 Tom Tromey <tromey@redhat.com>
8454 * breakpoint.c (breakpoint_1): Add "QUIT".
8456 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8457 Pedro Alves <pedro@codesourcery.com>
8459 * solib.c (solib_find): Replace extension if
8460 solib_symbols_extension is set in the target gdbarch.
8461 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8462 solib_symbols_extension to "sym".
8463 * gdbarch.sh (solib_symbols_extension): New variable.
8464 (pstring): New function.
8465 * gdbarch.h, gdbarch.c: Regenerate.
8467 2010-03-08 Tom Tromey <tromey@redhat.com>
8471 * utils.c: Include main.h.
8472 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8473 (defaulted_query): Use default answer if `batch_flag'.
8474 * main.h (batch_flag): Declare.
8475 * main.c (batch_flag): New global.
8476 (captured_main): Remove 'batch'. Update.
8478 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8480 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8483 * remote-mips.c (rockhopper_ops): New target_ops struct.
8484 (MON_ROCKHOPPER): New mips_monitor_type.
8485 (read_hex_value): New function.
8486 (mips_request): Send 8-byte values with a 'T' packet. Read the
8487 packet argument as a string and use read_hex_value to parse it.
8488 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8489 (rockhopper_open): New function.
8490 (mips_wait): Read the PC, FP and SP fields as strings. Use
8491 read_hex_value to parse them and mips_set_register to commit them.
8492 (mips_set_register): New function.
8493 (mips_fetch_registers): Do not cast register value to "unsigned"
8494 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8495 (mips_store_registers): Use a 'T' packet to set registers when
8496 using MON_ROCKHOPPER.
8497 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8498 and expect the total to be printed before the entry address.
8499 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8501 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8503 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8504 Change return value to int. Store value fetched in location
8505 addressed by `val'. Use function's return value as success
8506 or failure indicator. Adjust all callers.
8508 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8510 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8512 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8513 Hui Zhu <teawater@gmail.com>
8515 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8516 tmp_to_stopped_data_address.
8517 (record_open): Reset tmp_to_stopped_by_watchpoint and
8518 tmp_to_stopped_data_address.
8519 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8520 to_stopped_data_address.
8522 2010-03-08 Hui Zhu <teawater@gmail.com>
8524 * i386-tdep.c (i386_process_record): Initialize regnum.
8526 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8528 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8529 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8531 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8533 Memory error when reading wrong core file.
8534 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8535 errors while reading the inferior memory, and return zero if
8536 an exception was raised.
8538 2010-03-07 Michael Snyder <msnyder@vmware.com>
8540 * record.c (record_restore): Rename tmpu8 to rectype.
8542 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8543 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8545 (i386_record_push): Rename local tmpulongest to addr.
8547 (i386_process_record): Rename local tmpulongest to addr.
8549 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8552 Rename local variable tmpu8 to opcode8 and regnum.
8554 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8556 * remote.c (remote_get_ada_task_ptid): New function.
8557 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8559 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8561 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8562 block. Define helper macros to reduce ifdefs in code.
8563 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8564 size. Call unadorned GetModuleFileNameEx rather than
8565 GetModuleFileNameEx*.
8566 (windows_make_so): Use __PMAX to denote maximum buffer size and
8567 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8569 (get_image_name): Use __PMAX to denote maximum buffer size.
8570 (handle_load_dll): Likewise.
8571 (windows_pid_to_exec_file): Likewise.
8572 (windows_create_inferior): Add many accommodations for older Cygwin and
8574 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8575 __USEWIDE conditional.
8576 (bad_GetModuleFileNameExA): Likewise.
8577 (_initialize_loadable): Just use real function names without the dyn_
8578 part since they are defined earlier.
8580 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8581 Tom Tromey <tromey@redhat.com>
8583 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8584 (parse_escape): Likewise.
8585 * python/py-utils.c (unicode_to_target_string): Update.
8586 (unicode_to_target_python_string): Update.
8587 (target_string_to_unicode): Update.
8588 * printcmd.c (printf_command): Update.
8589 * p-exp.y (yylex): Update.
8590 * objc-exp.y (yylex): Update.
8591 * mi/mi-parse.c: Include charset.h.
8592 (mi_parse_escape): New function.
8593 (mi_parse_argv): Use it.
8594 * jv-exp.y (yylex): Update.
8595 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8597 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8598 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8599 * gdbarch.c: Rebuild.
8600 * gdbarch.h: Rebuild.
8601 * defs.h (parse_escape): Update.
8602 * cli/cli-setshow.c: Include arch-utils.h.
8603 (do_setshow_command): Update.
8604 * cli/cli-cmds.c (echo_command): Update.
8605 * charset.h (target_charset, target_wide_charset): Update.
8606 * charset.c: Include arch-utils.h.
8607 (target_charset_name): Default to "auto".
8608 (target_wide_charset_name): Likewise.
8609 (show_target_charset_name): Handle "auto".
8610 (show_target_wide_charset_name): Likewise.
8611 (be_le_arch): New global.
8612 (set_be_le_names): Add 'gdbarch' argument.
8613 (validate): Likewise. Don't call set_be_le_names.
8614 (set_charset_sfunc, set_host_charset_sfunc)
8615 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8617 (target_charset): Add 'gdbarch' argument.
8618 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8619 (auto_target_charset_name): New global.
8620 (default_auto_charset, default_auto_wide_charset): New functions.
8621 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8622 for target charsets. Copy result of nl_langinfo. Use GetACP if
8624 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8625 remove 'byte_order' argument. Update.
8626 (classify_type): Likewise.
8627 (c_emit_char): Update.
8628 (c_printchar): Update.
8629 (c_printstr): Update.
8630 (c_get_string): Update.
8631 (evaluate_subexp_c): Update.
8632 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8634 * python/python.c (gdbpy_target_charset): New function.
8635 (gdbpy_target_wide_charset): Likewise.
8636 (GdbMethods): Update.
8639 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8641 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8642 off high address bits.
8644 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8646 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8647 address as UnsignedLongLong, not LongLong.
8649 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8650 Pedro Alves <pedro@codesourcery.com>
8652 * remote-mips.c (gdbthread.h): Include.
8653 (remote_mips_ptid): Declare.
8654 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8655 (common_open): Set inferior_ptid, add it as an inferior, and
8656 as a thread too. Delete FIXME comment regarding start_remote().
8657 (mips_close): Invoke generic_mourn_inferior().
8658 (mips_kill): Make sure that target_mourn_inferior is invoked.
8659 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8660 it's now invoked from mips_close().
8661 (mips_load): Don't null out inferior_ptid. Don't call
8662 clear_symtab_users().
8663 (mips_thread_alive, mips_pid_to_str): New functions.
8664 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8665 to_thread_alive and to_pid_to_str operations.
8667 2010-03-04 Tom Tromey <tromey@redhat.com>
8669 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8670 in DWARF 3 and later.
8671 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8673 2010-03-04 Keith Seitz <keiths@redhat.com>
8675 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8676 If the filename portion of the linespec was quoted, recheck the
8677 remainder for additional quoting.
8678 (locate_first_half): Skip over completer chars, too.
8680 2010-03-04 Tom Tromey <tromey@redhat.com>
8682 * printcmd.c (printf_command): Pass dummy argument to
8685 2010-03-04 Doug Evans <dje@google.com>
8687 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8690 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8692 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8694 * breakpoint.c (update_watchpoint): Create a sentinel location if
8695 the software watchpoint isn't watching any memory.
8696 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8698 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8700 * utils.c (fputs_maybe_filtered): Check if there's already a top
8701 level interpreter before dereferencing it. If there isn't one,
8702 don't paginate either.
8704 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8706 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8707 the state right when single stepping.
8708 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8709 Get the next PC along with the instruction state.
8710 (thumb_get_next_pc): Remove.
8711 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8713 2010-03-04 Hui Zhu <teawater@gmail.com>
8715 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8717 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8719 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8720 top level interpreter is MI.
8722 2010-03-03 Stan Shebs <stan@codesourcery.com>
8724 * remote.c (remote_download_tracepoint): Iterate over locations.
8725 * tracepoint.c (validate_actionline): Ditto.
8726 (encode_actions): Add location argument.
8727 (trace_dump_command): Check all locations to see if stepping
8730 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8731 Eli Zaretskii <eliz@gnu.org>
8733 * NEWS: Add X86 general purpose registers section.
8735 2010-03-03 Tom Tromey <tromey@redhat.com>
8738 * varobj.c (install_new_value): Handle case where new print_value
8741 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8744 * printcmd.c (printf_command): Print end of format string using
8747 2010-03-02 Tom Tromey <tromey@redhat.com>
8749 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8750 * defs.h (read_command_lines_1): Add missing 'void'.
8751 * cli/cli-script.c (recurse_read_control_structure): Add missing
8753 (read_next_line): Likewise.
8754 (read_command_lines_1): Likewise.
8756 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8758 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8759 store backchain as part of prologue.
8761 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8763 * progspace.c (update_address_spaces): Update inferior address spaces
8766 2010-03-02 Doug Evans <dje@google.com>
8768 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8769 lowpc,highpc args to addrmap_set_empty.
8771 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8773 * amd64-tdep.c (amd64_byte_names): New.
8774 (amd64_word_names): Likewise.
8775 (amd64_dword_names): Likewise.
8776 (amd64_pseudo_register_name): Likewise.
8777 (amd64_pseudo_register_read): Likewise.
8778 (amd64_pseudo_register_write): Likewise.
8779 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8780 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8781 set_gdbarch_pseudo_register_write and
8782 set_tdesc_pseudo_register_name. Don't call
8783 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8785 * i386-tdep.c (i386_num_mmx_regs): Removed.
8786 (i386_num_pseudo_regs): Likewise.
8787 (i386_byte_names): New.
8788 (i386_word_names): Likewise.
8789 (i386_byte_regnum_p): Likewise.
8790 (i386_word_regnum_p): Likewise.
8791 (i386_mmx_regnum_p): Updated.
8792 (i386_pseudo_register_name): Make it global. Handle byte and
8793 word pseudo-registers.
8794 (i386_pseudo_register_read): Likewise.
8795 (i386_pseudo_register_write): Likewise.
8796 (i386_pseudo_register_type): Handle byte, word and dword
8798 (i386_register_reggroup_p): Don't include pseudo
8799 registers, except for MXX, in any register groups. Don't
8800 include pseudo byte, word, dword registers in general_reggroup.
8801 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8802 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8803 pseudo-registers after word pseudo-registers. Call
8804 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8806 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8807 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8809 (i386_byte_regnum_p): New.
8810 (i386_word_regnum_p): Likewise.
8811 (i386_dword_regnum_p): Likewise.
8812 (i386_pseudo_register_name): Likewise.
8813 (i386_pseudo_register_read): Likewise.
8814 (i386_pseudo_register_write): Likewise.
8816 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8818 * target-descriptions.c (tdesc_type): Remove
8819 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8820 (tdesc_predefined_types): Likewise.
8821 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8822 if flag name is empty.
8823 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8825 * features/i386/32bit-core.xml: Define i386_eflags.
8826 * features/i386/64bit-core.xml: Likewise.
8828 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8829 * features/i386/64bit-sse.xml: Likewise.
8831 * features/i386/amd64-linux.c: Regenerated.
8832 * features/i386/amd64.c: Likewise.
8833 * features/i386/i386-linux.c: Likewise.
8834 * features/i386/i386.c: Likewise.
8836 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8838 * gdbtypes.c (append_composite_type_field_raw): New.
8839 (append_composite_type_field_aligned): Use the new function.
8840 * gdbtypes.h (append_composite_type_field_raw): Declare.
8841 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8842 (struct tdesc_type_flag): New type.
8843 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8844 kind. Add size to u.u. Add u.f for flags.
8845 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8846 (tdesc_free_type): Likewise.
8847 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8848 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8849 (tdesc_add_bitfield, tdesc_add_flag): New.
8850 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8851 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8852 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8853 current_type. Add current_type_size and current_type_is_flags.
8854 (tdesc_start_union): Clear the new fields.
8855 (tdesc_start_struct, tdesc_start_flags): New.
8856 (tdesc_start_field): Handle struct fields, including bitfields.
8857 (field_attributes): Make type optional. Add start and end.
8858 (union_children): Rename to struct_union_children.
8859 (union_attributes): Rename to struct_union_attributes. Add optional
8861 (flags_attributes): New.
8862 (feature_children): Add struct and flags.
8863 * features/gdb-target.dtd: Add flags and struct to features.
8864 Make field type optional. Add field start and end.
8866 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8868 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8869 (amd64_linux_read_description): Likewise.
8870 (_initialize_amd64_linux_nat): Set to_read_description to
8871 amd64_linux_read_description.
8873 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8874 (amd64_linux_register_name): Removed.
8875 (amd64_linux_register_type): Likewise.
8876 (amd64_linux_core_read_description): New.
8877 (amd64_linux_init_abi): Set target description to
8878 tdesc_amd64_linux if needed. Support orig_rax in target
8879 description. Don't call set_gdbarch_register_name nor
8880 set_gdbarch_register_type. Call
8881 set_gdbarch_core_read_description.
8882 (_initialize_amd64_linux_tdep): Call
8883 initialize_tdesc_amd64_linux.
8885 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8887 * amd64-tdep.c: Include "features/i386/amd64.c".
8888 (amd64_register_names): Removed.
8889 (amd64_register_name): Likewise.
8890 (amd64_register_type): Likewise.
8891 (amd64_init_abi): Set num_core_regs and register_names. Set
8892 target description to tdesc_amd64 if needed. Don't call
8893 set_gdbarch_register_name nor set_gdbarch_register_type.
8894 (_initialize_amd64_tdep): New.
8896 * i386-linux-nat.c (i386_linux_read_description): New.
8897 (_initialize_i386_linux_nat): Set to_read_description to
8898 i386_linux_read_description.
8900 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8901 (i386_linux_register_name): Removed.
8902 (i386_linux_core_read_description): New.
8903 (i386_linux_read_description): Likewise.
8904 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8905 Set target description to tdesc_i386_linux if needed. Support
8906 orig_eax. Set register_reggroup_p. Call
8907 set_gdbarch_core_read_description.
8908 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8910 * i386-linux-tdep.h (tdesc_i386_linux): New.
8912 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8915 * i386-tdep.c: Include "features/i386/i386.c".
8916 (i386_register_names): Make it const.
8917 (i386_mmx_names): Likewise.
8918 (i386_num_register_names): Removed.
8919 (i386_register_name): Likewise.
8920 (i386_eflags_type): Likewise.
8921 (i386_mxcsr_type): Likewise.
8922 (i386_sse_type): Likewise.
8923 (i386_register_type): Likewise.
8924 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8925 (i386_pseudo_register_name): New.
8926 (i386_pseudo_register_type): Likewise.
8927 (i386_mmx_type): Make it static.
8928 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8929 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8930 call set_gdbarch_register_name nor set_gdbarch_register_type.
8931 Set register_reggroup_p. Set target description to tdesc_i386
8932 if needed. Call set_tdesc_pseudo_register_type,
8933 set_tdesc_pseudo_register_name and tdesc_use_registers.
8934 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8935 initialize_tdesc_x86_64.
8937 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8938 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8939 register_names, tdesc and register_reggroup_p.
8940 (I386_NUM_FREGS): Removed.
8941 (i386_eflags_type): Likewise.
8942 (i386_mxcsr_type): Likewise.
8943 (i386_mmx_type): Likewise.
8944 (i386_sse_type): Likewise.
8945 (i386_register_name): Likewise.
8946 (i386_regnum): Add I386_MXCSR_REGNUM.
8947 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8949 * i387-tdep.h (I387_NUM_REGS): New.
8951 * regformats/i386/i386-linux.dat: Generated.
8952 * regformats/i386/i386.dat: Likewise.
8953 * regformats/i386/amd64-linux.dat: Likewise.
8954 * regformats/i386/amd64.dat: Likewise.
8956 * regformats/reg-i386-linux.dat: Removed.
8957 * regformats/reg-i386.dat: Likewise.
8958 * regformats/reg-x86-64-linux.dat: Likewise.
8959 * regformats/reg-x86-64.dat: Likewise.
8961 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8963 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8964 cygwin_conv_path API rather than the deprecated
8965 cygwin_conv_to_full_posix_path.
8967 (GetModuleFileNameExA): Undefine for Cygwin.
8968 (GetModuleFileNameExW): Define for Cygwin.
8969 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8970 Call GetModuleFileNameExW and convert path to POSIX using
8972 (windows_make_so): Always define p. Drop unused variable m.
8973 Don't use Win32 functions to check file existance, rather use
8974 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8975 Use canonicalize_file_name to get full path.
8976 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8977 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8978 use correct target buffer size in call to WideCharToMultiByte.
8979 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8980 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8981 (windows_create_inferior): Convert all paths and arguments to wchar_t
8982 and use CreateProcessW on Cygwin.
8983 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8984 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8985 (bad_GetModuleFileNameExW): Define for Cygwin.
8986 (_initialize_loadable): Load GetModuleFileNameExW into
8987 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8989 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8992 * python/py-frame.c (frapy_read_var): Add block argument and logic
8993 to cope with user provided blocks.
8995 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8997 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9000 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9002 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9003 (COMMON_OBS): ... to here since it's used unconditionally.
9004 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9007 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9009 * mips-linux-tdep.c: Update struct sigframe comments.
9010 (SIGFRAME_CODE_OFFSET): Delete macro.
9011 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9013 (mips_linux_n32n64_sigframe_init): Same.
9015 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9017 * remote-mips.c (mips_load): Don't use pseudo-register when
9018 invalidating regcache.
9020 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9022 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9024 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9026 * NEWS: Add "New targets" section, and mention ARM Symbian
9029 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9031 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9032 add ADDR_SIZE member.
9033 (allocate_piece_closure): Update.
9034 (copy_pieced_value_closure): Likewise.
9035 (dwarf2_evaluate_loc_desc): Likewise.
9036 (read_pieced_value): Use DWARF address size instead of
9037 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9039 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9040 Tom Tromey <tromey@redhat.com>
9042 * python/py-type.c (typy_lookup_typename): Add in block argument.
9043 If provided restrict lookup to specified blocks.
9044 (gdbpy_lookup_type): Likewise.
9045 (typy_lookup_type): Likewise.
9047 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9052 * arm-symbian-tdep.c: New.
9053 * configure.tgt (arm*-*-symbianelf*): New target.
9054 (*-*-symbianelf*): New OS.
9055 * osabi.c (gdb_osabi_names): Add Symbian.
9056 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9057 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9058 (ALLDEPFILES): Add arm-symbian-tdep.c.
9060 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9062 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9064 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9066 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9068 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9069 Tom Tromey <tromey@redhat.com>
9070 Thiago Jung Bauermann <bauerman@br.ibm.com>
9072 * python/python.c (_initialize_python): Call
9073 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9074 gdbpy_initialize_blocks.
9075 * python/python-internal.h: Declare struct symbol, block and
9076 symtab_and_line. Declare block_object_type and
9078 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9079 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9080 (symbol_to_symbol_object, block_to_block_object)
9081 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9082 (gdbpy_initialize_blocks ): Declare.
9083 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9084 (frapy_select): Add methods.
9085 (frapy_read_var): Add symbol branch.
9086 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9088 (SUBDIR_PYTHON_SRCS): Likewise.
9089 (py-symbol.o): New rule.
9090 (py-symtab.o): Likewise.
9091 (py-block.o): Likewise.
9092 * python/py-symbol.c: New file.
9093 * python/py-symtab.c: Likewise.
9094 * python/py-block.c: Likewise.
9096 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9100 * inferior.h (prepare_for_detach): Declare.
9101 (struct inferior) <detaching>: New field.
9102 * infrun.c (prepare_for_detach): New.
9103 (handle_inferior_event) <random signal>: Don't stop if detaching.
9104 * target.c (target_detach): Call prepare_for_detach.
9106 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9108 Per-process displaced stepping queue.
9110 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9111 (displaced_step_gdbarch, displaced_step_closure,
9112 (displaced_step_original, displaced_step_copy): Move globals to
9114 (struct displaced_step_inferior_state): ... new structure.
9115 (displaced_step_inferior_states): New global.
9116 (get_displaced_stepping_state, add_displaced_stepping_state)
9117 (remove_displaced_stepping_state, infrun_inferior_exit): New
9119 (displaced_step_clear): Add displaced_step_inferior_state
9120 parameter, and adjust to handle it.
9121 (displaced_step_clear_cleanup): Parameter is now a
9122 displaced_step_inferior_state. Adjust.
9123 (displaced_step_prepare): Adjust.
9124 (displaced_step_fixup, displaced_step_fixup)
9125 (infrun_thread_ptid_changed, resume): Adjust.
9126 (init_wait_for_inferior): Don't call displaced_step_clear.
9127 (infrun_thread_stop_requested): Rewrite.
9128 (_initialize_infrun): Install infrun_inferior_exit as
9129 inferior_exit observer.
9131 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9133 * inferior.h (ptid_match): Declare.
9134 * infrun.c (ptid_match): New.
9135 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9136 (handle_notification): Add debug output.
9137 * linux-nat.c (ptid_match): Delete.
9139 2010-02-24 David S. Miller <davem@davemloft.net>
9141 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9142 * syscalls/sparc-linux.xml: New.
9143 * syscalls/sparc64-linux.xml: New.
9144 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9145 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9146 (sparc32_linux_get_syscall_number): New function.
9147 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9148 syscall number fetcher.
9149 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9150 (sparc64_linux_get_syscall_number): New function.
9151 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9152 syscall number fetcher.
9154 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9158 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9159 * inferior.c (add_inferior_silent): Notify inferior_added
9161 (delete_inferior_1): Notify inferior_removed observer.
9162 (exit_inferior_1): Pass inferior, not pid, to observer.
9163 (inferior_appeared): Likewise.
9164 (add_inferior_with_spaces): New.
9165 (add_inferior_command): Use the above.
9166 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9169 * inflow.c (inflow_inferior_exit): Likewise.
9170 * jit.c (jit_inferior_exit_hook): Likewise.
9172 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9174 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9175 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9176 (report_initial_inferior): New.
9177 (mi_inferior_removed): Register the above. Make sure
9178 inferior_added observer is called on the first inferior.
9179 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9180 inferior number, not pid.
9181 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9183 * mi/mi-main.c (current_context): New.
9184 (proceed_thread_callback): Use typed closure.
9185 Proceed everything if pid is 0. Most implementation split into
9186 (proceed_thread): ... this.
9187 (run_one_inferior): New.
9188 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9189 Adjust for multiexec behaviour.
9190 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9191 (mi_cmd_execute): Handle the 'thread-group' option here.
9192 Do some extra checks.
9193 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9195 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9197 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9199 Make -exec-run a proper MI commands.
9201 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9202 * mi/mi-cmds.c (mi_cmds): Adjust.
9203 * mi/mi-main.c (mi_cmd_exec_run): New.
9205 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9206 Stan Shebs <stan@codesourcery.com>
9208 * tracepoint.h (set_traceframe_number)
9209 (cleanup_restore_current_traceframe): Declare.
9210 * tracepoint.c (set_traceframe_number): New.
9211 (struct current_traceframe_cleanup): New.
9212 (do_restore_current_traceframe_cleanup)
9213 (restore_current_traceframe_cleanup_dtor)
9214 (make_cleanup_restore_current_traceframe): New.
9215 * infrun.c: Include tracepoint.h.
9216 (fetch_inferior_event): Switch out and in of tfind mode.
9218 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9220 * breakpoint.c (breakpoint_init_inferior): Also delete
9221 bp_shlib_event breakpoints.
9222 * solib-frv.c (enable_break): Remove call to
9223 remove_solib_event_breakpoints.
9224 * solib-svr4.c (enable_break): Ditto.
9225 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9226 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9227 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9228 * solib-spu.c (spu_enable_break): Ditto.
9230 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9232 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9234 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9236 * varobj.c (varobj_update): Avoid non-constants in initializers.
9238 2010-02-23 Tom Tromey <tromey@redhat.com>
9240 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9241 handle big-endian values.
9242 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9244 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9249 * breakpoint.c (insert_bp_location): If inserting the read
9250 watchpoint failed, fallback to an access watchpoint.
9251 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9252 if the value changed, if not watching the same memory for writes.
9253 (watchpoint_locations_match): Add comment.
9254 (update_global_location_list): Copy the location's watchpoint type.
9255 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9256 handle read watchpoints here.
9257 (i386_insert_watchpoint): Read watchpoints aren't supported.
9258 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9260 * target.h (target_insert_watchpoint): Update description.
9262 2010-02-19 Tom Tromey <tromey@redhat.com>
9264 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9265 * m2-typeprint.c (m2_print_type): Update.
9266 * gdbtypes.c (recursive_dump_type): Update.
9267 (copy_type_recursive): Update.
9268 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9269 (c_type_print_base): Update.
9270 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9272 (struct cplus_struct_type) <ntemplate_args>: Remove.
9273 <struct template_arg>: Remove.
9274 <is_dynamic>: Move earlier.
9275 (TYPE_TEMPLATE_ARGS): Remove.
9276 (TYPE_NTEMPLATE_ARGS): Remove.
9277 (TYPE_TEMPLATE_ARG): Remove.
9279 2010-02-19 Tom Tromey <tromey@redhat.com>
9281 PR c++/8693, PR c++/9496:
9282 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9283 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9284 write_dollar_variable. Don't try to classify NAME tokens.
9285 (token_and_value): New type.
9286 (token_fifo, popping, name_obstack): New globals.
9287 (classify_name): New function.
9288 (classify_inner_name): Likewise.
9290 (VARIABLE): Now has type sval.
9291 (exp : VARIABLE): Call write_dollar_variable.
9292 (qualified_name): Use TYPENAME, not typebase. Add production for
9293 multiple "::" instances.
9294 (variable): Use name_not_typename.
9295 (qualified_type): Remove.
9298 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9300 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9301 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9302 found by bfd_get_section_by_name.
9303 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9305 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9307 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9308 7.0 section" into "Changes in 7.1".
9310 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9312 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9313 * version.in: Bump version to 7.1.50.20100219-cvs.
9315 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9317 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9318 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9320 2010-02-17 Tom Tromey <tromey@redhat.com>
9322 * NEWS: Add Python API Improvements section.
9324 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9326 * NEWS: Correct typo.
9328 2010-02-17 Tom Tromey <tromey@redhat.com>
9330 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9332 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9334 * symfile.c (build_section_addr_info_from_objfile): Include sections
9335 only if they are SEC_ALLOC or SEC_LOAD.
9337 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9340 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9341 of ULONGEST for address size.
9343 2010-02-17 Tom Tromey <tromey@redhat.com>
9345 * NEWS: Add C++ improvements section.
9347 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9349 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9350 PyThreadState_Swap): Avoid "statement with no effect" warning.
9352 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9354 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9355 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9357 2010-02-17 Tristan Gingold <gingold@adacore.com>
9358 Petr Hluzin <petr.hluzin@gmail.com>
9360 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9361 gdb_assert. Fix info->size for SIG prologue.
9363 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9365 * infcmd.c (show_inferior_tty_command): Check for NULL.
9366 Correct output message.
9368 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9370 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9371 FUNCTION contains parentheses. Improve removal of a trailing
9374 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9376 * gcore.c (do_bfd_delete_cleanup): New function.
9377 (gcore_command): Use it. Discard the cleanup after success.
9378 (gcore_copy_callback): Delete dead code.
9380 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9382 * symfile.c (addr_info_make_relative): Always use
9383 find_lowest_section.
9385 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9387 * NEWS: Added entry for namespace fixes.
9389 2010-02-15 Tom Tromey <tromey@redhat.com>
9391 * dwarf2read.c (guess_structure_name): Allocate name on the
9394 2010-02-15 Tom Tromey <tromey@redhat.com>
9396 * c-typeprint.c (c_type_print_base): Reverse order of test.
9398 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9400 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9401 initialize it from ELF BFD. Extend the prelink condition by it.
9403 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9405 * defs.h (parse_pid_to_attach): New.
9406 * utils.c (parse_pid_to_attach): New.
9407 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9408 * gnu-nat.c (gnu_attach): Likewise.
9409 * nto-procfs.c (procfs_attach): Likewise.
9410 * procfs.c (procfs_attach): Likewise.
9411 * windows-nat.c (windows_attach): Likewise.
9412 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9413 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9414 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9417 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9419 * MAINTAINERS: Add myself for write after approval privileges.
9421 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9423 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9426 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9428 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9429 only if INFO_VERBOSE.
9431 2010-02-12 Tomas Holmberg <th@virtutech.com>
9433 * mi/mi-main.c: Added the --reverse flag to the following MI
9434 commands: exec-continue, exec-finish, exec-next, exec-step,
9435 exec-next-instruction, exec-step-instruction. This is to
9436 support reverse execution over the MI interface to gdb.
9438 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9440 * tracepoint.c (_initialize_tracepoint): Specify that the address
9441 range of `tfind outsize' is exclusive, and that the address range
9442 of `tfind range' is inclusive, in the commands' help strings.
9444 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9446 Spurious "dll not found" error messages on x64-windows.
9447 * windows-nat.c: Add include of complaints.h.
9448 (handle_unload_dll): Change dll-not-found error into a complaint.
9450 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9452 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9453 bp_tracepoint and bp_fast_tracepoint, not
9454 bp_loc_software_breakpoint.
9455 (update_global_location_list): Tracepoints are never duplicates of
9458 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9460 * breakpoint.c (break_command_really): Change return type to int.
9461 Return false if no breakpoint was created, true otherwise.
9462 (trace_command): Don't set the tracepoint count if no tracepoint
9464 (ftrace_command): Ditto.
9465 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9466 created in the breakpoints table.
9468 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9469 Ulrich Weigand <uweigand@de.ibm.com>
9471 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9473 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9475 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9476 the offset value isn't of integral type.
9478 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9480 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9483 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9485 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9486 non-subscriptable types.
9487 * valarith.c (binop_types_user_defined_p): New, abstracted out
9489 (binop_user_defined_p): ... this.
9490 * value.h (binop_types_user_defined_p): Declare.
9492 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9494 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9495 Merge uploaded TSVs before merging uploaded tracepoints.
9497 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9499 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9501 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9503 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9504 whitespace character after a dot in comment.
9505 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9507 (list_args_or_locals): For the 'all' (that is
9508 -stack-list-variables) case, always output list of tuples.
9509 Output 'arg' field if variable is argument.
9511 2010-02-10 Tom Tromey <tromey@redhat.com>
9513 * parser-defs.h (parser_debug): Declare.
9514 * parse.c (_initialize_parse): Install "debug parser" set/show
9516 (parser_debug): New global.
9517 (show_parserdebug): New function.
9518 * c-exp.y (c_parse): Set yydebug.
9520 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9522 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9523 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9524 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9526 (tdesc_find_type): New.
9527 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9528 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9530 * target-descriptions.h (tdesc_find_type): New.
9532 2010-02-10 Michael Snyder <msnyder@vmware.com>
9534 * gdb-gdb.py: Comment fix.
9536 2010-02-09 Tristan Gingold <gingold@adacore.com>
9538 * machoread.c (macho_symfile_relocate): New function.
9539 (macho_sym_fns): Use macho_symfile_relocate instead of
9540 default_symfile_relocate.
9541 (macho_oso_data): New type.
9542 (current_oso): New variable.
9543 (macho_add_oso_symfile): Do not compute section_addr_info, but
9544 instead set vma of sections.
9545 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9546 Set and clear current_oso.
9548 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9550 Wrong type description for tagged type parameter.
9551 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9552 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9553 reference to a tagged type.
9555 2010-02-09 Tristan Gingold <gingold@adacore.com>
9557 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9558 brothers of the parent.
9560 2010-02-08 Tom Tromey <tromey@redhat.com>
9564 * valops.c (search_struct_field): Make 'name' const.
9565 (search_struct_method): Likewise.
9566 (find_method_list): Make 'method' const.
9567 (value_struct_elt): Make 'name' and 'err' const.
9568 (value_find_oload_method_list): Make 'method' const.
9569 (find_overload_match): Make 'name' const.
9570 * eval.c (evaluate_subexp_standard): New locals function,
9572 <OP_FUNCALL>: Handle OP_SCOPE specially.
9574 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9576 * infrun.c (handle_inferior_event): Do not look up regcache
9577 for exited processes.
9579 2010-02-08 Chris Moller <moller@mollerware.com>
9582 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9583 warn if found, and assume length = 1.
9585 2010-02-08 Chris Moller <cmoller@redhat.com>
9588 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9589 (cp_print_static_field) Fix use of obstacks.
9591 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9593 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9594 resumed LWPs as resumed.
9595 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9596 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9597 of throwing an internal error. If an LWP of a process we're not
9598 waiting for reports a signal, don't force collecting a SIGSTOP,
9599 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9600 go through all LWPs cancelling breakpoints in non-stop mode.
9601 (resume_stopped_resumed_lwps): New.
9602 (linux_nat_wait): Use it.
9604 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9606 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9607 i386/amd64 and i386/amd64-linux.
9608 (i386/i386-expedite): New.
9609 (i386/i386-linux-expedite): Likewise.
9610 (i386/amd64-expedite):Likewise.
9611 (i386/amd64-linux-expedite): Likewise.
9612 ($(outdir)/i386/i386-linux.dat): Likewise.
9613 ($(outdir)/i386/amd64.dat): Likewise.
9614 ($(outdir)/i386/amd64-linux.dat): Likewise.
9616 * features/i386/32bit-core.xml: New.
9617 * features/i386/32bit-linux.xml: Likewise.
9618 * features/i386/32bit-sse.xml: Likewise.
9619 * features/i386/64bit-core.xml: Likewise.
9620 * features/i386/64bit-linux.xml: Likewise.
9621 * features/i386/64bit-sse.xml: Likewise.
9622 * features/i386/i386-linux.xml: Likewise.
9623 * features/i386/i386.xml: Likewise.
9624 * features/i386/amd64-linux.xml: Likewise.
9625 * features/i386/amd64.xml: Likewise.
9626 * features/i386/i386-linux.c: Likewise.
9627 * features/i386/i386.c: Likewise.
9628 * features/i386/amd64-linux.c: Likewise.
9629 * features/i386/amd64.c: Likewise.
9631 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9634 * cp-support.h: Added char* alias element to using_direct data
9636 (cp_add_using): Added char* alias argument.
9637 (cp_add_using_directive): Ditto.
9638 * cp-namespace.c: Updated with the above changes.
9639 (cp_lookup_symbol_imports): Check for aliases.
9640 * dwarf2read.c (read_import_statement): Figure out local alias
9641 for the import and pass it on to cp_add_using.
9642 (read_namespace): Pass alias argument to cp_add_using.
9644 2010-02-05 Hui Zhu <teawater@gmail.com>
9646 * defs.h (gdb_bfd_errmsg): New extern.
9647 * exec.c (exec_file_attach): Change bfd_errmsg to
9649 * utils.c (AMBIGUOUS_MESS1): New macro.
9650 (AMBIGUOUS_MESS2): New macro.
9651 (gdb_bfd_errmsg): New function.
9653 2010-02-04 Doug Evans <dje@google.com>
9655 * solib-svr4.c (enable_break): Add comment.
9657 2010-02-04 Anthony Green <green@moxielogic.com>
9659 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9662 2010-02-04 Tom Tromey <tromey@redhat.com>
9664 * valops.c (search_struct_field): Account for
9665 value_embedded_offset. Fix check for virtual base past the end of
9666 the object. Use value_copy when making a slice of the value.
9668 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9671 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9672 only if gdb_stdout is a tty.
9674 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9676 * target-descriptions.c: Include "osabi.h".
9677 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9680 2010-02-04 Tristan Gingold <gingold@adacore.com>
9682 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9683 (macho_symtab_read): Adjust calls to macho_add_oso.
9684 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9685 (macho_symfile_read): Adjust call to macho_oso_symfile.
9686 (macho_new_init): Move this function after declarations.
9687 (macho_symfile_init): Ditto.
9688 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9689 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9691 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9693 Include MI command in remotelog.
9695 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9697 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9699 * remote.c (remote_state): Remove gdbarch.
9700 (init_remote_state): Don't set gdbarch.
9701 (remote_query_supported): Pass target_gdbarch instead of
9702 rs->gdbarch to gdbarch_qsupported.
9704 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9706 * gdbarch.sh: Add qsupported.
9708 * gdbarch.c: Regenerated.
9709 * gdbarch.h: Likewise.
9711 * remote.c (remote_state): Add gdbarch.
9712 (init_remote_state): Set gdbarch.
9713 (remote_query_supported): Support gdbarch_qsupported.
9715 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9717 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9718 __FreeBSD_kernel_version.
9720 2010-02-03 Tristan Gingold <gingold@adacore.com>
9722 * symfile.h (struct sym_fns): Add sym_relocate field.
9723 (default_symfile_relocate): New prototype.
9724 (symfile_relocate_debug_section): First argument is now an objfile.
9725 * symfile.c (default_symfile_relocate): Rename from
9726 symfile_relocate_debug_section, first argument is now an objfile.
9727 (symfile_relocate_debug_section): New function.
9728 * coffread.c (coff_sym_fns): Set sym_relocate field.
9729 * somread.c (som_sym_fns): Ditto.
9730 * mipsread.c (ecoff_sym_fns): Ditto.
9731 * machoread.c (macho_sym_fns): Ditto.
9732 * elfread.c (elf_sym_fns): Ditto.
9733 * dwarf2read.c (dwarf2_read_section): Ditto.
9734 * xcoffread.c (xcoff_sym_fns): Ditto.
9735 * dbxread.c (aout_sym_fns): Ditto.
9736 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9737 (elfstab_build_psymtabs): Ditto.
9739 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9741 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9743 2010-02-02 Tom Tromey <tromey@redhat.com>
9745 * valops.c (value_cast_structs): Try downcasting using the RTTI
9748 2010-02-02 Tom Tromey <tromey@redhat.com>
9750 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9751 (gnuv2_baseclass_offset): Now static.
9752 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9753 * gnu-v2-abi.h: Remove.
9755 2010-02-02 Tom Tromey <tromey@redhat.com>
9757 * m2-typeprint.c (m2_record_fields): Don't use
9759 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9760 (struct main_type) <flag_declared_class>: New field.
9761 (struct cplus_struct_type) <declared_type>: Remove.
9762 <ntemplate_args>: Move earlier.
9763 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9764 (DECLARED_TYPE_TEMPLATE): Remove.
9765 (TYPE_DECLARED_TYPE): Remove.
9766 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9767 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9768 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9771 2010-02-02 Tom Tromey <tromey@redhat.com>
9773 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9774 * valops.c (search_struct_field): Compute nbases after calling
9776 (check_field): Call CHECK_TYPEDEF.
9777 * cp-valprint.c (cp_print_value): Pass correct address to
9778 baseclass_offset. Fix check for virtual base past the end of the
9779 object. Don't offset address passed to cp_print_value_fields or
9780 apply_val_pretty_printer.
9781 (cp_print_value_fields): Fix call to val_print.
9782 (cp_print_value_fields_rtti): New function.
9783 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9784 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9786 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9788 * language.h (struct language_defn) <la_val_print>: Document.
9789 * c-lang.h (cp_print_value_fields_rtti): Declare.
9791 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9794 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9795 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9796 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9798 2010-02-01 Michael Matz <matz@suse.de>
9799 Daniel Jacobowitz <dan@codesourcery.com>
9801 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9802 functions use a frame pointer.
9804 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9806 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9807 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9808 * config/djgpp/fnchange.lst: Add translations for
9809 symbol-without-target_section.exp and symbol-without-target_section.c.
9811 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9813 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9814 (remote_breakpoint_for_pc): Correct invalid_p check.
9815 * gdbarch.c: Regenerated.
9817 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9819 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9821 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9822 (extend_buffer_earlier): New function.
9823 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9824 (arm_adjust_breakpoint_address): New function.
9825 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9827 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9829 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9830 (arm_linux_thumb2_le_breakpoint): New constants.
9831 (arm_linux_init_abi): Set thumb2_breakpoint and
9832 thumb2_breakpoint_size.
9833 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9834 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9835 Implement support for single stepping through IT blocks if
9836 a 32-bit Thumb breakpoint instruction is available.
9837 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9838 is available, use it when needed.
9839 (arm_remote_breakpoint_from_pc): New function.
9840 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9841 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9842 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9844 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9846 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9847 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9848 * gdbarch.c, gdbarch.h: Regenerated.
9849 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9850 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9851 gdbarch_remote_breakpoint_from_pc.
9853 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9855 * infrun.c (prepare_to_proceed): Handle other signals which might
9857 (handle_inferior_event): Move the check for unusual breakpoint
9860 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9862 amd64 - function returning record with field straddling 2 registers.
9863 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9864 a record of length <= 16 in which a field straddles the two
9867 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9869 Implement return values on amd64-windows.
9870 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9871 (amd64_windows_return_value): New function.
9872 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9873 amd64_windows_return_value.
9875 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9877 amd64-windows: 32 bytes allocated on stack by caller for integer
9878 parameter registers.
9879 * i386-tdep.h (struct gdbarch_tdep): Add new field
9880 integer_param_regs_saved_in_caller_frame.
9881 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9882 tdep->integer_param_regs_saved_in_caller_frame to 1.
9883 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9884 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9886 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9888 amd64-windows: memory args passed by pointer during function calls.
9889 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9890 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9891 where tdep->memory_args_by_pointer is non-zero.
9892 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9893 tdep->memory_args_by_pointer to 1.
9895 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9897 amd64-windows: Integer parameters in function calls.
9898 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9900 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9901 call_dummy_integer_regs, and classify.
9902 * amd64-tdep.h (amd64_classify): Add declaration.
9903 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9904 (amd64_reg_class): Delete, moved to i386-tdep.h.
9905 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9906 Replace call to amd64_classify by call to tdep->classify.
9907 (amd64_push_arguments): Get the list of registers to use for
9908 passing integer parameters from the gdbarch tdep structure,
9909 rather than using a hardcoded one. Replace calls to amd64_classify
9910 by calls to tdep->classify.
9911 (amd64_push_dummy_call): Get the register number used for
9912 the "hidden" argument from tdep->call_dummy_integer_regs.
9913 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9914 and tdep->call_dummy_integer_regs. Set tdep->classify.
9915 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9916 (amd64_windows_dummy_call_integer_regs): New static global.
9917 (amd64_windows_classify): New function.
9918 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9919 tdep->call_dummy_integer_regs and tdep->classify.
9921 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9923 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9924 for the new regcache. All callers updated.
9925 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9926 (get_thread_arch_regcache): Do not set aspace here.
9927 * regcache.h (regcache_xmalloc): Update declaration.
9929 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9930 regcache_xmalloc updated.
9932 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9934 Another -Wunused-function error in procfs.c (sparc-solaris)
9935 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9936 Only define if SYS_syssgi is defined.
9937 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9938 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9939 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9942 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9944 * windows-nat.c (windows_initialization_done): New variable.
9945 (get_windows_debug_event): Issue error when process dies before
9946 completely initializing.
9947 (do_initial_windows_stuff): Set flag to indicate when we are done with
9948 the initial steps of attaching to the child.
9950 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9952 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9954 2010-01-27 Doug Evans <dje@google.com>
9956 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9958 * breakpoint.c (bpstat_stop_status): Delete useless code.
9960 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9962 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9963 objfile via SYMBOL_SYMTAB.
9965 2010-01-26 Tom Tromey <tromey@redhat.com>
9968 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9969 coerce_array on result.
9971 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9973 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9974 search_parent argument.
9975 (cp_add_using): Initialize 'searched' field.
9976 (reset_directive_searched): New function.
9977 * cp-support.h: Add 'searched' field to using_direct struct.
9978 (cp_lookup_symbol_imports): Ditto.
9979 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9980 Perform recursive search.
9981 Implement non parent search.
9982 * valops.c (value_maybe_namespace_elt): Updated.
9984 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9987 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9988 scopes which contain using directives even if they contain no
9990 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9991 la_lookup_symbol_nonlocal.
9992 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9993 cp_lookup_symbol_namespace.
9994 (cp_lookup_symbol_namespace): Perform an import lookup at every
9996 (cp_lookup_symbol_imports): New function.
9997 (cp_lookup_symbol_in_namespace): New function.
9999 2010-01-25 Tom Tromey <tromey@redhat.com>
10002 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10005 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10007 * configure.ac: Only use host_os part when disabling TUI on osf.
10008 Use test to check variables, prefix strings with x.
10009 * configure: Regenerate.
10011 * solib-osf.c (osf_current_sos): Initialize tail.
10013 2010-01-25 gingold <gingold@adacore.com>
10015 * windows-nat.c (windows_continue): Use %x to print thread id.
10016 (get_windows_debug_event): Ditto.
10018 2010-01-22 Tom Tromey <tromey@redhat.com>
10021 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10022 type and arguments. Use smash_to_methodptr_type.
10023 (read_structure_type): Call quirk_gcc_member_function_pointer
10025 * gdbtypes.h (smash_to_methodptr_type): Declare.
10026 * gdbtypes.c (smash_to_methodptr_type): New function.
10027 (lookup_methodptr_type): Use it.
10029 2010-01-21 Tom Tromey <tromey@redhat.com>
10032 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10033 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10034 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10035 (glibc_skip_solib_resolver): Use
10036 lookup_minimal_symbol_and_objfile.
10038 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10040 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10043 2010-01-20 Tom Tromey <tromey@redhat.com>
10045 PR backtrace/10770:
10046 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10047 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10048 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10049 dwarf_stack_values, not CORE_ADDRs.
10050 (execute_stack_op): Change DW_OP_div and comparison operators to
10051 use signed operands.
10053 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10055 Per-inferior args and tty and environment.
10057 * infcmd.c (inferior_args): Rename to ...
10058 (inferior_args_scratch): ... this.
10059 (inferior_io_terminal): Rename to ...
10060 (inferior_io_terminal_scratch): ... this.
10061 (inferior_argc, inferior_argv): Remove.
10062 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10063 inside current_inferior().
10064 (set_inferior_tty_command, show_inferior_tty_command): New.
10065 (get_inferior_args, set_inferior_args): Store inside
10066 current_inferior().
10067 (notice_args_set): Likewise and rename to...
10068 (set_args_command): ... this.
10069 (set_inferior_args_vector): Likewise.
10070 (notice_args_read): Rename to...
10071 (show_args_command): ...new.
10072 (tty_command): Remove.
10073 (run_command_1): Don't free old args, as they are freed by
10074 set_inferior_arg now.
10075 (run_no_args_command): Likewise.
10076 (inferior_environ): Remove.
10077 (run_command_1): Use environment of the current inferior.
10078 (environment_info, set_environment_command)
10079 (unset_environment_command, path_info, path_command): Likewise.
10080 (_initialize_infcmd): Adjust for function and variable renames.
10081 Do not init inferior_environ.
10082 * inferior.h (set_inferior_arg): Adjust prototype.
10083 (struct inferior): New fields args, argc, argv, terminal, environment.
10084 (inferior_environ): Remove declaration.
10085 * inferior.c (free_inferior): Free new fields.
10086 (add_inferior_silent): Initialize 'environment' field.
10087 * main.c (captured_main): Set arguments only after the initial
10088 inferior has been created. Set set_inferior_io_terminal,
10090 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10092 (_initialize_mi_cmd_env): Adjust for disappearance of global
10094 * solib.c (solib_find): Use environment of the current inferior.
10096 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10098 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10100 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10102 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10104 Get rid of ada-lang.c:function_name_from_pc.
10105 * ada-lang.c: Add "stack.h" #include.
10106 (function_name_from_pc): Delete.
10107 (is_known_support_routine): Replace call to function_name_from_pc
10108 by call to find_frame_funname.
10109 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10111 2010-01-19 Tom Tromey <tromey@redhat.com>
10114 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10117 2010-01-19 Tom Tromey <tromey@redhat.com>
10119 * top.c (stop_sig, float_handler, do_nothing): Remove.
10121 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10123 * breakpoint.c (watchpoint_check): Check the call
10124 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10125 Extend the comment.
10126 * config/djgpp/fnchange.lst: Add translations for
10127 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10128 watchpoint-cond-gone-stripped.c.
10130 2010-01-19 Tom Tromey <tromey@redhat.com>
10133 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10134 into parent scope, and enumerator into grandparent scope.
10136 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10138 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10140 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10142 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10143 i[34567]86-*-solaris2.1[0-9]*.
10144 * configure.tgt: Likewise.
10146 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10148 * NEWS: Document the source command enhancement allowing it
10149 to load Python scripts. Document the "set/show script-extension"
10152 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10154 Add -Wunused-function to compile flags.
10155 * configure.ac: Add -Wunused-function to build_warnings.
10156 * configure: Regenerate.
10158 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10160 "delete" ada-lex.c:input function, not used.
10161 * ada-lex.l: #define YY_NO_INPUT.
10163 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10165 Delete free_named_symtabs and associated cleanup.
10166 * symfile.h (free_named_symtabs): Delete declaration.
10167 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10168 (cashier_psymtab): Comment function out.
10169 Delete declaration.
10170 (free_named_symtabs): Delete.
10171 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10172 * dbxread.c (end_psymtab): Likewise.
10173 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10174 * exec.c (exec_close_1): Ditto.
10175 * xcoffread.c (xcoff_end_psymtab): Likewise.
10177 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10179 * stack.c (print_block_frame_labels): Comment function out.
10181 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10183 Delete unused or undefined functions.
10184 * breakpoint.c (ep_parse_optional_filename): Delete.
10185 * dcache.c (dcache_write_line): Remove declaration.
10186 * infrun.c (build_infrun): Remove declaration.
10187 * tracepoint.c (tracepoint_save_command): Remove declaration.
10188 * linux-nat.c (init_lwp_list): Delete. No longer used.
10189 * event-loop.c (check_async_signal_handlers): Delete declaration.
10190 * infrun.c (init_execution_control_state): Delete.
10191 (proceed): Update comment to avoid mentioning
10192 init_execution_control_state.
10193 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10194 * ada-lang.c (ada_to_static_fixed_value): Delete.
10195 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10196 * cp-namespace.c (cp_copy_usings): Delete.
10197 * xml-syscall.c (xml_number_of_syscalls): Delete.
10198 * progspace.c (find_program_space_by_num): Delete.
10199 * inflow.c (handle_sigio): Delete declaration.
10200 * hppa-tdep.c (hppa_alignof): Delete.
10201 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10202 (mipsnbsd_core_osabi_sniffer): Delete.
10204 2010-01-18 Tom Tromey <tromey@redhat.com>
10207 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10208 (CONST_CAST): New tokens.
10209 (exp): Add new productions.
10210 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10212 (is_cast_operator): New function.
10213 (yylex): Handle cast operators specially.
10214 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10215 UNOP_REINTERPRET_CAST>: New cases.
10216 * expprint.c (print_subexp_standard): Likewise.
10217 (op_name_standard): Likewise.
10218 (dump_subexp_body_standard): Likewise.
10219 * parse.c (operator_length_standard): Likewise.
10220 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10221 UNOP_REINTERPRET_CAST.
10222 * gdbtypes.c (class_types_same_p): New function.
10223 (is_ancestor): Use it.
10224 (is_public_ancestor): New function.
10225 (is_unique_ancestor_worker): Likewise.
10226 (is_unique_ancestor): Likewise.
10227 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10228 (is_unique_ancestor): Declare.
10229 * valops.c (value_reinterpret_cast): New function.
10230 (dynamic_cast_check_1): Likewise.
10231 (dynamic_cast_check_2): Likewise.
10232 (value_dynamic_cast): Likewise.
10233 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10235 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10237 Fix build failure when building without Python support.
10238 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10241 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10243 Use XVS field type instead of doing a parallel lookup.
10244 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10245 if it is a reference type instead of doing a type lookup using
10246 the XVS field name.
10248 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10250 Trust PAD types instead of using PAD___XVS.
10251 * ada-lang.c (trust_pad_over_xvs): New static variable.
10252 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10253 parallel XVS type, follow the XVS type instead of the PAD type.
10254 (unwrap_value): Make sure that there is no parallel XVE type
10255 before returning the value as is.
10256 (set_ada_list, show_ada_list): New static variables.
10257 (set_ada_command, show_ada_command): New functions.
10258 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10259 Add new "set/show ada trust-PAD-over-XVS" setting.
10261 2010-01-18 Tom Tromey <tromey@redhat.com>
10262 Thiago Jung Bauermann <bauerman@br.ibm.com>
10264 Allow "source" to load python scripts.
10265 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10266 * python/python.c (source_python_script): New function.
10267 * python/python.h (source_python_script): Add declaration.
10268 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10269 (script_ext_off, script_ext_soft, script_ext_strict)
10270 (script_ext_enums, script_ext_mode): New static constants.
10271 (show_script_ext_mode, find_and_open_script): New functions.
10272 (source_script): Enhance to handle Python scripts.
10273 (init_cli_cmds): Add set/show script-extension commands.
10275 2010-01-16 Stan Shebs <stan@codesourcery.com>
10277 * tracepoint.h (struct trace_status): Use unsigned long long
10279 * tracepoint.c (trace_status_command): Fix printf directive.
10280 (trace_save_command): Check fwrite returns, fix printf directive.
10281 (trace_filename): New global.
10282 (tfile_open): Set it, check read returns.
10283 (tfile_close): Free trace_filename.
10284 (tfile_get_traceframe_address): Check read returns.
10285 (tfile_trace_find): Ditto.
10286 (tfile_fetch_registers): Ditto.
10287 (tfile_xfer_partial): Ditto.
10288 (tfile_get_trace_state_variable_value): Ditto.
10290 2010-01-15 Stan Shebs <stan@codesourcery.com>
10292 Add trace file support.
10293 * tracepoint.h (enum trace_stop_reason): New enum.
10294 (struct trace_status): New struct.
10295 (parse_trace_status): Declare.
10296 (struct uploaded_tp): Move here from remote.c,
10297 add fields for actions.
10298 (struct uploaded_tsv): New struct.
10299 * tracepoint.c (tfile_ops): New target vector.
10300 (trace_fd): New global.
10301 (tfile_open): New function.
10302 (tfile_close): New function.
10303 (tfile_files_info): New function.
10304 (tfile_get_trace_status): New function.
10305 (tfile_get_traceframe_address): New function.
10306 (tfile_trace_find): New function.
10307 (tfile_fetch_registers): New function.
10308 (tfile_xfer_partial): New function.
10309 (tfile_get_trace_state_variable_value): New function.
10310 (init_tfile_ops): New function.
10311 (_initialize_tracepoint): Call it, add tfile target.
10312 (trace_status): New global.
10313 (current_trace_status): New function.
10314 (trace_running_p): Remove, change all users to get from
10315 current_trace_status()->running.
10316 (get_trace_status): Remove.
10317 (trace_status_command): Call target_get_trace_status directly,
10318 report more detail including tracing stop reasons.
10319 (trace_find_command): Always allow tfind on a file.
10320 (trace_find_pc_command): Ditto.
10321 (trace_find_tracepoint_command): Ditto.
10322 (trace_find_line_command): Ditto.
10323 (trace_find_range_command): Ditto.
10324 (trace_find_outside_command): Ditto.
10325 (trace_frames_offset, cur_offset): Declare as off_t.
10326 (trace_regblock_size): Rename from reg_size, update users.
10327 (parse_trace_status): New function.
10328 (tfile_interp_line): New function.
10329 (disconnect_or_stop_tracing): Ensure current trace
10330 status before asking what to do.
10331 (stop_reason_names): New global.
10332 (trace_save_command): New command.
10333 (get_uploaded_tp): Move here from remote.c.
10334 (find_matching_tracepoint): Ditto.
10335 (merge_uploaded_tracepoints): New function.
10336 (parse_trace_status): Use stop_reason_names.
10337 (_initialize_tracepoint): Define tsave command.
10338 * target.h (target_ops): New fields to_save_trace_data,
10339 to_upload_tracepoints, to_upload_trace_state_variables,
10340 to_get_raw_trace_data, change to_get_trace_status
10341 to take a pointer to a status struct.
10342 (target_save_trace_data): New macro.
10343 (target_upload_tracepoints): New macro.
10344 (target_upload_trace_state_variables): New macro.
10345 (target_get_raw_trace_data): New macro.
10346 * target.c (update_current_target): Add new methods, change
10347 signature of to_get_trace_status.
10348 * remote.c (hex2bin): Make globally visible.
10350 (remote_download_trace_state_variable): Download name also.
10351 (remote_get_trace_status): Update parameter, use
10352 parse_trace_status.
10353 (remote_save_trace_data): New function.
10354 (remote_upload_tracepoints): New function.
10355 (remote_upload_trace_state_variables): New function.
10356 (remote_get_raw_trace_data): New function.
10357 (remote_start_remote): Use them.
10358 (_initialize_remote_ops): Add operations.
10359 * ax-gdb.c: Include breakpoint.h.
10360 * breakpoint.c (create_tracepoint_from_upload): Use
10361 break_command_really, return tracepoint, warn about unimplemented
10363 * NEWS: Mention trace file addition.
10365 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10367 Fix compilation warning on gcc-3.4.
10368 * exec.c (print_section_info): Move the `displacement' variable
10369 initialization to its declaration.
10371 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10373 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10376 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10378 "info tasks" broken by typedefs in ATCB type definitions.
10379 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10380 ada_check_typedef before retrieving the length of the type for
10383 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10385 Do not use name-based lookup for unconstrained packed arrays.
10386 * ada-lang.c (find_parallel_type_by_descriptive_type):
10387 Limit the fallback to name-based lookups to the case where
10388 the type is a constrained packed array.
10390 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10392 Enhance gdb-gdb.py to handle main_type.type_specific.
10393 * gdb-gdb.py: Print the type-specific part of struct main_type.
10395 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10397 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10398 * configure: Regenerate.
10399 * config.in: Regenerate.
10400 * utils.c: Include sys/resource.h.
10401 (dump_core, can_dump_core): New.
10402 (internal_vproblem): Update the comment. Check can_dump_core while
10403 setting dump_core_p. Replace two abort calls by dump_core calls.
10405 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10406 Eli Zaretskii <eliz@gnu.org>
10408 * NEWS: Document the PIE support.
10410 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10412 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10413 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10415 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10417 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10418 Replace exec_entry_point call by bfd_get_start_address.
10420 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10422 Support Valgrind attachments broken by the PIE support.
10423 * auxv.c: Include gdbcore.h.
10424 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10425 parameters ops, object and annex. Remove their assertions.
10426 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10427 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10428 (memory_xfer_auxv): ... here.
10429 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10431 * procfs.c (procfs_xfer_partial): Likewise.
10432 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10433 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10434 (svr4_solib_create_inferior_hook): Conditionalize the
10435 svr4_relocate_main_executable call.
10437 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10439 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10440 target_section. Find SECT in current_target_sections, gdb_assert it.
10441 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10443 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10444 of separate debug info file.
10446 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10448 Support PIEs with no symfile_objfile.
10449 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10450 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10452 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10454 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10456 (svr4_static_exec_displacement): ... a new function.
10457 (svr4_exec_displacement): New function.
10458 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10459 new_offsets using alloca now. Remove variable old_chain and changed.
10460 Call objfile_relocate unconditionally now.
10462 2010-01-14 Doug Evans <dje@google.com>
10464 * gdbtypes.c (arch_flags_type): Fix comment.
10465 * gdbtypes.h (arch_composite_type): Fix comment.
10467 2009-01-14 Tristan Gingold <gingold@adacore.com>
10469 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10470 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10471 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10472 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10473 macho_add_oso_symfile.
10474 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10476 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10478 Tru64: Dead threads are never deleted.
10479 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10480 (dec_thread_count_gdb_threads): Fix counter increment.
10481 (dec_thread_add_gdb_thread): Fix *listp increment.
10482 (resync_thread_list): Fix bug in deletion of dead threads that
10483 caused all threads to be deleted, instead of just the dead ones.
10485 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10489 * python/python-internal.h: Add lazy_string_object_type
10491 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10492 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10493 * python/py-value.c (valpy_lazy_string): New function.
10494 (convert_value_from_python): Add lazy string conversion.
10495 * python/py-prettyprint.c (pretty_print_one_value): Check if
10496 return is also a lazy string.
10497 (print_string_repr): Add lazy string printing branch.
10498 (print_children): Likewise.
10499 * python/py-lazy-string.c: New file. Implement lazy strings.
10500 * python/python.c (_initialize_python): Call
10501 gdbpy_initialize_lazy_string.
10502 * varobj.c (value_get_print_value): Add lazy string printing
10503 branch. Account for encoding.
10504 * c-lang.c (c_printstr): Account for new encoding argument. If
10505 encoding is NULL, find encoding suited for type, otherwise use
10507 * language.h (language_defn): Add encoding argument.
10508 (LA_PRINT_STRING): Likewise.
10509 * language.c (unk_lang_printstr): Update to reflect new encoding
10510 argument to language_defn.
10511 * ada-lang.h (ada_printstr): Likewise.
10512 * c-lang.h (c_printstr): Likewise.
10513 * p-lang.h (pascal_printstr);
10514 * f-lang.c (f_printstr): Likewise.
10515 * m2-lang.c (m2_printstr): Likewise.
10516 * objc-lang.c (objc_printstr): Likewise.
10517 * p-lang.c (pascal_printstr): Likewise.
10518 * scm-lang.c (scm_printstr): Likewise.
10519 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10521 * ada-valprint.c (ada_printstr): Likewise.
10522 * f-valprint.c (f_val_print): Likewise
10523 * m2-valprint.c (m2_val_print): Likewise.
10524 * p-valprint.c (pascal_val_print): Likewise.
10525 * expprint.c (print_subexp_standard): Likewise.
10526 * valprint.c (val_print_string): Likewise.
10527 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10528 (SUBDIR_PYTHON_SRCS): Likewise.
10529 (py-lazy-string.o): New rule.
10531 2010-01-13 Doug Evans <dje@google.com>
10533 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10534 uninitialized" warning from gcc on local `tree'.
10536 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10538 Implement core awareness.
10540 * bcache.c (compare_ints): Remove
10541 (print_percentage): Use compare_positive_ints.
10542 * defs.h (compare_positive_ints): Declare.
10543 * linux-nat.h (struct lin_lwp): New field core.
10544 (linux_nat_core_of_thread_1): Declare.
10545 * linux-nat.c (add_lwp): Init the 'core' field.
10546 (linux_nat_wait_1): Record the core.
10547 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10548 (linux_nat_add_target): Register the above.
10549 * linux-thread-db.c (update_thread_core): New.
10550 (thread_db_find_new_threads): Update core information for
10552 * remote.c (struct private_thread_info): New.
10553 (free_private_thread_info, demand_private_info): New.
10554 (PACKET_qXfer_threads, use_osdata_threads): New.
10555 (struct thread_item, threads_parsing_context
10556 (start_thread, end_thread, thread_attributes)
10557 (thread_children, threads_children, threads_elements): New.
10558 (remote_threads_info): Try qXfer:threads before anything
10560 (remote_protocol_packets): Register qXfer:threads.
10561 (remote_open_1): Init use_osdata_threads.
10562 (struct stop_reply): New field 'core'.
10563 (remote_parse_stop_reply): Parse core number.
10564 (process_stop_reply): Record core number.
10565 (remote_xfer_partial): Handle qXfer:threads.
10566 (remote_core_of_thread): New.
10567 (init_remote_ops): Register remote_core_of_thread.
10568 (_initialize_remote): Register qXfer:read.
10569 * target.c (target_core_of_thread): New
10570 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10571 (struct target_ops): New field to_core_of_threads.
10572 (target_core_of_thread): Declare.
10573 * gdbthread.h (struct thread_info): New field private_dtor.
10574 * thread.c (print_thread_info): Report the core.
10575 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10576 * utils.c (compare_positive_ints): New.
10577 * features/threads.dtd: New.
10578 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10579 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10580 (do_nothing, free_vector_of_osdata_items)
10581 (splay_tree_int_comparator, free_splay_tree): New.
10582 (print_one_inferior_data): Implemented printing of selected
10583 inferiors. Collect and print cores.
10584 (output_cores): New.
10585 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10586 thread groups together with --available.
10588 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10590 * configure: Regenerate (for _STRUCTURED_PROC).
10592 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10594 Delete dead function.
10595 * ada-lang.c (extract_string): Delete. No longer used.
10597 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10599 Fix -Wunused warning in dec-thread.c.
10600 * dec-thread.c (dec_thread_count_gdb_threads)
10601 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10603 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10605 * ada-valprint.c (ada_print_floating): Remove trailing space.
10607 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10609 Add support for DW_AT_GNAT_descriptive_type.
10610 * gdbtypes.h (enum type_specific_kind): New enum.
10611 (struct main_type) [type_specific_field]: New component.
10612 [type_specific]: Add new component "gnat_stuff".
10613 (struct gnat_aux_type): New type.
10614 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10615 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10616 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10617 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10618 (TYPE_SPECIFIC_FIELD): New macros.
10619 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10620 type does not hold any cplus-specific data.
10621 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10622 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10623 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10624 cplus-specific data.
10625 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10626 Set new component TYPE_SPECIFIC_FIELD (type).
10627 (gnat_aux_default): New constant.
10628 (allocate_gnat_aux_type): New function.
10629 (init_type): Add initialization the type-specific stuff for
10630 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10631 (print_gnat_stuff): New function.
10632 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10633 specific data. Adjust code that prints the contents of the
10634 type-specific union using the TYPE_SPECIFIC_FIELD value.
10635 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10636 the type cplus stuff for Ada types.
10637 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10638 Error out if these routines are called with an Ada type.
10639 (read_structure_type, read_array_type, read_subrange_type):
10640 Add call to set_descriptive_type.
10641 (set_die_type): Initialize the gnat-specific data if necessary.
10642 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10644 * ada-lang.c (decode_constrained_packed_array_type): Use
10645 decode_constrained_packed_array_type instead of doing a standard
10646 lookup to locate a parallel type.
10647 (find_parallel_type_by_descriptive_type): New function.
10648 (ada_find_parallel_type_with_name): New function.
10649 (ada_find_parallel_type): Reimplement using
10650 ada_find_parallel_type_with_name.
10651 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10652 to check if type has a cplus stuff.
10653 * linespec.c (total_number_of_methods): Likewise.
10654 * mdebugread.c (new_type): Likewise.
10656 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10658 * NEWS: Document the 0b binary number prefix parsing.
10660 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10662 * objfiles.c (objfile_relocate1): Change the return type to int.
10663 Describe the new return value. Return non-zero if data changed.
10664 (objfile_relocate): New variable changed. Set it. Call
10665 breakpoint_re_set depending on CHANGED.
10667 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10669 Implement binary numbers parsing.
10670 * c-exp.y (parse_number): New case 'b' and 'B'.
10672 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10673 Tristan Gingold <gingold@adacore.com>
10675 * solib.c (info_sharedlibrary_command): Replace
10676 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10677 objfile_has_symbols.
10679 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10681 * NEWS: Document the improvements made to the mips-irix port.
10683 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10685 Fix the documentation of valprint.c:value_print.
10686 * valprint.c (value_print): Update the function description to
10687 mention that the syntax of the output follows the current_language,
10690 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10692 Fix displacement of separate debug info files.
10693 * objfiles.c (objfile_relocate): Rename to ...
10694 (objfile_relocate1): ... here and make it static. Extend the comment.
10695 (objfile_relocate): New function.
10696 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10697 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10698 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10699 allocated using alloca.
10700 * symfile.c (copy_section_addr_info): Remove.
10701 (build_section_addr_info_from_objfile): Make it global. New variables
10702 addr_bit and mask, use them.
10703 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10704 (copy_section_addr_info): Remove.
10706 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10708 Signal unwinder for mips-irix N32.
10709 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10711 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10712 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10713 (SIGCONTEXT_LO_OFF): New macros.
10714 (mips_irix_n32_tramp_frame_init): New function.
10715 (mips_irix_n32_tramp_frame): New static constant.
10716 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10718 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10720 Breakpoint in shared library does not work on mips-irix.
10721 * procfs.c: #include "observer.h".
10722 (procfs_inferior_created): New function, moving here the code
10723 which unsets the syssgi syscall-exit notifications.
10724 (procfs_create_inferior): Remove the code which unsets the syssgi
10725 syscall-exit notifications. It is too early to do this here.
10726 (_initialize_procfs): Attach the procfs_inferior_created observer.
10728 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10730 Wrong return convention for arrays (mips-irix).
10731 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10732 128 bits or smaller are returned the same way as structs
10733 and unions of the the same size.
10735 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10737 Cannot set the PC on mips-irix.
10738 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10739 register number, no the cooked one.
10741 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10743 Error while loading core file on mips-irix.
10744 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10745 if debugging from a core file.
10747 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10749 GDB hangs when attaching to process on mips-irix.
10750 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10751 attaching to a process.
10753 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10755 Use the correct breakpoint instruction on mips-irix.
10756 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10757 containing the correct breakpoint instruction to use on mips-irix.
10758 Use it when the osabi is GDB_OSABI_IRIX.
10760 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10762 -Wunused warning in procfs.c (mips-irix only).
10763 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10764 throughout instead of using praddset and prdelset respectively.
10766 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10768 GDB crash while stepping into function.
10769 * infrun.c (handle_inferior_event): Refetch the current frame
10770 after handling what.main_action, in case that pointer became
10773 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10775 Fix build failure of solaris-hosted cross debuggers.
10776 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10778 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10780 Fix build failure on sparc-solaris.
10781 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10783 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10785 Move some symfile code into subroutines.
10786 * symfile.h (relative_addr_info_to_section_offsets)
10787 (addr_info_make_relative): New prototypes.
10788 * symfile.c (default_symfile_offsets): Move a part to ...
10789 (relative_addr_info_to_section_offsets): ... this new function.
10790 (default_symfile_offsets): Call it.
10791 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10793 (addr_info_make_relative): ... this new function.
10795 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10797 Add from_tty to solib_create_inferior_hook.
10798 * infcmd.c (post_create_inferior): Move solib_add after
10799 solib_create_inferior_hook. Pass from_tty to
10800 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10801 0 from_tty and comment why.
10802 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10803 * linux-nat.c (linux_child_follow_fork): Likewise.
10804 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10805 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10807 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10808 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10809 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10810 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10811 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10812 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10813 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10814 Pass it to svr4_so_ops.solib_create_inferior_hook.
10815 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10817 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10819 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10821 * solib-target.c (solib_target_solib_create_inferior_hook): New
10822 parameter from_tty.
10823 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10824 it to ops->solib_create_inferior_hook.
10825 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10826 Move solib_add after solib_create_inferior_hook, call it now with
10827 from_tty as 0. New comment there.
10828 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10829 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10832 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10834 Fix multiexec race.
10835 * infrun.c (handle_inferior_event): Use get_thread_regcache
10836 with events ptid, not get_current_regcache.
10838 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10840 GDB crash with empty executable name (MinGW).
10841 * source.c (openp): Add assert that parameter string is not NULL.
10842 if parameter string is an empty string, then return with a failure
10845 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10847 Get rid of support for VAX Floats.
10848 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10849 (ada_vax_float_print_function): Delete.
10850 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10851 (ada_vax_float_print_function): Delete.
10852 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10853 (ada_print_type): Remove support for VAX floats.
10854 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10856 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 * stabsread.c (read_args): Handle zero arguments.
10860 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10862 Cannot find in-tree libiconv.a after reconfigure.
10863 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10864 that we can use, then cache the path to this archive.
10865 * configure: Regenerate.
10867 2010-01-07 Stan Shebs <stan@codesourcery.com>
10869 Make tracepoint operations go through target vector.
10870 * target.h (enum trace_find_type): New enum.
10871 (struct target_ops): New fields to_trace_init,
10872 to_download_tracepoint, to_download_trace_state_variable,
10873 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10874 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10875 to_set_disconnected_tracing.
10876 (target_trace_init): New macro.
10877 (target_download_tracepoint): New macro.
10878 (target_download_trace_state_variable): New macro.
10879 (target_trace_start): New macro.
10880 (target_trace_set_readonly_regions): New macro.
10881 (target_get_trace_status): New macro.
10882 (target_trace_stop): New macro.
10883 (target_trace_find): New macro.
10884 (target_get_trace_state_variable_value): New macro.
10885 (target_set_disconnected_tracing): New macro.
10886 * target.c (update_current_target): Inherit and set defaults for
10887 tracepoint operations.
10888 * tracepoint.c (default_collect): Make globally visible.
10889 (target_is_remote): Remove, along with all calls.
10890 (tvariables_info): Call target_get_trace_state_variable_value.
10891 (remote_set_transparent_ranges): Remove.
10892 (trace_start_command): Call target_trace_init,
10893 target_download_tracepoint, etc.
10894 (download_tracepoint): Remove.
10895 (trace_stop_command): Simplify.
10896 (stop_tracing): Call target_trace_stop.
10897 (get_trace_status): Call target_get_trace_status.
10898 (trace_status_command): Add case for targets that cannot trace.
10899 (finish_tfind_command): Change to take numerical arguments, call
10901 (trace_find_command): Update call to finish_tfind_command.
10902 (trace_find_pc_command): Ditto.
10903 (trace_find_tracepoint_command): Ditto.
10904 (trace_find_line_command): Ditto.
10905 (trace_find_range_command): Ditto.
10906 (trace_find_outside_command): Ditto.
10907 (set_disconnected_tracing_value): Call
10908 target_set_disconnected_tracing.
10909 * remote.c: Add protocol encoding bits from tracepoint.c.
10910 (trace_error): Move from tracepoint.c.
10911 (remote_get_noisy_reply): Ditto.
10912 (free_actions_list_cleanup_wrapper): Ditto.
10913 (free_actions_list): Ditto.
10914 (remote_trace_init): New function.
10915 (remote_download_tracepoint): New function.
10916 (remote_download_trace_state_variable): New function.
10917 (remote_trace_set_readonly_regions): New function.
10918 (remote_trace_start): New function.
10919 (remote_get_trace_status): New function.
10920 (remote_trace_stop): New function.
10921 (remote_trace_find): New function.
10922 (remote_download_trace_state_variable): New function.
10923 (remote_set_disconnected_tracing): New function.
10924 (init_remote_ops): Add tracepoint operations.
10926 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10928 2010-01-07 Tristan Gingold <gingold@adacore.com>
10930 * symfile.c (build_section_addr_info_from_objfile): New function.
10931 (symbol_file_add_separate): Don't use offsets from objfile but
10932 built an addr info.
10934 2010-01-06 Stan Shebs <stan@codesourcery.com>
10936 Support disconnected tracing.
10937 * infcmd.c (detach_command): Ask whether to stop tracing.
10938 * cli/cli-cmds.c (quit_command): Ditto.
10939 * breakpoint.h (struct breakpoint): New field number_on_target.
10940 * breakpoint.c (create_tracepoint_from_upload): New function.
10941 (get_tracepoint_by_number_on_target): New function.
10942 * remote.c (struct remote): New field disconnected_tracing.
10943 (remote_disconnected_tracing_feature): New function.
10944 (remote_protocol_features): Add DisconnectedTracing.
10945 (struct uploaded_tp): New struct.
10946 (uploaded_tps): New global.
10947 (get_uploaded_tp): New function.
10948 (find_matching_tracepoint): New function.
10949 (remote_get_tracing_state): New function.
10950 (remote_start_remote): Call it.
10951 * tracepoint.c (disconnected_tracing): New global.
10952 (trace_start_command): Initialize number_on_target.
10953 (stop_tracing): New function, split out from...
10954 (trace_stop_command): Call stop_tracing.
10955 (get_trace_status): New function, split out from...
10956 (trace_status_command): Call get_trace_status, add info on
10957 disconnection behavior.
10958 (disconnect_or_stop_tracing): New function.
10959 (finish_tfind_command): Translate from number on target.
10960 (trace_find_tracepoint_command): Translate to number on target.
10961 (send_disconnected_tracing_value): New function.
10962 (set_disconnected_tracing): New function.
10963 (_initialize_tracepoint): Add disconnected-tracing variable.
10964 * NEWS: Mention disconnected tracing.
10966 2010-01-06 Tristan Gingold <gingold@adacore.com>
10968 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10969 parameter to main_objfile. Iterate on all separate debug objfiles.
10970 * symfile.h (symbol_file_add_separate)
10971 (find_separate_debug_file_by_debuglink): Remove parameter names.
10972 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10973 (reread_symbols): Use free_objfile_separate_debug.
10974 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10976 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10977 (free_objfile_separate_debug): New prototypes.
10978 * objfiles.c (objfile_separate_debug_iterate): New function.
10979 (add_separate_debug_objfile, free_objfile_separate_debug): New
10981 (free_objfile): Use free_objfile_separate_debug. Adjust for
10982 multiple separate debug objfile.
10983 (objfile_has_symbols): Adjust comment. Iterate on all separate
10985 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10987 (lookup_minimal_symbol_text): Ditto.
10988 (lookup_minimal_symbol_by_pc_name): Ditto.
10989 (lookup_minimal_symbol_solib_trampoline): Ditto.
10990 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10993 2010-01-05 Stan Shebs <stan@codesourcery.com>
10995 Add fast tracepoints.
10996 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10997 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10998 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10999 * breakpoint.c (tracepoint_type): New function.
11000 (ALL_TRACEPOINTS): Use it.
11001 (should_be_inserted): Ditto.
11002 (bpstat_check_location): Ditto.
11003 (print_one_breakpoint_location): Ditto.
11004 (user_settable_breakpoint): Ditto.
11005 (set_breakpoint_location_function): Ditto.
11006 (disable_breakpoints_in_shlibs): Ditto.
11007 (delete_trace_command): Ditto.
11008 (print_it_typical): Add bp_fast_tracepoint case.
11009 (bpstat_what): Ditto.
11010 (print_one_breakpoint_location): Ditto.
11011 (allocate_bp_location): Ditto.
11013 (breakpoint_re_set_one): Ditto.
11014 (disable_command): Ditto.
11015 (enable_command): Ditto.
11016 (check_fast_tracepoint_sals): New function.
11017 (break_command_really): Call it.
11018 (ftrace_command): New function.
11019 (_initialize_breakpoint): Add ftrace command.
11020 * gdbarch.sh (fast_tracepoint_valid_at): New.
11021 * gdbarch.h, gdbarch.c: Regenerate.
11022 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11023 (i386_gdbarch_init): Use it.
11024 * remote.c (struct remote_state): New field fast_tracepoints.
11025 (PACKET_FastTracepoints): New packet config type.
11026 (remote_fast_tracepoint_feature): New function.
11027 (remote_protocol_features): Add FastTracepoints.
11028 (remote_supports_fast_tracepoints): New function.
11029 (_initialize_remote): Add FastTracepoints.
11030 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11031 * NEWS: Mention fast tracepoints.
11033 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11035 * gdb-gdb.py: New file.
11037 2010-01-05 Michael Snyder <msnyder@vmware.com>
11039 * infrun.c (handle_inferior_event): Fix typo in comment.
11041 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11043 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11045 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11047 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11049 (s390-linux32-expedite): Define.
11050 (s390-linux64-expedite): Define.
11051 (s390x-linux64-expedite): Define.
11052 * features/s390-acr.xml: New file.
11053 * features/s390-fpr.xml: New file.
11054 * features/s390-core32.xml: New file.
11055 * features/s390-core64.xml: New file.
11056 * features/s390x-core64.xml: New file.
11057 * features/s390-linux32.xml: New file.
11058 * features/s390-linux64.xml: New file.
11059 * features/s390x-linux64.xml: New file.
11060 * features/s390-linux32.c: New generated file.
11061 * features/s390-linux64.c: New generated file.
11062 * features/s390x-linux64.c: New generated file.
11064 * regformats/s390-linux32.dat: New generated file.
11065 * regformats/s390-linux64.dat: New generated file.
11066 * regformats/s390x-linux64.dat: New generated file.
11067 * regformats/reg-s390.dat: Remove.
11068 * regformats/reg-s390x.dat: Remove.
11070 * s390-nat.c: Include "auxv.h" and <elf.h>.
11071 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11072 (s390_target_wordsize): New function.
11073 (s390_auxv_parse): Likewise.
11074 (s390_get_hwcap): Likewise.
11075 (s390_read_description): Likewise.
11076 (_initialize_s390_nat): Install s390_auxv_parse and
11077 s390_read_description.
11079 * s390-tdep.c: Include "features/s390-linux32.c",
11080 "features/s390-linux64.c", and "features/s390x-linux64.c".
11081 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11082 (s390_register_call_saved): New function.
11083 (s390_register_name): Remove.
11084 (s390_register_type): Remove.
11085 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11086 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11087 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11088 (s390_pseudo_register_name): New function.
11089 (s390_pseudo_register_type): New function.
11090 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11091 Handle full GPR pesudos and varying pseudo register numbers.
11092 (s390_pseudo_register_write): Likewise
11093 (s390x_pseudo_register_read): Remove.
11094 (s390x_pseudo_register_write): Likewise.
11095 (s390_register_group): Remove.
11096 (s390_pseudo_register_group): New function.
11097 (s390_regmap_gregset): Add GPR upper halves.
11098 (s390x_regmap_gregset): Likewise.
11099 (s390_regmap_fpregset): Likewise.
11100 (s390_regmap_upper): New global variable.
11101 (s390_upper_regset): New global variable.
11102 (s390_upper_regset_sections): New global variable.
11103 (s390_regset_from_core_section): Handle GPR upper halves.
11104 (s390_core_read_description): New function.
11105 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11106 register information. Handle varying pseudo register numbers.
11107 (s390_backchain_frame_unwind_cache): Likewise.
11108 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11109 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11110 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11111 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11112 Handle varying pseudo register numbers.
11113 (s390_unwind_pc): Handle varying pseudo register numbers.
11114 (s390_dwarf2_prev_register): New function.
11115 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11116 register information. Handle varying pseudo register numbers.
11117 Install s390_dwarf2_prev_register to unwind full GPRs.
11118 (s390_gdbarch_init): Handle target descriptions. Assign varying
11119 pseudo register numbers. Install s390_adjust_frame_regnum.
11120 (_initialize_s390_tdep): Initialize target descriptions.
11122 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11123 (S390_NUM_REGS): Redefine to include upper half registers.
11124 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11125 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11126 (tdesc_s390_linux32): Add declaration.
11127 (tdesc_s390_linux64): Likewise.
11128 (tdesc_s390x_linux64): Likewise.
11130 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11132 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11133 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11134 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11135 (ppc_linux_vmx_regset_sections): Likewise.
11136 (ppc_linux_fp_regset_sections): Likewise.
11138 * corelow.c (get_core_register_section): Constify arguments.
11139 (get_core_registers): Use gdbarch_core_regset_sections instead
11140 of hard-coded platform-specific register section names.
11142 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11144 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11145 a register, assume the least-significant part is used.
11146 (write_pieced_value): Likewise.
11148 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11150 * printcmd.c: Include "arch-utils.h".
11151 (do_one_display): Re-parse expression if current architecture changed.
11153 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11154 Joel Brobecker <brobecker@adacore.com>
11156 * gdbtypes.c (check_typedef): New comment on type length.
11157 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11158 comment on type length.
11159 (value_primitive_field): Keep the original TYPE value, new comment.
11161 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11163 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11164 p_start. Change != comparisons to > and < comparisons.
11166 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11168 * cli/cli-script.c (process_next_line): Check P2 overrun.
11170 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11172 Update the copyright hearder to add year 2010 for most GDB files.
11174 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11176 Fix build failure in inf-ptrace.c.
11177 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11179 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11181 * top.c (print_gdb_version): Update copyright year.
11183 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11185 Fix break *FUN'address thread NUM.
11186 * ada-lex.l (task): Expand rule to also match the thread keyword.
11188 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11190 Fix break *FUN'address task NUM.
11191 * ada-lex.l (task): New rule.
11192 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11193 been built before using it.
11195 For older changes see ChangeLog-2009.
11201 version-control: never