1 2010-11-25 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.h: No longer include python.h or python-internal.h.
4 (struct breakpoint_object): Forward declare.
5 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
6 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
7 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
9 (gdbpy_breakpoint_created): Remove casts around py_bp_object
12 2010-11-24 Joel Brobecker <brobecker@adacore.com>
14 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
15 only if HAVE_ELF is defined.
17 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
20 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
21 (save_inferior_status) <stepping_over_breakpoint>
22 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
24 (struct inferior_status) <step_resume_break_address>: Remove.
26 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
29 * infrun.c (struct inferior_status, save_inferior_status)
30 (restore_inferior_status): Group and reorder the fields, comment their
33 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
37 (struct dict_vector) <iter_match_first, iter_match_next>
38 (iter_match_first_hashed, iter_match_next_hashed)
39 (iter_match_first_linear, iter_match_next_linear)
40 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
41 (iter_match_next_hashed, iter_match_first_linear)
42 (iter_match_next_linear): Use symbol_compare_ftype.
43 * dictionary.h: Include symfile.h.
44 (dict_iter_match_first, dict_iter_match_next): Use
46 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
47 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
48 (map_matching_symbols_psymtab): Likewise.
49 * symfile.h (symbol_compare_ftype): New typedef.
50 (struct quick_symbol_functions) <map_matching_symbols): Use
53 2010-11-23 Tom Tromey <tromey@redhat.com>
56 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
58 2010-11-19 Tom Tromey <tromey@redhat.com>
60 * Makefile.in (SUBDIRS): Add doc.
62 * configure.ac: Don't configure in doc. Create doc/Makefile.
64 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
68 * python/py-inferior.c (find_thread_object): Check if PIDGET
71 010-11-22 Joel Brobecker <brobecker@adacore.com>
73 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
75 2010-11-22 Joel Brobecker <brobecker@adacore.com>
77 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
78 Return the original type if the main type portions match rather
79 than when the type themselves match.
81 2010-11-22 Joel Brobecker <brobecker@adacore.com>
83 * ada-lang.c (ada_template_to_fixed_record_type_1):
84 For dynamic fields, check the field size against the maximum
87 2010-11-22 Joel Brobecker <brobecker@adacore.com>
89 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
91 (mips_irix_n32_stack_tramp_frame): New static global.
92 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
95 2010-11-22 Jerome Guitton <guitton@adacore.com>
97 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
100 2010-11-22 Joel Brobecker <brobecker@adacore.com>
102 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
103 if type1 is a typedef.
105 2010-11-22 Joel Brobecker <brobecker@adacore.com>
107 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
108 "_finalizer" to the list.
110 2010-11-22 Joel Brobecker <brobecker@adacore.com>
112 * symfile.c: Remove all "#if 0"/"#endif" blocks.
114 2010-11-22 Joel Brobecker <brobecker@adacore.com>
116 * symfile.c: Add missing second space after period in various comments.
118 2010-11-22 Joel Brobecker <brobecker@adacore.com>
120 * ada-typeprint.c (print_array_type): Fix formatting in comment.
121 (print_selected_record_field_types): Fix formatting in function
124 2010-11-22 Joel Brobecker <brobecker@adacore.com>
126 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
127 in name of "show ravenscar" prefix command name.
129 2010-11-22 Joel Brobecker <brobecker@adacore.com>
131 * ravenscar-thread.c (show_ravenscar_task_switching_command):
132 Add missing '\n' in output.
134 2010-11-22 Joel Brobecker <brobecker@adacore.com>
136 * ravenscar-thread.c (running_thread_name): Change value.
137 (read_thread_id): Remove advance declaration.
138 (get_running_thread_msymbol): New function.
139 (has_ravenscar_runtime): Use get_running_thread_msymbol to
140 compute msym_running_thread.
141 (get_running_thread_id): Renames read_thread_id. Slight modifications
142 to not take any argument anymore, using get_running_thread_msymbol
143 to determine which symbol to use instead.
144 (ravenscar_running_thread): Use get_running_thread_id instead of
147 2010-11-22 Joel Brobecker <brobecker@adacore.com>
149 * ravenscar-sparc-thread.c (supply_register_at_address):
150 Fix passing of buf in call to regcache_raw_supply.
152 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
154 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
156 2010-11-22 Tom Tromey <tromey@redhat.com>
158 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
160 2010-11-19 Keith Seitz <keiths@redhat.com>
162 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
163 Remove extraneous '/' after $(DESTDIR).
164 (PYTHON_INSTALL_DIR): Likewise.
166 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
168 Fix stale memory references.
169 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
172 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Tom Tromey <tromey@redhat.com>
175 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
176 (.PHONY): Remove for .y outputs.
178 2010-11-19 Will Drewry <wad@google.com>
179 Tavis Ormandy <taviso@google.com>
180 Jan Kratochvil <jan.kratochvil@redhat.com>
182 * dwarf2read.c (decode_locdesc): Enforce location description stack
185 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
187 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
188 instruction is found.
190 2010-11-17 Tom Tromey <tromey@redhat.com>
192 * value.c (value_entirely_optimized_out): Check the
193 'check_any_valid' field.
195 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
197 * ada-lang.c (modify_general_field): Remove.
198 (make_array_descriptor): Replace all modify_general_field calls by
200 * value.c (modify_field): Update comment. New variable bytesize.
201 Normalize BITPOS. Initialize BYTESIZE, use it.
203 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
206 elements after xfree.
208 2010-11-16 Tom Tromey <tromey@redhat.com>
210 * gdb-add-index.sh: Really remove.
212 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
216 (init_one_comp_unit): ... this one.
217 (prepare_one_comp_unit): New prototype.
218 (dw2_require_line_header, process_psymtab_comp_unit): Use
220 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
221 (load_partial_comp_unit): Remove variable attr. Use
222 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
223 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
224 prepare_one_comp_unit.
225 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
226 Use prepare_one_comp_unit.
227 (alloc_one_comp_unit): Rename to ...
228 (init_one_comp_unit): ... here and remove there calloc, new parameter
230 (prepare_one_comp_unit): New function.
232 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
234 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
235 possible used of uninitialized variable.
237 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
239 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
240 (rs6000_gdbarch_init): Call it.
242 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
244 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
245 instructions if debugging an E500 binary.
247 2010-11-12 Tom Tromey <tromey@redhat.com>
249 * varobj.c (value_get_print_value): Rearrange. Pass stream to
250 apply_varobj_pretty_printer.
251 * c-lang.c: Include exceptions.h.
252 (c_get_string): Throw MEMORY_ERROR when appropriate.
253 * python/py-prettyprint.c (enum string_repr_result): New.
254 (print_stack_unless_memory_error): New function.
255 (print_string_repr): Change return type. Use
256 print_stack_unless_memory_error.
257 (print_children): Use print_stack_unless_memory_error.
258 (apply_val_pretty_printer): Update. Don't print children if
259 string representation threw an exception.
260 (apply_varobj_pretty_printer): Add 'stream' argument. Use
261 print_stack_unless_memory_error.
262 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
264 (_initialize_python): Initialize them.
265 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
266 gdbpy_convert_exception.
267 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
268 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
269 (gdbpy_convert_exception): Declare.
270 (apply_varobj_pretty_printer): Update.
271 * python/py-utils.c (gdbpy_convert_exception): New function.
273 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
275 * mi/mi-main.c (mi_cmd_target_detach): Accept new
276 thread-group id format.
278 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
280 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
282 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
284 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
286 (BPPY_SET_REQUIRE_VALID): Ditto.
287 (bpnum_is_valid): Delete function.
288 (bppy_get_visibility): New function.
289 (bppy_new): Parse for, and validate internal keyword. Pass
290 internal keyword to breakpoint or watchpoint functions.
291 (build_bp_list): New function.
292 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
293 iterate_over_breakpoints.
294 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
296 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
297 to internal breakpoint chain.
299 * breakpoint.c (set_breakpoint_number): New function.
300 (breakpoint_1): Check if breakpoint number is more than zero.
301 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
302 (create_breakpoint_sal): Take a new parameter called internal.
303 Call set_breakpoint_number with internal parameter. Do not
304 mention internal breakpoints. All callers updated.
305 (create_breakpoint): Ditto.
306 (create_breakpoints_sal): Ditto.
307 (watch_command_1): Ditto.
308 (watch_command_wrapper): Take a new parameter called internal.
310 (rwatch_command_wrapper): Ditto.
311 (awatch_command_wrapper): Ditto.
312 (save_breakpoints): Update breakpoint save condition check.
313 (iterate_over_breakpoints): New function.
314 * breakpoint.h: Add conditional python includes. Add py_bp_object
315 and comment to struct breakpoint. Update all callers.
316 * defs.h: Add PyObject definition for GDB builds without Python.
318 2010-11-10 Doug Evans <dje@google.com>
320 * python/lib/gdb/command/pretty_printers.py
321 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
323 * value.c (set_value_enclosing_type): Renamed from
324 value_change_enclosing_type. All callers updated.
325 * value.h (set_value_enclosing_type): Update.
326 * valops.c (value_full_object): Always return a copy if we need to
327 make changes to the input value.
329 2010-11-09 Pedro Alves <pedro@codesourcery.com>
331 * breakpoint.c (watch_command_1): Get a pointer of the lazy
332 version of the expression's value, even if reading the value from
333 memory fails. When creating a -location watchpoint, get the
334 value's address from the lazy value pointer.
336 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
338 * infrun.c (restore_inferior_thread_state): Use
339 discard_inferior_thread_state to free the data.
340 (discard_inferior_thread_state): xfree also siginfo_data.
342 2010-11-05 Doug Evans <dje@google.com>
344 Make gdb.parameter("directories") work.
345 New command "set directories".
346 * NEWS: Document them.
347 * source.c (set_directories_command): New function.
348 (show_directories_1): Renamed from show_directories.
350 (show_directories_command): New function.
351 (_initialize_source): Install "directories" as a set/show
352 variable instead of just a show command.
354 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
356 * NEWS: Mention OpenCL C language support.
357 * Makefile.in (SFILES): Add opencl-lang.c.
358 (COMMON_OBS): Add opencl-lang.o.
359 * opencl-lang.c: New File
360 * defs.h (enum language): Add language_opencl.
361 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
362 IBM XL C OpenCL compiler.
363 * c-lang.h: Include "parser-defs.h".
364 (evaluate_subexp_c): Declare.
365 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
366 (c_op_print_tab): Add declaration.
367 * eval.c (binop_promote): Handle language_opencl.
368 * c-exp.y: Lookup the primitive types instead of referring to the
371 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
373 Fix configure --enable-plugins --without-python.
374 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
375 * configure: Regenerate.
377 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
379 * solib.c (solib_read_symbols): Call exception_fprintf even without
380 FROM_TTY. Print also so->so_name.
382 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
384 * gdbtypes.h (struct rank): Created subrank.
385 * gdbtypes.c: Initialized subrank for all
387 (distance_to_ancestor): New function.
388 (is_ancestor): Use distance_to_ancestor.
389 (is_public_ancestor): Ditto.
390 (sum_ranks): Handle subrank.
391 (compare_ranks): Ditto.
392 (rank_one_type): Subrank base conversions.
394 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
396 * gdbtypes.h: Create struct rank.
397 Convert all 'BADNESS' macros to const struct rank declarations.
398 (sum_ranks): New function.
399 (compare_ranks): New function.
400 * valops.c (find_oload_champ): Updated.
401 (classify_oload_match): Use compare_ranks.
403 (compare_parameters): Use compare_ranks.
404 * gdbtypes.c: Initialize 'BADNESS' constants.
405 (sum_ranks): New function.
406 (compare_ranks): New function.
407 (compare_badness): Use compare_ranks.
408 (rank_function): Use global constants instead of literals.
409 (rank_one_type): Ditto.
413 2010-11-04 Doug Evans <dje@google.com>
415 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
416 (find_pretty_printer): Fix comments.
418 2010-11-04 Hui Zhu <teawater@gmail.com>
420 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
422 2010-11-03 Joel Brobecker <brobecker@adacore.com>
424 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
425 and `len' declaration and computation inside block where they
428 2010-11-03 Joel Brobecker <brobecker@adacore.com>
430 * valprint.c (val_print_array_elements): Put back handling of
433 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
435 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
436 DIE and set the length of the type.
437 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
438 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
439 return 0 if the corresponding bounds of the type are undefined.
440 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
441 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
442 (val_print_array_elements): Use get_array_bounds to compute the number
443 of array elements instead of dividing the length of the array by the
444 length of the element types.
445 * valarith.c (vector_binop): Likewise.
446 * valops.c (value_cast): Likewise.
447 * c-valprint.c (c_val_print): Likewise.
448 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
450 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
452 * valarith.c (value_pos, value_neg, value_complement): Handle
454 * valops.c (value_one): Likewise.
456 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
458 * value.h (value_non_lval): Declare.
459 * value.c (value_non_lval): New function.
460 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
461 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
464 2010-11-02 Doug Evans <dje@google.com>
466 New python module gdb.printing, and new commands info pretty-printer,
467 enable pretty-printer, disable pretty-printer.
468 * NEWS: Mention them.
469 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
470 gdb/command/__init__.py, gdb/command/pretty_printers.py.
471 * python/lib/gdb/__init__.py: Install pretty-printer commands.
472 * python/lib/gdb/printing.py: New file.
473 * python/lib/gdb/command/__init__.py: New file.
474 * python/lib/gdb/command/pretty_printers.py: New file.
476 2010-11-02 Tom Tromey <tromey@redhat.com>
478 * NEWS: Mention Guile removal.
479 * defs.h (enum language) <language_scm>: Remove.
480 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
482 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
483 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
484 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
487 2010-11-02 Doug Evans <dje@google.com>
489 * top.c: #include "python/python.h".
490 (gdb_init): Add a comment regarding initialize_all_files.
491 Call finish_python_initialization at the end.
492 * python/python.h (finish_python_initialization): Declare.
493 * python/python.c (finish_python_initialization): New function.
494 (_initialize_python): Move python-implemented initialization there
496 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
498 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
501 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
502 Pedro Alves <pedro@codesourcery.com>
503 * gdbthread.h (currently_stepping): New declaration.
504 * infrun.c (currently_stepping): Remove the forward declaration.
505 (currently_stepping): Make it global.
506 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
507 variables tp and step, initialized them. Pass STEP to to_resume.
508 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
509 * remote.c (currently_stepping_callback): New.
510 (remote_vcont_resume)
511 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
512 New variable tp. Call currently_stepping_callback and step such
515 2010-11-01 Hui Zhu <teawater@gmail.com>
517 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
519 2010-10-28 Hui Zhu <teawater@gmail.com>
521 * tracepoint.c (trace_save): Change utp->actions to
524 2010-10-26 Joel Brobecker <brobecker@adacore.com>
526 * (_FILE_OFFSET_BITS): Fix typo in comment.
528 2010-10-26 Joel Brobecker <brobecker@adacore.com>
530 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
531 (PyEval_InitThreads): Remove duplicate. Define as nothing.
532 (PyEval_ReleaseLock): Define as nothing.
534 2010-10-26 Joel Brobecker <brobecker@adacore.com>
536 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
537 by call to FILENAME_CMP.
539 2010-10-26 Joel Brobecker <brobecker@adacore.com>
541 * dictionary.c (dict_hash): Move assignment out of if condition.
543 2010-10-22 Jie Zhang <jie@codesourcery.com>
545 * Makefile.in (install): Remove dependency of install-only and
546 recursively invoke make for install-only.
547 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
548 (install): Pass FLAGS_TO_PASS when recursively make install-only.
550 2010-10-20 Hui Zhu <teawater@gmail.com>
552 * tracepoint.c (tfile_get_traceframe_address): Call
553 extract_signed_integer.
554 (tfile_trace_find): Call extract_signed_integer and
555 extract_unsigned_integer. Change data_size to unsigned int.
556 (tfile_fetch_registers): Call extract_unsigned_integer.
557 (tfile_xfer_partial): Ditto.
558 (tfile_get_trace_state_variable_value): Call
559 extract_signed_integer and extract_unsigned_integer.
561 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
563 * remote.c (remote_get_threadlist): If we got empty
564 response, bail out immediately, and don't emit any
567 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
569 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
570 for "mov pc, REG" as well.
571 (thumb_instruction_changes_pc): Likewise.
573 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
576 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
577 * eval.c (evaluate_subexp_standard): Check for overload of
579 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
580 (value_x_unop): Ditto.
581 * valops.c: Include "exceptions.h".
582 (find_overload_match): Throw NOT_FOUND_ERROR.
583 (value_struct_elt): Ditto.
585 2010-10-19 Tom Tromey <tromey@redhat.com>
587 * python/py-cmd.c (cmdpy_function): Unreference exception state.
589 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
591 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
592 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
594 Make all other conversions illegal.
596 2010-10-18 Doug Evans <dje@google.com>
598 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
599 assumptions of when this case happens. Print "<unnamed typedef>".
601 2010-10-18 Tom Tromey <tromey@redhat.com>
603 * valprint.c (val_print_string): Pass 'encoding' to
606 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
608 Fix the `stopped language detection' testcase for gcc-4.5.
609 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
610 * symfile.c (set_initial_language): Move variable filename to a more
611 inner block. Prefer LANGUAGE_OF_MAIN.
612 * symtab.c (language_of_main): New variable.
613 (set_main_name): Always reset LANGUAGE_OF_MAIN.
614 * symtab.h (language_of_main): New declaration.
616 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
617 Pedro Alves <pedro@codesourcery.com>
619 * gdbthread.h (currently_stepping): New declaration.
620 * infrun.c (currently_stepping): Remove the forward declaration.
621 (currently_stepping): Make it global.
622 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
623 variables tp and step, initialized them. Pass STEP to to_resume.
624 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
625 * remote.c (currently_stepping_callback): New.
626 (remote_vcont_resume)
627 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
628 New variable tp. Call currently_stepping_callback and step such
631 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
633 * infrun.c (follow_exec): Replace symbol_file_add_main by
634 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
636 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
638 * objfiles.c (free_all_objfiles): Likewise.
639 * remote-m32r-sdi.c (m32r_load): Likewise.
640 * solib-som.c (som_solib_create_inferior_hook): Likewise.
641 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
642 clear_symtab_users with ADD_FLAGS.
643 (reread_symbols): Use parameter 0 for clear_symtab_users.
644 (clear_symtab_users): New parameter add_flags. Do not call
645 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
646 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
647 * symtab.h (clear_symtab_users): New parameter add_flags.
649 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
651 Fix GCC false warning.
652 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
654 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
656 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
657 display of type of method arguments.
659 2010-10-15 Tom Tromey <tromey@redhat.com>
662 * varobj.c (value_get_print_value): Use val_print_string to print
664 * python/py-prettyprint.c (print_string_repr): Use
665 val_print_string to print lazy strings. Fix cleanup logic.
666 (print_children): Likewise.
667 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
668 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
669 Change return type to 'void', add 'addr' argument.
670 * value.h (val_print_string): Update.
671 * valprint.c (val_print_string): Add 'encoding' argument.
672 * printcmd.c (print_formatted): Update.
673 * p-valprint.c (pascal_val_print): Update.
674 * m2-valprint.c (print_unpacked_pointer): Update.
675 (m2_print_array_contents): Likewise.
676 * jv-valprint.c (java_value_print): Update.
677 * f-valprint.c (f_val_print): Update.
678 * c-valprint.c (c_val_print): Update.
679 * auxv.c (fprint_target_auxv): Update.
681 2010-10-15 Doug Evans <dje@google.com>
682 Jan Kratochvil <jan.kratochvil@redhat.com>
685 * gdbtypes.c (check_typedef): Clean up function comment.
686 Keep track of instance flags as we strip typedefs and create a new
687 type to preserve them if necessary.
688 * gdbtypes.h (type) <instance_flags>: Extend the comment.
690 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
692 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
694 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
696 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
697 * gdbtypes.c (rank_one_type): Move type comparison code out of here
699 (types_equal): ...here. And changed it as follows:
700 Outside of typedefs type must be of the same TYPE_CODE.
701 When compairing two pointers or references they are equal if their
703 Correct pointer conversions.
705 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
707 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
708 having fields without names.
710 2010-10-13 Tom Tromey <tromey@redhat.com>
712 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
714 2010-10-13 Doug Evans <dje@google.com>
716 New python module gdb.types.
718 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
719 * python/lib/gdb/types.py: New file.
721 * c-typeprint.c: Whitespace cleanup.
722 (cp_type_print_method_args): Remove unnecessary forward decl.
723 (cp_type_print_derivation_info): Ditto.
724 (c_type_print_varspec_prefix): Mark as static at definition.
725 (c_type_print_modifier): Fix arg descriptions.
727 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
729 * python/py-breakpoint.c (bppy_set_condition): New comment.
730 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
731 failed PyUnicode_Decode.
732 (cmdpy_completer): Skip element for failed
733 python_string_to_host_string.
734 (cmdpy_init): Return -1 on failed python_string_to_host_string.
735 * python/py-frame.c (frapy_read_var): Extend the function comment.
736 * python/py-function.c (fnpy_init): Return -1 on failed
737 python_string_to_host_string.
738 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
739 the function comment.
740 (infpy_search_memory): Extend the function comment. Remove the
741 PyErr_SetString call on already set error state.
742 * python/py-param.c (set_parameter_value): Extend the function
743 comment. Return -1 on failed python_string_to_host_string, twice.
744 (set_attr): Extend the function comment.
745 (compute_enum_values): Extend the function comment. New variable
746 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
747 failed python_string_to_host_string.
748 (get_doc_string): Call gdbpy_print_stack on failed
749 python_string_to_host_string.
750 (parmpy_init): Extend the function comment.
751 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
752 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
753 failed python_string_to_host_string.
754 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
755 (valpy_binop, valpy_richcompare): Extend the function comment.
757 (struct python_env) <error_type, error_value, error_traceback>: New
759 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
760 (ensure_python_env): Call PyErr_Fetch.
761 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
762 failed convert_value_from_python.
763 (value_get_print_value): Call gdbpy_print_stack on failed
764 python_string_to_target_python_string.
766 2010-10-12 Tom Tromey <tromey@redhat.com>
768 * python/py-prettyprint.c (search_pp_list): Fix error checking.
770 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
772 * gdbtypes.c (do_is_ancestor): New function.
773 (is_ancestor): Use do_is_ancestor.
774 (is_public_ancestor): Use do_is_ancestor.
776 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
778 * ser-go32.c (struct dos_ops): Add missing fdopen field.
780 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
782 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
784 2010-10-11 Doug Evans <dje@google.com>
786 * c-typeprint.c (c_type_print_modifier): Add note that this prints
787 the address space id too.
789 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
791 Fix attaching to re-prelinked executables on ppc64.
792 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
793 initialize it, try to adjust FILESZ field by it.
795 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
797 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
798 messages if info_verbose.
800 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
802 * valops.c (value_cast): Handle vector types.
803 * valarith.c (value_binop): Widen scalar to vector if appropriate.
805 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
807 * arm-tdep.c (thumb_expand_immediate): New function.
808 (thumb_instruction_changes_pc): Likewise.
809 (thumb2_instruction_changes_pc): Likewise.
810 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
811 prologue parsing. Improved support for optimized code.
812 (thumb_scan_prologue): Do not reply on line-number information,
813 use same heuristics as arm_scan_prologue insead.
814 (skip_prologue_function): Accept functions
815 "__tls_get_addr" and "__aeabi_read_tp".
817 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
818 Daniel Jacobowitz <dan@codesourcery.com>
820 * arm-tdep.c (thumb_in_function_epilogue_p)
821 (arm_in_function_epilogue_p): New.
822 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
823 gdbarch_in_function_epilogue_p callback.
825 2010-10-07 Doug Evans <dje@google.com>
827 * cc-with-index.sh (output_file): Default to a.out.
829 * dwarf2read.c (mapped_index): Rename member index_table to
830 symbol_table and index_table_slots to symbol_table_slots.
832 (create_symbol_hash_table): Renamed from create_index_table.
834 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
835 (write_hash_table): Rename local index_table to symbol_hash_table.
837 * addrmap.h (addrmap_foreach_fn): New typedef.
838 (addrmap_foreach): Declare.
839 * addrmap.c (struct addrmap_funcs): New member foreach.
840 (addrmap_foreach): New function.
841 (addrmap_fixed_foreach): New function.
842 (addrmap_fixed_funcs): Update.
843 (struct mutable_foreach_data): New struct.
844 (addrmap_mutable_foreach_worker): New function.
845 (addrmap_mutable_foreach): New function.
846 (addrmap_mutable_funcs): Update.
848 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
850 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
853 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
855 * ada-lang.c (full_match): Declare.
856 (ada_match_name): Rename to match_name (we should avoid prefixing static
857 symbols with "ada_").
858 (match_name): New name for ada_match_name.
859 (struct ada_psym_data): Remove and replace with...
860 (struct match_data): User data for map_matching_symbols.
861 (ada_add_psyms): Remove.
862 (aux_add_nonlocal_symbols): New function, used as callback for
863 map_matching_symbols.
864 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
866 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
867 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
868 Rework to use map_matching_symbols instead of map_ada_symtabs.
869 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
870 * psymtab.c: Include dependency on dictionary.h.
871 (match_partial_symbol): New function.
872 (ada_lookup_partial_symbol): Remove.
873 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
874 (map_matching_symbols_psymtab): New function.
875 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
876 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
878 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
880 * ada-lang.c (ada_match_name): Use new API for wild_match.
881 (wild_match): Change API to be consistent with that of strcmp_iw;
882 return 0 for a match, and switch operand order.
883 (full_match): New function.
884 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
885 matching to allow use of hashing.
886 * dictionary.c (struct dict_vector): Generalize iter_name_first,
887 iter_name_next ot iter_match_first, iter_match_next.
888 (iter_name_first_hashed): Replace with iter_match_first_hashed.
889 (iter_name_next_hashed): Replace with iter_match_next_hashed.
890 (iter_name_first_linear): Replace with iter_match_first_linear.
891 (iter_name_next_linear): Replace with iter_match_next_linear.
892 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
893 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
894 (dict_iter_match_first): New function.
895 (dict_iter_match_next): New function.
896 (dict_hash): New function.
897 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
898 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
900 2010-10-06 Doug Evans <dje@google.com>
902 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
904 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
906 * dwarf2read.c (read_tag_const_type): Handle const arrays.
908 2010-10-06 Doug Evans <dje@google.com>
910 * Makefile.in (REQUIRED_SUBDIRS): New var.
911 (subdir_do): Verify required subdir Makefiles exist.
913 Create subdir data-directory.
914 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
915 data-directory/Makefile.in.
916 (SUBDIRS): Add data-directory.
917 (all): Remove xml-syscall-copy dependency.
918 (xml-syscall-copy): Moved to data-directory/Makefile.in as
920 (xml-syscall-install): Moved to data-directory/Makefile.in as
922 (install-only): Remove xml-syscall-install dependency.
923 (all-data-directory): New rule.
924 (data-directory/Makefile): New rule.
925 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
926 * configure: Regenerate.
927 * data-directory/Makefile.in: New file.
928 * python/lib/gdb/__init__.py: New file.
930 2010-10-06 Joel Brobecker <brobecker@adacore.com>
932 Fix ARI warnings in advance_wild_match.
933 * ada-lang.c (advance_wild_match): Delete local variable t2.
934 Adjust code accordingly. Minor reformatting.
936 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
938 * gdbtypes.h (struct main_type): Remove flag_nottext.
939 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
940 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
941 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
942 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
943 of TYPE_FLAG_NOTTEXT.
944 (init_type): Remove the initialization of the flag_nottext field.
945 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
947 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
949 2010-10-04 Doug Evans <dje@google.com>
951 * cc-with-index.sh: New file.
953 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
955 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
956 (create_cus_from_index, create_addrmap_from_index): Ditto.
957 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
958 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
959 (dw2_do_expand_symtabs_matching): Ditto.
960 (eq_strtab_entry, create_strtab, add_string): Ditto.
961 (hash_strtab_entry): Ditto.
962 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
963 (create_index_table, create_mapped_symtab, find_slot): Ditto.
964 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
965 (write_hash_table, add_address_entry, write_psymbols): Ditto.
966 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
967 (write_psymtabs_to_index): Ditto.
969 2010-10-04 Joel Brobecker <brobecker@adacore.com>
971 * ada-lang.c: #include "value.h".
972 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
973 arguments. Implement using value_allocate_space_in_inferior
974 instead of allocating memory from the stack.
975 (make_array_descriptor): Remove gdbarch and sp parameters. Update
976 calls to ensure_lval.
977 (ada_convert_actual): Remove gdbarch and sp parameters. Update
978 calls to make_array_descriptor and ensure_lval.
979 * ada-lang.h (ada_convert_actual): Update declaration.
980 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
982 2010-10-04 Doug Evans <dje@google.com>
984 * python/python.c (_initialize_python): Define new function
985 GdbSetPythonDirectory in python. Use it to update sys.path and
988 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
990 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
991 incorporating and generalizing print_record_field_types.
992 (print_record_field_types): Change return value and update comment.
993 Re-implement using print_selected_record_field_types.
994 (print_choices): Print "=>" here.
995 Handle case of unencoded variant branch.
996 (print_variant_clauses): Reformat comment.
997 Special-case unencoded variant branch.
999 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1001 * ada-lang.c (wild_match): Reimplement.
1002 Change API to eliminate unused length argument, reverse arguments and
1003 make 0 the 'true' return value.
1004 (advance_wild_match): New auxiliary function for wild_match to improve
1006 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1007 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1009 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1011 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1013 2010-10-01 Doug Evans <dje@google.com>
1015 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1016 for `save gdb-index' command.
1018 2010-10-01 Tom Tromey <tromey@redhat.com>
1020 * symfile.h (allocate_symtab): Update.
1021 * symfile.c (allocate_symtab): Make 'filename' const.
1022 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1023 (add_psymbol_to_list): Likewise.
1024 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1026 (add_psymbol_to_list): Update.
1027 * mdebugread.c (new_symtab): Make 'name' const.
1028 (psymtab_to_symtab_1): Make 'filename' const.
1029 * elfread.c (elfstab_offset_sections): Update.
1030 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1031 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1032 (psymtab_include_file_name): Update.
1033 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1034 * buildsym.h (start_subfile): Update.
1035 * buildsym.c (start_subfile): Make arguments const.
1037 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1039 * fork-child.c (breakup_args): Fix crash if shell forking is
1040 disabled at compile time.
1042 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1044 * ada-lang.c (desc_bounds): Add handling of the case where
1045 the P_BOUNDS field is a pointer to a stub.
1046 (desc_data_target_type): Same for P_ARRAY field.
1047 (ada_check_typedef): Strip the typedef layers from the type
1048 found by ada_find_any_type.
1050 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1052 * sparc-tdep.c (sparc32_frame_align): New function.
1053 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1054 * sparc64-tdep.c (sparc64_frame_align): New function.
1055 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1057 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1059 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1061 2010-09-30 Tom Tromey <tromey@redhat.com>
1063 * symfile.h (struct sym_fns) <next>: Remove.
1064 (add_symtab_fns): Update.
1065 * symfile.c (sym_fns_ptr): New typedef.
1066 (symtab_fns): Now a VEC.
1067 (add_symtab_fns): Update. Change argument type.
1068 (find_sym_fns): Update. Change return type.
1069 (get_symfile_segment_data): Update.
1070 * objfiles.h (struct objfile) <sf>: Now const.
1071 * somread.c (som_sym_fns): Now const. Update.
1072 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1073 * mipsread.c (ecoff_sym_fns): Now const. Update.
1074 * machoread.c (macho_sym_fns): Now const. Update.
1075 * elfread.c (elf_sym_fns): Now const. Update.
1076 (elf_sym_fns_gdb_index): Likewise.
1077 * dbxread.c (aout_sym_fns): Now const. Update.
1078 * coffread.c (coff_sym_fns): Now const. Update.
1080 2010-09-30 Tom Tromey <tromey@redhat.com>
1082 * value.c (value_primitive_field): Take 'offset' into account for
1085 2010-09-30 Tom Tromey <tromey@redhat.com>
1087 * completer.c (count_struct_fields): Handle anonymous structs and
1089 (add_struct_fields): Likewise.
1091 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 Fix printing parameters of inlined functions.
1094 * ada-lang.c (is_known_support_routine)
1095 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1096 for find_frame_funname.
1097 * python/py-frame.c (frapy_name): Likewise.
1098 * stack.c (find_frame_funname): New parameter funcp. Update the
1099 function comment. Fill it in.
1100 (print_frame): New variable func. Initialize it by
1101 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1102 FUNC as the parameter of print_args_stub.
1103 * stack.h (find_frame_funname): New parameter funcp. Remove the
1104 function declaration comment.
1106 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1110 tp. Iterate INFERIOR_LIST and call target_has_execution.
1112 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 Fix GDB crash on inferior calls with self-referencing classes.
1115 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1118 2010-09-29 Doug Evans <dje@google.com>
1120 Workaround for gcc/45682.
1121 * dwarf2read.c (partial_die_info): New fields fixup_called,
1123 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1124 Move definition next to use. Use linkage_name to determine if class
1125 is in a namespace. All callers updated.
1126 (fixup_partial_die): Return early if already called.
1127 Set fixup_called when done.
1128 (guess_full_die_structure_name): New function.
1129 (determine_prefix): Call it for class/struct/union dies if c++ and
1130 .debug_types section is present and parent is DW_TAG_compile_unit.
1132 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1134 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1135 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1137 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1139 * NEWS: Announce Ravenscar Profile support.
1141 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1142 Jerome Guitton <guitton@adacore.com>
1144 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1146 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1147 ravenscar-sparc-thread.o to gdb_target_obs.
1149 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1151 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1152 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1154 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1156 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1157 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1158 skip_main_prologue method.
1160 2010-09-27 Tom Tromey <tromey@redhat.com>
1162 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1163 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1164 Only emit a given psymbol once.
1165 (struct signatured_type_index_data) <psyms_seen>: New field.
1166 (write_one_signatured_type): Update.
1167 (cleanup_htab): New function.
1168 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1170 (save_gdb_index_command): Update index documentation.
1172 2010-09-27 Tom Tromey <tromey@redhat.com>
1174 * bcache.c (expand_hash_table): Use hash_function, not hash.
1176 2010-09-27 Tom Tromey <tromey@redhat.com>
1178 * gdb_wchar.h: Change minimum libiconv to 0x108.
1180 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1182 Fix lost siginfo_t for inferior calls.
1184 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1185 (save_inferior_thread_state): New variables regcache, gdbarch and
1186 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1187 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1189 (restore_inferior_thread_state): New variables regcache and gdbarch.
1190 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1191 REGCACHE. Free also SIGINFO_DATA.
1193 2010-09-24 Tom Tromey <tromey@redhat.com>
1195 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1197 (dw2_map_symbol_names): Likewise.
1199 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1201 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1202 discard_cleanups do_cleanups.
1204 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1208 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1209 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1210 si_code is < 0. Check for si_code == SI_TIMER before checking for
1213 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1215 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1217 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1219 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1220 debugging a core file.
1222 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1226 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1228 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1229 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1231 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1232 Remove the conditional.
1233 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1235 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 * main.c: Include objfiles.h.
1238 (captured_main): New variable objfile. Call
1239 load_auto_scripts_for_objfile for ALL_OBJFILES.
1241 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1243 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1246 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1248 * dwarf2read.c (scan_partial_symbols): Add handling of
1249 DW_TAG_constant DIEs.
1250 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1252 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1254 * configure.ac: Add support for --enable-gdbserver.
1255 * configure: Regenerate.
1257 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1260 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1261 'old_cleanups' reassignment.
1263 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1265 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1268 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1271 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1272 read_var_value and common_val_print and print a warning.
1274 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1276 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1277 keep the list in alphabetical order. Use longer e-mail address.
1279 2010-09-15 Tom Tromey <tromey@redhat.com>
1281 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1283 2010-09-15 Tom Tromey <tromey@redhat.com>
1285 * charset.c (iconv_open): New define.
1287 (iconv_close): Likewise.
1288 (phony_iconv_open): Add "phony_" prefix.
1289 (phony_iconv_close): Likewise.
1290 (phony_iconv): Likewise.
1291 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1292 Change how INTERMEDIATE_ENCODING is defined.
1294 2010-09-15 Doug Evans <dje@google.com>
1296 * dwarf2read.c (struct die_info): Fix comment.
1298 2010-09-15 Alan Modra <amodra@gmail.com>
1301 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1302 than setting SEC_NEVER_LOAD on sections that need not be copied.
1304 2010-09-14 Tom Tromey <tromey@redhat.com>
1306 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1307 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1309 * symfile.h (extend_psymbol_list): Remove.
1310 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1311 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1312 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1314 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1319 2010-09-14 Tom Tromey <tromey@redhat.com>
1322 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1323 for unrecognized frame base expression.
1325 2010-09-14 Tom Tromey <tromey@redhat.com>
1328 * value.c (value_static_field): Use value_of_variable.
1330 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1332 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1333 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1335 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1338 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1341 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1343 * NEWS: Add x86-lynxos to the list of platforms supported by
1346 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1348 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1350 2010-09-13 Tom Tromey <tromey@redhat.com>
1352 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1354 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1356 * i386-tdep.c (i386_ymm_type): Set type name to
1357 builtin_type_vec256i.
1359 2010-09-12 Michael Snyder <msnyder@vmware.com>
1361 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1363 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1365 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1367 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1369 * amd64-tdep.c (amd64_register_name): Removed.
1370 (amd64_init_abi): Don't call set_gdbarch_register_name.
1372 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1374 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1376 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1377 Paul Bolle <pebolle@tiscali.nl>
1379 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1380 * cli-logging.c (struct saved_output_files) <targerr>: New.
1381 (set_logging_redirect, pop_output_files, handle_redirections):
1382 Redirect also gdb_stdtargerr.
1383 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1385 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1386 also gdb_stdtargerr.
1387 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1388 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1389 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1390 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1391 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1394 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1396 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1397 to display a host address.
1398 * monitor.c (monitor_read_memory): Likewise.
1399 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1401 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1403 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1404 `CORE_ADDRESS' as it might contain target addresses.
1406 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1408 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1409 before cast to pointer to avoid warning.
1411 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1413 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1416 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1418 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1419 anonymous class partial DIEs.
1421 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1423 * dwarf2read.c (dwarf2_compute_name): Check that the first
1424 argument is a pointer.
1426 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1428 * dwarf2read.c (read_func_scope, read_structure_type)
1429 (read_common_block): Check for a NULL return from new_symbol.
1431 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1433 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1435 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1437 * dwarf2read.c (read_structure_type): Move processing of
1438 fields and member functions from here...
1439 (process_structure_scope): ... to here.
1441 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1443 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1445 (gnuv3_make_method_ptr): Likewise.
1447 2010-09-08 Tom Tromey <tromey@redhat.com>
1449 * breakpoint.c (create_breakpoint): Add missing _().
1451 2010-09-08 Doug Evans <dje@google.com>
1453 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1455 2010-09-08 Tom Tromey <tromey@redhat.com>
1458 2010-09-01 Tom Tromey <tromey@redhat.com>
1459 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1460 symtab.h: Revert earlier change.
1462 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1464 * psymtab.c (add_psymbol_to_bcache): Initialize
1466 memset psymbol.ginfo.value to 0.
1468 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1470 * infrun.c (resume): Extend comment on ignoring single-step
1471 requests on vfork parents waiting for a vfork-done.
1473 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Pedro Alves <pedro@codesourcery.com>
1476 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1478 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1480 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1481 calling strsignal. Use enum target_signal type for saved_signo.
1482 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1483 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1484 target_signal_to_host before calling strsignal.
1485 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1488 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1489 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 * common/signals.c (ANY): Remove.
1492 (SET): No longer use ANY.
1494 2010-09-06 Yao Qi <yao@codesourcery.com>
1496 * infrunc(resume): When inferior is waiting_for_vfork_done,
1497 clear step and don't use displaced stepping.
1499 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1501 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1504 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1506 Code cleanup - split print_stop_reason.
1507 * infrun.c (enum inferior_stop_reason): Remove.
1508 (print_stop_reason): Remove by splitting into ...
1509 (print_exited_reason, print_signal_exited_reason)
1510 (print_no_history_reason, print_signal_received_reason)
1511 (print_end_stepping_range_reason): ... these new functions. Update
1512 the preceding comment.
1513 (handle_inferior_event): Change the calls to print_exited_reason,
1514 print_signal_exited_reason, print_no_history_reason,
1515 print_signal_received_reason, print_end_stepping_range_reason.
1516 (handle_step_into_function, handle_step_into_function_backward):
1517 Change the calls to print_end_stepping_range_reason.
1519 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1521 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1522 * cli-out.c: Include vec.h.
1523 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1524 variable stream, initialize it, use it.
1525 (cli_redirect): New function comment. Replace the stream and
1526 original_stream fields by the new streams field. Remove the
1527 original_stream != NULL conditional, assert error on NULL instead.
1528 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1529 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1530 original_stream fields by the new streams field.
1531 (cli_out_set_stream): Replace the stream field by the new streams
1533 * cli-out.h: Include vec.h.
1534 (ui_filep): New typedef, call DEF_VEC_P for it.
1535 (struct cli_ui_out_data): Replace the stream and original_stream
1536 fields by the new streams field.
1537 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1538 NULL first. Extend the comment.
1539 (handle_redirections): Call ui_out_redirect with output.
1540 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1541 calls outside of the TRY_CATCH block.
1543 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1547 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1549 Back out the following change:
1550 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1551 | * record.c (set_record_pic_cmdlist,
1552 | show_record_pic_cmdlist): New variables.
1553 | (set_record_pic_command,
1554 | show_record_pic_command): New functions.
1555 | (record_pic_function, record_pic_line, record_pic_enum,
1556 | set_record_pic_type, record_pic_hide_nofunction,
1557 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1558 | (record_pic_fputs): New function.
1559 | (function_list, node_list, edge_list): New struct.
1560 | (function_list, node_list, edge_list): New variables.
1561 | (record_pic_cleanups, record_pic_node,
1562 | record_pic_edge, cmd_record_pic): New functions.
1563 | (_initialize_record): Add new commands for record pic.
1565 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1567 * config.in, configure: Regenerated.
1568 * configure.ac: Check for waitpid.
1569 * ser-pipe.c (pipe_close): Wait for the program to exit.
1571 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 * cli/cli-logging.c: Include gdb_assert.h.
1574 (set_logging_overwrite): New function.
1575 (logging_redirect): New comment.
1576 (logging_no_redirect_file, set_logging_redirect)
1577 (pop_output_files) <logging_no_redirect_file>: New.
1578 (handle_redirections) <!logging_redirect>: New variable
1579 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1580 discard cleanup for the close of former OUTPUT. Set
1581 LOGGING_NO_REDIRECT_FILE.
1582 (handle_redirections) <logging_redirect>: gdb_assert
1583 LOGGING_NO_REDIRECT_FILE.
1584 (show_logging_command) <logging_redirect handling>: Adjust messages
1585 for SAVED_FILENAME not NULL.
1586 (_initialize_cli_logging): Install set_logging_overwrite and
1587 set_logging_redirect.
1589 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1591 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1593 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1596 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1597 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1598 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1600 2010-09-02 Yao Qi <yao@codesourcery.com>
1602 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1603 number from a WIFSIGNALED status.
1605 2010-09-01 Tom Tromey <tromey@redhat.com>
1607 * symtab.h (lookup_type_symbol): Declare.
1608 * symtab.c (lookup_symbol_in_language_full): Rename from
1609 lookup_symbol_in_language. Add 'for_type' argument.
1610 (lookup_symbol_in_language): New function.
1611 (lookup_type_symbol): Likewise.
1612 (lookup_symbol_aux): Add 'for_type' argument.
1613 (match_symbol_aux): New function.
1614 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1615 (match_transparent_type): New function.
1616 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1617 * symfile.h (struct quick_symbol_functions)
1618 <pre_expand_symtabs_matching>: Remove.
1619 <expand_one_symtab_matching>: New field.
1620 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1621 (pre_expand_symtabs_matching_psymtabs): Remove.
1622 (psym_functions): Update.
1623 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1624 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1625 (dw2_pre_expand_symtabs_matching): Remove.
1626 (dw2_expand_one_symtab_matching): New function.
1627 (dwarf2_gdb_index_functions): Update.
1629 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1631 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1633 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1635 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1636 as a feature reported by -list-target-features.
1638 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1640 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1641 (powerpc-32.o, powerpc-32.c): New rules.
1642 (clean): Also remove powerpc-32.c.
1643 * regformats/rs6000/powerpc-32.dat: Generate.
1645 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1647 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1648 psymbol_bcache_init.
1649 * psymtab.h (psymbol_bcache_init): New function prototype.
1650 (psymbol_bcache_free): New function prototype.
1651 (psymbol_bcache_get_bcache): New function prototype.
1652 * psymtab.c (psymbol_bcache_init): New function.
1653 (psymbol_bcache_free): New function.
1654 (psymbol_bcache_full): New function.
1655 (psymbol_bcache_get_bcache): New function.
1656 (add_psymbol_to_bcache): use psymbol_bcache_full.
1657 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1659 * symmisc.c (print_symbol_bcache_statistics): Updated.
1660 (print_objfile_statistics): Updated.
1661 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1663 (free_objfile): Use psymbol_bcache_free.
1665 2010-08-31 Tom Tromey <tromey@redhat.com>
1668 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1669 Don't set TYPE_NAME on the type.
1671 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1673 * infrun.c (set_exec_direction_func): Error out if target does not
1674 support reverse execution.
1676 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1678 Make linux_get_siginfo_type `type *' unique.
1679 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1680 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1681 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1682 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1683 (_initialize_linux_tdep): New.
1685 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * defs.h (find_memory_region_ftype): New typedef.
1689 (exec_set_find_memory_regions): Use it.
1690 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1691 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1692 * gcore.c (objfile_find_memory_regions): Likewise.
1693 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1694 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1695 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1696 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1697 find_memory_region_ftype.
1698 (insert_dbx_link_bpt_in_region): Likewise.
1699 (iterate_over_mappings): Likewise. Drop the comment part about the
1701 (find_memory_regions_callback): Use find_memory_region_ftype.
1702 (proc_find_memory_regions): Likewise.
1703 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1704 find_memory_region_ftype.
1705 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1706 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1708 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1710 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1711 'static partial_symbol psymbol'.
1712 (psymbol_hash): New function.
1713 (psymbol_compare): New function.
1714 * bcache.c (hash_continue): New.
1715 (hash): Use hash_continue.
1716 * bcache.c: Add hash_function and compare_function
1717 pointers to bcache struct.
1718 (bcache_full): Use bcache->hash_function, and
1719 bcache->compare_function.
1720 (bcache_compare): New function.
1721 (bcache_xmalloc): Take hash_function and
1722 compare_function arguments and initialize the
1725 * objfiles.c (allocate_objfile): Updated.
1726 * symfile.c (reread_symbols): Updated.
1727 * python/py-type.c (typy_richcompare): Updated.
1729 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1730 Tom Tromey <tromey@redhat.com>
1733 * python/py-value.c (valpy_get_dynamic_type): New function.
1734 (value_object_getset): Add "dynamic_type".
1735 (valpy_get_type): Fail on error.
1737 2010-08-30 Yao Qi <yao@codesourcery.com>
1739 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1740 (arm_linux_syscall_next_pc): New.
1741 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1742 (arm_linux_init_abi): Initialize syscall_next_pc.
1743 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1744 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1745 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1746 Declare arm_frame_is_thumb.
1748 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1751 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1752 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1754 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1755 calls of bpstat_alloc. Remove explicit bs chain termination.
1757 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1760 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1761 (my_waitpid): Likewise.
1763 2010-08-27 Doug Evans <dje@google.com>
1765 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1768 2010-08-27 Tom Tromey <tromey@redhat.com>
1770 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1771 TYPE_FIELD_IGNORE_BITS.
1773 2010-08-27 Doug Evans <dje@google.com>
1775 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1776 the order they're defined in. munmap .debug_types buffer.
1778 2010-08-26 Doug Evans <dje@google.com>
1780 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1781 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1782 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1783 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1784 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1785 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1786 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1787 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1788 (write_psymtabs_to_index): Ditto.
1790 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1792 * NEWS: Mention libthread_db debugging with core files.
1794 2010-08-26 Doug Evans <dje@google.com>
1796 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1797 forward decl. Pass pst->dirname to dwarf_decode_lines.
1798 (psymtab_include_file_name): New function.
1799 (dwarf_decode_lines): Call it. Update comments.
1801 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1803 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1804 compilation unit being different from target die's.
1806 2010-08-24 Doug Evans <dje@google.com>
1809 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1810 debug_types_type_hash.
1811 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1813 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1814 appropriate type_hash table. All callers updated.
1815 (allocate_signatured_type_table): Renamed from
1816 allocate_signatured_type_hash_table. All callers updated.
1817 (create_signatured_type_table_from_index): Renamed from
1818 create_signatured_type_hash_from_index. All callers updated.
1819 (read_die_type): Add comment. Move actual reading to ...
1820 (read_die_type_1): ... here. New function.
1821 (follow_die_ref_or_sig): Tweak comment.
1822 (set_die_type): Rewrite to use appropriate choice of
1823 debug_info_type_hash or debug_types_type_hash.
1824 (get_die_type_at_offset): New function.
1825 (get_die_type): Call it.
1827 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1829 * python/py-type.c (typy_richcompare): Initialize worklist.
1831 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1832 Kazu Hirata <kazu@codesourcery.com>
1833 Jonathan Larmour <jifl@eCosCentric.com>
1835 * arm-tdep.c: Include features/arm-with-m.c.
1836 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1838 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1839 Check is_m after force-mode.
1840 (arm_gdbarch_init): Check the binary before the target description.
1841 Add check for M profile attribute. If we have an M-profile device,
1842 but no target register description, use arm-with-m. Recognize the
1843 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1844 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1845 * arm-tdep.h (XPSR_T): Define.
1846 (struct gdbarch_tdep): Add is_m member.
1847 * features/arm-m-profile.xml, features/arm-with-m.c,
1848 features/arm-with-m.xml: New files.
1850 2010-08-23 Doug Evans <dje@google.com>
1852 * dwarf2read.c (read_structure_type): Add comment.
1853 (read_enumeration_type): Add comment.
1854 (process_enumeration_scope): Move definition of some locals
1855 closer to their use.
1856 (read_namespace_type): Add comment.
1857 (set_die_type): Fix typo in comment.
1859 2010-08-23 Tom Tromey <tromey@redhat.com>
1862 * python/py-value.c: Include expression.h.
1863 (valpy_do_cast): New function.
1864 (valpy_cast): Use it.
1865 (valpy_dynamic_cast): New function.
1866 (valpy_reinterpret_cast): Likewise.
1867 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1869 2010-08-23 Tom Tromey <tromey@redhat.com>
1872 * python/py-value.c (valpy_nonzero): Don't throw error for other
1875 2010-08-23 Tom Tromey <tromey@redhat.com>
1878 * python/py-type.c: Include bcache.h, vec.h.
1879 (struct type_equality_entry): New.
1880 (compare_strings): New function.
1881 (check_types_equal): Likewise.
1882 (check_types_worklist): Likewise.
1883 (typy_richcompare): Likewise.
1884 (type_object_type): Set tp_richcompare field.
1886 2010-08-23 Tom Tromey <tromey@redhat.com>
1889 * python/py-type.c (typy_fields): Call check_typedef.
1890 (typy_template_argument): Add TRY_CATCH.
1892 2010-08-23 Tom Tromey <tromey@redhat.com>
1895 * python/py-type.c (typy_array): New function.
1896 (type_object_methods): Add "array".
1898 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1900 * python/python.c: Include "serial.h".
1901 (gdbpy_event_fds): Change type to `struct serial *' a array from
1903 (gdbpy_run_events): Change parameters. Use serial_readchar in
1905 (gdbpy_post_event): Use serial_write in place of write.
1906 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1907 serial_async in place of add_file_handler.
1909 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1911 * serial.h (gdb_pipe, serial_pipe): Declare.
1912 * serial.c (serial_interface_lookup): Take a const char pointer.
1913 (serial_fdopen): Rename to ...
1914 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1915 Call the OPS' fdopen function if there is one.
1916 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1918 (struct serial_ops) <fdopen>: New field.
1920 * ser-mingw.c (free_pipe_state):
1921 (free_pipe_state): Close output on non-pex pipes.
1922 (pipe_windows_fdopen): New.
1924 (_initialize_ser_windows): Register pipe_windows_fdopen.
1925 * ser-go32.c (gdb_pipe): New.
1926 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1931 2010-08-20 Keith Seitz <keiths@redhat.com>
1934 * dwarf2read.c (struct delayed_method_info): New struct.
1935 (struct dwarf2_cu): Add vector method_list.
1936 (scan_partial_symbols): Count methods for union, class, structure,
1937 and interface types.
1938 (add_to_method_list): New function.
1939 (free_delayed_list): New function.
1940 (compute_delayed_physnames): New function.
1941 (process_full_comp_unit): Make a cleanup for the CU's delayed
1942 physname list, compute the delayed physnames, and free the
1944 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1945 of the physname until after the CU is read.
1947 * dwarf2read.c (read_structure_type): Check if the current
1948 DIE's type was already completed after dwarf2_full_name
1951 2010-08-19 Stan Shebs <stan@codesourcery.com>
1953 * NEWS: Mention some additional changes.
1955 2010-08-19 Tom Tromey <tromey@redhat.com>
1957 * Makefile.in (install-python): Add DESTDIR.
1959 2010-08-19 Doug Evans <dje@google.com>
1962 * parser-defs.h (parse_float, parse_c_float): Declare.
1963 * parse.c (parse_float, parse_c_float): New function.
1964 * c-exp.y (parse_number): Call parse_c_float.
1965 * objc-exp.y (parse_number): Ditto.
1966 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1967 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1969 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1971 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1972 the arguments in the correct order.
1973 * symtab.c (maybe_add_partial_symtab_filename): Declare
1974 the arguments in the correct order.
1976 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1979 initialize it by null_frame_id, wrap its usage by get_frame_id,
1980 frame_id_p and frame_find_by_id.
1982 2010-08-18 Tom Tromey <tromey@redhat.com>
1985 * configure: Rebuild.
1986 * configure.ac: Add install-python to CONFIG_INSTALL.
1987 * Makefile.in (install-python): New.
1989 2010-08-18 Doug Evans <dje@google.com>
1991 * gdb_assert.h (gdb_assert_not_reached): New macro.
1992 (gdb_assert_fail): Fix typo in comment.
1993 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1995 * darwin-nat.c (darwin_check_new_threads): Ditto.
1996 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1997 (munmap_section_buffer): Ditto.
1998 * m32c-tdep.c (make_types): Ditto.
1999 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2000 * macroexp.c (get_character_constant): Ditto.
2001 (get_string_literal): Ditto.
2002 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2003 (mep_pseudo_cr_index, mep_register_type): Ditto.
2004 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2005 (mep_get_insn, mep_analyze_prologue): Ditto.
2006 * objfiles.c (qsort_cmp): Ditto.
2007 * prologue-value.c (pv_is_identical): Ditto.
2008 * record.c (record_get_loc): Ditto.
2009 * value.c (value_static_field): Ditto.
2010 * xtensa-tdep.c (call0_track_op): Ditto.
2012 2010-08-18 Tom Tromey <tromey@redhat.com>
2015 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2016 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2017 name-copying lower. Document exception behavior.
2018 * completer.c (expression_completer): Catch exceptions from
2019 parse_field_expression.
2021 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2025 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2026 workaround on core files.
2027 (try_thread_db_load_1): Don't try enabling thread event reporting
2029 (thread_db_load): Allow thread_db on core files.
2030 (attach_thread): Don't check thread signals on core files, nor try
2031 really attaching to the thread, nor enabling thread event event
2033 (thread_db_detach): Don't try disabing thread event reporting or
2034 removing thread event breakpoints when debugging a core file.
2035 (find_new_threads_callback): Don't try enabling thread event
2036 reporting on core files.
2037 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2038 debugging a core file.
2039 (thread_db_find_new_threads): Don't update thread
2040 cores (processors) when debugging a core (dump).
2042 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2046 * corelow.c (add_to_thread_list): Don't use
2047 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2048 (get_core_register_section): Don't use
2049 gdbarch_core_reg_section_encodes_pid.
2051 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2052 * gdbarch.h, gdbarch.c: Regenerate.
2053 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2054 gdbarch_core_reg_section_encodes_pid.
2055 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2056 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2057 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2059 2010-08-18 Yao Qi <yao@codesourcery.com>
2061 * MAINTAINERS : Add myself under Write After Approval.
2063 2010-08-17 Tom Tromey <tromey@redhat.com>
2065 * NEWS: Mention template parameter support.
2067 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2069 PR breakpoints/11371
2071 * breakpoint.c (decref_bp_location): Assert the reference count is
2074 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2076 PR breakpoints/11371
2078 * breakpoint.c (breakpoint_init_inferior): Decrement the
2079 location's reference count instead of deleting right away.
2080 (bpstat_free): Decrement the location's reference count. Make
2082 (bpstat_copy): Increment the location's reference count.
2083 (bpstat_find_breakpoint): Adjust.
2084 (bpstat_num): Adjust.
2085 (print_it_typical): Adjust. Use the breakpoint pointer in the
2086 bpstat instead of the location's owner.
2087 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2088 Adjust to record the location's owner in the bpstat.
2089 (watchpoint_check): Use the breakpoint pointer in the bpstat
2090 instead of the location's owner.
2091 (bpstat_check_breakpoint_conditions): Don't handle
2092 bp_watchpoint_scope here. Use the breakpoint pointer in the
2093 bpstat instead of the location's owner.
2094 (bpstat_stop_status): Defer inferior function calls to after
2095 building the bpstat list. Handle bp_watchpoint_scope here. Use
2096 the breakpoint pointer in the bpstat instead of the location's
2098 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2099 the location's owner.
2100 (free_bp_location): Don't walk bpstats clearing locations.
2101 (incref_bp_location): New.
2102 (decref_bp_location): New.
2103 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2104 instead of the location's owner.
2105 (update_global_location_list): Clear the location's owner, and
2106 decrement the location's reference count instead of deleting it
2108 (breakpoint_retire_moribund): Decrement the location's reference
2109 count instead of deleting it right away.
2110 (bpstat_remove_bp_location): Delete.
2111 (bpstat_remove_breakpoint): New.
2112 (bpstat_remove_bp_location_callback): Delete.
2113 (bpstat_remove_breakpoint_callback): New.
2114 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2115 clearing references to the breakpoint that is being deleted.
2117 * breakpoint.h (struct bp_location) <refc>: New field.
2118 <owner>: Update comments.
2119 (bpstat_free): Delete declaration.
2120 (struct bpstats): Change the type of the breakpoint_at field to
2121 struct breakpoint point, from struct bp_location pointer. Add new
2122 field bp_location_at.
2124 2010-08-16 Tom Tromey <tromey@redhat.com>
2128 2010-08-16 Tom Tromey <tromey@redhat.com>
2130 * NEWS: Mention watch -location.
2132 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2134 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2135 EXP_STRING_REPARSE to EXP_STRING.
2136 (watch_command_1): Set also EXP_STRING_REPARSE.
2137 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2138 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2139 Update comment for exp_string.
2141 2010-08-16 Tom Tromey <tromey@redhat.com>
2143 * value.c (release_value): Clear 'next' pointer.
2144 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2145 (watch_command_wrapper): Update.
2146 (watch_maybe_just_location): New function.
2147 (watch_command): Update.
2148 (rwatch_command_wrapper): Update.
2149 (rwatch_command): Update.
2150 (awatch_command_wrapper): Update.
2151 (awatch_command): Update.
2152 (check_for_argument): New function.
2153 (_initialize_breakpoint): Update help text.
2155 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2157 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2158 typedef'ed function types correctly.
2160 2010-08-13 Tom Tromey <tromey@redhat.com>
2162 * python/python-internal.h (gdbpy_get_hook_function): Don't
2165 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2167 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2170 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2172 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2173 the format strings to be compatible with Python 2.4.
2175 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2177 Easier and more stubborn MI memory read commands.
2179 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2180 and data-write-memory-bytes.
2181 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2182 (mi_cmd_data_write_memory_bytes): New.
2183 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2184 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2186 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2187 * target.c (target_read_until_error): Remove.
2188 (read_whatever_is_readable, free_memory_read_result_vector)
2189 (read_memory_robust): New.
2190 * target.h (target_read_until_error): Remove.
2191 (struct memory_read_result, free_memory_read_result_vector)
2192 (read_memory_robust): New.
2194 2010-08-13 Hui Zhu <teawater@gmail.com>
2196 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2197 (read_comp_unit): Initialize back_to.
2199 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2200 Pedro Alves <pedro@codesourcery.com>
2202 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2203 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2204 (struct partial_die_info) <has_template_arguments>: New field.
2205 <num_attrs>: Change type to unsigned char.
2206 <building_fullname>: New field.
2207 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2208 allocate a CU if we don't have one already. Add a cleanup for the
2210 (partial_die_full_name): Handle template arguments not in
2212 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2213 (load_full_comp_unit): Only allocate a CU if we don't have one
2215 (do_ui_file_peek_last): New.
2216 (dwarf2_compute_name): Handle template parameters not in
2218 (read_comp_unit): Read and free abbrevs if not read yet.
2219 (load_partial_dies): Handle template arguments not in DW_AT_name.
2220 (find_partial_die): If we have a CU, but no a partial dies yet,
2221 also read in the CU.
2222 (dwarf2_const_value_attr): New, abstracted out from
2224 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2225 dwarf2_const_value_attr.
2226 (determine_prefix): Detect and break loops created by RCVT's debug
2228 (maybe_queue_comp_unit): Bail out early if reading partial
2230 (follow_die_offset): Load full CU if we have no dies.
2231 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2232 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2234 2010-08-11 Tom Tromey <tromey@redhat.com>
2235 Phil Muldoon <pmuldoon@redhat.com>
2237 * python/python.c (gdbpy_run_events): New function.
2238 (gdbpy_post_event): Likewise.
2239 (gdbpy_initialize_events): Likewise.
2240 (_initialize_python): Call gdbpy_initialize_events.
2242 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2244 * gdb/valarith.c (vector_binop): New function.
2245 (scalar_binop): Likewise.
2246 (value_binop): Call scalar_binop or vector_binop depending on the types.
2247 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2248 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2250 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2252 2010-08-11 Brad Roberts <braddr@puremagic.com>
2254 * d-lang.c (extract_identifiers): Handle multiple digits.
2256 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2259 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2260 Rename to dummy_frame_unwind.
2261 (dummy_frame_unwind): Remove.
2262 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2263 * frame-unwind.c (frame_unwind_init): Use address of
2264 dummy_frame_unwind and inline_frame_unwind.
2265 * frame.c (create_sentinel_frame): Use address of
2266 sentinel_frame_unwind.
2267 * inline-frame.c (inline_frame_unwinder): Rename to
2268 inline_frame_unwind.
2269 (inline_frame_unwind): Remove.
2270 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2271 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2272 sentinel_frame_unwind.
2273 (sentinel_frame_unwind): Remove.
2274 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2277 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2280 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2281 and returned value. New comment from frame-unwind.h.
2282 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2284 * frame.c (get_frame_id, frame_unwind_register_value)
2285 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2286 (get_frame_type, frame_unwind_arch): Do not use the return value of
2287 frame_unwind_find_by_frame.
2289 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2290 Thiago Jung Bauermann <bauerman@br.ibm.com>
2291 Tom Tromey <tromey@redhat.com>
2293 * python/python.c (gdbpy_solib_address): New function.
2294 (gdbpy_decode_line): Likewise.
2296 2010-08-10 Tom Tromey <tromey@redhat.com>
2298 Revert gdb-add-index addition:
2299 * Makefile.in (install-only): Don't install gdb-add-index.
2300 * gdb-add-index.sh: Remove.
2302 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2304 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2305 `target_has_execution' check with `to_has_memory' check.
2306 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2307 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2308 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2310 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2312 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2313 (resume_siggnal, resume_step): Move these static globals...
2314 (struct sim_inferior_data): ...into this new struct.
2315 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2317 (gdb_callback, callbacks_initialized): Move these globals to
2318 a point earlier in the file.
2319 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2320 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2321 (gdbsim_close_inferior, gdbsim_resume_inferior)
2322 (gdbsim_stop_inferior): New functions.
2323 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2325 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2326 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2327 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2328 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2329 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2330 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2331 new local variable `sim_data' in each of these functions. Use
2332 `sim_data' to reference former globals `program_loaded',
2333 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2335 (gdbsim_open): Remove local variable `argv'. Put results of call
2336 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2337 make a cleanup for it. Free it though when a sim instance cannot
2339 (gdbsim_close): Free sim_argv and null it out as appropriate.
2340 Close sim instances in all inferiors.
2341 (gdbsim_cntrl_c): Stop all inferiors.
2343 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2345 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2347 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2348 function after symbol construction is complete.
2349 Do the same for template symbol addition to template_symbols list.
2351 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2353 * symtab.c (symbol_get_demangled_name): Remove assertion and
2354 return NULL when language_specific.cplus_specific is not initialized.
2355 * stabsread.c (define_symbol): Set the name before calling
2356 cp_scan_for_anonymous_namespaces.
2358 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2360 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2361 SYMBOL_SET_LANGUAGE.
2362 (symbol_init_language_specific): Renamed to symbol_set_language.
2363 * symtab.c (symbol_init_language_specific): Removed redundant check
2365 Renamed to symbol_set_language.
2366 * stabsread.c (define_symbol): Updated.
2367 (read_enum_type): Updated
2368 * psymtab.c (add_psymbol_to_bcache): Updated.
2369 * minsyms.c (install_minimal_symbols): Updated.
2370 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2371 SYMBOL_LANGUAGE to set the language.
2372 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2373 * mdebugread.c (new_symbol): Ditto.
2374 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2375 * dwarf2read.c (new_symbol_full): Ditto.
2376 * jv-lang.c (add_class_symbol): Ditto.
2378 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2381 (make_cleanup_restore_page_info)
2382 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2383 * gdbcmd.h (execute_command_to_string): New declaration.
2384 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2385 (make_cleanup_restore_ui_file): Move to utils.c
2386 (execute_gdb_command) <to_string>: Move ...
2387 * top.c (execute_command_to_string): ... here. Call
2388 set_batch_flag_and_make_cleanup_restore_page_info.
2389 * utils.c (make_cleanup_restore_integer): New source file blank line.
2390 (make_cleanup_restore_uinteger): New.
2391 (struct restore_ui_file_closure, do_restore_ui_file)
2392 (make_cleanup_restore_ui_file): Move here from python/python.c.
2393 (init_page_info) <batch_flag>
2394 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2395 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2397 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2399 * thread.c (add_thread_silent): Use null_ptid instead of
2400 minus_one_ptid while getting rid of stale inferior_ptid.
2402 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2404 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2405 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2406 (decode_frame_entry_1): Remove redundant setting of
2407 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2408 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2409 on examined frame section. Add comment to explain why.
2410 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2411 comment to explain usage.
2412 * gdbarch.c: Regenerate.
2413 * gdbarch.h: Regenerate.
2415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2417 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2423 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2425 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2426 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2427 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2428 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2429 linux-tdep.o to gdb_target_obs.
2431 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2433 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2436 2010-08-05 Hui Zhu <teawater@gmail.com>
2438 * mips-linux-tdep.c(regset.h): New include.
2439 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2440 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2441 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2442 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2443 mips_linux_regset_from_core_section): New functions.
2444 (fetch_core_registers, regset_core_fns): Deleted.
2445 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2446 Deleted regset_core_fns.
2447 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2448 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2449 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2452 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2454 * s390-tdep.c: Include linux-tdep.h.
2455 (s390_gdbarch_init): Call linux_init_abi.
2457 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2459 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2460 instead of printing "Thread" here.
2461 * linux-tdep.c: Include inferior.h.
2462 (linux_core_pid_to_str): New.
2463 (linux_init_abi): New.
2464 * linux-tdep.h (linux_init_abi): Declare.
2465 * alpha-linux-tdep.c: Include linux-tdep.h.
2466 (alpha_linux_init_abi): Call linux_init_abi.
2467 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2468 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2469 * frv-linux-tdep.c: Include linux-tdep.h
2470 (frv_linux_init_abi): Call linux_init_abi.
2471 * hppa-linux-tdep.c: Include linux-tdep.h
2472 (hppa_linux_init_abi): Call linux_init_abi.
2473 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2474 * ia64-linux-tdep.c: Include linux-tdep.h.
2475 (ia64_linux_init_abi): Call linux_init_abi.
2476 * m32r-linux-tdep.c: Include linux-tdep.h.
2477 (m32r_linux_init_abi): Call linux_init_abi.
2478 * m68klinux-tdep.c: Include linux-tdep.h.
2479 (m68k_linux_init_abi): Call linux_init_abi.
2480 * microblaze-linux-tdep.c: Include linux-tdep.h.
2481 (microblaze_linux_init_abi): Call linux_init_abi.
2482 * mips-linux-tdep.c: Include linux-tdep.h.
2483 (mips_linux_init_abi): Call linux_init_abi.
2484 * mn10300-linux-tdep.c: Include linux-tdep.h.
2485 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2486 'gdbinfo' parameter to 'info'.
2487 * ppc-linux-tdep.c: Include linux-tdep.h.
2488 (ppc_linux_init_abi): Call linux_init_abi.
2489 * sh-linux-tdep.c: Include linux-tdep.h.
2490 (sh_linux_init_abi): Call linux_init_abi.
2491 * sparc-linux-tdep.c: Include linux-tdep.h.
2492 (sparc32_linux_init_abi): Call linux_init_abi.
2493 * sparc64-linux-tdep.c: Include linux-tdep.h.
2494 (sparc64_linux_init_abi): Call linux_init_abi.
2495 * xtensa-linux-tdep.c: Include linux-tdep.h.
2496 (xtensa_linux_init_abi): Call linux_init_abi.
2497 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2498 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2501 2010-08-03 Doug Evans <dje@google.com>
2503 * breakpoint.c (bpdisp_text): Constify bpdisps.
2504 * solib-svr4.c (solib_break_names): Constify.
2505 (bkpt_names, main_name_list): Constify.
2506 (match_main): Constify soname arg.
2507 (bfd_lookup_symbol): Remove unnecessary forward decl.
2508 Constify symname arg.
2509 (enable_break): Constify bkpt_namep.
2510 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2511 (symtab_symbol_info): Constify classnames.
2513 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2515 * NEWS: Document Python value inferior function calls.
2517 2010-08-02 Doug Evans <dje@google.com>
2519 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2521 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2523 * linux-thread-db.c (libthread_db_debug): New variable.
2524 (thread_db_find_new_threads_silently): Control verbosity with it.
2525 (try_thread_db_load_1, try_thread_db_load): Likewise.
2526 (find_new_threads_once): Likewise.
2527 (_initialize_thread_db): Set/show it.
2529 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * common/signals.c (signals): Move the content to signals.def.
2532 Include it. Remove the INDENT comments.
2534 2010-07-30 Tom Tromey <tromey@redhat.com>
2536 * Makefile.in (install-only): Install gdb-add-index.
2537 * gdb-add-index.sh: New file.
2539 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2541 * MAINTAINERS: Add myself for write after approval privileges.
2543 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2545 * symfile.c (addr_section_name): New function.
2546 (addrs_section_compar): Use it.
2547 (addr_info_make_relative): Use it. Move variable sect_name into a more
2548 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2550 2010-07-30 Tom Tromey <tromey@redhat.com>
2552 * configure: Rebuild.
2553 * configure.ac: Add missing case for Python 2.7.
2555 2010-07-29 DJ Delorie <dj@redhat.com>
2557 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2560 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2562 * PROBLEMS: Remove mention of all problems.
2564 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2567 * configure.ac: Check for wresize.
2568 * configure, config.in: Regenerate.
2569 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2572 2010-07-28 Tom Tromey <tromey@redhat.com>
2575 * python/py-type.c (typy_legacy_template_argument): New function,
2576 extracted from typy_template_argument.
2577 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2580 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2582 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2584 2010-07-27 Tom Tromey <tromey@redhat.com>
2586 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2588 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2590 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2591 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2593 2010-07-28 Tom Tromey <tromey@redhat.com>
2595 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2597 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2599 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2600 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2602 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2604 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2605 down, just before the block that parse the breakpoint addr_string.
2607 2010-07-28 Tom Tromey <tromey@redhat.com>
2610 * symfile.c (reread_symbols): Clear template_symbols.
2611 * symtab.h (struct symbol) <is_cplus_template_function>: New
2613 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2614 (struct template_symbol): New.
2615 * symtab.c (lookup_symbol_aux_local): Use
2616 cp_lookup_symbol_imports_or_template.
2617 * objfiles.h (struct objfile) <template_symbols>: New field.
2618 * objfiles.c (relocate_one_symbol): New function.
2619 (objfile_relocate1): Use it. Relocate isolated symbols.
2620 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2621 template_arguments>: New fields.
2622 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2623 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2624 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2625 (lookup_typename): Update.
2626 * gdbtypes.c (lookup_typename): Constify "block" argument.
2627 * dwarf2read.c: Include vec.h.
2628 (symbolp): New typedef.
2629 (read_func_scope): Read template arguments. Allocate a
2630 template_symbol when needed.
2631 (read_structure_type): Read template arguments.
2632 (new_symbol_full): New function, from new_symbol. Handle
2633 DW_TAG_template_type_param and DW_TAG_template_value_param.
2634 (new_symbol): Rewrite as wrapper.
2635 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2636 * cp-namespace.c: Include language.h.
2637 (search_symbol_list): New function.
2638 (cp_lookup_symbol_imports_or_template): Likewise.
2640 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2642 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2643 the command window to the new size and position.
2645 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2647 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2650 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2652 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2653 after a detecting a resize.
2654 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2657 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2659 * configure.ac: Check for resize_term.
2660 * configure, config.in: Regenerate.
2662 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2664 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2666 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2668 * dwarf2read.c (read_string): Rename to ...
2669 (read_direct_string): ... this.
2670 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2671 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2673 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2676 (count_events_callback, select_event_lwp_callback)
2677 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2679 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2681 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2682 (_initialize_ia64_linux_nat): Install it.
2683 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2684 (linux_nat_set_status_is_event): New.
2685 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2686 cancel_breakpoints_callback, linux_nat_filter_event)
2687 (linux_nat_wait_1): Use linux_nat_status_is_event.
2688 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2690 2010-07-27 Tom Tromey <tromey@redhat.com>
2692 * NEWS: Mention labels, .gdb_index.
2694 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2696 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2697 "start,+length" form of arguments.
2698 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2699 since GDB 7.1"; and merge two separated paragraphs of disassemble
2700 description in "Changes in GDB 7.0".
2702 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2704 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2705 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2706 (fputs_maybe_filtered): Do not do filtering also on
2707 ! INPUT_FROM_TERMINAL_P.
2709 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2711 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2714 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2716 * python/py-value.c (valpy_call): New Function.
2718 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2720 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2721 types_list_elements variables.
2723 2010-07-26 Tom Tromey <tromey@redhat.com>
2725 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2726 TLS with DW_OP_const4u or DW_OP_const8u.
2728 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2730 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2731 VSX registers contents.
2733 2010-07-26 Jerome Guitton <guitton@adacore.com>
2735 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2736 its adress is null. Add comment to explain why.
2737 (new_symbol): Ditto.
2739 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2741 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2742 the host signal first.
2744 2010-07-23 Tom Tromey <tromey@redhat.com>
2746 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2747 type_comp_units>: New fields.
2748 (dw2_get_cu): New function.
2749 (create_cus_from_index): Remove unused argument.
2750 (create_signatured_type_hash_from_index): New function.
2751 (create_addrmap_from_index): Update.
2752 (dwarf2_read_index): Handle version 2.
2753 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2754 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2755 (dw2_print_stats, dw2_expand_all_symtabs)
2756 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2757 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2758 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2759 (allocate_signatured_type_hash_table): New function.
2760 (add_signatured_type_cu_to_list): Likewise.
2761 (create_debug_types_hash_table): Use them. Set type_comp_units.
2762 (read_signatured_type): Ensure section data is available.
2763 (add_address_entry): Don't record empty ranges.
2764 (struct signatured_type_index_data): New.
2765 (write_one_signatured_type): New function.
2766 (write_psymtabs_to_index): Write type CUs.
2767 (save_gdb_index_command): Update comment.
2768 (process_type_comp_unit): Move inititalization of
2770 (create_debug_types_hash_table): ... here.
2772 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2774 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2775 cleanup and generating of gdb script to it.
2776 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2777 and terminal size. Convert $tmpfile to a series of -ex-es.
2779 2010-07-23 Keith Seitz <keiths@redhat.com>
2781 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2782 hook for STATIC_BLOCK types, too.
2784 2010-07-23 Keith Seitz <keiths@redhat.com>
2786 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2787 and vector definition.
2789 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2791 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2793 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * dwarf2read.c: Include completer.h.
2796 (save_gdb_index_command): Use matching usage command name.
2797 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2798 Set filename_completer for it.
2800 2010-07-22 Tom Tromey <tromey@redhat.com>
2802 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2803 type signature's per-CU data.
2805 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2807 * NEWS: Mention target reported shared libraries support by
2810 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2815 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2816 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2817 and DW_TAG_volatile_type.
2818 (new_symbol): Likewise.
2820 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2822 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2823 function symbols before overload resolution.
2825 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2827 * breakpoint.c (bptype_string): New, abstracted out from
2828 print_one_breakpoint_location.
2829 (print_one_breakpoint_location): Adjust.
2830 (breakpoint_1): Adjust the type column width dynamically.
2832 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2834 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2835 a gdb_assert call, new comment.
2837 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2839 * linux-nat.c (linux_handle_extended_wait): Handle case when
2840 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2842 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2845 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2846 linux_nat_wait_1. Use always LP->STATUS afterwards.
2848 2010-07-20 Hui Zhu <teawater@gmail.com>
2850 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2851 (inf_ptrace_attach): Ditto.
2853 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2855 Make core files the process_stratum.
2856 * corefile.c (core_target): New variable.
2857 (core_file_command): Remove variable t, use core_target.
2858 * corelow.c (core_ops): Make it static.
2859 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2860 * defs.h (make_cleanup_unpush_target): New prototype.
2861 * gdbarch.h: Regenerate.
2862 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2863 * gdbcore.h (core_target): New declaration.
2864 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2865 variables ops_already_pushed and back_to. Use push_target,
2866 make_cleanup_unpush_target and discard_cleanups calls.
2867 * record.c (record_open): Replace core_stratum by a core_bfd check.
2868 * target.c (target_is_pushed): New function.
2869 (find_core_target): Remove.
2870 * target.h (enum strata) <core_stratum>: Remove.
2871 (target_is_pushed): New declaration.
2872 (find_core_target): Remove declaration.
2873 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2874 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2876 2010-07-19 Hui Zhu <teawater@gmail.com>
2878 * breakpoint.c (single_step_breakpoints_inserted): New
2880 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2881 * infrun.c (maybe_software_singlestep): Add check code.
2882 * record.c (record_resume): Add code for software single step.
2883 (record_wait): Ditto.
2885 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2887 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2888 a more inner block. Remove its unused declaration initializer.
2890 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2892 * NEWS: Mention support for the new ptrace interface and hardware
2893 accelerated watchpoint conditions on powerpc-linux.
2895 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2897 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2898 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2899 and host_address_to_string() and %s for pointers.
2900 (debug_to_remove_breakpoint): Likewise.
2901 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2902 (debug_to_can_accel_watchpoint_condition): Likewise.
2903 (debug_to_stopped_data_address): Likewise.
2904 (debug_to_watchpoint_addr_within_range): Likewise.
2905 (debug_to_insert_hw_breakpoint): Likewise.
2906 (debug_to_remove_hw_breakpoint): Likewise.
2907 (debug_to_insert_watchpoint): Likewise.
2908 (debug_to_remove_watchpoint): Likewise.
2910 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2912 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2914 (cplus_specific): New struct.
2915 * symtab.c (symbol_set_demangled_name): Updated.
2916 Use cplus_specific for cplus symbols.
2917 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2918 struct for cplus symbols.
2919 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2920 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2921 * symtab.c (symbol_init_cplus_specific): New function.
2923 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2925 * symtab.h (symbol_set_demangled_name): New function.
2926 (symbol_get_demangled_name): New function.
2927 * symtab.c (symbol_set_demangled_name): New function.
2928 (symbol_get_demangled_name): New function.
2929 (symbol_init_language_specific): Use demangled_name setter and getter.
2930 (symbol_set_names): Ditto.
2931 (symbol_natural_name): Ditto.
2932 (symbol_demangled_name): Ditto.
2933 * dwarf2read.c (new_symbol): Ditto.
2935 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2937 * symtab.h: Renamed cplus_specific to mangled_lang.
2938 * symtab.c (symbol_init_language_specific): Updated.
2939 (symbol_set_names): Updated.
2940 (symbol_natural_name): Updated.
2941 (symbol_demangled_name): Updated.
2942 * ada-lang.c (ada_decode_symbol): Updated.
2943 * dwarf2read.c (new_symbol): Updated.
2945 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2947 * valops.c (value_assign): Do not call to value_coerce_to_target.
2948 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2950 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2952 * MAINTAINERS: Add myself for write after approval privileges.
2954 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2956 * c-valprint.c (c_val_print): Add embedded_offset to address in
2957 call to val_print_array_elements.
2959 2010-07-13 Tom Tromey <tromey@redhat.com>
2961 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2963 2010-07-13 Tom Tromey <tromey@redhat.com>
2965 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2968 2010-07-13 Tom Tromey <tromey@redhat.com>
2970 * symfile.c (set_initial_language): Update.
2971 (deduce_language_from_filename): Argument type now const.
2972 * symtab.h (find_main_filename): Update.
2973 (deduce_language_from_filename): Update.
2974 * symtab.c (find_main_filename): Make result const.
2975 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2976 * psymtab.c (find_symbol_file_from_partial): Change return type.
2977 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2980 2010-07-13 Tom Tromey <tromey@redhat.com>
2982 * breakpoint.c (save_cmdlist): No longer static.
2983 * gdbcmd.h (save_cmdlist): Declare.
2984 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2985 OBJF_READNOW on objfile if readnow_symbol_files.
2986 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2987 (elf_sym_fns_gdb_index): New global.
2988 * dwarf2read.c: Include exceptions.h.
2990 (struct mapped_index): New.
2991 (dwarf2_per_cu_data_ptr): New typedef.
2992 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2994 (GDB_INDEX_SECTION): New define.
2995 (struct dwarf2_per_cu_quick_data): New.
2996 (struct dwarf2_per_cu_data) <objfile>: New field.
2999 (byte_swap): New function.
3000 (MAYBE_SWAP): New macro.
3001 (INDEX_SUFFIX): New macro.
3002 (dw2_do_instantiate_symtab): New function.
3003 (dw2_instantiate_symtab): Likewise.
3004 (create_cus_from_index): Likewise.
3005 (create_addrmap_from_index): Likewise.
3006 (mapped_index_string_hash): Likewise.
3007 (find_slot_in_mapped_hash): Likewise.
3008 (dwarf2_read_index): Likewise.
3009 (dw2_setup): Likewise.
3010 (dw2_require_line_header): Likewise.
3011 (dw2_require_full_path): Likewise.
3012 (dw2_find_last_source_symtab): Likewise.
3013 (dw2_forget_cached_source_info): Likewise.
3014 (dw2_lookup_symtab): Likewise.
3015 (dw2_lookup_symbol): Likewise.
3016 (dw2_do_expand_symtabs_matching): Likewise.
3017 (dw2_pre_expand_symtabs_matching): Likewise.
3018 (dw2_print_stats): Likewise.
3019 (dw2_dump): Likewise.
3020 (dw2_relocate): Likewise.
3021 (dw2_expand_symtabs_for_function): Likewise.
3022 (dw2_expand_all_symtabs): Likewise.
3023 (dw2_expand_symtabs_with_filename): Likewise.
3024 (dw2_find_symbol_file): Likewise.
3025 (dw2_map_ada_symtabs): Likewise.
3026 (dw2_expand_symtabs_matching): Likewise.
3027 (dw2_find_pc_sect_symtab): Likewise.
3028 (dw2_map_symbol_names): Likewise.
3029 (dw2_map_symbol_filenames): Likewise.
3030 (dw2_has_symbols): Likewise.
3031 (dwarf2_gdb_index_functions): New global.
3032 (dwarf2_initialize_objfile): New function.
3033 (process_psymtab_comp_unit): Update.
3034 (add_partial_subprogram): Likewise.
3035 (dwarf2_psymtab_to_symtab): Likewise.
3036 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3037 (process_full_comp_unit): Update.
3038 (find_file_and_directory): New function.
3039 (read_file_scope): Use find_file_and_directory.
3040 (dwarf2_per_cu_objfile): Update.
3041 (dwarf2_per_cu_addr_size): Update.
3042 (dwarf2_per_cu_offset_size): Update.
3043 (dwarf2_free_objfile): Free the index, if needed.
3044 (dwarf2_per_objfile_free): Unmap the index, if needed.
3045 (struct strtab_entry): New.
3046 (hash_strtab_entry): New function.
3047 (eq_strtab_entry): Likewise.
3048 (create_strtab): Likewise.
3049 (add_string): Likewise.
3050 (struct symtab_index_entry): New.
3051 (struct mapped_symtab): New.
3052 (hash_symtab_entry): New function.
3053 (eq_symtab_entry): Likewise.
3054 (delete_symtab_entry): Likewise.
3055 (create_index_table): Likewise.
3056 (create_mapped_symtab): Likewise.
3057 (cleanup_mapped_symtab): Likewise.
3058 (find_slot): Likewise.
3059 (hash_expand): Likewise.
3060 (add_index_entry): Likewise.
3061 (add_indices_to_cpool): Likewise.
3062 (write_hash_table): Likewise.
3063 (add_address_entry): Likewise.
3064 (write_psymbols): Likewise.
3065 (write_obstack): Likewise.
3066 (unlink_if_set): Likewise.
3067 (write_psymtabs_to_index): Likewise.
3068 (save_gdb_index_command): Likewise.
3069 (_initialize_dwarf2_read): Install "save gdb-index"
3071 (create_all_comp_units): Initialize 'objfile' field of CU.
3072 (dwarf2_locate_sections): Check for .gdb_index.
3073 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3074 * symfile.h (dwarf2_initialize_objfile): Declare.
3076 2010-07-13 Tom Tromey <tromey@redhat.com>
3078 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3079 (basic_lookup_transparent_type): Likewise.
3080 * symfile.h (struct quick_symbol_functions)
3081 <pre_expand_symtabs_matching>: New field.
3082 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3083 (psym_functions): Update.
3085 2010-07-13 Tom Tromey <tromey@redhat.com>
3087 PR breakpoints/8357:
3088 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3089 * linespec.c (decode_line_1): Update comment. Call decode_label.
3090 (decode_label): New function.
3091 (symbol_found): Handle LOC_LABEL.
3092 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3093 domain. Call add_symbol_to_list.
3095 2010-07-13 Tom Tromey <tromey@redhat.com>
3097 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3098 * dwarf2loc.c (find_location_expression): Use
3099 dwarf2_per_cu_text_offset.
3100 (dwarf2_evaluate_loc_desc): Likewise.
3101 (dwarf2_loc_desc_needs_frame): Likewise.
3102 (compile_dwarf_to_ax): Likewise.
3103 (loclist_describe_location): Likewise.
3104 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3105 (dwarf2_per_cu_objfile): Update comment.
3107 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3109 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3110 * p-lang.c (pascal_printstr): Likewise.
3112 2010-07-09 Tom Tromey <tromey@redhat.com>
3114 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3115 'hint' if it is NULL.
3117 2010-07-09 Hui Zhu <teawater@gmail.com>
3119 * source.c (print_source_lines_base): Add check for noprint.
3121 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3123 * python/python-config.py: Resync with Python 2.7 version of this
3126 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3128 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3130 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3132 * NEWS: Create a new section for the next release branch.
3133 Rename the section of the current branch, now that it has
3136 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3138 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3139 * version.in: Bump version to 7.2.50.20100707-cvs.
3141 2010-07-07 Tom Tromey <tromey@redhat.com>
3143 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3144 LOC_COMPUTED symbol.
3145 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3146 (dwarf2_loc_desc_needs_frame): Likewise.
3147 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3148 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3149 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3150 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3152 (struct dwarf2_frame_cache) <text_offset>: New field.
3153 (dwarf2_frame_cache): Set new field.
3154 (dwarf2_frame_prev_register): Update.
3155 (dwarf2_frame_sniffer): Update.
3156 (dwarf2_frame_base_sniffer): Update.
3157 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3159 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3160 Thiago Jung Bauermann <bauerman@br.ibm.com>
3162 Support for hw accelerated condition watchpoints in booke powerpc.
3164 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3165 and move to eval.c. Change callers.
3166 (insert_bp_location): Pass watchpoint condition in
3167 target_insert_watchpoint.
3168 (remove_breakpoint_1) Pass watchpoint condition in
3169 target_remove_watchpoint.
3170 (watchpoint_locations_match): Call
3171 target_can_accel_watchpoint_condition.
3172 * eval.c: Include wrapper.h.
3173 (fetch_subexp_value): Moved from breakpoint.c.
3174 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3176 (can_use_watchpoint_cond_accel): New function.
3177 (calculate_dvc): Likewise.
3178 (num_memory_accesses): Likewise.
3179 (check_condition): Likewise.
3180 (ppc_linux_can_accel_watchpoint_condition): Likewise
3181 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3182 check_condition and calculate_dvc.
3183 (ppc_linux_remove_watchpoint): Likewise.
3184 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3185 ppc_linux_can_accel_watchpoint_condition
3186 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3188 (debug_to_remove_watchpoint): Likewise.
3189 (debug_to_can_accel_watchpoint_condition): New function.
3190 (update_current_target): Set to_can_accel_watchpoint_condition.
3191 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3192 * target.h: Add opaque declaration for struct expression.
3193 (struct target_ops) <to_insert_watchpoint>,
3194 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3195 <to_can_accel_watchpoint_condition>: New member.
3196 condition. Update all callers and implementations.
3197 (target_can_accel_watchpoint_condition): New macro.
3198 * value.c (free_value_chain): New function.
3199 * value.h (fetch_subexp_value): New prototype.
3200 (free_value_chain): Likewise.
3202 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3204 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3205 from gdbarch_core_regset_sections also for .reg if present.
3207 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3208 section size for .reg.
3209 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3210 (ppc_linux_vmx_regset_sections): Likewise.
3211 (ppc_linux_fp_regset_sections): Likewise.
3212 (ppc64_linux_vsx_regset_sections): New variable.
3213 (ppc64_linux_vmx_regset_sections): Likewise.
3214 (ppc64_linux_fp_regset_sections): Likewise.
3215 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3216 for current word size.
3218 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3220 * server.c (myresume): Make static.
3222 2010-07-06 Tom Tromey <tromey@redhat.com>
3224 * configure, config.in: Rebuild.
3225 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3226 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3228 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3230 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3233 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3235 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3236 * gdbtypes.c (floatformats_ieee_half): New variable.
3237 * doublest.c (floatformat_from_length): Set format to
3238 gdbarch_half_format if length matches.
3239 * gdbarch.sh (half_bit): New architecture method.
3240 (half_format): Likewise.
3241 * gdbarch.h: Regenerate.
3242 * gdbarch.c: Likewise.
3244 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 Joel Brobecker <brobecker@adacore.com>
3247 Fix re-run of PIE executable, PR shlibs/11776.
3248 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3249 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3251 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 Joel Brobecker <brobecker@adacore.com>
3254 * auxv.c (memory_xfer_auxv): Update attach comment.
3255 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3256 svr4_relocate_main_executable.
3257 (svr4_solib_create_inferior_hook): Make the call to
3258 svr4_relocate_main_executable unconditional.
3260 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3261 Joel Brobecker <brobecker@adacore.com>
3263 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3265 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3266 Joel Brobecker <brobecker@adacore.com>
3268 Fix attaching to PIEs prelinked on the disk after the process was
3270 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3271 Verify it against bfd_get_arch_size. Try to match arbitrary
3272 displacement for the phdrs comparison.
3274 2010-07-02 Tom Tromey <tromey@redhat.com>
3277 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3278 value as optimized-out.
3280 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3281 Thiago Jung Bauermann <bauerman@br.ibm.com>
3283 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3284 represent?" question in comment. Change comment to a proper sentence.
3286 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3288 * c-valprint.c (c_val_print): Fix printing of character vectors.
3290 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3293 create_breakpoint prototype.
3295 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3297 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3298 usefulness suggestion of multiple breakpoints at same location.
3300 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3302 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3304 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3306 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3307 (loclist_tracepoint_var_ref): Handle optimized out values.
3309 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3311 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3312 unnecessary space in string.
3313 * filesystem.c (_initialize_filesystem): Ditto.
3314 * frame.c (_initialize_frame): Ditto.
3315 * infcmd.c (step_once): Ditto.
3316 * infrun.c (_initialize_infrun): Ditto.
3317 * linux-nat.c (linux_child_follow_fork): Ditto.
3318 * maint.c (maintenance_deprecate): Ditto.
3319 * memattr.c (_initialize_mem): Ditto.
3320 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3321 * monitor.c (monitor_open): Ditto.
3322 * procfs.c (procfs_xfer_memory): Ditto.
3323 * reverse.c (bookmarks_info): Ditto.
3324 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3325 * stack.c (_initialize_stack): Ditto.
3326 * tracepoint.c (_initialize_tracepoint): Ditto.
3327 * xtensa-tdep.c (xtensa_supply_gregset,
3328 xtensa_regset_from_core_section): Ditto.
3330 2010-07-01 Tom Tromey <tromey@redhat.com>
3332 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3334 * value.c (value_entirely_optimized_out): Invert result. Update
3335 for new function name.
3337 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3339 Static tracepoints support.
3341 * NEWS: Mention new support for static tracepoints.
3342 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3343 qXfer:statictrace:read.
3344 (New features in the GDB remote stub, GDBserver): Mention static
3345 tracepoints support using an UST based backend.
3346 (New commands): Mention "info static-tracepoint-markers" and
3348 * breakpoint.c (is_marker_spec): New.
3349 (is_tracepoint): Handle static tracepoints.
3350 (validate_commands_for_breakpoint): Static tracepoints can't do
3352 (static_tracepoints_here): New.
3353 (bpstat_what): Handle static tracepoints.
3354 (print_one_breakpoint_location, allocate_bp_location, mention):
3356 (create_breakpoint_sal): Ditto.
3357 (decode_static_tracepoint_spec): New.
3358 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3359 `type_wanted'. Adjust. Handle static tracepoint marker
3361 (break_command_1): Adjust.
3362 (update_static_tracepoint): New.
3363 (update_breakpoint_locations): Handle static tracepoints.
3364 (breakpoint_re_set_one): Handle static tracepoint marker
3366 (disable_command, enable_command): Handle static tracepoints.
3367 (trace_command, ftrace_command): Adjust.
3368 (strace_command): New.
3369 (create_tracepoint_from_upload): Adjust.
3370 (save_breakpoints): Handle static tracepoints.
3371 (_initialize_breakpoint): Install the "strace" command.
3372 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3373 (struct breakpoint): New fields static_trace_marker_id and
3374 static_trace_marker_id_idx.
3375 (breakpoints_here_p): Declare.
3376 (create_breakpoint): Adjust.
3377 (static_tracepoints_here): Declare.
3378 * remote.c (struct remote_state) <static_tracepoints>: New field.
3379 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3380 (remote_static_tracepoint_marker_at): New.
3381 (remote_static_tracepoint_markers_by_strid): New.
3382 (remote_static_tracepoint_feature): New.
3383 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3384 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3385 (remote_supports_static_tracepoints): New.
3386 (remote_download_tracepoint): Download static tracepoints.
3387 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3388 remote_static_tracepoint_markers_by_strid.
3389 (_initialize_remote): Install set|show remote static-tracepoints,
3390 and set|show remote read-sdata-object commands.
3391 * target.c (update_current_target): Inherit and default
3392 to_static_tracepoint_marker_at, and
3393 to_static_tracepoint_markers_by_strid.
3394 * target.h (static_tracepoint_marker): Forward declare.
3395 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3396 (static_tracepoint_marker_p): New typedef.
3397 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3398 (struct target_ops): New fields to_static_tracepoint_marker_at and
3399 to_static_tracepoint_markers_by_strid.
3400 (target_static_tracepoint_marker_at)
3401 (target_static_tracepoint_markers_by_strid): New.
3402 * tracepoint.c: Include source.h.
3403 (validate_actionline): Handle $_sdata.
3404 (struct collection_list): New field strace_data.
3405 (add_static_trace_data): New.
3406 (clear_collection_list): Clear strace_data.
3407 (stringify_collection_list): Account for a possible static trace
3409 (encode_actions_1): Encode an $_sdata collection.
3410 (parse_tracepoint_definition): Handle static tracepoints.
3411 (parse_static_tracepoint_marker_definition): New.
3412 (release_static_tracepoint_marker): New.
3413 (print_one_static_tracepoint_marker): New.
3414 (info_static_tracepoint_markers_command): New.
3415 (sdata_make_value): New.
3416 (_initialize_tracepoint): Create the $_sdata convenience variable.
3417 Add the "info static-tracepoint-markers" command.
3418 Mention $_sdata in the "collect" command's help output.
3419 * tracepoint.h (struct static_tracepoint_marker): New.
3420 (parse_static_tracepoint_marker_definition)
3421 (release_static_tracepoint_marker): Declare.
3422 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3423 * python/py-breakpoint.c (bppy_new): Adjust.
3425 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3427 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3430 2010-06-29 Doug Evans <dje@google.com>
3433 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3434 DW_AT_external is present.
3438 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3439 create a symbol for the field and record the value.
3440 (new_symbol): Handle DW_TAG_member.
3441 * gdbtypes.c (field_is_static): Remove FIXME.
3442 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3443 only ignore LOC_CONST symbols that are enums.
3445 * dwarf2read.c: Remove trailing whitespace.
3447 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3448 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3449 (struct main_type, field loc): Delete dwarf_block.
3450 (FIELD_DWARF_BLOCK): Delete.
3451 (SET_FIELD_DWARF_BLOCK): Delete.
3452 (TYPE_FIELD_DWARF_BLOCK): Delete.
3453 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3456 2010-06-29 Hui Zhu <teawater@gmail.com>
3458 * record.c (set_record_pic_cmdlist,
3459 show_record_pic_cmdlist): New variables.
3460 (set_record_pic_command,
3461 show_record_pic_command): New functions.
3462 (record_pic_function, record_pic_line, record_pic_enum,
3463 set_record_pic_type, record_pic_hide_nofunction,
3464 record_pic_hide_nosource, record_pic_hide_same): New variables.
3465 (record_pic_fputs): New function.
3466 (function_list, node_list, edge_list): New struct.
3467 (function_list, node_list, edge_list): New variables.
3468 (record_pic_cleanups, record_pic_node,
3469 record_pic_edge, cmd_record_pic): New functions.
3470 (_initialize_record): Add new commands for record pic.
3472 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3474 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3475 ALLOCATE_CPLUS_STRUCT_TYPE.
3477 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3478 Tom Tromey <tromey@redhat.com>
3479 Thiago Jung Bauermann <bauerman@br.ibm.com>
3481 * value.c (pack_unsigned_long): New function.
3482 (value_from_ulongest): New function.
3483 * value.h (value_from_ulongest): Declare.
3484 * python/python.c (_initialize_python): Call
3485 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3486 * python/python-internal.h: Define thread_object.
3487 (gdbpy_inferiors, gdbpy_selected_thread)
3488 (frame_info_to_frame_object, create_thread_object)
3489 (find_thread_object, find_inferior_object)
3490 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3491 (gdbpy_is_value_object, get_addr_from_python): Declare.
3492 * python/py-value.c (builtin_type_upylong): Define.
3493 (convert_value_from_python): Add logic for ulongest.
3494 (gdbpy_is_value_object): New function.
3495 * python/py-utils.c (get_addr_from_python): New function.
3496 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3497 (gdbpy_selected_frame): Use PyObject over frame_info.
3498 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3500 (SUBDIR_PYTHON_SRCS): Likewise.
3501 (py-inferior.o): New Rule.
3502 (py-infthread.o): New Rule.
3503 * python/py-inferior.c: New File.
3504 * python/py-infthread.c: New File.
3506 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3508 * c-typeprint.c (c_type_print_base): For no fields check include also
3509 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3510 * dwarf2read.c (struct typedef_field_list)
3511 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3512 (dwarf2_add_typedef): New.
3513 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3514 Copy also FI.TYPEDEF_FIELD_LIST.
3515 * gdbtypes.h (struct typedef_field)
3516 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3517 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3518 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3520 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 * cp-namespace.c (cp_lookup_nested_type): New variable
3523 concatenated_name. Turn the current return condition into a reverse
3524 one. Call also lookup_static_symbol_aux on the constructed qualified
3526 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3527 other files into a called ...
3528 (lookup_static_symbol_aux): ... new function here.
3529 * symtab.h (lookup_static_symbol_aux): New prototype.
3530 * valops.c (value_maybe_namespace_elt): Call also
3531 lookup_static_symbol_aux if we failed otherwise.
3533 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 Fix PR c++/11703 and PR gdb/1448.
3536 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3539 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3541 Fix modification of cplus_struct_default.
3542 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3543 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3544 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3546 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3548 * NEWS: Add entry announcing the python directory.
3550 2010-06-28 Tom Tromey <tromey@redhat.com>
3552 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3554 2010-06-28 Doug Evans <dje@google.com>
3556 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3557 All callers updated.
3559 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3561 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3562 obstack_begin after each obstack_free.
3564 2010-06-27 Doug Evans <dje@google.com>
3566 * value.c (value_static_field): Use `switch' instead of `if'.
3567 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3569 * valops.c (search_struct_field): Fix typo in error message.
3571 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3573 * dwarf2expr.c (execute_stack_op): Place preprocessor
3574 directives at the start of the source line.
3576 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3578 * defs.h (make_command_stats_cleanup): Declare.
3579 (set_display_time): Declare.
3580 (set_display_space): Declare.
3581 * event-top.c (command_handler): Use make_command_stats_cleanup.
3582 * main.c (display_time, display_space): Move definitions to utils.c.
3583 (captured_main): Use make_command_stats_cleanup to get start-up
3585 Use set_display_time and set_display_space for processing OPT_STATISTICS
3587 * maint.c (maintenance_time_display): Use set_display_time.
3588 (maintenance_space_display): Use set_display_space.
3589 * top.c (execute_command): Remove obsolete 'maint time' code.
3590 (command_loop): Use make_command_stats_cleanup.
3591 * utils.c (struct cmd_stats): Structure for storing initial time
3593 (display_time, display_space): Move definitions here from utils.c.
3594 (set_display_time): New function.
3595 (set_display_space): New function.
3596 (make_command_stats_cleanup): New function.
3597 (report_command_stats): New auxiliary function for
3598 make_command_stats_cleanup.
3600 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3602 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3603 hosts where CORE_ADDR is long long.
3605 2010-06-25 Tom Tromey <tromey@redhat.com>
3608 * python/python.c (execute_gdb_command): Add keywords. Accept
3609 "to_string" argument.
3610 (struct restore_ui_file_closure): New.
3611 (restore_ui_file): New function.
3612 (make_cleanup_restore_ui_file): Likewise.
3613 (GdbMethods) <execute>: Update.
3615 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3617 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3618 during inferior call stack frame setup.
3620 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3622 * solib-spu.c: Include "exception.h".
3623 (ocl_program_data_key): New variable.
3624 (append_ocl_sos): New function.
3625 (ocl_enable_break): Likewise.
3626 (spu_current_sos): Call append_ocl_sos.
3627 (spu_solib_loaded): Call ocl_enable_break.
3628 (_initialize_spu_solib): Register ocl_program_data_key.
3630 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3632 * cp-support.c (reset_directive_searched): New function.
3633 (make_symbol_overload_list_using): Prevent recursive calls.
3635 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3637 * printcmd.c (print_variable_and_value): Print error message on
3640 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3642 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3644 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3646 (dwarf_expr_push): Change input type to ULONGEST.
3647 (dwarf_expr_fetch): Change return type to ULONGEST.
3648 (dwarf_expr_fetch_address): Add prototype.
3649 (dwarf2_read_address): Remove prototype.
3650 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3651 Truncate stack values to ctx->addr_size bytes.
3652 (dwarf_expr_fetch): Change return value to ULONGEST.
3653 (dwarf_expr_fetch_address): New function.
3654 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3655 when appropriate. Update for struct dwarf_expr_piece changes.
3656 (dwarf2_read_address): Remove.
3657 (unsigned_address_type): Remove.
3658 (signed_address_type): Remove.
3659 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3660 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3661 values. Perform operations on ULONGEST instead of on GDB values,
3662 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3663 values and DW_OP_deref results as unsigned integers.
3664 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3666 (write_pieced_value): Likewise.
3667 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3668 dwarf_expr_fetch when appropriate.
3669 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3670 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3671 instead of dwarf_expr_fetch when appropriate.
3673 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3675 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3677 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3679 * python/python.c (_initialize_python): Add new "constant"
3680 PYTHONDIR in gdb module. Insert this path at the head of
3681 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3682 exec its __init__.py script if it exists in that directory.
3684 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3686 * rx-tdep.c (RX_ACC_REGNUM): Define.
3687 (RX_NUM_REGS): Redefine to 26.
3688 (rx_register_name): Add register "acc". Change order of several
3689 registers. Change name of "vct" register to "fintv" to match RX
3691 (rx_register_type): Add case for RX_ACC_REGNUM.
3693 2010-06-24 Tom Tromey <tromey@redhat.com>
3695 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3697 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3698 Tom Tromey <tromey@redhat.com>
3700 Fix GDB startup on readonly filesystem.
3701 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3703 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 Pedro Alves <pedro@codesourcery.com>
3707 * breakpoint.c (handle_jit_event): New function.
3708 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3709 jit, err, table and bs_class. New variables shlib_event, jit_event,
3710 this_action and bptype. Change bs_class assignments to this_action
3711 assignments. new unhandled bptype internal error. Move here
3712 shlib_event and jit_event handling from handle_inferior_event.
3713 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3714 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3715 BPSTAT_WHAT_CHECK_JIT.
3716 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3717 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3718 (handle_inferior_event): Reinitialize frame and gdbarch after
3719 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3720 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3721 gdbarch when frame gets reinitialized.
3723 2010-06-24 Hui Zhu <teawater@gmail.com>
3725 * printcmd.c (ui_printf): New function.
3726 (printf_command): Call ui_printf.
3727 (_initialize_printcmd): New command "eval".
3729 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3731 * infrun.c (handle_inferior_event): Handle presence of single-step
3732 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3733 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3734 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3735 * breakpoint.c (detach_single_step_breakpoints): New function.
3736 (detach_breakpoints): Call it.
3737 (cancel_single_step_breakpoints): New function.
3738 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3740 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3741 (spu_gdbarch_init): Install it.
3743 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3746 * configure: Regenerate.
3748 2010-06-22 Hui Zhu <teawater@gmail.com>
3750 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3751 (i386_process_record): Ditto.
3752 * record.c (record_memory_query): New variable.
3753 (_initialize_record): New command "set record memory-query".
3754 * record.h (record_memory_query): New extern.
3756 2010-06-21 Doug Evans <dje@google.com>
3758 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3759 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3760 (i386_syscall_p): Change type of lengthp to int.
3761 (i386_displaced_step_fixup): Handle kernels that run one past a
3763 * i386-linux-tdep.c (i386_linux_init_abi): Use
3764 i386_displaced_step_copy_insn instead of
3765 simple_displaced_step_copy_insn.
3767 2010-06-21 Tom Tromey <tromey@redhat.com>
3769 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3770 (dwarf_type_encoding_name): Likewise.
3772 2010-06-21 Tom Tromey <tromey@redhat.com>
3774 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3775 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3776 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3777 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3778 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3779 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3780 * dwarf2read.c (tag_type_to_type): Create a new error type on
3782 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3783 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3785 2010-06-21 Michael Snyder <msnyder@vmware.com>
3787 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3788 not add_abbrev_prefix_cmd, for "enable breakpoints".
3790 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3792 * dwarf2loc.c (find_location_expression): Add relocation offset
3793 to base-address-selection entry base addresses. Read addresses
3794 (and offsets) as signed/unsigned integers, depending on the
3795 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3796 (loclist_describe_location): Likewise.
3797 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3798 unsigned integer. Do not call dwarf2_read_address.
3799 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3801 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3803 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3804 value instead of hard-coded SPU_LS_SIZE.
3805 (spu_software_single_step): Likewise.
3806 * spu-tdep.h (SPU_LS_SIZE): Remove.
3808 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3810 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3811 limit on local store memory accesses.
3812 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3813 * spu-tdep.c (spu_lslr): Remove.
3814 (spu_pointer_to_address): Do not truncate addresses.
3815 (spu_integer_to_address): Likewise.
3816 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3817 * spu-tdep.h: Add comments.
3818 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3819 (SPU_OVERLAY_LMA): Define.
3821 2010-06-18 Stan Shebs <stan@codesourcery.com>
3823 * osdata.c (get_osdata): Warn separately if target does not report
3825 (info_osdata_command): Allow empty type, report error if target
3826 does not return available types of OS data.
3827 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3828 types if no annex supplied.
3830 * thread.c (thread_id_make_value): Make a value representing the
3832 (_initialize_thread): Create $_thread.
3834 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3836 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3837 last local variable declaration. No real code change.
3839 2010-06-17 Tom Tromey <tromey@redhat.com>
3841 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3842 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3845 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3846 Jan Kratochvil <jan.kratochvil@redhat.com>
3848 * breakpoint.c: Include parser-defs.h.
3849 (watchpoint_exp_is_const): New function.
3850 (watch_command_1): Call watchpoint_exp_is_const to check
3851 if the expression is constant.
3853 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3855 * configure.ac: Check for RDYNAMIC also for cross builds.
3856 * configure: Regenerate.
3858 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3860 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3861 (SFILES): Remove solib-null.c, add solib-target.c.
3862 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3863 (ALLDEPFILES): Remove solib-target.c.
3864 * solib-target.c (_initialize_solib_target): Set
3865 current_target_so_ops to solib_target_so_ops if not already set.
3866 * solib-null.c: Delete.
3868 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3870 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3873 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3875 * cp-valprint.c (cp_print_static_field): Members of
3876 dont_print_stat_array_obstack are of type "struct type *".
3877 (_initialize_cp_valprint): Likewise.
3879 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3881 * frame.c (frame_register_unwind): Do not access contents
3882 of "optimized out" unwound register value.
3884 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3886 * ada-lang.h (ada_print_type): Make varstring const.
3887 * ada-typeprint.c (print_func_type): Make name const.
3888 (ada_print_type): Make varstring const.
3889 * c-lang.h (c_print_type): Make varstring const.
3890 * c-typeprint.c (c_print_type): Likewise.
3891 * f-lang.h (f_print_type): Likewise.
3892 * f-typeprint.c (f_print_type): Likewise.
3893 * jv-lang.h (java_print_type): Likewise.
3894 * jv-typeprint.c (java_print_type): Likewise.
3895 * language.c (unk_lang_print_type): Likewise.
3896 * language.h (struct language_defn) <la_print_type>: Likewise.
3897 * m2-lang.h (m2_print_type): Likewise.
3898 * m2-typeprint.c (m2_print_type): Likewise.
3899 * p-lang.h (pascal_print_type): Likewise.
3900 * p-typeprint.c (pascal_print_type): Likewise.
3902 2010-06-11 Stan Shebs <stan@codesourcery.com>
3904 Add per-operation permission flags.
3906 * target.h (struct target_ops): New method to_set_permissions.
3907 (target_set_permissions): New macro.
3908 (target_insert_breakpoint): Change macro to function.
3909 (target_remove_breakpoint): Ditto.
3910 (target_stop): Ditto.
3911 (may_write_registers): Declare.
3912 (may_write_memory): Declare.
3913 (may_insert_breakpoints): Declare.
3914 (may_insert_tracepoints): Declare.
3915 (may_insert_fast_tracepoints): Declare.
3916 (may_stop): Declare.
3917 * target.c (may_write_registers, may_write_registers_1): New globals.
3918 (may_write_memory, may_write_memory_1): New globals.
3919 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3920 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3921 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3923 (may_stop, may_stop_1): New global.
3924 (target_xfer_partial): Test for write permission.
3925 (target_store_registers): Ditto.
3926 (target_insert_breakpoint): New function.
3927 (target_remove_breakpoint): New function.
3928 (target_stop): New function.
3929 (_initialize_targets): Add new set/show variables.
3930 (set_write_memory_permission): New function.
3931 (update_target_permissions): New function.
3932 (set_target_permissions): New function.
3933 (update_current_target): Default to_set_permissions.
3934 (_initialize_targets): Use new globals and setter function.
3935 * tracepoint.c (start_tracing): Test for permission.
3936 * inferior.h (update_observer_mode): Declare.
3937 * infrun.c (non_stop_1): Define earlier.
3938 (observer_mode, observer_mode_1): New globals.
3939 (set_observer_mode, show_observer_mode): New functions.
3940 (update_observer_mode): New function.
3941 (_initialize_infrun): Define "set observer" command.
3942 * remote.c (PACKET_QAllow): New optional packet.
3943 (remote_protocol_features): Add QAllow.
3944 (remote_set_permissions): New function.
3945 (remote_start_remote): Call it.
3946 (init_remote_ops): Add it to target vector.
3947 (_initialize_remote): Add config command for QAllow.
3949 2010-06-11 Tom Tromey <tromey@redhat.com>
3951 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3952 DW_AT_vtable_elem_location even when GCC extension is seen.
3954 2010-06-11 Tom Tromey <tromey@redhat.com>
3956 PR gdb/9977, PR exp/11636:
3957 * value.h (value_offset): Update.
3958 (struct lval_funcs) <check_validity>: New field.
3959 <copy_closure>: Make argument const.
3960 (value_computed_closure): Update.
3961 (value_contents_for_printing): Declare.
3962 (value_bits_valid): Likewise.
3963 (val_print): Likewise.
3964 (set_value_component_location): Update.
3965 (value_entirely_optimized_out): Declare.
3966 * value.c (value_offset): Argument now const.
3967 (require_not_optimized_out): New function.
3968 (value_contents_for_printing): New function.
3969 (value_contents_all): Call require_not_optimized_out.
3970 (value_contents): Likewise.
3971 (value_bits_valid): New function.
3972 (value_computed_closure): Argument now const.
3973 (set_value_component_location): Make 'whole' argument const.
3974 (value_entirely_optimized_out): New function.
3975 (value_bitsize): Argument now 'const'.
3976 (value_bitpos): Likewise.
3977 (value_type): Likewise.
3978 * valprint.h (val_print_array_elements): Update.
3979 * valprint.c (val_print): Add 'val' argument. Use
3980 valprint_check_validity.
3981 (valprint_check_validity): New function.
3982 (value_check_printable): Use value_entirely_optimized_out.
3983 (common_val_print): Update.
3984 (value_print): Likewise.
3985 (val_print_array_elements): Add 'val' argument.
3986 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3987 value_bits_valid. Reinit frame cache for lval_computed.
3988 * sh64-tdep.c (sh64_do_register): Update.
3989 * scm-valprint.c (scm_val_print): Add 'val' argument.
3990 * scm-lang.h (scm_val_print): Update.
3991 * python/python.h (apply_val_pretty_printer): Update.
3992 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3993 argument. Call set_value_component_location.
3994 * printcmd.c (print_scalar_formatted): Update.
3995 * p-valprint.c (pascal_val_print): Add 'val' argument.
3996 (pascal_object_print_value_fields): Likewise.
3997 (pascal_object_print_value): Likewise.
3998 (pascal_object_print_static_field): Update.
3999 * p-lang.h (pascal_val_print): Update.
4000 (pascal_object_print_value_fields): Update.
4001 * mt-tdep.c (mt_registers_info): Update.
4002 * mi/mi-main.c (get_register): Update.
4003 (mi_cmd_data_evaluate_expression): Use common_val_print.
4004 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4005 (m2_print_unbounded_array): Likewise.
4006 (m2_val_print): Likewise.
4007 * m2-lang.h (m2_val_print): Update.
4008 * language.h (struct language_defn) <la_val_print>: Add 'val'
4010 (LA_VAL_PRINT): Likewise.
4011 * language.c (unk_lang_val_print): Add 'val' argument.
4012 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4013 (java_val_print): Likewise.
4014 * jv-lang.h (java_val_print): Add 'val' argument.
4015 * infcmd.c (default_print_registers_info): Update.
4016 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4017 (f77_print_array): Likewise.
4018 (f_val_print): Likewise.
4019 * f-lang.h (f_val_print): Add 'val' argument.
4020 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4022 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4023 set_value_optimized_out.
4024 (write_pieced_value): Use value_bitsize and value_bitpos.
4025 <default>: Don't exit loop.
4026 (check_pieced_value_validity): New function.
4027 (pieced_value_funcs): Reference check_pieced_value_validity,
4028 check_pieced_value_invalid.
4029 (copy_pieced_value_closure): Update.
4030 (check_pieced_value_bits): New function.
4031 (check_pieced_value_invalid): New function.
4032 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4033 (d_val_print): Likewise.
4034 * d-lang.h (d_val_print): Update.
4035 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4036 (cp_print_value_fields_rtti): Likewise.
4037 (cp_print_value): Likewise.
4038 (cp_print_static_field): Update.
4039 * c-valprint.c (c_val_print): Add 'val' argument.
4040 (c_value_print): Update.
4041 * c-lang.h (c_val_print): Update.
4042 (cp_print_value_fields): Likewise.
4043 (cp_print_value_fields_rtti): Likewise.
4044 * ada-valprint.c (struct ada_val_print_args): Remove.
4045 (val_print_packed_array_elements): Add 'val' argument.
4046 (ada_val_print): Likewise. Rewrite.
4047 (ada_val_print_stub): Remove.
4048 (ada_val_print_array): Add 'val' argument.
4049 (ada_val_print_1): Likewise.
4050 (print_variant_part): Likewise.
4051 (ada_value_print): Update.
4052 (print_record): Add 'val' argument.
4053 (print_field_values): Likewise.
4054 * ada-lang.h (ada_val_print): Update.
4056 2010-06-11 Tom Tromey <tromey@redhat.com>
4058 * vec.h (VEC_cleanup): New macro.
4059 (DEF_VEC_ALLOC_FUNC_I): Update.
4060 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4061 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4062 * dwarf2loc.c (struct axs_var_loc): Remove.
4063 (unimplemented): New function.
4064 (translate_register): Likewise.
4065 (access_memory): Likewise.
4066 (compile_dwarf_to_ax): Likewise.
4067 (dwarf2_tracepoint_var_loc): Remove.
4068 (dwarf2_tracepoint_var_access): Likewise.
4069 (dwarf2_tracepoint_var_ref): Likewise.
4070 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4071 (loclist_tracepoint_var_ref): Likewise.
4072 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4073 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4074 require_composition. No longer static.
4075 (execute_stack_op): Update.
4076 * ax-gdb.h (trace_kludge): Declare.
4078 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4080 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4081 (should_be_inserted): Return zero also on NULL OWNER.
4082 (breakpoint_program_space_exit): New OWNER comment.
4083 (insert_breakpoint_locations): Extend comment for OWNER.
4084 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4085 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4087 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4088 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4089 (bpstat_check_location): New assert on OWNER.
4090 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4091 and B initializations to the code block. New assert on them.
4092 (print_one_breakpoint_location): New OWNER comment.
4093 (watchpoint_locations_match): Assert on OWNER.
4094 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4095 initializations to the code block. New assert on OWNER.
4096 (set_breakpoint_location_function): New assert on OWNER.
4097 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4098 (bp_location_compare, update_global_location_list)
4099 (update_global_location_list): New OWNER comment.
4101 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4103 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4105 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4107 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4108 (lin_thread_get_thread_signals): Remove prototype.
4109 (GET_THREAD_SIGNALS): Remove.
4110 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4111 * linux-thread-db.c (check_thread_signals): Directly call
4112 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4114 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4116 * gregset.h (GDB_FPXREGSET_T): Remove.
4117 (gdb_fpxregset_t): Likewise.
4118 (supply_fpxregset): Remove prototype.
4119 (fill_fpxregset): Likewise.
4120 * i386-linux-nat.c (supply_fpxregset): Remove.
4121 (fill_fpxregset): Likewise.
4122 (fetch_fpxregs): Inline supply_fpxregset call.
4123 (store_fpxregs): Inline fill_fpxregset call.
4125 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4126 * config/i386/nm-linux.h: Remove file.
4128 2010-06-09 Michael Snyder <msnyder@vmware.com>
4130 * target.c (update_current_target): Fix spelling error in comment.
4131 (target_mourn_inferior): Fix spelling error in error message.
4133 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4135 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4136 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4138 2010-06-08 Michael Snyder <msnyder@vmware.com>
4140 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4142 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4144 * configure.ac <"${have_libpython}" != no>: New workaround of
4146 * configure: Regenerate.
4148 2010-06-08 Hui Zhu <teawater@gmail.com>
4150 * record.c (record_wait): Move signal out of replay code.
4152 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 * dwarf2-frame.c (no_dwarf_call): New function.
4156 (execute_stack_op): Set CTX->DWARF_CALL.
4157 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4158 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4159 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4160 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4161 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4162 (needs_frame_dwarf_call): New function.
4163 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4164 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4165 Update the comment. Move variables die, offset and error call to ...
4166 (follow_die_ref): ... a new function.
4167 (dwarf2_fetch_die_location_block): New function.
4168 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4170 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4172 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4173 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4174 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4175 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4177 (struct needs_frame_baton): New field per_cu.
4178 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4179 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4181 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4183 * cp-support.c (make_symbol_overload_list_namespace): Only search
4184 static and global blocks.
4185 (make_symbol_overload_list_block): New function.
4186 (make_symbol_overload_list): Separate namespace search from block
4188 (make_symbol_overload_list_qualified): Use
4189 make_symbol_overload_list_block.
4191 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4193 * value.h: Created oload_search_type enum.
4194 (find_overload_match): Use oload_search_type enum.
4195 * valops.c (find_overload_match): Support combined member and
4197 * eval.c (evaluate_subexp_standard): Calls to
4198 find_overload_match now use oload_search_type enum.
4199 (oload_method_static): Verify index is a proper value.
4200 * valarith.c (value_user_defined_cpp_op): Search for and handle
4201 both member and non-member operators.
4202 (value_user_defined_cpp_op): New function.
4203 (value_user_defined_op): New function.
4204 (value_x_unop): Use value_user_defined_op.
4205 (value_x_binop): Ditto.
4206 * cp-support.c (make_symbol_overload_list_using): Added block
4208 Add check for namespace aliases and imported declarations.
4210 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4212 * breakpoint.h (owner): Extend the comment.
4214 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4216 Clear stale specific bp_location from former whole breakpoint.
4217 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4219 (free_bp_location): ... here. Rename there the called function to
4220 bpstat_remove_bp_location_callback.
4221 (bpstat_remove_breakpoint_callback): Rename to ...
4222 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4223 to struct bp_location. Change the called function to
4224 bpstat_remove_bp_location. Create new declaration for the function.
4225 (bpstat_remove_breakpoint): Rename to ...
4226 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4227 code for the new parameter type.
4229 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4231 * README: Make version-agnostic.
4233 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4235 Fix duplicate types for single DIE.
4236 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4238 (read_array_type): Remove type initialization. Recheck get_die_type
4239 after initial die_type. Move set_die_type before set_descriptive_type.
4240 (read_set_type): New variable domain_type. Recheck get_die_type after
4241 initial die_type. Move attr initialization later.
4242 (read_tag_pointer_type, read_tag_reference_type): New variable
4243 target_type. Recheck get_die_type after initial die_type.
4244 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4245 die_type and die_containing_type.
4246 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4247 Recheck get_die_type after initial die_type.
4248 (read_subrange_type): Recheck get_die_type after initial die_type.
4249 Move set_die_type before set_descriptive_type.
4250 (set_die_type): Extend the function comment. Call complaint if DIE has
4251 some type already set.
4253 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4255 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4256 for current naming of thread groups (iN, not N).
4258 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4260 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4261 * parse.c (operator_length): Likewise.
4262 (operator_length_standard): Likewise.
4263 * parser-defs.h (operator_length): Likewise.
4264 (operator_length_standard): Likewise.
4265 (struct exp_descriptor <operator_length>): Likewise.
4267 2010-06-04 Doug Evans <dje@google.com>
4269 Add support for enabling/disabling individual pretty-printers.
4270 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4271 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4272 * python/python.c (gdbpy_enabled_cst): Define.
4273 (_initialize_python): Initialize gdbpy_enabled_cst.
4276 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 * breakpoint.c (update_global_location_list): Fix comment typo.
4280 2010-06-04 Hui Zhu <teawater@gmail.com>
4282 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4284 2010-06-03 Doug Evans <dje@google.com>
4286 * configure.ac: Don't fail if python is unusable when
4287 configured with --with-python=auto.
4288 * configure: Regenerate.
4290 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4292 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4294 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4296 * valprint.h (get_array_bounds): Change low and high parameter types
4298 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4300 (val_print_array_elements): Adapt to change above.
4301 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4302 * p-valprint.c (pascal_val_print): Likewise.
4304 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4306 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4307 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4310 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4312 Support DW_TAG_module as separate namespaces.
4313 * dwarf2read.c (typename_concat): New parameter physname.
4314 (read_module_type): New function and declaration.
4315 (scan_partial_symbols): Scan also DW_TAG_module children.
4316 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4317 to typename_concat backward compatible physname value 0.
4318 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4319 backward compatible physname value 0.
4320 (add_partial_module, read_module): Remove FIXME comment.
4321 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4322 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4323 DIEs under DW_TAG_module.
4324 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4325 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4326 && physname and return there instead of just setting NAME. Extend
4327 the main block for language_fortran. Pass physname parameter to the
4328 typename_concat call.
4329 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4330 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4331 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4332 missing from SYMBOL_SET_NAMES in the language_fortran case.
4333 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4335 (read_type_die) <DW_TAG_module>: New.
4336 (MAX_SEP_LEN): Increase to 7.
4337 (typename_concat): New parameter physname. New variable lead. Support
4338 also language_fortran.
4339 * f-exp.y (yylex): Consider : also as a symbol name character class.
4340 * f-lang.c: Include cp-support.h.
4341 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4342 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4343 f_word_break_characters and f_make_symbol_completion_list.
4344 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4345 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4346 * symtab.c (symbol_init_language_specific): Support language_fortran.
4347 (symbol_find_demangled_name): New comment on language_fortran.
4348 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4349 for language_fortran.
4350 (lookup_symbol_aux_local): Check imports also for language_fortran.
4351 (default_make_symbol_completion_list): Rename to ...
4352 (default_make_symbol_completion_list_break_on): ... this name. New
4353 parameter break_on, use it.
4354 (default_make_symbol_completion_list): New stub.
4355 * symtab.h (default_make_symbol_completion_list_break_on): New
4358 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4360 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4363 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * dwarf2read.c (typename_concat): Add const to the variable sep.
4367 2010-06-02 Tom Tromey <tromey@redhat.com>
4369 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4370 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4371 type is const. Add 'def' argument. Add missing operators, remove
4373 (decode_locdesc): Update.
4374 (dwarf2_always_disassemble): New global.
4375 (show_dwarf2_always_disassemble): New function.
4376 (_initialize_dwarf2_read): Add always-disassemble.
4377 (dwarf2_per_cu_offset_size): New function.
4378 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4379 (piece_end_p): New function.
4380 (locexpr_describe_location_piece): Replace 'size' argument with
4381 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4382 some constants. Remove errors.
4383 (disassemble_dwarf_expression): New function.
4384 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4385 Add 'offset_size' argument.
4386 (loclist_describe_location): Change output formatting.
4387 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4389 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4391 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4392 anonymous type case.
4394 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4396 * dwarf2read.c (read_subrange_type): Handle missing base type
4397 according to Dwarf-2 specifications.
4399 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4401 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4403 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4404 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4405 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4406 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4407 UNOP_CHMAX, UNOP_CHMIN.
4408 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4409 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4410 UNOP_CHMIN>: Remove opcodes.
4412 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4414 * dwarf2read.c (read_func_scope): Do not complain for
4415 external function if bounds are not found.
4417 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4419 * NEWS: Mention gdbserver fast tracepoints support.
4421 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4423 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4425 (windows_set_console_info): New function.
4426 (windows_create_inferior): Call windows_set_console_info
4427 if NEW_CONSOLE is true.
4428 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4429 (_initialize_loadable): Initialize GetConsoleFontSize and
4430 GetCurrentConsoleFont.
4432 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * Makefile.in (RDYNAMIC): New.
4435 (SFILES): Add proc-service.list.
4436 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4437 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4438 * config/arm/linux.mh: Likewise.
4439 * config/i386/linux.mh: Likewise.
4440 * config/i386/linux64.mh: Likewise.
4441 * config/ia64/linux.mh: Likewise.
4442 * config/m32r/linux.mh: Likewise.
4443 * config/m68k/linux.mh: Likewise.
4444 * config/mips/linux.mh: Likewise.
4445 * config/pa/linux.mh: Likewise.
4446 * config/powerpc/linux.mh: Likewise.
4447 * config/powerpc/ppc64-linux.mh: Likewise.
4448 * config/s390/s390.mh: Likewise.
4449 * config/sparc/linux.mh: Likewise.
4450 * config/sparc/linux64.mh: Likewise.
4451 * config/xtensa/linux.mh: Likewise.
4452 * configure.ac: New RDYNAMIC on native host and GCC.
4453 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4454 * configure: Regenerate.
4455 * proc-service.list: New.
4457 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4459 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4462 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 * linux-nat.c (linux_nat_wait_1): Do not call
4465 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4466 TARGET_WAITKIND_SIGNALLED.
4468 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4470 * ada-lang.c (ada_inferior_data): New struct.
4471 (ada_inferior_data): New static global.
4472 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4473 (ada_get_tsd_type): New functions.
4474 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4475 to look the tsd type up.
4476 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4477 event. Set ada_inferior_data.
4479 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4481 * remote.c (unpack_varlen_hex): Remove forward declaration.
4482 (remote_console_output): Make static, and add forward declaration.
4483 * remote.h: Drop FIXME comment.
4484 (unpack_varlen_hex): Declare.
4485 (remote_console_output, remote_cisco_objfile_relocate)
4486 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4487 Delete declarations.
4488 * tracepoint.c: Include "remote.h".
4489 (unpack_varlen_hex): Delete declaration.
4491 2010-05-27 Tom Tromey <tromey@redhat.com>
4493 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4494 (allocate_piece_closure): Initialize refc.
4495 (copy_pieced_value_closure): Use refc.
4496 (free_pieced_value_closure): Likewise.
4498 2010-05-27 Tom Tromey <tromey@redhat.com>
4500 * arm-tdep.c (push_stack_item): 'contents' now const.
4501 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4502 value_contents_writeable. Introduce new temporary.
4504 2010-05-27 Tom Tromey <tromey@redhat.com>
4506 * findcmd.c (parse_find_args): Use value_contents, not
4509 2010-05-27 Tom Tromey <tromey@redhat.com>
4511 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4512 const. Use value_contents, not value_contents_writeable.
4514 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4516 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4517 by call to value_contents.
4519 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4521 * MAINTAINERS: Add myself for write after approval privileges.
4523 2010-05-26 Doug Evans <dje@google.com>
4525 Allow python to find its files if moved from original location.
4526 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4527 (GDB_AC_WITH_DIR): Call it.
4528 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4529 python installation directory.
4530 * config.in: Regenerate.
4531 * configure: Regenerate.
4532 * defs.h (python_libdir): Declare.
4533 * main.c (python_libdir): Define.
4534 (captured_main): Initialize python_libdir.
4535 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4536 call Py_SetProgramName to make sure python can find its libraries
4539 * configure.ac: Try to use python's distutils to fetch compilation
4541 * configure: Regenerate.
4542 * python/python-config.py: New file.
4544 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4546 * ser-tcp.c (net_open): Check error return from socket() call by its
4547 equality to -1 not by it being negative.
4548 (net_close): Likewise.
4550 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4552 * NEWS: Mention the `qRelocInsn' feature.
4553 * gdbarch.sh (relocate_instruction): New.
4554 * amd64-tdep.c (rip_relative_offset): New.
4555 (append_insns): New.
4556 (amd64_relocate_instruction): New.
4557 (amd64_init_abi): Install it.
4558 * i386-tdep.c (append_insns): New.
4559 (i386_relocate_instruction): New.
4560 (i386_gdbarch_init): Install it.
4561 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4562 * gdbarch.h, gdbarch.c: Regenerate.
4564 2010-05-26 Tom Tromey <tromey@redhat.com>
4566 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4567 (struct dwarf2_loclist_baton) <data>: Likewise.
4568 * dwarf2loc.c (find_location_expression): Constify return type.
4569 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4570 (dwarf2_loc_desc_needs_frame): Likewise.
4571 (loclist_read_variable): Constify.
4572 (loclist_describe_location): Likewise.
4573 (loclist_tracepoint_var_ref): Likewise.
4575 2010-05-25 Tom Tromey <tromey@redhat.com>
4577 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4578 (dwarf_expr_frame_base_1): Likewise.
4579 (read_pieced_value): Update.
4580 (needs_frame_frame_base): Constify.
4581 (dwarf2_tracepoint_var_loc): Likewise.
4582 (dwarf2_tracepoint_var_access): Likewise.
4583 (locexpr_describe_location_piece): Likewise.
4584 (locexpr_describe_location_1): Likewise.
4585 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4588 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4589 (dwarf_expr_eval, read_uleb128, read_sleb128)
4590 (dwarf2_read_address): Update.
4591 * dwarf2expr.c (dwarf_expr_eval): Constify.
4592 (read_uleb128): Likewise.
4593 (read_sleb128): Likewise.
4594 (dwarf2_read_address): Likewise.
4595 (require_composition): Likewise.
4596 (execute_stack_op): Likewise.
4597 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4599 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4601 (no_get_frame_base): Constify.
4602 (execute_stack_op): Likewise.
4603 (execute_cfa_program): Likewise.
4604 (read_encoded_value): Likewise.
4606 2010-05-25 Doug Evans <dje@google.com>
4608 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4610 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4611 * event-loop.c: ... here.
4612 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4613 `error' for clarity.
4614 (tui_getc): Pass correct value for `error' parameter to
4615 tui_readline_output.
4617 Add python gdb.GdbError and gdb.string_to_argv.
4618 * NEWS: Document them.
4619 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4620 the exception is gdb.GdbError. Print a second traceback if there's
4621 an error computing the error message.
4622 (gdbpy_string_to_argv): New function.
4623 * python/py-utils.c (gdbpy_obj_to_string): New function.
4624 (gdbpy_exception_to_string): New function.
4625 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4626 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4627 (gdbpy_gdberror_exc): Declare.
4628 * python/python.c (gdbpy_gdberror_exc): New global.
4629 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4631 (GdbMethods): Add string_to_argv.
4633 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4635 * windows-nat.c (display_selector): Call GetLastError to give better
4636 failure explanation.
4638 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4640 * config.in: Regenerate.
4642 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * target.c (push_target): Return only void. Remove the return value
4647 * target.h (push_target): Return only void.
4649 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4651 Update gnulib from latest git.
4652 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4654 * gnulib/memcmp.c: Removed.
4655 * gnulib/memchr.valgrind: New.
4656 * gnulib/stddef.in.h: New.
4657 * gnulib/Makefile.am: Updated.
4658 * gnulib/memchr.c: Updated.
4659 * gnulib/memmem.c: Updated.
4660 * gnulib/stdint.in.h: Updated.
4661 * gnulib/str-two-way.h: Updated.
4662 * gnulib/string.in.h: Updated.
4663 * gnulib/wchar.in.h: Updated.
4665 * gnulib/extra/link-warning.h: Removed.
4666 * gnulib/extra/c++defs.h: New.
4667 * gnulib/extra/warn-on-use.h: New.
4668 * gnulib/extra/arg-nonnull.h: Updated.
4670 * gnulib/m4/extensions.m4: Updated.
4671 * gnulib/m4/gnulib-cache.m4: Updated.
4672 * gnulib/m4/gnulib-common.m4: Updated.
4673 * gnulib/m4/gnulib-comp.m4: Updated.
4674 * gnulib/m4/gnulib-tool.m4: Updated.
4675 * gnulib/m4/include_next.m4: Updated.
4676 * gnulib/m4/longlong.m4: Updated.
4677 * gnulib/m4/memchr.m4: Updated.
4678 * gnulib/m4/memmem.m4: Updated.
4679 * gnulib/m4/stdint.m4: Updated.
4680 * gnulib/m4/string_h.m4: Updated.
4681 * gnulib/m4/memcmp.m4: Removed.
4682 * gnulib/m4/onceonly_2_57.m4: Removed.
4683 * gnulib/m4/00gnulib.m4: New.
4684 * gnulib/m4/mmap-anon.m4: New.
4685 * gnulib/m4/multiarch.m4: New.
4686 * gnulib/m4/onceonly.m4: New.
4687 * gnulib/m4/stddef_h.m4: New.
4688 * gnulib/m4/warn-on-use.m4: New.
4689 * gnulib/m4/wchar.m4: Removed.
4690 * gnulib/m4/wchar_h.m4: New.
4691 * gnulib/m4/wchar_t.m4: New.
4692 * gnulib/m4/wint_t.m4: New.
4694 * aclocal.m4: Regenerate.
4695 * config.in: Likewise.
4696 * configure: Likewise.
4697 * gnulib/Makefile.in: Likewise.
4699 2010-05-21 Tom Tromey <tromey@redhat.com>
4701 * dwarf2loc.c (extract_bits_primitive): New function.
4702 (extract_bits): Likewise.
4703 (insert_bits): Likewise.
4704 (copy_bitwise): Likewise.
4705 (read_pieced_value): Do all operations in bits.
4706 (write_pieced_value): Likewise.
4707 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4708 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4709 Always use xrealloc to resize piece array.
4710 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4711 <DW_OP_piece>: Update.
4712 <DW_OP_bit_piece>: New case.
4714 2010-05-21 Tom Tromey <tromey@redhat.com>
4716 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4717 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4718 * dwarf2expr.h (enum dwarf_value_location)
4719 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4720 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4721 (add_piece): Handle empty piece.
4722 (execute_stack_op) <DW_OP_piece>: Handle
4723 DWARF_VALUE_OPTIMIZED_OUT.
4725 2010-05-21 Tom Tromey <tromey@redhat.com>
4727 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4728 evaluate_subexp, not evaluate_subexp_with_coercion.
4730 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4732 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4735 2010-05-21 Tom Tromey <tromey@redhat.com>
4737 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4739 (write_pieced_value): Likewise.
4741 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4743 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4744 and DW_TAG_volatile_type.
4745 (new_symbol): Likewise.
4747 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4749 * p-valprint.c (pascal_val_print): Call get_array_bounds
4750 to obtain the number of elements in an array.
4752 2010-05-19 Doug Evans <dje@google.com>
4754 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4756 * python.c (source_python_script): Add comment.
4757 (source_python_script_for_objfile): Remove unnecessary call to
4760 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4761 Sergio Durigan Junior <sergiodj@redhat.com>
4764 * parse.c (exp_iterate): Use operator_length wrapper function.
4766 2010-05-18 Michael Snyder <msnyder@vmware.com>
4768 * ada-lang.c: White space.
4769 * ada-typeprint.c: White space.
4770 * ada-valprint.c: White space.
4771 * addrmap.c: White space.
4772 * auxv.c: White space.
4773 * ax-gdb.c: White space.
4775 2010-05-18 Hui Zhu <teawater@gmail.com>
4777 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4779 (inferior_call_waitpid): Move make_cleanup out of check.
4780 Check the return of waitpid.
4781 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4783 2010-05-17 Michael Snyder <msnyder@vmware.com>
4785 * tui/tui.c: White space.
4786 * tui/tui-data.c: White space.
4787 * tui/tui-disasm.c: White space.
4788 * tui/tui-file.c: White space.
4789 * tui/tui-interp.c: White space.
4790 * tui/tui-main.c: White space.
4791 * tui/tui-out.c: White space.
4792 * tui/tui-regs.c: White space.
4793 * tui/tui-source.c: White space.
4794 * tui/tui-stack.c: White space.
4795 * tui/tui-win.c: White space.
4796 * tui/tui-winsource.c: White space.
4798 * procfs.c: White space.
4800 * python/py-auto-load.c: White space.
4801 * python/py-block.c: White space.
4802 * python/py-breakpoint.c: White space.
4803 * python/py-cmd.c: White space.
4804 * python/py-function.c: White space.
4805 * python/py-lazy-string.c: White space.
4806 * python/py-objfile.c: White space.
4807 * python/py-param.c: White space.
4808 * python/py-prettyprint.c: White space.
4809 * python/py-progspace.c: White space.
4810 * python/py-symtab.c: White space.
4811 * python/python.c: White space.
4812 * python/py-type.c: White space.
4813 * python/py-utils.c: White space.
4814 * python/py-value.c: White space.
4816 * mi/mi-cmd-break.c: White space.
4817 * mi/mi-cmd-env.c: White space.
4818 * mi/mi-cmds.c: White space.
4819 * mi/mi-cmd-stack.c: White space.
4820 * mi/mi-cmd-var.c: White space.
4821 * mi/mi-console.c: White space.
4822 * mi/mi-getopt.c: White space.
4823 * mi/mi-interp.c: White space.
4824 * mi/mi-main.c: White space.
4825 * mi/mi-out.c: White space.
4826 * mi/mi-parse.c: White space.
4828 * cli/cli-cmds.c: White space.
4829 * cli/cli-decode.c: White space.
4830 * cli/cli-dump.c: White space.
4831 * cli/cli-interp.c: White space.
4832 * cli/cli-logging.c: White space.
4833 * cli/cli-script.c: White space.
4834 * cli/cli-setshow.c: White space.
4836 * valarith.c: White space.
4837 * valops.c: White space.
4838 * valprint.c: White space.
4839 * value.c: White space.
4840 * varobj.c: White space.
4841 * xcoffread.c: White space.
4842 * xml-support.c: White space.
4843 * xml-tdesc.c: White space.
4845 2010-05-17 Andreas Schwab <schwab@redhat.com>
4848 * c-lang.c (c_printstr): Compute real length of NUL terminated
4851 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4853 * parse.c (parse_exp_in_context): When block is not NULL, use
4854 its associated language to parse the expression instead of
4855 the current_language.
4857 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4859 * jv-lang.c (java_lookup_class): Remove commented out code.
4860 (type_from_class): Likewise.
4861 (java_op_print_tab): Remove commented-out elements.
4863 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4865 * ada-lang.c (to_fixed_range_type): The the raw index type as
4866 argument instead of the raw type name. Remove orig_type parameter.
4867 Update calls throughout.
4868 (ada_fixup_array_indexes_type): New function.
4869 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4870 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4871 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4872 Remove name parameter.
4873 (print_array_type): Add call to ada_fixup_array_indexes_type.
4874 Update calls to print_range_type.
4875 (ada_print_type): Update calls to print_range_type.
4877 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4879 * dwarf2read.c (read_set_type): Set type length if
4880 DW_AT_byte_size attribute is present.
4882 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4884 * p-valprint.c (pascal_val_print): Handle set type if range limits
4885 are undefined but size is known.
4887 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4889 * procfs.c: Reformat.
4891 2010-05-16 Michael Snyder <msnyder@vmware.com>
4893 * target.c: White space.
4894 * target-descriptions.c: White space.
4895 * target-memory.c: White space.
4896 * thread.c: White space.
4897 * top.c: White space.
4898 * tracepoint.c: White space.
4899 * trad-frame.c: White space.
4900 * tramp-frame.c: White space.
4901 * ui-file.c: White space.
4902 * ui-out.c: White space.
4903 * user-regs.c: White space.
4904 * utils.c: White space.
4906 * scm-exp.c: White space.
4907 * scm-lang.c: White space.
4908 * scm-valprint.c: White space.
4909 * sentinel-frame.c: White space.
4910 * ser-base.c: White space.
4911 * ser-go32.c: White space.
4912 * serial.c: White space.
4913 * ser-mingw.c: White space.
4914 * ser-pipe.c: White space.
4915 * ser-tcp.c: White space.
4916 * ser-unix.c: White space.
4917 * solib.c: White space.
4918 * solib-darwin.c: White space.
4919 * solib-frv.c: White space.
4920 * solib-irix.c: White space.
4921 * solib-osf.c: White space.
4922 * solib-pa64.c: White space.
4923 * solib-som.c: White space.
4924 * solib-spu.c: White space.
4925 * solib-svr4.c: White space.
4926 * solib-target.c: White space.
4927 * source.c: White space.
4928 * stabsread.c: White space.
4929 * stack.c: White space.
4930 * std-regs.c: White space.
4931 * symfile.c: White space.
4932 * symmisc.c: White space.
4933 * symtab.c: White space.
4935 2010-05-16 Michael Snyder <msnyder@vmware.com>
4937 * source.c (_initialize_source): Add "rev" as an abbreviation
4938 for the "reverse-search" command.
4940 2010-05-16 Michael Snyder <msnyder@vmware.com>
4942 * record.c: White space.
4943 * regcache.c: White space.
4944 * reggroups.c: White space.
4945 * remote-fileio.c: White space.
4946 * remote-m32r-sdi.c: White space.
4947 * remote-mips.c: White space.
4948 * remote-sim.c: White space.
4949 * remote.c: White space.
4950 (process_g_packet): Remove orphan braces.
4952 2010-05-15 Michael Snyder <msnyder@vmware.com>
4954 * parse.c: White space.
4955 * p-lang.c: White space.
4956 * posix-hdep.c: White space.
4957 * printcmd.c: White space.
4958 * progspace.c: White space.
4959 * prologue-value.c: White space.
4960 * psymtab.c: White space.
4961 * p-typeprint.c: White space.
4962 * p-valprint.c: White space.
4964 * objc-lang.c: White space.
4965 * objfiles.c: White space.
4966 * observer.c: White space.
4967 * osabi.c: White space.
4968 * osdata.c: White space.
4970 * m2-lang.c: White space.
4971 * m2-valprint.c: White space.
4972 * macrocmd.c: White space.
4973 * macroexp.c: White space.
4974 * macroscope.c: White space.
4975 * macrotab.c: White space.
4976 * main.c: White space.
4977 * maint.c: White space.
4978 * mdebugread.c: White space.
4979 * memattr.c: White space.
4980 * minsyms.c: White space.
4981 * monitor.c: White space.
4983 2010-05-14 Michael Snyder <msnyder@vmware.com>
4985 * jv-lang.c: White space.
4986 * jv-typeprint.c: White space.
4987 * jv-valprint.c: White space.
4988 * language.c: White space.
4989 * libunwind-frame.c: White space.
4990 * linespec.c: White space.
4991 * linux-nat.c: White space.
4992 * linux-record.c: White space.
4993 * linux-thread-db.c: White space.
4995 * infcall.c: White space.
4996 * inf-child.c: White space.
4997 * infcmd.c: White space.
4998 * inferior.c: White space.
4999 * inf-loop.c: White space.
5000 * inflow.c: White space.
5001 * inline-frame.c: White space.
5002 * interps.c: White space.
5004 * gcore.c: White space.
5005 * gdb.c: White space.
5006 * gdbtypes.c: White space.
5007 * gnu-nat.c: White space.
5008 * gnu-v2-abi.c: White space.
5009 * gnu-v3-abi.c: White space.
5011 * findcmd.c: White space.
5012 * findvar.c: White space.
5013 * fork-child.c: White space.
5014 * frame-base.c: White space.
5015 * frame.c: White space.
5016 * frame-unwind.c: White space.
5017 * f-valprint.c: White space.
5019 * elfread.c: White space.
5020 * environ.c: White space.
5021 * eval.c: White space.
5022 * event-loop.c: White space.
5023 * event-top.c: White space.
5024 * exceptions.c: White space.
5025 * exec.c: White space.
5026 * expprint.c: White space.
5028 * dbxread.c: White space.
5029 * dcache.c: White space.
5030 * disasm.c: White space.
5031 * doublest.c: White space.
5032 * dsrec.c: White space.
5033 * dummy-frame.c: White space.
5034 * dwarf2expr.c: White space.
5035 * dwarf2-frame.c: White space.
5036 * dwarf2loc.c: White space.
5037 * dwarf2read.c: White space.
5039 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5043 * python/py-value.c (valpy_hash): New function.
5044 (value_object_type): Register valpy_hash.
5046 2010-05-14 Hui Zhu <teawater@gmail.com>
5047 Michael Snyder <msnyder@vmware.com>
5049 * linux-fork.c (gdbthread.h): New include.
5050 (fork_info): Add parent_ptid.
5051 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5053 (delete_checkpoint_command): Call inferior_call_waitpid.
5054 (checkpoint_command): Set parent_ptid.
5056 2010-05-13 Michael Snyder <msnyder@vmware.com>
5058 * dictionary.c: Re-indent to GNU coding standard.
5060 * charset.c: White space.
5061 * c-lang.c: White space.
5062 * cli-out.c: White space.
5063 * coffread.c: White space.
5064 * complaints.c: White space.
5065 * completer.c: White space.
5066 * corefile.c: White space.
5067 * corelow.c: White space.
5068 * cp-abi.c: White space.
5069 * cp-namespace.c: White space.
5070 * cp-support.c: White space.
5071 * cp-valprint.c: White space.
5072 * c-typeprint.c: White space.
5073 * c-valprint.c: White space.
5074 * blockframe.c: White space.
5075 * breakpoint.c: White space.
5076 * buildsym.c: White space.
5077 * blockframe.c: White space.
5078 * bcache.c: White space.
5079 * gdbarch.sh: White space, add blank lines.
5080 * arch-utils.c: Ditto.
5081 * gdbarch.c: Regenerate.
5082 * frame.c: White space, add blank lines.
5083 * stack.c: White space, add blank lines.
5084 (initialize_stack): Remove long-dead code.
5086 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5089 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5090 (locexpr_read_variable, loclist_read_variable): Update the callers.
5092 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5095 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5096 Remove check of NULL returned by tag_type_to_type.
5097 (die_containing_type): Remove variable type. Remove type_die variable
5098 initialization. Remove check of NULL returned by tag_type_to_type.
5100 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5103 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5104 names of unnamed structures or unions.
5106 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5108 * procfs.c (proc_watchpoint_address): New function.
5109 (procfs_stopped_by_watchpoint): Remove useless check after
5110 find_procinfo_or_die call.
5111 (procfs_stopped_data_address): New function.
5112 (procfs_use_watchpoints): Register new watchpoint related function.
5114 2010-05-11 Tom Tromey <tromey@redhat.com>
5116 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5118 2010-05-10 Michael Snyder <msnyder@vmware.com>
5120 * utils.c: White space cleanup.
5122 2010-05-10 Tom Tromey <tromey@redhat.com>
5124 * eval.c (ptrmath_type_p): Add 'lang' argument.
5125 (evaluate_subexp_standard): Update.
5126 (evaluate_subexp_with_coercion): Update.
5127 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5129 2010-05-10 Michael Snyder <msnyder@vmware.com>
5131 * utils.c (do_fclose_cleanup) Restore local variable.
5133 2010-05-09 Doug Evans <dje@google.com>
5135 * record.c (init_record_core_ops): Rename record_core to record-core.
5137 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5139 Implement task switching on pa-hpux.
5140 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5141 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5143 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5145 * valops.c (find_overload_match): Add missing i18n markup.
5147 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5149 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5151 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5153 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5154 list for the obconcat call.
5155 * mdebugread.c (parse_symbol): Likewise.
5156 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5158 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5159 New variable ap. Remove variables len and val.
5160 * symfile.h (obconcat): Likewise for the prototype.
5162 2010-05-07 Michael Snyder <msnyder@vmware.com>
5164 * python/python.c (execute_gdb_command): Remove unused variables.
5165 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5166 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5167 Remove unused variable.
5168 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5169 (cmdpy_completer): Remove unused variable.
5170 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5171 * python/py-function.c (fnpy_call): Remove unused variable.
5172 * python/py-objfile.c (objfile_to_objfile_object):
5173 Remove unused variable.
5174 * python/py-param.c (parmpy_init): Remove unused variable.
5175 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5176 Remove unused variable.
5177 (gdbpy_default_visualizer): Remove unused variable.
5178 * python/py-progspace.c (pspace_to_pspace_object):
5179 Remove unused variable.
5180 * python/py-symtab.c (symtab_and_line_to_sal_object):
5181 Remove unused variable.
5182 * python/py-type.c (typy_template_argument):
5183 Remove unused variable.
5184 * python/py-value.c (valpy_string): Remove unused variable.
5185 (convert_value_from_python): Remove unused variables.
5187 2010-05-07 Michael Snyder <msnyder@vmware.com>
5189 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5190 and use it to compute variable 't1'.
5192 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5194 * ada-lang.c (assign_aggregate): Remove unused variable.
5196 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5199 * valops.c (find_overload_match): Handle fsym == NULL case.
5200 Add int no_adl argument.
5201 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5203 Add int no_adl argument.
5204 (find_oload_champ_namespace): Add int no_adl argument.
5205 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5207 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5208 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5209 Evaluate arguments and use them to perform ADL lookup.
5210 Pass no_adl argument to find_overload_match.
5211 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5212 * cp-support.h: Added prototype for
5213 make_symbol_overload_list_namespace.
5214 * cp-support.c (make_symbol_overload_list_namespace): New function.
5215 (make_symbol_overload_list_adl_namespace): New function.
5216 (make_symbol_overload_list_adl): New function.
5217 (make_symbol_overload_list_using): Moved code to add function to
5218 overload set to make_symbol_overload_list_namespace.
5219 * c-exp.y: create UNKNOWN_CPP_NAME token.
5220 Add parse rule for ADL functions.
5221 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5223 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5225 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5228 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5230 Implement task switching on solaris targets.
5231 * sol-thread.c (thread_db_find_thread_from_tid)
5232 (sol_get_ada_task_ptid): New functions.
5233 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5235 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5237 * remote.c (remote_query_supported_append): Use reconcat.
5238 (remote_query_supported): Install a cleanup. Use reconcat.
5240 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5242 * gdbarch.sh (qsupported): Delete.
5243 * gdbarch.h, gdbarch.c: Regenerate.
5244 * remote.c (remote_query_supported): Remove use of
5247 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5249 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5252 2010-05-06 Michael Snyder <msnyder@vmware.com>
5254 * xml-support.c (xinclude_start_include): Delete unused variable.
5255 (xml_process_xincludes): Delete unused variable.
5256 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5257 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5258 (tdesc_find_arch_register): Delete unused variable.
5259 (tdesc_use_registers): Delete unused variable.
5260 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5261 * inferior.c (print_inferior): Delete unused variable.
5262 * record.c (record_open_1): Delete unused variable.
5263 (record_restore): Delete unused variable.
5264 (cmd_record_save): Delete unused variable.
5265 * gcore.c (derive_heap_segment): Delete unused variable.
5266 (objfile_find_memory_regions): Use unused variable.
5267 * jit.c (jit_inferior_init): Delete unused variable.
5268 * progspace.c (clone_program_space): Delete unused variable.
5269 (pspace_empty_p): Delete unused variable.
5271 * frame-unwind.c (frame_unwind_find_by_frame):
5272 Delete unused variable.
5273 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5274 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5275 (method_name_from_physname): Delete unused variable.
5276 (cp_func_name): Delete unused variable.
5277 (cp_validate_operator): Delete unused variable.
5278 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5279 Delete unused variable.
5280 * trad-frame.c (trad_frame_get_prev_register):
5281 Delete unused variable.
5282 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5284 * serial.c (serial_for_fd): Delete unused variable.
5285 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5286 * top.c (execute_command): Delete unused variable.
5287 (init_main): Delete unused variable.
5288 * utils.c (do_fclose_cleanup): Delete unused variable.
5289 (do_all_inferior_continuations): Delete unused variable.
5290 (initialize_utils): Delete unused variable.
5291 (internal_problem_mode): Delete unused global.
5292 * frame.c (get_prev_frame): Delete unused global.
5293 (get_frame_locals_address): Delete unused global.
5294 (get_frame_args_address): Delete unused global.
5296 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5297 (pascal_type_print_varspec_prefix): Delete unused variable.
5298 * f-typeprint.c (f_type_print_base): Delete unused variable.
5299 (f_type_print_varspec_suffix): Delete unused variable.
5300 * m2-typeprint.c (m2_print_type): Delete unused variable.
5301 (m2_long_set): Delete unused variable.
5302 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5303 * d-valprint.c (dynamic_array_type): Delete unused variable.
5304 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5305 Delete unused variable.
5306 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5307 * m2-valprint.c (m2_val_print): Delete unused variable.
5309 * ui-out.c (ui_out_field_int): Delete unused variable.
5310 (ui_out_field_fmt_int): Delete unused variable.
5311 * varobj.c (varobj_list_children): Delete unused variable.
5312 (varobj_set_value): Delete unused variable.
5313 (install_new_value_visualizer): Delete unused variable.
5314 (varobj_set_visualizer): Delete unused variable.
5315 (varobj_update): Delete unused variable.
5316 (varobj_editable_p): Delete unused variable.
5317 (c_value_of_root): Delete unused variable.
5318 (cplus_describe_child): Delete unused variable.
5320 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5321 (decode_constrained_packed_array_type): Delete unused variable.
5322 (add_defn_to_vec): Delete unused variable.
5323 (symbol_completion_match): Delete unused variable.
5324 (value_tag_from_contents_and_address): Delete unused variable.
5325 (ada_evaluate_subexp): Delete unused variable.
5326 * c-lang.c (classify_type): Delete unused variable.
5327 * f-lang.c (f_printstr): Delete unused variable.
5328 * objc-lang.c (objc_printstr): Delete unused variable.
5329 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5330 * jv-lang.c (type_from_class): ifdef unused variable.
5331 (java_class_name_from_physname): Delete unused variable.
5332 * m2-lang.c (m2_printstr): Delete unused variable.
5334 * objfiles.c (objfile_relocate): Delete unused variable.
5335 * maint.c (_initialize_maint_cmds): Delete unused variable.
5336 * demangle.c (_initialize_demangler): Delete unused variable.
5337 * corefile.c (reopen_exec_file): Delete unused variable.
5338 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5339 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5341 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5342 * memattr.c (mem_delete): Delete unused variable.
5343 (invalidate_target_mem_regions): Delete unused variable.
5344 * mem-break.c (default_memory_insert_breakpoint):
5345 Delete unused variable.
5346 * target.c (target_get_osdata): Delete unused variable.
5347 * parse.c (length_of_subexp): Delete unused variable.
5348 (prefixify_subexp): Delete unused variable.
5349 (exp_iterate): Delete unused variable.
5350 * reverse.c (delete_bookmark_command): Delete unused variable.
5352 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5353 * macroexp.c (gather_arguments): Delete unused variable.
5354 (substitute_args): Delete unused variable.
5355 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5356 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5357 (_initialize_gdbarch): Delete unused variable.
5358 * gdbarch.c, gdbarch.h: Regenerate.
5359 * arch-utils.c (initialize_current_architecture):
5360 Delete unused variable.
5361 (_initialize_gdbarch_utils): Delete unused variable.
5362 * gdbtypes.c (make_cv_type): Delete unused variable.
5363 (make_type_with_address_space): Delete unused variable.
5365 * linespec.c (decode_compound): Delete unused variable.
5366 * dictionary.c (iterator_next_hashed): Delete unused variable.
5367 * infcall.c (call_function_by_hand): Delete unused variable.
5368 * infcmd.c (step_1): Delete unused variable.
5369 (registers_info): Delete unused variable.
5370 (attach_command): Delete unused variable.
5371 * infrun.c (follow_exec): Delete unused variable.
5372 (handle_step_into_function_backwards): Delete unused variable.
5373 (_initialize_infrun): Delete unused variable.
5374 * stack.c (parse_frame_specification_1): Delete unused variable.
5375 (frame_info): Delete unused variable.
5376 (backtrace_command_1): Delete unused variable.
5377 (catch_info): Delete unused variable.
5379 * eval.c (evaluate_subexp_standard): Delete unused variable.
5380 * valops.c (value_cast_pointers): Delete unused variable.
5381 (value_dynamic_cast): Delete unused variable.
5382 (value_array): Delete unused variable.
5383 (find_overload_match): Delete unused variable.
5384 * valarith.c (value_subscript): Delete unused variable.
5385 (value_binop): Delete unused variable.
5386 * valprint.c (_initialize_valprint): Delete unused variable.
5387 * printcmd.c (print_command_1): Delete unused variable.
5388 (address_info): Delete unused variable.
5389 (printf_command): Delete unused variable.
5391 * auxv.c (target_auxv_search): Delete unused variable.
5392 * blockframe.c (get_frame_block): Delete unused variable.
5393 * regcache.c (regcache_cpy): Delete unused variable.
5394 (regcache_cpy_no_passthrough): Delete unused variable.
5395 * charset.c (wchar_iterate): Delete unused variable.
5396 (find_charset_names): Delete unused variable.
5397 (_initialize_charset): Delete unused variable.
5398 * disasm.c (do_mixed_source_and_assembly):
5399 Delete unused variable.
5400 * source.c (set_default_source_symtab_and_line):
5401 Delete unused variable.
5402 (set_substitute_path_command): Delete unused variable.
5403 * value.c (preserve_values): Delete unused variable.
5404 (value_from_double): Delete unused variable.
5406 2010-05-05 Michael Snyder <msnyder@vmware.com>
5408 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5409 (find_last_source_symtab_from_partial): Delete unused variable.
5410 * symfile.c (place_section): Delete unused variable.
5411 (default_symfile_offsets): Delete unused variable.
5412 (get_debug_link_info): Delete unused variable.
5413 (find_separate_debug_file_by_debuglink): Delete unused variable.
5414 (add_symbol_file_command): Delete unused variable.
5415 (symfile_find_segment_sections): Delete unused variable.
5416 * symmisc.c (free_symtab): Delete unused variable.
5417 (dump_symtab_1): Delete unused variable.
5418 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5419 (find_pc_sect_symtab): Delete unused variable.
5420 (skip_prologue_using_lineinfo): Delete unused variable.
5421 (sources_info): Delete unused variable.
5422 (completion_list_add_name): Delete unused variable.
5423 (expand_line_sal): Delete unused variable.
5425 * breakpoint.c (validate_commands_for_breakpoint):
5426 Delete unused variables.
5427 (insert_catchpoint): Delete unused variable.
5428 (update_watchpoint): Delete unused variable.
5429 (insert_bp_location): Delete unused variable.
5430 (insert_breakpoint_locations): Delete unused variable.
5431 (remove_breakpoint_1): Delete unused variable.
5432 (software_breakpoint_inserted_here_p): Delete unused variable.
5433 (watchpoints_triggered): Delete unused variable.
5434 (bpstat_check_watchpoint): Delete unused variable.
5435 (bpstat_stop_status): Delete unused variable.
5436 (print_one_breakpoint_location): Delete unused variable.
5437 (allocate_bp_location): Delete unused variable.
5438 (create_breakpoint): Delete unused variable.
5439 (watch_command_1): Delete unused variable.
5440 (catch_exception_command_1): Delete unused variable.
5441 (catch_ada_exception_command): Delete unused variable.
5442 (delete_breakpoint): Delete unused variable.
5443 (breakpoint_re_set_one): Delete unused variable.
5444 (do_enable_breakpoint): Delete unused variable.
5446 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5448 * amd64-tdep.c: Include disasm.h.
5449 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5450 (amd64_insn_length): Moved to disasm.c and renamed.
5451 (fixup_riprel): Adjust.
5452 * disasm.c (do_ui_file_delete): New.
5453 (gdb_insn_length): New.
5454 (gdb_buffered_insn_length_fprintf)
5455 (gdb_buffered_insn_length_init_dis)
5456 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5458 * disasm.h (gdb_insn_length): Declare.
5459 (gdb_buffered_insn_length): Declare.
5461 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5463 * remote.c (clear_threads_parsing_context): New.
5464 (remote_threads_info): Delete unused null_cleanup. Install a
5465 cleanup to clear the threads_parsing_context in case parsing
5468 2010-05-05 Michael Snyder <msnyder@vmware.com>
5470 * c-exp.y (parse_string_or_char): Delete unused variable.
5471 (c_lex): Delete unused variable.
5472 * cp-name-parser.y (cpname_lex): Delete unused variable.
5473 * ada-exp.y (find_primitive_type): Delete unused variable.
5474 (write_var_or_type): Delete unused variable.
5475 * jv-exp.y (java_parse): Delete unused variable.
5476 (push_expression_name): Delete unused variable.
5477 * p-exp.y (pascal_lex): Delete unused variable.
5479 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5481 * remote.c (remote_threads_info): Really revert previous previous
5484 2010-05-05 Michael Snyder <msnyder@vmware.com>
5486 * elfread.c (elf_symtab_read): Delete unused variable.
5487 (find_separate_debug_file_by_buildid): Delete unused variables.
5488 (elf_symfile_read): Delete unused variable.
5490 * coffread.c (coff_symfile_read): Delete unused variables.
5492 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5493 (read_pe_exported_syms): Delete unused variable.
5495 * stabsread.c (define_symbol): Delete unused variable.
5497 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5498 (process_psymtab_comp_unit): Delete unused variable.
5499 (dwarf2_build_psymtabs_hard): Delete unused variable.
5500 (load_partial_comp_unit): Delete unused variable.
5501 (create_all_comp_units): Delete unused variable.
5502 (scan_partial_symbols): Delete unused variable.
5503 (add_partial_symbol): Delete unused variable.
5504 (add_partial_namespace): Delete unused variable.
5505 (add_partial_enumeration): Delete unused variable.
5506 (load_full_comp_unit): Delete unused variable.
5507 (process_full_comp_unit): Delete unused variable.
5508 (read_file_scope): Delete unused variable.
5509 (read_type_unit_scope): Delete unused variable.
5510 (process_structure_scope): Delete unused variable.
5511 (process_enumeration_scope): Delete unused variable.
5512 (read_tag_ptr_to_member_type): Delete unused variable.
5513 (read_typedef): Delete unused variable.
5514 (read_partial_die): Delete unused variable.
5515 (decode_locdesc): Delete unused variable.
5516 (zeroed_partial_die): Delete unused global variable.
5518 * tui/tui-interp.c (_initialize_tui_interp):
5519 Delete unused variable.
5520 * tui/tui-regs.c tui_display_registers_from):
5521 Delete unused variable.
5522 (tui_check_register_values): Delete unused variable.
5523 (tui_register_format): Delete unused variable.
5524 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5525 * tui/tui-windata.c (tui_display_data_from_line):
5526 Delete unused variables.
5527 (tui_vertical_data_scroll): Delete unused variables.
5529 2010-05-05 Michael Snyder <msnyder@vmware.com>
5531 * remote.c (remote_threads_info): Revert questionable part of
5532 the previous change.
5534 2010-05-05 Michael Snyder <msnyder@vmware.com>
5536 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5537 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5538 (mi_cmd_var_list_children): Delete unused variable.
5539 (varobj_update_one): Delete unused variable.
5540 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5541 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5542 Delete unused variable.
5543 (mi_cmd_stack_list_variables): Delete unused variable.
5544 (list_args_or_locals): Delete unused variable.
5545 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5546 Delete unused variables.
5547 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5548 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5549 Delete unused variable.
5550 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5551 (mi_cmd_interpreter_exec): Delete unused variable.
5552 (mi_on_normal_stop): Delete unused variable.
5553 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5554 (print_one_inferior): Delete unused variables.
5555 (mi_execute_command): Delete unused variable.
5556 (mi_cmd_execute): Delete unused variable.
5557 (timestamp): Delete unused variable.
5559 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5560 (restore_binary_file): Delete unused variable.
5561 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5562 * cli/cli-script.c (define_command): Delete unused variables.
5563 (recurse_read_control_structure): Delete unused variable.
5564 (script_from_file): Delete unused variable.
5565 * cli/cli-cmds.c (complete_command): Delete unused variable.
5566 (disassemble_command): Delete unused variable.
5568 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5569 * tracepoint.c (delete_trace_variable_command):
5570 Delete unused variables.
5571 (encode_actions_1): Delete unused variables.
5572 (start_tracing): Delete unused variable.
5573 (trace_status_mi): Delete unused variable.
5574 (tfind_1): Delete unused variable.
5575 (trace_find_pc_command): Delete unused variable.
5576 (trace_find_line_command): Delete unused variables.
5577 (trace_find_range_command): Delete unused variables.
5578 (trace_find_outside_command): Delete unused variables.
5579 (parse_tracepoint_definition): Delete unused variables.
5580 (tfile_fetch_registers): Delete unused variable.
5582 * dcache.c (dcache_init): Delete unused variable.
5583 (dcache_info): Delete unused variable.
5585 * remote.c (remote_threads_info): Delete unused variable.
5586 (process_stop_reply) :Delete unused variable.
5587 (remote_get_trace_status): Delete unused variables.
5589 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5590 (thread_from_lwp): Delete unused variable.
5591 (enable_thread_event_reporting): Delete unused variable.
5592 (check_for_thread_db): Delete unused variables.
5593 (thread_db_find_new_threads_2): Delete unused variable.
5595 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5596 (checkpoint_command): Delete unused variable.
5597 (linux_fork_context): Delete unused variables.
5599 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5600 (linux_tracefork_child): Delete unused variable.
5601 (linux_child_follow_fork): Delete unused variable.
5602 (linux_nat_detach): Delete unused variable.
5603 (linux_handle_extended_wait): Delete unused variable.
5604 (linux_nat_has_pending_sigint): Delete unused variable.
5605 (linux_nat_find_memory_regions): Delete unused variable.
5606 (linux_nat_make_corefile_notes): Delete unused variables.
5607 (linux_nat_info_proc_cmd): Delete unused variable.
5608 (linux_proc_pending_signals): Delete unused variable.
5609 (linux_nat_stop_lwp): Delete unused variables.
5610 (_initialize_linux_nat): Delete unused variable.
5612 * ser-pipe.c (pipe_ops): Delete unused global variable.
5614 * linux-record.c (record_linux_system_call):
5615 Delete unused variables.
5617 * corelow.c (core_xfer_partial): Delete unused variables.
5619 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5620 (svr4_solib_create_inferior_hook): Add ifdef around
5621 conditionally-used variable declarations.
5623 * solib.c (solib_find): Delete unused variable.
5624 (free_so_symbols): Delete unused variable.
5625 (info_sharedlibrary_command): Delete unused variable.
5626 (reload_shared_libraries_1): Delete unused variable.
5627 (_initialize_solib): Delete unused variable.
5629 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5630 (i386_collect_xstateregset): Delete unused variable.
5631 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5633 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5634 Delete unused variable 'type'.
5636 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5638 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5639 ada-lang.c: Remove comment mentioning these macros.
5640 * m2-exp.y: Delete commented out code.
5642 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5644 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5646 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5648 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5650 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5651 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5653 (cleanup_kernel_helper_return): Likewise.
5654 * arm-tdep.c (copy_unmodified): Likewise.
5655 (copy_preload): Likewise.
5656 (copy_copro_load_store): Likewise.
5657 (cleanup_branch): Likewise.
5658 (copy_b_bl_blx): Likewise.
5659 (copy_bx_blx_reg): Likewise.
5660 (copy_alu_imm): Likewise.
5661 (copy_alu_reg): Likewise.
5662 (copy_alu_shifted_reg): Likewise.
5663 (cleanup_load): Likewise.
5664 (cleanup_store): Likewise.
5665 (cleanup_block_load_pc): Likewise.
5666 (cleanup_svc): Likewise.
5667 (copy_undef): Likewise.
5668 (copy_unpred): Likewise.
5669 * remote.c (register_remote_support_xml): Likewise.
5671 2010-05-05 Hui Zhu <teawater@gmail.com>
5673 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5675 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5677 * remote.c (register_remote_support_xml)
5678 (remote_query_supported_append, remote_query_supported): Add cast
5679 to NULL used as sentinel.
5680 * tracepoint.c (tvariables_info_1): Likewise.
5681 * utils.c (add_internal_problem_command): Likewise.
5683 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5685 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5686 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5687 registers gracefully.
5689 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5691 * exec.c (print_section_info): Display entry point without arch
5694 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5697 * printcmd.c (x_command): Only dereference once implicitly for
5700 2010-05-03 Doug Evans <dje@google.com>
5702 * event-loop.c (gdb_timer): Delete unused global.
5703 (create_timer): Update.
5705 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5707 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5708 CURRENT->DECLARATION case.
5709 * cp-support.h (struct using_direct): Provide extended comment.
5711 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5713 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5714 HPPABSD_SIZEOF_GREGS.
5715 (HPPAOBSD_SIZEOF_FPREGS): New define.
5716 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5717 (hppaobsd_supply_fpregset): New function.
5718 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5719 (hppaobsd_fpregset): New variable.
5720 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5721 (_initialize_hppabsd_tdep): Remove spurious blank line.
5723 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5726 * p-valprint.c (pascal_value_print): Always dereference a value with
5727 type code TYPE_CODE_REF.
5729 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5731 * remote.c (remote_notice_signals): New.
5732 (remote_start_remote): In non-stop mode, update the remote end on
5733 which signals it can silently pass.
5734 (init_remote_ops): Install remote_notice_signals.
5736 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5739 * command.h (error_no_arg): ... here. Remove NORETURN, change
5740 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5741 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5742 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5743 (internal_verror, internal_error, nomem): Remove NORETURN, change
5744 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5745 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5746 (throw_vfatal, throw_error): Remove NORETURN.
5747 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5748 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5749 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5750 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5751 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5752 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5754 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5755 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5757 * target.c (tcomplain): Likewise.
5758 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5760 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5761 (internal_error, perror_with_name, nomem): Remove NORETURN.
5762 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5765 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5767 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5768 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5769 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5770 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5771 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5772 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5773 * complaints.h (complaint, internal_complaint): Likewise.
5774 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5775 (ATTR_FORMAT): Remove.
5776 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5777 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5778 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5779 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5780 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5781 (internal_error, internal_vwarning, internal_warning, warning)
5782 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5783 * disasm.c (fprintf_disasm): Likewise.
5784 * exceptions.c (throw_it): Likewise.
5785 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5786 (throw_error): Likewise.
5787 * language.h (type_error, range_error): Likewise.
5788 * linespec.c (cplusplus_error): Likewise.
5789 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5790 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5791 * monitor.c (monitor_debug): Likewise.
5792 * parser-defs.h (parser_fprintf): Likewise.
5793 * serial.h (serial_printf): Likewise.
5794 * tui/tui-hooks.c (tui_query_hook): Likewise.
5795 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5796 (uo_message): Likewise.
5797 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5798 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5800 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5802 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5804 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5805 (cli_table_header, cli_begin, cli_end, cli_field_int)
5806 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5807 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5808 Delete forward declarations.
5809 (cli_ui_out_impl): Move below the callbacks.
5810 (_initialize_cli_out): Delete.
5812 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5814 * README: Use consistent `GDB' and `GDBserver' spellings.
5816 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5818 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5820 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5822 * infrun.c (prepare_for_detach): In non-stop, context switch to
5823 the thread that got the event before handling the event.
5825 2010-04-30 Tom Tromey <tromey@redhat.com>
5827 * symtab.c (symbol_set_names): Fix typo.
5829 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5831 * python/py-param.c (parm_constants): Avoid ARI warning
5832 by adding ARI comment.
5833 (parmpy_init): Likewise.
5835 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5837 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5838 and created type for re-use.
5840 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5842 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5844 2010-04-29 Doug Evans <dje@google.com>
5846 * ser-base.h (reschedule): Delete prototype.
5847 * ser-base.c (reschedule): Make static.
5849 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5851 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5852 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5853 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5855 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5858 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5862 * regcache.c (registers_changed): Rename to ...
5863 (registers_changed_ptid): ... this, and only delete register cache
5864 entries matching the ptid filter argument.
5865 (registers_changed): Reimplement on top of registers_changed_ptid.
5866 * regcache.h (registers_changed_ptid): Declare.
5867 * target.c (target_resume): Flush register caches.
5869 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5870 Tom Tromey <tromey@redhat.com>
5871 Thiago Jung Bauermann <bauerman@br.ibm.com>
5873 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5874 (SUBDIR_PYTHON_SRCS): Likewise.
5875 (py-parameter.o): New rule.
5876 * python/py-parameter.c: New file.
5877 * python/python-internal.h (gdbpy_initialize_parameter)
5878 (gdbpy_parameter, gdbpy_parameter_value)
5879 (gdbpy_parse_command_name): Declare.
5880 * python/py-cmd.c (parse_command_name): Rename to
5881 gdbpy_parse_command_name.
5882 (gdbpy_parse_command_name): Accept a starting list parameter and
5884 (cmdpy_init): Use gdbpy_parse_command_name.
5885 * python/python.c (parameter_to_python): Rename to
5886 gdbpy_parameter_to_python. Accept enum var_types and value.
5887 (gdbpy_parameter): Use gdbpy_parameter_value.
5888 (_initialize_python): Call gdbpy_initialize_parameters.
5890 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5892 * MAINTAINERS: Add myself for write after approval privileges.
5894 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5897 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5898 (COMMON_OBS): Add d-lang.o d-valprint.o.
5899 (HFILES_NO_SRCDIR): Add d-lang.h.
5900 * NEWS: Mention D language support.
5901 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5902 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5903 * d-lang.c: New file.
5904 * d-lang.h: New file.
5905 * d-valprint.c: New file.
5906 * defs.h (enum language): Add language_d.
5907 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5908 * language.c (binop_result_type, integral_type, character_type)
5909 (string_type, boolean_type, structured_type): Add language_d.
5910 * symfile.c (init_filename_language_table): Add language_d.
5911 * symtab.c: Include d-lang.h.
5912 (symbol_init_language_specific, symbol_find_demangled_name)
5913 (symbol_natural_name, lookup_symbol_in_language)
5914 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5916 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5918 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5920 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5922 * symfile.c (init_filename_language_table): Register .dg files
5925 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5927 * gdbtypes.h (struct main_type): Expand comment about target_type
5930 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5931 Tristan Gingold <gingold@adacore.com>
5933 * symfile.c (reread_symbols): Also search for file in libraries.
5936 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5938 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5939 in terms of configuration.
5941 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5943 * objfiles.c: Include solist.h.
5944 (free_all_objfiles): New variable so. Check stale solist objfiles.
5945 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5946 and no_shared_libraries.
5948 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5951 * python/py-auto-load.c (source_section_scripts): Remove trailing
5952 new-line in i18n string.
5954 2010-04-26 Doug Evans <dje@google.com>
5956 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5958 2010-04-26 Tom Tromey <tromey@redhat.com>
5960 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5963 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5965 Removal of config/i386/nm-i386sol2.h native configuration file.
5966 * config/i386/nm-i386sol2.h: Remove file.
5967 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5968 * config/i386/sol2-64.mh: Idem.
5969 * config/djgpp/fnchange.lst: Remove reference to that file.
5970 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5972 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5974 PR breakpoints/11531.
5975 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5976 macro definition and related comment.
5977 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5978 (resume): Remove code and comment related to this macro.
5980 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5985 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5987 * defs.h: Adjust comment.
5988 * filesystem.h, filesystem.c: New files.
5989 * Makefile.in (SFILES): Add filesystem.c.
5990 (COMMON_OBS): Add filesystem.o.
5991 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5992 different target and host path flavours.
5993 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5994 has_dos_based_file_system on the gdbarch.
5995 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5996 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5997 * i386-tdep.c (i386_go32_init_abi): Ditto.
5998 * gdbarch.sh (has_dos_based_file_system): New.
5999 * gdbarch.h, gdbarch.c: Regenerate.
6000 * NEWS: Mention improved support for remote targets with DOS-based
6001 filesystems. Mention new `set/show target-file-system-kind'
6004 2010-04-23 Stan Shebs <stan@codesourcery.com>
6006 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6008 (struct agent_reqs): Remove.
6009 (ax_reg_mask): Declare.
6010 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6011 (free_agent_expr): Free reg_mask.
6012 (ax_print): Add scope and register mask info.
6013 (ax_reqs): Remove agent_reqs argument, use agent expression
6014 fields, and move part of register mask computation to...
6015 (ax_reg_mask): New function.
6016 * ax-gdb.c (gen_trace_static_fields): Call it.
6017 (gen_traced_pop): Ditto.
6018 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6019 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6020 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6021 (gen_eval_for_expr): Ditto, and require an rvalue.
6022 (agent_command): Call ax_reqs.
6023 (agent_eval_command): Ditto.
6024 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6025 (validate_action_line): Ditto.
6026 (collect_symbol): Ditto.
6027 (encode_actions_1): Ditto.
6029 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6030 Paul Pluzhnikov <ppluzhnikov@google.com>
6031 Jan Kratochvil <jan.kratochvil@redhat.com>
6033 Fix deadlock on looped list of loaded shared objects.
6034 * solib-svr4.c (LM_PREV): New function.
6035 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6036 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6037 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6038 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6040 2010-04-23 Doug Evans <dje@google.com>
6042 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6044 * configure: Regenerate.
6045 * main.c: #include "python/python.h".
6046 (captured_main): Defer loading auto-loaded scripts until after
6047 local_gdbinit has been sourced.
6048 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6049 (load_auto_scripts_for_objfile): New function.
6050 (auto_load_new_objfile): Call it.
6051 * python/python.h (gdbpy_global_auto_load): Declare.
6052 (load_auto_scripts_for_objfile): Declare.
6054 Add support for auto-loading scripts from .debug_gdb_scripts section.
6055 * NEWS: Add entry for .debug_gdb_scripts.
6056 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6057 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6058 (py-auto-load.o): New rule.
6059 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6060 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6061 * python/py-auto-load.c: New file.
6062 * python/python-internal.h: #include <stdio.h>.
6063 (set_python_list, show_python_list): Declare.
6064 (gdbpy_initialize_auto_load): Declare.
6065 (source_python_script_for_objfile): Declare.
6066 * python/python.c: Remove #include of observer.h.
6067 (gdbpy_auto_load): Moved to py-auto-load.c.
6068 (GDBPY_AUTO_FILENAME): Ditto.
6069 (gdbpy_new_objfile): Delete.
6070 (source_python_script_for_objfile): New function.
6071 (set_python_list, show_python_list): Make externally visible.
6072 (_initialize_python): Move "auto-load" command to py-auto-load.c
6073 and observer_attach_new_objfile to py-auto-load.c.
6075 2010-04-23 Jerome Guitton <guitton@adacore.com>
6077 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6078 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6079 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6081 (alpha_heuristic_analyze_probing_loop): New function.
6082 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6083 and handle cases when a stack probe loop is generated.
6084 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6085 (alpha_mdebug_max_frame_size_exceeded): New function.
6086 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6087 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6088 Return 0 when the maximum debuggable frame size has been exceeded.
6090 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6093 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6095 2010-04-20 Chris Moller <cmoller@redhat.com>
6099 * symtab.c (rbreak_command): Added code to include a filename
6100 specification in the rbreak argument.
6101 * NEWS: Added a brief description of filename-qualified rbreak.
6103 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 Fix crashes on dangling display expressions.
6106 * ada-lang.c (ada_operator_check): New function.
6107 (ada_exp_descriptor): Fill-in the field operator_check.
6108 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6109 * jv-lang.c (exp_descriptor_java): Likewise.
6110 * m2-lang.c (exp_descriptor_modula2): Likewise.
6111 * scm-lang.c (exp_descriptor_scm): Likewise.
6112 * parse.c (exp_descriptor_standard): Likewise.
6113 (operator_check_standard): New function.
6114 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6115 * parser-defs.h (struct exp_descriptor): New field operator_check.
6116 (operator_check_standard, exp_uses_objfile): New declarations.
6117 * printcmd.c: Remove the inclusion of solib.h.
6118 (display_uses_solib_p): Remove the function.
6119 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6120 and exp_uses_objfile instead of display_uses_solib_p.
6121 * solist.h (struct so_list) <objfile>: New comment.
6122 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6123 * symtab.h (lookup_objfile_from_block): New declaration.
6124 (struct general_symbol_info) <obj_section>: Extend the comment.
6126 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6127 Thiago Jung Bauermann <bauerman@br.ibm.com>
6129 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6130 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6131 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6132 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6133 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6134 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6135 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6136 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6137 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6138 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6139 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6140 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6141 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6142 Define, in case <ptrace.h> doesn't provide it.
6143 (booke_debug_info): New variable.
6144 (max_slots_number): Ditto.
6145 (hw_break_tuple): New struct.
6146 (thread_points): Ditto.
6147 (ppc_threads): New variable.
6148 (PPC_DEBUG_CURRENT_VERSION): New define.
6149 (have_ptrace_new_debug_booke): New function.
6150 (ppc_linux_check_watch_resources): Renamed to ...
6151 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6152 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6153 (booke_cmp_hw_point): New function.
6154 (booke_find_thread_points_by_tid): Ditto.
6155 (booke_insert_point): Ditto.
6156 (booke_remove_point): Ditto.
6157 (ppc_linux_insert_hw_breakpoint): Ditto.
6158 (ppc_linux_remove_hw_breakpoint): Ditto.
6159 (get_trigger_type): Ditto.
6160 (ppc_linux_insert_watchpoint): Handle BookE processors.
6161 (ppc_linux_remove_watchpoint): Ditto.
6162 (ppc_linux_new_thread): Ditto.
6163 (ppc_linux_thread_exit): New function..
6164 (ppc_linux_stopped_data_address): Handle BookE processors.
6165 (ppc_linux_watchpoint_addr_within_range): Ditto.
6166 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6167 to_remove_hw_breakpoint fields of the target operations struct.
6168 Add observe for the thread_exit event.
6170 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6172 * i386-linux-nat.c (regmap): Removed.
6173 (fetch_register): Replace regmap with
6174 i386_linux_gregset_reg_offset.
6175 (store_register): Likewise.
6176 (supply_gregset): Likewise.
6177 (fill_gregset): Likewise.
6179 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6182 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6184 2010-04-22 Chris Moller <cmoller@redhat.com>
6186 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6187 method of popping recursion-detection stack with a method based on
6188 obstack_object_size(). (Similar to the PR9167 patch below, but for
6189 the static array obstack rather than the static member obstack.)
6191 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6193 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6194 (_initialize_amd64_linux_nat): Replace
6195 amd64_linux_gregset64_reg_offset with
6196 amd64_linux_gregset_reg_offset.
6198 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6201 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6203 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6206 * stabsread.c (set_length_in_type_chain): New function.
6207 (read_struct_type): Call set_length_in_type_chain function.
6208 (read_enum_type): Idem.
6210 2010-04-21 Stan Shebs <stan@codesourcery.com>
6211 Nathan Sidwell <nathan@codesourcery.com>
6213 * tracepoint.c (trace_save): Open in binary mode.
6215 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6217 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6219 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6220 builtin_char32 fields.
6221 * printcmd.c (decode_format): Set char size to '\0'
6222 for strings unless explicit size is given.
6223 (print_formatted): Correct calculation of NEXT_ADDRESS
6224 for 16 or 32 bit strings.
6225 (do_examine): Do not force byte size for strings.
6226 Use builtin_char16 and builtin_char32 types to display
6227 16 or 32 bit-wide strings.
6228 (x_command): Set LAST_SIZE to 'b' for string type.
6230 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6233 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6236 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6237 there is no .reg-xstate section.
6238 (i386_linux_core_read_description): Check XCR0 first.
6240 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6242 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6245 2010-04-21 Chris Moller <cmoller@redhat.com>
6248 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6249 method of popping recursion-detection stack with a method based on
6250 obstack_object_size().
6252 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6255 * p-valprint.c (pascal_val_print): Fix default printing of integer
6258 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6260 Fix compilation warning on gcc-4.1.2.
6261 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6262 local variable`pc' to zero.
6264 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6266 Implement thread support with core files on alpha-tru64.
6267 * dec-thread.c (dec_thread_find_new_threads): New function,
6268 extracted from resync_thread_list.
6269 (resync_thread_list): Add OPS parameter. Replace extracted-out
6270 code by call to dec_thread_find_new_threads.
6271 (dec_thread_wait): Update call to resync_thread_list.
6272 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6274 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6276 * ada-lang.c (value_pointer): New function.
6277 (make_array_descriptor): Call value_pointer to convert addresses to
6280 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6282 * rs6000-aix-tdep.c: #include exceptions.h.
6283 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6284 while reading the memory at ADDR, then ADDR cannot be a function
6287 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6289 * ada-typeprint.c (ada_print_typedef): New function.
6290 * ada-lang.h (ada_print_typedef): Add declaration.
6291 * ada-lang.c (ada_language_defn): set la_print_typdef field
6292 to ada_print_typedef.
6294 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6296 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6298 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6300 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6301 (iterate_over_mappings): Adjust function profile. Add declaration.
6302 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6305 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6307 * procfs.c (solib_mappings_callback): Move function up to avoid
6310 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6312 * procfs.c (find_signalled_thread, find_stop_signal): Move
6313 these functions down to define them only when used.
6315 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6317 * valprint.c (common_val_print): Fix the value before extracting
6319 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6320 * ada-lang.h (ada_to_fixed_value): New function declaration.
6321 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6322 to avoid code duplication and fix a bug in the handling of
6323 fixed types contents.
6325 2010-04-20 Tom Tromey <tromey@redhat.com>
6327 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6328 (read_partial_die): Likewise.
6329 (dwarf_attr_name): Likewise.
6331 2010-04-20 Chris Moller <cmoller@redhat.com>
6335 * cp-valprint.c (global): Adding new static array recursion
6337 (cp_print_value_fields, cp_print_static_field): Added new static
6338 array recursion detection code.
6340 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6342 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6343 general-purpose register set should be 68 instead of 144.
6344 (i386_linux_sse_regset_sections): Likewise.
6345 (i386_linux_avx_regset_sections): Likewise.
6347 2010-04-20 Stan Shebs <stan@codesourcery.com>
6348 Nathan Sidwell <nathan@codesourcery.com>
6350 * dwarf2loc.c (struct axs_var_loc): New struct.
6351 (dwarf2_tracepoint_var_loc): New function.
6352 (dwarf2_tracepoint_var_access): New function.
6353 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6355 (locexpr_describe_location_piece): New function.
6356 (locexpr_describe_location_1): New function.
6357 (locexpr_describe_location): Call it, update signature.
6358 (loclist_describe_location): Rewrite to loop over locations,
6360 * symtab.h (struct symbol_computed_ops): Add address to
6361 describe_location arguments, return void.
6362 * printcmd.c (address_info): Get context PC, pass to computed
6363 location description.
6364 * tracepoint.c (scope_info): Ditto.
6365 * ax-gdb.c (trace_kludge): Export.
6367 2010-04-20 Tom Tromey <tromey@redhat.com>
6369 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6370 (struct dwarf2_cie) <segment_size>: New field.
6371 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6372 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6374 (read_attribute_value): Handle DW_FORM_flag_present,
6375 DW_FORM_sec_offset, DW_FORM_exprloc.
6376 (dump_die_shallow): Likewise.
6377 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6378 (dwarf2_const_value): Handle DW_FORM_exprloc.
6379 (attr_form_is_block): Likewise.
6380 (struct line_header) <maximum_ops_per_instruction>: New field.
6381 (dwarf_decode_line_header): Set new field.
6382 (dwarf_decode_lines): Handle new field.
6384 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6386 * f-exp.y: Add new production to recognize the `logical*8' type.
6387 (LOGICAL_S8_KEYWORD): New token.
6388 * f-lang.c (enum f_primitive_types)
6389 <f_primitive_type_logical_s8>: New field.
6390 (f_language_arch_info): Handling `logical*8' type.
6391 (build_fortran_types): Building `logical*8' type.
6392 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6394 2010-04-19 Doug Evans <dje@google.com>
6396 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6397 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6398 (pipe_close): Ditto.
6400 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6402 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6404 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6406 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6407 type to void function.
6409 2010-04-19 Stan Shebs <stan@codesourcery.com>
6410 Vladimir Prus <vladimir@codesourcery.com>
6412 * tracepoint.c (tfind_1): Add missing newline, report exit from
6414 * target.c (update_current_target): Make default
6415 to_trace_find return -1.
6417 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6419 * objc-lang.c (find_methods): Move symname check up.
6421 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6423 * ada-lang.c (print_recreate_exception)
6424 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6425 not "catch unhandled".
6427 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6429 PR breakpoints/8554.
6431 Implement `save-breakpoints'.
6433 * breakpoint.c (save_cmdlist): New.
6434 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6436 (print_recreate_catch_fork): New.
6437 (catch_fork_breakpoint_ops): Install it.
6438 (print_recreate_catch_vfork): New.
6439 (catch_vfork_breakpoint_ops): Install it.
6440 (print_recreate_catch_syscall): New.
6441 (catch_syscall_breakpoint_ops): Install it.
6442 (print_recreate_catch_exec): New.
6443 (catch_exec_breakpoint_ops): Install it.
6444 (print_recreate_exception_catchpoint): New.
6445 (gnu_v3_exception_catchpoint_ops): Install it.
6446 (save_breakpoints): New, based on tracepoint_save_command, but
6447 handle all breakpoint types.
6448 (save_breakpoints_command): New.
6449 (tracepoint_save_command): Rename to...
6450 (save_tracepoints_command): ... this, and reimplement using
6452 (save_command): New.
6453 (_initialize_breakpoints): Install the "save" command prefix.
6454 Install the "save breakpoints" command. Make "save-tracepoints" a
6455 deprecated alias for "save tracepoints".
6456 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6457 * ada-lang.c (print_recreate_exception): New.
6458 (print_recreate_catch_exception): New.
6459 (catch_exception_breakpoint_ops): Install it.
6460 (print_recreate_catch_exception_unhandled): New.
6461 (catch_exception_unhandled_breakpoint_ops): Install it.
6462 (print_recreate_catch_assert): New.
6463 (catch_assert_breakpoint_ops): Install it.
6465 * NEWS: Mention the new `save breakpoints' command. Mention the
6466 new `save tracepoints' alias and that `save-tracepoints' is now
6469 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6473 * tui/tui-out.c: Include cli-out.h.
6474 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6475 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6476 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6477 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6479 (struct ui_out_data): Rename to...
6480 (struct tui_ui_out_data): ... this. Remove `stream' and
6481 `suppress_output' fields, and inherit cli_ui_out_data.
6482 (tui_out_data): New typedef.
6483 (tui_ui_out_impl): Don't initialize fields staticaly.
6484 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6485 (tui_begin, tui_end): Delete.
6486 (tui_field_int): Adjust to delegate most work to the base type.
6487 (tui_field_skip): Delete.
6488 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6489 delegate most work to the base type.
6490 (tui_spaces): Delete.
6491 (tui_text): Adjust to delegate most work to the base type.
6492 (tui_message): Delete.
6493 (tui_wrap_hint): Delete.
6494 (tui_flush): Delete.
6495 (out_field_fmt): Delete.
6496 (field_separator): Delete.
6497 (tui_out_new): Adjust to initialize the base type.
6498 (_initialize_tui_out): Initialize tui_ui_out_impl.
6499 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6501 (cli_out_data): Adjust.
6502 (cli_ui_out_impl): Make extern.
6503 (cli_table_header, cli_field_int, cli_field_skip): Use
6504 uo_field_string instead of cli_field_string.
6505 (cli_redirect): Adjust to use cli_out_data.
6506 (cli_out_data_ctor): New.
6507 (cli_out_new): Use it.
6508 * cli-out.h (struct ui_file): Remove forward declaration.
6509 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6510 (cli_ui_out_impl): Declare.
6511 (cli_out_data_ctor): Declare.
6512 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6513 (uo_field_string): No longer static.
6514 (ui_out_data): Change return type to void pointer.
6515 (ui_out_new): Change `data' parameter type to void pointer.
6516 * ui-out.h (struct ui_out_data): Don't forward declare.
6517 (ui_out_data): Change return type to void pointer.
6518 (ui_out_new): Change `data' parameter type to void pointer.
6519 (uo_field_string): Declare.
6521 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6523 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6524 instead of always false.
6526 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6529 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6532 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6534 * breakpoint.c (watchpoints_triggered): Use
6535 is_hardware_watchpoint.
6536 (watchpoints_triggered): Ditto.
6537 (bpstat_check_location): Use is_watchpoint and
6538 is_hardware_watchpoint.
6539 (bpstat_check_watchpoint): Use is_watchpoint and
6540 is_hardware_watchpoint.
6541 (bpstat_stop_status): Fix comment.
6542 (user_settable_breakpoint): Use is_watchpoint.
6543 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6544 (disable_watchpoints_before_interactive_call_start): Use
6546 (enable_watchpoints_after_interactive_call_stop): Use
6548 (clear_command): Use is_watchpoint.
6549 (do_enable_breakpoint): Use is_watchpoint.
6551 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6553 * solib-frv.c (enable_break1_done): Delete.
6554 (enable_break2): Do not check enable_break1_done. Move the
6555 enable_break2_done setting and call to
6556 remove_solib_event_breakpoints() to the end. Return without
6557 warning when the contents of _dl_debug_addr are 0.
6558 (enable_break): Do not set enable_break1_done.
6559 (frv_clear_solib): Likewise.
6561 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6563 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6564 instead of an error if no PLT entry is found. Return a
6565 potentially useful result.
6566 (m32c_m16c_pointer_to_address): Add code to search for function
6567 address when no .plt entry is found.
6569 2010-04-16 Stan Shebs <stan@codesourcery.com>
6571 * tracepoint.c (trace_variable_command): Run a cleanup.
6573 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6575 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6577 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6579 Support for Windows OS Thread Information Block.
6580 * NEWS: Document new feature.
6581 * remote.c (PACKET_qGetTIBAddr): New enum element.
6582 (remote_get_tib_address): New function.
6583 (init_remote_ops): Set to_get_tib_address field
6584 to remote_get_tib_address.
6585 (_initialize_remote): Add add_packet_config_cmd
6586 for PACKET_qGetTIBAddr.
6587 * target.c (update_current_target): Set default value for
6588 new to_get_tib_address field.
6589 * target.h (target_ops): New field to_get_tib_address.
6590 (target_get_tib_address): New macro.
6591 * windows-nat.c (thread_info): Add thread_local_base field.
6592 (windows_add_thread): Add tlb argument of type 'void *'.
6593 (fake_create_process): Adapt windows_add_thread call.
6594 (get_windows_debug_event): Idem.
6595 (windows_get_tib_address): New function.
6596 (init_windows_ops): Set to_get_tib_address field
6597 to remote_get_tib_address.
6598 (_initialize_windows_nat): Replace info_w32_cmdlist
6599 initialization by a call to init_w32_command_list.
6600 (info_w32_command, info_w32_cmdlist): Removed from here...
6601 to windows-tdep.c file.
6602 * windows-tdep.h (info_w32_cmdlist): Declare.
6603 (init_w32_command_list): New external function
6605 * windows-tdep.c: Add several headers.
6606 (info_w32_cmdlist): to here, made global.
6607 (thread_information_32): New struct.
6608 (thread_information_64): New struct.
6609 (TIB_NAME): New char array.
6610 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6611 (maint_display_all_tib): New static variable.
6612 (windows_get_tlb_type): New function.
6613 (tlb_value_read, tlb_value_write): New functions.
6614 (tlb_value_funcs): New static struct.
6615 (tlb_make_value): New function.
6616 (display_one_tib): New function.
6617 (display_tib): New function.
6618 (show_maint_show_all_tib):New function.
6619 (info_w32_command): Moved from windows-nat.c.
6620 (init_w32_command_list): New function.
6621 (_initialize_windows_tdep): New function.
6622 New "maint set/show show-all-tib" command
6623 New "$_tlb" internal variable.
6625 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6627 * tui/tui-regs.c (tui_display_register): Add comment about
6629 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6631 2010-04-15 Stan Shebs <stan@codesourcery.com>
6633 * frame.c: Include tracepoint.h.
6634 (get_current_frame): Allow a trace frame to be an alternate source
6635 of stack frame data.
6636 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6639 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6641 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6643 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6645 2010-04-15 Doug Evans <dje@google.com>
6647 * NEWS: Add entry for python program space support.
6648 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6649 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6650 (py-progspace.o): New rule.
6651 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6653 (find_pretty_printer_from_progspace): New function.
6654 (find_pretty_printer_from_gdb): New function.
6655 (find_pretty_printer): Rewrite.
6656 * python/py-progspace.c: New file.
6657 * python/python-internal.h (program_space): Add forward decl.
6658 (pspace_to_pspace_object, pspy_get_printers): Declare.
6659 (gdbpy_initialize_pspace): Declare.
6660 * python/python.c: #include "progspace.h".
6661 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6662 (_initialize_python): Call gdbpy_initialize_pspace.
6663 (GdbMethods): Add current_progspace, progspaces.
6665 Add -s option to source command.
6666 * NEWS: Document new option.
6667 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6668 Delete from_tty and cleanupp args. Split filep arg into file and
6669 full_pathp. New arg search_path.
6670 (source_script_from_stream): New function.
6671 (source_script_with_search): New function.
6672 (source_script): Rewrite.
6673 (source_command): Parse "-s" option.
6674 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6675 * python/python.c (source_python_script): Make file arg a const char *.
6676 Don't call fclose, leave for caller.
6677 * python/python.h (source_python_script): Update.
6679 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6680 Pedro Alves <pedro@codesourcery.com>
6682 Avoid rereading shared libraries that haven't changed.
6684 * solib.c (free_so_symbols): New function, from ...
6685 (free_so): ... here. Call it.
6686 (solib_read_symbols): Don't warn here if symbols have already been
6688 (solib_add): Warn here instead, if a pattern was specified.
6689 (reload_shared_libraries_1): New.
6690 (reload_shared_libraries): Rewrite to not fetch the library list.
6692 2010-04-14 Doug Evans <dje@google.com>
6694 * source.c (openp): Strip DOS drive letter if present before
6695 concatenating string to search path.
6697 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6699 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6700 * objfiles.c (gdb_bfd_close_or_warn): New.
6701 * corelow.c: Include objfiles.h
6702 (core_close): Use gdb_bfd_close_or_warn.
6703 * elfread.c (build_id_verify): Ditto.
6704 * exec.c (exec_close, exec_close_1): Ditto.
6706 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6707 Pedro Alves <pedro@codesourcery.com>
6709 Group errors for many missing shared libraries.
6711 * solist.h (struct so_list): Remove from_tty.
6712 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6713 (solib_map_sections): Take so_list argument. Return 0 if we
6714 failed to open a BFD. Add target sections here.
6715 (symbol_add_stub): Delete.
6716 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6717 not from_tty copied from the so_list. Don't warn a second time
6718 for a missing library.
6719 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6720 add to the section table here. Print out a single warning for all
6722 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6725 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6727 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6728 error/warning messages. Capitalize and use complete sentences.
6729 (blpy_block_syms_iternext): Likewise.
6730 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6731 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6732 (frame_info_to_frame_object, frapy_read_var)
6733 (gdbpy_frame_stop_reason_string): Likewise.
6734 * python/py-lazy-string.c (stpy_convert_to_value)
6735 (gdbpy_create_lazy_string_object): Likewise.
6736 * python/py-objfile.c (objfpy_set_printers): Likewise.
6737 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6738 * python/python.c (parameter_to_python): Likewise.
6739 * python/py-type.c (typy_range, typy_target): Likewise.
6740 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6741 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6744 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6748 * python/py-prettyprint.c (pretty_print_one_value): Test for
6750 (print_string_repr): Test for Py_None. Set flags accordingly.
6751 Return value depending on return type.
6752 (print_children): Take a value indicating whether data was printed
6753 before this function was called. Alter output accordingly.
6754 (apply_val_pretty_printer): Capture return value from
6755 print_string_repr and pass to print_children.
6757 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6760 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6761 register note sections.
6762 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6764 (i386_linux_init_abi): Install list of supported register note
6765 sections that matches the target description.
6767 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6769 * remote.c (remote_get_noisy_reply): Don't error out on empty
6771 (remote_start_remote): Update and merge tracepoints and trace
6772 state variables as long as the target supports tracepoints.
6773 (remote_trace_init): Fix prototype.
6774 (remote_download_trace_state_variable): Validate reply.
6775 (remote_trace_set_readonly_regions): Fix prototype.
6776 (remote_trace_start): Fix prototype. Check for empty reply.
6777 (remote_get_trace_status): Small cleanup.
6778 (remote_trace_stop): Fix prototype. Check for empty reply.
6779 (remote_trace_find): Check for empty reply.
6780 (remote_save_trace_data): Validate reply.
6781 (remote_set_disconnected_tracing): Check for empty reply, and
6783 (remote_set_circular_trace_buffer): Ditto.
6785 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6787 Suppress unused value warning during compilation.
6788 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6790 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6792 2010-04-12 Stan Shebs <stan@codesourcery.com>
6794 * tracepoint.c (tfile_xfer_partial): Check read result.
6796 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6798 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6799 * remote-sim.c (gdbsim_files_info): Likewise.
6801 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6803 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6804 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6806 (fetch_vfp_registers): New function to fetch VFP registers.
6807 (store_vfp_registers): New function to store VFP registers.
6808 (arm_linux_fetch_inferior_registers): Add support for VFP
6810 (arm_linux_store_inferior_registers): Likewise.
6811 (arm_linux_read_description): Likewise.
6812 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6815 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6817 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6819 (amd64_collect_xstateregset): Likewise.
6821 2010-04-09 Stan Shebs <stan@codesourcery.com>
6823 * tracepoint.c (trace_status_mi): Report frames created.
6825 * tracepoint.c (trace_dump_command): Include default-collect
6828 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6830 * symtab.c (find_function_start_sal): Never return SAL pointing
6831 before function start address, even if line info is missing.
6833 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6835 * NEWS: Mention tracepoints support.
6837 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6839 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6840 circular trace buffer statuses.
6842 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6844 * config/djgpp/fnchange.lst: Fix typo in translations for
6845 symbol-without-target_section.exp and symbol-without-target_section.c.
6847 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6849 * breakpoint.c (condition_command): Pass condition expression to
6850 set_breakpoint_condition stripped from breakpoint number.
6852 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6853 Thiago Jung Bauermann <bauerman@br.ibm.com>
6854 Tom Tromey <tromey@redhat.com>
6856 * breakpoint.c (condition_command): Simplify. Move condition
6858 (set_breakpoint_condition): ... here. New function.
6859 * breakpoint.h (set_breakpoint_condition): Declare.
6860 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6861 (SUBDIR_PYTHON_SRCS): Likewise.
6862 (py-breakpoint.o): New rule.
6863 * python/py-breakpoint.c: New file.
6864 * python/python-internal.h (gdbpy_breakpoints)
6865 (gdbpy_initialize_breakpoints): Declare.
6866 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6868 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6870 * regformats/regdat.sh: Include server.h. Don't include
6873 2010-04-08 Stan Shebs <stan@codesourcery.com>
6874 Pedro Alves <pedro@codesourcery.com>
6876 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6877 and circular_buffer.
6878 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6879 * tracepoint.c (trace_status_command): Display target's status for
6880 disconnected tracing and circular buffer.
6881 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6882 query for non-disconnected-tracing case, remove the stop_tracing
6884 (tfile_open): Clear disconnected and circular buffer status.
6885 (trace_save): Save disconnected and circular buffer status.
6886 (parse_trace_status): Parse disconnected and circular buffer status,
6887 also recognize disconnected as a stop reason.
6888 * remote.c (remote_set_disconnected_tracing): Only set
6889 QTDisconnected if the remote end supports disconnected tracing.
6890 Warn otherwise, if trying to enable disconnected tracing.
6891 * infcmd.c (detach_command): Update disconnect_tracing call.
6892 * cli/cli-cmds.c (quit_command): Ditto.
6894 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6896 * i387-tdep.c (i387_collect_xsave): Replace abort with
6899 2010-04-08 Stan Shebs <stan@codesourcery.com>
6901 * breakpoint.c (default_collect_info): New function.
6902 (breakpoints_info): Call it.
6903 (maintenance_info_breakpoints): Ditto.
6904 (tracepoints_info): Ditto.
6906 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6908 * i387-tdep.c (i387_collect_xsave): Re-indent.
6910 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6912 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6913 if HAVE_PTRACE_GETFPXREGS is defined.
6914 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6915 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6917 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6918 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6919 if .reg-xfp section doesn't exist.
6920 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6922 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6924 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6925 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6926 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6927 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6928 (i386_gdbarch_init): Update comments.
6929 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6931 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6933 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6935 * features/Makefile (i386/i386-mmx-expedite): New.
6936 (i386/i386-mmx-linux-expedite): Likewise.
6937 ($(outdir)/i386/i386-mmx.dat): Likewise.
6938 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6940 * features/i386/i386-mmx-linux.c: New.
6941 * features/i386/i386-mmx-linux.xml: Likewise.
6942 * features/i386/i386-mmx.c: Likewise.
6943 * features/i386/i386-mmx.xml: Likewise.
6944 * regformats/i386/i386-mmx-linux.dat: Likewise.
6945 * regformats/i386/i386-mmx.dat: Likewise.
6947 * features/Makefile (WHICH): Add i386/i386-mmx and
6948 i386/i386-mmx-linux.
6950 2010-04-08 Doug Evans <dje@google.com>
6952 * source.c (openp): Skip $cdir in PATH.
6954 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6957 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6959 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6960 address and a zero length.
6962 2010-04-08 Hui Zhu <teawater@gmail.com>
6964 * i386-tdep.c (i386_process_record): Add support for insn
6967 2010-04-07 Doug Evans <dje@google.com>
6969 * python/python.c (source_python_script): Use ensure_python_env
6970 to prepare environment for script.
6972 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6974 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6975 <sys/uio.h> and "i386-xstate.h".
6976 (PTRACE_GETREGSET): New.
6977 (PTRACE_SETREGSET): Likewise.
6978 (have_ptrace_getregset): Likewise.
6979 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6981 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6983 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6984 (amd64_linux_store_inferior_registers): Likewise.
6985 (amd64_linux_read_description): Check and enable AVX target
6988 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6989 and "features/i386/amd64-avx-linux.c".
6990 (amd64_linux_regset_sections): New.
6991 (amd64_linux_core_read_description): Check and enable AVX
6993 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6994 set_gdbarch_core_regset_sections.
6995 (_initialize_amd64_linux_tdep): Call
6996 initialize_tdesc_amd64_avx_linux.
6998 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6999 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7000 (tdesc_amd64_avx_linux): New.
7001 (amd64_linux_update_xstateregset): Likewise.
7003 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7004 (amd64_ymm_names): New.
7005 (amd64_ymmh_names): Likewise.
7006 (amd64_register_name): Likewise.
7007 (amd64_supply_xstateregset): Likewise.
7008 (amd64_collect_xstateregset): Likewise.
7009 (amd64_supply_xsave): Likewise.
7010 (amd64_collect_xsave): Likewise.
7011 (AMD64_NUM_REGS): Removed.
7012 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7013 %xmmN if AVX is available.
7014 (amd64_pseudo_register_name): Support pseudo YMM registers.
7015 (amd64_regset_from_core_section): Support .reg-xstate section.
7016 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7017 and ymm0h_regnum. Call set_gdbarch_register_name.
7018 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7020 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7021 AMD64_YMM15H_REGNUM.
7022 (AMD64_NUM_REGS): New.
7023 (amd64_supply_xsave): Likewise.
7024 (amd64_collect_xsave): Likewise.
7025 (amd64_register_name): Removed.
7026 (amd64_register_type): Likewise.
7028 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7030 * i387-tdep.c: Include "i386-xstate.h".
7031 (XSAVE_XSTATE_BV_ADDR): New.
7032 (xsave_avxh_offset): Likewise.
7033 (XSAVE_AVXH_ADDR): Likewise.
7034 (i387_supply_xsave): Likewise.
7035 (i387_collect_xsave): Likewise.
7037 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7038 (I387_YMM0H_REGNUM): Likewise.
7039 (I387_YMMENDH_REGNUM): Likewise.
7040 (i387_supply_xsave): Likewise.
7041 (i387_collect_xsave): Likewise.
7043 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7045 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7046 <sys/uio.h> and "i386-xstate.h".
7047 (PTRACE_GETREGSET): New.
7048 (PTRACE_SETREGSET): Likewise.
7049 (fetch_xstateregs): Likewise.
7050 (store_xstateregs): Likewise.
7051 (GETXSTATEREGS_SUPPLIES): Likewise.
7052 (regmap): Include 8 upper YMM registers.
7053 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7055 (i386_linux_store_inferior_registers): Likewise.
7056 (i386_linux_read_description): Check and enable AVX target
7059 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7060 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7061 (i386_linux_regset_sections): Add ".reg-xstate".
7062 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7063 (i386_linux_core_read_xcr0): New.
7064 (i386_linux_core_read_description): Check and enable AVX target
7066 (i386_linux_init_abi): Set xsave_xcr0_offset.
7067 (_initialize_i386_linux_tdep): Call
7068 initialize_tdesc_i386_avx_linux.
7070 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7071 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7072 (i386_linux_core_read_xcr0): New.
7073 (tdesc_i386_avx_linux): Likewise.
7074 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7076 * i386-tdep.c: Include "i386-xstate.h" and
7077 "features/i386/i386-avx.c".
7078 (i386_ymm_names): New.
7079 (i386_ymmh_names): Likewise.
7080 (i386_ymmh_regnum_p): Likewise.
7081 (i386_ymm_regnum_p): Likewise.
7082 (i386_xmm_regnum_p): Likewise.
7083 (i386_register_name): Likewise.
7084 (i386_ymm_type): Likewise.
7085 (i386_supply_xstateregset): Likewise.
7086 (i386_collect_xstateregset): Likewise.
7087 (i386_sse_regnum_p): Removed.
7088 (i386_pseudo_register_name): Support pseudo YMM registers.
7089 (i386_pseudo_register_type): Likewise.
7090 (i386_pseudo_register_read): Likewise.
7091 (i386_pseudo_register_write): Likewise.
7092 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7093 %xmmN if AVX is available.
7094 (i386_regset_from_core_section): Support .reg-xstate section.
7095 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7096 (i386_process_record): Replace i386_sse_regnum_p with
7098 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7099 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7100 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7101 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7102 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7103 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7105 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7107 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7108 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7110 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7111 (I386_AVX_NUM_REGS): New.
7112 (i386_xmm_regnum_p): Likewise.
7113 (i386_ymm_regnum_p): Likewise.
7114 (i386_ymmh_regnum_p): Likewise.
7116 * common/i386-xstate.h: New.
7118 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7120 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7122 * features/Makefile (WHICH): Add i386/i386-avx,
7123 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7124 (i386/i386-avx-expedite): New.
7125 (i386/i386-avx-linux-expedite): Likewise.
7126 (i386/x86-64-avx-expedite):Likewise.
7127 (i386/x86-64-avx-linux-expedite): Likewise.
7128 ($(outdir)/i386/i386-avx.dat): New dependency.
7129 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7130 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7131 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7133 * features/i386/32bit-avx.xml: New.
7134 * features/i386/64bit-avx.xml: Likewise.
7135 * features/i386/i386-avx-linux.c: Likewise.
7136 * features/i386/i386-avx-linux.xml: Likewise.
7137 * features/i386/i386-avx.c: Likewise.
7138 * features/i386/i386-avx.xml: Likewise.
7139 * features/i386/x86-64-avx-linux.c: Likewise.
7140 * features/i386/x86-64-avx-linux.xml: Likewise.
7141 * features/i386/x86-64-avx.c: Likewise.
7142 * features/i386/x86-64-avx.xml: Likewise.
7143 * regformats/i386/i386-avx-linux.dat: Likewise.
7144 * regformats/i386/i386-avx.dat: Likewise.
7145 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7146 * regformats/i386/x86-64-avx.dat: Likewise.
7148 2010-04-07 Doug Evans <dje@google.com>
7150 * top.c (source_file_name): Make const char *.
7151 * top.h (source_file_name): Update.
7152 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7154 (script_from_file): Change `file' arg to const char *.
7155 * cli/cli-script.h (script_from_file): Update.
7157 2010-04-06 Doug Evans <dje@google.com>
7159 * cli/cli-cmds.c (source_command): Run cleanups.
7161 2010-04-06 Stan Shebs <stan@codesourcery.com>
7163 * defs.h (char_ptr): Move typedef here from...
7164 * ada-lang.c (char_ptr): Remove.
7165 * charset.c (char_ptr): Remove.
7166 * tracepoint.h (struct uploaded_string): Remove.
7167 (struct uploaded_tp): Use vectors for string arrays.
7168 * tracepoint.c (trace_save): Use vectors of actions.
7169 (parse_tracepoint_definition): Ditto.
7170 (get_uploaded_tp): Clear vectors.
7171 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7172 (next_cmd): Change to an int.
7173 (read_next_cmd): Use vector of command strings.
7175 2010-04-06 Doug Evans <dje@google.com>
7177 * top.h (source_script, cd_command): Delete.
7178 * main.c: #include "cli/cli-cmds.h"
7180 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7182 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7183 type in bytes, not bits.
7185 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7187 * stabsread.c (define_symbol): Add support for char
7188 and string constants.
7190 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7192 Remove remaining "%ll" uses.
7193 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7195 * rs6000-nat.c (rs6000_ptrace64): Idem.
7196 * solib-pa64.c (pa64_current_sos): Idem.
7197 * solib-spu.c (spu_current_sos): Idem.
7198 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7200 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7202 * sh64-tdep.c (sh64_show_media_regs): Idem.
7204 2010-04-05 Stan Shebs <stan@codesourcery.com>
7206 * tracepoint.c: Include gdbcore.h.
7207 (tfile_xfer_partial): Return partial results, also try reading
7209 (tfile_has_all_memory): New function.
7210 (init_tfile_ops): Use it.
7212 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7215 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7216 the changes in data-directory.
7217 (init_sysinfo): Reload the syscall XML file if the data-directory
7220 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7223 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7225 2010-04-04 Stan Shebs <stan@codesourcery.com>
7226 Nathan Sidwell <nathan@codesourcery.com>
7228 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7229 breakpoints printed.
7230 (is_hardware_watchpoint): Make argument const.
7231 (is_watchpoint): Ditto.
7232 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7234 (breakpoints_info): Pass NULL to breakpoint_1.
7235 (maintenance_info_breakpoints): Ditto.
7236 (watchpoints_info): New function.
7237 (tracepoints_info): Use breakpoint_1 filter.
7238 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7239 (_initialize_breakpoint): Make "info watchpoints" its own command.
7240 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7241 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7243 2010-04-04 Stan Shebs <stan@codesourcery.com>
7245 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7247 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7249 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7250 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7252 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7254 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7255 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7257 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7259 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7262 2010-04-02 Hui Zhu <teawater@gmail.com>
7264 * i386-tdep.c (OT_DQUAD): New enum.
7265 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7266 SSE3, SSSE3 and SSE4.
7268 2010-04-02 Hui Zhu <teawater@gmail.com>
7270 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7273 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7275 * tracepoint.c (trace_dump_actions): New, factored out from
7276 trace_dump_command, and adjusted to recurse into while-stepping's
7278 (trace_dump_command): Use it.
7280 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7282 * breakpoint.h (struct counted_command_line): Moved definition to
7283 breakpoint.c, and forward declare.
7284 (breakpoint_commands): Declare.
7285 * breakpoint.c (struct counted_command_line): Moved here.
7286 (breakpoint_commands): New.
7287 * tracepoint.c (encode_actions): Use breakpoint_commands.
7288 * remote.c (remote_download_tracepoint): Ditto.
7290 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7292 * remote.c (remote_parse_stop_reply): Use hex_string instead
7293 of phex_nz for error.
7295 2010-04-01 Stan Shebs <stan@codesourcery.com>
7296 Nathan Sidwell <nathan@codesourcery.com>
7298 * tracepoint.h (enum actionline_type): Remove.
7299 (validate_actionline): Change return to void.
7300 * tracepoint.c (report_agent_reqs_errors): New function.
7301 (validate_actionline): Call it, change return to void, report errors
7303 (collect_symbol): Call report_agent_reqs_errors.
7304 (encode_actions_1): Ditto.
7305 (encode_actions): Don't expect a result from validate_actionline.
7307 2010-04-01 Stan Shebs <stan@codesourcery.com>
7309 * tracepoint.c (trace_start_command): Confirm if trace is running.
7310 (trace_stop_command): Error if trace not running.
7312 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7314 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7315 (AMD64_NUM_LOWER_BYTE_REGS): New.
7316 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7317 (amd64_pseudo_register_write): Likewise.
7318 (amd64_init_abi): Set num_byte_regs to 20.
7320 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7322 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7323 (prev_breakpoint_count): New.
7324 (set_breakpoint_count): Adjust.
7325 (rbreak_start_breakpoint_count): New.
7326 (start_rbreak_breakpoints): Adjust.
7327 (end_rbreak_breakpoints): Adjust.
7328 (struct commands_info) <arg>: New field.
7329 (do_map_commands_command): Tweak output to include breakpoint spec
7331 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7332 ARG was empty on entry. Set INFO's arg.
7333 (create_breakpoint): Adjust.
7335 * NEWS: Clarify `commands' changes.
7337 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7339 * tracepoint.c: Include stack.h.
7340 (struct add_local_symbols_data): New.
7341 (do_collect_symbol): New.
7342 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7343 iterate_over_block_local_vars.
7344 * stack.c (print_block_frame_locals): Rewrite as ...
7345 (iterate_over_block_locals): ... this. Take a callback function
7346 pointer and generic data pointer, and call that instead of
7347 print_variable_and_value.
7348 (struct print_variable_and_value_data): New.
7349 (do_print_variable_and_value): New.
7350 (iterate_over_block_local_vars): New, abstracted out from
7351 print_frame_local_vars.
7352 (print_frame_local_vars): Rewrite using
7353 iterate_over_block_local_vars.
7354 (iterate_over_block_arg_vars): New, abstracted out from
7355 print_frame_arg_vars.
7356 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7357 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7358 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7360 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7362 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7363 instructions. Use the PC+4 if the base of the TBB or TBH is the
7366 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7368 Fix crash on reading wrong function declaration DWARF.
7369 * dwarf2read.c (read_subroutine_type): New variable void_type.
7370 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7371 more close to their use.
7373 2010-03-31 Stan Shebs <stan@codesourcery.com>
7375 * breakpoint.c (tracepoint_save_command): Include variables,
7376 conditionals, tracepoint types, and default-collect.
7377 * tracepoint.c (save_trace_state_variables): New function.
7378 * tracepoint.h (save_trace_state_variables): Declare it.
7380 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7382 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7384 2010-03-30 Keith Seitz <keiths@redhat.com>
7386 * c-typeprint.c (c_type_print_args): Don't print "void"
7387 for java, regardless of whether it is TYPE_PROTOTYPED.
7388 Use the passed-in language instead of current_language.
7389 (c_type_print_varspec_suffix): Use current_language instead
7390 of assuming language_c.
7391 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7392 any return type specifier from the physname.
7394 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7396 * tui/tui-interp.c (tui_is_toplevel): New.
7398 (tui_allowed_p): New.
7399 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7401 * tui/tui.h (tui_allowed_p): Declare.
7403 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7405 * serial.h: Include winsock2.h before windows.h.
7407 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7409 * NEWS: Mention xmlRegisters= in qSupported packet.
7411 * i386-tdep.c: Include "remote.h".
7412 (_initialize_i386_tdep): Call register_remote_support_xml.
7414 * remote.c (remote_support_xml): New.
7415 (register_remote_support_xml): Likewise.
7416 (remote_query_supported_append): Likewise.
7417 (remote_query_supported): Support remote_support_xml.
7419 * remote.h (register_remote_support_xml): New.
7421 2010-03-29 Stan Shebs <stan@codesourcery.com>
7423 * tracepoint.c (trace_find_line_command): Remove dead code.
7425 * tracepoint.h (struct uploaded_string): New struct.
7426 (struct uploaded_tp): New fields for source strings.
7427 * breakpoint.c (this_utp, next_cmd): New globals.
7428 (read_uploaded_action): New function.
7429 (create_tracepoint_from_upload): Fill in more parts
7431 * tracepoint.c (encode_source_string): New function.
7432 (trace_save): Write out source strings, fix error checks.
7433 (parse_tracepoint_definition): Add source string parsing.
7434 * remote.c (PACKET_TracepointSource): New packet type.
7435 (remote_download_command_source): New function.
7436 (remote_download_tracepoint): Download source pieces also.
7437 (_initialize_remote): Add packet config command.
7439 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7442 * tracepoint.c (start_tracing): Check tracepoints before sending
7443 commands to target, don't start if all tracepoints disabled.
7445 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7447 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7449 2010-03-26 Stan Shebs <stan@codesourcery.com>
7451 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7453 2010-03-26 Tom Tromey <tromey@redhat.com>
7455 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7457 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7459 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7460 (skip_prologue_sal): Remove local definition.
7461 (resolve_sal_pc): Remove now unnecessary code.
7462 * linespec.c (minsym_found): Call skip_prologue_sal.
7463 * symtab.c (find_function_start_pc): Remove.
7464 (find_function_start_sal): Extract prologue skipping into ...
7465 (skip_prologue_sal): ... this new function. Handle code both
7466 with and without debug info. Respect SAL's explicit_pc and
7467 explicit_line flags. Inline old find_function_start_pc.
7468 * symtab.h (find_function_start_pc): Remove.
7469 (skip_prologue_sal): Add prototype.
7471 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7473 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7474 for DW_TAG_imported_module children.
7476 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7478 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7479 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7480 * completer.c (add_struct_fields): Fix inverted logic.
7482 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7484 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7486 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7488 * tracepoint.c (current_trace_status): Don't make sure error_desc
7490 (parse_trace_status): Release a previous error_desc string, and
7491 set it to NULL by default. If stop reason is tracepoint_error,
7492 make sure error_desc is not left NULL.
7494 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7496 * tracepoint.c (trace_save): Remove X from tracepoint error
7499 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7501 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7502 the terror description. Don't expect an X prefix.
7504 2010-03-25 Stan Shebs <stan@codesourcery.com>
7506 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7507 (struct trace_status): New field error_desc.
7508 * tracepoint.c (stop_reason_names): Add terror.
7509 (current_trace_status): Ensure non-NULL error description.
7510 (trace_status_command): Add error report.
7511 (trace_status_mi): Ditto.
7512 (trace_save): Add special case for error description.
7513 (parse_trace_status): Add case for errors.
7515 2010-03-25 Keith Seitz <keiths@redhat.com>
7517 * dwarf2read.c (read_subroutine_type): If the compilation unit
7518 language is Java, mark any formal parameter named "this" as
7519 artificial (GCC/43521).
7520 (dwarf2_name): Add special handling for Java constructors.
7522 2010-03-25 Tom Tromey <tromey@redhat.com>
7524 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7525 * infrun.c (handle_inferior_event): Change initialization of
7527 (handle_inferior_event): Change assignment to stop_stack_dummy.
7528 (normal_stop): Update use of stop_stack_dummy.
7529 (struct inferior_status) <stop_stack_dummy>: Change type.
7530 * inferior.h (stop_stack_dummy): Update.
7531 * infcmd.c (stop_stack_dummy): Change type.
7532 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7534 (call_function_by_hand): Call set_std_terminate_breakpoint.
7535 Rewrite std::terminate handling.
7536 * breakpoint.h (enum bptype) <bp_std_terminate,
7537 bp_std_terminate_master>: New.
7538 (enum stop_stack_kind): New.
7539 (struct bpstat_what) <call_dummy>: Change type.
7540 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7542 * breakpoint.c (create_std_terminate_master_breakpoint): New
7544 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7545 Call create_std_terminate_master_breakpoint.
7546 (print_it_typical): Handle new breakpoint kinds.
7547 (bpstat_stop_status): Handle bp_std_terminate_master.
7548 (bpstat_what): Correctly set call_dummy field. Handle
7549 bp_std_terminate_master and bp_std_terminate.
7550 (print_one_breakpoint_location): Update.
7551 (allocate_bp_location): Update.
7552 (set_std_terminate_breakpoint): New function.
7553 (delete_std_terminate_breakpoint): Likewise.
7554 (create_thread_event_breakpoint): Update.
7555 (delete_command): Update.
7556 (breakpoint_re_set_one): Update.
7557 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7559 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7561 * symfile.c (build_section_addr_info_from_bfd): New.
7562 (build_section_addr_info_from_objfile): Base it on
7563 build_section_addr_info_from_bfd.
7564 (addrs_section_compar, addrs_section_sort): New.
7565 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7566 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7567 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7569 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7571 * elfread.c (find_separate_debug_file_by_buildid):
7572 Remove unused local variable.
7574 2010-03-24 Tom Tromey <tromey@redhat.com>
7576 PR breakpoints/9352:
7577 * NEWS: Mention changes to `commands' and `rbreak'.
7578 * symtab.c (do_end_rbreak_breakpoints): New function.
7579 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7580 end_rbreak_breakpoints.
7581 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7582 (set_breakpoint_count): Likewise. Clear last_was_multi.
7583 (multi_start, multi_end, last_was_multi): New globals.
7584 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7586 (struct commands_info): New
7587 (do_map_commands_command): New function.
7588 (commands_command_1): New function.
7589 (commands_command): Use it.
7590 (commands_from_control_command): Likewise.
7591 (do_delete_breakpoint): New function.
7592 (delete_command): Use it.
7593 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7594 (do_map_disable_breakpoint): New function.
7595 (disable_command): Use it.
7596 (do_map_enable_breakpoint): New function.
7597 (enable_command): Use it.
7598 (enable_once_breakpoint): Add argument.
7599 (enable_once_command): Update.
7600 (enable_delete_breakpoint): Add argument.
7601 (enable_delete_command): Update.
7602 (break_command_really): Set last_was_multi when needed.
7603 (check_tracepoint_command): Fix formatting.
7604 (validate_commands_for_breakpoint): New function.
7605 (breakpoint_set_commands): Use it.
7606 (tracepoint_save_command): Update.
7607 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7610 2010-03-24 Tom Tromey <tromey@redhat.com>
7612 * breakpoint.h (struct counted_command_line): New struct.
7613 (struct breakpoint) <commands>: Change type.
7614 (struct bpstats) <commands>: Change type.
7615 <commands_left>: New field.
7616 * breakpoint.c (alloc_counted_command_line): New function.
7617 (incref_counted_command_line): Likewise.
7618 (decref_counted_command_line): Likewise.
7619 (do_cleanup_counted_command_line): Likewise.
7620 (make_cleanup_decref_counted_command_line): Likewise.
7621 (breakpoint_set_commands): Use decref_counted_command_line and
7622 alloc_counted_command_line.
7623 (commands_command): Don't error if breakpoint commands are
7625 (commands_from_control_command): Likewise.
7626 (bpstat_free): Update.
7627 (bpstat_copy): Likewise.
7628 (bpstat_clear_actions): Likewise.
7629 (bpstat_do_actions_1): Likewise.
7630 (bpstat_stop_status): Likewise.
7631 (print_one_breakpoint_location): Likewise.
7632 (delete_breakpoint): Likewise.
7633 (bpstat_alloc): Initialize new field.
7634 (tracepoint_save_command): Update.
7635 * tracepoint.c (encode_actions): Update.
7636 (trace_dump_command): Update.
7638 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7640 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7641 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7642 (read_structure_type): For RealView, set TYPE_STUB on structures with
7643 no byte size and no children.
7644 (read_subroutine_type): Mark functions as prototyped by default.
7645 * symtab.c (producer_is_realview): New function.
7646 * symtab.h (expand_line_sal): Fix declaration formatting.
7647 (producer_is_realview): Declare.
7649 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7651 * arm-tdep.c (skip_prologue_function): New function.
7652 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7653 (thumb_analyze_prologue): Document return value. Recognize more
7654 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7656 (arm_skip_prologue): Remove call dummy check. Check the prologue
7657 for non-GNU compilers.
7658 (arm_instruction_changes_pc): New function.
7659 (arm_analyze_prologue): New function, broken out from
7660 arm_scan_prologue. Recognize more ARM instructions and skippable
7661 calls. Update comments. Handle NULL cache. Return the address
7662 of the first unrecognized instruction. Do not skip past other
7663 instructions which change control flow. Add debug output.
7664 (arm_scan_prologue): Use arm_analyze_prologue.
7665 (ARM_PC_32): Delete.
7666 (shifted_reg_val): Simplify ARM_PC_32 check.
7668 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7670 * tracepoint.c (tvariables_info_1): Actually compute
7671 the number of rows in the result.
7673 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7675 * remote.c (crc32): Constify `buf' parameter.
7676 (remote_verify_memory): New, abstracted out from...
7677 (compare_sections_command): ... this. Remove hardcoded target
7679 (init_remote_ops): Install remote_verify_memory.
7680 * target.c (target_verify_memory): New.
7681 * target.h (struct target_ops) <to_verify_memory>: New field.
7682 (target_verify_memory): Declare.
7684 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7686 Implement -trace-save.
7688 * mi-cmds.h (mi_cmds_trace_save): Declare.
7689 * mi-cmds.c (mi_cmds): Register -trace-save.
7690 * mi/mi-main.c (mi_cmd_trace_save): New.
7691 * remote.c (remote_save_trace_data): Take const parameter.
7692 * target.h (struct target_ops::to_save_trace_data): Take
7694 * target.c (update_current_target): Adjust to the above.
7695 * tracepoint.c (trave_save): New, extracted from
7696 (trace_save_command): ...this.
7697 (tfile_trace_find): Remove message that is unnecessary now
7698 that 'tfind' reports found frame.
7699 * tracepoint.h (trace_save): Declare.
7701 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7703 Implement -trace-find.
7705 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7706 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7707 * mi/mi-main.c (mi_cmd_trace_find): New.
7708 * target.h (struct target_ops): Document to_trace_find.
7709 * tracepoint.h (tfind_1): Declare.
7710 * tracepoint.c (finish_tfind_command): Rename to...
7712 * remote.c (remote_trace_find): Return -1 if target say
7713 there's no frame. Improve error diagnostics.
7715 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7717 -trace-define-variable and -trace-list-variables.
7719 * tracepoint.c (create_trace_state_variable): Make
7720 private copy of name, as opposed to assuming the
7721 pointer lives forever.
7722 (tvariables_info_1): New.
7723 (tvariables_info): Use the above.
7724 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7726 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7727 and -trace-list-variables.
7728 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7729 (mi_cmd_trace_list_variables): New.
7730 * mi/mi-main.c (mi_cmd_trace_define_variable)
7731 (mi_cmd_trace_list_variables): New.
7733 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7735 Implement -break-passcount.
7737 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7738 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7739 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7741 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7743 -trace-start/-trace-end/-trace-status.
7745 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7747 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7748 (mi_cmd_trace_stop): Declare.
7749 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7750 (mi_cmd_trace_stop): New.
7751 * tracepoint.c (start_tracing): New, extracted from...
7752 (trace_start_command): ...this.
7753 (trace_status_mi): New.
7754 * tracepoint.h (struct trace_status): Document
7755 stopping_tracepoint.
7756 (start_tracing, stop_tracing, trace_status_mi): Declare.
7758 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7760 Implement creating tracepoints with -break-insert.
7762 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7763 to mean that tracepoint should be created.
7765 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7767 * breakpoint.c (check_no_tracepoint_commands): Use
7768 current spelling of 'teval'.
7770 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7772 Unify actions and commands
7774 * defs.h (read_command_lines, read_command_lines_1): New
7775 parameters validator and closure.
7776 * tracepoint.h (struct action_line): Remove.
7777 * breakpoint.h (struct breakpoint): Remove the 'actions'
7779 * defs.h (enum command_control_type): New value
7780 while_stepping_control.
7781 (struct command_line): Add comments.
7782 * breakpoint.c (breakoint_is_tracepoint): New.
7783 (breakpoint_set_commands): For tracepoints,
7784 verify the commands are permissible.
7785 (check_tracepoint_commands): New.
7786 (commands_command): Require that each new line is validated using
7787 check_tracepoint_command, if we set commands for a tracepoint.
7788 (create_tracepoint_from_upload): Likewise.
7789 (print_one_breakpoint_location): Remove the code to print
7790 actions specifically.
7791 (tracepoint_save_command): Relay to print_command_lines.
7792 * cli/cli-script.c (process_next_line): New parameters validator
7793 and closure. Handle 'while-stepping'. Call validator if not null.
7794 (read_command_lines, read_command_lines1): Likewise.
7795 (recurse_read_control_structure): New parameters validator and
7796 closure. Handle while_stepping_control.
7797 (print_command_lines): Handle while-stepping.
7798 (get_command_line, define_command, document_command): Adjust.
7799 * remote.c (remote_download_tracepoint): Adjust.
7800 * tracepoint.c (make_cleanup_free_actions, read_actions)
7801 (free_actions, do_free_actions_cleanup): Remove.
7802 (trace_actions_command): Use read_command_lines.
7803 (validate_actionline): Use error in one place.
7804 (encode_actions_1): New, extracted from...
7805 (encode_actions): ...this. Also use cleanups for exception
7807 (trace_dump_command): Adjust.
7808 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7811 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7813 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7815 2010-03-22 Stan Shebs <stan@codesourcery.com>
7817 * value.c (value_static_field): Be lazy about the field's value.
7819 2010-03-22 Reid Kleckner <reid@kleckner.net>
7822 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7824 (disable_breakpoints_in_shlibs): Likewise.
7826 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7828 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7829 GCC 4.1 debug info generation (GCC PR c++/28460).
7830 (determine_prefix): Likewise.
7832 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7834 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7836 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7838 2010-03-19 Stan Shebs <stan@codesourcery.com>
7840 * ax-gdb.c (gen_fetch): Handle bool.
7841 (gen_usual_unary): Ditto.
7843 (gen_equal): New function.
7844 (gen_less): New function.
7845 (gen_expr_binop_rest): Call them, also return integer type from
7849 2010-03-19 Tom Tromey <tromey@redhat.com>
7851 * jv-lang.c (jv_dynamics_objfile_data_key)
7852 (jv_type_objfile_data_key): New globals.
7853 (class_symtab): Move earlier.
7854 (jv_per_objfile_free): New function.
7855 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7857 Remove ancient #if 1.
7858 (add_class_symbol): Remove redundant declaration.
7859 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7860 (java_link_class_type): Mark as static. Update.
7861 (jv_clear_object_type): New function.
7862 (set_java_object_type): Likewise.
7863 (get_java_object_type): Use set_java_object_type.
7864 (is_object_type): Likewise.
7865 (_initialize_java_language): Register new objfile keys.
7866 (get_java_class_symtab): Add 'gdbarch' parameter.
7867 (add_class_symtab_symbol): Update.
7868 (type_from_class): Update.
7870 2010-03-19 Stan Shebs <stan@codesourcery.com>
7872 * ax-general.c (ax_const_l): Fix a sizing bug.
7874 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7878 2010-03-18 Stan Shebs <stan@codesourcery.com>
7879 Pedro Alves <pedro@codesourcery.com>
7881 * target.h (struct target_ops): New method
7882 to_set_circular_trace_buffer.
7883 (target_set_circular_trace_buffer): New macro.
7884 * target.c (update_current_target): Add
7885 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7887 * remote.c (remote_set_circular_trace_buffer): New function.
7888 (init_remote_ops): Add it to vector.
7889 * tracepoint.h (struct trace_status): New field traceframes_created,
7890 change buffer_size and buffer_free to int.
7891 * tracepoint.c (circular_trace_buffer): New global.
7892 (start_tracing): Send values of disconnected tracing and circular
7893 trace buffer settings.
7894 (set_circular_trace_buffer): New function.
7895 (parse_trace_state): Handle total space and frames created.
7896 (trace_status_command): Display total space and total frames
7898 (trace_save): Write out new status values.
7899 (parse_trace_status): Set traceframe_count, traceframes_created,
7900 buffer_free and buffer_size to -1 by default.
7901 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7902 * NEWS: Mention the circular trace buffer option.
7904 2010-03-18 Tom Tromey <tromey@redhat.com>
7906 * infcmd.c (finish_command_continuation): Wrap print_return_value
7909 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7911 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7912 DIE has a name before creating the associated partial symbol.
7913 (read_func_scope): Emit a complaint if the subprogram does not
7914 have a name or when we can't extract the subprogram PC bounds.
7916 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7918 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7919 instead of selected frame architecture.
7921 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7923 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7924 a valid selected thread, and that it is not running.
7925 (advance_command): Ditto.
7926 (finish_command): Ditto.
7928 2010-03-17 Stan Shebs <stan@codesourcery.com>
7930 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7932 * infcall.c: Include tracepoint.h.
7933 (call_function_by_hand): Disallow calls in tfind mode.
7934 * infcmd.c: Include tracepoint.h.
7935 (ensure_not_tfind_mode): New function.
7936 (continue_1): Call it.
7938 (jump_command): Ditto.
7939 (signal_command): Ditto.
7940 (advance_command): Ditto.
7941 (until_command): Ditto.
7942 (finish_command): Ditto.
7943 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7945 * ax-gdb.h (struct axs_value): New field optimized_out.
7946 (gen_trace_for_var): Add gdbarch argument.
7947 * ax-gdb.c (gen_trace_static_fields): New function.
7948 (gen_traced_pop): Call it, add gdbarch argument.
7949 (gen_trace_for_expr): Update call to it.
7950 (gen_trace_for_var): Ditto, and report optimized-out variables.
7951 (gen_struct_ref_recursive): Check for optimized-out value.
7952 (gen_struct_elt_for_reference): Ditto.
7953 (gen_static_field): Pass gdbarch instead of expression, assume
7954 optimization if field not found.
7955 (gen_var_ref): Set the optimized_out flag.
7956 (gen_expr): Error on optimized-out variable.
7957 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7958 expressions, skip optimized-out variables with computed locations.
7959 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7960 erroring out if location expression missing.
7961 (loclist_tracepoint_var_ref): Don't error out here.
7963 2010-03-17 Tom Tromey <tromey@redhat.com>
7965 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7966 DWARF data is available.
7968 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7970 * symfile.c (generic_load): Reset breakpoints after loading.
7972 2010-03-17 Tom Tromey <tromey@redhat.com>
7974 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7976 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7978 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7979 create_breakpoint call, adjust the parameters.
7981 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7982 Chandru <chandru@in.ibm.com>
7984 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7985 * valarith.c (value_subscripted_rvalue): Suppress error if
7986 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7988 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7990 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7992 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7994 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7995 before doing the associated thread switch.
7997 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7999 * MAINTAINERS: Update my email address.
8001 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8003 Simplify MI breakpoint setting.
8005 * breakpoint.c (break_command_really): Make nonstatic and
8007 (create_breakpoint): ...this. Rename prior function by this name
8009 (create_breakpoint_sal): ...this.
8010 (create_breakpoints): Rename to...
8011 (create_breakpoints_sal): ...this.
8012 (set_breakpoint): Remove.
8013 * breakpoint.h: Adjust to above changes.
8014 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8016 2010-03-15 Stan Shebs <stan@codesourcery.com>
8018 * ax-gdb.c: Include cp-support.h.
8019 (find_field): Remove.
8020 (gen_primitive_field): New function.
8021 (gen_struct_ref_recursive): New function.
8022 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8024 (gen_static_field): New function.
8025 (gen_struct_elt_for_reference): New.
8026 (gen_namespace_elt): New.
8027 (gen_maybe_namespace_elt): New.
8028 (gen_aggregate_elt_ref): New.
8029 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8031 2010-03-15 Tom Tromey <tromey@redhat.com>
8033 * dwarf2read.c (die_needs_namespace): Also return 0 for
8036 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8039 * cp-support.h: Added char *declaration element to using_direct
8041 (cp_add_using): Added char *declaration argument.
8042 (cp_add_using_directive): Ditto.
8043 (cp_lookup_symbol_imports): made extern.
8044 * cp-namespace.c: Updated with the above changes.
8045 * dwarf2read.c (read_import_statement): Ditto.
8046 (read_namespace): Ditto.
8047 (read_import_statement): Support import declarations.
8048 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8050 Added support for 'declaration_only' search.
8051 (cp_lookup_symbol_namespace): Attempt to search for the name as
8052 is before consideration of imports.
8053 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8054 search at every block level search.
8055 Now takes language argument.
8056 (lookup_symbol_aux): Updated.
8058 2010-03-15 Tom Tromey <tromey@redhat.com>
8060 * c-exp.y (name_not_typename): Add 'operator' clause.
8062 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8064 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8065 * configure: Regenerate.
8067 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8069 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8070 and ".sdynbss". Update the comment.
8072 2010-03-15 Jie Zhang <jie@codesourcery.com>
8074 * MAINTAINERS: Update my email address.
8076 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8078 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8080 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8082 * charset.c [USE_WIN32API]: Include <windows.h>.
8083 (_initialize_charset): Correct type of w32_host_default_charset.
8085 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8087 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8089 2010-03-12 Tom Tromey <tromey@redhat.com>
8092 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8093 in a lexical block does not need a namespace.
8094 (new_symbol) <DW_TAG_variable>: Put extern variables on
8095 list_in_scope in all cases.
8097 2010-03-12 Stan Shebs <stan@codesourcery.com>
8099 * ax-gdb.c (gen_expr): Add shift expressions.
8100 (gen_expr_binop_rest): Ditto.
8102 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8104 * buildsym.c (finish_block): Reset using_directives pointer
8105 after block initialization.
8107 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8109 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8110 * i386-tdep.c (i386_word_names): Likewise.
8112 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8114 * target.c (memory_xfer_partial): Don't use the stack cache if
8115 inspecting trace frames.
8116 * tracepoint.c (finish_tfind_command): Invalidate the target
8119 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8121 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8122 for the PIC displacement, print also the displacement value.
8123 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8125 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8127 * remote-mips.c (close_ports, mips_initialize_cleanups)
8128 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8129 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8130 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8131 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8132 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8133 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8134 comments describing each of these functions.
8135 (mips_enter_debug, mips_exit_debug, common_open)
8136 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8137 blank line after the comment describing the function.
8139 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8141 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8142 parameter displacementp. Update comment.
8143 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8144 element exists. Return if svr4_exec_displacement was not successful.
8147 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8148 Daniel Jacobowitz <dan@codesourcery.com>
8150 * solib-svr4.c (read_program_header): Support type == -1 to read
8151 all program headers.
8152 (read_program_headers_from_bfd): New function.
8153 (svr4_static_exec_displacement): Remove and move the comment ...
8154 (svr4_exec_displacement): ... here. Remove variable found. New
8155 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8156 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8157 targets using read_program_headers_from_bfd. Remove the call of
8158 svr4_static_exec_displacement.
8160 2010-03-10 Tom Tromey <tromey@redhat.com>
8162 * dwarf2read.c (struct pubnames_header): Remove.
8163 (_PUBNAMES_HEADER): Remove.
8164 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8165 (struct aranges_header): Remove.
8166 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8167 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8168 (PUBNAMES_SECTION): Remove.
8169 (ARANGES_SECTION): Remove.
8170 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8171 (dwarf2_build_psymtabs): Remove dead code.
8172 (dwarf2_build_psymtabs_easy): Remove.
8174 2010-03-10 Tom Tromey <tromey@redhat.com>
8176 * elfread.c (elf_symfile_read): Don't call
8177 dwarf2_build_frame_info.
8178 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8179 (struct dwarf2_per_objfile) <objfile>: New field.
8180 (dwarf2_has_info): Now idempotent. Set objfile field.
8181 (dwarf2_read_section): Check and set readin field. Call
8183 (dwarf2_build_psymtabs): Don't read all sections.
8184 (read_type_comp_unit_head): Read types section.
8185 (create_debug_types_hash_table): Likewise.
8186 (init_cu_die_reader): Add asserts.
8187 (process_type_comp_unit): Add assert.
8188 (dwarf2_build_psymtabs_hard): Read info section.
8189 (load_partial_comp_unit): Add assert.
8190 (create_all_comp_units): Read info section.
8191 (load_full_comp_unit): Likewise.
8192 (dwarf2_ranges_read): Read ranges section.
8193 (dwarf2_record_block_ranges): Add assert.
8194 (dwarf2_read_abbrevs): Read abbrev section.
8195 (read_indirect_string): Read str section.
8196 (dwarf_decode_line_header): Read line section.
8197 (read_signatured_type_at_offset): Read types section.
8198 (dwarf_decode_macros): Read macinfo section.
8199 (dwarf2_symbol_mark_computed): Read loc section.
8200 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8201 dwarf2_build_frame_info.
8202 (dwarf2_build_frame_info): Unconditionally set
8203 dwarf2_frame_objfile_data on the objfile.
8204 * configure.ac: Check for posix_madvise.
8205 * config.in, configure: Rebuild.
8207 2010-03-10 Tom Tromey <tromey@redhat.com>
8209 * xcoffread.c (xcoff_start_psymtab): Update.
8210 (xcoff_end_psymtab): Update.
8211 * psymtab.c (allocate_psymtab): Remove dead code.
8212 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8214 * mdebugread.c (parse_partial_symbols): Update.
8215 (new_psymtab): Likewise.
8216 * dwarf2read.c (process_psymtab_comp_unit): Update.
8217 (psymtab_to_symtab_1): Update.
8218 * dbxread.c (start_psymtab): Update.
8219 (end_psymtab): Likewise.
8221 2010-03-10 Tom Tromey <tromey@redhat.com>
8223 * xcoffread.c: Include psymtab.h.
8224 (xcoff_sym_fns): Update.
8225 * symtab.h (struct partial_symbol): Remove.
8226 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8227 (struct partial_symtab): Remove.
8228 (PSYMTAB_TO_SYMTAB): Remove.
8229 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8230 (find_pc_sect_psymtab): Remove.
8231 (find_pc_sect_symtab_via_partial): Declare.
8232 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8233 (find_main_psymtab): Remove.
8234 (find_main_filename): Declare.
8235 (fixup_psymbol_section): Remove.
8236 (fixup_section): Declare.
8237 * symtab.c: Include psymtab.h.
8238 (lookup_symtab): Use lookup_symtab method.
8239 (lookup_partial_symtab): Remove.
8240 (find_pc_sect_psymtab_closer): Remove.
8241 (find_pc_sect_psymtab): Remove.
8242 (find_pc_sect_symtab_via_partial): New function.
8243 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8244 (fixup_section): No longer static.
8245 (fixup_psymbol_section): Remove.
8246 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8247 (lookup_global_symbol_from_objfile): Likewise.
8248 (lookup_symbol_aux_psymtabs): Remove.
8249 (lookup_symbol_aux_quick): New function.
8250 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8251 (lookup_partial_symbol): Remove.
8252 (basic_lookup_transparent_type_quick): New function.
8253 (basic_lookup_transparent_type): Use it.
8254 (find_main_psymtab): Remove.
8255 (find_main_filename): New function.
8256 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8257 (find_line_symtab): Use expand_symtabs_with_filename method.
8258 (output_partial_symbol_filename): New function.
8259 (sources_info): Use map_partial_symbol_filenames.
8260 (struct search_symbols_data): New type.
8261 (search_symbols_file_matches): New function.
8262 (search_symbols_name_matches): Likewise.
8263 (search_symbols): Use expand_symtabs_matching method.
8264 (struct add_name_data): Rename from add_macro_name_data.
8265 (add_macro_name): Update.
8266 (add_partial_symbol_name): New function.
8267 (default_make_symbol_completion_list): Use
8268 map_partial_symbol_names.
8269 (struct add_partial_symbol_name): New type.
8270 (maybe_add_partial_symtab_filename): New function.
8271 (make_source_files_completion_list): Use
8272 map_partial_symbol_filenames.
8273 (expand_line_sal): Use expand_symtabs_with_filename method.
8274 * symmisc.c: Include psymtab.h.
8275 (print_objfile_statistics): Use print_stats method.
8276 (dump_objfile): Use dump method.
8277 (dump_psymtab, maintenance_print_psymbols)
8278 (maintenance_info_psymtabs, maintenance_check_symtabs)
8279 (extend_psymbol_list): Remove.
8280 * symfile.h (struct quick_symbol_functions): New struct.
8281 (struct sym_fns) <qf>: New field.
8282 (sort_pst_symbols): Remove.
8283 (increment_reading_symtab): Declare.
8284 * symfile.c: Include psymtab.h.
8285 (compare_psymbols, sort_pst_symbols): Remove.
8286 (psymtab_to_symtab): Remove.
8287 (increment_reading_symtab): New function.
8288 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8290 (set_initial_language): Use find_main_filename.
8291 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8292 (free_named_symtabs): Remove unused code.
8293 (start_psymtab_common, add_psymbol_to_bcache)
8294 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8296 * stack.c: Include psymtab.h, symfile.h.
8297 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8298 * source.h (psymtab_to_fullname): Don't declare.
8299 * source.c: Include psymtab.h.
8300 (select_source_symtab): Use find_last_source_symtab method.
8301 (forget_cached_source_info): Use forget_cached_source_info
8303 (find_and_open_source): No longer static.
8304 (psymtab_to_fullname): Remove.
8305 * somread.c: Include psymtab.h.
8306 (som_sym_fns): Update.
8307 * psympriv.h: New file.
8308 * psymtab.h: New file.
8309 * psymtab.c: New file.
8310 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8311 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8312 * objfiles.c: Include psymtab.h.
8313 (objfile_relocate1): Use relocate method.
8314 (objfile_has_partial_symbols): Use has_symbols method.
8315 * mipsread.c: Include psymtab.h.
8316 (ecoff_sym_fns): Update.
8317 * mi/mi-cmd-file.c: Include psymtab.h.
8318 (print_partial_file_name): New function.
8319 (mi_cmd_file_list_exec_source_files): Use
8320 map_partial_symbol_filenames.
8321 * mdebugread.c: Include psympriv.h.
8322 * machoread.c: Include psympriv.h.
8323 (macho_sym_fns): Update.
8324 * m2-exp.y (yylex): Use lookup_symtab.
8325 * elfread.c: Include psympriv.h.
8326 (elf_sym_fns): Update.
8327 * dwarf2read.c: Include psympriv.h.
8328 * dbxread.c: Include psympriv.h.
8329 (aout_sym_fns): Update.
8330 * cp-support.c: Include psymtab.h.
8331 (read_in_psymtabs): Remove.
8332 (make_symbol_overload_list_qualified): Use
8333 expand_symtabs_for_function method.
8334 * coffread.c: Include psympriv.h.
8335 (coff_sym_fns): Update.
8336 * blockframe.c: Include psymtab.h.
8337 (find_pc_partial_function): Use find_pc_sect_symtab method.
8338 * ada-lang.h (ada_update_initial_language): Update.
8339 * ada-lang.c: Include psymtab.h.
8340 (ada_update_initial_language): Remove 'main_pst' argument.
8341 (ada_lookup_partial_symbol): Remove.
8342 (struct ada_psym_data): New type.
8343 (ada_add_psyms): New function.
8344 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8345 (struct add_partial_datum): New type.
8346 (ada_add_partial_symbol_completions): New function.
8347 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8348 (ada_exception_support_info_sniffer): Update.
8349 * Makefile.in (SFILES): Add psymtab.c.
8350 (COMMON_OBS): Add psymtab.o.
8351 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8353 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8355 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8357 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8360 * cp-namespace.c (cp_add_using): Deleted.
8361 (cp_add_using_directive): Use obstack allocations.
8362 Merged the function cp_add_using into this one.
8363 Added 'struct obstack *' argument.
8364 (cp_scan_for_anonymous_namespaces): Updated.
8365 * cp-support.h: Updated.
8366 * dwarf2read.c (read_import_statement): Updated.
8367 (read_namespace): Updated.
8369 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8371 * windows-nat.c (cygwin_conv_path): Remove old macro.
8373 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8375 * breakpoint.c (condition_command): Handle watchpoint conditions.
8376 (is_hardware_watchpoint): Add comment.
8377 (is_watchpoint): New.
8378 (update_watchpoint): Don't reparse the watchpoint's condition
8381 (watchpoint_check): Use it.
8382 (bpstat_check_watchpoint): Handle it.
8383 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8384 conditions in a frame where it makes sense.
8385 (watch_command_1): Store the innermost block of the condition
8387 (delete_breakpoint): Delete the watchpoint condition expression.
8388 * breakpoint.h (struct bp_location) <cond>: Update comment.
8389 (struct breakpoint): New field `cond_exp_valid_block'.
8391 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8393 Adjust handling of Ada DIEs after dwarf2_physname patch.
8394 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8396 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8397 Pierre Muller <muller@ics.u-strasbg.fr>
8399 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8400 from/to posix/win32.
8401 (windows_make_so): Use non-Cygwin 1.7 specific function.
8402 (windows_create_inferior): Make sure that cygallargs points to
8403 original args in non Cygwin 1.7. case.
8405 2010-03-09 Michael Snyder <msnyder@vmware.com>
8407 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8408 after target_read_memory to get host byte order.
8409 (i386_process_record): Ditto.
8411 2010-03-09 Keith Seitz <keiths@redhat.com>
8413 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8414 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8415 print out const or volatile qualifiers, too.
8416 (c_type_print_args): Add parameters show_artificial and language.
8417 Skip artificial parameters when requested.
8418 Use the appropriate language printer.
8419 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8420 parameters and pass language_c.
8421 * dwarf2read.c (die_list): New file global.
8422 (struct partial_die_info): Update comments for name field.
8423 (pdi_needs_namespace): Renamed to ...
8424 (die_needs_namespace): ... this. Rewrite.
8425 (dwarf2_linkage_name): Remove.
8426 (add_partial_symbol): Do not predicate the call to
8427 partial_die_full_name based on pdi_needs_namespace.
8428 Remove call to cp_check_possible_namespace_symbols and associated
8430 (guess_structure_name): Do not inspect child subprogram DIEs.
8431 (dwarf2_fullname): Update comments.
8432 Use die_needs_namespace to assist in computing the name.
8433 (read_func_scope): Use dwarf2_name to get the DIE's name.
8434 Use dwarf2_physname to get the "linkage name" of the DIE.
8435 (dwarf2_add_member_field): Use dwarf2_physname instead of
8436 dwarf2_linkage_name.
8437 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8438 (determine_class): Remove.
8439 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8441 (new_symbol): Unconditionally call dwarf2_name.
8442 Compute the "linkage name" using dwarf2_physname.
8443 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8444 When determining to scan for anonymous C++ namespaces, ignore
8446 (dwarf2_physname): New function.
8447 (dwarf2_full_name): Move content to new function and call
8449 (dwarf2_compute_name): "New" function.
8450 (_initialize_dwarf2_read): Initialize die_list.
8451 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8453 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8454 without a demangled name.
8455 Print out type information for non-virtual methods.
8456 * linespec.c (decode_line_1): Force ANY string using "::" (or
8457 "." for java) to use decode_compound, and clean up any stray quoting.
8458 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8459 (decode_compound): Stop consuming at an open parenthesis.
8460 Keep template parameters.
8461 Keep any overload information.
8462 Keep keywords like "const".
8463 Remove paren_pointer.
8464 Move is_quoted check from set_flags to here.
8465 Remove #if 0 code from 2000. Ten years is long enough.
8466 (find_method): Before comparing symbol names, canonicalize the string
8468 If a specific overload is requested, find it. Otherwise throw an error.
8469 (find_method_overload_end): New function.
8470 (set_flags): Remove.
8471 (decode_compound): Assume that parentheses are matched.
8473 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8475 * linespec.c (decode_line_1): Keep important keywords like
8476 "const" and "volatile".
8477 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8478 * typeprint.h (c_type_print_args): Add declaration.
8479 * ui-file.c (do_ui_file_obsavestring): New function.
8480 (ui_file_obsavestring): New function.
8481 * ui-file.h (ui_file_obsavestring): Add declaration.
8482 * valops.c (find_overload_match): Resolve the object to
8484 If the object is a data member, search the object for the member
8485 and return with staticp set.
8486 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8487 Do not attempt to extract a function name from non-function types.
8488 If the extracted function name and the original name are the same,
8489 we don't have a C++ method.
8491 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8492 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8494 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8495 and arguments from symbol lookups.
8496 * ax-gdb.c (gen_expr): Likewise.
8497 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8498 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8499 lookup_possible_namespace_symbol): Likewise.
8500 * cp-support.c (read_in_psymtabs): Likewise.
8501 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8502 * language.h (la_lookup_symbol_nonlocal): Likewise.
8503 * scm-valprint.c (scm_inferior_print): Likewise.
8504 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8505 * solib-svr.c (elf_lookup_lib): Likewise.
8506 * solib.c (show_auto_solib_add): Likewise.
8507 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8508 * symmisc.c (maintenance_check_symtabs): Likewise.
8509 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8510 lookup_symbol_aux_local, lookup_symbol_aux_block,
8511 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8512 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8513 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8514 basic_lookup_transparent_type, find_main_psymtab,
8515 lookup_block_symbol): Likewise.
8516 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8517 lookup_symbol_global, lookup_symbol_aux_block,
8518 lookup_symbol_partial_symbol, lookup_block_symbol,
8519 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8521 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8523 * python/python-internal.h: Include symtab.h.
8525 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8526 Pierre Muller <muller@ics.u-strasbg.fr>
8528 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8529 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8532 2010-03-08 Tom Tromey <tromey@redhat.com>
8534 * breakpoint.c (breakpoint_1): Add "QUIT".
8536 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8537 Pedro Alves <pedro@codesourcery.com>
8539 * solib.c (solib_find): Replace extension if
8540 solib_symbols_extension is set in the target gdbarch.
8541 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8542 solib_symbols_extension to "sym".
8543 * gdbarch.sh (solib_symbols_extension): New variable.
8544 (pstring): New function.
8545 * gdbarch.h, gdbarch.c: Regenerate.
8547 2010-03-08 Tom Tromey <tromey@redhat.com>
8551 * utils.c: Include main.h.
8552 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8553 (defaulted_query): Use default answer if `batch_flag'.
8554 * main.h (batch_flag): Declare.
8555 * main.c (batch_flag): New global.
8556 (captured_main): Remove 'batch'. Update.
8558 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8560 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8563 * remote-mips.c (rockhopper_ops): New target_ops struct.
8564 (MON_ROCKHOPPER): New mips_monitor_type.
8565 (read_hex_value): New function.
8566 (mips_request): Send 8-byte values with a 'T' packet. Read the
8567 packet argument as a string and use read_hex_value to parse it.
8568 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8569 (rockhopper_open): New function.
8570 (mips_wait): Read the PC, FP and SP fields as strings. Use
8571 read_hex_value to parse them and mips_set_register to commit them.
8572 (mips_set_register): New function.
8573 (mips_fetch_registers): Do not cast register value to "unsigned"
8574 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8575 (mips_store_registers): Use a 'T' packet to set registers when
8576 using MON_ROCKHOPPER.
8577 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8578 and expect the total to be printed before the entry address.
8579 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8581 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8583 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8584 Change return value to int. Store value fetched in location
8585 addressed by `val'. Use function's return value as success
8586 or failure indicator. Adjust all callers.
8588 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8590 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8592 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8593 Hui Zhu <teawater@gmail.com>
8595 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8596 tmp_to_stopped_data_address.
8597 (record_open): Reset tmp_to_stopped_by_watchpoint and
8598 tmp_to_stopped_data_address.
8599 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8600 to_stopped_data_address.
8602 2010-03-08 Hui Zhu <teawater@gmail.com>
8604 * i386-tdep.c (i386_process_record): Initialize regnum.
8606 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8608 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8609 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8611 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8613 Memory error when reading wrong core file.
8614 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8615 errors while reading the inferior memory, and return zero if
8616 an exception was raised.
8618 2010-03-07 Michael Snyder <msnyder@vmware.com>
8620 * record.c (record_restore): Rename tmpu8 to rectype.
8622 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8623 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8625 (i386_record_push): Rename local tmpulongest to addr.
8627 (i386_process_record): Rename local tmpulongest to addr.
8629 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8632 Rename local variable tmpu8 to opcode8 and regnum.
8634 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8636 * remote.c (remote_get_ada_task_ptid): New function.
8637 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8639 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8641 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8642 block. Define helper macros to reduce ifdefs in code.
8643 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8644 size. Call unadorned GetModuleFileNameEx rather than
8645 GetModuleFileNameEx*.
8646 (windows_make_so): Use __PMAX to denote maximum buffer size and
8647 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8649 (get_image_name): Use __PMAX to denote maximum buffer size.
8650 (handle_load_dll): Likewise.
8651 (windows_pid_to_exec_file): Likewise.
8652 (windows_create_inferior): Add many accommodations for older Cygwin and
8654 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8655 __USEWIDE conditional.
8656 (bad_GetModuleFileNameExA): Likewise.
8657 (_initialize_loadable): Just use real function names without the dyn_
8658 part since they are defined earlier.
8660 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8661 Tom Tromey <tromey@redhat.com>
8663 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8664 (parse_escape): Likewise.
8665 * python/py-utils.c (unicode_to_target_string): Update.
8666 (unicode_to_target_python_string): Update.
8667 (target_string_to_unicode): Update.
8668 * printcmd.c (printf_command): Update.
8669 * p-exp.y (yylex): Update.
8670 * objc-exp.y (yylex): Update.
8671 * mi/mi-parse.c: Include charset.h.
8672 (mi_parse_escape): New function.
8673 (mi_parse_argv): Use it.
8674 * jv-exp.y (yylex): Update.
8675 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8677 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8678 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8679 * gdbarch.c: Rebuild.
8680 * gdbarch.h: Rebuild.
8681 * defs.h (parse_escape): Update.
8682 * cli/cli-setshow.c: Include arch-utils.h.
8683 (do_setshow_command): Update.
8684 * cli/cli-cmds.c (echo_command): Update.
8685 * charset.h (target_charset, target_wide_charset): Update.
8686 * charset.c: Include arch-utils.h.
8687 (target_charset_name): Default to "auto".
8688 (target_wide_charset_name): Likewise.
8689 (show_target_charset_name): Handle "auto".
8690 (show_target_wide_charset_name): Likewise.
8691 (be_le_arch): New global.
8692 (set_be_le_names): Add 'gdbarch' argument.
8693 (validate): Likewise. Don't call set_be_le_names.
8694 (set_charset_sfunc, set_host_charset_sfunc)
8695 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8697 (target_charset): Add 'gdbarch' argument.
8698 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8699 (auto_target_charset_name): New global.
8700 (default_auto_charset, default_auto_wide_charset): New functions.
8701 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8702 for target charsets. Copy result of nl_langinfo. Use GetACP if
8704 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8705 remove 'byte_order' argument. Update.
8706 (classify_type): Likewise.
8707 (c_emit_char): Update.
8708 (c_printchar): Update.
8709 (c_printstr): Update.
8710 (c_get_string): Update.
8711 (evaluate_subexp_c): Update.
8712 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8714 * python/python.c (gdbpy_target_charset): New function.
8715 (gdbpy_target_wide_charset): Likewise.
8716 (GdbMethods): Update.
8719 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8721 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8722 off high address bits.
8724 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8726 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8727 address as UnsignedLongLong, not LongLong.
8729 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8730 Pedro Alves <pedro@codesourcery.com>
8732 * remote-mips.c (gdbthread.h): Include.
8733 (remote_mips_ptid): Declare.
8734 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8735 (common_open): Set inferior_ptid, add it as an inferior, and
8736 as a thread too. Delete FIXME comment regarding start_remote().
8737 (mips_close): Invoke generic_mourn_inferior().
8738 (mips_kill): Make sure that target_mourn_inferior is invoked.
8739 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8740 it's now invoked from mips_close().
8741 (mips_load): Don't null out inferior_ptid. Don't call
8742 clear_symtab_users().
8743 (mips_thread_alive, mips_pid_to_str): New functions.
8744 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8745 to_thread_alive and to_pid_to_str operations.
8747 2010-03-04 Tom Tromey <tromey@redhat.com>
8749 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8750 in DWARF 3 and later.
8751 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8753 2010-03-04 Keith Seitz <keiths@redhat.com>
8755 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8756 If the filename portion of the linespec was quoted, recheck the
8757 remainder for additional quoting.
8758 (locate_first_half): Skip over completer chars, too.
8760 2010-03-04 Tom Tromey <tromey@redhat.com>
8762 * printcmd.c (printf_command): Pass dummy argument to
8765 2010-03-04 Doug Evans <dje@google.com>
8767 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8770 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8772 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8774 * breakpoint.c (update_watchpoint): Create a sentinel location if
8775 the software watchpoint isn't watching any memory.
8776 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8778 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8780 * utils.c (fputs_maybe_filtered): Check if there's already a top
8781 level interpreter before dereferencing it. If there isn't one,
8782 don't paginate either.
8784 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8786 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8787 the state right when single stepping.
8788 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8789 Get the next PC along with the instruction state.
8790 (thumb_get_next_pc): Remove.
8791 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8793 2010-03-04 Hui Zhu <teawater@gmail.com>
8795 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8797 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8799 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8800 top level interpreter is MI.
8802 2010-03-03 Stan Shebs <stan@codesourcery.com>
8804 * remote.c (remote_download_tracepoint): Iterate over locations.
8805 * tracepoint.c (validate_actionline): Ditto.
8806 (encode_actions): Add location argument.
8807 (trace_dump_command): Check all locations to see if stepping
8810 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8811 Eli Zaretskii <eliz@gnu.org>
8813 * NEWS: Add X86 general purpose registers section.
8815 2010-03-03 Tom Tromey <tromey@redhat.com>
8818 * varobj.c (install_new_value): Handle case where new print_value
8821 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8824 * printcmd.c (printf_command): Print end of format string using
8827 2010-03-02 Tom Tromey <tromey@redhat.com>
8829 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8830 * defs.h (read_command_lines_1): Add missing 'void'.
8831 * cli/cli-script.c (recurse_read_control_structure): Add missing
8833 (read_next_line): Likewise.
8834 (read_command_lines_1): Likewise.
8836 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8838 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8839 store backchain as part of prologue.
8841 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8843 * progspace.c (update_address_spaces): Update inferior address spaces
8846 2010-03-02 Doug Evans <dje@google.com>
8848 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8849 lowpc,highpc args to addrmap_set_empty.
8851 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8853 * amd64-tdep.c (amd64_byte_names): New.
8854 (amd64_word_names): Likewise.
8855 (amd64_dword_names): Likewise.
8856 (amd64_pseudo_register_name): Likewise.
8857 (amd64_pseudo_register_read): Likewise.
8858 (amd64_pseudo_register_write): Likewise.
8859 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8860 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8861 set_gdbarch_pseudo_register_write and
8862 set_tdesc_pseudo_register_name. Don't call
8863 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8865 * i386-tdep.c (i386_num_mmx_regs): Removed.
8866 (i386_num_pseudo_regs): Likewise.
8867 (i386_byte_names): New.
8868 (i386_word_names): Likewise.
8869 (i386_byte_regnum_p): Likewise.
8870 (i386_word_regnum_p): Likewise.
8871 (i386_mmx_regnum_p): Updated.
8872 (i386_pseudo_register_name): Make it global. Handle byte and
8873 word pseudo-registers.
8874 (i386_pseudo_register_read): Likewise.
8875 (i386_pseudo_register_write): Likewise.
8876 (i386_pseudo_register_type): Handle byte, word and dword
8878 (i386_register_reggroup_p): Don't include pseudo
8879 registers, except for MXX, in any register groups. Don't
8880 include pseudo byte, word, dword registers in general_reggroup.
8881 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8882 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8883 pseudo-registers after word pseudo-registers. Call
8884 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8886 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8887 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8889 (i386_byte_regnum_p): New.
8890 (i386_word_regnum_p): Likewise.
8891 (i386_dword_regnum_p): Likewise.
8892 (i386_pseudo_register_name): Likewise.
8893 (i386_pseudo_register_read): Likewise.
8894 (i386_pseudo_register_write): Likewise.
8896 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8898 * target-descriptions.c (tdesc_type): Remove
8899 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8900 (tdesc_predefined_types): Likewise.
8901 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8902 if flag name is empty.
8903 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8905 * features/i386/32bit-core.xml: Define i386_eflags.
8906 * features/i386/64bit-core.xml: Likewise.
8908 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8909 * features/i386/64bit-sse.xml: Likewise.
8911 * features/i386/amd64-linux.c: Regenerated.
8912 * features/i386/amd64.c: Likewise.
8913 * features/i386/i386-linux.c: Likewise.
8914 * features/i386/i386.c: Likewise.
8916 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8918 * gdbtypes.c (append_composite_type_field_raw): New.
8919 (append_composite_type_field_aligned): Use the new function.
8920 * gdbtypes.h (append_composite_type_field_raw): Declare.
8921 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8922 (struct tdesc_type_flag): New type.
8923 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8924 kind. Add size to u.u. Add u.f for flags.
8925 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8926 (tdesc_free_type): Likewise.
8927 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8928 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8929 (tdesc_add_bitfield, tdesc_add_flag): New.
8930 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8931 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8932 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8933 current_type. Add current_type_size and current_type_is_flags.
8934 (tdesc_start_union): Clear the new fields.
8935 (tdesc_start_struct, tdesc_start_flags): New.
8936 (tdesc_start_field): Handle struct fields, including bitfields.
8937 (field_attributes): Make type optional. Add start and end.
8938 (union_children): Rename to struct_union_children.
8939 (union_attributes): Rename to struct_union_attributes. Add optional
8941 (flags_attributes): New.
8942 (feature_children): Add struct and flags.
8943 * features/gdb-target.dtd: Add flags and struct to features.
8944 Make field type optional. Add field start and end.
8946 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8948 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8949 (amd64_linux_read_description): Likewise.
8950 (_initialize_amd64_linux_nat): Set to_read_description to
8951 amd64_linux_read_description.
8953 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8954 (amd64_linux_register_name): Removed.
8955 (amd64_linux_register_type): Likewise.
8956 (amd64_linux_core_read_description): New.
8957 (amd64_linux_init_abi): Set target description to
8958 tdesc_amd64_linux if needed. Support orig_rax in target
8959 description. Don't call set_gdbarch_register_name nor
8960 set_gdbarch_register_type. Call
8961 set_gdbarch_core_read_description.
8962 (_initialize_amd64_linux_tdep): Call
8963 initialize_tdesc_amd64_linux.
8965 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8967 * amd64-tdep.c: Include "features/i386/amd64.c".
8968 (amd64_register_names): Removed.
8969 (amd64_register_name): Likewise.
8970 (amd64_register_type): Likewise.
8971 (amd64_init_abi): Set num_core_regs and register_names. Set
8972 target description to tdesc_amd64 if needed. Don't call
8973 set_gdbarch_register_name nor set_gdbarch_register_type.
8974 (_initialize_amd64_tdep): New.
8976 * i386-linux-nat.c (i386_linux_read_description): New.
8977 (_initialize_i386_linux_nat): Set to_read_description to
8978 i386_linux_read_description.
8980 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8981 (i386_linux_register_name): Removed.
8982 (i386_linux_core_read_description): New.
8983 (i386_linux_read_description): Likewise.
8984 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8985 Set target description to tdesc_i386_linux if needed. Support
8986 orig_eax. Set register_reggroup_p. Call
8987 set_gdbarch_core_read_description.
8988 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8990 * i386-linux-tdep.h (tdesc_i386_linux): New.
8992 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8995 * i386-tdep.c: Include "features/i386/i386.c".
8996 (i386_register_names): Make it const.
8997 (i386_mmx_names): Likewise.
8998 (i386_num_register_names): Removed.
8999 (i386_register_name): Likewise.
9000 (i386_eflags_type): Likewise.
9001 (i386_mxcsr_type): Likewise.
9002 (i386_sse_type): Likewise.
9003 (i386_register_type): Likewise.
9004 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9005 (i386_pseudo_register_name): New.
9006 (i386_pseudo_register_type): Likewise.
9007 (i386_mmx_type): Make it static.
9008 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9009 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9010 call set_gdbarch_register_name nor set_gdbarch_register_type.
9011 Set register_reggroup_p. Set target description to tdesc_i386
9012 if needed. Call set_tdesc_pseudo_register_type,
9013 set_tdesc_pseudo_register_name and tdesc_use_registers.
9014 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9015 initialize_tdesc_x86_64.
9017 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9018 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9019 register_names, tdesc and register_reggroup_p.
9020 (I386_NUM_FREGS): Removed.
9021 (i386_eflags_type): Likewise.
9022 (i386_mxcsr_type): Likewise.
9023 (i386_mmx_type): Likewise.
9024 (i386_sse_type): Likewise.
9025 (i386_register_name): Likewise.
9026 (i386_regnum): Add I386_MXCSR_REGNUM.
9027 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9029 * i387-tdep.h (I387_NUM_REGS): New.
9031 * regformats/i386/i386-linux.dat: Generated.
9032 * regformats/i386/i386.dat: Likewise.
9033 * regformats/i386/amd64-linux.dat: Likewise.
9034 * regformats/i386/amd64.dat: Likewise.
9036 * regformats/reg-i386-linux.dat: Removed.
9037 * regformats/reg-i386.dat: Likewise.
9038 * regformats/reg-x86-64-linux.dat: Likewise.
9039 * regformats/reg-x86-64.dat: Likewise.
9041 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9043 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9044 cygwin_conv_path API rather than the deprecated
9045 cygwin_conv_to_full_posix_path.
9047 (GetModuleFileNameExA): Undefine for Cygwin.
9048 (GetModuleFileNameExW): Define for Cygwin.
9049 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9050 Call GetModuleFileNameExW and convert path to POSIX using
9052 (windows_make_so): Always define p. Drop unused variable m.
9053 Don't use Win32 functions to check file existance, rather use
9054 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9055 Use canonicalize_file_name to get full path.
9056 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9057 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9058 use correct target buffer size in call to WideCharToMultiByte.
9059 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9060 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9061 (windows_create_inferior): Convert all paths and arguments to wchar_t
9062 and use CreateProcessW on Cygwin.
9063 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9064 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9065 (bad_GetModuleFileNameExW): Define for Cygwin.
9066 (_initialize_loadable): Load GetModuleFileNameExW into
9067 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9069 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9072 * python/py-frame.c (frapy_read_var): Add block argument and logic
9073 to cope with user provided blocks.
9075 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9077 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9080 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9082 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9083 (COMMON_OBS): ... to here since it's used unconditionally.
9084 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9087 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9089 * mips-linux-tdep.c: Update struct sigframe comments.
9090 (SIGFRAME_CODE_OFFSET): Delete macro.
9091 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9093 (mips_linux_n32n64_sigframe_init): Same.
9095 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9097 * remote-mips.c (mips_load): Don't use pseudo-register when
9098 invalidating regcache.
9100 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9102 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9104 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9106 * NEWS: Add "New targets" section, and mention ARM Symbian
9109 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9111 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9112 add ADDR_SIZE member.
9113 (allocate_piece_closure): Update.
9114 (copy_pieced_value_closure): Likewise.
9115 (dwarf2_evaluate_loc_desc): Likewise.
9116 (read_pieced_value): Use DWARF address size instead of
9117 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9119 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9120 Tom Tromey <tromey@redhat.com>
9122 * python/py-type.c (typy_lookup_typename): Add in block argument.
9123 If provided restrict lookup to specified blocks.
9124 (gdbpy_lookup_type): Likewise.
9125 (typy_lookup_type): Likewise.
9127 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9132 * arm-symbian-tdep.c: New.
9133 * configure.tgt (arm*-*-symbianelf*): New target.
9134 (*-*-symbianelf*): New OS.
9135 * osabi.c (gdb_osabi_names): Add Symbian.
9136 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9137 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9138 (ALLDEPFILES): Add arm-symbian-tdep.c.
9140 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9142 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9144 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9146 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9148 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9149 Tom Tromey <tromey@redhat.com>
9150 Thiago Jung Bauermann <bauerman@br.ibm.com>
9152 * python/python.c (_initialize_python): Call
9153 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9154 gdbpy_initialize_blocks.
9155 * python/python-internal.h: Declare struct symbol, block and
9156 symtab_and_line. Declare block_object_type and
9158 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9159 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9160 (symbol_to_symbol_object, block_to_block_object)
9161 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9162 (gdbpy_initialize_blocks ): Declare.
9163 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9164 (frapy_select): Add methods.
9165 (frapy_read_var): Add symbol branch.
9166 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9168 (SUBDIR_PYTHON_SRCS): Likewise.
9169 (py-symbol.o): New rule.
9170 (py-symtab.o): Likewise.
9171 (py-block.o): Likewise.
9172 * python/py-symbol.c: New file.
9173 * python/py-symtab.c: Likewise.
9174 * python/py-block.c: Likewise.
9176 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9180 * inferior.h (prepare_for_detach): Declare.
9181 (struct inferior) <detaching>: New field.
9182 * infrun.c (prepare_for_detach): New.
9183 (handle_inferior_event) <random signal>: Don't stop if detaching.
9184 * target.c (target_detach): Call prepare_for_detach.
9186 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9188 Per-process displaced stepping queue.
9190 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9191 (displaced_step_gdbarch, displaced_step_closure,
9192 (displaced_step_original, displaced_step_copy): Move globals to
9194 (struct displaced_step_inferior_state): ... new structure.
9195 (displaced_step_inferior_states): New global.
9196 (get_displaced_stepping_state, add_displaced_stepping_state)
9197 (remove_displaced_stepping_state, infrun_inferior_exit): New
9199 (displaced_step_clear): Add displaced_step_inferior_state
9200 parameter, and adjust to handle it.
9201 (displaced_step_clear_cleanup): Parameter is now a
9202 displaced_step_inferior_state. Adjust.
9203 (displaced_step_prepare): Adjust.
9204 (displaced_step_fixup, displaced_step_fixup)
9205 (infrun_thread_ptid_changed, resume): Adjust.
9206 (init_wait_for_inferior): Don't call displaced_step_clear.
9207 (infrun_thread_stop_requested): Rewrite.
9208 (_initialize_infrun): Install infrun_inferior_exit as
9209 inferior_exit observer.
9211 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9213 * inferior.h (ptid_match): Declare.
9214 * infrun.c (ptid_match): New.
9215 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9216 (handle_notification): Add debug output.
9217 * linux-nat.c (ptid_match): Delete.
9219 2010-02-24 David S. Miller <davem@davemloft.net>
9221 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9222 * syscalls/sparc-linux.xml: New.
9223 * syscalls/sparc64-linux.xml: New.
9224 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9225 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9226 (sparc32_linux_get_syscall_number): New function.
9227 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9228 syscall number fetcher.
9229 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9230 (sparc64_linux_get_syscall_number): New function.
9231 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9232 syscall number fetcher.
9234 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9238 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9239 * inferior.c (add_inferior_silent): Notify inferior_added
9241 (delete_inferior_1): Notify inferior_removed observer.
9242 (exit_inferior_1): Pass inferior, not pid, to observer.
9243 (inferior_appeared): Likewise.
9244 (add_inferior_with_spaces): New.
9245 (add_inferior_command): Use the above.
9246 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9249 * inflow.c (inflow_inferior_exit): Likewise.
9250 * jit.c (jit_inferior_exit_hook): Likewise.
9252 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9254 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9255 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9256 (report_initial_inferior): New.
9257 (mi_inferior_removed): Register the above. Make sure
9258 inferior_added observer is called on the first inferior.
9259 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9260 inferior number, not pid.
9261 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9263 * mi/mi-main.c (current_context): New.
9264 (proceed_thread_callback): Use typed closure.
9265 Proceed everything if pid is 0. Most implementation split into
9266 (proceed_thread): ... this.
9267 (run_one_inferior): New.
9268 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9269 Adjust for multiexec behaviour.
9270 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9271 (mi_cmd_execute): Handle the 'thread-group' option here.
9272 Do some extra checks.
9273 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9275 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9277 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9279 Make -exec-run a proper MI commands.
9281 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9282 * mi/mi-cmds.c (mi_cmds): Adjust.
9283 * mi/mi-main.c (mi_cmd_exec_run): New.
9285 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9286 Stan Shebs <stan@codesourcery.com>
9288 * tracepoint.h (set_traceframe_number)
9289 (cleanup_restore_current_traceframe): Declare.
9290 * tracepoint.c (set_traceframe_number): New.
9291 (struct current_traceframe_cleanup): New.
9292 (do_restore_current_traceframe_cleanup)
9293 (restore_current_traceframe_cleanup_dtor)
9294 (make_cleanup_restore_current_traceframe): New.
9295 * infrun.c: Include tracepoint.h.
9296 (fetch_inferior_event): Switch out and in of tfind mode.
9298 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9300 * breakpoint.c (breakpoint_init_inferior): Also delete
9301 bp_shlib_event breakpoints.
9302 * solib-frv.c (enable_break): Remove call to
9303 remove_solib_event_breakpoints.
9304 * solib-svr4.c (enable_break): Ditto.
9305 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9306 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9307 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9308 * solib-spu.c (spu_enable_break): Ditto.
9310 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9312 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9314 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9316 * varobj.c (varobj_update): Avoid non-constants in initializers.
9318 2010-02-23 Tom Tromey <tromey@redhat.com>
9320 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9321 handle big-endian values.
9322 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9324 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9329 * breakpoint.c (insert_bp_location): If inserting the read
9330 watchpoint failed, fallback to an access watchpoint.
9331 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9332 if the value changed, if not watching the same memory for writes.
9333 (watchpoint_locations_match): Add comment.
9334 (update_global_location_list): Copy the location's watchpoint type.
9335 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9336 handle read watchpoints here.
9337 (i386_insert_watchpoint): Read watchpoints aren't supported.
9338 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9340 * target.h (target_insert_watchpoint): Update description.
9342 2010-02-19 Tom Tromey <tromey@redhat.com>
9344 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9345 * m2-typeprint.c (m2_print_type): Update.
9346 * gdbtypes.c (recursive_dump_type): Update.
9347 (copy_type_recursive): Update.
9348 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9349 (c_type_print_base): Update.
9350 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9352 (struct cplus_struct_type) <ntemplate_args>: Remove.
9353 <struct template_arg>: Remove.
9354 <is_dynamic>: Move earlier.
9355 (TYPE_TEMPLATE_ARGS): Remove.
9356 (TYPE_NTEMPLATE_ARGS): Remove.
9357 (TYPE_TEMPLATE_ARG): Remove.
9359 2010-02-19 Tom Tromey <tromey@redhat.com>
9361 PR c++/8693, PR c++/9496:
9362 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9363 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9364 write_dollar_variable. Don't try to classify NAME tokens.
9365 (token_and_value): New type.
9366 (token_fifo, popping, name_obstack): New globals.
9367 (classify_name): New function.
9368 (classify_inner_name): Likewise.
9370 (VARIABLE): Now has type sval.
9371 (exp : VARIABLE): Call write_dollar_variable.
9372 (qualified_name): Use TYPENAME, not typebase. Add production for
9373 multiple "::" instances.
9374 (variable): Use name_not_typename.
9375 (qualified_type): Remove.
9378 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9380 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9381 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9382 found by bfd_get_section_by_name.
9383 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9385 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9387 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9388 7.0 section" into "Changes in 7.1".
9390 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9392 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9393 * version.in: Bump version to 7.1.50.20100219-cvs.
9395 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9397 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9398 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9400 2010-02-17 Tom Tromey <tromey@redhat.com>
9402 * NEWS: Add Python API Improvements section.
9404 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9406 * NEWS: Correct typo.
9408 2010-02-17 Tom Tromey <tromey@redhat.com>
9410 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9412 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9414 * symfile.c (build_section_addr_info_from_objfile): Include sections
9415 only if they are SEC_ALLOC or SEC_LOAD.
9417 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9420 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9421 of ULONGEST for address size.
9423 2010-02-17 Tom Tromey <tromey@redhat.com>
9425 * NEWS: Add C++ improvements section.
9427 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9429 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9430 PyThreadState_Swap): Avoid "statement with no effect" warning.
9432 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9435 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9437 2010-02-17 Tristan Gingold <gingold@adacore.com>
9438 Petr Hluzin <petr.hluzin@gmail.com>
9440 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9441 gdb_assert. Fix info->size for SIG prologue.
9443 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9445 * infcmd.c (show_inferior_tty_command): Check for NULL.
9446 Correct output message.
9448 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9450 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9451 FUNCTION contains parentheses. Improve removal of a trailing
9454 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9456 * gcore.c (do_bfd_delete_cleanup): New function.
9457 (gcore_command): Use it. Discard the cleanup after success.
9458 (gcore_copy_callback): Delete dead code.
9460 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9462 * symfile.c (addr_info_make_relative): Always use
9463 find_lowest_section.
9465 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9467 * NEWS: Added entry for namespace fixes.
9469 2010-02-15 Tom Tromey <tromey@redhat.com>
9471 * dwarf2read.c (guess_structure_name): Allocate name on the
9474 2010-02-15 Tom Tromey <tromey@redhat.com>
9476 * c-typeprint.c (c_type_print_base): Reverse order of test.
9478 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9480 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9481 initialize it from ELF BFD. Extend the prelink condition by it.
9483 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9485 * defs.h (parse_pid_to_attach): New.
9486 * utils.c (parse_pid_to_attach): New.
9487 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9488 * gnu-nat.c (gnu_attach): Likewise.
9489 * nto-procfs.c (procfs_attach): Likewise.
9490 * procfs.c (procfs_attach): Likewise.
9491 * windows-nat.c (windows_attach): Likewise.
9492 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9493 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9494 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9497 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9499 * MAINTAINERS: Add myself for write after approval privileges.
9501 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9503 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9506 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9508 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9509 only if INFO_VERBOSE.
9511 2010-02-12 Tomas Holmberg <th@virtutech.com>
9513 * mi/mi-main.c: Added the --reverse flag to the following MI
9514 commands: exec-continue, exec-finish, exec-next, exec-step,
9515 exec-next-instruction, exec-step-instruction. This is to
9516 support reverse execution over the MI interface to gdb.
9518 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9520 * tracepoint.c (_initialize_tracepoint): Specify that the address
9521 range of `tfind outsize' is exclusive, and that the address range
9522 of `tfind range' is inclusive, in the commands' help strings.
9524 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9526 Spurious "dll not found" error messages on x64-windows.
9527 * windows-nat.c: Add include of complaints.h.
9528 (handle_unload_dll): Change dll-not-found error into a complaint.
9530 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9532 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9533 bp_tracepoint and bp_fast_tracepoint, not
9534 bp_loc_software_breakpoint.
9535 (update_global_location_list): Tracepoints are never duplicates of
9538 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9540 * breakpoint.c (break_command_really): Change return type to int.
9541 Return false if no breakpoint was created, true otherwise.
9542 (trace_command): Don't set the tracepoint count if no tracepoint
9544 (ftrace_command): Ditto.
9545 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9546 created in the breakpoints table.
9548 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9549 Ulrich Weigand <uweigand@de.ibm.com>
9551 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9553 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9555 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9556 the offset value isn't of integral type.
9558 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9560 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9563 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9565 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9566 non-subscriptable types.
9567 * valarith.c (binop_types_user_defined_p): New, abstracted out
9569 (binop_user_defined_p): ... this.
9570 * value.h (binop_types_user_defined_p): Declare.
9572 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9574 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9575 Merge uploaded TSVs before merging uploaded tracepoints.
9577 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9579 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9581 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9583 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9584 whitespace character after a dot in comment.
9585 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9587 (list_args_or_locals): For the 'all' (that is
9588 -stack-list-variables) case, always output list of tuples.
9589 Output 'arg' field if variable is argument.
9591 2010-02-10 Tom Tromey <tromey@redhat.com>
9593 * parser-defs.h (parser_debug): Declare.
9594 * parse.c (_initialize_parse): Install "debug parser" set/show
9596 (parser_debug): New global.
9597 (show_parserdebug): New function.
9598 * c-exp.y (c_parse): Set yydebug.
9600 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9602 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9603 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9604 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9606 (tdesc_find_type): New.
9607 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9608 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9610 * target-descriptions.h (tdesc_find_type): New.
9612 2010-02-10 Michael Snyder <msnyder@vmware.com>
9614 * gdb-gdb.py: Comment fix.
9616 2010-02-09 Tristan Gingold <gingold@adacore.com>
9618 * machoread.c (macho_symfile_relocate): New function.
9619 (macho_sym_fns): Use macho_symfile_relocate instead of
9620 default_symfile_relocate.
9621 (macho_oso_data): New type.
9622 (current_oso): New variable.
9623 (macho_add_oso_symfile): Do not compute section_addr_info, but
9624 instead set vma of sections.
9625 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9626 Set and clear current_oso.
9628 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9630 Wrong type description for tagged type parameter.
9631 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9632 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9633 reference to a tagged type.
9635 2010-02-09 Tristan Gingold <gingold@adacore.com>
9637 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9638 brothers of the parent.
9640 2010-02-08 Tom Tromey <tromey@redhat.com>
9644 * valops.c (search_struct_field): Make 'name' const.
9645 (search_struct_method): Likewise.
9646 (find_method_list): Make 'method' const.
9647 (value_struct_elt): Make 'name' and 'err' const.
9648 (value_find_oload_method_list): Make 'method' const.
9649 (find_overload_match): Make 'name' const.
9650 * eval.c (evaluate_subexp_standard): New locals function,
9652 <OP_FUNCALL>: Handle OP_SCOPE specially.
9654 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9656 * infrun.c (handle_inferior_event): Do not look up regcache
9657 for exited processes.
9659 2010-02-08 Chris Moller <moller@mollerware.com>
9662 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9663 warn if found, and assume length = 1.
9665 2010-02-08 Chris Moller <cmoller@redhat.com>
9668 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9669 (cp_print_static_field) Fix use of obstacks.
9671 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9673 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9674 resumed LWPs as resumed.
9675 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9676 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9677 of throwing an internal error. If an LWP of a process we're not
9678 waiting for reports a signal, don't force collecting a SIGSTOP,
9679 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9680 go through all LWPs cancelling breakpoints in non-stop mode.
9681 (resume_stopped_resumed_lwps): New.
9682 (linux_nat_wait): Use it.
9684 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9686 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9687 i386/amd64 and i386/amd64-linux.
9688 (i386/i386-expedite): New.
9689 (i386/i386-linux-expedite): Likewise.
9690 (i386/amd64-expedite):Likewise.
9691 (i386/amd64-linux-expedite): Likewise.
9692 ($(outdir)/i386/i386-linux.dat): Likewise.
9693 ($(outdir)/i386/amd64.dat): Likewise.
9694 ($(outdir)/i386/amd64-linux.dat): Likewise.
9696 * features/i386/32bit-core.xml: New.
9697 * features/i386/32bit-linux.xml: Likewise.
9698 * features/i386/32bit-sse.xml: Likewise.
9699 * features/i386/64bit-core.xml: Likewise.
9700 * features/i386/64bit-linux.xml: Likewise.
9701 * features/i386/64bit-sse.xml: Likewise.
9702 * features/i386/i386-linux.xml: Likewise.
9703 * features/i386/i386.xml: Likewise.
9704 * features/i386/amd64-linux.xml: Likewise.
9705 * features/i386/amd64.xml: Likewise.
9706 * features/i386/i386-linux.c: Likewise.
9707 * features/i386/i386.c: Likewise.
9708 * features/i386/amd64-linux.c: Likewise.
9709 * features/i386/amd64.c: Likewise.
9711 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9714 * cp-support.h: Added char* alias element to using_direct data
9716 (cp_add_using): Added char* alias argument.
9717 (cp_add_using_directive): Ditto.
9718 * cp-namespace.c: Updated with the above changes.
9719 (cp_lookup_symbol_imports): Check for aliases.
9720 * dwarf2read.c (read_import_statement): Figure out local alias
9721 for the import and pass it on to cp_add_using.
9722 (read_namespace): Pass alias argument to cp_add_using.
9724 2010-02-05 Hui Zhu <teawater@gmail.com>
9726 * defs.h (gdb_bfd_errmsg): New extern.
9727 * exec.c (exec_file_attach): Change bfd_errmsg to
9729 * utils.c (AMBIGUOUS_MESS1): New macro.
9730 (AMBIGUOUS_MESS2): New macro.
9731 (gdb_bfd_errmsg): New function.
9733 2010-02-04 Doug Evans <dje@google.com>
9735 * solib-svr4.c (enable_break): Add comment.
9737 2010-02-04 Anthony Green <green@moxielogic.com>
9739 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9742 2010-02-04 Tom Tromey <tromey@redhat.com>
9744 * valops.c (search_struct_field): Account for
9745 value_embedded_offset. Fix check for virtual base past the end of
9746 the object. Use value_copy when making a slice of the value.
9748 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9751 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9752 only if gdb_stdout is a tty.
9754 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9756 * target-descriptions.c: Include "osabi.h".
9757 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9760 2010-02-04 Tristan Gingold <gingold@adacore.com>
9762 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9763 (macho_symtab_read): Adjust calls to macho_add_oso.
9764 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9765 (macho_symfile_read): Adjust call to macho_oso_symfile.
9766 (macho_new_init): Move this function after declarations.
9767 (macho_symfile_init): Ditto.
9768 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9769 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9771 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9773 Include MI command in remotelog.
9775 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9777 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9779 * remote.c (remote_state): Remove gdbarch.
9780 (init_remote_state): Don't set gdbarch.
9781 (remote_query_supported): Pass target_gdbarch instead of
9782 rs->gdbarch to gdbarch_qsupported.
9784 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9786 * gdbarch.sh: Add qsupported.
9788 * gdbarch.c: Regenerated.
9789 * gdbarch.h: Likewise.
9791 * remote.c (remote_state): Add gdbarch.
9792 (init_remote_state): Set gdbarch.
9793 (remote_query_supported): Support gdbarch_qsupported.
9795 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9797 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9798 __FreeBSD_kernel_version.
9800 2010-02-03 Tristan Gingold <gingold@adacore.com>
9802 * symfile.h (struct sym_fns): Add sym_relocate field.
9803 (default_symfile_relocate): New prototype.
9804 (symfile_relocate_debug_section): First argument is now an objfile.
9805 * symfile.c (default_symfile_relocate): Rename from
9806 symfile_relocate_debug_section, first argument is now an objfile.
9807 (symfile_relocate_debug_section): New function.
9808 * coffread.c (coff_sym_fns): Set sym_relocate field.
9809 * somread.c (som_sym_fns): Ditto.
9810 * mipsread.c (ecoff_sym_fns): Ditto.
9811 * machoread.c (macho_sym_fns): Ditto.
9812 * elfread.c (elf_sym_fns): Ditto.
9813 * dwarf2read.c (dwarf2_read_section): Ditto.
9814 * xcoffread.c (xcoff_sym_fns): Ditto.
9815 * dbxread.c (aout_sym_fns): Ditto.
9816 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9817 (elfstab_build_psymtabs): Ditto.
9819 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9821 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9823 2010-02-02 Tom Tromey <tromey@redhat.com>
9825 * valops.c (value_cast_structs): Try downcasting using the RTTI
9828 2010-02-02 Tom Tromey <tromey@redhat.com>
9830 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9831 (gnuv2_baseclass_offset): Now static.
9832 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9833 * gnu-v2-abi.h: Remove.
9835 2010-02-02 Tom Tromey <tromey@redhat.com>
9837 * m2-typeprint.c (m2_record_fields): Don't use
9839 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9840 (struct main_type) <flag_declared_class>: New field.
9841 (struct cplus_struct_type) <declared_type>: Remove.
9842 <ntemplate_args>: Move earlier.
9843 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9844 (DECLARED_TYPE_TEMPLATE): Remove.
9845 (TYPE_DECLARED_TYPE): Remove.
9846 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9847 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9848 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9851 2010-02-02 Tom Tromey <tromey@redhat.com>
9853 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9854 * valops.c (search_struct_field): Compute nbases after calling
9856 (check_field): Call CHECK_TYPEDEF.
9857 * cp-valprint.c (cp_print_value): Pass correct address to
9858 baseclass_offset. Fix check for virtual base past the end of the
9859 object. Don't offset address passed to cp_print_value_fields or
9860 apply_val_pretty_printer.
9861 (cp_print_value_fields): Fix call to val_print.
9862 (cp_print_value_fields_rtti): New function.
9863 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9864 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9866 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9868 * language.h (struct language_defn) <la_val_print>: Document.
9869 * c-lang.h (cp_print_value_fields_rtti): Declare.
9871 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9874 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9875 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9876 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9878 2010-02-01 Michael Matz <matz@suse.de>
9879 Daniel Jacobowitz <dan@codesourcery.com>
9881 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9882 functions use a frame pointer.
9884 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9886 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9887 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9888 * config/djgpp/fnchange.lst: Add translations for
9889 symbol-without-target_section.exp and symbol-without-target_section.c.
9891 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9893 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9894 (remote_breakpoint_for_pc): Correct invalid_p check.
9895 * gdbarch.c: Regenerated.
9897 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9899 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9901 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9902 (extend_buffer_earlier): New function.
9903 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9904 (arm_adjust_breakpoint_address): New function.
9905 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9907 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9909 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9910 (arm_linux_thumb2_le_breakpoint): New constants.
9911 (arm_linux_init_abi): Set thumb2_breakpoint and
9912 thumb2_breakpoint_size.
9913 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9914 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9915 Implement support for single stepping through IT blocks if
9916 a 32-bit Thumb breakpoint instruction is available.
9917 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9918 is available, use it when needed.
9919 (arm_remote_breakpoint_from_pc): New function.
9920 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9921 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9922 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9924 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9926 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9927 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9928 * gdbarch.c, gdbarch.h: Regenerated.
9929 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9930 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9931 gdbarch_remote_breakpoint_from_pc.
9933 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9935 * infrun.c (prepare_to_proceed): Handle other signals which might
9937 (handle_inferior_event): Move the check for unusual breakpoint
9940 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9942 amd64 - function returning record with field straddling 2 registers.
9943 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9944 a record of length <= 16 in which a field straddles the two
9947 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9949 Implement return values on amd64-windows.
9950 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9951 (amd64_windows_return_value): New function.
9952 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9953 amd64_windows_return_value.
9955 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9957 amd64-windows: 32 bytes allocated on stack by caller for integer
9958 parameter registers.
9959 * i386-tdep.h (struct gdbarch_tdep): Add new field
9960 integer_param_regs_saved_in_caller_frame.
9961 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9962 tdep->integer_param_regs_saved_in_caller_frame to 1.
9963 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9964 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9966 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9968 amd64-windows: memory args passed by pointer during function calls.
9969 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9970 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9971 where tdep->memory_args_by_pointer is non-zero.
9972 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9973 tdep->memory_args_by_pointer to 1.
9975 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9977 amd64-windows: Integer parameters in function calls.
9978 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9980 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9981 call_dummy_integer_regs, and classify.
9982 * amd64-tdep.h (amd64_classify): Add declaration.
9983 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9984 (amd64_reg_class): Delete, moved to i386-tdep.h.
9985 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9986 Replace call to amd64_classify by call to tdep->classify.
9987 (amd64_push_arguments): Get the list of registers to use for
9988 passing integer parameters from the gdbarch tdep structure,
9989 rather than using a hardcoded one. Replace calls to amd64_classify
9990 by calls to tdep->classify.
9991 (amd64_push_dummy_call): Get the register number used for
9992 the "hidden" argument from tdep->call_dummy_integer_regs.
9993 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9994 and tdep->call_dummy_integer_regs. Set tdep->classify.
9995 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9996 (amd64_windows_dummy_call_integer_regs): New static global.
9997 (amd64_windows_classify): New function.
9998 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9999 tdep->call_dummy_integer_regs and tdep->classify.
10001 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10003 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10004 for the new regcache. All callers updated.
10005 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10006 (get_thread_arch_regcache): Do not set aspace here.
10007 * regcache.h (regcache_xmalloc): Update declaration.
10009 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10010 regcache_xmalloc updated.
10012 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10014 Another -Wunused-function error in procfs.c (sparc-solaris)
10015 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10016 Only define if SYS_syssgi is defined.
10017 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10018 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10019 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10022 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10024 * windows-nat.c (windows_initialization_done): New variable.
10025 (get_windows_debug_event): Issue error when process dies before
10026 completely initializing.
10027 (do_initial_windows_stuff): Set flag to indicate when we are done with
10028 the initial steps of attaching to the child.
10030 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10032 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10034 2010-01-27 Doug Evans <dje@google.com>
10036 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10038 * breakpoint.c (bpstat_stop_status): Delete useless code.
10040 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10042 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10043 objfile via SYMBOL_SYMTAB.
10045 2010-01-26 Tom Tromey <tromey@redhat.com>
10048 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10049 coerce_array on result.
10051 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10053 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10054 search_parent argument.
10055 (cp_add_using): Initialize 'searched' field.
10056 (reset_directive_searched): New function.
10057 * cp-support.h: Add 'searched' field to using_direct struct.
10058 (cp_lookup_symbol_imports): Ditto.
10059 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10060 Perform recursive search.
10061 Implement non parent search.
10062 * valops.c (value_maybe_namespace_elt): Updated.
10064 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10067 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10068 scopes which contain using directives even if they contain no
10070 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10071 la_lookup_symbol_nonlocal.
10072 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10073 cp_lookup_symbol_namespace.
10074 (cp_lookup_symbol_namespace): Perform an import lookup at every
10076 (cp_lookup_symbol_imports): New function.
10077 (cp_lookup_symbol_in_namespace): New function.
10079 2010-01-25 Tom Tromey <tromey@redhat.com>
10082 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10085 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10087 * configure.ac: Only use host_os part when disabling TUI on osf.
10088 Use test to check variables, prefix strings with x.
10089 * configure: Regenerate.
10091 * solib-osf.c (osf_current_sos): Initialize tail.
10093 2010-01-25 gingold <gingold@adacore.com>
10095 * windows-nat.c (windows_continue): Use %x to print thread id.
10096 (get_windows_debug_event): Ditto.
10098 2010-01-22 Tom Tromey <tromey@redhat.com>
10101 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10102 type and arguments. Use smash_to_methodptr_type.
10103 (read_structure_type): Call quirk_gcc_member_function_pointer
10105 * gdbtypes.h (smash_to_methodptr_type): Declare.
10106 * gdbtypes.c (smash_to_methodptr_type): New function.
10107 (lookup_methodptr_type): Use it.
10109 2010-01-21 Tom Tromey <tromey@redhat.com>
10112 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10113 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10114 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10115 (glibc_skip_solib_resolver): Use
10116 lookup_minimal_symbol_and_objfile.
10118 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10120 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10123 2010-01-20 Tom Tromey <tromey@redhat.com>
10125 PR backtrace/10770:
10126 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10127 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10128 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10129 dwarf_stack_values, not CORE_ADDRs.
10130 (execute_stack_op): Change DW_OP_div and comparison operators to
10131 use signed operands.
10133 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10135 Per-inferior args and tty and environment.
10137 * infcmd.c (inferior_args): Rename to ...
10138 (inferior_args_scratch): ... this.
10139 (inferior_io_terminal): Rename to ...
10140 (inferior_io_terminal_scratch): ... this.
10141 (inferior_argc, inferior_argv): Remove.
10142 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10143 inside current_inferior().
10144 (set_inferior_tty_command, show_inferior_tty_command): New.
10145 (get_inferior_args, set_inferior_args): Store inside
10146 current_inferior().
10147 (notice_args_set): Likewise and rename to...
10148 (set_args_command): ... this.
10149 (set_inferior_args_vector): Likewise.
10150 (notice_args_read): Rename to...
10151 (show_args_command): ...new.
10152 (tty_command): Remove.
10153 (run_command_1): Don't free old args, as they are freed by
10154 set_inferior_arg now.
10155 (run_no_args_command): Likewise.
10156 (inferior_environ): Remove.
10157 (run_command_1): Use environment of the current inferior.
10158 (environment_info, set_environment_command)
10159 (unset_environment_command, path_info, path_command): Likewise.
10160 (_initialize_infcmd): Adjust for function and variable renames.
10161 Do not init inferior_environ.
10162 * inferior.h (set_inferior_arg): Adjust prototype.
10163 (struct inferior): New fields args, argc, argv, terminal, environment.
10164 (inferior_environ): Remove declaration.
10165 * inferior.c (free_inferior): Free new fields.
10166 (add_inferior_silent): Initialize 'environment' field.
10167 * main.c (captured_main): Set arguments only after the initial
10168 inferior has been created. Set set_inferior_io_terminal,
10170 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10172 (_initialize_mi_cmd_env): Adjust for disappearance of global
10174 * solib.c (solib_find): Use environment of the current inferior.
10176 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10178 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10180 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10182 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10184 Get rid of ada-lang.c:function_name_from_pc.
10185 * ada-lang.c: Add "stack.h" #include.
10186 (function_name_from_pc): Delete.
10187 (is_known_support_routine): Replace call to function_name_from_pc
10188 by call to find_frame_funname.
10189 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10191 2010-01-19 Tom Tromey <tromey@redhat.com>
10194 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10197 2010-01-19 Tom Tromey <tromey@redhat.com>
10199 * top.c (stop_sig, float_handler, do_nothing): Remove.
10201 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10203 * breakpoint.c (watchpoint_check): Check the call
10204 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10205 Extend the comment.
10206 * config/djgpp/fnchange.lst: Add translations for
10207 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10208 watchpoint-cond-gone-stripped.c.
10210 2010-01-19 Tom Tromey <tromey@redhat.com>
10213 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10214 into parent scope, and enumerator into grandparent scope.
10216 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10218 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10220 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10222 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10223 i[34567]86-*-solaris2.1[0-9]*.
10224 * configure.tgt: Likewise.
10226 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10228 * NEWS: Document the source command enhancement allowing it
10229 to load Python scripts. Document the "set/show script-extension"
10232 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10234 Add -Wunused-function to compile flags.
10235 * configure.ac: Add -Wunused-function to build_warnings.
10236 * configure: Regenerate.
10238 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10240 "delete" ada-lex.c:input function, not used.
10241 * ada-lex.l: #define YY_NO_INPUT.
10243 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10245 Delete free_named_symtabs and associated cleanup.
10246 * symfile.h (free_named_symtabs): Delete declaration.
10247 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10248 (cashier_psymtab): Comment function out.
10249 Delete declaration.
10250 (free_named_symtabs): Delete.
10251 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10252 * dbxread.c (end_psymtab): Likewise.
10253 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10254 * exec.c (exec_close_1): Ditto.
10255 * xcoffread.c (xcoff_end_psymtab): Likewise.
10257 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10259 * stack.c (print_block_frame_labels): Comment function out.
10261 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10263 Delete unused or undefined functions.
10264 * breakpoint.c (ep_parse_optional_filename): Delete.
10265 * dcache.c (dcache_write_line): Remove declaration.
10266 * infrun.c (build_infrun): Remove declaration.
10267 * tracepoint.c (tracepoint_save_command): Remove declaration.
10268 * linux-nat.c (init_lwp_list): Delete. No longer used.
10269 * event-loop.c (check_async_signal_handlers): Delete declaration.
10270 * infrun.c (init_execution_control_state): Delete.
10271 (proceed): Update comment to avoid mentioning
10272 init_execution_control_state.
10273 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10274 * ada-lang.c (ada_to_static_fixed_value): Delete.
10275 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10276 * cp-namespace.c (cp_copy_usings): Delete.
10277 * xml-syscall.c (xml_number_of_syscalls): Delete.
10278 * progspace.c (find_program_space_by_num): Delete.
10279 * inflow.c (handle_sigio): Delete declaration.
10280 * hppa-tdep.c (hppa_alignof): Delete.
10281 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10282 (mipsnbsd_core_osabi_sniffer): Delete.
10284 2010-01-18 Tom Tromey <tromey@redhat.com>
10287 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10288 (CONST_CAST): New tokens.
10289 (exp): Add new productions.
10290 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10292 (is_cast_operator): New function.
10293 (yylex): Handle cast operators specially.
10294 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10295 UNOP_REINTERPRET_CAST>: New cases.
10296 * expprint.c (print_subexp_standard): Likewise.
10297 (op_name_standard): Likewise.
10298 (dump_subexp_body_standard): Likewise.
10299 * parse.c (operator_length_standard): Likewise.
10300 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10301 UNOP_REINTERPRET_CAST.
10302 * gdbtypes.c (class_types_same_p): New function.
10303 (is_ancestor): Use it.
10304 (is_public_ancestor): New function.
10305 (is_unique_ancestor_worker): Likewise.
10306 (is_unique_ancestor): Likewise.
10307 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10308 (is_unique_ancestor): Declare.
10309 * valops.c (value_reinterpret_cast): New function.
10310 (dynamic_cast_check_1): Likewise.
10311 (dynamic_cast_check_2): Likewise.
10312 (value_dynamic_cast): Likewise.
10313 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10315 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10317 Fix build failure when building without Python support.
10318 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10321 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10323 Use XVS field type instead of doing a parallel lookup.
10324 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10325 if it is a reference type instead of doing a type lookup using
10326 the XVS field name.
10328 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10330 Trust PAD types instead of using PAD___XVS.
10331 * ada-lang.c (trust_pad_over_xvs): New static variable.
10332 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10333 parallel XVS type, follow the XVS type instead of the PAD type.
10334 (unwrap_value): Make sure that there is no parallel XVE type
10335 before returning the value as is.
10336 (set_ada_list, show_ada_list): New static variables.
10337 (set_ada_command, show_ada_command): New functions.
10338 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10339 Add new "set/show ada trust-PAD-over-XVS" setting.
10341 2010-01-18 Tom Tromey <tromey@redhat.com>
10342 Thiago Jung Bauermann <bauerman@br.ibm.com>
10344 Allow "source" to load python scripts.
10345 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10346 * python/python.c (source_python_script): New function.
10347 * python/python.h (source_python_script): Add declaration.
10348 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10349 (script_ext_off, script_ext_soft, script_ext_strict)
10350 (script_ext_enums, script_ext_mode): New static constants.
10351 (show_script_ext_mode, find_and_open_script): New functions.
10352 (source_script): Enhance to handle Python scripts.
10353 (init_cli_cmds): Add set/show script-extension commands.
10355 2010-01-16 Stan Shebs <stan@codesourcery.com>
10357 * tracepoint.h (struct trace_status): Use unsigned long long
10359 * tracepoint.c (trace_status_command): Fix printf directive.
10360 (trace_save_command): Check fwrite returns, fix printf directive.
10361 (trace_filename): New global.
10362 (tfile_open): Set it, check read returns.
10363 (tfile_close): Free trace_filename.
10364 (tfile_get_traceframe_address): Check read returns.
10365 (tfile_trace_find): Ditto.
10366 (tfile_fetch_registers): Ditto.
10367 (tfile_xfer_partial): Ditto.
10368 (tfile_get_trace_state_variable_value): Ditto.
10370 2010-01-15 Stan Shebs <stan@codesourcery.com>
10372 Add trace file support.
10373 * tracepoint.h (enum trace_stop_reason): New enum.
10374 (struct trace_status): New struct.
10375 (parse_trace_status): Declare.
10376 (struct uploaded_tp): Move here from remote.c,
10377 add fields for actions.
10378 (struct uploaded_tsv): New struct.
10379 * tracepoint.c (tfile_ops): New target vector.
10380 (trace_fd): New global.
10381 (tfile_open): New function.
10382 (tfile_close): New function.
10383 (tfile_files_info): New function.
10384 (tfile_get_trace_status): New function.
10385 (tfile_get_traceframe_address): New function.
10386 (tfile_trace_find): New function.
10387 (tfile_fetch_registers): New function.
10388 (tfile_xfer_partial): New function.
10389 (tfile_get_trace_state_variable_value): New function.
10390 (init_tfile_ops): New function.
10391 (_initialize_tracepoint): Call it, add tfile target.
10392 (trace_status): New global.
10393 (current_trace_status): New function.
10394 (trace_running_p): Remove, change all users to get from
10395 current_trace_status()->running.
10396 (get_trace_status): Remove.
10397 (trace_status_command): Call target_get_trace_status directly,
10398 report more detail including tracing stop reasons.
10399 (trace_find_command): Always allow tfind on a file.
10400 (trace_find_pc_command): Ditto.
10401 (trace_find_tracepoint_command): Ditto.
10402 (trace_find_line_command): Ditto.
10403 (trace_find_range_command): Ditto.
10404 (trace_find_outside_command): Ditto.
10405 (trace_frames_offset, cur_offset): Declare as off_t.
10406 (trace_regblock_size): Rename from reg_size, update users.
10407 (parse_trace_status): New function.
10408 (tfile_interp_line): New function.
10409 (disconnect_or_stop_tracing): Ensure current trace
10410 status before asking what to do.
10411 (stop_reason_names): New global.
10412 (trace_save_command): New command.
10413 (get_uploaded_tp): Move here from remote.c.
10414 (find_matching_tracepoint): Ditto.
10415 (merge_uploaded_tracepoints): New function.
10416 (parse_trace_status): Use stop_reason_names.
10417 (_initialize_tracepoint): Define tsave command.
10418 * target.h (target_ops): New fields to_save_trace_data,
10419 to_upload_tracepoints, to_upload_trace_state_variables,
10420 to_get_raw_trace_data, change to_get_trace_status
10421 to take a pointer to a status struct.
10422 (target_save_trace_data): New macro.
10423 (target_upload_tracepoints): New macro.
10424 (target_upload_trace_state_variables): New macro.
10425 (target_get_raw_trace_data): New macro.
10426 * target.c (update_current_target): Add new methods, change
10427 signature of to_get_trace_status.
10428 * remote.c (hex2bin): Make globally visible.
10430 (remote_download_trace_state_variable): Download name also.
10431 (remote_get_trace_status): Update parameter, use
10432 parse_trace_status.
10433 (remote_save_trace_data): New function.
10434 (remote_upload_tracepoints): New function.
10435 (remote_upload_trace_state_variables): New function.
10436 (remote_get_raw_trace_data): New function.
10437 (remote_start_remote): Use them.
10438 (_initialize_remote_ops): Add operations.
10439 * ax-gdb.c: Include breakpoint.h.
10440 * breakpoint.c (create_tracepoint_from_upload): Use
10441 break_command_really, return tracepoint, warn about unimplemented
10443 * NEWS: Mention trace file addition.
10445 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10447 Fix compilation warning on gcc-3.4.
10448 * exec.c (print_section_info): Move the `displacement' variable
10449 initialization to its declaration.
10451 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10453 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10456 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10458 "info tasks" broken by typedefs in ATCB type definitions.
10459 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10460 ada_check_typedef before retrieving the length of the type for
10463 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10465 Do not use name-based lookup for unconstrained packed arrays.
10466 * ada-lang.c (find_parallel_type_by_descriptive_type):
10467 Limit the fallback to name-based lookups to the case where
10468 the type is a constrained packed array.
10470 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10472 Enhance gdb-gdb.py to handle main_type.type_specific.
10473 * gdb-gdb.py: Print the type-specific part of struct main_type.
10475 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10477 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10478 * configure: Regenerate.
10479 * config.in: Regenerate.
10480 * utils.c: Include sys/resource.h.
10481 (dump_core, can_dump_core): New.
10482 (internal_vproblem): Update the comment. Check can_dump_core while
10483 setting dump_core_p. Replace two abort calls by dump_core calls.
10485 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10486 Eli Zaretskii <eliz@gnu.org>
10488 * NEWS: Document the PIE support.
10490 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10492 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10493 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10495 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10497 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10498 Replace exec_entry_point call by bfd_get_start_address.
10500 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10502 Support Valgrind attachments broken by the PIE support.
10503 * auxv.c: Include gdbcore.h.
10504 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10505 parameters ops, object and annex. Remove their assertions.
10506 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10507 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10508 (memory_xfer_auxv): ... here.
10509 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10511 * procfs.c (procfs_xfer_partial): Likewise.
10512 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10513 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10514 (svr4_solib_create_inferior_hook): Conditionalize the
10515 svr4_relocate_main_executable call.
10517 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10519 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10520 target_section. Find SECT in current_target_sections, gdb_assert it.
10521 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10523 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10524 of separate debug info file.
10526 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10528 Support PIEs with no symfile_objfile.
10529 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10530 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10532 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10534 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10536 (svr4_static_exec_displacement): ... a new function.
10537 (svr4_exec_displacement): New function.
10538 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10539 new_offsets using alloca now. Remove variable old_chain and changed.
10540 Call objfile_relocate unconditionally now.
10542 2010-01-14 Doug Evans <dje@google.com>
10544 * gdbtypes.c (arch_flags_type): Fix comment.
10545 * gdbtypes.h (arch_composite_type): Fix comment.
10547 2009-01-14 Tristan Gingold <gingold@adacore.com>
10549 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10550 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10551 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10552 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10553 macho_add_oso_symfile.
10554 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10556 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10558 Tru64: Dead threads are never deleted.
10559 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10560 (dec_thread_count_gdb_threads): Fix counter increment.
10561 (dec_thread_add_gdb_thread): Fix *listp increment.
10562 (resync_thread_list): Fix bug in deletion of dead threads that
10563 caused all threads to be deleted, instead of just the dead ones.
10565 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10569 * python/python-internal.h: Add lazy_string_object_type
10571 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10572 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10573 * python/py-value.c (valpy_lazy_string): New function.
10574 (convert_value_from_python): Add lazy string conversion.
10575 * python/py-prettyprint.c (pretty_print_one_value): Check if
10576 return is also a lazy string.
10577 (print_string_repr): Add lazy string printing branch.
10578 (print_children): Likewise.
10579 * python/py-lazy-string.c: New file. Implement lazy strings.
10580 * python/python.c (_initialize_python): Call
10581 gdbpy_initialize_lazy_string.
10582 * varobj.c (value_get_print_value): Add lazy string printing
10583 branch. Account for encoding.
10584 * c-lang.c (c_printstr): Account for new encoding argument. If
10585 encoding is NULL, find encoding suited for type, otherwise use
10587 * language.h (language_defn): Add encoding argument.
10588 (LA_PRINT_STRING): Likewise.
10589 * language.c (unk_lang_printstr): Update to reflect new encoding
10590 argument to language_defn.
10591 * ada-lang.h (ada_printstr): Likewise.
10592 * c-lang.h (c_printstr): Likewise.
10593 * p-lang.h (pascal_printstr);
10594 * f-lang.c (f_printstr): Likewise.
10595 * m2-lang.c (m2_printstr): Likewise.
10596 * objc-lang.c (objc_printstr): Likewise.
10597 * p-lang.c (pascal_printstr): Likewise.
10598 * scm-lang.c (scm_printstr): Likewise.
10599 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10601 * ada-valprint.c (ada_printstr): Likewise.
10602 * f-valprint.c (f_val_print): Likewise
10603 * m2-valprint.c (m2_val_print): Likewise.
10604 * p-valprint.c (pascal_val_print): Likewise.
10605 * expprint.c (print_subexp_standard): Likewise.
10606 * valprint.c (val_print_string): Likewise.
10607 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10608 (SUBDIR_PYTHON_SRCS): Likewise.
10609 (py-lazy-string.o): New rule.
10611 2010-01-13 Doug Evans <dje@google.com>
10613 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10614 uninitialized" warning from gcc on local `tree'.
10616 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10618 Implement core awareness.
10620 * bcache.c (compare_ints): Remove
10621 (print_percentage): Use compare_positive_ints.
10622 * defs.h (compare_positive_ints): Declare.
10623 * linux-nat.h (struct lin_lwp): New field core.
10624 (linux_nat_core_of_thread_1): Declare.
10625 * linux-nat.c (add_lwp): Init the 'core' field.
10626 (linux_nat_wait_1): Record the core.
10627 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10628 (linux_nat_add_target): Register the above.
10629 * linux-thread-db.c (update_thread_core): New.
10630 (thread_db_find_new_threads): Update core information for
10632 * remote.c (struct private_thread_info): New.
10633 (free_private_thread_info, demand_private_info): New.
10634 (PACKET_qXfer_threads, use_osdata_threads): New.
10635 (struct thread_item, threads_parsing_context
10636 (start_thread, end_thread, thread_attributes)
10637 (thread_children, threads_children, threads_elements): New.
10638 (remote_threads_info): Try qXfer:threads before anything
10640 (remote_protocol_packets): Register qXfer:threads.
10641 (remote_open_1): Init use_osdata_threads.
10642 (struct stop_reply): New field 'core'.
10643 (remote_parse_stop_reply): Parse core number.
10644 (process_stop_reply): Record core number.
10645 (remote_xfer_partial): Handle qXfer:threads.
10646 (remote_core_of_thread): New.
10647 (init_remote_ops): Register remote_core_of_thread.
10648 (_initialize_remote): Register qXfer:read.
10649 * target.c (target_core_of_thread): New
10650 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10651 (struct target_ops): New field to_core_of_threads.
10652 (target_core_of_thread): Declare.
10653 * gdbthread.h (struct thread_info): New field private_dtor.
10654 * thread.c (print_thread_info): Report the core.
10655 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10656 * utils.c (compare_positive_ints): New.
10657 * features/threads.dtd: New.
10658 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10659 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10660 (do_nothing, free_vector_of_osdata_items)
10661 (splay_tree_int_comparator, free_splay_tree): New.
10662 (print_one_inferior_data): Implemented printing of selected
10663 inferiors. Collect and print cores.
10664 (output_cores): New.
10665 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10666 thread groups together with --available.
10668 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10670 * configure: Regenerate (for _STRUCTURED_PROC).
10672 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10674 Delete dead function.
10675 * ada-lang.c (extract_string): Delete. No longer used.
10677 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10679 Fix -Wunused warning in dec-thread.c.
10680 * dec-thread.c (dec_thread_count_gdb_threads)
10681 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10683 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10685 * ada-valprint.c (ada_print_floating): Remove trailing space.
10687 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10689 Add support for DW_AT_GNAT_descriptive_type.
10690 * gdbtypes.h (enum type_specific_kind): New enum.
10691 (struct main_type) [type_specific_field]: New component.
10692 [type_specific]: Add new component "gnat_stuff".
10693 (struct gnat_aux_type): New type.
10694 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10695 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10696 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10697 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10698 (TYPE_SPECIFIC_FIELD): New macros.
10699 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10700 type does not hold any cplus-specific data.
10701 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10702 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10703 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10704 cplus-specific data.
10705 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10706 Set new component TYPE_SPECIFIC_FIELD (type).
10707 (gnat_aux_default): New constant.
10708 (allocate_gnat_aux_type): New function.
10709 (init_type): Add initialization the type-specific stuff for
10710 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10711 (print_gnat_stuff): New function.
10712 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10713 specific data. Adjust code that prints the contents of the
10714 type-specific union using the TYPE_SPECIFIC_FIELD value.
10715 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10716 the type cplus stuff for Ada types.
10717 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10718 Error out if these routines are called with an Ada type.
10719 (read_structure_type, read_array_type, read_subrange_type):
10720 Add call to set_descriptive_type.
10721 (set_die_type): Initialize the gnat-specific data if necessary.
10722 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10724 * ada-lang.c (decode_constrained_packed_array_type): Use
10725 decode_constrained_packed_array_type instead of doing a standard
10726 lookup to locate a parallel type.
10727 (find_parallel_type_by_descriptive_type): New function.
10728 (ada_find_parallel_type_with_name): New function.
10729 (ada_find_parallel_type): Reimplement using
10730 ada_find_parallel_type_with_name.
10731 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10732 to check if type has a cplus stuff.
10733 * linespec.c (total_number_of_methods): Likewise.
10734 * mdebugread.c (new_type): Likewise.
10736 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10738 * NEWS: Document the 0b binary number prefix parsing.
10740 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10742 * objfiles.c (objfile_relocate1): Change the return type to int.
10743 Describe the new return value. Return non-zero if data changed.
10744 (objfile_relocate): New variable changed. Set it. Call
10745 breakpoint_re_set depending on CHANGED.
10747 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10749 Implement binary numbers parsing.
10750 * c-exp.y (parse_number): New case 'b' and 'B'.
10752 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10753 Tristan Gingold <gingold@adacore.com>
10755 * solib.c (info_sharedlibrary_command): Replace
10756 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10757 objfile_has_symbols.
10759 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10761 * NEWS: Document the improvements made to the mips-irix port.
10763 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10765 Fix the documentation of valprint.c:value_print.
10766 * valprint.c (value_print): Update the function description to
10767 mention that the syntax of the output follows the current_language,
10770 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 Fix displacement of separate debug info files.
10773 * objfiles.c (objfile_relocate): Rename to ...
10774 (objfile_relocate1): ... here and make it static. Extend the comment.
10775 (objfile_relocate): New function.
10776 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10777 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10778 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10779 allocated using alloca.
10780 * symfile.c (copy_section_addr_info): Remove.
10781 (build_section_addr_info_from_objfile): Make it global. New variables
10782 addr_bit and mask, use them.
10783 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10784 (copy_section_addr_info): Remove.
10786 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10788 Signal unwinder for mips-irix N32.
10789 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10791 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10792 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10793 (SIGCONTEXT_LO_OFF): New macros.
10794 (mips_irix_n32_tramp_frame_init): New function.
10795 (mips_irix_n32_tramp_frame): New static constant.
10796 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10798 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10800 Breakpoint in shared library does not work on mips-irix.
10801 * procfs.c: #include "observer.h".
10802 (procfs_inferior_created): New function, moving here the code
10803 which unsets the syssgi syscall-exit notifications.
10804 (procfs_create_inferior): Remove the code which unsets the syssgi
10805 syscall-exit notifications. It is too early to do this here.
10806 (_initialize_procfs): Attach the procfs_inferior_created observer.
10808 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10810 Wrong return convention for arrays (mips-irix).
10811 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10812 128 bits or smaller are returned the same way as structs
10813 and unions of the the same size.
10815 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10817 Cannot set the PC on mips-irix.
10818 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10819 register number, no the cooked one.
10821 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10823 Error while loading core file on mips-irix.
10824 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10825 if debugging from a core file.
10827 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10829 GDB hangs when attaching to process on mips-irix.
10830 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10831 attaching to a process.
10833 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10835 Use the correct breakpoint instruction on mips-irix.
10836 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10837 containing the correct breakpoint instruction to use on mips-irix.
10838 Use it when the osabi is GDB_OSABI_IRIX.
10840 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10842 -Wunused warning in procfs.c (mips-irix only).
10843 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10844 throughout instead of using praddset and prdelset respectively.
10846 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10848 GDB crash while stepping into function.
10849 * infrun.c (handle_inferior_event): Refetch the current frame
10850 after handling what.main_action, in case that pointer became
10853 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10855 Fix build failure of solaris-hosted cross debuggers.
10856 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10858 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10860 Fix build failure on sparc-solaris.
10861 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10863 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10865 Move some symfile code into subroutines.
10866 * symfile.h (relative_addr_info_to_section_offsets)
10867 (addr_info_make_relative): New prototypes.
10868 * symfile.c (default_symfile_offsets): Move a part to ...
10869 (relative_addr_info_to_section_offsets): ... this new function.
10870 (default_symfile_offsets): Call it.
10871 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10873 (addr_info_make_relative): ... this new function.
10875 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10877 Add from_tty to solib_create_inferior_hook.
10878 * infcmd.c (post_create_inferior): Move solib_add after
10879 solib_create_inferior_hook. Pass from_tty to
10880 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10881 0 from_tty and comment why.
10882 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10883 * linux-nat.c (linux_child_follow_fork): Likewise.
10884 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10885 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10887 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10888 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10889 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10890 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10891 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10892 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10893 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10894 Pass it to svr4_so_ops.solib_create_inferior_hook.
10895 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10897 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10899 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10901 * solib-target.c (solib_target_solib_create_inferior_hook): New
10902 parameter from_tty.
10903 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10904 it to ops->solib_create_inferior_hook.
10905 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10906 Move solib_add after solib_create_inferior_hook, call it now with
10907 from_tty as 0. New comment there.
10908 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10909 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10912 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10914 Fix multiexec race.
10915 * infrun.c (handle_inferior_event): Use get_thread_regcache
10916 with events ptid, not get_current_regcache.
10918 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10920 GDB crash with empty executable name (MinGW).
10921 * source.c (openp): Add assert that parameter string is not NULL.
10922 if parameter string is an empty string, then return with a failure
10925 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10927 Get rid of support for VAX Floats.
10928 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10929 (ada_vax_float_print_function): Delete.
10930 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10931 (ada_vax_float_print_function): Delete.
10932 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10933 (ada_print_type): Remove support for VAX floats.
10934 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10936 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10938 * stabsread.c (read_args): Handle zero arguments.
10940 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10942 Cannot find in-tree libiconv.a after reconfigure.
10943 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10944 that we can use, then cache the path to this archive.
10945 * configure: Regenerate.
10947 2010-01-07 Stan Shebs <stan@codesourcery.com>
10949 Make tracepoint operations go through target vector.
10950 * target.h (enum trace_find_type): New enum.
10951 (struct target_ops): New fields to_trace_init,
10952 to_download_tracepoint, to_download_trace_state_variable,
10953 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10954 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10955 to_set_disconnected_tracing.
10956 (target_trace_init): New macro.
10957 (target_download_tracepoint): New macro.
10958 (target_download_trace_state_variable): New macro.
10959 (target_trace_start): New macro.
10960 (target_trace_set_readonly_regions): New macro.
10961 (target_get_trace_status): New macro.
10962 (target_trace_stop): New macro.
10963 (target_trace_find): New macro.
10964 (target_get_trace_state_variable_value): New macro.
10965 (target_set_disconnected_tracing): New macro.
10966 * target.c (update_current_target): Inherit and set defaults for
10967 tracepoint operations.
10968 * tracepoint.c (default_collect): Make globally visible.
10969 (target_is_remote): Remove, along with all calls.
10970 (tvariables_info): Call target_get_trace_state_variable_value.
10971 (remote_set_transparent_ranges): Remove.
10972 (trace_start_command): Call target_trace_init,
10973 target_download_tracepoint, etc.
10974 (download_tracepoint): Remove.
10975 (trace_stop_command): Simplify.
10976 (stop_tracing): Call target_trace_stop.
10977 (get_trace_status): Call target_get_trace_status.
10978 (trace_status_command): Add case for targets that cannot trace.
10979 (finish_tfind_command): Change to take numerical arguments, call
10981 (trace_find_command): Update call to finish_tfind_command.
10982 (trace_find_pc_command): Ditto.
10983 (trace_find_tracepoint_command): Ditto.
10984 (trace_find_line_command): Ditto.
10985 (trace_find_range_command): Ditto.
10986 (trace_find_outside_command): Ditto.
10987 (set_disconnected_tracing_value): Call
10988 target_set_disconnected_tracing.
10989 * remote.c: Add protocol encoding bits from tracepoint.c.
10990 (trace_error): Move from tracepoint.c.
10991 (remote_get_noisy_reply): Ditto.
10992 (free_actions_list_cleanup_wrapper): Ditto.
10993 (free_actions_list): Ditto.
10994 (remote_trace_init): New function.
10995 (remote_download_tracepoint): New function.
10996 (remote_download_trace_state_variable): New function.
10997 (remote_trace_set_readonly_regions): New function.
10998 (remote_trace_start): New function.
10999 (remote_get_trace_status): New function.
11000 (remote_trace_stop): New function.
11001 (remote_trace_find): New function.
11002 (remote_download_trace_state_variable): New function.
11003 (remote_set_disconnected_tracing): New function.
11004 (init_remote_ops): Add tracepoint operations.
11006 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11008 2010-01-07 Tristan Gingold <gingold@adacore.com>
11010 * symfile.c (build_section_addr_info_from_objfile): New function.
11011 (symbol_file_add_separate): Don't use offsets from objfile but
11012 built an addr info.
11014 2010-01-06 Stan Shebs <stan@codesourcery.com>
11016 Support disconnected tracing.
11017 * infcmd.c (detach_command): Ask whether to stop tracing.
11018 * cli/cli-cmds.c (quit_command): Ditto.
11019 * breakpoint.h (struct breakpoint): New field number_on_target.
11020 * breakpoint.c (create_tracepoint_from_upload): New function.
11021 (get_tracepoint_by_number_on_target): New function.
11022 * remote.c (struct remote): New field disconnected_tracing.
11023 (remote_disconnected_tracing_feature): New function.
11024 (remote_protocol_features): Add DisconnectedTracing.
11025 (struct uploaded_tp): New struct.
11026 (uploaded_tps): New global.
11027 (get_uploaded_tp): New function.
11028 (find_matching_tracepoint): New function.
11029 (remote_get_tracing_state): New function.
11030 (remote_start_remote): Call it.
11031 * tracepoint.c (disconnected_tracing): New global.
11032 (trace_start_command): Initialize number_on_target.
11033 (stop_tracing): New function, split out from...
11034 (trace_stop_command): Call stop_tracing.
11035 (get_trace_status): New function, split out from...
11036 (trace_status_command): Call get_trace_status, add info on
11037 disconnection behavior.
11038 (disconnect_or_stop_tracing): New function.
11039 (finish_tfind_command): Translate from number on target.
11040 (trace_find_tracepoint_command): Translate to number on target.
11041 (send_disconnected_tracing_value): New function.
11042 (set_disconnected_tracing): New function.
11043 (_initialize_tracepoint): Add disconnected-tracing variable.
11044 * NEWS: Mention disconnected tracing.
11046 2010-01-06 Tristan Gingold <gingold@adacore.com>
11048 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11049 parameter to main_objfile. Iterate on all separate debug objfiles.
11050 * symfile.h (symbol_file_add_separate)
11051 (find_separate_debug_file_by_debuglink): Remove parameter names.
11052 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11053 (reread_symbols): Use free_objfile_separate_debug.
11054 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11056 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11057 (free_objfile_separate_debug): New prototypes.
11058 * objfiles.c (objfile_separate_debug_iterate): New function.
11059 (add_separate_debug_objfile, free_objfile_separate_debug): New
11061 (free_objfile): Use free_objfile_separate_debug. Adjust for
11062 multiple separate debug objfile.
11063 (objfile_has_symbols): Adjust comment. Iterate on all separate
11065 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11067 (lookup_minimal_symbol_text): Ditto.
11068 (lookup_minimal_symbol_by_pc_name): Ditto.
11069 (lookup_minimal_symbol_solib_trampoline): Ditto.
11070 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11073 2010-01-05 Stan Shebs <stan@codesourcery.com>
11075 Add fast tracepoints.
11076 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11077 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11078 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11079 * breakpoint.c (tracepoint_type): New function.
11080 (ALL_TRACEPOINTS): Use it.
11081 (should_be_inserted): Ditto.
11082 (bpstat_check_location): Ditto.
11083 (print_one_breakpoint_location): Ditto.
11084 (user_settable_breakpoint): Ditto.
11085 (set_breakpoint_location_function): Ditto.
11086 (disable_breakpoints_in_shlibs): Ditto.
11087 (delete_trace_command): Ditto.
11088 (print_it_typical): Add bp_fast_tracepoint case.
11089 (bpstat_what): Ditto.
11090 (print_one_breakpoint_location): Ditto.
11091 (allocate_bp_location): Ditto.
11093 (breakpoint_re_set_one): Ditto.
11094 (disable_command): Ditto.
11095 (enable_command): Ditto.
11096 (check_fast_tracepoint_sals): New function.
11097 (break_command_really): Call it.
11098 (ftrace_command): New function.
11099 (_initialize_breakpoint): Add ftrace command.
11100 * gdbarch.sh (fast_tracepoint_valid_at): New.
11101 * gdbarch.h, gdbarch.c: Regenerate.
11102 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11103 (i386_gdbarch_init): Use it.
11104 * remote.c (struct remote_state): New field fast_tracepoints.
11105 (PACKET_FastTracepoints): New packet config type.
11106 (remote_fast_tracepoint_feature): New function.
11107 (remote_protocol_features): Add FastTracepoints.
11108 (remote_supports_fast_tracepoints): New function.
11109 (_initialize_remote): Add FastTracepoints.
11110 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11111 * NEWS: Mention fast tracepoints.
11113 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11115 * gdb-gdb.py: New file.
11117 2010-01-05 Michael Snyder <msnyder@vmware.com>
11119 * infrun.c (handle_inferior_event): Fix typo in comment.
11121 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11123 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11125 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11127 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11129 (s390-linux32-expedite): Define.
11130 (s390-linux64-expedite): Define.
11131 (s390x-linux64-expedite): Define.
11132 * features/s390-acr.xml: New file.
11133 * features/s390-fpr.xml: New file.
11134 * features/s390-core32.xml: New file.
11135 * features/s390-core64.xml: New file.
11136 * features/s390x-core64.xml: New file.
11137 * features/s390-linux32.xml: New file.
11138 * features/s390-linux64.xml: New file.
11139 * features/s390x-linux64.xml: New file.
11140 * features/s390-linux32.c: New generated file.
11141 * features/s390-linux64.c: New generated file.
11142 * features/s390x-linux64.c: New generated file.
11144 * regformats/s390-linux32.dat: New generated file.
11145 * regformats/s390-linux64.dat: New generated file.
11146 * regformats/s390x-linux64.dat: New generated file.
11147 * regformats/reg-s390.dat: Remove.
11148 * regformats/reg-s390x.dat: Remove.
11150 * s390-nat.c: Include "auxv.h" and <elf.h>.
11151 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11152 (s390_target_wordsize): New function.
11153 (s390_auxv_parse): Likewise.
11154 (s390_get_hwcap): Likewise.
11155 (s390_read_description): Likewise.
11156 (_initialize_s390_nat): Install s390_auxv_parse and
11157 s390_read_description.
11159 * s390-tdep.c: Include "features/s390-linux32.c",
11160 "features/s390-linux64.c", and "features/s390x-linux64.c".
11161 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11162 (s390_register_call_saved): New function.
11163 (s390_register_name): Remove.
11164 (s390_register_type): Remove.
11165 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11166 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11167 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11168 (s390_pseudo_register_name): New function.
11169 (s390_pseudo_register_type): New function.
11170 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11171 Handle full GPR pesudos and varying pseudo register numbers.
11172 (s390_pseudo_register_write): Likewise
11173 (s390x_pseudo_register_read): Remove.
11174 (s390x_pseudo_register_write): Likewise.
11175 (s390_register_group): Remove.
11176 (s390_pseudo_register_group): New function.
11177 (s390_regmap_gregset): Add GPR upper halves.
11178 (s390x_regmap_gregset): Likewise.
11179 (s390_regmap_fpregset): Likewise.
11180 (s390_regmap_upper): New global variable.
11181 (s390_upper_regset): New global variable.
11182 (s390_upper_regset_sections): New global variable.
11183 (s390_regset_from_core_section): Handle GPR upper halves.
11184 (s390_core_read_description): New function.
11185 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11186 register information. Handle varying pseudo register numbers.
11187 (s390_backchain_frame_unwind_cache): Likewise.
11188 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11189 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11190 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11191 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11192 Handle varying pseudo register numbers.
11193 (s390_unwind_pc): Handle varying pseudo register numbers.
11194 (s390_dwarf2_prev_register): New function.
11195 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11196 register information. Handle varying pseudo register numbers.
11197 Install s390_dwarf2_prev_register to unwind full GPRs.
11198 (s390_gdbarch_init): Handle target descriptions. Assign varying
11199 pseudo register numbers. Install s390_adjust_frame_regnum.
11200 (_initialize_s390_tdep): Initialize target descriptions.
11202 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11203 (S390_NUM_REGS): Redefine to include upper half registers.
11204 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11205 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11206 (tdesc_s390_linux32): Add declaration.
11207 (tdesc_s390_linux64): Likewise.
11208 (tdesc_s390x_linux64): Likewise.
11210 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11212 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11213 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11214 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11215 (ppc_linux_vmx_regset_sections): Likewise.
11216 (ppc_linux_fp_regset_sections): Likewise.
11218 * corelow.c (get_core_register_section): Constify arguments.
11219 (get_core_registers): Use gdbarch_core_regset_sections instead
11220 of hard-coded platform-specific register section names.
11222 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11224 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11225 a register, assume the least-significant part is used.
11226 (write_pieced_value): Likewise.
11228 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11230 * printcmd.c: Include "arch-utils.h".
11231 (do_one_display): Re-parse expression if current architecture changed.
11233 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11234 Joel Brobecker <brobecker@adacore.com>
11236 * gdbtypes.c (check_typedef): New comment on type length.
11237 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11238 comment on type length.
11239 (value_primitive_field): Keep the original TYPE value, new comment.
11241 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11243 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11244 p_start. Change != comparisons to > and < comparisons.
11246 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11248 * cli/cli-script.c (process_next_line): Check P2 overrun.
11250 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11252 Update the copyright hearder to add year 2010 for most GDB files.
11254 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11256 Fix build failure in inf-ptrace.c.
11257 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11259 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11261 * top.c (print_gdb_version): Update copyright year.
11263 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11265 Fix break *FUN'address thread NUM.
11266 * ada-lex.l (task): Expand rule to also match the thread keyword.
11268 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11270 Fix break *FUN'address task NUM.
11271 * ada-lex.l (task): New rule.
11272 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11273 been built before using it.
11275 For older changes see ChangeLog-2009.
11281 version-control: never