1 2010-12-23 Yao Qi <yao@codesourcery.com>
3 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
4 set_gdbarch_deprecated_fp_regnum.
6 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
8 * inferior.c (remove_inferior_command): Don't remove an active inferior.
9 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
11 2010-12-21 Tom Tromey <tromey@redhat.com>
13 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
15 2010-12-20 Yao Qi <yao@codesourcery.com>
17 * arm-tdep.c (arm_register_reggroup_p): New.
18 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
21 2010-12-20 Yao Qi <yao@codesourcery.com>
23 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
24 * features/arm-with-iwmmxt.c: Regenerate.
25 * features/arm-with-neon.c: Regenerate.
26 * features/arm-with-vfpv2.c: Regenerate.
27 * features/arm-with-vfpv3.c: Regenerate.
29 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
31 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
32 (get_other_inferior): New.
34 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
36 * python/py-progspace.c (py_free_pspace): Obtain arch another
37 way to avoid dereferencing a null pointer.
39 2010-12-17 Michael Snyder <msnyder@vmware.com>
41 * utils.c (do_my_cleanups): Comment fix-up.
43 2010-12-17 Kevin Buettner <kevinb@redhat.com>
45 * mips-tdep.c (make_mips16_addr): New function.
46 (mips_elf_make_msymbol_special): Don't set the low bit in the
48 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
49 indicating mips16 address, if present.
50 (mips_write_pc): Set bit indicating mips16 address when in a mips16
52 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
53 but for each function pointer argument to inferior function call.
55 2010-12-17 Tom Tromey <tromey@redhat.com>
57 * psympriv.h (struct partial_symtab) <readin>: Move field
60 2010-12-16 Kevin Buettner <kevinb@redhat.com>
62 * mips-tdep.c (mips_convert_register_float_case_p)
63 (mips_convert_register_gpreg_case_p): New functions.
64 (mips_convert_register_p): Invoke new functions above.
65 (mips_register_to_value): Add case for fetching value shorter
66 than 64 bits from a 64-bit register.
67 (mips_value_to_register): Add case for storing value shorter
68 than 64 bits into a 64-bit register.
70 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
72 * python/py-value.c (value_object_type) <tp_flags>: Add
75 2010-12-16 Mike Frysinger <vapier@gentoo.org>
77 * NEWS: Mention new sim --map-info flag.
79 2010-12-15 Doug Evans <dje@google.com>
81 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
82 "save gdb-index" command.
84 2010-12-15 Tom Tromey <tromey@redhat.com>
86 * infrun.c (save_infcall_control_state): Handle the
87 exception-resume breakpoint.
88 (restore_infcall_control_state): Likewise.
89 (discard_infcall_control_state): Likewise.
91 2010-12-15 Kevin Buettner <kevinb@redhat.com>
93 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
94 cooked values that are being transferred to 64-bit raw registers.
95 (mips_pseudo_register_read): Revise to preserve symmetry with
96 mips_pseudo_register_write().
98 2010-12-15 Greg Watson <g.watson@computer.org>
100 * f-exp.y (yylex): Check entire token against keywords.
102 2010-12-15 Doug Evans <dje@google.com>
104 Rename "maint set python auto-load" to "set auto-load-scripts".
106 * python/py-auto-load.c (auto_load_scripts): Renamed from
108 (load_auto_scripts_for_objfile): Update.
109 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
110 "set auto-load-scripts".
112 2010-12-14 Kevin Buettner <kevinb@redhat.com>
114 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
115 than unsigned, values in registers.
117 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
119 * valops.c (value_one): Use get_array_bounds to compute the number
120 of array elements instead of dividing the length of the array by the
121 length of the element types.
122 * valarith.c (value_complement, value_neg): Likewise.
124 2010-12-14 Joel Brobecker <brobecker@adacore.com>
126 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
127 and __fp_scr respectively throughout.
128 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
129 Python using GCC on IRIX.
130 * configure: Regenerate.
132 2010-12-13 Kevin Buettner <kevinb@redhat.com>
134 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
135 when attaching, on the names in bkpt_names: _start, __start, and
138 2010-12-12 Stan Shebs <stan@codesourcery.com>
140 * value.c (value_of_internalvar): Add case for trace state
143 2010-12-12 Doug Evans <dje@google.com>
145 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
146 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
147 section. Delete members lines full_names. Rename read_lines to
149 (quick_file_names): New struct.
150 (hash_file_name_entry, eq_file_name_entry): New functions.
151 (delete_file_name_entry, create_quick_file_names_table): New functions.
152 (dwarf2_read_index): Initialize quick_file_names_table.
153 (dw2_get_file_names): Renamed from dw2_require_line_header.
154 Return pointer to quick_file_names entry. All callers updated.
155 (dw2_get_real_path): Renamed from dw2_require_full_path.
156 Replace per_cu arg with pointer to quick_file_names entry.
158 (dw2_free_cached_file_names): New function.
159 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
160 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
161 the OBJF_READNOW case.
162 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
164 2010-12-12 Mark Kettenis <kettenis@gnu.org>
166 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
167 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
169 2010-12-12 Mark Kettenis <kettenis@gnu.org>
171 * sparc-tdep.c: Fix typo in comment.
173 2010-12-10 Doug Evans <dje@google.com>
175 * dwarf2read.c: Whitespace cleanup, plus comment additions.
178 2010-12-10 Tom Tromey <tromey@redhat.com>
180 * NEWS: Document exception-handling change.
182 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
184 * mi/mi-parse.c (mi_parse): Wrong error message.
186 2010-12-09 Doug Evans <dje@google.com>
188 * symfile.h (quick_symbol_functions): Clarify usage of
189 map_symbol_filenames.
191 2010-12-09 Tom Tromey <tromey@redhat.com>
193 * mi/mi-parse.h (mi_parse): Update.
194 * mi/mi-parse.c (mi_parse_cleanup): New function.
195 (mi_parse): Add 'token' argument. Throw exception on error.
196 * mi/mi-main.c (mi_print_exception): New function.
197 (mi_execute_command): Use mi_print_exception. Catch exceptions
200 2010-12-09 Tom Tromey <tromey@redhat.com>
203 * thread.c (clear_thread_inferior_resources): Call
204 delete_longjmp_breakpoint.
205 * infrun.c (handle_inferior_event): Handle exception breakpoints.
206 (handle_inferior_event): Likewise.
207 (insert_exception_resume_breakpoint): New function.
208 (check_exception_resume): Likewise.
209 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
210 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
211 (step_1): Set thread's initiating frame.
212 (until_next_continuation): New function.
213 (until_next_command): Support exception breakpoints.
214 (finish_command_continuation): Delete longjmp breakpoint.
215 (finish_forward): Support exception breakpoints.
216 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
217 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
218 bp_exception_master>: New constants.
219 (struct bpstat_what) <is_longjmp>: New field.
220 (set_longjmp_breakpoint): Update.
221 * breakpoint.c (create_exception_master_breakpoint): New function.
222 (update_breakpoints_after_exec): Handle bp_exception_master. Call
223 create_exception_master_breakpoint.
224 (print_it_typical): Handle bp_exception_master, bp_exception.
225 (bpstat_stop_status): Handle bp_exception_master.
226 (bpstat_what): Handle bp_exception_master, bp_exception,
228 (bptype_string): Likewise.
229 (print_one_breakpoint_location): Likewise.
230 (allocate_bp_location): Likewise.
231 (set_longjmp_breakpoint): Handle exception breakpoints. Change
233 (delete_longjmp_breakpoint): Handle exception breakpoints.
235 (struct until_break_command_continuation_args) <thread_num>: New
237 (until_break_command_continuation): Call
238 delete_longjmp_breakpoint.
239 (until_break_command): Support exception breakpoints.
240 (delete_command): Likewise.
241 (breakpoint_re_set_one): Likewise.
242 (breakpoint_re_set): Likewise.
244 2010-12-08 Doug Evans <dje@google.com>
246 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
248 * gdbtypes.c (check_typedef): Tweak comment.
251 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
252 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
253 (struct addrmap_index_data): New struct.
254 (add_address_entry): Remove arg `pst', new args `start', `end'.
255 (add_address_entry_worker, write_address_map): New functions.
256 (write_psymtabs_to_index): Address table generation moved to
257 write_address_map. Build a table mapping psymtab to CU index
260 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
263 * symfile.h (quick_symbol_functions): Clarify usage of
264 expand_symtabs_with_filename.
265 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
266 comp units, ignore type units.
268 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
270 2010-12-07 Doug Evans <dje@google.com>
272 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
276 * NEWS: Mention -data-directory.
277 * main.c (captured_main): Recognize -data-directory.
279 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
281 * mi/mi-parse.c (mi_parse): Missing else.
283 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
285 * configure.tgt: Accept microblaze*-*-linux* for linux target
286 and microblaze*-*-* for as target.
288 2010-12-02 Keith Seitz <keiths@redhat.com>
290 * linespec.c (find_method): Move name canonicalization outside
292 Be paranoid and use a cleanup.
294 2010-12-01 Doug Evans <dje@google.com>
296 * dwarf2read.c (save_gdb_index_command): Add comment.
298 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
300 * valops.c (value_assign): Returned value is never lazy. If a
301 C++ class type is returned, fix incorrect enclosing type / embedded
302 offset. If internal variable is returned, allocate new internalvar
303 value using value_of_internalvar.
305 * NEWS: Document changes in behavior of "print x = 0" and similar
308 2010-11-29 Doug Evans <dje@google.com>
310 * python/lib/gdb/printing.py (register_pretty_printer): Change
311 printer-name:subprinter-name to printer-name;subprinter-name.
312 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
314 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
316 2010-11-29 Tom Tromey <tromey@redhat.com>
318 * opencl-lang.c (lval_func_check_synthetic_pointer): New
320 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
322 (value_bits_synthetic_pointer): Declare.
323 * value.c (value_bits_synthetic_pointer): New function.
324 * valprint.c (valprint_check_validity): Handle synthetic
326 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
327 * valarith.c (value_ptradd): Use set_value_component_location.
328 * p-valprint.c (pascal_object_print_value_fields): Handle
330 * jv-valprint.c (java_print_value_fields): Handle synthetic
332 * dwarf2read.c (dwarf_stack_op_name): Add
333 DW_OP_GNU_implicit_pointer.
334 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
335 arguments. Handle location lists.
336 (fill_in_loclist_baton): New function.
337 (dwarf2_symbol_mark_computed): Use it.
338 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
339 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
341 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
342 find_location_expression. No longer static. Update all callers.
343 (dwarf_expr_frame_pc): New function.
344 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
346 (struct piece_closure) <per_cu>: New field.
347 (allocate_piece_closure): Add per_cu argument.
348 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
349 (check_pieced_value_bits): Remove validity argument, add check_for
350 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
351 (check_pieced_value_validity, check_pieced_value_invalid):
353 (check_pieced_synthetic_pointer): New function.
354 (get_frame_address_in_block_wrapper): New function.
355 (indirect_pieced_value): New function.
356 (pieced_value_funcs): Update.
357 (invalid_synthetic_pointer): New function.
358 (dwarf2_evaluate_loc_desc_full): Rename from
359 dwarf2_evaluate_loc_desc. Add byte_offset argument.
360 (dwarf2_evaluate_loc_desc): Rewrite.
361 (dwarf2_loc_desc_needs_frame): Set new field on context.
362 (get_ax_pc): New function.
363 (disassemble_dwarf_expression): Handle
364 DW_OP_GNU_implicit_pointer.
365 * dwarf2expr.h (enum dwarf_value_location)
366 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
367 (struct dwarf_expr_context) <get_frame_pc>: New field.
368 (struct dwarf_expr_piece) <v.ptr>: New field.
369 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
370 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
371 * dwarf2-frame.c (no_get_frame_pc): New function.
372 (execute_stack_op): Set new field on context.
373 * cp-valprint.c (cp_print_value_fields): Handle synthetic
376 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
380 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
382 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
384 Fix step_resume_breakpoint unsaved during an infcall.
385 * gdbthread.h (struct thread_control_state): Move here field
386 step_resume_breakpoint ...
387 (struct thread_info): ... from here.
388 * infrun.c (save_infcall_control_state): Reset
389 control.step_resume_breakpoint to NULL.
390 (restore_infcall_control_state, discard_infcall_control_state): Delete
391 control.step_resume_breakpoint.
392 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
395 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
397 Rename and move inferior_thread_state and inferior_status.
398 * gdbthread.h (struct thread_control_state): New struct, move fields
399 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
400 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
401 stop_step and stop_bpstat here from struct thread_info.
402 (struct thread_suspend_state): New struct, move field stop_signal here
403 from struct thread_info.
404 (struct thread_info): Move the fields above from this struct.
405 * inferior.h: Move the inferior_thread_state and inferior_status
406 declarations comment to their definitions at infrun.c.
407 (struct inferior_control_state): New struct, move field stop_soon from
408 struct inferior here.
409 (struct inferior_suspend_state): New empty struct.
410 (struct inferior): New fields control and suspend. Move out field
412 * infrun.c (struct inferior_thread_state): Rename to ...
413 (infcall_suspend_state): ... here. Replace field stop_signal by
414 fields thread_suspend and inferior_suspend.
415 (save_inferior_thread_state): Rename to ...
416 (save_infcall_suspend_state): ... here. New variable inf. Update the
418 (restore_inferior_thread_state): Rename to ...
419 (restore_infcall_suspend_state): ... here. New variable inf. Update
420 the code for new fields.
421 (do_restore_inferior_thread_state_cleanup): Rename to ...
422 (do_restore_infcall_suspend_state_cleanup): ... here.
423 (make_cleanup_restore_inferior_thread_state): Rename to ...
424 (make_cleanup_restore_infcall_suspend_state): ... here.
425 (discard_inferior_thread_state): Rename to ...
426 (discard_infcall_suspend_state): ... here.
427 (get_inferior_thread_state_regcache): Rename to ...
428 (get_infcall_suspend_state_regcache): ... here.
429 (struct inferior_status): Rename to ...
430 (struct infcall_control_state): ... here. Replace fields
431 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
432 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
433 stop_step, stop_bpstat and stop_soon by fields thread_control and
435 (save_inferior_status): Rename to ...
436 (save_infcall_control_state): ... here. Update the code for new
438 (restore_inferior_status): Rename to ...
439 (restore_infcall_control_state): ... here. Update the code for new
441 (do_restore_inferior_status_cleanup): Rename to ...
442 (do_restore_infcall_control_state_cleanup): ... here.
443 (make_cleanup_restore_inferior_status): Rename to ...
444 (make_cleanup_restore_infcall_control_state): ... here.
445 (discard_inferior_status): Rename to ...
446 (discard_infcall_control_state): ... here.
447 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
448 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
449 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
450 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
451 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
452 references to the moved fields and renamed functions.
454 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
456 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
458 (save_inferior_thread_state): Reset tp->stop_signal.
460 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
462 * infcall.c (call_function_by_hand): Remove variable
463 caller_state_cleanup.
465 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
469 * breakpoint.c (is_marker_spec): Check for NULL.
471 2010-11-25 Pedro Alves <pedro@codesourcery.com>
473 * breakpoint.h: No longer include python.h or python-internal.h.
474 (struct breakpoint_object): Forward declare.
475 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
476 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
477 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
479 (gdbpy_breakpoint_created): Remove casts around py_bp_object
482 2010-11-24 Joel Brobecker <brobecker@adacore.com>
484 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
485 only if HAVE_ELF is defined.
487 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
490 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
491 (save_inferior_status) <stepping_over_breakpoint>
492 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
494 (struct inferior_status) <step_resume_break_address>: Remove.
496 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
499 * infrun.c (struct inferior_status, save_inferior_status)
500 (restore_inferior_status): Group and reorder the fields, comment their
503 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
507 (struct dict_vector) <iter_match_first, iter_match_next>
508 (iter_match_first_hashed, iter_match_next_hashed)
509 (iter_match_first_linear, iter_match_next_linear)
510 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
511 (iter_match_next_hashed, iter_match_first_linear)
512 (iter_match_next_linear): Use symbol_compare_ftype.
513 * dictionary.h: Include symfile.h.
514 (dict_iter_match_first, dict_iter_match_next): Use
515 symbol_compare_ftype.
516 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
517 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
518 (map_matching_symbols_psymtab): Likewise.
519 * symfile.h (symbol_compare_ftype): New typedef.
520 (struct quick_symbol_functions) <map_matching_symbols): Use
521 symbol_compare_ftype.
523 2010-11-23 Tom Tromey <tromey@redhat.com>
525 * configure: Rebuild.
526 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
528 2010-11-19 Tom Tromey <tromey@redhat.com>
530 * Makefile.in (SUBDIRS): Add doc.
531 * configure: Rebuild.
532 * configure.ac: Don't configure in doc. Create doc/Makefile.
534 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
538 * python/py-inferior.c (find_thread_object): Check if PIDGET
541 010-11-22 Joel Brobecker <brobecker@adacore.com>
543 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
545 2010-11-22 Joel Brobecker <brobecker@adacore.com>
547 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
548 Return the original type if the main type portions match rather
549 than when the type themselves match.
551 2010-11-22 Joel Brobecker <brobecker@adacore.com>
553 * ada-lang.c (ada_template_to_fixed_record_type_1):
554 For dynamic fields, check the field size against the maximum
557 2010-11-22 Joel Brobecker <brobecker@adacore.com>
559 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
561 (mips_irix_n32_stack_tramp_frame): New static global.
562 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
565 2010-11-22 Jerome Guitton <guitton@adacore.com>
567 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
570 2010-11-22 Joel Brobecker <brobecker@adacore.com>
572 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
573 if type1 is a typedef.
575 2010-11-22 Joel Brobecker <brobecker@adacore.com>
577 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
578 "_finalizer" to the list.
580 2010-11-22 Joel Brobecker <brobecker@adacore.com>
582 * symfile.c: Remove all "#if 0"/"#endif" blocks.
584 2010-11-22 Joel Brobecker <brobecker@adacore.com>
586 * symfile.c: Add missing second space after period in various comments.
588 2010-11-22 Joel Brobecker <brobecker@adacore.com>
590 * ada-typeprint.c (print_array_type): Fix formatting in comment.
591 (print_selected_record_field_types): Fix formatting in function
594 2010-11-22 Joel Brobecker <brobecker@adacore.com>
596 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
597 in name of "show ravenscar" prefix command name.
599 2010-11-22 Joel Brobecker <brobecker@adacore.com>
601 * ravenscar-thread.c (show_ravenscar_task_switching_command):
602 Add missing '\n' in output.
604 2010-11-22 Joel Brobecker <brobecker@adacore.com>
606 * ravenscar-thread.c (running_thread_name): Change value.
607 (read_thread_id): Remove advance declaration.
608 (get_running_thread_msymbol): New function.
609 (has_ravenscar_runtime): Use get_running_thread_msymbol to
610 compute msym_running_thread.
611 (get_running_thread_id): Renames read_thread_id. Slight modifications
612 to not take any argument anymore, using get_running_thread_msymbol
613 to determine which symbol to use instead.
614 (ravenscar_running_thread): Use get_running_thread_id instead of
617 2010-11-22 Joel Brobecker <brobecker@adacore.com>
619 * ravenscar-sparc-thread.c (supply_register_at_address):
620 Fix passing of buf in call to regcache_raw_supply.
622 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
624 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
626 2010-11-22 Tom Tromey <tromey@redhat.com>
628 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
630 2010-11-19 Keith Seitz <keiths@redhat.com>
632 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
633 Remove extraneous '/' after $(DESTDIR).
634 (PYTHON_INSTALL_DIR): Likewise.
636 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
638 Fix stale memory references.
639 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
642 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
643 Tom Tromey <tromey@redhat.com>
645 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
646 (.PHONY): Remove for .y outputs.
648 2010-11-19 Will Drewry <wad@google.com>
649 Tavis Ormandy <taviso@google.com>
650 Jan Kratochvil <jan.kratochvil@redhat.com>
652 * dwarf2read.c (decode_locdesc): Enforce location description stack
655 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
657 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
658 instruction is found.
660 2010-11-17 Tom Tromey <tromey@redhat.com>
662 * value.c (value_entirely_optimized_out): Check the
663 'check_any_valid' field.
665 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * ada-lang.c (modify_general_field): Remove.
668 (make_array_descriptor): Replace all modify_general_field calls by
670 * value.c (modify_field): Update comment. New variable bytesize.
671 Normalize BITPOS. Initialize BYTESIZE, use it.
673 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
675 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
676 elements after xfree.
678 2010-11-16 Tom Tromey <tromey@redhat.com>
680 * gdb-add-index.sh: Really remove.
682 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
685 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
686 (init_one_comp_unit): ... this one.
687 (prepare_one_comp_unit): New prototype.
688 (dw2_require_line_header, process_psymtab_comp_unit): Use
690 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
691 (load_partial_comp_unit): Remove variable attr. Use
692 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
693 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
694 prepare_one_comp_unit.
695 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
696 Use prepare_one_comp_unit.
697 (alloc_one_comp_unit): Rename to ...
698 (init_one_comp_unit): ... here and remove there calloc, new parameter
700 (prepare_one_comp_unit): New function.
702 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
704 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
705 possible used of uninitialized variable.
707 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
709 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
710 (rs6000_gdbarch_init): Call it.
712 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
714 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
715 instructions if debugging an E500 binary.
717 2010-11-12 Tom Tromey <tromey@redhat.com>
719 * varobj.c (value_get_print_value): Rearrange. Pass stream to
720 apply_varobj_pretty_printer.
721 * c-lang.c: Include exceptions.h.
722 (c_get_string): Throw MEMORY_ERROR when appropriate.
723 * python/py-prettyprint.c (enum string_repr_result): New.
724 (print_stack_unless_memory_error): New function.
725 (print_string_repr): Change return type. Use
726 print_stack_unless_memory_error.
727 (print_children): Use print_stack_unless_memory_error.
728 (apply_val_pretty_printer): Update. Don't print children if
729 string representation threw an exception.
730 (apply_varobj_pretty_printer): Add 'stream' argument. Use
731 print_stack_unless_memory_error.
732 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
734 (_initialize_python): Initialize them.
735 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
736 gdbpy_convert_exception.
737 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
738 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
739 (gdbpy_convert_exception): Declare.
740 (apply_varobj_pretty_printer): Update.
741 * python/py-utils.c (gdbpy_convert_exception): New function.
743 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
745 * mi/mi-main.c (mi_cmd_target_detach): Accept new
746 thread-group id format.
748 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
750 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
752 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
754 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
756 (BPPY_SET_REQUIRE_VALID): Ditto.
757 (bpnum_is_valid): Delete function.
758 (bppy_get_visibility): New function.
759 (bppy_new): Parse for, and validate internal keyword. Pass
760 internal keyword to breakpoint or watchpoint functions.
761 (build_bp_list): New function.
762 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
763 iterate_over_breakpoints.
764 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
766 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
767 to internal breakpoint chain.
769 * breakpoint.c (set_breakpoint_number): New function.
770 (breakpoint_1): Check if breakpoint number is more than zero.
771 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
772 (create_breakpoint_sal): Take a new parameter called internal.
773 Call set_breakpoint_number with internal parameter. Do not
774 mention internal breakpoints. All callers updated.
775 (create_breakpoint): Ditto.
776 (create_breakpoints_sal): Ditto.
777 (watch_command_1): Ditto.
778 (watch_command_wrapper): Take a new parameter called internal.
780 (rwatch_command_wrapper): Ditto.
781 (awatch_command_wrapper): Ditto.
782 (save_breakpoints): Update breakpoint save condition check.
783 (iterate_over_breakpoints): New function.
784 * breakpoint.h: Add conditional python includes. Add py_bp_object
785 and comment to struct breakpoint. Update all callers.
786 * defs.h: Add PyObject definition for GDB builds without Python.
788 2010-11-10 Doug Evans <dje@google.com>
790 * python/lib/gdb/command/pretty_printers.py
791 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
793 * value.c (set_value_enclosing_type): Renamed from
794 value_change_enclosing_type. All callers updated.
795 * value.h (set_value_enclosing_type): Update.
796 * valops.c (value_full_object): Always return a copy if we need to
797 make changes to the input value.
799 2010-11-09 Pedro Alves <pedro@codesourcery.com>
801 * breakpoint.c (watch_command_1): Get a pointer of the lazy
802 version of the expression's value, even if reading the value from
803 memory fails. When creating a -location watchpoint, get the
804 value's address from the lazy value pointer.
806 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * infrun.c (restore_inferior_thread_state): Use
809 discard_inferior_thread_state to free the data.
810 (discard_inferior_thread_state): xfree also siginfo_data.
812 2010-11-05 Doug Evans <dje@google.com>
814 Make gdb.parameter("directories") work.
815 New command "set directories".
816 * NEWS: Document them.
817 * source.c (set_directories_command): New function.
818 (show_directories_1): Renamed from show_directories.
820 (show_directories_command): New function.
821 (_initialize_source): Install "directories" as a set/show
822 variable instead of just a show command.
824 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
826 * NEWS: Mention OpenCL C language support.
827 * Makefile.in (SFILES): Add opencl-lang.c.
828 (COMMON_OBS): Add opencl-lang.o.
829 * opencl-lang.c: New File
830 * defs.h (enum language): Add language_opencl.
831 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
832 IBM XL C OpenCL compiler.
833 * c-lang.h: Include "parser-defs.h".
834 (evaluate_subexp_c): Declare.
835 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
836 (c_op_print_tab): Add declaration.
837 * eval.c (binop_promote): Handle language_opencl.
838 * c-exp.y: Lookup the primitive types instead of referring to the
841 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
843 Fix configure --enable-plugins --without-python.
844 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
845 * configure: Regenerate.
847 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
849 * solib.c (solib_read_symbols): Call exception_fprintf even without
850 FROM_TTY. Print also so->so_name.
852 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
854 * gdbtypes.h (struct rank): Created subrank.
855 * gdbtypes.c: Initialized subrank for all
857 (distance_to_ancestor): New function.
858 (is_ancestor): Use distance_to_ancestor.
859 (is_public_ancestor): Ditto.
860 (sum_ranks): Handle subrank.
861 (compare_ranks): Ditto.
862 (rank_one_type): Subrank base conversions.
864 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
866 * gdbtypes.h: Create struct rank.
867 Convert all 'BADNESS' macros to const struct rank declarations.
868 (sum_ranks): New function.
869 (compare_ranks): New function.
870 * valops.c (find_oload_champ): Updated.
871 (classify_oload_match): Use compare_ranks.
873 (compare_parameters): Use compare_ranks.
874 * gdbtypes.c: Initialize 'BADNESS' constants.
875 (sum_ranks): New function.
876 (compare_ranks): New function.
877 (compare_badness): Use compare_ranks.
878 (rank_function): Use global constants instead of literals.
879 (rank_one_type): Ditto.
883 2010-11-04 Doug Evans <dje@google.com>
885 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
886 (find_pretty_printer): Fix comments.
888 2010-11-04 Hui Zhu <teawater@gmail.com>
890 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
892 2010-11-03 Joel Brobecker <brobecker@adacore.com>
894 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
895 and `len' declaration and computation inside block where they
898 2010-11-03 Joel Brobecker <brobecker@adacore.com>
900 * valprint.c (val_print_array_elements): Put back handling of
903 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
905 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
906 DIE and set the length of the type.
907 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
908 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
909 return 0 if the corresponding bounds of the type are undefined.
910 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
911 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
912 (val_print_array_elements): Use get_array_bounds to compute the number
913 of array elements instead of dividing the length of the array by the
914 length of the element types.
915 * valarith.c (vector_binop): Likewise.
916 * valops.c (value_cast): Likewise.
917 * c-valprint.c (c_val_print): Likewise.
918 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
920 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
922 * valarith.c (value_pos, value_neg, value_complement): Handle
924 * valops.c (value_one): Likewise.
926 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
928 * value.h (value_non_lval): Declare.
929 * value.c (value_non_lval): New function.
930 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
931 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
934 2010-11-02 Doug Evans <dje@google.com>
936 New python module gdb.printing, and new commands info pretty-printer,
937 enable pretty-printer, disable pretty-printer.
938 * NEWS: Mention them.
939 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
940 gdb/command/__init__.py, gdb/command/pretty_printers.py.
941 * python/lib/gdb/__init__.py: Install pretty-printer commands.
942 * python/lib/gdb/printing.py: New file.
943 * python/lib/gdb/command/__init__.py: New file.
944 * python/lib/gdb/command/pretty_printers.py: New file.
946 2010-11-02 Tom Tromey <tromey@redhat.com>
948 * NEWS: Mention Guile removal.
949 * defs.h (enum language) <language_scm>: Remove.
950 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
952 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
953 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
954 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
957 2010-11-02 Doug Evans <dje@google.com>
959 * top.c: #include "python/python.h".
960 (gdb_init): Add a comment regarding initialize_all_files.
961 Call finish_python_initialization at the end.
962 * python/python.h (finish_python_initialization): Declare.
963 * python/python.c (finish_python_initialization): New function.
964 (_initialize_python): Move python-implemented initialization there
966 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
968 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
971 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
972 Pedro Alves <pedro@codesourcery.com>
973 * gdbthread.h (currently_stepping): New declaration.
974 * infrun.c (currently_stepping): Remove the forward declaration.
975 (currently_stepping): Make it global.
976 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
977 variables tp and step, initialized them. Pass STEP to to_resume.
978 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
979 * remote.c (currently_stepping_callback): New.
980 (remote_vcont_resume)
981 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
982 New variable tp. Call currently_stepping_callback and step such
985 2010-11-01 Hui Zhu <teawater@gmail.com>
987 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
989 2010-10-28 Hui Zhu <teawater@gmail.com>
991 * tracepoint.c (trace_save): Change utp->actions to
994 2010-10-26 Joel Brobecker <brobecker@adacore.com>
996 * (_FILE_OFFSET_BITS): Fix typo in comment.
998 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1000 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1001 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1002 (PyEval_ReleaseLock): Define as nothing.
1004 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1006 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1007 by call to FILENAME_CMP.
1009 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1011 * dictionary.c (dict_hash): Move assignment out of if condition.
1013 2010-10-22 Jie Zhang <jie@codesourcery.com>
1015 * Makefile.in (install): Remove dependency of install-only and
1016 recursively invoke make for install-only.
1017 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1018 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1020 2010-10-20 Hui Zhu <teawater@gmail.com>
1022 * tracepoint.c (tfile_get_traceframe_address): Call
1023 extract_signed_integer.
1024 (tfile_trace_find): Call extract_signed_integer and
1025 extract_unsigned_integer. Change data_size to unsigned int.
1026 (tfile_fetch_registers): Call extract_unsigned_integer.
1027 (tfile_xfer_partial): Ditto.
1028 (tfile_get_trace_state_variable_value): Call
1029 extract_signed_integer and extract_unsigned_integer.
1031 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1033 * remote.c (remote_get_threadlist): If we got empty
1034 response, bail out immediately, and don't emit any
1037 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1039 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1040 for "mov pc, REG" as well.
1041 (thumb_instruction_changes_pc): Likewise.
1043 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1046 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1047 * eval.c (evaluate_subexp_standard): Check for overload of
1049 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1050 (value_x_unop): Ditto.
1051 * valops.c: Include "exceptions.h".
1052 (find_overload_match): Throw NOT_FOUND_ERROR.
1053 (value_struct_elt): Ditto.
1055 2010-10-19 Tom Tromey <tromey@redhat.com>
1057 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1059 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1061 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1062 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1064 Make all other conversions illegal.
1066 2010-10-18 Doug Evans <dje@google.com>
1068 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1069 assumptions of when this case happens. Print "<unnamed typedef>".
1071 2010-10-18 Tom Tromey <tromey@redhat.com>
1073 * valprint.c (val_print_string): Pass 'encoding' to
1076 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1078 Fix the `stopped language detection' testcase for gcc-4.5.
1079 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1080 * symfile.c (set_initial_language): Move variable filename to a more
1081 inner block. Prefer LANGUAGE_OF_MAIN.
1082 * symtab.c (language_of_main): New variable.
1083 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1084 * symtab.h (language_of_main): New declaration.
1086 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1087 Pedro Alves <pedro@codesourcery.com>
1089 * gdbthread.h (currently_stepping): New declaration.
1090 * infrun.c (currently_stepping): Remove the forward declaration.
1091 (currently_stepping): Make it global.
1092 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1093 variables tp and step, initialized them. Pass STEP to to_resume.
1094 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1095 * remote.c (currently_stepping_callback): New.
1096 (remote_vcont_resume)
1097 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1098 New variable tp. Call currently_stepping_callback and step such
1101 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1103 * infrun.c (follow_exec): Replace symbol_file_add_main by
1104 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1106 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1108 * objfiles.c (free_all_objfiles): Likewise.
1109 * remote-m32r-sdi.c (m32r_load): Likewise.
1110 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1111 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1112 clear_symtab_users with ADD_FLAGS.
1113 (reread_symbols): Use parameter 0 for clear_symtab_users.
1114 (clear_symtab_users): New parameter add_flags. Do not call
1115 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1116 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1117 * symtab.h (clear_symtab_users): New parameter add_flags.
1119 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 Fix GCC false warning.
1122 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1124 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1126 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1127 display of type of method arguments.
1129 2010-10-15 Tom Tromey <tromey@redhat.com>
1132 * varobj.c (value_get_print_value): Use val_print_string to print
1134 * python/py-prettyprint.c (print_string_repr): Use
1135 val_print_string to print lazy strings. Fix cleanup logic.
1136 (print_children): Likewise.
1137 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1138 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1139 Change return type to 'void', add 'addr' argument.
1140 * value.h (val_print_string): Update.
1141 * valprint.c (val_print_string): Add 'encoding' argument.
1142 * printcmd.c (print_formatted): Update.
1143 * p-valprint.c (pascal_val_print): Update.
1144 * m2-valprint.c (print_unpacked_pointer): Update.
1145 (m2_print_array_contents): Likewise.
1146 * jv-valprint.c (java_value_print): Update.
1147 * f-valprint.c (f_val_print): Update.
1148 * c-valprint.c (c_val_print): Update.
1149 * auxv.c (fprint_target_auxv): Update.
1151 2010-10-15 Doug Evans <dje@google.com>
1152 Jan Kratochvil <jan.kratochvil@redhat.com>
1155 * gdbtypes.c (check_typedef): Clean up function comment.
1156 Keep track of instance flags as we strip typedefs and create a new
1157 type to preserve them if necessary.
1158 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1160 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1162 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1164 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1166 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1167 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1169 (types_equal): ...here. And changed it as follows:
1170 Outside of typedefs type must be of the same TYPE_CODE.
1171 When compairing two pointers or references they are equal if their
1173 Correct pointer conversions.
1175 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1177 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1178 having fields without names.
1180 2010-10-13 Tom Tromey <tromey@redhat.com>
1182 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1184 2010-10-13 Doug Evans <dje@google.com>
1186 New python module gdb.types.
1187 * NEWS: Document it.
1188 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1189 * python/lib/gdb/types.py: New file.
1191 * c-typeprint.c: Whitespace cleanup.
1192 (cp_type_print_method_args): Remove unnecessary forward decl.
1193 (cp_type_print_derivation_info): Ditto.
1194 (c_type_print_varspec_prefix): Mark as static at definition.
1195 (c_type_print_modifier): Fix arg descriptions.
1197 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1199 * python/py-breakpoint.c (bppy_set_condition): New comment.
1200 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1201 failed PyUnicode_Decode.
1202 (cmdpy_completer): Skip element for failed
1203 python_string_to_host_string.
1204 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1205 * python/py-frame.c (frapy_read_var): Extend the function comment.
1206 * python/py-function.c (fnpy_init): Return -1 on failed
1207 python_string_to_host_string.
1208 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1209 the function comment.
1210 (infpy_search_memory): Extend the function comment. Remove the
1211 PyErr_SetString call on already set error state.
1212 * python/py-param.c (set_parameter_value): Extend the function
1213 comment. Return -1 on failed python_string_to_host_string, twice.
1214 (set_attr): Extend the function comment.
1215 (compute_enum_values): Extend the function comment. New variable
1216 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1217 failed python_string_to_host_string.
1218 (get_doc_string): Call gdbpy_print_stack on failed
1219 python_string_to_host_string.
1220 (parmpy_init): Extend the function comment.
1221 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1222 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1223 failed python_string_to_host_string.
1224 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1225 (valpy_binop, valpy_richcompare): Extend the function comment.
1227 (struct python_env) <error_type, error_value, error_traceback>: New
1229 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1230 (ensure_python_env): Call PyErr_Fetch.
1231 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1232 failed convert_value_from_python.
1233 (value_get_print_value): Call gdbpy_print_stack on failed
1234 python_string_to_target_python_string.
1236 2010-10-12 Tom Tromey <tromey@redhat.com>
1238 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1240 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1242 * gdbtypes.c (do_is_ancestor): New function.
1243 (is_ancestor): Use do_is_ancestor.
1244 (is_public_ancestor): Use do_is_ancestor.
1246 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1248 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1250 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1252 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1254 2010-10-11 Doug Evans <dje@google.com>
1256 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1257 the address space id too.
1259 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1261 Fix attaching to re-prelinked executables on ppc64.
1262 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1263 initialize it, try to adjust FILESZ field by it.
1265 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1267 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1268 messages if info_verbose.
1270 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1272 * valops.c (value_cast): Handle vector types.
1273 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1275 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1277 * arm-tdep.c (thumb_expand_immediate): New function.
1278 (thumb_instruction_changes_pc): Likewise.
1279 (thumb2_instruction_changes_pc): Likewise.
1280 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1281 prologue parsing. Improved support for optimized code.
1282 (thumb_scan_prologue): Do not reply on line-number information,
1283 use same heuristics as arm_scan_prologue insead.
1284 (skip_prologue_function): Accept functions
1285 "__tls_get_addr" and "__aeabi_read_tp".
1287 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1288 Daniel Jacobowitz <dan@codesourcery.com>
1290 * arm-tdep.c (thumb_in_function_epilogue_p)
1291 (arm_in_function_epilogue_p): New.
1292 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1293 gdbarch_in_function_epilogue_p callback.
1295 2010-10-07 Doug Evans <dje@google.com>
1297 * cc-with-index.sh (output_file): Default to a.out.
1299 * dwarf2read.c (mapped_index): Rename member index_table to
1300 symbol_table and index_table_slots to symbol_table_slots.
1302 (create_symbol_hash_table): Renamed from create_index_table.
1303 All callers updated.
1304 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1305 (write_hash_table): Rename local index_table to symbol_hash_table.
1307 * addrmap.h (addrmap_foreach_fn): New typedef.
1308 (addrmap_foreach): Declare.
1309 * addrmap.c (struct addrmap_funcs): New member foreach.
1310 (addrmap_foreach): New function.
1311 (addrmap_fixed_foreach): New function.
1312 (addrmap_fixed_funcs): Update.
1313 (struct mutable_foreach_data): New struct.
1314 (addrmap_mutable_foreach_worker): New function.
1315 (addrmap_mutable_foreach): New function.
1316 (addrmap_mutable_funcs): Update.
1318 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1320 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1323 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1325 * ada-lang.c (full_match): Declare.
1326 (ada_match_name): Rename to match_name (we should avoid prefixing static
1327 symbols with "ada_").
1328 (match_name): New name for ada_match_name.
1329 (struct ada_psym_data): Remove and replace with...
1330 (struct match_data): User data for map_matching_symbols.
1331 (ada_add_psyms): Remove.
1332 (aux_add_nonlocal_symbols): New function, used as callback for
1333 map_matching_symbols.
1334 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1336 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1337 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1338 Rework to use map_matching_symbols instead of map_ada_symtabs.
1339 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1340 * psymtab.c: Include dependency on dictionary.h.
1341 (match_partial_symbol): New function.
1342 (ada_lookup_partial_symbol): Remove.
1343 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1344 (map_matching_symbols_psymtab): New function.
1345 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1346 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1348 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1350 * ada-lang.c (ada_match_name): Use new API for wild_match.
1351 (wild_match): Change API to be consistent with that of strcmp_iw;
1352 return 0 for a match, and switch operand order.
1353 (full_match): New function.
1354 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1355 matching to allow use of hashing.
1356 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1357 iter_name_next ot iter_match_first, iter_match_next.
1358 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1359 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1360 (iter_name_first_linear): Replace with iter_match_first_linear.
1361 (iter_name_next_linear): Replace with iter_match_next_linear.
1362 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1363 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1364 (dict_iter_match_first): New function.
1365 (dict_iter_match_next): New function.
1366 (dict_hash): New function.
1367 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1368 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1370 2010-10-06 Doug Evans <dje@google.com>
1372 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1374 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1376 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1378 2010-10-06 Doug Evans <dje@google.com>
1380 * Makefile.in (REQUIRED_SUBDIRS): New var.
1381 (subdir_do): Verify required subdir Makefiles exist.
1383 Create subdir data-directory.
1384 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1385 data-directory/Makefile.in.
1386 (SUBDIRS): Add data-directory.
1387 (all): Remove xml-syscall-copy dependency.
1388 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1390 (xml-syscall-install): Moved to data-directory/Makefile.in as
1392 (install-only): Remove xml-syscall-install dependency.
1393 (all-data-directory): New rule.
1394 (data-directory/Makefile): New rule.
1395 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1396 * configure: Regenerate.
1397 * data-directory/Makefile.in: New file.
1398 * python/lib/gdb/__init__.py: New file.
1400 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1402 Fix ARI warnings in advance_wild_match.
1403 * ada-lang.c (advance_wild_match): Delete local variable t2.
1404 Adjust code accordingly. Minor reformatting.
1406 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1408 * gdbtypes.h (struct main_type): Remove flag_nottext.
1409 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1410 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1411 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1412 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1413 of TYPE_FLAG_NOTTEXT.
1414 (init_type): Remove the initialization of the flag_nottext field.
1415 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1417 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1419 2010-10-04 Doug Evans <dje@google.com>
1421 * cc-with-index.sh: New file.
1423 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1425 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1426 (create_cus_from_index, create_addrmap_from_index): Ditto.
1427 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1428 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1429 (dw2_do_expand_symtabs_matching): Ditto.
1430 (eq_strtab_entry, create_strtab, add_string): Ditto.
1431 (hash_strtab_entry): Ditto.
1432 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1433 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1434 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1435 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1436 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1437 (write_psymtabs_to_index): Ditto.
1439 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1441 * ada-lang.c: #include "value.h".
1442 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1443 arguments. Implement using value_allocate_space_in_inferior
1444 instead of allocating memory from the stack.
1445 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1446 calls to ensure_lval.
1447 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1448 calls to make_array_descriptor and ensure_lval.
1449 * ada-lang.h (ada_convert_actual): Update declaration.
1450 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1452 2010-10-04 Doug Evans <dje@google.com>
1454 * python/python.c (_initialize_python): Define new function
1455 GdbSetPythonDirectory in python. Use it to update sys.path and
1458 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1460 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1461 incorporating and generalizing print_record_field_types.
1462 (print_record_field_types): Change return value and update comment.
1463 Re-implement using print_selected_record_field_types.
1464 (print_choices): Print "=>" here.
1465 Handle case of unencoded variant branch.
1466 (print_variant_clauses): Reformat comment.
1467 Special-case unencoded variant branch.
1469 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1471 * ada-lang.c (wild_match): Reimplement.
1472 Change API to eliminate unused length argument, reverse arguments and
1473 make 0 the 'true' return value.
1474 (advance_wild_match): New auxiliary function for wild_match to improve
1476 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1477 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1479 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1481 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1483 2010-10-01 Doug Evans <dje@google.com>
1485 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1486 for `save gdb-index' command.
1488 2010-10-01 Tom Tromey <tromey@redhat.com>
1490 * symfile.h (allocate_symtab): Update.
1491 * symfile.c (allocate_symtab): Make 'filename' const.
1492 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1493 (add_psymbol_to_list): Likewise.
1494 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1496 (add_psymbol_to_list): Update.
1497 * mdebugread.c (new_symtab): Make 'name' const.
1498 (psymtab_to_symtab_1): Make 'filename' const.
1499 * elfread.c (elfstab_offset_sections): Update.
1500 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1501 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1502 (psymtab_include_file_name): Update.
1503 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1504 * buildsym.h (start_subfile): Update.
1505 * buildsym.c (start_subfile): Make arguments const.
1507 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1509 * fork-child.c (breakup_args): Fix crash if shell forking is
1510 disabled at compile time.
1512 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1514 * ada-lang.c (desc_bounds): Add handling of the case where
1515 the P_BOUNDS field is a pointer to a stub.
1516 (desc_data_target_type): Same for P_ARRAY field.
1517 (ada_check_typedef): Strip the typedef layers from the type
1518 found by ada_find_any_type.
1520 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1522 * sparc-tdep.c (sparc32_frame_align): New function.
1523 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1524 * sparc64-tdep.c (sparc64_frame_align): New function.
1525 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1527 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1529 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1531 2010-09-30 Tom Tromey <tromey@redhat.com>
1533 * symfile.h (struct sym_fns) <next>: Remove.
1534 (add_symtab_fns): Update.
1535 * symfile.c (sym_fns_ptr): New typedef.
1536 (symtab_fns): Now a VEC.
1537 (add_symtab_fns): Update. Change argument type.
1538 (find_sym_fns): Update. Change return type.
1539 (get_symfile_segment_data): Update.
1540 * objfiles.h (struct objfile) <sf>: Now const.
1541 * somread.c (som_sym_fns): Now const. Update.
1542 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1543 * mipsread.c (ecoff_sym_fns): Now const. Update.
1544 * machoread.c (macho_sym_fns): Now const. Update.
1545 * elfread.c (elf_sym_fns): Now const. Update.
1546 (elf_sym_fns_gdb_index): Likewise.
1547 * dbxread.c (aout_sym_fns): Now const. Update.
1548 * coffread.c (coff_sym_fns): Now const. Update.
1550 2010-09-30 Tom Tromey <tromey@redhat.com>
1552 * value.c (value_primitive_field): Take 'offset' into account for
1555 2010-09-30 Tom Tromey <tromey@redhat.com>
1557 * completer.c (count_struct_fields): Handle anonymous structs and
1559 (add_struct_fields): Likewise.
1561 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1563 Fix printing parameters of inlined functions.
1564 * ada-lang.c (is_known_support_routine)
1565 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1566 for find_frame_funname.
1567 * python/py-frame.c (frapy_name): Likewise.
1568 * stack.c (find_frame_funname): New parameter funcp. Update the
1569 function comment. Fill it in.
1570 (print_frame): New variable func. Initialize it by
1571 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1572 FUNC as the parameter of print_args_stub.
1573 * stack.h (find_frame_funname): New parameter funcp. Remove the
1574 function declaration comment.
1576 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1579 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1580 tp. Iterate INFERIOR_LIST and call target_has_execution.
1582 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1584 Fix GDB crash on inferior calls with self-referencing classes.
1585 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1588 2010-09-29 Doug Evans <dje@google.com>
1590 Workaround for gcc/45682.
1591 * dwarf2read.c (partial_die_info): New fields fixup_called,
1593 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1594 Move definition next to use. Use linkage_name to determine if class
1595 is in a namespace. All callers updated.
1596 (fixup_partial_die): Return early if already called.
1597 Set fixup_called when done.
1598 (guess_full_die_structure_name): New function.
1599 (determine_prefix): Call it for class/struct/union dies if c++ and
1600 .debug_types section is present and parent is DW_TAG_compile_unit.
1602 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1604 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1605 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1607 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1609 * NEWS: Announce Ravenscar Profile support.
1611 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1612 Jerome Guitton <guitton@adacore.com>
1614 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1616 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1617 ravenscar-sparc-thread.o to gdb_target_obs.
1619 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1621 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1622 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1624 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1626 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1627 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1628 skip_main_prologue method.
1630 2010-09-27 Tom Tromey <tromey@redhat.com>
1632 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1633 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1634 Only emit a given psymbol once.
1635 (struct signatured_type_index_data) <psyms_seen>: New field.
1636 (write_one_signatured_type): Update.
1637 (cleanup_htab): New function.
1638 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1640 (save_gdb_index_command): Update index documentation.
1642 2010-09-27 Tom Tromey <tromey@redhat.com>
1644 * bcache.c (expand_hash_table): Use hash_function, not hash.
1646 2010-09-27 Tom Tromey <tromey@redhat.com>
1648 * gdb_wchar.h: Change minimum libiconv to 0x108.
1650 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 Fix lost siginfo_t for inferior calls.
1654 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1655 (save_inferior_thread_state): New variables regcache, gdbarch and
1656 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1657 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1659 (restore_inferior_thread_state): New variables regcache and gdbarch.
1660 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1661 REGCACHE. Free also SIGINFO_DATA.
1663 2010-09-24 Tom Tromey <tromey@redhat.com>
1665 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1667 (dw2_map_symbol_names): Likewise.
1669 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1671 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1672 discard_cleanups do_cleanups.
1674 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1678 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1679 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1680 si_code is < 0. Check for si_code == SI_TIMER before checking for
1683 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1685 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1687 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1689 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1690 debugging a core file.
1692 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1695 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1696 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1698 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1699 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1701 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1702 Remove the conditional.
1703 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1705 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1707 * main.c: Include objfiles.h.
1708 (captured_main): New variable objfile. Call
1709 load_auto_scripts_for_objfile for ALL_OBJFILES.
1711 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1713 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1716 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1718 * dwarf2read.c (scan_partial_symbols): Add handling of
1719 DW_TAG_constant DIEs.
1720 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1722 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1724 * configure.ac: Add support for --enable-gdbserver.
1725 * configure: Regenerate.
1727 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1730 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1731 'old_cleanups' reassignment.
1733 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1738 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1741 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1742 read_var_value and common_val_print and print a warning.
1744 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1746 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1747 keep the list in alphabetical order. Use longer e-mail address.
1749 2010-09-15 Tom Tromey <tromey@redhat.com>
1751 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1753 2010-09-15 Tom Tromey <tromey@redhat.com>
1755 * charset.c (iconv_open): New define.
1757 (iconv_close): Likewise.
1758 (phony_iconv_open): Add "phony_" prefix.
1759 (phony_iconv_close): Likewise.
1760 (phony_iconv): Likewise.
1761 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1762 Change how INTERMEDIATE_ENCODING is defined.
1764 2010-09-15 Doug Evans <dje@google.com>
1766 * dwarf2read.c (struct die_info): Fix comment.
1768 2010-09-15 Alan Modra <amodra@gmail.com>
1771 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1772 than setting SEC_NEVER_LOAD on sections that need not be copied.
1774 2010-09-14 Tom Tromey <tromey@redhat.com>
1776 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1777 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1779 * symfile.h (extend_psymbol_list): Remove.
1780 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1781 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1782 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1784 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1789 2010-09-14 Tom Tromey <tromey@redhat.com>
1792 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1793 for unrecognized frame base expression.
1795 2010-09-14 Tom Tromey <tromey@redhat.com>
1798 * value.c (value_static_field): Use value_of_variable.
1800 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1802 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1803 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1805 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1808 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1811 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1813 * NEWS: Add x86-lynxos to the list of platforms supported by
1816 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1818 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1820 2010-09-13 Tom Tromey <tromey@redhat.com>
1822 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1824 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1826 * i386-tdep.c (i386_ymm_type): Set type name to
1827 builtin_type_vec256i.
1829 2010-09-12 Michael Snyder <msnyder@vmware.com>
1831 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1833 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1835 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1837 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1839 * amd64-tdep.c (amd64_register_name): Removed.
1840 (amd64_init_abi): Don't call set_gdbarch_register_name.
1842 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1844 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1846 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1847 Paul Bolle <pebolle@tiscali.nl>
1849 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1850 * cli-logging.c (struct saved_output_files) <targerr>: New.
1851 (set_logging_redirect, pop_output_files, handle_redirections):
1852 Redirect also gdb_stdtargerr.
1853 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1855 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1856 also gdb_stdtargerr.
1857 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1858 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1859 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1860 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1861 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1864 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1866 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1867 to display a host address.
1868 * monitor.c (monitor_read_memory): Likewise.
1869 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1871 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1873 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1874 `CORE_ADDRESS' as it might contain target addresses.
1876 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1878 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1879 before cast to pointer to avoid warning.
1881 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1883 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1886 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1888 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1889 anonymous class partial DIEs.
1891 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1893 * dwarf2read.c (dwarf2_compute_name): Check that the first
1894 argument is a pointer.
1896 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1898 * dwarf2read.c (read_func_scope, read_structure_type)
1899 (read_common_block): Check for a NULL return from new_symbol.
1901 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1905 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1907 * dwarf2read.c (read_structure_type): Move processing of
1908 fields and member functions from here...
1909 (process_structure_scope): ... to here.
1911 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1913 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1915 (gnuv3_make_method_ptr): Likewise.
1917 2010-09-08 Tom Tromey <tromey@redhat.com>
1919 * breakpoint.c (create_breakpoint): Add missing _().
1921 2010-09-08 Doug Evans <dje@google.com>
1923 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1925 2010-09-08 Tom Tromey <tromey@redhat.com>
1928 2010-09-01 Tom Tromey <tromey@redhat.com>
1929 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1930 symtab.h: Revert earlier change.
1932 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1934 * psymtab.c (add_psymbol_to_bcache): Initialize
1936 memset psymbol.ginfo.value to 0.
1938 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1940 * infrun.c (resume): Extend comment on ignoring single-step
1941 requests on vfork parents waiting for a vfork-done.
1943 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1944 Pedro Alves <pedro@codesourcery.com>
1946 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1948 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1950 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1951 calling strsignal. Use enum target_signal type for saved_signo.
1952 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1953 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1954 target_signal_to_host before calling strsignal.
1955 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1958 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1959 Jan Kratochvil <jan.kratochvil@redhat.com>
1961 * common/signals.c (ANY): Remove.
1962 (SET): No longer use ANY.
1964 2010-09-06 Yao Qi <yao@codesourcery.com>
1966 * infrunc(resume): When inferior is waiting_for_vfork_done,
1967 clear step and don't use displaced stepping.
1969 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1971 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1974 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 Code cleanup - split print_stop_reason.
1977 * infrun.c (enum inferior_stop_reason): Remove.
1978 (print_stop_reason): Remove by splitting into ...
1979 (print_exited_reason, print_signal_exited_reason)
1980 (print_no_history_reason, print_signal_received_reason)
1981 (print_end_stepping_range_reason): ... these new functions. Update
1982 the preceding comment.
1983 (handle_inferior_event): Change the calls to print_exited_reason,
1984 print_signal_exited_reason, print_no_history_reason,
1985 print_signal_received_reason, print_end_stepping_range_reason.
1986 (handle_step_into_function, handle_step_into_function_backward):
1987 Change the calls to print_end_stepping_range_reason.
1989 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1992 * cli-out.c: Include vec.h.
1993 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1994 variable stream, initialize it, use it.
1995 (cli_redirect): New function comment. Replace the stream and
1996 original_stream fields by the new streams field. Remove the
1997 original_stream != NULL conditional, assert error on NULL instead.
1998 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1999 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2000 original_stream fields by the new streams field.
2001 (cli_out_set_stream): Replace the stream field by the new streams
2003 * cli-out.h: Include vec.h.
2004 (ui_filep): New typedef, call DEF_VEC_P for it.
2005 (struct cli_ui_out_data): Replace the stream and original_stream
2006 fields by the new streams field.
2007 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2008 NULL first. Extend the comment.
2009 (handle_redirections): Call ui_out_redirect with output.
2010 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2011 calls outside of the TRY_CATCH block.
2013 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2017 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2019 Back out the following change:
2020 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2021 | * record.c (set_record_pic_cmdlist,
2022 | show_record_pic_cmdlist): New variables.
2023 | (set_record_pic_command,
2024 | show_record_pic_command): New functions.
2025 | (record_pic_function, record_pic_line, record_pic_enum,
2026 | set_record_pic_type, record_pic_hide_nofunction,
2027 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2028 | (record_pic_fputs): New function.
2029 | (function_list, node_list, edge_list): New struct.
2030 | (function_list, node_list, edge_list): New variables.
2031 | (record_pic_cleanups, record_pic_node,
2032 | record_pic_edge, cmd_record_pic): New functions.
2033 | (_initialize_record): Add new commands for record pic.
2035 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2037 * config.in, configure: Regenerated.
2038 * configure.ac: Check for waitpid.
2039 * ser-pipe.c (pipe_close): Wait for the program to exit.
2041 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2043 * cli/cli-logging.c: Include gdb_assert.h.
2044 (set_logging_overwrite): New function.
2045 (logging_redirect): New comment.
2046 (logging_no_redirect_file, set_logging_redirect)
2047 (pop_output_files) <logging_no_redirect_file>: New.
2048 (handle_redirections) <!logging_redirect>: New variable
2049 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2050 discard cleanup for the close of former OUTPUT. Set
2051 LOGGING_NO_REDIRECT_FILE.
2052 (handle_redirections) <logging_redirect>: gdb_assert
2053 LOGGING_NO_REDIRECT_FILE.
2054 (show_logging_command) <logging_redirect handling>: Adjust messages
2055 for SAVED_FILENAME not NULL.
2056 (_initialize_cli_logging): Install set_logging_overwrite and
2057 set_logging_redirect.
2059 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2063 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2065 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2066 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2067 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2068 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2070 2010-09-02 Yao Qi <yao@codesourcery.com>
2072 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2073 number from a WIFSIGNALED status.
2075 2010-09-01 Tom Tromey <tromey@redhat.com>
2077 * symtab.h (lookup_type_symbol): Declare.
2078 * symtab.c (lookup_symbol_in_language_full): Rename from
2079 lookup_symbol_in_language. Add 'for_type' argument.
2080 (lookup_symbol_in_language): New function.
2081 (lookup_type_symbol): Likewise.
2082 (lookup_symbol_aux): Add 'for_type' argument.
2083 (match_symbol_aux): New function.
2084 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2085 (match_transparent_type): New function.
2086 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2087 * symfile.h (struct quick_symbol_functions)
2088 <pre_expand_symtabs_matching>: Remove.
2089 <expand_one_symtab_matching>: New field.
2090 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2091 (pre_expand_symtabs_matching_psymtabs): Remove.
2092 (psym_functions): Update.
2093 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2094 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2095 (dw2_pre_expand_symtabs_matching): Remove.
2096 (dw2_expand_one_symtab_matching): New function.
2097 (dwarf2_gdb_index_functions): Update.
2099 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2101 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2103 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2105 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2106 as a feature reported by -list-target-features.
2108 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2110 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2111 (powerpc-32.o, powerpc-32.c): New rules.
2112 (clean): Also remove powerpc-32.c.
2113 * regformats/rs6000/powerpc-32.dat: Generate.
2115 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2117 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2118 psymbol_bcache_init.
2119 * psymtab.h (psymbol_bcache_init): New function prototype.
2120 (psymbol_bcache_free): New function prototype.
2121 (psymbol_bcache_get_bcache): New function prototype.
2122 * psymtab.c (psymbol_bcache_init): New function.
2123 (psymbol_bcache_free): New function.
2124 (psymbol_bcache_full): New function.
2125 (psymbol_bcache_get_bcache): New function.
2126 (add_psymbol_to_bcache): use psymbol_bcache_full.
2127 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2129 * symmisc.c (print_symbol_bcache_statistics): Updated.
2130 (print_objfile_statistics): Updated.
2131 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2133 (free_objfile): Use psymbol_bcache_free.
2135 2010-08-31 Tom Tromey <tromey@redhat.com>
2138 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2139 Don't set TYPE_NAME on the type.
2141 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2143 * infrun.c (set_exec_direction_func): Error out if target does not
2144 support reverse execution.
2146 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2148 Make linux_get_siginfo_type `type *' unique.
2149 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2150 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2151 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2152 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2153 (_initialize_linux_tdep): New.
2155 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 * defs.h (find_memory_region_ftype): New typedef.
2159 (exec_set_find_memory_regions): Use it.
2160 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2161 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2162 * gcore.c (objfile_find_memory_regions): Likewise.
2163 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2164 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2165 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2166 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2167 find_memory_region_ftype.
2168 (insert_dbx_link_bpt_in_region): Likewise.
2169 (iterate_over_mappings): Likewise. Drop the comment part about the
2171 (find_memory_regions_callback): Use find_memory_region_ftype.
2172 (proc_find_memory_regions): Likewise.
2173 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2174 find_memory_region_ftype.
2175 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2176 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2178 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2180 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2181 'static partial_symbol psymbol'.
2182 (psymbol_hash): New function.
2183 (psymbol_compare): New function.
2184 * bcache.c (hash_continue): New.
2185 (hash): Use hash_continue.
2186 * bcache.c: Add hash_function and compare_function
2187 pointers to bcache struct.
2188 (bcache_full): Use bcache->hash_function, and
2189 bcache->compare_function.
2190 (bcache_compare): New function.
2191 (bcache_xmalloc): Take hash_function and
2192 compare_function arguments and initialize the
2195 * objfiles.c (allocate_objfile): Updated.
2196 * symfile.c (reread_symbols): Updated.
2197 * python/py-type.c (typy_richcompare): Updated.
2199 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2200 Tom Tromey <tromey@redhat.com>
2203 * python/py-value.c (valpy_get_dynamic_type): New function.
2204 (value_object_getset): Add "dynamic_type".
2205 (valpy_get_type): Fail on error.
2207 2010-08-30 Yao Qi <yao@codesourcery.com>
2209 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2210 (arm_linux_syscall_next_pc): New.
2211 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2212 (arm_linux_init_abi): Initialize syscall_next_pc.
2213 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2214 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2215 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2216 Declare arm_frame_is_thumb.
2218 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2222 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2224 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2225 calls of bpstat_alloc. Remove explicit bs chain termination.
2227 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2231 (my_waitpid): Likewise.
2233 2010-08-27 Doug Evans <dje@google.com>
2235 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2238 2010-08-27 Tom Tromey <tromey@redhat.com>
2240 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2241 TYPE_FIELD_IGNORE_BITS.
2243 2010-08-27 Doug Evans <dje@google.com>
2245 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2246 the order they're defined in. munmap .debug_types buffer.
2248 2010-08-26 Doug Evans <dje@google.com>
2250 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2251 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2252 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2253 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2254 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2255 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2256 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2257 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2258 (write_psymtabs_to_index): Ditto.
2260 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2262 * NEWS: Mention libthread_db debugging with core files.
2264 2010-08-26 Doug Evans <dje@google.com>
2266 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2267 forward decl. Pass pst->dirname to dwarf_decode_lines.
2268 (psymtab_include_file_name): New function.
2269 (dwarf_decode_lines): Call it. Update comments.
2271 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2273 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2274 compilation unit being different from target die's.
2276 2010-08-24 Doug Evans <dje@google.com>
2279 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2280 debug_types_type_hash.
2281 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2283 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2284 appropriate type_hash table. All callers updated.
2285 (allocate_signatured_type_table): Renamed from
2286 allocate_signatured_type_hash_table. All callers updated.
2287 (create_signatured_type_table_from_index): Renamed from
2288 create_signatured_type_hash_from_index. All callers updated.
2289 (read_die_type): Add comment. Move actual reading to ...
2290 (read_die_type_1): ... here. New function.
2291 (follow_die_ref_or_sig): Tweak comment.
2292 (set_die_type): Rewrite to use appropriate choice of
2293 debug_info_type_hash or debug_types_type_hash.
2294 (get_die_type_at_offset): New function.
2295 (get_die_type): Call it.
2297 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2299 * python/py-type.c (typy_richcompare): Initialize worklist.
2301 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2302 Kazu Hirata <kazu@codesourcery.com>
2303 Jonathan Larmour <jifl@eCosCentric.com>
2305 * arm-tdep.c: Include features/arm-with-m.c.
2306 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2308 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2309 Check is_m after force-mode.
2310 (arm_gdbarch_init): Check the binary before the target description.
2311 Add check for M profile attribute. If we have an M-profile device,
2312 but no target register description, use arm-with-m. Recognize the
2313 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2314 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2315 * arm-tdep.h (XPSR_T): Define.
2316 (struct gdbarch_tdep): Add is_m member.
2317 * features/arm-m-profile.xml, features/arm-with-m.c,
2318 features/arm-with-m.xml: New files.
2320 2010-08-23 Doug Evans <dje@google.com>
2322 * dwarf2read.c (read_structure_type): Add comment.
2323 (read_enumeration_type): Add comment.
2324 (process_enumeration_scope): Move definition of some locals
2325 closer to their use.
2326 (read_namespace_type): Add comment.
2327 (set_die_type): Fix typo in comment.
2329 2010-08-23 Tom Tromey <tromey@redhat.com>
2332 * python/py-value.c: Include expression.h.
2333 (valpy_do_cast): New function.
2334 (valpy_cast): Use it.
2335 (valpy_dynamic_cast): New function.
2336 (valpy_reinterpret_cast): Likewise.
2337 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2339 2010-08-23 Tom Tromey <tromey@redhat.com>
2342 * python/py-value.c (valpy_nonzero): Don't throw error for other
2345 2010-08-23 Tom Tromey <tromey@redhat.com>
2348 * python/py-type.c: Include bcache.h, vec.h.
2349 (struct type_equality_entry): New.
2350 (compare_strings): New function.
2351 (check_types_equal): Likewise.
2352 (check_types_worklist): Likewise.
2353 (typy_richcompare): Likewise.
2354 (type_object_type): Set tp_richcompare field.
2356 2010-08-23 Tom Tromey <tromey@redhat.com>
2359 * python/py-type.c (typy_fields): Call check_typedef.
2360 (typy_template_argument): Add TRY_CATCH.
2362 2010-08-23 Tom Tromey <tromey@redhat.com>
2365 * python/py-type.c (typy_array): New function.
2366 (type_object_methods): Add "array".
2368 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2370 * python/python.c: Include "serial.h".
2371 (gdbpy_event_fds): Change type to `struct serial *' a array from
2373 (gdbpy_run_events): Change parameters. Use serial_readchar in
2375 (gdbpy_post_event): Use serial_write in place of write.
2376 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2377 serial_async in place of add_file_handler.
2379 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2381 * serial.h (gdb_pipe, serial_pipe): Declare.
2382 * serial.c (serial_interface_lookup): Take a const char pointer.
2383 (serial_fdopen): Rename to ...
2384 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2385 Call the OPS' fdopen function if there is one.
2386 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2388 (struct serial_ops) <fdopen>: New field.
2390 * ser-mingw.c (free_pipe_state):
2391 (free_pipe_state): Close output on non-pex pipes.
2392 (pipe_windows_fdopen): New.
2394 (_initialize_ser_windows): Register pipe_windows_fdopen.
2395 * ser-go32.c (gdb_pipe): New.
2396 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2401 2010-08-20 Keith Seitz <keiths@redhat.com>
2404 * dwarf2read.c (struct delayed_method_info): New struct.
2405 (struct dwarf2_cu): Add vector method_list.
2406 (scan_partial_symbols): Count methods for union, class, structure,
2407 and interface types.
2408 (add_to_method_list): New function.
2409 (free_delayed_list): New function.
2410 (compute_delayed_physnames): New function.
2411 (process_full_comp_unit): Make a cleanup for the CU's delayed
2412 physname list, compute the delayed physnames, and free the
2414 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2415 of the physname until after the CU is read.
2417 * dwarf2read.c (read_structure_type): Check if the current
2418 DIE's type was already completed after dwarf2_full_name
2421 2010-08-19 Stan Shebs <stan@codesourcery.com>
2423 * NEWS: Mention some additional changes.
2425 2010-08-19 Tom Tromey <tromey@redhat.com>
2427 * Makefile.in (install-python): Add DESTDIR.
2429 2010-08-19 Doug Evans <dje@google.com>
2432 * parser-defs.h (parse_float, parse_c_float): Declare.
2433 * parse.c (parse_float, parse_c_float): New function.
2434 * c-exp.y (parse_number): Call parse_c_float.
2435 * objc-exp.y (parse_number): Ditto.
2436 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2437 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2439 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2441 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2442 the arguments in the correct order.
2443 * symtab.c (maybe_add_partial_symtab_filename): Declare
2444 the arguments in the correct order.
2446 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2448 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2449 initialize it by null_frame_id, wrap its usage by get_frame_id,
2450 frame_id_p and frame_find_by_id.
2452 2010-08-18 Tom Tromey <tromey@redhat.com>
2455 * configure: Rebuild.
2456 * configure.ac: Add install-python to CONFIG_INSTALL.
2457 * Makefile.in (install-python): New.
2459 2010-08-18 Doug Evans <dje@google.com>
2461 * gdb_assert.h (gdb_assert_not_reached): New macro.
2462 (gdb_assert_fail): Fix typo in comment.
2463 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2465 * darwin-nat.c (darwin_check_new_threads): Ditto.
2466 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2467 (munmap_section_buffer): Ditto.
2468 * m32c-tdep.c (make_types): Ditto.
2469 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2470 * macroexp.c (get_character_constant): Ditto.
2471 (get_string_literal): Ditto.
2472 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2473 (mep_pseudo_cr_index, mep_register_type): Ditto.
2474 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2475 (mep_get_insn, mep_analyze_prologue): Ditto.
2476 * objfiles.c (qsort_cmp): Ditto.
2477 * prologue-value.c (pv_is_identical): Ditto.
2478 * record.c (record_get_loc): Ditto.
2479 * value.c (value_static_field): Ditto.
2480 * xtensa-tdep.c (call0_track_op): Ditto.
2482 2010-08-18 Tom Tromey <tromey@redhat.com>
2485 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2486 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2487 name-copying lower. Document exception behavior.
2488 * completer.c (expression_completer): Catch exceptions from
2489 parse_field_expression.
2491 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2495 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2496 workaround on core files.
2497 (try_thread_db_load_1): Don't try enabling thread event reporting
2499 (thread_db_load): Allow thread_db on core files.
2500 (attach_thread): Don't check thread signals on core files, nor try
2501 really attaching to the thread, nor enabling thread event event
2503 (thread_db_detach): Don't try disabing thread event reporting or
2504 removing thread event breakpoints when debugging a core file.
2505 (find_new_threads_callback): Don't try enabling thread event
2506 reporting on core files.
2507 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2508 debugging a core file.
2509 (thread_db_find_new_threads): Don't update thread
2510 cores (processors) when debugging a core (dump).
2512 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2516 * corelow.c (add_to_thread_list): Don't use
2517 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2518 (get_core_register_section): Don't use
2519 gdbarch_core_reg_section_encodes_pid.
2521 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2522 * gdbarch.h, gdbarch.c: Regenerate.
2523 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2524 gdbarch_core_reg_section_encodes_pid.
2525 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2526 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2527 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2529 2010-08-18 Yao Qi <yao@codesourcery.com>
2531 * MAINTAINERS : Add myself under Write After Approval.
2533 2010-08-17 Tom Tromey <tromey@redhat.com>
2535 * NEWS: Mention template parameter support.
2537 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2539 PR breakpoints/11371
2541 * breakpoint.c (decref_bp_location): Assert the reference count is
2544 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2546 PR breakpoints/11371
2548 * breakpoint.c (breakpoint_init_inferior): Decrement the
2549 location's reference count instead of deleting right away.
2550 (bpstat_free): Decrement the location's reference count. Make
2552 (bpstat_copy): Increment the location's reference count.
2553 (bpstat_find_breakpoint): Adjust.
2554 (bpstat_num): Adjust.
2555 (print_it_typical): Adjust. Use the breakpoint pointer in the
2556 bpstat instead of the location's owner.
2557 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2558 Adjust to record the location's owner in the bpstat.
2559 (watchpoint_check): Use the breakpoint pointer in the bpstat
2560 instead of the location's owner.
2561 (bpstat_check_breakpoint_conditions): Don't handle
2562 bp_watchpoint_scope here. Use the breakpoint pointer in the
2563 bpstat instead of the location's owner.
2564 (bpstat_stop_status): Defer inferior function calls to after
2565 building the bpstat list. Handle bp_watchpoint_scope here. Use
2566 the breakpoint pointer in the bpstat instead of the location's
2568 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2569 the location's owner.
2570 (free_bp_location): Don't walk bpstats clearing locations.
2571 (incref_bp_location): New.
2572 (decref_bp_location): New.
2573 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2574 instead of the location's owner.
2575 (update_global_location_list): Clear the location's owner, and
2576 decrement the location's reference count instead of deleting it
2578 (breakpoint_retire_moribund): Decrement the location's reference
2579 count instead of deleting it right away.
2580 (bpstat_remove_bp_location): Delete.
2581 (bpstat_remove_breakpoint): New.
2582 (bpstat_remove_bp_location_callback): Delete.
2583 (bpstat_remove_breakpoint_callback): New.
2584 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2585 clearing references to the breakpoint that is being deleted.
2587 * breakpoint.h (struct bp_location) <refc>: New field.
2588 <owner>: Update comments.
2589 (bpstat_free): Delete declaration.
2590 (struct bpstats): Change the type of the breakpoint_at field to
2591 struct breakpoint point, from struct bp_location pointer. Add new
2592 field bp_location_at.
2594 2010-08-16 Tom Tromey <tromey@redhat.com>
2598 2010-08-16 Tom Tromey <tromey@redhat.com>
2600 * NEWS: Mention watch -location.
2602 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2604 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2605 EXP_STRING_REPARSE to EXP_STRING.
2606 (watch_command_1): Set also EXP_STRING_REPARSE.
2607 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2608 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2609 Update comment for exp_string.
2611 2010-08-16 Tom Tromey <tromey@redhat.com>
2613 * value.c (release_value): Clear 'next' pointer.
2614 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2615 (watch_command_wrapper): Update.
2616 (watch_maybe_just_location): New function.
2617 (watch_command): Update.
2618 (rwatch_command_wrapper): Update.
2619 (rwatch_command): Update.
2620 (awatch_command_wrapper): Update.
2621 (awatch_command): Update.
2622 (check_for_argument): New function.
2623 (_initialize_breakpoint): Update help text.
2625 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2627 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2628 typedef'ed function types correctly.
2630 2010-08-13 Tom Tromey <tromey@redhat.com>
2632 * python/python-internal.h (gdbpy_get_hook_function): Don't
2635 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2640 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2642 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2643 the format strings to be compatible with Python 2.4.
2645 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2647 Easier and more stubborn MI memory read commands.
2649 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2650 and data-write-memory-bytes.
2651 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2652 (mi_cmd_data_write_memory_bytes): New.
2653 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2654 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2656 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2657 * target.c (target_read_until_error): Remove.
2658 (read_whatever_is_readable, free_memory_read_result_vector)
2659 (read_memory_robust): New.
2660 * target.h (target_read_until_error): Remove.
2661 (struct memory_read_result, free_memory_read_result_vector)
2662 (read_memory_robust): New.
2664 2010-08-13 Hui Zhu <teawater@gmail.com>
2666 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2667 (read_comp_unit): Initialize back_to.
2669 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2670 Pedro Alves <pedro@codesourcery.com>
2672 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2673 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2674 (struct partial_die_info) <has_template_arguments>: New field.
2675 <num_attrs>: Change type to unsigned char.
2676 <building_fullname>: New field.
2677 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2678 allocate a CU if we don't have one already. Add a cleanup for the
2680 (partial_die_full_name): Handle template arguments not in
2682 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2683 (load_full_comp_unit): Only allocate a CU if we don't have one
2685 (do_ui_file_peek_last): New.
2686 (dwarf2_compute_name): Handle template parameters not in
2688 (read_comp_unit): Read and free abbrevs if not read yet.
2689 (load_partial_dies): Handle template arguments not in DW_AT_name.
2690 (find_partial_die): If we have a CU, but no a partial dies yet,
2691 also read in the CU.
2692 (dwarf2_const_value_attr): New, abstracted out from
2694 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2695 dwarf2_const_value_attr.
2696 (determine_prefix): Detect and break loops created by RCVT's debug
2698 (maybe_queue_comp_unit): Bail out early if reading partial
2700 (follow_die_offset): Load full CU if we have no dies.
2701 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2702 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2704 2010-08-11 Tom Tromey <tromey@redhat.com>
2705 Phil Muldoon <pmuldoon@redhat.com>
2707 * python/python.c (gdbpy_run_events): New function.
2708 (gdbpy_post_event): Likewise.
2709 (gdbpy_initialize_events): Likewise.
2710 (_initialize_python): Call gdbpy_initialize_events.
2712 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2714 * gdb/valarith.c (vector_binop): New function.
2715 (scalar_binop): Likewise.
2716 (value_binop): Call scalar_binop or vector_binop depending on the types.
2717 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2718 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2720 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2722 2010-08-11 Brad Roberts <braddr@puremagic.com>
2724 * d-lang.c (extract_identifiers): Handle multiple digits.
2726 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2729 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2730 Rename to dummy_frame_unwind.
2731 (dummy_frame_unwind): Remove.
2732 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2733 * frame-unwind.c (frame_unwind_init): Use address of
2734 dummy_frame_unwind and inline_frame_unwind.
2735 * frame.c (create_sentinel_frame): Use address of
2736 sentinel_frame_unwind.
2737 * inline-frame.c (inline_frame_unwinder): Rename to
2738 inline_frame_unwind.
2739 (inline_frame_unwind): Remove.
2740 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2741 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2742 sentinel_frame_unwind.
2743 (sentinel_frame_unwind): Remove.
2744 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2747 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2750 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2751 and returned value. New comment from frame-unwind.h.
2752 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2754 * frame.c (get_frame_id, frame_unwind_register_value)
2755 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2756 (get_frame_type, frame_unwind_arch): Do not use the return value of
2757 frame_unwind_find_by_frame.
2759 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2760 Thiago Jung Bauermann <bauerman@br.ibm.com>
2761 Tom Tromey <tromey@redhat.com>
2763 * python/python.c (gdbpy_solib_address): New function.
2764 (gdbpy_decode_line): Likewise.
2766 2010-08-10 Tom Tromey <tromey@redhat.com>
2768 Revert gdb-add-index addition:
2769 * Makefile.in (install-only): Don't install gdb-add-index.
2770 * gdb-add-index.sh: Remove.
2772 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2774 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2775 `target_has_execution' check with `to_has_memory' check.
2776 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2777 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2778 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2780 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2782 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2783 (resume_siggnal, resume_step): Move these static globals...
2784 (struct sim_inferior_data): ...into this new struct.
2785 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2787 (gdb_callback, callbacks_initialized): Move these globals to
2788 a point earlier in the file.
2789 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2790 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2791 (gdbsim_close_inferior, gdbsim_resume_inferior)
2792 (gdbsim_stop_inferior): New functions.
2793 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2795 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2796 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2797 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2798 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2799 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2800 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2801 new local variable `sim_data' in each of these functions. Use
2802 `sim_data' to reference former globals `program_loaded',
2803 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2805 (gdbsim_open): Remove local variable `argv'. Put results of call
2806 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2807 make a cleanup for it. Free it though when a sim instance cannot
2809 (gdbsim_close): Free sim_argv and null it out as appropriate.
2810 Close sim instances in all inferiors.
2811 (gdbsim_cntrl_c): Stop all inferiors.
2813 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2815 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2817 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2818 function after symbol construction is complete.
2819 Do the same for template symbol addition to template_symbols list.
2821 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2823 * symtab.c (symbol_get_demangled_name): Remove assertion and
2824 return NULL when language_specific.cplus_specific is not initialized.
2825 * stabsread.c (define_symbol): Set the name before calling
2826 cp_scan_for_anonymous_namespaces.
2828 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2830 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2831 SYMBOL_SET_LANGUAGE.
2832 (symbol_init_language_specific): Renamed to symbol_set_language.
2833 * symtab.c (symbol_init_language_specific): Removed redundant check
2835 Renamed to symbol_set_language.
2836 * stabsread.c (define_symbol): Updated.
2837 (read_enum_type): Updated
2838 * psymtab.c (add_psymbol_to_bcache): Updated.
2839 * minsyms.c (install_minimal_symbols): Updated.
2840 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2841 SYMBOL_LANGUAGE to set the language.
2842 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2843 * mdebugread.c (new_symbol): Ditto.
2844 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2845 * dwarf2read.c (new_symbol_full): Ditto.
2846 * jv-lang.c (add_class_symbol): Ditto.
2848 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2851 (make_cleanup_restore_page_info)
2852 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2853 * gdbcmd.h (execute_command_to_string): New declaration.
2854 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2855 (make_cleanup_restore_ui_file): Move to utils.c
2856 (execute_gdb_command) <to_string>: Move ...
2857 * top.c (execute_command_to_string): ... here. Call
2858 set_batch_flag_and_make_cleanup_restore_page_info.
2859 * utils.c (make_cleanup_restore_integer): New source file blank line.
2860 (make_cleanup_restore_uinteger): New.
2861 (struct restore_ui_file_closure, do_restore_ui_file)
2862 (make_cleanup_restore_ui_file): Move here from python/python.c.
2863 (init_page_info) <batch_flag>
2864 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2865 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2867 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2869 * thread.c (add_thread_silent): Use null_ptid instead of
2870 minus_one_ptid while getting rid of stale inferior_ptid.
2872 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2874 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2875 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2876 (decode_frame_entry_1): Remove redundant setting of
2877 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2878 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2879 on examined frame section. Add comment to explain why.
2880 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2881 comment to explain usage.
2882 * gdbarch.c: Regenerate.
2883 * gdbarch.h: Regenerate.
2885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2887 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2890 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2893 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2895 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2896 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2897 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2898 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2899 linux-tdep.o to gdb_target_obs.
2901 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2903 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2906 2010-08-05 Hui Zhu <teawater@gmail.com>
2908 * mips-linux-tdep.c(regset.h): New include.
2909 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2910 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2911 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2912 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2913 mips_linux_regset_from_core_section): New functions.
2914 (fetch_core_registers, regset_core_fns): Deleted.
2915 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2916 Deleted regset_core_fns.
2917 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2918 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2919 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2922 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2924 * s390-tdep.c: Include linux-tdep.h.
2925 (s390_gdbarch_init): Call linux_init_abi.
2927 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2929 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2930 instead of printing "Thread" here.
2931 * linux-tdep.c: Include inferior.h.
2932 (linux_core_pid_to_str): New.
2933 (linux_init_abi): New.
2934 * linux-tdep.h (linux_init_abi): Declare.
2935 * alpha-linux-tdep.c: Include linux-tdep.h.
2936 (alpha_linux_init_abi): Call linux_init_abi.
2937 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2938 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2939 * frv-linux-tdep.c: Include linux-tdep.h
2940 (frv_linux_init_abi): Call linux_init_abi.
2941 * hppa-linux-tdep.c: Include linux-tdep.h
2942 (hppa_linux_init_abi): Call linux_init_abi.
2943 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2944 * ia64-linux-tdep.c: Include linux-tdep.h.
2945 (ia64_linux_init_abi): Call linux_init_abi.
2946 * m32r-linux-tdep.c: Include linux-tdep.h.
2947 (m32r_linux_init_abi): Call linux_init_abi.
2948 * m68klinux-tdep.c: Include linux-tdep.h.
2949 (m68k_linux_init_abi): Call linux_init_abi.
2950 * microblaze-linux-tdep.c: Include linux-tdep.h.
2951 (microblaze_linux_init_abi): Call linux_init_abi.
2952 * mips-linux-tdep.c: Include linux-tdep.h.
2953 (mips_linux_init_abi): Call linux_init_abi.
2954 * mn10300-linux-tdep.c: Include linux-tdep.h.
2955 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2956 'gdbinfo' parameter to 'info'.
2957 * ppc-linux-tdep.c: Include linux-tdep.h.
2958 (ppc_linux_init_abi): Call linux_init_abi.
2959 * sh-linux-tdep.c: Include linux-tdep.h.
2960 (sh_linux_init_abi): Call linux_init_abi.
2961 * sparc-linux-tdep.c: Include linux-tdep.h.
2962 (sparc32_linux_init_abi): Call linux_init_abi.
2963 * sparc64-linux-tdep.c: Include linux-tdep.h.
2964 (sparc64_linux_init_abi): Call linux_init_abi.
2965 * xtensa-linux-tdep.c: Include linux-tdep.h.
2966 (xtensa_linux_init_abi): Call linux_init_abi.
2967 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2968 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2971 2010-08-03 Doug Evans <dje@google.com>
2973 * breakpoint.c (bpdisp_text): Constify bpdisps.
2974 * solib-svr4.c (solib_break_names): Constify.
2975 (bkpt_names, main_name_list): Constify.
2976 (match_main): Constify soname arg.
2977 (bfd_lookup_symbol): Remove unnecessary forward decl.
2978 Constify symname arg.
2979 (enable_break): Constify bkpt_namep.
2980 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2981 (symtab_symbol_info): Constify classnames.
2983 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2985 * NEWS: Document Python value inferior function calls.
2987 2010-08-02 Doug Evans <dje@google.com>
2989 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2991 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2993 * linux-thread-db.c (libthread_db_debug): New variable.
2994 (thread_db_find_new_threads_silently): Control verbosity with it.
2995 (try_thread_db_load_1, try_thread_db_load): Likewise.
2996 (find_new_threads_once): Likewise.
2997 (_initialize_thread_db): Set/show it.
2999 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3001 * common/signals.c (signals): Move the content to signals.def.
3002 Include it. Remove the INDENT comments.
3004 2010-07-30 Tom Tromey <tromey@redhat.com>
3006 * Makefile.in (install-only): Install gdb-add-index.
3007 * gdb-add-index.sh: New file.
3009 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3011 * MAINTAINERS: Add myself for write after approval privileges.
3013 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3015 * symfile.c (addr_section_name): New function.
3016 (addrs_section_compar): Use it.
3017 (addr_info_make_relative): Use it. Move variable sect_name into a more
3018 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3020 2010-07-30 Tom Tromey <tromey@redhat.com>
3022 * configure: Rebuild.
3023 * configure.ac: Add missing case for Python 2.7.
3025 2010-07-29 DJ Delorie <dj@redhat.com>
3027 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3030 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3032 * PROBLEMS: Remove mention of all problems.
3034 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3037 * configure.ac: Check for wresize.
3038 * configure, config.in: Regenerate.
3039 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3042 2010-07-28 Tom Tromey <tromey@redhat.com>
3045 * python/py-type.c (typy_legacy_template_argument): New function,
3046 extracted from typy_template_argument.
3047 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3050 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3052 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3054 2010-07-27 Tom Tromey <tromey@redhat.com>
3056 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3058 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3060 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3061 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3063 2010-07-28 Tom Tromey <tromey@redhat.com>
3065 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3067 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3069 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3070 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3072 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3074 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3075 down, just before the block that parse the breakpoint addr_string.
3077 2010-07-28 Tom Tromey <tromey@redhat.com>
3080 * symfile.c (reread_symbols): Clear template_symbols.
3081 * symtab.h (struct symbol) <is_cplus_template_function>: New
3083 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3084 (struct template_symbol): New.
3085 * symtab.c (lookup_symbol_aux_local): Use
3086 cp_lookup_symbol_imports_or_template.
3087 * objfiles.h (struct objfile) <template_symbols>: New field.
3088 * objfiles.c (relocate_one_symbol): New function.
3089 (objfile_relocate1): Use it. Relocate isolated symbols.
3090 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3091 template_arguments>: New fields.
3092 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3093 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3094 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3095 (lookup_typename): Update.
3096 * gdbtypes.c (lookup_typename): Constify "block" argument.
3097 * dwarf2read.c: Include vec.h.
3098 (symbolp): New typedef.
3099 (read_func_scope): Read template arguments. Allocate a
3100 template_symbol when needed.
3101 (read_structure_type): Read template arguments.
3102 (new_symbol_full): New function, from new_symbol. Handle
3103 DW_TAG_template_type_param and DW_TAG_template_value_param.
3104 (new_symbol): Rewrite as wrapper.
3105 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3106 * cp-namespace.c: Include language.h.
3107 (search_symbol_list): New function.
3108 (cp_lookup_symbol_imports_or_template): Likewise.
3110 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3112 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3113 the command window to the new size and position.
3115 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3117 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3120 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3122 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3123 after a detecting a resize.
3124 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3127 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3129 * configure.ac: Check for resize_term.
3130 * configure, config.in: Regenerate.
3132 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3134 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3136 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3138 * dwarf2read.c (read_string): Rename to ...
3139 (read_direct_string): ... this.
3140 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3141 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3143 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3145 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3146 (count_events_callback, select_event_lwp_callback)
3147 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3149 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3151 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3152 (_initialize_ia64_linux_nat): Install it.
3153 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3154 (linux_nat_set_status_is_event): New.
3155 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3156 cancel_breakpoints_callback, linux_nat_filter_event)
3157 (linux_nat_wait_1): Use linux_nat_status_is_event.
3158 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3160 2010-07-27 Tom Tromey <tromey@redhat.com>
3162 * NEWS: Mention labels, .gdb_index.
3164 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3166 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3167 "start,+length" form of arguments.
3168 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3169 since GDB 7.1"; and merge two separated paragraphs of disassemble
3170 description in "Changes in GDB 7.0".
3172 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3175 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3176 (fputs_maybe_filtered): Do not do filtering also on
3177 ! INPUT_FROM_TERMINAL_P.
3179 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3181 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3184 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3186 * python/py-value.c (valpy_call): New Function.
3188 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3190 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3191 types_list_elements variables.
3193 2010-07-26 Tom Tromey <tromey@redhat.com>
3195 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3196 TLS with DW_OP_const4u or DW_OP_const8u.
3198 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3200 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3201 VSX registers contents.
3203 2010-07-26 Jerome Guitton <guitton@adacore.com>
3205 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3206 its adress is null. Add comment to explain why.
3207 (new_symbol): Ditto.
3209 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3211 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3212 the host signal first.
3214 2010-07-23 Tom Tromey <tromey@redhat.com>
3216 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3217 type_comp_units>: New fields.
3218 (dw2_get_cu): New function.
3219 (create_cus_from_index): Remove unused argument.
3220 (create_signatured_type_hash_from_index): New function.
3221 (create_addrmap_from_index): Update.
3222 (dwarf2_read_index): Handle version 2.
3223 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3224 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3225 (dw2_print_stats, dw2_expand_all_symtabs)
3226 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3227 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3228 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3229 (allocate_signatured_type_hash_table): New function.
3230 (add_signatured_type_cu_to_list): Likewise.
3231 (create_debug_types_hash_table): Use them. Set type_comp_units.
3232 (read_signatured_type): Ensure section data is available.
3233 (add_address_entry): Don't record empty ranges.
3234 (struct signatured_type_index_data): New.
3235 (write_one_signatured_type): New function.
3236 (write_psymtabs_to_index): Write type CUs.
3237 (save_gdb_index_command): Update comment.
3238 (process_type_comp_unit): Move inititalization of
3240 (create_debug_types_hash_table): ... here.
3242 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3245 cleanup and generating of gdb script to it.
3246 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3247 and terminal size. Convert $tmpfile to a series of -ex-es.
3249 2010-07-23 Keith Seitz <keiths@redhat.com>
3251 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3252 hook for STATIC_BLOCK types, too.
3254 2010-07-23 Keith Seitz <keiths@redhat.com>
3256 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3257 and vector definition.
3259 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3261 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3263 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3265 * dwarf2read.c: Include completer.h.
3266 (save_gdb_index_command): Use matching usage command name.
3267 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3268 Set filename_completer for it.
3270 2010-07-22 Tom Tromey <tromey@redhat.com>
3272 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3273 type signature's per-CU data.
3275 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3277 * NEWS: Mention target reported shared libraries support by
3280 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3285 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3286 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3287 and DW_TAG_volatile_type.
3288 (new_symbol): Likewise.
3290 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3292 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3293 function symbols before overload resolution.
3295 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3297 * breakpoint.c (bptype_string): New, abstracted out from
3298 print_one_breakpoint_location.
3299 (print_one_breakpoint_location): Adjust.
3300 (breakpoint_1): Adjust the type column width dynamically.
3302 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3304 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3305 a gdb_assert call, new comment.
3307 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3309 * linux-nat.c (linux_handle_extended_wait): Handle case when
3310 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3312 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3315 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3316 linux_nat_wait_1. Use always LP->STATUS afterwards.
3318 2010-07-20 Hui Zhu <teawater@gmail.com>
3320 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3321 (inf_ptrace_attach): Ditto.
3323 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 Make core files the process_stratum.
3326 * corefile.c (core_target): New variable.
3327 (core_file_command): Remove variable t, use core_target.
3328 * corelow.c (core_ops): Make it static.
3329 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3330 * defs.h (make_cleanup_unpush_target): New prototype.
3331 * gdbarch.h: Regenerate.
3332 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3333 * gdbcore.h (core_target): New declaration.
3334 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3335 variables ops_already_pushed and back_to. Use push_target,
3336 make_cleanup_unpush_target and discard_cleanups calls.
3337 * record.c (record_open): Replace core_stratum by a core_bfd check.
3338 * target.c (target_is_pushed): New function.
3339 (find_core_target): Remove.
3340 * target.h (enum strata) <core_stratum>: Remove.
3341 (target_is_pushed): New declaration.
3342 (find_core_target): Remove declaration.
3343 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3344 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3346 2010-07-19 Hui Zhu <teawater@gmail.com>
3348 * breakpoint.c (single_step_breakpoints_inserted): New
3350 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3351 * infrun.c (maybe_software_singlestep): Add check code.
3352 * record.c (record_resume): Add code for software single step.
3353 (record_wait): Ditto.
3355 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3357 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3358 a more inner block. Remove its unused declaration initializer.
3360 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3362 * NEWS: Mention support for the new ptrace interface and hardware
3363 accelerated watchpoint conditions on powerpc-linux.
3365 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3367 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3368 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3369 and host_address_to_string() and %s for pointers.
3370 (debug_to_remove_breakpoint): Likewise.
3371 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3372 (debug_to_can_accel_watchpoint_condition): Likewise.
3373 (debug_to_stopped_data_address): Likewise.
3374 (debug_to_watchpoint_addr_within_range): Likewise.
3375 (debug_to_insert_hw_breakpoint): Likewise.
3376 (debug_to_remove_hw_breakpoint): Likewise.
3377 (debug_to_insert_watchpoint): Likewise.
3378 (debug_to_remove_watchpoint): Likewise.
3380 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3382 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3384 (cplus_specific): New struct.
3385 * symtab.c (symbol_set_demangled_name): Updated.
3386 Use cplus_specific for cplus symbols.
3387 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3388 struct for cplus symbols.
3389 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3390 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3391 * symtab.c (symbol_init_cplus_specific): New function.
3393 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3395 * symtab.h (symbol_set_demangled_name): New function.
3396 (symbol_get_demangled_name): New function.
3397 * symtab.c (symbol_set_demangled_name): New function.
3398 (symbol_get_demangled_name): New function.
3399 (symbol_init_language_specific): Use demangled_name setter and getter.
3400 (symbol_set_names): Ditto.
3401 (symbol_natural_name): Ditto.
3402 (symbol_demangled_name): Ditto.
3403 * dwarf2read.c (new_symbol): Ditto.
3405 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3407 * symtab.h: Renamed cplus_specific to mangled_lang.
3408 * symtab.c (symbol_init_language_specific): Updated.
3409 (symbol_set_names): Updated.
3410 (symbol_natural_name): Updated.
3411 (symbol_demangled_name): Updated.
3412 * ada-lang.c (ada_decode_symbol): Updated.
3413 * dwarf2read.c (new_symbol): Updated.
3415 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3417 * valops.c (value_assign): Do not call to value_coerce_to_target.
3418 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3420 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3422 * MAINTAINERS: Add myself for write after approval privileges.
3424 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3426 * c-valprint.c (c_val_print): Add embedded_offset to address in
3427 call to val_print_array_elements.
3429 2010-07-13 Tom Tromey <tromey@redhat.com>
3431 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3433 2010-07-13 Tom Tromey <tromey@redhat.com>
3435 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3438 2010-07-13 Tom Tromey <tromey@redhat.com>
3440 * symfile.c (set_initial_language): Update.
3441 (deduce_language_from_filename): Argument type now const.
3442 * symtab.h (find_main_filename): Update.
3443 (deduce_language_from_filename): Update.
3444 * symtab.c (find_main_filename): Make result const.
3445 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3446 * psymtab.c (find_symbol_file_from_partial): Change return type.
3447 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3450 2010-07-13 Tom Tromey <tromey@redhat.com>
3452 * breakpoint.c (save_cmdlist): No longer static.
3453 * gdbcmd.h (save_cmdlist): Declare.
3454 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3455 OBJF_READNOW on objfile if readnow_symbol_files.
3456 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3457 (elf_sym_fns_gdb_index): New global.
3458 * dwarf2read.c: Include exceptions.h.
3460 (struct mapped_index): New.
3461 (dwarf2_per_cu_data_ptr): New typedef.
3462 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3464 (GDB_INDEX_SECTION): New define.
3465 (struct dwarf2_per_cu_quick_data): New.
3466 (struct dwarf2_per_cu_data) <objfile>: New field.
3469 (byte_swap): New function.
3470 (MAYBE_SWAP): New macro.
3471 (INDEX_SUFFIX): New macro.
3472 (dw2_do_instantiate_symtab): New function.
3473 (dw2_instantiate_symtab): Likewise.
3474 (create_cus_from_index): Likewise.
3475 (create_addrmap_from_index): Likewise.
3476 (mapped_index_string_hash): Likewise.
3477 (find_slot_in_mapped_hash): Likewise.
3478 (dwarf2_read_index): Likewise.
3479 (dw2_setup): Likewise.
3480 (dw2_require_line_header): Likewise.
3481 (dw2_require_full_path): Likewise.
3482 (dw2_find_last_source_symtab): Likewise.
3483 (dw2_forget_cached_source_info): Likewise.
3484 (dw2_lookup_symtab): Likewise.
3485 (dw2_lookup_symbol): Likewise.
3486 (dw2_do_expand_symtabs_matching): Likewise.
3487 (dw2_pre_expand_symtabs_matching): Likewise.
3488 (dw2_print_stats): Likewise.
3489 (dw2_dump): Likewise.
3490 (dw2_relocate): Likewise.
3491 (dw2_expand_symtabs_for_function): Likewise.
3492 (dw2_expand_all_symtabs): Likewise.
3493 (dw2_expand_symtabs_with_filename): Likewise.
3494 (dw2_find_symbol_file): Likewise.
3495 (dw2_map_ada_symtabs): Likewise.
3496 (dw2_expand_symtabs_matching): Likewise.
3497 (dw2_find_pc_sect_symtab): Likewise.
3498 (dw2_map_symbol_names): Likewise.
3499 (dw2_map_symbol_filenames): Likewise.
3500 (dw2_has_symbols): Likewise.
3501 (dwarf2_gdb_index_functions): New global.
3502 (dwarf2_initialize_objfile): New function.
3503 (process_psymtab_comp_unit): Update.
3504 (add_partial_subprogram): Likewise.
3505 (dwarf2_psymtab_to_symtab): Likewise.
3506 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3507 (process_full_comp_unit): Update.
3508 (find_file_and_directory): New function.
3509 (read_file_scope): Use find_file_and_directory.
3510 (dwarf2_per_cu_objfile): Update.
3511 (dwarf2_per_cu_addr_size): Update.
3512 (dwarf2_per_cu_offset_size): Update.
3513 (dwarf2_free_objfile): Free the index, if needed.
3514 (dwarf2_per_objfile_free): Unmap the index, if needed.
3515 (struct strtab_entry): New.
3516 (hash_strtab_entry): New function.
3517 (eq_strtab_entry): Likewise.
3518 (create_strtab): Likewise.
3519 (add_string): Likewise.
3520 (struct symtab_index_entry): New.
3521 (struct mapped_symtab): New.
3522 (hash_symtab_entry): New function.
3523 (eq_symtab_entry): Likewise.
3524 (delete_symtab_entry): Likewise.
3525 (create_index_table): Likewise.
3526 (create_mapped_symtab): Likewise.
3527 (cleanup_mapped_symtab): Likewise.
3528 (find_slot): Likewise.
3529 (hash_expand): Likewise.
3530 (add_index_entry): Likewise.
3531 (add_indices_to_cpool): Likewise.
3532 (write_hash_table): Likewise.
3533 (add_address_entry): Likewise.
3534 (write_psymbols): Likewise.
3535 (write_obstack): Likewise.
3536 (unlink_if_set): Likewise.
3537 (write_psymtabs_to_index): Likewise.
3538 (save_gdb_index_command): Likewise.
3539 (_initialize_dwarf2_read): Install "save gdb-index"
3541 (create_all_comp_units): Initialize 'objfile' field of CU.
3542 (dwarf2_locate_sections): Check for .gdb_index.
3543 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3544 * symfile.h (dwarf2_initialize_objfile): Declare.
3546 2010-07-13 Tom Tromey <tromey@redhat.com>
3548 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3549 (basic_lookup_transparent_type): Likewise.
3550 * symfile.h (struct quick_symbol_functions)
3551 <pre_expand_symtabs_matching>: New field.
3552 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3553 (psym_functions): Update.
3555 2010-07-13 Tom Tromey <tromey@redhat.com>
3557 PR breakpoints/8357:
3558 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3559 * linespec.c (decode_line_1): Update comment. Call decode_label.
3560 (decode_label): New function.
3561 (symbol_found): Handle LOC_LABEL.
3562 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3563 domain. Call add_symbol_to_list.
3565 2010-07-13 Tom Tromey <tromey@redhat.com>
3567 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3568 * dwarf2loc.c (find_location_expression): Use
3569 dwarf2_per_cu_text_offset.
3570 (dwarf2_evaluate_loc_desc): Likewise.
3571 (dwarf2_loc_desc_needs_frame): Likewise.
3572 (compile_dwarf_to_ax): Likewise.
3573 (loclist_describe_location): Likewise.
3574 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3575 (dwarf2_per_cu_objfile): Update comment.
3577 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3579 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3580 * p-lang.c (pascal_printstr): Likewise.
3582 2010-07-09 Tom Tromey <tromey@redhat.com>
3584 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3585 'hint' if it is NULL.
3587 2010-07-09 Hui Zhu <teawater@gmail.com>
3589 * source.c (print_source_lines_base): Add check for noprint.
3591 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3593 * python/python-config.py: Resync with Python 2.7 version of this
3596 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3598 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3600 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3602 * NEWS: Create a new section for the next release branch.
3603 Rename the section of the current branch, now that it has
3606 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3608 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3609 * version.in: Bump version to 7.2.50.20100707-cvs.
3611 2010-07-07 Tom Tromey <tromey@redhat.com>
3613 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3614 LOC_COMPUTED symbol.
3615 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3616 (dwarf2_loc_desc_needs_frame): Likewise.
3617 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3618 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3619 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3620 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3622 (struct dwarf2_frame_cache) <text_offset>: New field.
3623 (dwarf2_frame_cache): Set new field.
3624 (dwarf2_frame_prev_register): Update.
3625 (dwarf2_frame_sniffer): Update.
3626 (dwarf2_frame_base_sniffer): Update.
3627 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3629 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3630 Thiago Jung Bauermann <bauerman@br.ibm.com>
3632 Support for hw accelerated condition watchpoints in booke powerpc.
3634 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3635 and move to eval.c. Change callers.
3636 (insert_bp_location): Pass watchpoint condition in
3637 target_insert_watchpoint.
3638 (remove_breakpoint_1) Pass watchpoint condition in
3639 target_remove_watchpoint.
3640 (watchpoint_locations_match): Call
3641 target_can_accel_watchpoint_condition.
3642 * eval.c: Include wrapper.h.
3643 (fetch_subexp_value): Moved from breakpoint.c.
3644 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3646 (can_use_watchpoint_cond_accel): New function.
3647 (calculate_dvc): Likewise.
3648 (num_memory_accesses): Likewise.
3649 (check_condition): Likewise.
3650 (ppc_linux_can_accel_watchpoint_condition): Likewise
3651 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3652 check_condition and calculate_dvc.
3653 (ppc_linux_remove_watchpoint): Likewise.
3654 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3655 ppc_linux_can_accel_watchpoint_condition
3656 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3658 (debug_to_remove_watchpoint): Likewise.
3659 (debug_to_can_accel_watchpoint_condition): New function.
3660 (update_current_target): Set to_can_accel_watchpoint_condition.
3661 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3662 * target.h: Add opaque declaration for struct expression.
3663 (struct target_ops) <to_insert_watchpoint>,
3664 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3665 <to_can_accel_watchpoint_condition>: New member.
3666 condition. Update all callers and implementations.
3667 (target_can_accel_watchpoint_condition): New macro.
3668 * value.c (free_value_chain): New function.
3669 * value.h (fetch_subexp_value): New prototype.
3670 (free_value_chain): Likewise.
3672 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3674 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3675 from gdbarch_core_regset_sections also for .reg if present.
3677 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3678 section size for .reg.
3679 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3680 (ppc_linux_vmx_regset_sections): Likewise.
3681 (ppc_linux_fp_regset_sections): Likewise.
3682 (ppc64_linux_vsx_regset_sections): New variable.
3683 (ppc64_linux_vmx_regset_sections): Likewise.
3684 (ppc64_linux_fp_regset_sections): Likewise.
3685 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3686 for current word size.
3688 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3690 * server.c (myresume): Make static.
3692 2010-07-06 Tom Tromey <tromey@redhat.com>
3694 * configure, config.in: Rebuild.
3695 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3696 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3698 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3700 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3703 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3705 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3706 * gdbtypes.c (floatformats_ieee_half): New variable.
3707 * doublest.c (floatformat_from_length): Set format to
3708 gdbarch_half_format if length matches.
3709 * gdbarch.sh (half_bit): New architecture method.
3710 (half_format): Likewise.
3711 * gdbarch.h: Regenerate.
3712 * gdbarch.c: Likewise.
3714 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3715 Joel Brobecker <brobecker@adacore.com>
3717 Fix re-run of PIE executable, PR shlibs/11776.
3718 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3719 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3721 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3722 Joel Brobecker <brobecker@adacore.com>
3724 * auxv.c (memory_xfer_auxv): Update attach comment.
3725 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3726 svr4_relocate_main_executable.
3727 (svr4_solib_create_inferior_hook): Make the call to
3728 svr4_relocate_main_executable unconditional.
3730 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3731 Joel Brobecker <brobecker@adacore.com>
3733 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3735 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3736 Joel Brobecker <brobecker@adacore.com>
3738 Fix attaching to PIEs prelinked on the disk after the process was
3740 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3741 Verify it against bfd_get_arch_size. Try to match arbitrary
3742 displacement for the phdrs comparison.
3744 2010-07-02 Tom Tromey <tromey@redhat.com>
3747 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3748 value as optimized-out.
3750 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3751 Thiago Jung Bauermann <bauerman@br.ibm.com>
3753 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3754 represent?" question in comment. Change comment to a proper sentence.
3756 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3758 * c-valprint.c (c_val_print): Fix printing of character vectors.
3760 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3762 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3763 create_breakpoint prototype.
3765 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3767 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3768 usefulness suggestion of multiple breakpoints at same location.
3770 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3772 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3774 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3776 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3777 (loclist_tracepoint_var_ref): Handle optimized out values.
3779 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3781 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3782 unnecessary space in string.
3783 * filesystem.c (_initialize_filesystem): Ditto.
3784 * frame.c (_initialize_frame): Ditto.
3785 * infcmd.c (step_once): Ditto.
3786 * infrun.c (_initialize_infrun): Ditto.
3787 * linux-nat.c (linux_child_follow_fork): Ditto.
3788 * maint.c (maintenance_deprecate): Ditto.
3789 * memattr.c (_initialize_mem): Ditto.
3790 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3791 * monitor.c (monitor_open): Ditto.
3792 * procfs.c (procfs_xfer_memory): Ditto.
3793 * reverse.c (bookmarks_info): Ditto.
3794 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3795 * stack.c (_initialize_stack): Ditto.
3796 * tracepoint.c (_initialize_tracepoint): Ditto.
3797 * xtensa-tdep.c (xtensa_supply_gregset,
3798 xtensa_regset_from_core_section): Ditto.
3800 2010-07-01 Tom Tromey <tromey@redhat.com>
3802 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3804 * value.c (value_entirely_optimized_out): Invert result. Update
3805 for new function name.
3807 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3809 Static tracepoints support.
3811 * NEWS: Mention new support for static tracepoints.
3812 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3813 qXfer:statictrace:read.
3814 (New features in the GDB remote stub, GDBserver): Mention static
3815 tracepoints support using an UST based backend.
3816 (New commands): Mention "info static-tracepoint-markers" and
3818 * breakpoint.c (is_marker_spec): New.
3819 (is_tracepoint): Handle static tracepoints.
3820 (validate_commands_for_breakpoint): Static tracepoints can't do
3822 (static_tracepoints_here): New.
3823 (bpstat_what): Handle static tracepoints.
3824 (print_one_breakpoint_location, allocate_bp_location, mention):
3826 (create_breakpoint_sal): Ditto.
3827 (decode_static_tracepoint_spec): New.
3828 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3829 `type_wanted'. Adjust. Handle static tracepoint marker
3831 (break_command_1): Adjust.
3832 (update_static_tracepoint): New.
3833 (update_breakpoint_locations): Handle static tracepoints.
3834 (breakpoint_re_set_one): Handle static tracepoint marker
3836 (disable_command, enable_command): Handle static tracepoints.
3837 (trace_command, ftrace_command): Adjust.
3838 (strace_command): New.
3839 (create_tracepoint_from_upload): Adjust.
3840 (save_breakpoints): Handle static tracepoints.
3841 (_initialize_breakpoint): Install the "strace" command.
3842 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3843 (struct breakpoint): New fields static_trace_marker_id and
3844 static_trace_marker_id_idx.
3845 (breakpoints_here_p): Declare.
3846 (create_breakpoint): Adjust.
3847 (static_tracepoints_here): Declare.
3848 * remote.c (struct remote_state) <static_tracepoints>: New field.
3849 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3850 (remote_static_tracepoint_marker_at): New.
3851 (remote_static_tracepoint_markers_by_strid): New.
3852 (remote_static_tracepoint_feature): New.
3853 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3854 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3855 (remote_supports_static_tracepoints): New.
3856 (remote_download_tracepoint): Download static tracepoints.
3857 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3858 remote_static_tracepoint_markers_by_strid.
3859 (_initialize_remote): Install set|show remote static-tracepoints,
3860 and set|show remote read-sdata-object commands.
3861 * target.c (update_current_target): Inherit and default
3862 to_static_tracepoint_marker_at, and
3863 to_static_tracepoint_markers_by_strid.
3864 * target.h (static_tracepoint_marker): Forward declare.
3865 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3866 (static_tracepoint_marker_p): New typedef.
3867 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3868 (struct target_ops): New fields to_static_tracepoint_marker_at and
3869 to_static_tracepoint_markers_by_strid.
3870 (target_static_tracepoint_marker_at)
3871 (target_static_tracepoint_markers_by_strid): New.
3872 * tracepoint.c: Include source.h.
3873 (validate_actionline): Handle $_sdata.
3874 (struct collection_list): New field strace_data.
3875 (add_static_trace_data): New.
3876 (clear_collection_list): Clear strace_data.
3877 (stringify_collection_list): Account for a possible static trace
3879 (encode_actions_1): Encode an $_sdata collection.
3880 (parse_tracepoint_definition): Handle static tracepoints.
3881 (parse_static_tracepoint_marker_definition): New.
3882 (release_static_tracepoint_marker): New.
3883 (print_one_static_tracepoint_marker): New.
3884 (info_static_tracepoint_markers_command): New.
3885 (sdata_make_value): New.
3886 (_initialize_tracepoint): Create the $_sdata convenience variable.
3887 Add the "info static-tracepoint-markers" command.
3888 Mention $_sdata in the "collect" command's help output.
3889 * tracepoint.h (struct static_tracepoint_marker): New.
3890 (parse_static_tracepoint_marker_definition)
3891 (release_static_tracepoint_marker): Declare.
3892 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3893 * python/py-breakpoint.c (bppy_new): Adjust.
3895 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3897 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3900 2010-06-29 Doug Evans <dje@google.com>
3903 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3904 DW_AT_external is present.
3908 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3909 create a symbol for the field and record the value.
3910 (new_symbol): Handle DW_TAG_member.
3911 * gdbtypes.c (field_is_static): Remove FIXME.
3912 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3913 only ignore LOC_CONST symbols that are enums.
3915 * dwarf2read.c: Remove trailing whitespace.
3917 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3918 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3919 (struct main_type, field loc): Delete dwarf_block.
3920 (FIELD_DWARF_BLOCK): Delete.
3921 (SET_FIELD_DWARF_BLOCK): Delete.
3922 (TYPE_FIELD_DWARF_BLOCK): Delete.
3923 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3926 2010-06-29 Hui Zhu <teawater@gmail.com>
3928 * record.c (set_record_pic_cmdlist,
3929 show_record_pic_cmdlist): New variables.
3930 (set_record_pic_command,
3931 show_record_pic_command): New functions.
3932 (record_pic_function, record_pic_line, record_pic_enum,
3933 set_record_pic_type, record_pic_hide_nofunction,
3934 record_pic_hide_nosource, record_pic_hide_same): New variables.
3935 (record_pic_fputs): New function.
3936 (function_list, node_list, edge_list): New struct.
3937 (function_list, node_list, edge_list): New variables.
3938 (record_pic_cleanups, record_pic_node,
3939 record_pic_edge, cmd_record_pic): New functions.
3940 (_initialize_record): Add new commands for record pic.
3942 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3945 ALLOCATE_CPLUS_STRUCT_TYPE.
3947 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3948 Tom Tromey <tromey@redhat.com>
3949 Thiago Jung Bauermann <bauerman@br.ibm.com>
3951 * value.c (pack_unsigned_long): New function.
3952 (value_from_ulongest): New function.
3953 * value.h (value_from_ulongest): Declare.
3954 * python/python.c (_initialize_python): Call
3955 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3956 * python/python-internal.h: Define thread_object.
3957 (gdbpy_inferiors, gdbpy_selected_thread)
3958 (frame_info_to_frame_object, create_thread_object)
3959 (find_thread_object, find_inferior_object)
3960 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3961 (gdbpy_is_value_object, get_addr_from_python): Declare.
3962 * python/py-value.c (builtin_type_upylong): Define.
3963 (convert_value_from_python): Add logic for ulongest.
3964 (gdbpy_is_value_object): New function.
3965 * python/py-utils.c (get_addr_from_python): New function.
3966 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3967 (gdbpy_selected_frame): Use PyObject over frame_info.
3968 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3970 (SUBDIR_PYTHON_SRCS): Likewise.
3971 (py-inferior.o): New Rule.
3972 (py-infthread.o): New Rule.
3973 * python/py-inferior.c: New File.
3974 * python/py-infthread.c: New File.
3976 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 * c-typeprint.c (c_type_print_base): For no fields check include also
3979 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3980 * dwarf2read.c (struct typedef_field_list)
3981 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3982 (dwarf2_add_typedef): New.
3983 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3984 Copy also FI.TYPEDEF_FIELD_LIST.
3985 * gdbtypes.h (struct typedef_field)
3986 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3987 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3988 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3990 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 * cp-namespace.c (cp_lookup_nested_type): New variable
3993 concatenated_name. Turn the current return condition into a reverse
3994 one. Call also lookup_static_symbol_aux on the constructed qualified
3996 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3997 other files into a called ...
3998 (lookup_static_symbol_aux): ... new function here.
3999 * symtab.h (lookup_static_symbol_aux): New prototype.
4000 * valops.c (value_maybe_namespace_elt): Call also
4001 lookup_static_symbol_aux if we failed otherwise.
4003 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4005 Fix PR c++/11703 and PR gdb/1448.
4006 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4009 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 Fix modification of cplus_struct_default.
4012 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4013 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4014 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4016 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4018 * NEWS: Add entry announcing the python directory.
4020 2010-06-28 Tom Tromey <tromey@redhat.com>
4022 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4024 2010-06-28 Doug Evans <dje@google.com>
4026 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4027 All callers updated.
4029 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4032 obstack_begin after each obstack_free.
4034 2010-06-27 Doug Evans <dje@google.com>
4036 * value.c (value_static_field): Use `switch' instead of `if'.
4037 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4039 * valops.c (search_struct_field): Fix typo in error message.
4041 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4043 * dwarf2expr.c (execute_stack_op): Place preprocessor
4044 directives at the start of the source line.
4046 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4048 * defs.h (make_command_stats_cleanup): Declare.
4049 (set_display_time): Declare.
4050 (set_display_space): Declare.
4051 * event-top.c (command_handler): Use make_command_stats_cleanup.
4052 * main.c (display_time, display_space): Move definitions to utils.c.
4053 (captured_main): Use make_command_stats_cleanup to get start-up
4055 Use set_display_time and set_display_space for processing OPT_STATISTICS
4057 * maint.c (maintenance_time_display): Use set_display_time.
4058 (maintenance_space_display): Use set_display_space.
4059 * top.c (execute_command): Remove obsolete 'maint time' code.
4060 (command_loop): Use make_command_stats_cleanup.
4061 * utils.c (struct cmd_stats): Structure for storing initial time
4063 (display_time, display_space): Move definitions here from utils.c.
4064 (set_display_time): New function.
4065 (set_display_space): New function.
4066 (make_command_stats_cleanup): New function.
4067 (report_command_stats): New auxiliary function for
4068 make_command_stats_cleanup.
4070 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4072 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4073 hosts where CORE_ADDR is long long.
4075 2010-06-25 Tom Tromey <tromey@redhat.com>
4078 * python/python.c (execute_gdb_command): Add keywords. Accept
4079 "to_string" argument.
4080 (struct restore_ui_file_closure): New.
4081 (restore_ui_file): New function.
4082 (make_cleanup_restore_ui_file): Likewise.
4083 (GdbMethods) <execute>: Update.
4085 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4087 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4088 during inferior call stack frame setup.
4090 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4092 * solib-spu.c: Include "exception.h".
4093 (ocl_program_data_key): New variable.
4094 (append_ocl_sos): New function.
4095 (ocl_enable_break): Likewise.
4096 (spu_current_sos): Call append_ocl_sos.
4097 (spu_solib_loaded): Call ocl_enable_break.
4098 (_initialize_spu_solib): Register ocl_program_data_key.
4100 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4102 * cp-support.c (reset_directive_searched): New function.
4103 (make_symbol_overload_list_using): Prevent recursive calls.
4105 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4107 * printcmd.c (print_variable_and_value): Print error message on
4110 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4112 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4114 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4116 (dwarf_expr_push): Change input type to ULONGEST.
4117 (dwarf_expr_fetch): Change return type to ULONGEST.
4118 (dwarf_expr_fetch_address): Add prototype.
4119 (dwarf2_read_address): Remove prototype.
4120 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4121 Truncate stack values to ctx->addr_size bytes.
4122 (dwarf_expr_fetch): Change return value to ULONGEST.
4123 (dwarf_expr_fetch_address): New function.
4124 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4125 when appropriate. Update for struct dwarf_expr_piece changes.
4126 (dwarf2_read_address): Remove.
4127 (unsigned_address_type): Remove.
4128 (signed_address_type): Remove.
4129 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4130 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4131 values. Perform operations on ULONGEST instead of on GDB values,
4132 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4133 values and DW_OP_deref results as unsigned integers.
4134 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4136 (write_pieced_value): Likewise.
4137 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4138 dwarf_expr_fetch when appropriate.
4139 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4140 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4141 instead of dwarf_expr_fetch when appropriate.
4143 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4145 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4147 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4149 * python/python.c (_initialize_python): Add new "constant"
4150 PYTHONDIR in gdb module. Insert this path at the head of
4151 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4152 exec its __init__.py script if it exists in that directory.
4154 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4156 * rx-tdep.c (RX_ACC_REGNUM): Define.
4157 (RX_NUM_REGS): Redefine to 26.
4158 (rx_register_name): Add register "acc". Change order of several
4159 registers. Change name of "vct" register to "fintv" to match RX
4161 (rx_register_type): Add case for RX_ACC_REGNUM.
4163 2010-06-24 Tom Tromey <tromey@redhat.com>
4165 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4167 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4168 Tom Tromey <tromey@redhat.com>
4170 Fix GDB startup on readonly filesystem.
4171 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4173 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 Pedro Alves <pedro@codesourcery.com>
4177 * breakpoint.c (handle_jit_event): New function.
4178 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4179 jit, err, table and bs_class. New variables shlib_event, jit_event,
4180 this_action and bptype. Change bs_class assignments to this_action
4181 assignments. new unhandled bptype internal error. Move here
4182 shlib_event and jit_event handling from handle_inferior_event.
4183 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4184 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4185 BPSTAT_WHAT_CHECK_JIT.
4186 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4187 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4188 (handle_inferior_event): Reinitialize frame and gdbarch after
4189 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4190 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4191 gdbarch when frame gets reinitialized.
4193 2010-06-24 Hui Zhu <teawater@gmail.com>
4195 * printcmd.c (ui_printf): New function.
4196 (printf_command): Call ui_printf.
4197 (_initialize_printcmd): New command "eval".
4199 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4201 * infrun.c (handle_inferior_event): Handle presence of single-step
4202 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4203 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4204 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4205 * breakpoint.c (detach_single_step_breakpoints): New function.
4206 (detach_breakpoints): Call it.
4207 (cancel_single_step_breakpoints): New function.
4208 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4210 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4211 (spu_gdbarch_init): Install it.
4213 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4216 * configure: Regenerate.
4218 2010-06-22 Hui Zhu <teawater@gmail.com>
4220 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4221 (i386_process_record): Ditto.
4222 * record.c (record_memory_query): New variable.
4223 (_initialize_record): New command "set record memory-query".
4224 * record.h (record_memory_query): New extern.
4226 2010-06-21 Doug Evans <dje@google.com>
4228 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4229 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4230 (i386_syscall_p): Change type of lengthp to int.
4231 (i386_displaced_step_fixup): Handle kernels that run one past a
4233 * i386-linux-tdep.c (i386_linux_init_abi): Use
4234 i386_displaced_step_copy_insn instead of
4235 simple_displaced_step_copy_insn.
4237 2010-06-21 Tom Tromey <tromey@redhat.com>
4239 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4240 (dwarf_type_encoding_name): Likewise.
4242 2010-06-21 Tom Tromey <tromey@redhat.com>
4244 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4245 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4246 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4247 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4248 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4249 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4250 * dwarf2read.c (tag_type_to_type): Create a new error type on
4252 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4253 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4255 2010-06-21 Michael Snyder <msnyder@vmware.com>
4257 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4258 not add_abbrev_prefix_cmd, for "enable breakpoints".
4260 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4262 * dwarf2loc.c (find_location_expression): Add relocation offset
4263 to base-address-selection entry base addresses. Read addresses
4264 (and offsets) as signed/unsigned integers, depending on the
4265 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4266 (loclist_describe_location): Likewise.
4267 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4268 unsigned integer. Do not call dwarf2_read_address.
4269 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4271 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4273 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4274 value instead of hard-coded SPU_LS_SIZE.
4275 (spu_software_single_step): Likewise.
4276 * spu-tdep.h (SPU_LS_SIZE): Remove.
4278 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4280 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4281 limit on local store memory accesses.
4282 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4283 * spu-tdep.c (spu_lslr): Remove.
4284 (spu_pointer_to_address): Do not truncate addresses.
4285 (spu_integer_to_address): Likewise.
4286 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4287 * spu-tdep.h: Add comments.
4288 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4289 (SPU_OVERLAY_LMA): Define.
4291 2010-06-18 Stan Shebs <stan@codesourcery.com>
4293 * osdata.c (get_osdata): Warn separately if target does not report
4295 (info_osdata_command): Allow empty type, report error if target
4296 does not return available types of OS data.
4297 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4298 types if no annex supplied.
4300 * thread.c (thread_id_make_value): Make a value representing the
4302 (_initialize_thread): Create $_thread.
4304 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4306 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4307 last local variable declaration. No real code change.
4309 2010-06-17 Tom Tromey <tromey@redhat.com>
4311 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4312 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4315 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4316 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 * breakpoint.c: Include parser-defs.h.
4319 (watchpoint_exp_is_const): New function.
4320 (watch_command_1): Call watchpoint_exp_is_const to check
4321 if the expression is constant.
4323 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4325 * configure.ac: Check for RDYNAMIC also for cross builds.
4326 * configure: Regenerate.
4328 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4330 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4331 (SFILES): Remove solib-null.c, add solib-target.c.
4332 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4333 (ALLDEPFILES): Remove solib-target.c.
4334 * solib-target.c (_initialize_solib_target): Set
4335 current_target_so_ops to solib_target_so_ops if not already set.
4336 * solib-null.c: Delete.
4338 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4340 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4343 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4345 * cp-valprint.c (cp_print_static_field): Members of
4346 dont_print_stat_array_obstack are of type "struct type *".
4347 (_initialize_cp_valprint): Likewise.
4349 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4351 * frame.c (frame_register_unwind): Do not access contents
4352 of "optimized out" unwound register value.
4354 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4356 * ada-lang.h (ada_print_type): Make varstring const.
4357 * ada-typeprint.c (print_func_type): Make name const.
4358 (ada_print_type): Make varstring const.
4359 * c-lang.h (c_print_type): Make varstring const.
4360 * c-typeprint.c (c_print_type): Likewise.
4361 * f-lang.h (f_print_type): Likewise.
4362 * f-typeprint.c (f_print_type): Likewise.
4363 * jv-lang.h (java_print_type): Likewise.
4364 * jv-typeprint.c (java_print_type): Likewise.
4365 * language.c (unk_lang_print_type): Likewise.
4366 * language.h (struct language_defn) <la_print_type>: Likewise.
4367 * m2-lang.h (m2_print_type): Likewise.
4368 * m2-typeprint.c (m2_print_type): Likewise.
4369 * p-lang.h (pascal_print_type): Likewise.
4370 * p-typeprint.c (pascal_print_type): Likewise.
4372 2010-06-11 Stan Shebs <stan@codesourcery.com>
4374 Add per-operation permission flags.
4376 * target.h (struct target_ops): New method to_set_permissions.
4377 (target_set_permissions): New macro.
4378 (target_insert_breakpoint): Change macro to function.
4379 (target_remove_breakpoint): Ditto.
4380 (target_stop): Ditto.
4381 (may_write_registers): Declare.
4382 (may_write_memory): Declare.
4383 (may_insert_breakpoints): Declare.
4384 (may_insert_tracepoints): Declare.
4385 (may_insert_fast_tracepoints): Declare.
4386 (may_stop): Declare.
4387 * target.c (may_write_registers, may_write_registers_1): New globals.
4388 (may_write_memory, may_write_memory_1): New globals.
4389 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4390 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4391 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4393 (may_stop, may_stop_1): New global.
4394 (target_xfer_partial): Test for write permission.
4395 (target_store_registers): Ditto.
4396 (target_insert_breakpoint): New function.
4397 (target_remove_breakpoint): New function.
4398 (target_stop): New function.
4399 (_initialize_targets): Add new set/show variables.
4400 (set_write_memory_permission): New function.
4401 (update_target_permissions): New function.
4402 (set_target_permissions): New function.
4403 (update_current_target): Default to_set_permissions.
4404 (_initialize_targets): Use new globals and setter function.
4405 * tracepoint.c (start_tracing): Test for permission.
4406 * inferior.h (update_observer_mode): Declare.
4407 * infrun.c (non_stop_1): Define earlier.
4408 (observer_mode, observer_mode_1): New globals.
4409 (set_observer_mode, show_observer_mode): New functions.
4410 (update_observer_mode): New function.
4411 (_initialize_infrun): Define "set observer" command.
4412 * remote.c (PACKET_QAllow): New optional packet.
4413 (remote_protocol_features): Add QAllow.
4414 (remote_set_permissions): New function.
4415 (remote_start_remote): Call it.
4416 (init_remote_ops): Add it to target vector.
4417 (_initialize_remote): Add config command for QAllow.
4419 2010-06-11 Tom Tromey <tromey@redhat.com>
4421 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4422 DW_AT_vtable_elem_location even when GCC extension is seen.
4424 2010-06-11 Tom Tromey <tromey@redhat.com>
4426 PR gdb/9977, PR exp/11636:
4427 * value.h (value_offset): Update.
4428 (struct lval_funcs) <check_validity>: New field.
4429 <copy_closure>: Make argument const.
4430 (value_computed_closure): Update.
4431 (value_contents_for_printing): Declare.
4432 (value_bits_valid): Likewise.
4433 (val_print): Likewise.
4434 (set_value_component_location): Update.
4435 (value_entirely_optimized_out): Declare.
4436 * value.c (value_offset): Argument now const.
4437 (require_not_optimized_out): New function.
4438 (value_contents_for_printing): New function.
4439 (value_contents_all): Call require_not_optimized_out.
4440 (value_contents): Likewise.
4441 (value_bits_valid): New function.
4442 (value_computed_closure): Argument now const.
4443 (set_value_component_location): Make 'whole' argument const.
4444 (value_entirely_optimized_out): New function.
4445 (value_bitsize): Argument now 'const'.
4446 (value_bitpos): Likewise.
4447 (value_type): Likewise.
4448 * valprint.h (val_print_array_elements): Update.
4449 * valprint.c (val_print): Add 'val' argument. Use
4450 valprint_check_validity.
4451 (valprint_check_validity): New function.
4452 (value_check_printable): Use value_entirely_optimized_out.
4453 (common_val_print): Update.
4454 (value_print): Likewise.
4455 (val_print_array_elements): Add 'val' argument.
4456 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4457 value_bits_valid. Reinit frame cache for lval_computed.
4458 * sh64-tdep.c (sh64_do_register): Update.
4459 * scm-valprint.c (scm_val_print): Add 'val' argument.
4460 * scm-lang.h (scm_val_print): Update.
4461 * python/python.h (apply_val_pretty_printer): Update.
4462 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4463 argument. Call set_value_component_location.
4464 * printcmd.c (print_scalar_formatted): Update.
4465 * p-valprint.c (pascal_val_print): Add 'val' argument.
4466 (pascal_object_print_value_fields): Likewise.
4467 (pascal_object_print_value): Likewise.
4468 (pascal_object_print_static_field): Update.
4469 * p-lang.h (pascal_val_print): Update.
4470 (pascal_object_print_value_fields): Update.
4471 * mt-tdep.c (mt_registers_info): Update.
4472 * mi/mi-main.c (get_register): Update.
4473 (mi_cmd_data_evaluate_expression): Use common_val_print.
4474 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4475 (m2_print_unbounded_array): Likewise.
4476 (m2_val_print): Likewise.
4477 * m2-lang.h (m2_val_print): Update.
4478 * language.h (struct language_defn) <la_val_print>: Add 'val'
4480 (LA_VAL_PRINT): Likewise.
4481 * language.c (unk_lang_val_print): Add 'val' argument.
4482 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4483 (java_val_print): Likewise.
4484 * jv-lang.h (java_val_print): Add 'val' argument.
4485 * infcmd.c (default_print_registers_info): Update.
4486 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4487 (f77_print_array): Likewise.
4488 (f_val_print): Likewise.
4489 * f-lang.h (f_val_print): Add 'val' argument.
4490 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4492 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4493 set_value_optimized_out.
4494 (write_pieced_value): Use value_bitsize and value_bitpos.
4495 <default>: Don't exit loop.
4496 (check_pieced_value_validity): New function.
4497 (pieced_value_funcs): Reference check_pieced_value_validity,
4498 check_pieced_value_invalid.
4499 (copy_pieced_value_closure): Update.
4500 (check_pieced_value_bits): New function.
4501 (check_pieced_value_invalid): New function.
4502 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4503 (d_val_print): Likewise.
4504 * d-lang.h (d_val_print): Update.
4505 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4506 (cp_print_value_fields_rtti): Likewise.
4507 (cp_print_value): Likewise.
4508 (cp_print_static_field): Update.
4509 * c-valprint.c (c_val_print): Add 'val' argument.
4510 (c_value_print): Update.
4511 * c-lang.h (c_val_print): Update.
4512 (cp_print_value_fields): Likewise.
4513 (cp_print_value_fields_rtti): Likewise.
4514 * ada-valprint.c (struct ada_val_print_args): Remove.
4515 (val_print_packed_array_elements): Add 'val' argument.
4516 (ada_val_print): Likewise. Rewrite.
4517 (ada_val_print_stub): Remove.
4518 (ada_val_print_array): Add 'val' argument.
4519 (ada_val_print_1): Likewise.
4520 (print_variant_part): Likewise.
4521 (ada_value_print): Update.
4522 (print_record): Add 'val' argument.
4523 (print_field_values): Likewise.
4524 * ada-lang.h (ada_val_print): Update.
4526 2010-06-11 Tom Tromey <tromey@redhat.com>
4528 * vec.h (VEC_cleanup): New macro.
4529 (DEF_VEC_ALLOC_FUNC_I): Update.
4530 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4531 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4532 * dwarf2loc.c (struct axs_var_loc): Remove.
4533 (unimplemented): New function.
4534 (translate_register): Likewise.
4535 (access_memory): Likewise.
4536 (compile_dwarf_to_ax): Likewise.
4537 (dwarf2_tracepoint_var_loc): Remove.
4538 (dwarf2_tracepoint_var_access): Likewise.
4539 (dwarf2_tracepoint_var_ref): Likewise.
4540 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4541 (loclist_tracepoint_var_ref): Likewise.
4542 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4543 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4544 require_composition. No longer static.
4545 (execute_stack_op): Update.
4546 * ax-gdb.h (trace_kludge): Declare.
4548 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4550 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4551 (should_be_inserted): Return zero also on NULL OWNER.
4552 (breakpoint_program_space_exit): New OWNER comment.
4553 (insert_breakpoint_locations): Extend comment for OWNER.
4554 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4555 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4557 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4558 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4559 (bpstat_check_location): New assert on OWNER.
4560 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4561 and B initializations to the code block. New assert on them.
4562 (print_one_breakpoint_location): New OWNER comment.
4563 (watchpoint_locations_match): Assert on OWNER.
4564 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4565 initializations to the code block. New assert on OWNER.
4566 (set_breakpoint_location_function): New assert on OWNER.
4567 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4568 (bp_location_compare, update_global_location_list)
4569 (update_global_location_list): New OWNER comment.
4571 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4573 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4575 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4577 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4578 (lin_thread_get_thread_signals): Remove prototype.
4579 (GET_THREAD_SIGNALS): Remove.
4580 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4581 * linux-thread-db.c (check_thread_signals): Directly call
4582 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4584 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4586 * gregset.h (GDB_FPXREGSET_T): Remove.
4587 (gdb_fpxregset_t): Likewise.
4588 (supply_fpxregset): Remove prototype.
4589 (fill_fpxregset): Likewise.
4590 * i386-linux-nat.c (supply_fpxregset): Remove.
4591 (fill_fpxregset): Likewise.
4592 (fetch_fpxregs): Inline supply_fpxregset call.
4593 (store_fpxregs): Inline fill_fpxregset call.
4595 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4596 * config/i386/nm-linux.h: Remove file.
4598 2010-06-09 Michael Snyder <msnyder@vmware.com>
4600 * target.c (update_current_target): Fix spelling error in comment.
4601 (target_mourn_inferior): Fix spelling error in error message.
4603 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4605 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4606 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4608 2010-06-08 Michael Snyder <msnyder@vmware.com>
4610 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4612 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4614 * configure.ac <"${have_libpython}" != no>: New workaround of
4616 * configure: Regenerate.
4618 2010-06-08 Hui Zhu <teawater@gmail.com>
4620 * record.c (record_wait): Move signal out of replay code.
4622 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4625 * dwarf2-frame.c (no_dwarf_call): New function.
4626 (execute_stack_op): Set CTX->DWARF_CALL.
4627 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4628 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4629 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4630 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4631 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4632 (needs_frame_dwarf_call): New function.
4633 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4634 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4635 Update the comment. Move variables die, offset and error call to ...
4636 (follow_die_ref): ... a new function.
4637 (dwarf2_fetch_die_location_block): New function.
4638 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4640 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4643 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4644 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4645 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4647 (struct needs_frame_baton): New field per_cu.
4648 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4649 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4651 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4653 * cp-support.c (make_symbol_overload_list_namespace): Only search
4654 static and global blocks.
4655 (make_symbol_overload_list_block): New function.
4656 (make_symbol_overload_list): Separate namespace search from block
4658 (make_symbol_overload_list_qualified): Use
4659 make_symbol_overload_list_block.
4661 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4663 * value.h: Created oload_search_type enum.
4664 (find_overload_match): Use oload_search_type enum.
4665 * valops.c (find_overload_match): Support combined member and
4667 * eval.c (evaluate_subexp_standard): Calls to
4668 find_overload_match now use oload_search_type enum.
4669 (oload_method_static): Verify index is a proper value.
4670 * valarith.c (value_user_defined_cpp_op): Search for and handle
4671 both member and non-member operators.
4672 (value_user_defined_cpp_op): New function.
4673 (value_user_defined_op): New function.
4674 (value_x_unop): Use value_user_defined_op.
4675 (value_x_binop): Ditto.
4676 * cp-support.c (make_symbol_overload_list_using): Added block
4678 Add check for namespace aliases and imported declarations.
4680 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4682 * breakpoint.h (owner): Extend the comment.
4684 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4686 Clear stale specific bp_location from former whole breakpoint.
4687 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4689 (free_bp_location): ... here. Rename there the called function to
4690 bpstat_remove_bp_location_callback.
4691 (bpstat_remove_breakpoint_callback): Rename to ...
4692 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4693 to struct bp_location. Change the called function to
4694 bpstat_remove_bp_location. Create new declaration for the function.
4695 (bpstat_remove_breakpoint): Rename to ...
4696 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4697 code for the new parameter type.
4699 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4701 * README: Make version-agnostic.
4703 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 Fix duplicate types for single DIE.
4706 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4708 (read_array_type): Remove type initialization. Recheck get_die_type
4709 after initial die_type. Move set_die_type before set_descriptive_type.
4710 (read_set_type): New variable domain_type. Recheck get_die_type after
4711 initial die_type. Move attr initialization later.
4712 (read_tag_pointer_type, read_tag_reference_type): New variable
4713 target_type. Recheck get_die_type after initial die_type.
4714 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4715 die_type and die_containing_type.
4716 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4717 Recheck get_die_type after initial die_type.
4718 (read_subrange_type): Recheck get_die_type after initial die_type.
4719 Move set_die_type before set_descriptive_type.
4720 (set_die_type): Extend the function comment. Call complaint if DIE has
4721 some type already set.
4723 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4725 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4726 for current naming of thread groups (iN, not N).
4728 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4730 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4731 * parse.c (operator_length): Likewise.
4732 (operator_length_standard): Likewise.
4733 * parser-defs.h (operator_length): Likewise.
4734 (operator_length_standard): Likewise.
4735 (struct exp_descriptor <operator_length>): Likewise.
4737 2010-06-04 Doug Evans <dje@google.com>
4739 Add support for enabling/disabling individual pretty-printers.
4740 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4741 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4742 * python/python.c (gdbpy_enabled_cst): Define.
4743 (_initialize_python): Initialize gdbpy_enabled_cst.
4746 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * breakpoint.c (update_global_location_list): Fix comment typo.
4750 2010-06-04 Hui Zhu <teawater@gmail.com>
4752 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4754 2010-06-03 Doug Evans <dje@google.com>
4756 * configure.ac: Don't fail if python is unusable when
4757 configured with --with-python=auto.
4758 * configure: Regenerate.
4760 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4762 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4764 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4766 * valprint.h (get_array_bounds): Change low and high parameter types
4768 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4770 (val_print_array_elements): Adapt to change above.
4771 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4772 * p-valprint.c (pascal_val_print): Likewise.
4774 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4776 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4777 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4780 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4782 Support DW_TAG_module as separate namespaces.
4783 * dwarf2read.c (typename_concat): New parameter physname.
4784 (read_module_type): New function and declaration.
4785 (scan_partial_symbols): Scan also DW_TAG_module children.
4786 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4787 to typename_concat backward compatible physname value 0.
4788 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4789 backward compatible physname value 0.
4790 (add_partial_module, read_module): Remove FIXME comment.
4791 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4792 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4793 DIEs under DW_TAG_module.
4794 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4795 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4796 && physname and return there instead of just setting NAME. Extend
4797 the main block for language_fortran. Pass physname parameter to the
4798 typename_concat call.
4799 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4800 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4801 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4802 missing from SYMBOL_SET_NAMES in the language_fortran case.
4803 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4805 (read_type_die) <DW_TAG_module>: New.
4806 (MAX_SEP_LEN): Increase to 7.
4807 (typename_concat): New parameter physname. New variable lead. Support
4808 also language_fortran.
4809 * f-exp.y (yylex): Consider : also as a symbol name character class.
4810 * f-lang.c: Include cp-support.h.
4811 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4812 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4813 f_word_break_characters and f_make_symbol_completion_list.
4814 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4815 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4816 * symtab.c (symbol_init_language_specific): Support language_fortran.
4817 (symbol_find_demangled_name): New comment on language_fortran.
4818 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4819 for language_fortran.
4820 (lookup_symbol_aux_local): Check imports also for language_fortran.
4821 (default_make_symbol_completion_list): Rename to ...
4822 (default_make_symbol_completion_list_break_on): ... this name. New
4823 parameter break_on, use it.
4824 (default_make_symbol_completion_list): New stub.
4825 * symtab.h (default_make_symbol_completion_list_break_on): New
4828 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4830 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4833 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 * dwarf2read.c (typename_concat): Add const to the variable sep.
4837 2010-06-02 Tom Tromey <tromey@redhat.com>
4839 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4840 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4841 type is const. Add 'def' argument. Add missing operators, remove
4843 (decode_locdesc): Update.
4844 (dwarf2_always_disassemble): New global.
4845 (show_dwarf2_always_disassemble): New function.
4846 (_initialize_dwarf2_read): Add always-disassemble.
4847 (dwarf2_per_cu_offset_size): New function.
4848 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4849 (piece_end_p): New function.
4850 (locexpr_describe_location_piece): Replace 'size' argument with
4851 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4852 some constants. Remove errors.
4853 (disassemble_dwarf_expression): New function.
4854 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4855 Add 'offset_size' argument.
4856 (loclist_describe_location): Change output formatting.
4857 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4859 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4861 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4862 anonymous type case.
4864 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4866 * dwarf2read.c (read_subrange_type): Handle missing base type
4867 according to Dwarf-2 specifications.
4869 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4871 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4873 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4874 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4875 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4876 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4877 UNOP_CHMAX, UNOP_CHMIN.
4878 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4879 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4880 UNOP_CHMIN>: Remove opcodes.
4882 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4884 * dwarf2read.c (read_func_scope): Do not complain for
4885 external function if bounds are not found.
4887 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4889 * NEWS: Mention gdbserver fast tracepoints support.
4891 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4893 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4895 (windows_set_console_info): New function.
4896 (windows_create_inferior): Call windows_set_console_info
4897 if NEW_CONSOLE is true.
4898 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4899 (_initialize_loadable): Initialize GetConsoleFontSize and
4900 GetCurrentConsoleFont.
4902 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 * Makefile.in (RDYNAMIC): New.
4905 (SFILES): Add proc-service.list.
4906 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4907 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4908 * config/arm/linux.mh: Likewise.
4909 * config/i386/linux.mh: Likewise.
4910 * config/i386/linux64.mh: Likewise.
4911 * config/ia64/linux.mh: Likewise.
4912 * config/m32r/linux.mh: Likewise.
4913 * config/m68k/linux.mh: Likewise.
4914 * config/mips/linux.mh: Likewise.
4915 * config/pa/linux.mh: Likewise.
4916 * config/powerpc/linux.mh: Likewise.
4917 * config/powerpc/ppc64-linux.mh: Likewise.
4918 * config/s390/s390.mh: Likewise.
4919 * config/sparc/linux.mh: Likewise.
4920 * config/sparc/linux64.mh: Likewise.
4921 * config/xtensa/linux.mh: Likewise.
4922 * configure.ac: New RDYNAMIC on native host and GCC.
4923 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4924 * configure: Regenerate.
4925 * proc-service.list: New.
4927 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4932 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4934 * linux-nat.c (linux_nat_wait_1): Do not call
4935 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4936 TARGET_WAITKIND_SIGNALLED.
4938 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4940 * ada-lang.c (ada_inferior_data): New struct.
4941 (ada_inferior_data): New static global.
4942 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4943 (ada_get_tsd_type): New functions.
4944 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4945 to look the tsd type up.
4946 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4947 event. Set ada_inferior_data.
4949 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4951 * remote.c (unpack_varlen_hex): Remove forward declaration.
4952 (remote_console_output): Make static, and add forward declaration.
4953 * remote.h: Drop FIXME comment.
4954 (unpack_varlen_hex): Declare.
4955 (remote_console_output, remote_cisco_objfile_relocate)
4956 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4957 Delete declarations.
4958 * tracepoint.c: Include "remote.h".
4959 (unpack_varlen_hex): Delete declaration.
4961 2010-05-27 Tom Tromey <tromey@redhat.com>
4963 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4964 (allocate_piece_closure): Initialize refc.
4965 (copy_pieced_value_closure): Use refc.
4966 (free_pieced_value_closure): Likewise.
4968 2010-05-27 Tom Tromey <tromey@redhat.com>
4970 * arm-tdep.c (push_stack_item): 'contents' now const.
4971 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4972 value_contents_writeable. Introduce new temporary.
4974 2010-05-27 Tom Tromey <tromey@redhat.com>
4976 * findcmd.c (parse_find_args): Use value_contents, not
4979 2010-05-27 Tom Tromey <tromey@redhat.com>
4981 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4982 const. Use value_contents, not value_contents_writeable.
4984 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4986 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4987 by call to value_contents.
4989 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4991 * MAINTAINERS: Add myself for write after approval privileges.
4993 2010-05-26 Doug Evans <dje@google.com>
4995 Allow python to find its files if moved from original location.
4996 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4997 (GDB_AC_WITH_DIR): Call it.
4998 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4999 python installation directory.
5000 * config.in: Regenerate.
5001 * configure: Regenerate.
5002 * defs.h (python_libdir): Declare.
5003 * main.c (python_libdir): Define.
5004 (captured_main): Initialize python_libdir.
5005 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5006 call Py_SetProgramName to make sure python can find its libraries
5009 * configure.ac: Try to use python's distutils to fetch compilation
5011 * configure: Regenerate.
5012 * python/python-config.py: New file.
5014 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5016 * ser-tcp.c (net_open): Check error return from socket() call by its
5017 equality to -1 not by it being negative.
5018 (net_close): Likewise.
5020 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5022 * NEWS: Mention the `qRelocInsn' feature.
5023 * gdbarch.sh (relocate_instruction): New.
5024 * amd64-tdep.c (rip_relative_offset): New.
5025 (append_insns): New.
5026 (amd64_relocate_instruction): New.
5027 (amd64_init_abi): Install it.
5028 * i386-tdep.c (append_insns): New.
5029 (i386_relocate_instruction): New.
5030 (i386_gdbarch_init): Install it.
5031 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5032 * gdbarch.h, gdbarch.c: Regenerate.
5034 2010-05-26 Tom Tromey <tromey@redhat.com>
5036 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5037 (struct dwarf2_loclist_baton) <data>: Likewise.
5038 * dwarf2loc.c (find_location_expression): Constify return type.
5039 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5040 (dwarf2_loc_desc_needs_frame): Likewise.
5041 (loclist_read_variable): Constify.
5042 (loclist_describe_location): Likewise.
5043 (loclist_tracepoint_var_ref): Likewise.
5045 2010-05-25 Tom Tromey <tromey@redhat.com>
5047 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5048 (dwarf_expr_frame_base_1): Likewise.
5049 (read_pieced_value): Update.
5050 (needs_frame_frame_base): Constify.
5051 (dwarf2_tracepoint_var_loc): Likewise.
5052 (dwarf2_tracepoint_var_access): Likewise.
5053 (locexpr_describe_location_piece): Likewise.
5054 (locexpr_describe_location_1): Likewise.
5055 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5058 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5059 (dwarf_expr_eval, read_uleb128, read_sleb128)
5060 (dwarf2_read_address): Update.
5061 * dwarf2expr.c (dwarf_expr_eval): Constify.
5062 (read_uleb128): Likewise.
5063 (read_sleb128): Likewise.
5064 (dwarf2_read_address): Likewise.
5065 (require_composition): Likewise.
5066 (execute_stack_op): Likewise.
5067 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5069 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5071 (no_get_frame_base): Constify.
5072 (execute_stack_op): Likewise.
5073 (execute_cfa_program): Likewise.
5074 (read_encoded_value): Likewise.
5076 2010-05-25 Doug Evans <dje@google.com>
5078 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5080 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5081 * event-loop.c: ... here.
5082 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5083 `error' for clarity.
5084 (tui_getc): Pass correct value for `error' parameter to
5085 tui_readline_output.
5087 Add python gdb.GdbError and gdb.string_to_argv.
5088 * NEWS: Document them.
5089 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5090 the exception is gdb.GdbError. Print a second traceback if there's
5091 an error computing the error message.
5092 (gdbpy_string_to_argv): New function.
5093 * python/py-utils.c (gdbpy_obj_to_string): New function.
5094 (gdbpy_exception_to_string): New function.
5095 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5096 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5097 (gdbpy_gdberror_exc): Declare.
5098 * python/python.c (gdbpy_gdberror_exc): New global.
5099 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5101 (GdbMethods): Add string_to_argv.
5103 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5105 * windows-nat.c (display_selector): Call GetLastError to give better
5106 failure explanation.
5108 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5110 * config.in: Regenerate.
5112 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5115 * target.c (push_target): Return only void. Remove the return value
5117 * target.h (push_target): Return only void.
5119 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5121 Update gnulib from latest git.
5122 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5124 * gnulib/memcmp.c: Removed.
5125 * gnulib/memchr.valgrind: New.
5126 * gnulib/stddef.in.h: New.
5127 * gnulib/Makefile.am: Updated.
5128 * gnulib/memchr.c: Updated.
5129 * gnulib/memmem.c: Updated.
5130 * gnulib/stdint.in.h: Updated.
5131 * gnulib/str-two-way.h: Updated.
5132 * gnulib/string.in.h: Updated.
5133 * gnulib/wchar.in.h: Updated.
5135 * gnulib/extra/link-warning.h: Removed.
5136 * gnulib/extra/c++defs.h: New.
5137 * gnulib/extra/warn-on-use.h: New.
5138 * gnulib/extra/arg-nonnull.h: Updated.
5140 * gnulib/m4/extensions.m4: Updated.
5141 * gnulib/m4/gnulib-cache.m4: Updated.
5142 * gnulib/m4/gnulib-common.m4: Updated.
5143 * gnulib/m4/gnulib-comp.m4: Updated.
5144 * gnulib/m4/gnulib-tool.m4: Updated.
5145 * gnulib/m4/include_next.m4: Updated.
5146 * gnulib/m4/longlong.m4: Updated.
5147 * gnulib/m4/memchr.m4: Updated.
5148 * gnulib/m4/memmem.m4: Updated.
5149 * gnulib/m4/stdint.m4: Updated.
5150 * gnulib/m4/string_h.m4: Updated.
5151 * gnulib/m4/memcmp.m4: Removed.
5152 * gnulib/m4/onceonly_2_57.m4: Removed.
5153 * gnulib/m4/00gnulib.m4: New.
5154 * gnulib/m4/mmap-anon.m4: New.
5155 * gnulib/m4/multiarch.m4: New.
5156 * gnulib/m4/onceonly.m4: New.
5157 * gnulib/m4/stddef_h.m4: New.
5158 * gnulib/m4/warn-on-use.m4: New.
5159 * gnulib/m4/wchar.m4: Removed.
5160 * gnulib/m4/wchar_h.m4: New.
5161 * gnulib/m4/wchar_t.m4: New.
5162 * gnulib/m4/wint_t.m4: New.
5164 * aclocal.m4: Regenerate.
5165 * config.in: Likewise.
5166 * configure: Likewise.
5167 * gnulib/Makefile.in: Likewise.
5169 2010-05-21 Tom Tromey <tromey@redhat.com>
5171 * dwarf2loc.c (extract_bits_primitive): New function.
5172 (extract_bits): Likewise.
5173 (insert_bits): Likewise.
5174 (copy_bitwise): Likewise.
5175 (read_pieced_value): Do all operations in bits.
5176 (write_pieced_value): Likewise.
5177 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5178 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5179 Always use xrealloc to resize piece array.
5180 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5181 <DW_OP_piece>: Update.
5182 <DW_OP_bit_piece>: New case.
5184 2010-05-21 Tom Tromey <tromey@redhat.com>
5186 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5187 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5188 * dwarf2expr.h (enum dwarf_value_location)
5189 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5190 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5191 (add_piece): Handle empty piece.
5192 (execute_stack_op) <DW_OP_piece>: Handle
5193 DWARF_VALUE_OPTIMIZED_OUT.
5195 2010-05-21 Tom Tromey <tromey@redhat.com>
5197 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5198 evaluate_subexp, not evaluate_subexp_with_coercion.
5200 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5202 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5205 2010-05-21 Tom Tromey <tromey@redhat.com>
5207 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5209 (write_pieced_value): Likewise.
5211 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5213 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5214 and DW_TAG_volatile_type.
5215 (new_symbol): Likewise.
5217 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5219 * p-valprint.c (pascal_val_print): Call get_array_bounds
5220 to obtain the number of elements in an array.
5222 2010-05-19 Doug Evans <dje@google.com>
5224 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5226 * python.c (source_python_script): Add comment.
5227 (source_python_script_for_objfile): Remove unnecessary call to
5230 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5231 Sergio Durigan Junior <sergiodj@redhat.com>
5234 * parse.c (exp_iterate): Use operator_length wrapper function.
5236 2010-05-18 Michael Snyder <msnyder@vmware.com>
5238 * ada-lang.c: White space.
5239 * ada-typeprint.c: White space.
5240 * ada-valprint.c: White space.
5241 * addrmap.c: White space.
5242 * auxv.c: White space.
5243 * ax-gdb.c: White space.
5245 2010-05-18 Hui Zhu <teawater@gmail.com>
5247 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5249 (inferior_call_waitpid): Move make_cleanup out of check.
5250 Check the return of waitpid.
5251 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5253 2010-05-17 Michael Snyder <msnyder@vmware.com>
5255 * tui/tui.c: White space.
5256 * tui/tui-data.c: White space.
5257 * tui/tui-disasm.c: White space.
5258 * tui/tui-file.c: White space.
5259 * tui/tui-interp.c: White space.
5260 * tui/tui-main.c: White space.
5261 * tui/tui-out.c: White space.
5262 * tui/tui-regs.c: White space.
5263 * tui/tui-source.c: White space.
5264 * tui/tui-stack.c: White space.
5265 * tui/tui-win.c: White space.
5266 * tui/tui-winsource.c: White space.
5268 * procfs.c: White space.
5270 * python/py-auto-load.c: White space.
5271 * python/py-block.c: White space.
5272 * python/py-breakpoint.c: White space.
5273 * python/py-cmd.c: White space.
5274 * python/py-function.c: White space.
5275 * python/py-lazy-string.c: White space.
5276 * python/py-objfile.c: White space.
5277 * python/py-param.c: White space.
5278 * python/py-prettyprint.c: White space.
5279 * python/py-progspace.c: White space.
5280 * python/py-symtab.c: White space.
5281 * python/python.c: White space.
5282 * python/py-type.c: White space.
5283 * python/py-utils.c: White space.
5284 * python/py-value.c: White space.
5286 * mi/mi-cmd-break.c: White space.
5287 * mi/mi-cmd-env.c: White space.
5288 * mi/mi-cmds.c: White space.
5289 * mi/mi-cmd-stack.c: White space.
5290 * mi/mi-cmd-var.c: White space.
5291 * mi/mi-console.c: White space.
5292 * mi/mi-getopt.c: White space.
5293 * mi/mi-interp.c: White space.
5294 * mi/mi-main.c: White space.
5295 * mi/mi-out.c: White space.
5296 * mi/mi-parse.c: White space.
5298 * cli/cli-cmds.c: White space.
5299 * cli/cli-decode.c: White space.
5300 * cli/cli-dump.c: White space.
5301 * cli/cli-interp.c: White space.
5302 * cli/cli-logging.c: White space.
5303 * cli/cli-script.c: White space.
5304 * cli/cli-setshow.c: White space.
5306 * valarith.c: White space.
5307 * valops.c: White space.
5308 * valprint.c: White space.
5309 * value.c: White space.
5310 * varobj.c: White space.
5311 * xcoffread.c: White space.
5312 * xml-support.c: White space.
5313 * xml-tdesc.c: White space.
5315 2010-05-17 Andreas Schwab <schwab@redhat.com>
5318 * c-lang.c (c_printstr): Compute real length of NUL terminated
5321 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5323 * parse.c (parse_exp_in_context): When block is not NULL, use
5324 its associated language to parse the expression instead of
5325 the current_language.
5327 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5329 * jv-lang.c (java_lookup_class): Remove commented out code.
5330 (type_from_class): Likewise.
5331 (java_op_print_tab): Remove commented-out elements.
5333 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5335 * ada-lang.c (to_fixed_range_type): The the raw index type as
5336 argument instead of the raw type name. Remove orig_type parameter.
5337 Update calls throughout.
5338 (ada_fixup_array_indexes_type): New function.
5339 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5340 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5341 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5342 Remove name parameter.
5343 (print_array_type): Add call to ada_fixup_array_indexes_type.
5344 Update calls to print_range_type.
5345 (ada_print_type): Update calls to print_range_type.
5347 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5349 * dwarf2read.c (read_set_type): Set type length if
5350 DW_AT_byte_size attribute is present.
5352 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5354 * p-valprint.c (pascal_val_print): Handle set type if range limits
5355 are undefined but size is known.
5357 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5359 * procfs.c: Reformat.
5361 2010-05-16 Michael Snyder <msnyder@vmware.com>
5363 * target.c: White space.
5364 * target-descriptions.c: White space.
5365 * target-memory.c: White space.
5366 * thread.c: White space.
5367 * top.c: White space.
5368 * tracepoint.c: White space.
5369 * trad-frame.c: White space.
5370 * tramp-frame.c: White space.
5371 * ui-file.c: White space.
5372 * ui-out.c: White space.
5373 * user-regs.c: White space.
5374 * utils.c: White space.
5376 * scm-exp.c: White space.
5377 * scm-lang.c: White space.
5378 * scm-valprint.c: White space.
5379 * sentinel-frame.c: White space.
5380 * ser-base.c: White space.
5381 * ser-go32.c: White space.
5382 * serial.c: White space.
5383 * ser-mingw.c: White space.
5384 * ser-pipe.c: White space.
5385 * ser-tcp.c: White space.
5386 * ser-unix.c: White space.
5387 * solib.c: White space.
5388 * solib-darwin.c: White space.
5389 * solib-frv.c: White space.
5390 * solib-irix.c: White space.
5391 * solib-osf.c: White space.
5392 * solib-pa64.c: White space.
5393 * solib-som.c: White space.
5394 * solib-spu.c: White space.
5395 * solib-svr4.c: White space.
5396 * solib-target.c: White space.
5397 * source.c: White space.
5398 * stabsread.c: White space.
5399 * stack.c: White space.
5400 * std-regs.c: White space.
5401 * symfile.c: White space.
5402 * symmisc.c: White space.
5403 * symtab.c: White space.
5405 2010-05-16 Michael Snyder <msnyder@vmware.com>
5407 * source.c (_initialize_source): Add "rev" as an abbreviation
5408 for the "reverse-search" command.
5410 2010-05-16 Michael Snyder <msnyder@vmware.com>
5412 * record.c: White space.
5413 * regcache.c: White space.
5414 * reggroups.c: White space.
5415 * remote-fileio.c: White space.
5416 * remote-m32r-sdi.c: White space.
5417 * remote-mips.c: White space.
5418 * remote-sim.c: White space.
5419 * remote.c: White space.
5420 (process_g_packet): Remove orphan braces.
5422 2010-05-15 Michael Snyder <msnyder@vmware.com>
5424 * parse.c: White space.
5425 * p-lang.c: White space.
5426 * posix-hdep.c: White space.
5427 * printcmd.c: White space.
5428 * progspace.c: White space.
5429 * prologue-value.c: White space.
5430 * psymtab.c: White space.
5431 * p-typeprint.c: White space.
5432 * p-valprint.c: White space.
5434 * objc-lang.c: White space.
5435 * objfiles.c: White space.
5436 * observer.c: White space.
5437 * osabi.c: White space.
5438 * osdata.c: White space.
5440 * m2-lang.c: White space.
5441 * m2-valprint.c: White space.
5442 * macrocmd.c: White space.
5443 * macroexp.c: White space.
5444 * macroscope.c: White space.
5445 * macrotab.c: White space.
5446 * main.c: White space.
5447 * maint.c: White space.
5448 * mdebugread.c: White space.
5449 * memattr.c: White space.
5450 * minsyms.c: White space.
5451 * monitor.c: White space.
5453 2010-05-14 Michael Snyder <msnyder@vmware.com>
5455 * jv-lang.c: White space.
5456 * jv-typeprint.c: White space.
5457 * jv-valprint.c: White space.
5458 * language.c: White space.
5459 * libunwind-frame.c: White space.
5460 * linespec.c: White space.
5461 * linux-nat.c: White space.
5462 * linux-record.c: White space.
5463 * linux-thread-db.c: White space.
5465 * infcall.c: White space.
5466 * inf-child.c: White space.
5467 * infcmd.c: White space.
5468 * inferior.c: White space.
5469 * inf-loop.c: White space.
5470 * inflow.c: White space.
5471 * inline-frame.c: White space.
5472 * interps.c: White space.
5474 * gcore.c: White space.
5475 * gdb.c: White space.
5476 * gdbtypes.c: White space.
5477 * gnu-nat.c: White space.
5478 * gnu-v2-abi.c: White space.
5479 * gnu-v3-abi.c: White space.
5481 * findcmd.c: White space.
5482 * findvar.c: White space.
5483 * fork-child.c: White space.
5484 * frame-base.c: White space.
5485 * frame.c: White space.
5486 * frame-unwind.c: White space.
5487 * f-valprint.c: White space.
5489 * elfread.c: White space.
5490 * environ.c: White space.
5491 * eval.c: White space.
5492 * event-loop.c: White space.
5493 * event-top.c: White space.
5494 * exceptions.c: White space.
5495 * exec.c: White space.
5496 * expprint.c: White space.
5498 * dbxread.c: White space.
5499 * dcache.c: White space.
5500 * disasm.c: White space.
5501 * doublest.c: White space.
5502 * dsrec.c: White space.
5503 * dummy-frame.c: White space.
5504 * dwarf2expr.c: White space.
5505 * dwarf2-frame.c: White space.
5506 * dwarf2loc.c: White space.
5507 * dwarf2read.c: White space.
5509 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5513 * python/py-value.c (valpy_hash): New function.
5514 (value_object_type): Register valpy_hash.
5516 2010-05-14 Hui Zhu <teawater@gmail.com>
5517 Michael Snyder <msnyder@vmware.com>
5519 * linux-fork.c (gdbthread.h): New include.
5520 (fork_info): Add parent_ptid.
5521 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5523 (delete_checkpoint_command): Call inferior_call_waitpid.
5524 (checkpoint_command): Set parent_ptid.
5526 2010-05-13 Michael Snyder <msnyder@vmware.com>
5528 * dictionary.c: Re-indent to GNU coding standard.
5530 * charset.c: White space.
5531 * c-lang.c: White space.
5532 * cli-out.c: White space.
5533 * coffread.c: White space.
5534 * complaints.c: White space.
5535 * completer.c: White space.
5536 * corefile.c: White space.
5537 * corelow.c: White space.
5538 * cp-abi.c: White space.
5539 * cp-namespace.c: White space.
5540 * cp-support.c: White space.
5541 * cp-valprint.c: White space.
5542 * c-typeprint.c: White space.
5543 * c-valprint.c: White space.
5544 * blockframe.c: White space.
5545 * breakpoint.c: White space.
5546 * buildsym.c: White space.
5547 * blockframe.c: White space.
5548 * bcache.c: White space.
5549 * gdbarch.sh: White space, add blank lines.
5550 * arch-utils.c: Ditto.
5551 * gdbarch.c: Regenerate.
5552 * frame.c: White space, add blank lines.
5553 * stack.c: White space, add blank lines.
5554 (initialize_stack): Remove long-dead code.
5556 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5560 (locexpr_read_variable, loclist_read_variable): Update the callers.
5562 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5565 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5566 Remove check of NULL returned by tag_type_to_type.
5567 (die_containing_type): Remove variable type. Remove type_die variable
5568 initialization. Remove check of NULL returned by tag_type_to_type.
5570 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5573 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5574 names of unnamed structures or unions.
5576 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5578 * procfs.c (proc_watchpoint_address): New function.
5579 (procfs_stopped_by_watchpoint): Remove useless check after
5580 find_procinfo_or_die call.
5581 (procfs_stopped_data_address): New function.
5582 (procfs_use_watchpoints): Register new watchpoint related function.
5584 2010-05-11 Tom Tromey <tromey@redhat.com>
5586 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5588 2010-05-10 Michael Snyder <msnyder@vmware.com>
5590 * utils.c: White space cleanup.
5592 2010-05-10 Tom Tromey <tromey@redhat.com>
5594 * eval.c (ptrmath_type_p): Add 'lang' argument.
5595 (evaluate_subexp_standard): Update.
5596 (evaluate_subexp_with_coercion): Update.
5597 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5599 2010-05-10 Michael Snyder <msnyder@vmware.com>
5601 * utils.c (do_fclose_cleanup) Restore local variable.
5603 2010-05-09 Doug Evans <dje@google.com>
5605 * record.c (init_record_core_ops): Rename record_core to record-core.
5607 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5609 Implement task switching on pa-hpux.
5610 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5611 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5613 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5615 * valops.c (find_overload_match): Add missing i18n markup.
5617 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5619 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5621 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5623 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5624 list for the obconcat call.
5625 * mdebugread.c (parse_symbol): Likewise.
5626 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5628 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5629 New variable ap. Remove variables len and val.
5630 * symfile.h (obconcat): Likewise for the prototype.
5632 2010-05-07 Michael Snyder <msnyder@vmware.com>
5634 * python/python.c (execute_gdb_command): Remove unused variables.
5635 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5636 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5637 Remove unused variable.
5638 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5639 (cmdpy_completer): Remove unused variable.
5640 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5641 * python/py-function.c (fnpy_call): Remove unused variable.
5642 * python/py-objfile.c (objfile_to_objfile_object):
5643 Remove unused variable.
5644 * python/py-param.c (parmpy_init): Remove unused variable.
5645 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5646 Remove unused variable.
5647 (gdbpy_default_visualizer): Remove unused variable.
5648 * python/py-progspace.c (pspace_to_pspace_object):
5649 Remove unused variable.
5650 * python/py-symtab.c (symtab_and_line_to_sal_object):
5651 Remove unused variable.
5652 * python/py-type.c (typy_template_argument):
5653 Remove unused variable.
5654 * python/py-value.c (valpy_string): Remove unused variable.
5655 (convert_value_from_python): Remove unused variables.
5657 2010-05-07 Michael Snyder <msnyder@vmware.com>
5659 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5660 and use it to compute variable 't1'.
5662 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5664 * ada-lang.c (assign_aggregate): Remove unused variable.
5666 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5669 * valops.c (find_overload_match): Handle fsym == NULL case.
5670 Add int no_adl argument.
5671 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5673 Add int no_adl argument.
5674 (find_oload_champ_namespace): Add int no_adl argument.
5675 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5677 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5678 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5679 Evaluate arguments and use them to perform ADL lookup.
5680 Pass no_adl argument to find_overload_match.
5681 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5682 * cp-support.h: Added prototype for
5683 make_symbol_overload_list_namespace.
5684 * cp-support.c (make_symbol_overload_list_namespace): New function.
5685 (make_symbol_overload_list_adl_namespace): New function.
5686 (make_symbol_overload_list_adl): New function.
5687 (make_symbol_overload_list_using): Moved code to add function to
5688 overload set to make_symbol_overload_list_namespace.
5689 * c-exp.y: create UNKNOWN_CPP_NAME token.
5690 Add parse rule for ADL functions.
5691 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5693 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5698 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5700 Implement task switching on solaris targets.
5701 * sol-thread.c (thread_db_find_thread_from_tid)
5702 (sol_get_ada_task_ptid): New functions.
5703 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5705 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5707 * remote.c (remote_query_supported_append): Use reconcat.
5708 (remote_query_supported): Install a cleanup. Use reconcat.
5710 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5712 * gdbarch.sh (qsupported): Delete.
5713 * gdbarch.h, gdbarch.c: Regenerate.
5714 * remote.c (remote_query_supported): Remove use of
5717 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5719 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5722 2010-05-06 Michael Snyder <msnyder@vmware.com>
5724 * xml-support.c (xinclude_start_include): Delete unused variable.
5725 (xml_process_xincludes): Delete unused variable.
5726 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5727 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5728 (tdesc_find_arch_register): Delete unused variable.
5729 (tdesc_use_registers): Delete unused variable.
5730 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5731 * inferior.c (print_inferior): Delete unused variable.
5732 * record.c (record_open_1): Delete unused variable.
5733 (record_restore): Delete unused variable.
5734 (cmd_record_save): Delete unused variable.
5735 * gcore.c (derive_heap_segment): Delete unused variable.
5736 (objfile_find_memory_regions): Use unused variable.
5737 * jit.c (jit_inferior_init): Delete unused variable.
5738 * progspace.c (clone_program_space): Delete unused variable.
5739 (pspace_empty_p): Delete unused variable.
5741 * frame-unwind.c (frame_unwind_find_by_frame):
5742 Delete unused variable.
5743 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5744 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5745 (method_name_from_physname): Delete unused variable.
5746 (cp_func_name): Delete unused variable.
5747 (cp_validate_operator): Delete unused variable.
5748 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5749 Delete unused variable.
5750 * trad-frame.c (trad_frame_get_prev_register):
5751 Delete unused variable.
5752 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5754 * serial.c (serial_for_fd): Delete unused variable.
5755 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5756 * top.c (execute_command): Delete unused variable.
5757 (init_main): Delete unused variable.
5758 * utils.c (do_fclose_cleanup): Delete unused variable.
5759 (do_all_inferior_continuations): Delete unused variable.
5760 (initialize_utils): Delete unused variable.
5761 (internal_problem_mode): Delete unused global.
5762 * frame.c (get_prev_frame): Delete unused global.
5763 (get_frame_locals_address): Delete unused global.
5764 (get_frame_args_address): Delete unused global.
5766 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5767 (pascal_type_print_varspec_prefix): Delete unused variable.
5768 * f-typeprint.c (f_type_print_base): Delete unused variable.
5769 (f_type_print_varspec_suffix): Delete unused variable.
5770 * m2-typeprint.c (m2_print_type): Delete unused variable.
5771 (m2_long_set): Delete unused variable.
5772 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5773 * d-valprint.c (dynamic_array_type): Delete unused variable.
5774 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5775 Delete unused variable.
5776 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5777 * m2-valprint.c (m2_val_print): Delete unused variable.
5779 * ui-out.c (ui_out_field_int): Delete unused variable.
5780 (ui_out_field_fmt_int): Delete unused variable.
5781 * varobj.c (varobj_list_children): Delete unused variable.
5782 (varobj_set_value): Delete unused variable.
5783 (install_new_value_visualizer): Delete unused variable.
5784 (varobj_set_visualizer): Delete unused variable.
5785 (varobj_update): Delete unused variable.
5786 (varobj_editable_p): Delete unused variable.
5787 (c_value_of_root): Delete unused variable.
5788 (cplus_describe_child): Delete unused variable.
5790 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5791 (decode_constrained_packed_array_type): Delete unused variable.
5792 (add_defn_to_vec): Delete unused variable.
5793 (symbol_completion_match): Delete unused variable.
5794 (value_tag_from_contents_and_address): Delete unused variable.
5795 (ada_evaluate_subexp): Delete unused variable.
5796 * c-lang.c (classify_type): Delete unused variable.
5797 * f-lang.c (f_printstr): Delete unused variable.
5798 * objc-lang.c (objc_printstr): Delete unused variable.
5799 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5800 * jv-lang.c (type_from_class): ifdef unused variable.
5801 (java_class_name_from_physname): Delete unused variable.
5802 * m2-lang.c (m2_printstr): Delete unused variable.
5804 * objfiles.c (objfile_relocate): Delete unused variable.
5805 * maint.c (_initialize_maint_cmds): Delete unused variable.
5806 * demangle.c (_initialize_demangler): Delete unused variable.
5807 * corefile.c (reopen_exec_file): Delete unused variable.
5808 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5809 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5811 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5812 * memattr.c (mem_delete): Delete unused variable.
5813 (invalidate_target_mem_regions): Delete unused variable.
5814 * mem-break.c (default_memory_insert_breakpoint):
5815 Delete unused variable.
5816 * target.c (target_get_osdata): Delete unused variable.
5817 * parse.c (length_of_subexp): Delete unused variable.
5818 (prefixify_subexp): Delete unused variable.
5819 (exp_iterate): Delete unused variable.
5820 * reverse.c (delete_bookmark_command): Delete unused variable.
5822 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5823 * macroexp.c (gather_arguments): Delete unused variable.
5824 (substitute_args): Delete unused variable.
5825 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5826 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5827 (_initialize_gdbarch): Delete unused variable.
5828 * gdbarch.c, gdbarch.h: Regenerate.
5829 * arch-utils.c (initialize_current_architecture):
5830 Delete unused variable.
5831 (_initialize_gdbarch_utils): Delete unused variable.
5832 * gdbtypes.c (make_cv_type): Delete unused variable.
5833 (make_type_with_address_space): Delete unused variable.
5835 * linespec.c (decode_compound): Delete unused variable.
5836 * dictionary.c (iterator_next_hashed): Delete unused variable.
5837 * infcall.c (call_function_by_hand): Delete unused variable.
5838 * infcmd.c (step_1): Delete unused variable.
5839 (registers_info): Delete unused variable.
5840 (attach_command): Delete unused variable.
5841 * infrun.c (follow_exec): Delete unused variable.
5842 (handle_step_into_function_backwards): Delete unused variable.
5843 (_initialize_infrun): Delete unused variable.
5844 * stack.c (parse_frame_specification_1): Delete unused variable.
5845 (frame_info): Delete unused variable.
5846 (backtrace_command_1): Delete unused variable.
5847 (catch_info): Delete unused variable.
5849 * eval.c (evaluate_subexp_standard): Delete unused variable.
5850 * valops.c (value_cast_pointers): Delete unused variable.
5851 (value_dynamic_cast): Delete unused variable.
5852 (value_array): Delete unused variable.
5853 (find_overload_match): Delete unused variable.
5854 * valarith.c (value_subscript): Delete unused variable.
5855 (value_binop): Delete unused variable.
5856 * valprint.c (_initialize_valprint): Delete unused variable.
5857 * printcmd.c (print_command_1): Delete unused variable.
5858 (address_info): Delete unused variable.
5859 (printf_command): Delete unused variable.
5861 * auxv.c (target_auxv_search): Delete unused variable.
5862 * blockframe.c (get_frame_block): Delete unused variable.
5863 * regcache.c (regcache_cpy): Delete unused variable.
5864 (regcache_cpy_no_passthrough): Delete unused variable.
5865 * charset.c (wchar_iterate): Delete unused variable.
5866 (find_charset_names): Delete unused variable.
5867 (_initialize_charset): Delete unused variable.
5868 * disasm.c (do_mixed_source_and_assembly):
5869 Delete unused variable.
5870 * source.c (set_default_source_symtab_and_line):
5871 Delete unused variable.
5872 (set_substitute_path_command): Delete unused variable.
5873 * value.c (preserve_values): Delete unused variable.
5874 (value_from_double): Delete unused variable.
5876 2010-05-05 Michael Snyder <msnyder@vmware.com>
5878 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5879 (find_last_source_symtab_from_partial): Delete unused variable.
5880 * symfile.c (place_section): Delete unused variable.
5881 (default_symfile_offsets): Delete unused variable.
5882 (get_debug_link_info): Delete unused variable.
5883 (find_separate_debug_file_by_debuglink): Delete unused variable.
5884 (add_symbol_file_command): Delete unused variable.
5885 (symfile_find_segment_sections): Delete unused variable.
5886 * symmisc.c (free_symtab): Delete unused variable.
5887 (dump_symtab_1): Delete unused variable.
5888 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5889 (find_pc_sect_symtab): Delete unused variable.
5890 (skip_prologue_using_lineinfo): Delete unused variable.
5891 (sources_info): Delete unused variable.
5892 (completion_list_add_name): Delete unused variable.
5893 (expand_line_sal): Delete unused variable.
5895 * breakpoint.c (validate_commands_for_breakpoint):
5896 Delete unused variables.
5897 (insert_catchpoint): Delete unused variable.
5898 (update_watchpoint): Delete unused variable.
5899 (insert_bp_location): Delete unused variable.
5900 (insert_breakpoint_locations): Delete unused variable.
5901 (remove_breakpoint_1): Delete unused variable.
5902 (software_breakpoint_inserted_here_p): Delete unused variable.
5903 (watchpoints_triggered): Delete unused variable.
5904 (bpstat_check_watchpoint): Delete unused variable.
5905 (bpstat_stop_status): Delete unused variable.
5906 (print_one_breakpoint_location): Delete unused variable.
5907 (allocate_bp_location): Delete unused variable.
5908 (create_breakpoint): Delete unused variable.
5909 (watch_command_1): Delete unused variable.
5910 (catch_exception_command_1): Delete unused variable.
5911 (catch_ada_exception_command): Delete unused variable.
5912 (delete_breakpoint): Delete unused variable.
5913 (breakpoint_re_set_one): Delete unused variable.
5914 (do_enable_breakpoint): Delete unused variable.
5916 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5918 * amd64-tdep.c: Include disasm.h.
5919 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5920 (amd64_insn_length): Moved to disasm.c and renamed.
5921 (fixup_riprel): Adjust.
5922 * disasm.c (do_ui_file_delete): New.
5923 (gdb_insn_length): New.
5924 (gdb_buffered_insn_length_fprintf)
5925 (gdb_buffered_insn_length_init_dis)
5926 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5928 * disasm.h (gdb_insn_length): Declare.
5929 (gdb_buffered_insn_length): Declare.
5931 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5933 * remote.c (clear_threads_parsing_context): New.
5934 (remote_threads_info): Delete unused null_cleanup. Install a
5935 cleanup to clear the threads_parsing_context in case parsing
5938 2010-05-05 Michael Snyder <msnyder@vmware.com>
5940 * c-exp.y (parse_string_or_char): Delete unused variable.
5941 (c_lex): Delete unused variable.
5942 * cp-name-parser.y (cpname_lex): Delete unused variable.
5943 * ada-exp.y (find_primitive_type): Delete unused variable.
5944 (write_var_or_type): Delete unused variable.
5945 * jv-exp.y (java_parse): Delete unused variable.
5946 (push_expression_name): Delete unused variable.
5947 * p-exp.y (pascal_lex): Delete unused variable.
5949 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5951 * remote.c (remote_threads_info): Really revert previous previous
5954 2010-05-05 Michael Snyder <msnyder@vmware.com>
5956 * elfread.c (elf_symtab_read): Delete unused variable.
5957 (find_separate_debug_file_by_buildid): Delete unused variables.
5958 (elf_symfile_read): Delete unused variable.
5960 * coffread.c (coff_symfile_read): Delete unused variables.
5962 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5963 (read_pe_exported_syms): Delete unused variable.
5965 * stabsread.c (define_symbol): Delete unused variable.
5967 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5968 (process_psymtab_comp_unit): Delete unused variable.
5969 (dwarf2_build_psymtabs_hard): Delete unused variable.
5970 (load_partial_comp_unit): Delete unused variable.
5971 (create_all_comp_units): Delete unused variable.
5972 (scan_partial_symbols): Delete unused variable.
5973 (add_partial_symbol): Delete unused variable.
5974 (add_partial_namespace): Delete unused variable.
5975 (add_partial_enumeration): Delete unused variable.
5976 (load_full_comp_unit): Delete unused variable.
5977 (process_full_comp_unit): Delete unused variable.
5978 (read_file_scope): Delete unused variable.
5979 (read_type_unit_scope): Delete unused variable.
5980 (process_structure_scope): Delete unused variable.
5981 (process_enumeration_scope): Delete unused variable.
5982 (read_tag_ptr_to_member_type): Delete unused variable.
5983 (read_typedef): Delete unused variable.
5984 (read_partial_die): Delete unused variable.
5985 (decode_locdesc): Delete unused variable.
5986 (zeroed_partial_die): Delete unused global variable.
5988 * tui/tui-interp.c (_initialize_tui_interp):
5989 Delete unused variable.
5990 * tui/tui-regs.c tui_display_registers_from):
5991 Delete unused variable.
5992 (tui_check_register_values): Delete unused variable.
5993 (tui_register_format): Delete unused variable.
5994 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5995 * tui/tui-windata.c (tui_display_data_from_line):
5996 Delete unused variables.
5997 (tui_vertical_data_scroll): Delete unused variables.
5999 2010-05-05 Michael Snyder <msnyder@vmware.com>
6001 * remote.c (remote_threads_info): Revert questionable part of
6002 the previous change.
6004 2010-05-05 Michael Snyder <msnyder@vmware.com>
6006 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6007 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6008 (mi_cmd_var_list_children): Delete unused variable.
6009 (varobj_update_one): Delete unused variable.
6010 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6011 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6012 Delete unused variable.
6013 (mi_cmd_stack_list_variables): Delete unused variable.
6014 (list_args_or_locals): Delete unused variable.
6015 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6016 Delete unused variables.
6017 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6018 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6019 Delete unused variable.
6020 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6021 (mi_cmd_interpreter_exec): Delete unused variable.
6022 (mi_on_normal_stop): Delete unused variable.
6023 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6024 (print_one_inferior): Delete unused variables.
6025 (mi_execute_command): Delete unused variable.
6026 (mi_cmd_execute): Delete unused variable.
6027 (timestamp): Delete unused variable.
6029 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6030 (restore_binary_file): Delete unused variable.
6031 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6032 * cli/cli-script.c (define_command): Delete unused variables.
6033 (recurse_read_control_structure): Delete unused variable.
6034 (script_from_file): Delete unused variable.
6035 * cli/cli-cmds.c (complete_command): Delete unused variable.
6036 (disassemble_command): Delete unused variable.
6038 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6039 * tracepoint.c (delete_trace_variable_command):
6040 Delete unused variables.
6041 (encode_actions_1): Delete unused variables.
6042 (start_tracing): Delete unused variable.
6043 (trace_status_mi): Delete unused variable.
6044 (tfind_1): Delete unused variable.
6045 (trace_find_pc_command): Delete unused variable.
6046 (trace_find_line_command): Delete unused variables.
6047 (trace_find_range_command): Delete unused variables.
6048 (trace_find_outside_command): Delete unused variables.
6049 (parse_tracepoint_definition): Delete unused variables.
6050 (tfile_fetch_registers): Delete unused variable.
6052 * dcache.c (dcache_init): Delete unused variable.
6053 (dcache_info): Delete unused variable.
6055 * remote.c (remote_threads_info): Delete unused variable.
6056 (process_stop_reply) :Delete unused variable.
6057 (remote_get_trace_status): Delete unused variables.
6059 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6060 (thread_from_lwp): Delete unused variable.
6061 (enable_thread_event_reporting): Delete unused variable.
6062 (check_for_thread_db): Delete unused variables.
6063 (thread_db_find_new_threads_2): Delete unused variable.
6065 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6066 (checkpoint_command): Delete unused variable.
6067 (linux_fork_context): Delete unused variables.
6069 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6070 (linux_tracefork_child): Delete unused variable.
6071 (linux_child_follow_fork): Delete unused variable.
6072 (linux_nat_detach): Delete unused variable.
6073 (linux_handle_extended_wait): Delete unused variable.
6074 (linux_nat_has_pending_sigint): Delete unused variable.
6075 (linux_nat_find_memory_regions): Delete unused variable.
6076 (linux_nat_make_corefile_notes): Delete unused variables.
6077 (linux_nat_info_proc_cmd): Delete unused variable.
6078 (linux_proc_pending_signals): Delete unused variable.
6079 (linux_nat_stop_lwp): Delete unused variables.
6080 (_initialize_linux_nat): Delete unused variable.
6082 * ser-pipe.c (pipe_ops): Delete unused global variable.
6084 * linux-record.c (record_linux_system_call):
6085 Delete unused variables.
6087 * corelow.c (core_xfer_partial): Delete unused variables.
6089 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6090 (svr4_solib_create_inferior_hook): Add ifdef around
6091 conditionally-used variable declarations.
6093 * solib.c (solib_find): Delete unused variable.
6094 (free_so_symbols): Delete unused variable.
6095 (info_sharedlibrary_command): Delete unused variable.
6096 (reload_shared_libraries_1): Delete unused variable.
6097 (_initialize_solib): Delete unused variable.
6099 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6100 (i386_collect_xstateregset): Delete unused variable.
6101 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6103 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6104 Delete unused variable 'type'.
6106 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6108 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6109 ada-lang.c: Remove comment mentioning these macros.
6110 * m2-exp.y: Delete commented out code.
6112 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6114 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6116 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6118 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6120 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6121 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6123 (cleanup_kernel_helper_return): Likewise.
6124 * arm-tdep.c (copy_unmodified): Likewise.
6125 (copy_preload): Likewise.
6126 (copy_copro_load_store): Likewise.
6127 (cleanup_branch): Likewise.
6128 (copy_b_bl_blx): Likewise.
6129 (copy_bx_blx_reg): Likewise.
6130 (copy_alu_imm): Likewise.
6131 (copy_alu_reg): Likewise.
6132 (copy_alu_shifted_reg): Likewise.
6133 (cleanup_load): Likewise.
6134 (cleanup_store): Likewise.
6135 (cleanup_block_load_pc): Likewise.
6136 (cleanup_svc): Likewise.
6137 (copy_undef): Likewise.
6138 (copy_unpred): Likewise.
6139 * remote.c (register_remote_support_xml): Likewise.
6141 2010-05-05 Hui Zhu <teawater@gmail.com>
6143 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6145 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6147 * remote.c (register_remote_support_xml)
6148 (remote_query_supported_append, remote_query_supported): Add cast
6149 to NULL used as sentinel.
6150 * tracepoint.c (tvariables_info_1): Likewise.
6151 * utils.c (add_internal_problem_command): Likewise.
6153 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6155 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6156 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6157 registers gracefully.
6159 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6161 * exec.c (print_section_info): Display entry point without arch
6164 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6167 * printcmd.c (x_command): Only dereference once implicitly for
6170 2010-05-03 Doug Evans <dje@google.com>
6172 * event-loop.c (gdb_timer): Delete unused global.
6173 (create_timer): Update.
6175 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6177 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6178 CURRENT->DECLARATION case.
6179 * cp-support.h (struct using_direct): Provide extended comment.
6181 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6183 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6184 HPPABSD_SIZEOF_GREGS.
6185 (HPPAOBSD_SIZEOF_FPREGS): New define.
6186 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6187 (hppaobsd_supply_fpregset): New function.
6188 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6189 (hppaobsd_fpregset): New variable.
6190 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6191 (_initialize_hppabsd_tdep): Remove spurious blank line.
6193 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6196 * p-valprint.c (pascal_value_print): Always dereference a value with
6197 type code TYPE_CODE_REF.
6199 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6201 * remote.c (remote_notice_signals): New.
6202 (remote_start_remote): In non-stop mode, update the remote end on
6203 which signals it can silently pass.
6204 (init_remote_ops): Install remote_notice_signals.
6206 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6208 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6209 * command.h (error_no_arg): ... here. Remove NORETURN, change
6210 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6211 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6212 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6213 (internal_verror, internal_error, nomem): Remove NORETURN, change
6214 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6215 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6216 (throw_vfatal, throw_error): Remove NORETURN.
6217 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6218 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6219 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6220 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6221 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6222 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6224 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6225 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6227 * target.c (tcomplain): Likewise.
6228 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6230 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6231 (internal_error, perror_with_name, nomem): Remove NORETURN.
6232 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6235 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6237 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6238 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6239 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6240 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6241 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6242 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6243 * complaints.h (complaint, internal_complaint): Likewise.
6244 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6245 (ATTR_FORMAT): Remove.
6246 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6247 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6248 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6249 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6250 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6251 (internal_error, internal_vwarning, internal_warning, warning)
6252 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6253 * disasm.c (fprintf_disasm): Likewise.
6254 * exceptions.c (throw_it): Likewise.
6255 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6256 (throw_error): Likewise.
6257 * language.h (type_error, range_error): Likewise.
6258 * linespec.c (cplusplus_error): Likewise.
6259 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6260 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6261 * monitor.c (monitor_debug): Likewise.
6262 * parser-defs.h (parser_fprintf): Likewise.
6263 * serial.h (serial_printf): Likewise.
6264 * tui/tui-hooks.c (tui_query_hook): Likewise.
6265 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6266 (uo_message): Likewise.
6267 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6268 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6270 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6272 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6274 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6275 (cli_table_header, cli_begin, cli_end, cli_field_int)
6276 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6277 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6278 Delete forward declarations.
6279 (cli_ui_out_impl): Move below the callbacks.
6280 (_initialize_cli_out): Delete.
6282 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6284 * README: Use consistent `GDB' and `GDBserver' spellings.
6286 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6288 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6290 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6292 * infrun.c (prepare_for_detach): In non-stop, context switch to
6293 the thread that got the event before handling the event.
6295 2010-04-30 Tom Tromey <tromey@redhat.com>
6297 * symtab.c (symbol_set_names): Fix typo.
6299 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6301 * python/py-param.c (parm_constants): Avoid ARI warning
6302 by adding ARI comment.
6303 (parmpy_init): Likewise.
6305 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6307 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6308 and created type for re-use.
6310 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6312 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6314 2010-04-29 Doug Evans <dje@google.com>
6316 * ser-base.h (reschedule): Delete prototype.
6317 * ser-base.c (reschedule): Make static.
6319 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6321 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6322 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6323 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6325 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6328 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6332 * regcache.c (registers_changed): Rename to ...
6333 (registers_changed_ptid): ... this, and only delete register cache
6334 entries matching the ptid filter argument.
6335 (registers_changed): Reimplement on top of registers_changed_ptid.
6336 * regcache.h (registers_changed_ptid): Declare.
6337 * target.c (target_resume): Flush register caches.
6339 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6340 Tom Tromey <tromey@redhat.com>
6341 Thiago Jung Bauermann <bauerman@br.ibm.com>
6343 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6344 (SUBDIR_PYTHON_SRCS): Likewise.
6345 (py-parameter.o): New rule.
6346 * python/py-parameter.c: New file.
6347 * python/python-internal.h (gdbpy_initialize_parameter)
6348 (gdbpy_parameter, gdbpy_parameter_value)
6349 (gdbpy_parse_command_name): Declare.
6350 * python/py-cmd.c (parse_command_name): Rename to
6351 gdbpy_parse_command_name.
6352 (gdbpy_parse_command_name): Accept a starting list parameter and
6354 (cmdpy_init): Use gdbpy_parse_command_name.
6355 * python/python.c (parameter_to_python): Rename to
6356 gdbpy_parameter_to_python. Accept enum var_types and value.
6357 (gdbpy_parameter): Use gdbpy_parameter_value.
6358 (_initialize_python): Call gdbpy_initialize_parameters.
6360 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6362 * MAINTAINERS: Add myself for write after approval privileges.
6364 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6367 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6368 (COMMON_OBS): Add d-lang.o d-valprint.o.
6369 (HFILES_NO_SRCDIR): Add d-lang.h.
6370 * NEWS: Mention D language support.
6371 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6372 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6373 * d-lang.c: New file.
6374 * d-lang.h: New file.
6375 * d-valprint.c: New file.
6376 * defs.h (enum language): Add language_d.
6377 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6378 * language.c (binop_result_type, integral_type, character_type)
6379 (string_type, boolean_type, structured_type): Add language_d.
6380 * symfile.c (init_filename_language_table): Add language_d.
6381 * symtab.c: Include d-lang.h.
6382 (symbol_init_language_specific, symbol_find_demangled_name)
6383 (symbol_natural_name, lookup_symbol_in_language)
6384 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6386 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6388 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6390 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6392 * symfile.c (init_filename_language_table): Register .dg files
6395 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6397 * gdbtypes.h (struct main_type): Expand comment about target_type
6400 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6401 Tristan Gingold <gingold@adacore.com>
6403 * symfile.c (reread_symbols): Also search for file in libraries.
6406 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6408 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6409 in terms of configuration.
6411 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 * objfiles.c: Include solist.h.
6414 (free_all_objfiles): New variable so. Check stale solist objfiles.
6415 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6416 and no_shared_libraries.
6418 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6421 * python/py-auto-load.c (source_section_scripts): Remove trailing
6422 new-line in i18n string.
6424 2010-04-26 Doug Evans <dje@google.com>
6426 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6428 2010-04-26 Tom Tromey <tromey@redhat.com>
6430 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6433 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6435 Removal of config/i386/nm-i386sol2.h native configuration file.
6436 * config/i386/nm-i386sol2.h: Remove file.
6437 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6438 * config/i386/sol2-64.mh: Idem.
6439 * config/djgpp/fnchange.lst: Remove reference to that file.
6440 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6442 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6444 PR breakpoints/11531.
6445 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6446 macro definition and related comment.
6447 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6448 (resume): Remove code and comment related to this macro.
6450 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6452 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6455 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6457 * defs.h: Adjust comment.
6458 * filesystem.h, filesystem.c: New files.
6459 * Makefile.in (SFILES): Add filesystem.c.
6460 (COMMON_OBS): Add filesystem.o.
6461 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6462 different target and host path flavours.
6463 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6464 has_dos_based_file_system on the gdbarch.
6465 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6466 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6467 * i386-tdep.c (i386_go32_init_abi): Ditto.
6468 * gdbarch.sh (has_dos_based_file_system): New.
6469 * gdbarch.h, gdbarch.c: Regenerate.
6470 * NEWS: Mention improved support for remote targets with DOS-based
6471 filesystems. Mention new `set/show target-file-system-kind'
6474 2010-04-23 Stan Shebs <stan@codesourcery.com>
6476 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6478 (struct agent_reqs): Remove.
6479 (ax_reg_mask): Declare.
6480 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6481 (free_agent_expr): Free reg_mask.
6482 (ax_print): Add scope and register mask info.
6483 (ax_reqs): Remove agent_reqs argument, use agent expression
6484 fields, and move part of register mask computation to...
6485 (ax_reg_mask): New function.
6486 * ax-gdb.c (gen_trace_static_fields): Call it.
6487 (gen_traced_pop): Ditto.
6488 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6489 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6490 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6491 (gen_eval_for_expr): Ditto, and require an rvalue.
6492 (agent_command): Call ax_reqs.
6493 (agent_eval_command): Ditto.
6494 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6495 (validate_action_line): Ditto.
6496 (collect_symbol): Ditto.
6497 (encode_actions_1): Ditto.
6499 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6500 Paul Pluzhnikov <ppluzhnikov@google.com>
6501 Jan Kratochvil <jan.kratochvil@redhat.com>
6503 Fix deadlock on looped list of loaded shared objects.
6504 * solib-svr4.c (LM_PREV): New function.
6505 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6506 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6507 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6508 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6510 2010-04-23 Doug Evans <dje@google.com>
6512 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6514 * configure: Regenerate.
6515 * main.c: #include "python/python.h".
6516 (captured_main): Defer loading auto-loaded scripts until after
6517 local_gdbinit has been sourced.
6518 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6519 (load_auto_scripts_for_objfile): New function.
6520 (auto_load_new_objfile): Call it.
6521 * python/python.h (gdbpy_global_auto_load): Declare.
6522 (load_auto_scripts_for_objfile): Declare.
6524 Add support for auto-loading scripts from .debug_gdb_scripts section.
6525 * NEWS: Add entry for .debug_gdb_scripts.
6526 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6527 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6528 (py-auto-load.o): New rule.
6529 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6530 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6531 * python/py-auto-load.c: New file.
6532 * python/python-internal.h: #include <stdio.h>.
6533 (set_python_list, show_python_list): Declare.
6534 (gdbpy_initialize_auto_load): Declare.
6535 (source_python_script_for_objfile): Declare.
6536 * python/python.c: Remove #include of observer.h.
6537 (gdbpy_auto_load): Moved to py-auto-load.c.
6538 (GDBPY_AUTO_FILENAME): Ditto.
6539 (gdbpy_new_objfile): Delete.
6540 (source_python_script_for_objfile): New function.
6541 (set_python_list, show_python_list): Make externally visible.
6542 (_initialize_python): Move "auto-load" command to py-auto-load.c
6543 and observer_attach_new_objfile to py-auto-load.c.
6545 2010-04-23 Jerome Guitton <guitton@adacore.com>
6547 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6548 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6549 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6551 (alpha_heuristic_analyze_probing_loop): New function.
6552 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6553 and handle cases when a stack probe loop is generated.
6554 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6555 (alpha_mdebug_max_frame_size_exceeded): New function.
6556 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6557 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6558 Return 0 when the maximum debuggable frame size has been exceeded.
6560 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6563 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6565 2010-04-20 Chris Moller <cmoller@redhat.com>
6569 * symtab.c (rbreak_command): Added code to include a filename
6570 specification in the rbreak argument.
6571 * NEWS: Added a brief description of filename-qualified rbreak.
6573 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6575 Fix crashes on dangling display expressions.
6576 * ada-lang.c (ada_operator_check): New function.
6577 (ada_exp_descriptor): Fill-in the field operator_check.
6578 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6579 * jv-lang.c (exp_descriptor_java): Likewise.
6580 * m2-lang.c (exp_descriptor_modula2): Likewise.
6581 * scm-lang.c (exp_descriptor_scm): Likewise.
6582 * parse.c (exp_descriptor_standard): Likewise.
6583 (operator_check_standard): New function.
6584 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6585 * parser-defs.h (struct exp_descriptor): New field operator_check.
6586 (operator_check_standard, exp_uses_objfile): New declarations.
6587 * printcmd.c: Remove the inclusion of solib.h.
6588 (display_uses_solib_p): Remove the function.
6589 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6590 and exp_uses_objfile instead of display_uses_solib_p.
6591 * solist.h (struct so_list) <objfile>: New comment.
6592 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6593 * symtab.h (lookup_objfile_from_block): New declaration.
6594 (struct general_symbol_info) <obj_section>: Extend the comment.
6596 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6597 Thiago Jung Bauermann <bauerman@br.ibm.com>
6599 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6600 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6601 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6602 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6603 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6604 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6605 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6606 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6607 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6608 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6609 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6610 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6611 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6612 Define, in case <ptrace.h> doesn't provide it.
6613 (booke_debug_info): New variable.
6614 (max_slots_number): Ditto.
6615 (hw_break_tuple): New struct.
6616 (thread_points): Ditto.
6617 (ppc_threads): New variable.
6618 (PPC_DEBUG_CURRENT_VERSION): New define.
6619 (have_ptrace_new_debug_booke): New function.
6620 (ppc_linux_check_watch_resources): Renamed to ...
6621 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6622 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6623 (booke_cmp_hw_point): New function.
6624 (booke_find_thread_points_by_tid): Ditto.
6625 (booke_insert_point): Ditto.
6626 (booke_remove_point): Ditto.
6627 (ppc_linux_insert_hw_breakpoint): Ditto.
6628 (ppc_linux_remove_hw_breakpoint): Ditto.
6629 (get_trigger_type): Ditto.
6630 (ppc_linux_insert_watchpoint): Handle BookE processors.
6631 (ppc_linux_remove_watchpoint): Ditto.
6632 (ppc_linux_new_thread): Ditto.
6633 (ppc_linux_thread_exit): New function..
6634 (ppc_linux_stopped_data_address): Handle BookE processors.
6635 (ppc_linux_watchpoint_addr_within_range): Ditto.
6636 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6637 to_remove_hw_breakpoint fields of the target operations struct.
6638 Add observe for the thread_exit event.
6640 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6642 * i386-linux-nat.c (regmap): Removed.
6643 (fetch_register): Replace regmap with
6644 i386_linux_gregset_reg_offset.
6645 (store_register): Likewise.
6646 (supply_gregset): Likewise.
6647 (fill_gregset): Likewise.
6649 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6652 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6654 2010-04-22 Chris Moller <cmoller@redhat.com>
6656 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6657 method of popping recursion-detection stack with a method based on
6658 obstack_object_size(). (Similar to the PR9167 patch below, but for
6659 the static array obstack rather than the static member obstack.)
6661 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6663 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6664 (_initialize_amd64_linux_nat): Replace
6665 amd64_linux_gregset64_reg_offset with
6666 amd64_linux_gregset_reg_offset.
6668 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6671 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6673 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6676 * stabsread.c (set_length_in_type_chain): New function.
6677 (read_struct_type): Call set_length_in_type_chain function.
6678 (read_enum_type): Idem.
6680 2010-04-21 Stan Shebs <stan@codesourcery.com>
6681 Nathan Sidwell <nathan@codesourcery.com>
6683 * tracepoint.c (trace_save): Open in binary mode.
6685 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6687 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6689 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6690 builtin_char32 fields.
6691 * printcmd.c (decode_format): Set char size to '\0'
6692 for strings unless explicit size is given.
6693 (print_formatted): Correct calculation of NEXT_ADDRESS
6694 for 16 or 32 bit strings.
6695 (do_examine): Do not force byte size for strings.
6696 Use builtin_char16 and builtin_char32 types to display
6697 16 or 32 bit-wide strings.
6698 (x_command): Set LAST_SIZE to 'b' for string type.
6700 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6703 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6706 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6707 there is no .reg-xstate section.
6708 (i386_linux_core_read_description): Check XCR0 first.
6710 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6712 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6715 2010-04-21 Chris Moller <cmoller@redhat.com>
6718 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6719 method of popping recursion-detection stack with a method based on
6720 obstack_object_size().
6722 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6725 * p-valprint.c (pascal_val_print): Fix default printing of integer
6728 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6730 Fix compilation warning on gcc-4.1.2.
6731 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6732 local variable`pc' to zero.
6734 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6736 Implement thread support with core files on alpha-tru64.
6737 * dec-thread.c (dec_thread_find_new_threads): New function,
6738 extracted from resync_thread_list.
6739 (resync_thread_list): Add OPS parameter. Replace extracted-out
6740 code by call to dec_thread_find_new_threads.
6741 (dec_thread_wait): Update call to resync_thread_list.
6742 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6744 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6746 * ada-lang.c (value_pointer): New function.
6747 (make_array_descriptor): Call value_pointer to convert addresses to
6750 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6752 * rs6000-aix-tdep.c: #include exceptions.h.
6753 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6754 while reading the memory at ADDR, then ADDR cannot be a function
6757 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6759 * ada-typeprint.c (ada_print_typedef): New function.
6760 * ada-lang.h (ada_print_typedef): Add declaration.
6761 * ada-lang.c (ada_language_defn): set la_print_typdef field
6762 to ada_print_typedef.
6764 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6766 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6768 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6770 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6771 (iterate_over_mappings): Adjust function profile. Add declaration.
6772 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6775 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6777 * procfs.c (solib_mappings_callback): Move function up to avoid
6780 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6782 * procfs.c (find_signalled_thread, find_stop_signal): Move
6783 these functions down to define them only when used.
6785 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6787 * valprint.c (common_val_print): Fix the value before extracting
6789 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6790 * ada-lang.h (ada_to_fixed_value): New function declaration.
6791 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6792 to avoid code duplication and fix a bug in the handling of
6793 fixed types contents.
6795 2010-04-20 Tom Tromey <tromey@redhat.com>
6797 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6798 (read_partial_die): Likewise.
6799 (dwarf_attr_name): Likewise.
6801 2010-04-20 Chris Moller <cmoller@redhat.com>
6805 * cp-valprint.c (global): Adding new static array recursion
6807 (cp_print_value_fields, cp_print_static_field): Added new static
6808 array recursion detection code.
6810 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6812 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6813 general-purpose register set should be 68 instead of 144.
6814 (i386_linux_sse_regset_sections): Likewise.
6815 (i386_linux_avx_regset_sections): Likewise.
6817 2010-04-20 Stan Shebs <stan@codesourcery.com>
6818 Nathan Sidwell <nathan@codesourcery.com>
6820 * dwarf2loc.c (struct axs_var_loc): New struct.
6821 (dwarf2_tracepoint_var_loc): New function.
6822 (dwarf2_tracepoint_var_access): New function.
6823 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6825 (locexpr_describe_location_piece): New function.
6826 (locexpr_describe_location_1): New function.
6827 (locexpr_describe_location): Call it, update signature.
6828 (loclist_describe_location): Rewrite to loop over locations,
6830 * symtab.h (struct symbol_computed_ops): Add address to
6831 describe_location arguments, return void.
6832 * printcmd.c (address_info): Get context PC, pass to computed
6833 location description.
6834 * tracepoint.c (scope_info): Ditto.
6835 * ax-gdb.c (trace_kludge): Export.
6837 2010-04-20 Tom Tromey <tromey@redhat.com>
6839 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6840 (struct dwarf2_cie) <segment_size>: New field.
6841 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6842 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6844 (read_attribute_value): Handle DW_FORM_flag_present,
6845 DW_FORM_sec_offset, DW_FORM_exprloc.
6846 (dump_die_shallow): Likewise.
6847 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6848 (dwarf2_const_value): Handle DW_FORM_exprloc.
6849 (attr_form_is_block): Likewise.
6850 (struct line_header) <maximum_ops_per_instruction>: New field.
6851 (dwarf_decode_line_header): Set new field.
6852 (dwarf_decode_lines): Handle new field.
6854 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6856 * f-exp.y: Add new production to recognize the `logical*8' type.
6857 (LOGICAL_S8_KEYWORD): New token.
6858 * f-lang.c (enum f_primitive_types)
6859 <f_primitive_type_logical_s8>: New field.
6860 (f_language_arch_info): Handling `logical*8' type.
6861 (build_fortran_types): Building `logical*8' type.
6862 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6864 2010-04-19 Doug Evans <dje@google.com>
6866 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6867 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6868 (pipe_close): Ditto.
6870 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6872 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6874 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6876 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6877 type to void function.
6879 2010-04-19 Stan Shebs <stan@codesourcery.com>
6880 Vladimir Prus <vladimir@codesourcery.com>
6882 * tracepoint.c (tfind_1): Add missing newline, report exit from
6884 * target.c (update_current_target): Make default
6885 to_trace_find return -1.
6887 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6889 * objc-lang.c (find_methods): Move symname check up.
6891 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6893 * ada-lang.c (print_recreate_exception)
6894 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6895 not "catch unhandled".
6897 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6899 PR breakpoints/8554.
6901 Implement `save-breakpoints'.
6903 * breakpoint.c (save_cmdlist): New.
6904 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6906 (print_recreate_catch_fork): New.
6907 (catch_fork_breakpoint_ops): Install it.
6908 (print_recreate_catch_vfork): New.
6909 (catch_vfork_breakpoint_ops): Install it.
6910 (print_recreate_catch_syscall): New.
6911 (catch_syscall_breakpoint_ops): Install it.
6912 (print_recreate_catch_exec): New.
6913 (catch_exec_breakpoint_ops): Install it.
6914 (print_recreate_exception_catchpoint): New.
6915 (gnu_v3_exception_catchpoint_ops): Install it.
6916 (save_breakpoints): New, based on tracepoint_save_command, but
6917 handle all breakpoint types.
6918 (save_breakpoints_command): New.
6919 (tracepoint_save_command): Rename to...
6920 (save_tracepoints_command): ... this, and reimplement using
6922 (save_command): New.
6923 (_initialize_breakpoints): Install the "save" command prefix.
6924 Install the "save breakpoints" command. Make "save-tracepoints" a
6925 deprecated alias for "save tracepoints".
6926 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6927 * ada-lang.c (print_recreate_exception): New.
6928 (print_recreate_catch_exception): New.
6929 (catch_exception_breakpoint_ops): Install it.
6930 (print_recreate_catch_exception_unhandled): New.
6931 (catch_exception_unhandled_breakpoint_ops): Install it.
6932 (print_recreate_catch_assert): New.
6933 (catch_assert_breakpoint_ops): Install it.
6935 * NEWS: Mention the new `save breakpoints' command. Mention the
6936 new `save tracepoints' alias and that `save-tracepoints' is now
6939 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6943 * tui/tui-out.c: Include cli-out.h.
6944 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6945 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6946 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6947 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6949 (struct ui_out_data): Rename to...
6950 (struct tui_ui_out_data): ... this. Remove `stream' and
6951 `suppress_output' fields, and inherit cli_ui_out_data.
6952 (tui_out_data): New typedef.
6953 (tui_ui_out_impl): Don't initialize fields staticaly.
6954 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6955 (tui_begin, tui_end): Delete.
6956 (tui_field_int): Adjust to delegate most work to the base type.
6957 (tui_field_skip): Delete.
6958 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6959 delegate most work to the base type.
6960 (tui_spaces): Delete.
6961 (tui_text): Adjust to delegate most work to the base type.
6962 (tui_message): Delete.
6963 (tui_wrap_hint): Delete.
6964 (tui_flush): Delete.
6965 (out_field_fmt): Delete.
6966 (field_separator): Delete.
6967 (tui_out_new): Adjust to initialize the base type.
6968 (_initialize_tui_out): Initialize tui_ui_out_impl.
6969 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6971 (cli_out_data): Adjust.
6972 (cli_ui_out_impl): Make extern.
6973 (cli_table_header, cli_field_int, cli_field_skip): Use
6974 uo_field_string instead of cli_field_string.
6975 (cli_redirect): Adjust to use cli_out_data.
6976 (cli_out_data_ctor): New.
6977 (cli_out_new): Use it.
6978 * cli-out.h (struct ui_file): Remove forward declaration.
6979 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6980 (cli_ui_out_impl): Declare.
6981 (cli_out_data_ctor): Declare.
6982 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6983 (uo_field_string): No longer static.
6984 (ui_out_data): Change return type to void pointer.
6985 (ui_out_new): Change `data' parameter type to void pointer.
6986 * ui-out.h (struct ui_out_data): Don't forward declare.
6987 (ui_out_data): Change return type to void pointer.
6988 (ui_out_new): Change `data' parameter type to void pointer.
6989 (uo_field_string): Declare.
6991 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6993 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6994 instead of always false.
6996 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6999 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7002 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7004 * breakpoint.c (watchpoints_triggered): Use
7005 is_hardware_watchpoint.
7006 (watchpoints_triggered): Ditto.
7007 (bpstat_check_location): Use is_watchpoint and
7008 is_hardware_watchpoint.
7009 (bpstat_check_watchpoint): Use is_watchpoint and
7010 is_hardware_watchpoint.
7011 (bpstat_stop_status): Fix comment.
7012 (user_settable_breakpoint): Use is_watchpoint.
7013 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7014 (disable_watchpoints_before_interactive_call_start): Use
7016 (enable_watchpoints_after_interactive_call_stop): Use
7018 (clear_command): Use is_watchpoint.
7019 (do_enable_breakpoint): Use is_watchpoint.
7021 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7023 * solib-frv.c (enable_break1_done): Delete.
7024 (enable_break2): Do not check enable_break1_done. Move the
7025 enable_break2_done setting and call to
7026 remove_solib_event_breakpoints() to the end. Return without
7027 warning when the contents of _dl_debug_addr are 0.
7028 (enable_break): Do not set enable_break1_done.
7029 (frv_clear_solib): Likewise.
7031 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7033 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7034 instead of an error if no PLT entry is found. Return a
7035 potentially useful result.
7036 (m32c_m16c_pointer_to_address): Add code to search for function
7037 address when no .plt entry is found.
7039 2010-04-16 Stan Shebs <stan@codesourcery.com>
7041 * tracepoint.c (trace_variable_command): Run a cleanup.
7043 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7045 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7047 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7049 Support for Windows OS Thread Information Block.
7050 * NEWS: Document new feature.
7051 * remote.c (PACKET_qGetTIBAddr): New enum element.
7052 (remote_get_tib_address): New function.
7053 (init_remote_ops): Set to_get_tib_address field
7054 to remote_get_tib_address.
7055 (_initialize_remote): Add add_packet_config_cmd
7056 for PACKET_qGetTIBAddr.
7057 * target.c (update_current_target): Set default value for
7058 new to_get_tib_address field.
7059 * target.h (target_ops): New field to_get_tib_address.
7060 (target_get_tib_address): New macro.
7061 * windows-nat.c (thread_info): Add thread_local_base field.
7062 (windows_add_thread): Add tlb argument of type 'void *'.
7063 (fake_create_process): Adapt windows_add_thread call.
7064 (get_windows_debug_event): Idem.
7065 (windows_get_tib_address): New function.
7066 (init_windows_ops): Set to_get_tib_address field
7067 to remote_get_tib_address.
7068 (_initialize_windows_nat): Replace info_w32_cmdlist
7069 initialization by a call to init_w32_command_list.
7070 (info_w32_command, info_w32_cmdlist): Removed from here...
7071 to windows-tdep.c file.
7072 * windows-tdep.h (info_w32_cmdlist): Declare.
7073 (init_w32_command_list): New external function
7075 * windows-tdep.c: Add several headers.
7076 (info_w32_cmdlist): to here, made global.
7077 (thread_information_32): New struct.
7078 (thread_information_64): New struct.
7079 (TIB_NAME): New char array.
7080 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7081 (maint_display_all_tib): New static variable.
7082 (windows_get_tlb_type): New function.
7083 (tlb_value_read, tlb_value_write): New functions.
7084 (tlb_value_funcs): New static struct.
7085 (tlb_make_value): New function.
7086 (display_one_tib): New function.
7087 (display_tib): New function.
7088 (show_maint_show_all_tib):New function.
7089 (info_w32_command): Moved from windows-nat.c.
7090 (init_w32_command_list): New function.
7091 (_initialize_windows_tdep): New function.
7092 New "maint set/show show-all-tib" command
7093 New "$_tlb" internal variable.
7095 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7097 * tui/tui-regs.c (tui_display_register): Add comment about
7099 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7101 2010-04-15 Stan Shebs <stan@codesourcery.com>
7103 * frame.c: Include tracepoint.h.
7104 (get_current_frame): Allow a trace frame to be an alternate source
7105 of stack frame data.
7106 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7109 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7111 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7113 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7115 2010-04-15 Doug Evans <dje@google.com>
7117 * NEWS: Add entry for python program space support.
7118 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7119 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7120 (py-progspace.o): New rule.
7121 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7123 (find_pretty_printer_from_progspace): New function.
7124 (find_pretty_printer_from_gdb): New function.
7125 (find_pretty_printer): Rewrite.
7126 * python/py-progspace.c: New file.
7127 * python/python-internal.h (program_space): Add forward decl.
7128 (pspace_to_pspace_object, pspy_get_printers): Declare.
7129 (gdbpy_initialize_pspace): Declare.
7130 * python/python.c: #include "progspace.h".
7131 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7132 (_initialize_python): Call gdbpy_initialize_pspace.
7133 (GdbMethods): Add current_progspace, progspaces.
7135 Add -s option to source command.
7136 * NEWS: Document new option.
7137 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7138 Delete from_tty and cleanupp args. Split filep arg into file and
7139 full_pathp. New arg search_path.
7140 (source_script_from_stream): New function.
7141 (source_script_with_search): New function.
7142 (source_script): Rewrite.
7143 (source_command): Parse "-s" option.
7144 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7145 * python/python.c (source_python_script): Make file arg a const char *.
7146 Don't call fclose, leave for caller.
7147 * python/python.h (source_python_script): Update.
7149 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7150 Pedro Alves <pedro@codesourcery.com>
7152 Avoid rereading shared libraries that haven't changed.
7154 * solib.c (free_so_symbols): New function, from ...
7155 (free_so): ... here. Call it.
7156 (solib_read_symbols): Don't warn here if symbols have already been
7158 (solib_add): Warn here instead, if a pattern was specified.
7159 (reload_shared_libraries_1): New.
7160 (reload_shared_libraries): Rewrite to not fetch the library list.
7162 2010-04-14 Doug Evans <dje@google.com>
7164 * source.c (openp): Strip DOS drive letter if present before
7165 concatenating string to search path.
7167 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7169 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7170 * objfiles.c (gdb_bfd_close_or_warn): New.
7171 * corelow.c: Include objfiles.h
7172 (core_close): Use gdb_bfd_close_or_warn.
7173 * elfread.c (build_id_verify): Ditto.
7174 * exec.c (exec_close, exec_close_1): Ditto.
7176 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7177 Pedro Alves <pedro@codesourcery.com>
7179 Group errors for many missing shared libraries.
7181 * solist.h (struct so_list): Remove from_tty.
7182 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7183 (solib_map_sections): Take so_list argument. Return 0 if we
7184 failed to open a BFD. Add target sections here.
7185 (symbol_add_stub): Delete.
7186 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7187 not from_tty copied from the so_list. Don't warn a second time
7188 for a missing library.
7189 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7190 add to the section table here. Print out a single warning for all
7192 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7195 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7197 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7198 error/warning messages. Capitalize and use complete sentences.
7199 (blpy_block_syms_iternext): Likewise.
7200 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7201 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7202 (frame_info_to_frame_object, frapy_read_var)
7203 (gdbpy_frame_stop_reason_string): Likewise.
7204 * python/py-lazy-string.c (stpy_convert_to_value)
7205 (gdbpy_create_lazy_string_object): Likewise.
7206 * python/py-objfile.c (objfpy_set_printers): Likewise.
7207 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7208 * python/python.c (parameter_to_python): Likewise.
7209 * python/py-type.c (typy_range, typy_target): Likewise.
7210 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7211 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7214 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7218 * python/py-prettyprint.c (pretty_print_one_value): Test for
7220 (print_string_repr): Test for Py_None. Set flags accordingly.
7221 Return value depending on return type.
7222 (print_children): Take a value indicating whether data was printed
7223 before this function was called. Alter output accordingly.
7224 (apply_val_pretty_printer): Capture return value from
7225 print_string_repr and pass to print_children.
7227 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7230 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7231 register note sections.
7232 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7234 (i386_linux_init_abi): Install list of supported register note
7235 sections that matches the target description.
7237 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7239 * remote.c (remote_get_noisy_reply): Don't error out on empty
7241 (remote_start_remote): Update and merge tracepoints and trace
7242 state variables as long as the target supports tracepoints.
7243 (remote_trace_init): Fix prototype.
7244 (remote_download_trace_state_variable): Validate reply.
7245 (remote_trace_set_readonly_regions): Fix prototype.
7246 (remote_trace_start): Fix prototype. Check for empty reply.
7247 (remote_get_trace_status): Small cleanup.
7248 (remote_trace_stop): Fix prototype. Check for empty reply.
7249 (remote_trace_find): Check for empty reply.
7250 (remote_save_trace_data): Validate reply.
7251 (remote_set_disconnected_tracing): Check for empty reply, and
7253 (remote_set_circular_trace_buffer): Ditto.
7255 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7257 Suppress unused value warning during compilation.
7258 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7260 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7262 2010-04-12 Stan Shebs <stan@codesourcery.com>
7264 * tracepoint.c (tfile_xfer_partial): Check read result.
7266 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7268 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7269 * remote-sim.c (gdbsim_files_info): Likewise.
7271 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7273 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7274 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7276 (fetch_vfp_registers): New function to fetch VFP registers.
7277 (store_vfp_registers): New function to store VFP registers.
7278 (arm_linux_fetch_inferior_registers): Add support for VFP
7280 (arm_linux_store_inferior_registers): Likewise.
7281 (arm_linux_read_description): Likewise.
7282 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7285 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7287 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7289 (amd64_collect_xstateregset): Likewise.
7291 2010-04-09 Stan Shebs <stan@codesourcery.com>
7293 * tracepoint.c (trace_status_mi): Report frames created.
7295 * tracepoint.c (trace_dump_command): Include default-collect
7298 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7300 * symtab.c (find_function_start_sal): Never return SAL pointing
7301 before function start address, even if line info is missing.
7303 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7305 * NEWS: Mention tracepoints support.
7307 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7309 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7310 circular trace buffer statuses.
7312 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7314 * config/djgpp/fnchange.lst: Fix typo in translations for
7315 symbol-without-target_section.exp and symbol-without-target_section.c.
7317 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7319 * breakpoint.c (condition_command): Pass condition expression to
7320 set_breakpoint_condition stripped from breakpoint number.
7322 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7323 Thiago Jung Bauermann <bauerman@br.ibm.com>
7324 Tom Tromey <tromey@redhat.com>
7326 * breakpoint.c (condition_command): Simplify. Move condition
7328 (set_breakpoint_condition): ... here. New function.
7329 * breakpoint.h (set_breakpoint_condition): Declare.
7330 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7331 (SUBDIR_PYTHON_SRCS): Likewise.
7332 (py-breakpoint.o): New rule.
7333 * python/py-breakpoint.c: New file.
7334 * python/python-internal.h (gdbpy_breakpoints)
7335 (gdbpy_initialize_breakpoints): Declare.
7336 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7338 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7340 * regformats/regdat.sh: Include server.h. Don't include
7343 2010-04-08 Stan Shebs <stan@codesourcery.com>
7344 Pedro Alves <pedro@codesourcery.com>
7346 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7347 and circular_buffer.
7348 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7349 * tracepoint.c (trace_status_command): Display target's status for
7350 disconnected tracing and circular buffer.
7351 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7352 query for non-disconnected-tracing case, remove the stop_tracing
7354 (tfile_open): Clear disconnected and circular buffer status.
7355 (trace_save): Save disconnected and circular buffer status.
7356 (parse_trace_status): Parse disconnected and circular buffer status,
7357 also recognize disconnected as a stop reason.
7358 * remote.c (remote_set_disconnected_tracing): Only set
7359 QTDisconnected if the remote end supports disconnected tracing.
7360 Warn otherwise, if trying to enable disconnected tracing.
7361 * infcmd.c (detach_command): Update disconnect_tracing call.
7362 * cli/cli-cmds.c (quit_command): Ditto.
7364 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7366 * i387-tdep.c (i387_collect_xsave): Replace abort with
7369 2010-04-08 Stan Shebs <stan@codesourcery.com>
7371 * breakpoint.c (default_collect_info): New function.
7372 (breakpoints_info): Call it.
7373 (maintenance_info_breakpoints): Ditto.
7374 (tracepoints_info): Ditto.
7376 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7378 * i387-tdep.c (i387_collect_xsave): Re-indent.
7380 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7382 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7383 if HAVE_PTRACE_GETFPXREGS is defined.
7384 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7385 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7387 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7388 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7389 if .reg-xfp section doesn't exist.
7390 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7392 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7394 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7395 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7396 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7397 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7398 (i386_gdbarch_init): Update comments.
7399 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7401 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7403 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7405 * features/Makefile (i386/i386-mmx-expedite): New.
7406 (i386/i386-mmx-linux-expedite): Likewise.
7407 ($(outdir)/i386/i386-mmx.dat): Likewise.
7408 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7410 * features/i386/i386-mmx-linux.c: New.
7411 * features/i386/i386-mmx-linux.xml: Likewise.
7412 * features/i386/i386-mmx.c: Likewise.
7413 * features/i386/i386-mmx.xml: Likewise.
7414 * regformats/i386/i386-mmx-linux.dat: Likewise.
7415 * regformats/i386/i386-mmx.dat: Likewise.
7417 * features/Makefile (WHICH): Add i386/i386-mmx and
7418 i386/i386-mmx-linux.
7420 2010-04-08 Doug Evans <dje@google.com>
7422 * source.c (openp): Skip $cdir in PATH.
7424 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7427 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7429 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7430 address and a zero length.
7432 2010-04-08 Hui Zhu <teawater@gmail.com>
7434 * i386-tdep.c (i386_process_record): Add support for insn
7437 2010-04-07 Doug Evans <dje@google.com>
7439 * python/python.c (source_python_script): Use ensure_python_env
7440 to prepare environment for script.
7442 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7444 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7445 <sys/uio.h> and "i386-xstate.h".
7446 (PTRACE_GETREGSET): New.
7447 (PTRACE_SETREGSET): Likewise.
7448 (have_ptrace_getregset): Likewise.
7449 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7451 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7453 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7454 (amd64_linux_store_inferior_registers): Likewise.
7455 (amd64_linux_read_description): Check and enable AVX target
7458 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7459 and "features/i386/amd64-avx-linux.c".
7460 (amd64_linux_regset_sections): New.
7461 (amd64_linux_core_read_description): Check and enable AVX
7463 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7464 set_gdbarch_core_regset_sections.
7465 (_initialize_amd64_linux_tdep): Call
7466 initialize_tdesc_amd64_avx_linux.
7468 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7469 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7470 (tdesc_amd64_avx_linux): New.
7471 (amd64_linux_update_xstateregset): Likewise.
7473 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7474 (amd64_ymm_names): New.
7475 (amd64_ymmh_names): Likewise.
7476 (amd64_register_name): Likewise.
7477 (amd64_supply_xstateregset): Likewise.
7478 (amd64_collect_xstateregset): Likewise.
7479 (amd64_supply_xsave): Likewise.
7480 (amd64_collect_xsave): Likewise.
7481 (AMD64_NUM_REGS): Removed.
7482 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7483 %xmmN if AVX is available.
7484 (amd64_pseudo_register_name): Support pseudo YMM registers.
7485 (amd64_regset_from_core_section): Support .reg-xstate section.
7486 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7487 and ymm0h_regnum. Call set_gdbarch_register_name.
7488 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7490 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7491 AMD64_YMM15H_REGNUM.
7492 (AMD64_NUM_REGS): New.
7493 (amd64_supply_xsave): Likewise.
7494 (amd64_collect_xsave): Likewise.
7495 (amd64_register_name): Removed.
7496 (amd64_register_type): Likewise.
7498 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7500 * i387-tdep.c: Include "i386-xstate.h".
7501 (XSAVE_XSTATE_BV_ADDR): New.
7502 (xsave_avxh_offset): Likewise.
7503 (XSAVE_AVXH_ADDR): Likewise.
7504 (i387_supply_xsave): Likewise.
7505 (i387_collect_xsave): Likewise.
7507 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7508 (I387_YMM0H_REGNUM): Likewise.
7509 (I387_YMMENDH_REGNUM): Likewise.
7510 (i387_supply_xsave): Likewise.
7511 (i387_collect_xsave): Likewise.
7513 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7515 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7516 <sys/uio.h> and "i386-xstate.h".
7517 (PTRACE_GETREGSET): New.
7518 (PTRACE_SETREGSET): Likewise.
7519 (fetch_xstateregs): Likewise.
7520 (store_xstateregs): Likewise.
7521 (GETXSTATEREGS_SUPPLIES): Likewise.
7522 (regmap): Include 8 upper YMM registers.
7523 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7525 (i386_linux_store_inferior_registers): Likewise.
7526 (i386_linux_read_description): Check and enable AVX target
7529 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7530 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7531 (i386_linux_regset_sections): Add ".reg-xstate".
7532 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7533 (i386_linux_core_read_xcr0): New.
7534 (i386_linux_core_read_description): Check and enable AVX target
7536 (i386_linux_init_abi): Set xsave_xcr0_offset.
7537 (_initialize_i386_linux_tdep): Call
7538 initialize_tdesc_i386_avx_linux.
7540 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7541 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7542 (i386_linux_core_read_xcr0): New.
7543 (tdesc_i386_avx_linux): Likewise.
7544 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7546 * i386-tdep.c: Include "i386-xstate.h" and
7547 "features/i386/i386-avx.c".
7548 (i386_ymm_names): New.
7549 (i386_ymmh_names): Likewise.
7550 (i386_ymmh_regnum_p): Likewise.
7551 (i386_ymm_regnum_p): Likewise.
7552 (i386_xmm_regnum_p): Likewise.
7553 (i386_register_name): Likewise.
7554 (i386_ymm_type): Likewise.
7555 (i386_supply_xstateregset): Likewise.
7556 (i386_collect_xstateregset): Likewise.
7557 (i386_sse_regnum_p): Removed.
7558 (i386_pseudo_register_name): Support pseudo YMM registers.
7559 (i386_pseudo_register_type): Likewise.
7560 (i386_pseudo_register_read): Likewise.
7561 (i386_pseudo_register_write): Likewise.
7562 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7563 %xmmN if AVX is available.
7564 (i386_regset_from_core_section): Support .reg-xstate section.
7565 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7566 (i386_process_record): Replace i386_sse_regnum_p with
7568 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7569 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7570 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7571 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7572 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7573 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7575 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7577 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7578 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7580 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7581 (I386_AVX_NUM_REGS): New.
7582 (i386_xmm_regnum_p): Likewise.
7583 (i386_ymm_regnum_p): Likewise.
7584 (i386_ymmh_regnum_p): Likewise.
7586 * common/i386-xstate.h: New.
7588 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7590 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7592 * features/Makefile (WHICH): Add i386/i386-avx,
7593 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7594 (i386/i386-avx-expedite): New.
7595 (i386/i386-avx-linux-expedite): Likewise.
7596 (i386/x86-64-avx-expedite):Likewise.
7597 (i386/x86-64-avx-linux-expedite): Likewise.
7598 ($(outdir)/i386/i386-avx.dat): New dependency.
7599 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7600 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7601 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7603 * features/i386/32bit-avx.xml: New.
7604 * features/i386/64bit-avx.xml: Likewise.
7605 * features/i386/i386-avx-linux.c: Likewise.
7606 * features/i386/i386-avx-linux.xml: Likewise.
7607 * features/i386/i386-avx.c: Likewise.
7608 * features/i386/i386-avx.xml: Likewise.
7609 * features/i386/x86-64-avx-linux.c: Likewise.
7610 * features/i386/x86-64-avx-linux.xml: Likewise.
7611 * features/i386/x86-64-avx.c: Likewise.
7612 * features/i386/x86-64-avx.xml: Likewise.
7613 * regformats/i386/i386-avx-linux.dat: Likewise.
7614 * regformats/i386/i386-avx.dat: Likewise.
7615 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7616 * regformats/i386/x86-64-avx.dat: Likewise.
7618 2010-04-07 Doug Evans <dje@google.com>
7620 * top.c (source_file_name): Make const char *.
7621 * top.h (source_file_name): Update.
7622 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7624 (script_from_file): Change `file' arg to const char *.
7625 * cli/cli-script.h (script_from_file): Update.
7627 2010-04-06 Doug Evans <dje@google.com>
7629 * cli/cli-cmds.c (source_command): Run cleanups.
7631 2010-04-06 Stan Shebs <stan@codesourcery.com>
7633 * defs.h (char_ptr): Move typedef here from...
7634 * ada-lang.c (char_ptr): Remove.
7635 * charset.c (char_ptr): Remove.
7636 * tracepoint.h (struct uploaded_string): Remove.
7637 (struct uploaded_tp): Use vectors for string arrays.
7638 * tracepoint.c (trace_save): Use vectors of actions.
7639 (parse_tracepoint_definition): Ditto.
7640 (get_uploaded_tp): Clear vectors.
7641 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7642 (next_cmd): Change to an int.
7643 (read_next_cmd): Use vector of command strings.
7645 2010-04-06 Doug Evans <dje@google.com>
7647 * top.h (source_script, cd_command): Delete.
7648 * main.c: #include "cli/cli-cmds.h"
7650 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7652 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7653 type in bytes, not bits.
7655 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7657 * stabsread.c (define_symbol): Add support for char
7658 and string constants.
7660 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7662 Remove remaining "%ll" uses.
7663 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7665 * rs6000-nat.c (rs6000_ptrace64): Idem.
7666 * solib-pa64.c (pa64_current_sos): Idem.
7667 * solib-spu.c (spu_current_sos): Idem.
7668 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7670 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7672 * sh64-tdep.c (sh64_show_media_regs): Idem.
7674 2010-04-05 Stan Shebs <stan@codesourcery.com>
7676 * tracepoint.c: Include gdbcore.h.
7677 (tfile_xfer_partial): Return partial results, also try reading
7679 (tfile_has_all_memory): New function.
7680 (init_tfile_ops): Use it.
7682 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7685 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7686 the changes in data-directory.
7687 (init_sysinfo): Reload the syscall XML file if the data-directory
7690 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7693 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7695 2010-04-04 Stan Shebs <stan@codesourcery.com>
7696 Nathan Sidwell <nathan@codesourcery.com>
7698 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7699 breakpoints printed.
7700 (is_hardware_watchpoint): Make argument const.
7701 (is_watchpoint): Ditto.
7702 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7704 (breakpoints_info): Pass NULL to breakpoint_1.
7705 (maintenance_info_breakpoints): Ditto.
7706 (watchpoints_info): New function.
7707 (tracepoints_info): Use breakpoint_1 filter.
7708 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7709 (_initialize_breakpoint): Make "info watchpoints" its own command.
7710 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7711 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7713 2010-04-04 Stan Shebs <stan@codesourcery.com>
7715 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7717 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7720 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7722 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7725 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7727 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7732 2010-04-02 Hui Zhu <teawater@gmail.com>
7734 * i386-tdep.c (OT_DQUAD): New enum.
7735 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7736 SSE3, SSSE3 and SSE4.
7738 2010-04-02 Hui Zhu <teawater@gmail.com>
7740 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7743 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7745 * tracepoint.c (trace_dump_actions): New, factored out from
7746 trace_dump_command, and adjusted to recurse into while-stepping's
7748 (trace_dump_command): Use it.
7750 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7752 * breakpoint.h (struct counted_command_line): Moved definition to
7753 breakpoint.c, and forward declare.
7754 (breakpoint_commands): Declare.
7755 * breakpoint.c (struct counted_command_line): Moved here.
7756 (breakpoint_commands): New.
7757 * tracepoint.c (encode_actions): Use breakpoint_commands.
7758 * remote.c (remote_download_tracepoint): Ditto.
7760 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7762 * remote.c (remote_parse_stop_reply): Use hex_string instead
7763 of phex_nz for error.
7765 2010-04-01 Stan Shebs <stan@codesourcery.com>
7766 Nathan Sidwell <nathan@codesourcery.com>
7768 * tracepoint.h (enum actionline_type): Remove.
7769 (validate_actionline): Change return to void.
7770 * tracepoint.c (report_agent_reqs_errors): New function.
7771 (validate_actionline): Call it, change return to void, report errors
7773 (collect_symbol): Call report_agent_reqs_errors.
7774 (encode_actions_1): Ditto.
7775 (encode_actions): Don't expect a result from validate_actionline.
7777 2010-04-01 Stan Shebs <stan@codesourcery.com>
7779 * tracepoint.c (trace_start_command): Confirm if trace is running.
7780 (trace_stop_command): Error if trace not running.
7782 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7784 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7785 (AMD64_NUM_LOWER_BYTE_REGS): New.
7786 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7787 (amd64_pseudo_register_write): Likewise.
7788 (amd64_init_abi): Set num_byte_regs to 20.
7790 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7792 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7793 (prev_breakpoint_count): New.
7794 (set_breakpoint_count): Adjust.
7795 (rbreak_start_breakpoint_count): New.
7796 (start_rbreak_breakpoints): Adjust.
7797 (end_rbreak_breakpoints): Adjust.
7798 (struct commands_info) <arg>: New field.
7799 (do_map_commands_command): Tweak output to include breakpoint spec
7801 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7802 ARG was empty on entry. Set INFO's arg.
7803 (create_breakpoint): Adjust.
7805 * NEWS: Clarify `commands' changes.
7807 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7809 * tracepoint.c: Include stack.h.
7810 (struct add_local_symbols_data): New.
7811 (do_collect_symbol): New.
7812 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7813 iterate_over_block_local_vars.
7814 * stack.c (print_block_frame_locals): Rewrite as ...
7815 (iterate_over_block_locals): ... this. Take a callback function
7816 pointer and generic data pointer, and call that instead of
7817 print_variable_and_value.
7818 (struct print_variable_and_value_data): New.
7819 (do_print_variable_and_value): New.
7820 (iterate_over_block_local_vars): New, abstracted out from
7821 print_frame_local_vars.
7822 (print_frame_local_vars): Rewrite using
7823 iterate_over_block_local_vars.
7824 (iterate_over_block_arg_vars): New, abstracted out from
7825 print_frame_arg_vars.
7826 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7827 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7828 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7830 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7832 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7833 instructions. Use the PC+4 if the base of the TBB or TBH is the
7836 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7838 Fix crash on reading wrong function declaration DWARF.
7839 * dwarf2read.c (read_subroutine_type): New variable void_type.
7840 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7841 more close to their use.
7843 2010-03-31 Stan Shebs <stan@codesourcery.com>
7845 * breakpoint.c (tracepoint_save_command): Include variables,
7846 conditionals, tracepoint types, and default-collect.
7847 * tracepoint.c (save_trace_state_variables): New function.
7848 * tracepoint.h (save_trace_state_variables): Declare it.
7850 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7852 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7854 2010-03-30 Keith Seitz <keiths@redhat.com>
7856 * c-typeprint.c (c_type_print_args): Don't print "void"
7857 for java, regardless of whether it is TYPE_PROTOTYPED.
7858 Use the passed-in language instead of current_language.
7859 (c_type_print_varspec_suffix): Use current_language instead
7860 of assuming language_c.
7861 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7862 any return type specifier from the physname.
7864 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7866 * tui/tui-interp.c (tui_is_toplevel): New.
7868 (tui_allowed_p): New.
7869 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7871 * tui/tui.h (tui_allowed_p): Declare.
7873 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7875 * serial.h: Include winsock2.h before windows.h.
7877 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7879 * NEWS: Mention xmlRegisters= in qSupported packet.
7881 * i386-tdep.c: Include "remote.h".
7882 (_initialize_i386_tdep): Call register_remote_support_xml.
7884 * remote.c (remote_support_xml): New.
7885 (register_remote_support_xml): Likewise.
7886 (remote_query_supported_append): Likewise.
7887 (remote_query_supported): Support remote_support_xml.
7889 * remote.h (register_remote_support_xml): New.
7891 2010-03-29 Stan Shebs <stan@codesourcery.com>
7893 * tracepoint.c (trace_find_line_command): Remove dead code.
7895 * tracepoint.h (struct uploaded_string): New struct.
7896 (struct uploaded_tp): New fields for source strings.
7897 * breakpoint.c (this_utp, next_cmd): New globals.
7898 (read_uploaded_action): New function.
7899 (create_tracepoint_from_upload): Fill in more parts
7901 * tracepoint.c (encode_source_string): New function.
7902 (trace_save): Write out source strings, fix error checks.
7903 (parse_tracepoint_definition): Add source string parsing.
7904 * remote.c (PACKET_TracepointSource): New packet type.
7905 (remote_download_command_source): New function.
7906 (remote_download_tracepoint): Download source pieces also.
7907 (_initialize_remote): Add packet config command.
7909 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7912 * tracepoint.c (start_tracing): Check tracepoints before sending
7913 commands to target, don't start if all tracepoints disabled.
7915 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7917 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7919 2010-03-26 Stan Shebs <stan@codesourcery.com>
7921 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7923 2010-03-26 Tom Tromey <tromey@redhat.com>
7925 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7927 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7929 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7930 (skip_prologue_sal): Remove local definition.
7931 (resolve_sal_pc): Remove now unnecessary code.
7932 * linespec.c (minsym_found): Call skip_prologue_sal.
7933 * symtab.c (find_function_start_pc): Remove.
7934 (find_function_start_sal): Extract prologue skipping into ...
7935 (skip_prologue_sal): ... this new function. Handle code both
7936 with and without debug info. Respect SAL's explicit_pc and
7937 explicit_line flags. Inline old find_function_start_pc.
7938 * symtab.h (find_function_start_pc): Remove.
7939 (skip_prologue_sal): Add prototype.
7941 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7943 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7944 for DW_TAG_imported_module children.
7946 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7948 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7949 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7950 * completer.c (add_struct_fields): Fix inverted logic.
7952 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7954 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7956 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7958 * tracepoint.c (current_trace_status): Don't make sure error_desc
7960 (parse_trace_status): Release a previous error_desc string, and
7961 set it to NULL by default. If stop reason is tracepoint_error,
7962 make sure error_desc is not left NULL.
7964 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7966 * tracepoint.c (trace_save): Remove X from tracepoint error
7969 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7971 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7972 the terror description. Don't expect an X prefix.
7974 2010-03-25 Stan Shebs <stan@codesourcery.com>
7976 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7977 (struct trace_status): New field error_desc.
7978 * tracepoint.c (stop_reason_names): Add terror.
7979 (current_trace_status): Ensure non-NULL error description.
7980 (trace_status_command): Add error report.
7981 (trace_status_mi): Ditto.
7982 (trace_save): Add special case for error description.
7983 (parse_trace_status): Add case for errors.
7985 2010-03-25 Keith Seitz <keiths@redhat.com>
7987 * dwarf2read.c (read_subroutine_type): If the compilation unit
7988 language is Java, mark any formal parameter named "this" as
7989 artificial (GCC/43521).
7990 (dwarf2_name): Add special handling for Java constructors.
7992 2010-03-25 Tom Tromey <tromey@redhat.com>
7994 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7995 * infrun.c (handle_inferior_event): Change initialization of
7997 (handle_inferior_event): Change assignment to stop_stack_dummy.
7998 (normal_stop): Update use of stop_stack_dummy.
7999 (struct inferior_status) <stop_stack_dummy>: Change type.
8000 * inferior.h (stop_stack_dummy): Update.
8001 * infcmd.c (stop_stack_dummy): Change type.
8002 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8004 (call_function_by_hand): Call set_std_terminate_breakpoint.
8005 Rewrite std::terminate handling.
8006 * breakpoint.h (enum bptype) <bp_std_terminate,
8007 bp_std_terminate_master>: New.
8008 (enum stop_stack_kind): New.
8009 (struct bpstat_what) <call_dummy>: Change type.
8010 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8012 * breakpoint.c (create_std_terminate_master_breakpoint): New
8014 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8015 Call create_std_terminate_master_breakpoint.
8016 (print_it_typical): Handle new breakpoint kinds.
8017 (bpstat_stop_status): Handle bp_std_terminate_master.
8018 (bpstat_what): Correctly set call_dummy field. Handle
8019 bp_std_terminate_master and bp_std_terminate.
8020 (print_one_breakpoint_location): Update.
8021 (allocate_bp_location): Update.
8022 (set_std_terminate_breakpoint): New function.
8023 (delete_std_terminate_breakpoint): Likewise.
8024 (create_thread_event_breakpoint): Update.
8025 (delete_command): Update.
8026 (breakpoint_re_set_one): Update.
8027 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8029 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8031 * symfile.c (build_section_addr_info_from_bfd): New.
8032 (build_section_addr_info_from_objfile): Base it on
8033 build_section_addr_info_from_bfd.
8034 (addrs_section_compar, addrs_section_sort): New.
8035 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8036 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8037 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8039 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8041 * elfread.c (find_separate_debug_file_by_buildid):
8042 Remove unused local variable.
8044 2010-03-24 Tom Tromey <tromey@redhat.com>
8046 PR breakpoints/9352:
8047 * NEWS: Mention changes to `commands' and `rbreak'.
8048 * symtab.c (do_end_rbreak_breakpoints): New function.
8049 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8050 end_rbreak_breakpoints.
8051 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8052 (set_breakpoint_count): Likewise. Clear last_was_multi.
8053 (multi_start, multi_end, last_was_multi): New globals.
8054 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8056 (struct commands_info): New
8057 (do_map_commands_command): New function.
8058 (commands_command_1): New function.
8059 (commands_command): Use it.
8060 (commands_from_control_command): Likewise.
8061 (do_delete_breakpoint): New function.
8062 (delete_command): Use it.
8063 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8064 (do_map_disable_breakpoint): New function.
8065 (disable_command): Use it.
8066 (do_map_enable_breakpoint): New function.
8067 (enable_command): Use it.
8068 (enable_once_breakpoint): Add argument.
8069 (enable_once_command): Update.
8070 (enable_delete_breakpoint): Add argument.
8071 (enable_delete_command): Update.
8072 (break_command_really): Set last_was_multi when needed.
8073 (check_tracepoint_command): Fix formatting.
8074 (validate_commands_for_breakpoint): New function.
8075 (breakpoint_set_commands): Use it.
8076 (tracepoint_save_command): Update.
8077 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8080 2010-03-24 Tom Tromey <tromey@redhat.com>
8082 * breakpoint.h (struct counted_command_line): New struct.
8083 (struct breakpoint) <commands>: Change type.
8084 (struct bpstats) <commands>: Change type.
8085 <commands_left>: New field.
8086 * breakpoint.c (alloc_counted_command_line): New function.
8087 (incref_counted_command_line): Likewise.
8088 (decref_counted_command_line): Likewise.
8089 (do_cleanup_counted_command_line): Likewise.
8090 (make_cleanup_decref_counted_command_line): Likewise.
8091 (breakpoint_set_commands): Use decref_counted_command_line and
8092 alloc_counted_command_line.
8093 (commands_command): Don't error if breakpoint commands are
8095 (commands_from_control_command): Likewise.
8096 (bpstat_free): Update.
8097 (bpstat_copy): Likewise.
8098 (bpstat_clear_actions): Likewise.
8099 (bpstat_do_actions_1): Likewise.
8100 (bpstat_stop_status): Likewise.
8101 (print_one_breakpoint_location): Likewise.
8102 (delete_breakpoint): Likewise.
8103 (bpstat_alloc): Initialize new field.
8104 (tracepoint_save_command): Update.
8105 * tracepoint.c (encode_actions): Update.
8106 (trace_dump_command): Update.
8108 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8110 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8111 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8112 (read_structure_type): For RealView, set TYPE_STUB on structures with
8113 no byte size and no children.
8114 (read_subroutine_type): Mark functions as prototyped by default.
8115 * symtab.c (producer_is_realview): New function.
8116 * symtab.h (expand_line_sal): Fix declaration formatting.
8117 (producer_is_realview): Declare.
8119 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8121 * arm-tdep.c (skip_prologue_function): New function.
8122 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8123 (thumb_analyze_prologue): Document return value. Recognize more
8124 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8126 (arm_skip_prologue): Remove call dummy check. Check the prologue
8127 for non-GNU compilers.
8128 (arm_instruction_changes_pc): New function.
8129 (arm_analyze_prologue): New function, broken out from
8130 arm_scan_prologue. Recognize more ARM instructions and skippable
8131 calls. Update comments. Handle NULL cache. Return the address
8132 of the first unrecognized instruction. Do not skip past other
8133 instructions which change control flow. Add debug output.
8134 (arm_scan_prologue): Use arm_analyze_prologue.
8135 (ARM_PC_32): Delete.
8136 (shifted_reg_val): Simplify ARM_PC_32 check.
8138 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8140 * tracepoint.c (tvariables_info_1): Actually compute
8141 the number of rows in the result.
8143 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8145 * remote.c (crc32): Constify `buf' parameter.
8146 (remote_verify_memory): New, abstracted out from...
8147 (compare_sections_command): ... this. Remove hardcoded target
8149 (init_remote_ops): Install remote_verify_memory.
8150 * target.c (target_verify_memory): New.
8151 * target.h (struct target_ops) <to_verify_memory>: New field.
8152 (target_verify_memory): Declare.
8154 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8156 Implement -trace-save.
8158 * mi-cmds.h (mi_cmds_trace_save): Declare.
8159 * mi-cmds.c (mi_cmds): Register -trace-save.
8160 * mi/mi-main.c (mi_cmd_trace_save): New.
8161 * remote.c (remote_save_trace_data): Take const parameter.
8162 * target.h (struct target_ops::to_save_trace_data): Take
8164 * target.c (update_current_target): Adjust to the above.
8165 * tracepoint.c (trave_save): New, extracted from
8166 (trace_save_command): ...this.
8167 (tfile_trace_find): Remove message that is unnecessary now
8168 that 'tfind' reports found frame.
8169 * tracepoint.h (trace_save): Declare.
8171 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8173 Implement -trace-find.
8175 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8176 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8177 * mi/mi-main.c (mi_cmd_trace_find): New.
8178 * target.h (struct target_ops): Document to_trace_find.
8179 * tracepoint.h (tfind_1): Declare.
8180 * tracepoint.c (finish_tfind_command): Rename to...
8182 * remote.c (remote_trace_find): Return -1 if target say
8183 there's no frame. Improve error diagnostics.
8185 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8187 -trace-define-variable and -trace-list-variables.
8189 * tracepoint.c (create_trace_state_variable): Make
8190 private copy of name, as opposed to assuming the
8191 pointer lives forever.
8192 (tvariables_info_1): New.
8193 (tvariables_info): Use the above.
8194 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8196 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8197 and -trace-list-variables.
8198 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8199 (mi_cmd_trace_list_variables): New.
8200 * mi/mi-main.c (mi_cmd_trace_define_variable)
8201 (mi_cmd_trace_list_variables): New.
8203 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8205 Implement -break-passcount.
8207 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8208 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8209 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8211 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8213 -trace-start/-trace-end/-trace-status.
8215 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8217 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8218 (mi_cmd_trace_stop): Declare.
8219 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8220 (mi_cmd_trace_stop): New.
8221 * tracepoint.c (start_tracing): New, extracted from...
8222 (trace_start_command): ...this.
8223 (trace_status_mi): New.
8224 * tracepoint.h (struct trace_status): Document
8225 stopping_tracepoint.
8226 (start_tracing, stop_tracing, trace_status_mi): Declare.
8228 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8230 Implement creating tracepoints with -break-insert.
8232 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8233 to mean that tracepoint should be created.
8235 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8237 * breakpoint.c (check_no_tracepoint_commands): Use
8238 current spelling of 'teval'.
8240 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8242 Unify actions and commands
8244 * defs.h (read_command_lines, read_command_lines_1): New
8245 parameters validator and closure.
8246 * tracepoint.h (struct action_line): Remove.
8247 * breakpoint.h (struct breakpoint): Remove the 'actions'
8249 * defs.h (enum command_control_type): New value
8250 while_stepping_control.
8251 (struct command_line): Add comments.
8252 * breakpoint.c (breakoint_is_tracepoint): New.
8253 (breakpoint_set_commands): For tracepoints,
8254 verify the commands are permissible.
8255 (check_tracepoint_commands): New.
8256 (commands_command): Require that each new line is validated using
8257 check_tracepoint_command, if we set commands for a tracepoint.
8258 (create_tracepoint_from_upload): Likewise.
8259 (print_one_breakpoint_location): Remove the code to print
8260 actions specifically.
8261 (tracepoint_save_command): Relay to print_command_lines.
8262 * cli/cli-script.c (process_next_line): New parameters validator
8263 and closure. Handle 'while-stepping'. Call validator if not null.
8264 (read_command_lines, read_command_lines1): Likewise.
8265 (recurse_read_control_structure): New parameters validator and
8266 closure. Handle while_stepping_control.
8267 (print_command_lines): Handle while-stepping.
8268 (get_command_line, define_command, document_command): Adjust.
8269 * remote.c (remote_download_tracepoint): Adjust.
8270 * tracepoint.c (make_cleanup_free_actions, read_actions)
8271 (free_actions, do_free_actions_cleanup): Remove.
8272 (trace_actions_command): Use read_command_lines.
8273 (validate_actionline): Use error in one place.
8274 (encode_actions_1): New, extracted from...
8275 (encode_actions): ...this. Also use cleanups for exception
8277 (trace_dump_command): Adjust.
8278 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8281 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8283 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8285 2010-03-22 Stan Shebs <stan@codesourcery.com>
8287 * value.c (value_static_field): Be lazy about the field's value.
8289 2010-03-22 Reid Kleckner <reid@kleckner.net>
8292 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8294 (disable_breakpoints_in_shlibs): Likewise.
8296 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8298 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8299 GCC 4.1 debug info generation (GCC PR c++/28460).
8300 (determine_prefix): Likewise.
8302 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8304 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8306 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8308 2010-03-19 Stan Shebs <stan@codesourcery.com>
8310 * ax-gdb.c (gen_fetch): Handle bool.
8311 (gen_usual_unary): Ditto.
8313 (gen_equal): New function.
8314 (gen_less): New function.
8315 (gen_expr_binop_rest): Call them, also return integer type from
8319 2010-03-19 Tom Tromey <tromey@redhat.com>
8321 * jv-lang.c (jv_dynamics_objfile_data_key)
8322 (jv_type_objfile_data_key): New globals.
8323 (class_symtab): Move earlier.
8324 (jv_per_objfile_free): New function.
8325 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8327 Remove ancient #if 1.
8328 (add_class_symbol): Remove redundant declaration.
8329 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8330 (java_link_class_type): Mark as static. Update.
8331 (jv_clear_object_type): New function.
8332 (set_java_object_type): Likewise.
8333 (get_java_object_type): Use set_java_object_type.
8334 (is_object_type): Likewise.
8335 (_initialize_java_language): Register new objfile keys.
8336 (get_java_class_symtab): Add 'gdbarch' parameter.
8337 (add_class_symtab_symbol): Update.
8338 (type_from_class): Update.
8340 2010-03-19 Stan Shebs <stan@codesourcery.com>
8342 * ax-general.c (ax_const_l): Fix a sizing bug.
8344 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8348 2010-03-18 Stan Shebs <stan@codesourcery.com>
8349 Pedro Alves <pedro@codesourcery.com>
8351 * target.h (struct target_ops): New method
8352 to_set_circular_trace_buffer.
8353 (target_set_circular_trace_buffer): New macro.
8354 * target.c (update_current_target): Add
8355 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8357 * remote.c (remote_set_circular_trace_buffer): New function.
8358 (init_remote_ops): Add it to vector.
8359 * tracepoint.h (struct trace_status): New field traceframes_created,
8360 change buffer_size and buffer_free to int.
8361 * tracepoint.c (circular_trace_buffer): New global.
8362 (start_tracing): Send values of disconnected tracing and circular
8363 trace buffer settings.
8364 (set_circular_trace_buffer): New function.
8365 (parse_trace_state): Handle total space and frames created.
8366 (trace_status_command): Display total space and total frames
8368 (trace_save): Write out new status values.
8369 (parse_trace_status): Set traceframe_count, traceframes_created,
8370 buffer_free and buffer_size to -1 by default.
8371 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8372 * NEWS: Mention the circular trace buffer option.
8374 2010-03-18 Tom Tromey <tromey@redhat.com>
8376 * infcmd.c (finish_command_continuation): Wrap print_return_value
8379 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8381 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8382 DIE has a name before creating the associated partial symbol.
8383 (read_func_scope): Emit a complaint if the subprogram does not
8384 have a name or when we can't extract the subprogram PC bounds.
8386 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8388 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8389 instead of selected frame architecture.
8391 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8393 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8394 a valid selected thread, and that it is not running.
8395 (advance_command): Ditto.
8396 (finish_command): Ditto.
8398 2010-03-17 Stan Shebs <stan@codesourcery.com>
8400 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8402 * infcall.c: Include tracepoint.h.
8403 (call_function_by_hand): Disallow calls in tfind mode.
8404 * infcmd.c: Include tracepoint.h.
8405 (ensure_not_tfind_mode): New function.
8406 (continue_1): Call it.
8408 (jump_command): Ditto.
8409 (signal_command): Ditto.
8410 (advance_command): Ditto.
8411 (until_command): Ditto.
8412 (finish_command): Ditto.
8413 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8415 * ax-gdb.h (struct axs_value): New field optimized_out.
8416 (gen_trace_for_var): Add gdbarch argument.
8417 * ax-gdb.c (gen_trace_static_fields): New function.
8418 (gen_traced_pop): Call it, add gdbarch argument.
8419 (gen_trace_for_expr): Update call to it.
8420 (gen_trace_for_var): Ditto, and report optimized-out variables.
8421 (gen_struct_ref_recursive): Check for optimized-out value.
8422 (gen_struct_elt_for_reference): Ditto.
8423 (gen_static_field): Pass gdbarch instead of expression, assume
8424 optimization if field not found.
8425 (gen_var_ref): Set the optimized_out flag.
8426 (gen_expr): Error on optimized-out variable.
8427 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8428 expressions, skip optimized-out variables with computed locations.
8429 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8430 erroring out if location expression missing.
8431 (loclist_tracepoint_var_ref): Don't error out here.
8433 2010-03-17 Tom Tromey <tromey@redhat.com>
8435 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8436 DWARF data is available.
8438 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8440 * symfile.c (generic_load): Reset breakpoints after loading.
8442 2010-03-17 Tom Tromey <tromey@redhat.com>
8444 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8446 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8448 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8449 create_breakpoint call, adjust the parameters.
8451 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 Chandru <chandru@in.ibm.com>
8454 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8455 * valarith.c (value_subscripted_rvalue): Suppress error if
8456 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8458 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8460 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8462 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8464 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8465 before doing the associated thread switch.
8467 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8469 * MAINTAINERS: Update my email address.
8471 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8473 Simplify MI breakpoint setting.
8475 * breakpoint.c (break_command_really): Make nonstatic and
8477 (create_breakpoint): ...this. Rename prior function by this name
8479 (create_breakpoint_sal): ...this.
8480 (create_breakpoints): Rename to...
8481 (create_breakpoints_sal): ...this.
8482 (set_breakpoint): Remove.
8483 * breakpoint.h: Adjust to above changes.
8484 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8486 2010-03-15 Stan Shebs <stan@codesourcery.com>
8488 * ax-gdb.c: Include cp-support.h.
8489 (find_field): Remove.
8490 (gen_primitive_field): New function.
8491 (gen_struct_ref_recursive): New function.
8492 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8494 (gen_static_field): New function.
8495 (gen_struct_elt_for_reference): New.
8496 (gen_namespace_elt): New.
8497 (gen_maybe_namespace_elt): New.
8498 (gen_aggregate_elt_ref): New.
8499 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8501 2010-03-15 Tom Tromey <tromey@redhat.com>
8503 * dwarf2read.c (die_needs_namespace): Also return 0 for
8506 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8509 * cp-support.h: Added char *declaration element to using_direct
8511 (cp_add_using): Added char *declaration argument.
8512 (cp_add_using_directive): Ditto.
8513 (cp_lookup_symbol_imports): made extern.
8514 * cp-namespace.c: Updated with the above changes.
8515 * dwarf2read.c (read_import_statement): Ditto.
8516 (read_namespace): Ditto.
8517 (read_import_statement): Support import declarations.
8518 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8520 Added support for 'declaration_only' search.
8521 (cp_lookup_symbol_namespace): Attempt to search for the name as
8522 is before consideration of imports.
8523 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8524 search at every block level search.
8525 Now takes language argument.
8526 (lookup_symbol_aux): Updated.
8528 2010-03-15 Tom Tromey <tromey@redhat.com>
8530 * c-exp.y (name_not_typename): Add 'operator' clause.
8532 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8534 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8535 * configure: Regenerate.
8537 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8539 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8540 and ".sdynbss". Update the comment.
8542 2010-03-15 Jie Zhang <jie@codesourcery.com>
8544 * MAINTAINERS: Update my email address.
8546 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8548 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8550 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8552 * charset.c [USE_WIN32API]: Include <windows.h>.
8553 (_initialize_charset): Correct type of w32_host_default_charset.
8555 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8557 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8559 2010-03-12 Tom Tromey <tromey@redhat.com>
8562 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8563 in a lexical block does not need a namespace.
8564 (new_symbol) <DW_TAG_variable>: Put extern variables on
8565 list_in_scope in all cases.
8567 2010-03-12 Stan Shebs <stan@codesourcery.com>
8569 * ax-gdb.c (gen_expr): Add shift expressions.
8570 (gen_expr_binop_rest): Ditto.
8572 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8574 * buildsym.c (finish_block): Reset using_directives pointer
8575 after block initialization.
8577 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8579 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8580 * i386-tdep.c (i386_word_names): Likewise.
8582 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8584 * target.c (memory_xfer_partial): Don't use the stack cache if
8585 inspecting trace frames.
8586 * tracepoint.c (finish_tfind_command): Invalidate the target
8589 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8591 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8592 for the PIC displacement, print also the displacement value.
8593 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8595 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8597 * remote-mips.c (close_ports, mips_initialize_cleanups)
8598 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8599 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8600 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8601 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8602 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8603 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8604 comments describing each of these functions.
8605 (mips_enter_debug, mips_exit_debug, common_open)
8606 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8607 blank line after the comment describing the function.
8609 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8611 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8612 parameter displacementp. Update comment.
8613 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8614 element exists. Return if svr4_exec_displacement was not successful.
8617 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8618 Daniel Jacobowitz <dan@codesourcery.com>
8620 * solib-svr4.c (read_program_header): Support type == -1 to read
8621 all program headers.
8622 (read_program_headers_from_bfd): New function.
8623 (svr4_static_exec_displacement): Remove and move the comment ...
8624 (svr4_exec_displacement): ... here. Remove variable found. New
8625 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8626 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8627 targets using read_program_headers_from_bfd. Remove the call of
8628 svr4_static_exec_displacement.
8630 2010-03-10 Tom Tromey <tromey@redhat.com>
8632 * dwarf2read.c (struct pubnames_header): Remove.
8633 (_PUBNAMES_HEADER): Remove.
8634 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8635 (struct aranges_header): Remove.
8636 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8637 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8638 (PUBNAMES_SECTION): Remove.
8639 (ARANGES_SECTION): Remove.
8640 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8641 (dwarf2_build_psymtabs): Remove dead code.
8642 (dwarf2_build_psymtabs_easy): Remove.
8644 2010-03-10 Tom Tromey <tromey@redhat.com>
8646 * elfread.c (elf_symfile_read): Don't call
8647 dwarf2_build_frame_info.
8648 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8649 (struct dwarf2_per_objfile) <objfile>: New field.
8650 (dwarf2_has_info): Now idempotent. Set objfile field.
8651 (dwarf2_read_section): Check and set readin field. Call
8653 (dwarf2_build_psymtabs): Don't read all sections.
8654 (read_type_comp_unit_head): Read types section.
8655 (create_debug_types_hash_table): Likewise.
8656 (init_cu_die_reader): Add asserts.
8657 (process_type_comp_unit): Add assert.
8658 (dwarf2_build_psymtabs_hard): Read info section.
8659 (load_partial_comp_unit): Add assert.
8660 (create_all_comp_units): Read info section.
8661 (load_full_comp_unit): Likewise.
8662 (dwarf2_ranges_read): Read ranges section.
8663 (dwarf2_record_block_ranges): Add assert.
8664 (dwarf2_read_abbrevs): Read abbrev section.
8665 (read_indirect_string): Read str section.
8666 (dwarf_decode_line_header): Read line section.
8667 (read_signatured_type_at_offset): Read types section.
8668 (dwarf_decode_macros): Read macinfo section.
8669 (dwarf2_symbol_mark_computed): Read loc section.
8670 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8671 dwarf2_build_frame_info.
8672 (dwarf2_build_frame_info): Unconditionally set
8673 dwarf2_frame_objfile_data on the objfile.
8674 * configure.ac: Check for posix_madvise.
8675 * config.in, configure: Rebuild.
8677 2010-03-10 Tom Tromey <tromey@redhat.com>
8679 * xcoffread.c (xcoff_start_psymtab): Update.
8680 (xcoff_end_psymtab): Update.
8681 * psymtab.c (allocate_psymtab): Remove dead code.
8682 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8684 * mdebugread.c (parse_partial_symbols): Update.
8685 (new_psymtab): Likewise.
8686 * dwarf2read.c (process_psymtab_comp_unit): Update.
8687 (psymtab_to_symtab_1): Update.
8688 * dbxread.c (start_psymtab): Update.
8689 (end_psymtab): Likewise.
8691 2010-03-10 Tom Tromey <tromey@redhat.com>
8693 * xcoffread.c: Include psymtab.h.
8694 (xcoff_sym_fns): Update.
8695 * symtab.h (struct partial_symbol): Remove.
8696 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8697 (struct partial_symtab): Remove.
8698 (PSYMTAB_TO_SYMTAB): Remove.
8699 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8700 (find_pc_sect_psymtab): Remove.
8701 (find_pc_sect_symtab_via_partial): Declare.
8702 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8703 (find_main_psymtab): Remove.
8704 (find_main_filename): Declare.
8705 (fixup_psymbol_section): Remove.
8706 (fixup_section): Declare.
8707 * symtab.c: Include psymtab.h.
8708 (lookup_symtab): Use lookup_symtab method.
8709 (lookup_partial_symtab): Remove.
8710 (find_pc_sect_psymtab_closer): Remove.
8711 (find_pc_sect_psymtab): Remove.
8712 (find_pc_sect_symtab_via_partial): New function.
8713 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8714 (fixup_section): No longer static.
8715 (fixup_psymbol_section): Remove.
8716 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8717 (lookup_global_symbol_from_objfile): Likewise.
8718 (lookup_symbol_aux_psymtabs): Remove.
8719 (lookup_symbol_aux_quick): New function.
8720 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8721 (lookup_partial_symbol): Remove.
8722 (basic_lookup_transparent_type_quick): New function.
8723 (basic_lookup_transparent_type): Use it.
8724 (find_main_psymtab): Remove.
8725 (find_main_filename): New function.
8726 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8727 (find_line_symtab): Use expand_symtabs_with_filename method.
8728 (output_partial_symbol_filename): New function.
8729 (sources_info): Use map_partial_symbol_filenames.
8730 (struct search_symbols_data): New type.
8731 (search_symbols_file_matches): New function.
8732 (search_symbols_name_matches): Likewise.
8733 (search_symbols): Use expand_symtabs_matching method.
8734 (struct add_name_data): Rename from add_macro_name_data.
8735 (add_macro_name): Update.
8736 (add_partial_symbol_name): New function.
8737 (default_make_symbol_completion_list): Use
8738 map_partial_symbol_names.
8739 (struct add_partial_symbol_name): New type.
8740 (maybe_add_partial_symtab_filename): New function.
8741 (make_source_files_completion_list): Use
8742 map_partial_symbol_filenames.
8743 (expand_line_sal): Use expand_symtabs_with_filename method.
8744 * symmisc.c: Include psymtab.h.
8745 (print_objfile_statistics): Use print_stats method.
8746 (dump_objfile): Use dump method.
8747 (dump_psymtab, maintenance_print_psymbols)
8748 (maintenance_info_psymtabs, maintenance_check_symtabs)
8749 (extend_psymbol_list): Remove.
8750 * symfile.h (struct quick_symbol_functions): New struct.
8751 (struct sym_fns) <qf>: New field.
8752 (sort_pst_symbols): Remove.
8753 (increment_reading_symtab): Declare.
8754 * symfile.c: Include psymtab.h.
8755 (compare_psymbols, sort_pst_symbols): Remove.
8756 (psymtab_to_symtab): Remove.
8757 (increment_reading_symtab): New function.
8758 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8760 (set_initial_language): Use find_main_filename.
8761 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8762 (free_named_symtabs): Remove unused code.
8763 (start_psymtab_common, add_psymbol_to_bcache)
8764 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8766 * stack.c: Include psymtab.h, symfile.h.
8767 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8768 * source.h (psymtab_to_fullname): Don't declare.
8769 * source.c: Include psymtab.h.
8770 (select_source_symtab): Use find_last_source_symtab method.
8771 (forget_cached_source_info): Use forget_cached_source_info
8773 (find_and_open_source): No longer static.
8774 (psymtab_to_fullname): Remove.
8775 * somread.c: Include psymtab.h.
8776 (som_sym_fns): Update.
8777 * psympriv.h: New file.
8778 * psymtab.h: New file.
8779 * psymtab.c: New file.
8780 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8781 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8782 * objfiles.c: Include psymtab.h.
8783 (objfile_relocate1): Use relocate method.
8784 (objfile_has_partial_symbols): Use has_symbols method.
8785 * mipsread.c: Include psymtab.h.
8786 (ecoff_sym_fns): Update.
8787 * mi/mi-cmd-file.c: Include psymtab.h.
8788 (print_partial_file_name): New function.
8789 (mi_cmd_file_list_exec_source_files): Use
8790 map_partial_symbol_filenames.
8791 * mdebugread.c: Include psympriv.h.
8792 * machoread.c: Include psympriv.h.
8793 (macho_sym_fns): Update.
8794 * m2-exp.y (yylex): Use lookup_symtab.
8795 * elfread.c: Include psympriv.h.
8796 (elf_sym_fns): Update.
8797 * dwarf2read.c: Include psympriv.h.
8798 * dbxread.c: Include psympriv.h.
8799 (aout_sym_fns): Update.
8800 * cp-support.c: Include psymtab.h.
8801 (read_in_psymtabs): Remove.
8802 (make_symbol_overload_list_qualified): Use
8803 expand_symtabs_for_function method.
8804 * coffread.c: Include psympriv.h.
8805 (coff_sym_fns): Update.
8806 * blockframe.c: Include psymtab.h.
8807 (find_pc_partial_function): Use find_pc_sect_symtab method.
8808 * ada-lang.h (ada_update_initial_language): Update.
8809 * ada-lang.c: Include psymtab.h.
8810 (ada_update_initial_language): Remove 'main_pst' argument.
8811 (ada_lookup_partial_symbol): Remove.
8812 (struct ada_psym_data): New type.
8813 (ada_add_psyms): New function.
8814 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8815 (struct add_partial_datum): New type.
8816 (ada_add_partial_symbol_completions): New function.
8817 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8818 (ada_exception_support_info_sniffer): Update.
8819 * Makefile.in (SFILES): Add psymtab.c.
8820 (COMMON_OBS): Add psymtab.o.
8821 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8823 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8825 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8827 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8830 * cp-namespace.c (cp_add_using): Deleted.
8831 (cp_add_using_directive): Use obstack allocations.
8832 Merged the function cp_add_using into this one.
8833 Added 'struct obstack *' argument.
8834 (cp_scan_for_anonymous_namespaces): Updated.
8835 * cp-support.h: Updated.
8836 * dwarf2read.c (read_import_statement): Updated.
8837 (read_namespace): Updated.
8839 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8841 * windows-nat.c (cygwin_conv_path): Remove old macro.
8843 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8845 * breakpoint.c (condition_command): Handle watchpoint conditions.
8846 (is_hardware_watchpoint): Add comment.
8847 (is_watchpoint): New.
8848 (update_watchpoint): Don't reparse the watchpoint's condition
8851 (watchpoint_check): Use it.
8852 (bpstat_check_watchpoint): Handle it.
8853 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8854 conditions in a frame where it makes sense.
8855 (watch_command_1): Store the innermost block of the condition
8857 (delete_breakpoint): Delete the watchpoint condition expression.
8858 * breakpoint.h (struct bp_location) <cond>: Update comment.
8859 (struct breakpoint): New field `cond_exp_valid_block'.
8861 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8863 Adjust handling of Ada DIEs after dwarf2_physname patch.
8864 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8866 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8867 Pierre Muller <muller@ics.u-strasbg.fr>
8869 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8870 from/to posix/win32.
8871 (windows_make_so): Use non-Cygwin 1.7 specific function.
8872 (windows_create_inferior): Make sure that cygallargs points to
8873 original args in non Cygwin 1.7. case.
8875 2010-03-09 Michael Snyder <msnyder@vmware.com>
8877 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8878 after target_read_memory to get host byte order.
8879 (i386_process_record): Ditto.
8881 2010-03-09 Keith Seitz <keiths@redhat.com>
8883 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8884 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8885 print out const or volatile qualifiers, too.
8886 (c_type_print_args): Add parameters show_artificial and language.
8887 Skip artificial parameters when requested.
8888 Use the appropriate language printer.
8889 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8890 parameters and pass language_c.
8891 * dwarf2read.c (die_list): New file global.
8892 (struct partial_die_info): Update comments for name field.
8893 (pdi_needs_namespace): Renamed to ...
8894 (die_needs_namespace): ... this. Rewrite.
8895 (dwarf2_linkage_name): Remove.
8896 (add_partial_symbol): Do not predicate the call to
8897 partial_die_full_name based on pdi_needs_namespace.
8898 Remove call to cp_check_possible_namespace_symbols and associated
8900 (guess_structure_name): Do not inspect child subprogram DIEs.
8901 (dwarf2_fullname): Update comments.
8902 Use die_needs_namespace to assist in computing the name.
8903 (read_func_scope): Use dwarf2_name to get the DIE's name.
8904 Use dwarf2_physname to get the "linkage name" of the DIE.
8905 (dwarf2_add_member_field): Use dwarf2_physname instead of
8906 dwarf2_linkage_name.
8907 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8908 (determine_class): Remove.
8909 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8911 (new_symbol): Unconditionally call dwarf2_name.
8912 Compute the "linkage name" using dwarf2_physname.
8913 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8914 When determining to scan for anonymous C++ namespaces, ignore
8916 (dwarf2_physname): New function.
8917 (dwarf2_full_name): Move content to new function and call
8919 (dwarf2_compute_name): "New" function.
8920 (_initialize_dwarf2_read): Initialize die_list.
8921 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8923 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8924 without a demangled name.
8925 Print out type information for non-virtual methods.
8926 * linespec.c (decode_line_1): Force ANY string using "::" (or
8927 "." for java) to use decode_compound, and clean up any stray quoting.
8928 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8929 (decode_compound): Stop consuming at an open parenthesis.
8930 Keep template parameters.
8931 Keep any overload information.
8932 Keep keywords like "const".
8933 Remove paren_pointer.
8934 Move is_quoted check from set_flags to here.
8935 Remove #if 0 code from 2000. Ten years is long enough.
8936 (find_method): Before comparing symbol names, canonicalize the string
8938 If a specific overload is requested, find it. Otherwise throw an error.
8939 (find_method_overload_end): New function.
8940 (set_flags): Remove.
8941 (decode_compound): Assume that parentheses are matched.
8943 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8945 * linespec.c (decode_line_1): Keep important keywords like
8946 "const" and "volatile".
8947 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8948 * typeprint.h (c_type_print_args): Add declaration.
8949 * ui-file.c (do_ui_file_obsavestring): New function.
8950 (ui_file_obsavestring): New function.
8951 * ui-file.h (ui_file_obsavestring): Add declaration.
8952 * valops.c (find_overload_match): Resolve the object to
8954 If the object is a data member, search the object for the member
8955 and return with staticp set.
8956 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8957 Do not attempt to extract a function name from non-function types.
8958 If the extracted function name and the original name are the same,
8959 we don't have a C++ method.
8961 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8962 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8964 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8965 and arguments from symbol lookups.
8966 * ax-gdb.c (gen_expr): Likewise.
8967 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8968 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8969 lookup_possible_namespace_symbol): Likewise.
8970 * cp-support.c (read_in_psymtabs): Likewise.
8971 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8972 * language.h (la_lookup_symbol_nonlocal): Likewise.
8973 * scm-valprint.c (scm_inferior_print): Likewise.
8974 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8975 * solib-svr.c (elf_lookup_lib): Likewise.
8976 * solib.c (show_auto_solib_add): Likewise.
8977 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8978 * symmisc.c (maintenance_check_symtabs): Likewise.
8979 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8980 lookup_symbol_aux_local, lookup_symbol_aux_block,
8981 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8982 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8983 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8984 basic_lookup_transparent_type, find_main_psymtab,
8985 lookup_block_symbol): Likewise.
8986 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8987 lookup_symbol_global, lookup_symbol_aux_block,
8988 lookup_symbol_partial_symbol, lookup_block_symbol,
8989 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8991 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8993 * python/python-internal.h: Include symtab.h.
8995 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8996 Pierre Muller <muller@ics.u-strasbg.fr>
8998 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8999 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9002 2010-03-08 Tom Tromey <tromey@redhat.com>
9004 * breakpoint.c (breakpoint_1): Add "QUIT".
9006 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9007 Pedro Alves <pedro@codesourcery.com>
9009 * solib.c (solib_find): Replace extension if
9010 solib_symbols_extension is set in the target gdbarch.
9011 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9012 solib_symbols_extension to "sym".
9013 * gdbarch.sh (solib_symbols_extension): New variable.
9014 (pstring): New function.
9015 * gdbarch.h, gdbarch.c: Regenerate.
9017 2010-03-08 Tom Tromey <tromey@redhat.com>
9021 * utils.c: Include main.h.
9022 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9023 (defaulted_query): Use default answer if `batch_flag'.
9024 * main.h (batch_flag): Declare.
9025 * main.c (batch_flag): New global.
9026 (captured_main): Remove 'batch'. Update.
9028 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9030 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9033 * remote-mips.c (rockhopper_ops): New target_ops struct.
9034 (MON_ROCKHOPPER): New mips_monitor_type.
9035 (read_hex_value): New function.
9036 (mips_request): Send 8-byte values with a 'T' packet. Read the
9037 packet argument as a string and use read_hex_value to parse it.
9038 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9039 (rockhopper_open): New function.
9040 (mips_wait): Read the PC, FP and SP fields as strings. Use
9041 read_hex_value to parse them and mips_set_register to commit them.
9042 (mips_set_register): New function.
9043 (mips_fetch_registers): Do not cast register value to "unsigned"
9044 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9045 (mips_store_registers): Use a 'T' packet to set registers when
9046 using MON_ROCKHOPPER.
9047 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9048 and expect the total to be printed before the entry address.
9049 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9051 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9053 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9054 Change return value to int. Store value fetched in location
9055 addressed by `val'. Use function's return value as success
9056 or failure indicator. Adjust all callers.
9058 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9060 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9062 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9063 Hui Zhu <teawater@gmail.com>
9065 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9066 tmp_to_stopped_data_address.
9067 (record_open): Reset tmp_to_stopped_by_watchpoint and
9068 tmp_to_stopped_data_address.
9069 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9070 to_stopped_data_address.
9072 2010-03-08 Hui Zhu <teawater@gmail.com>
9074 * i386-tdep.c (i386_process_record): Initialize regnum.
9076 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9078 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9079 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9081 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9083 Memory error when reading wrong core file.
9084 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9085 errors while reading the inferior memory, and return zero if
9086 an exception was raised.
9088 2010-03-07 Michael Snyder <msnyder@vmware.com>
9090 * record.c (record_restore): Rename tmpu8 to rectype.
9092 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9093 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9095 (i386_record_push): Rename local tmpulongest to addr.
9097 (i386_process_record): Rename local tmpulongest to addr.
9099 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9102 Rename local variable tmpu8 to opcode8 and regnum.
9104 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9106 * remote.c (remote_get_ada_task_ptid): New function.
9107 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9109 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9111 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9112 block. Define helper macros to reduce ifdefs in code.
9113 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9114 size. Call unadorned GetModuleFileNameEx rather than
9115 GetModuleFileNameEx*.
9116 (windows_make_so): Use __PMAX to denote maximum buffer size and
9117 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9119 (get_image_name): Use __PMAX to denote maximum buffer size.
9120 (handle_load_dll): Likewise.
9121 (windows_pid_to_exec_file): Likewise.
9122 (windows_create_inferior): Add many accommodations for older Cygwin and
9124 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9125 __USEWIDE conditional.
9126 (bad_GetModuleFileNameExA): Likewise.
9127 (_initialize_loadable): Just use real function names without the dyn_
9128 part since they are defined earlier.
9130 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9131 Tom Tromey <tromey@redhat.com>
9133 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9134 (parse_escape): Likewise.
9135 * python/py-utils.c (unicode_to_target_string): Update.
9136 (unicode_to_target_python_string): Update.
9137 (target_string_to_unicode): Update.
9138 * printcmd.c (printf_command): Update.
9139 * p-exp.y (yylex): Update.
9140 * objc-exp.y (yylex): Update.
9141 * mi/mi-parse.c: Include charset.h.
9142 (mi_parse_escape): New function.
9143 (mi_parse_argv): Use it.
9144 * jv-exp.y (yylex): Update.
9145 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9147 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9148 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9149 * gdbarch.c: Rebuild.
9150 * gdbarch.h: Rebuild.
9151 * defs.h (parse_escape): Update.
9152 * cli/cli-setshow.c: Include arch-utils.h.
9153 (do_setshow_command): Update.
9154 * cli/cli-cmds.c (echo_command): Update.
9155 * charset.h (target_charset, target_wide_charset): Update.
9156 * charset.c: Include arch-utils.h.
9157 (target_charset_name): Default to "auto".
9158 (target_wide_charset_name): Likewise.
9159 (show_target_charset_name): Handle "auto".
9160 (show_target_wide_charset_name): Likewise.
9161 (be_le_arch): New global.
9162 (set_be_le_names): Add 'gdbarch' argument.
9163 (validate): Likewise. Don't call set_be_le_names.
9164 (set_charset_sfunc, set_host_charset_sfunc)
9165 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9167 (target_charset): Add 'gdbarch' argument.
9168 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9169 (auto_target_charset_name): New global.
9170 (default_auto_charset, default_auto_wide_charset): New functions.
9171 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9172 for target charsets. Copy result of nl_langinfo. Use GetACP if
9174 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9175 remove 'byte_order' argument. Update.
9176 (classify_type): Likewise.
9177 (c_emit_char): Update.
9178 (c_printchar): Update.
9179 (c_printstr): Update.
9180 (c_get_string): Update.
9181 (evaluate_subexp_c): Update.
9182 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9184 * python/python.c (gdbpy_target_charset): New function.
9185 (gdbpy_target_wide_charset): Likewise.
9186 (GdbMethods): Update.
9189 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9191 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9192 off high address bits.
9194 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9196 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9197 address as UnsignedLongLong, not LongLong.
9199 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9200 Pedro Alves <pedro@codesourcery.com>
9202 * remote-mips.c (gdbthread.h): Include.
9203 (remote_mips_ptid): Declare.
9204 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9205 (common_open): Set inferior_ptid, add it as an inferior, and
9206 as a thread too. Delete FIXME comment regarding start_remote().
9207 (mips_close): Invoke generic_mourn_inferior().
9208 (mips_kill): Make sure that target_mourn_inferior is invoked.
9209 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9210 it's now invoked from mips_close().
9211 (mips_load): Don't null out inferior_ptid. Don't call
9212 clear_symtab_users().
9213 (mips_thread_alive, mips_pid_to_str): New functions.
9214 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9215 to_thread_alive and to_pid_to_str operations.
9217 2010-03-04 Tom Tromey <tromey@redhat.com>
9219 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9220 in DWARF 3 and later.
9221 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9223 2010-03-04 Keith Seitz <keiths@redhat.com>
9225 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9226 If the filename portion of the linespec was quoted, recheck the
9227 remainder for additional quoting.
9228 (locate_first_half): Skip over completer chars, too.
9230 2010-03-04 Tom Tromey <tromey@redhat.com>
9232 * printcmd.c (printf_command): Pass dummy argument to
9235 2010-03-04 Doug Evans <dje@google.com>
9237 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9240 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9242 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9244 * breakpoint.c (update_watchpoint): Create a sentinel location if
9245 the software watchpoint isn't watching any memory.
9246 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9248 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9250 * utils.c (fputs_maybe_filtered): Check if there's already a top
9251 level interpreter before dereferencing it. If there isn't one,
9252 don't paginate either.
9254 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9256 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9257 the state right when single stepping.
9258 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9259 Get the next PC along with the instruction state.
9260 (thumb_get_next_pc): Remove.
9261 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9263 2010-03-04 Hui Zhu <teawater@gmail.com>
9265 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9267 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9269 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9270 top level interpreter is MI.
9272 2010-03-03 Stan Shebs <stan@codesourcery.com>
9274 * remote.c (remote_download_tracepoint): Iterate over locations.
9275 * tracepoint.c (validate_actionline): Ditto.
9276 (encode_actions): Add location argument.
9277 (trace_dump_command): Check all locations to see if stepping
9280 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9281 Eli Zaretskii <eliz@gnu.org>
9283 * NEWS: Add X86 general purpose registers section.
9285 2010-03-03 Tom Tromey <tromey@redhat.com>
9288 * varobj.c (install_new_value): Handle case where new print_value
9291 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9294 * printcmd.c (printf_command): Print end of format string using
9297 2010-03-02 Tom Tromey <tromey@redhat.com>
9299 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9300 * defs.h (read_command_lines_1): Add missing 'void'.
9301 * cli/cli-script.c (recurse_read_control_structure): Add missing
9303 (read_next_line): Likewise.
9304 (read_command_lines_1): Likewise.
9306 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9308 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9309 store backchain as part of prologue.
9311 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9313 * progspace.c (update_address_spaces): Update inferior address spaces
9316 2010-03-02 Doug Evans <dje@google.com>
9318 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9319 lowpc,highpc args to addrmap_set_empty.
9321 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9323 * amd64-tdep.c (amd64_byte_names): New.
9324 (amd64_word_names): Likewise.
9325 (amd64_dword_names): Likewise.
9326 (amd64_pseudo_register_name): Likewise.
9327 (amd64_pseudo_register_read): Likewise.
9328 (amd64_pseudo_register_write): Likewise.
9329 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9330 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9331 set_gdbarch_pseudo_register_write and
9332 set_tdesc_pseudo_register_name. Don't call
9333 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9335 * i386-tdep.c (i386_num_mmx_regs): Removed.
9336 (i386_num_pseudo_regs): Likewise.
9337 (i386_byte_names): New.
9338 (i386_word_names): Likewise.
9339 (i386_byte_regnum_p): Likewise.
9340 (i386_word_regnum_p): Likewise.
9341 (i386_mmx_regnum_p): Updated.
9342 (i386_pseudo_register_name): Make it global. Handle byte and
9343 word pseudo-registers.
9344 (i386_pseudo_register_read): Likewise.
9345 (i386_pseudo_register_write): Likewise.
9346 (i386_pseudo_register_type): Handle byte, word and dword
9348 (i386_register_reggroup_p): Don't include pseudo
9349 registers, except for MXX, in any register groups. Don't
9350 include pseudo byte, word, dword registers in general_reggroup.
9351 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9352 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9353 pseudo-registers after word pseudo-registers. Call
9354 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9356 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9357 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9359 (i386_byte_regnum_p): New.
9360 (i386_word_regnum_p): Likewise.
9361 (i386_dword_regnum_p): Likewise.
9362 (i386_pseudo_register_name): Likewise.
9363 (i386_pseudo_register_read): Likewise.
9364 (i386_pseudo_register_write): Likewise.
9366 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9368 * target-descriptions.c (tdesc_type): Remove
9369 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9370 (tdesc_predefined_types): Likewise.
9371 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9372 if flag name is empty.
9373 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9375 * features/i386/32bit-core.xml: Define i386_eflags.
9376 * features/i386/64bit-core.xml: Likewise.
9378 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9379 * features/i386/64bit-sse.xml: Likewise.
9381 * features/i386/amd64-linux.c: Regenerated.
9382 * features/i386/amd64.c: Likewise.
9383 * features/i386/i386-linux.c: Likewise.
9384 * features/i386/i386.c: Likewise.
9386 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9388 * gdbtypes.c (append_composite_type_field_raw): New.
9389 (append_composite_type_field_aligned): Use the new function.
9390 * gdbtypes.h (append_composite_type_field_raw): Declare.
9391 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9392 (struct tdesc_type_flag): New type.
9393 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9394 kind. Add size to u.u. Add u.f for flags.
9395 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9396 (tdesc_free_type): Likewise.
9397 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9398 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9399 (tdesc_add_bitfield, tdesc_add_flag): New.
9400 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9401 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9402 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9403 current_type. Add current_type_size and current_type_is_flags.
9404 (tdesc_start_union): Clear the new fields.
9405 (tdesc_start_struct, tdesc_start_flags): New.
9406 (tdesc_start_field): Handle struct fields, including bitfields.
9407 (field_attributes): Make type optional. Add start and end.
9408 (union_children): Rename to struct_union_children.
9409 (union_attributes): Rename to struct_union_attributes. Add optional
9411 (flags_attributes): New.
9412 (feature_children): Add struct and flags.
9413 * features/gdb-target.dtd: Add flags and struct to features.
9414 Make field type optional. Add field start and end.
9416 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9418 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9419 (amd64_linux_read_description): Likewise.
9420 (_initialize_amd64_linux_nat): Set to_read_description to
9421 amd64_linux_read_description.
9423 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9424 (amd64_linux_register_name): Removed.
9425 (amd64_linux_register_type): Likewise.
9426 (amd64_linux_core_read_description): New.
9427 (amd64_linux_init_abi): Set target description to
9428 tdesc_amd64_linux if needed. Support orig_rax in target
9429 description. Don't call set_gdbarch_register_name nor
9430 set_gdbarch_register_type. Call
9431 set_gdbarch_core_read_description.
9432 (_initialize_amd64_linux_tdep): Call
9433 initialize_tdesc_amd64_linux.
9435 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9437 * amd64-tdep.c: Include "features/i386/amd64.c".
9438 (amd64_register_names): Removed.
9439 (amd64_register_name): Likewise.
9440 (amd64_register_type): Likewise.
9441 (amd64_init_abi): Set num_core_regs and register_names. Set
9442 target description to tdesc_amd64 if needed. Don't call
9443 set_gdbarch_register_name nor set_gdbarch_register_type.
9444 (_initialize_amd64_tdep): New.
9446 * i386-linux-nat.c (i386_linux_read_description): New.
9447 (_initialize_i386_linux_nat): Set to_read_description to
9448 i386_linux_read_description.
9450 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9451 (i386_linux_register_name): Removed.
9452 (i386_linux_core_read_description): New.
9453 (i386_linux_read_description): Likewise.
9454 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9455 Set target description to tdesc_i386_linux if needed. Support
9456 orig_eax. Set register_reggroup_p. Call
9457 set_gdbarch_core_read_description.
9458 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9460 * i386-linux-tdep.h (tdesc_i386_linux): New.
9462 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9465 * i386-tdep.c: Include "features/i386/i386.c".
9466 (i386_register_names): Make it const.
9467 (i386_mmx_names): Likewise.
9468 (i386_num_register_names): Removed.
9469 (i386_register_name): Likewise.
9470 (i386_eflags_type): Likewise.
9471 (i386_mxcsr_type): Likewise.
9472 (i386_sse_type): Likewise.
9473 (i386_register_type): Likewise.
9474 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9475 (i386_pseudo_register_name): New.
9476 (i386_pseudo_register_type): Likewise.
9477 (i386_mmx_type): Make it static.
9478 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9479 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9480 call set_gdbarch_register_name nor set_gdbarch_register_type.
9481 Set register_reggroup_p. Set target description to tdesc_i386
9482 if needed. Call set_tdesc_pseudo_register_type,
9483 set_tdesc_pseudo_register_name and tdesc_use_registers.
9484 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9485 initialize_tdesc_x86_64.
9487 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9488 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9489 register_names, tdesc and register_reggroup_p.
9490 (I386_NUM_FREGS): Removed.
9491 (i386_eflags_type): Likewise.
9492 (i386_mxcsr_type): Likewise.
9493 (i386_mmx_type): Likewise.
9494 (i386_sse_type): Likewise.
9495 (i386_register_name): Likewise.
9496 (i386_regnum): Add I386_MXCSR_REGNUM.
9497 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9499 * i387-tdep.h (I387_NUM_REGS): New.
9501 * regformats/i386/i386-linux.dat: Generated.
9502 * regformats/i386/i386.dat: Likewise.
9503 * regformats/i386/amd64-linux.dat: Likewise.
9504 * regformats/i386/amd64.dat: Likewise.
9506 * regformats/reg-i386-linux.dat: Removed.
9507 * regformats/reg-i386.dat: Likewise.
9508 * regformats/reg-x86-64-linux.dat: Likewise.
9509 * regformats/reg-x86-64.dat: Likewise.
9511 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9513 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9514 cygwin_conv_path API rather than the deprecated
9515 cygwin_conv_to_full_posix_path.
9517 (GetModuleFileNameExA): Undefine for Cygwin.
9518 (GetModuleFileNameExW): Define for Cygwin.
9519 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9520 Call GetModuleFileNameExW and convert path to POSIX using
9522 (windows_make_so): Always define p. Drop unused variable m.
9523 Don't use Win32 functions to check file existance, rather use
9524 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9525 Use canonicalize_file_name to get full path.
9526 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9527 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9528 use correct target buffer size in call to WideCharToMultiByte.
9529 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9530 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9531 (windows_create_inferior): Convert all paths and arguments to wchar_t
9532 and use CreateProcessW on Cygwin.
9533 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9534 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9535 (bad_GetModuleFileNameExW): Define for Cygwin.
9536 (_initialize_loadable): Load GetModuleFileNameExW into
9537 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9539 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9542 * python/py-frame.c (frapy_read_var): Add block argument and logic
9543 to cope with user provided blocks.
9545 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9547 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9550 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9552 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9553 (COMMON_OBS): ... to here since it's used unconditionally.
9554 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9557 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9559 * mips-linux-tdep.c: Update struct sigframe comments.
9560 (SIGFRAME_CODE_OFFSET): Delete macro.
9561 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9563 (mips_linux_n32n64_sigframe_init): Same.
9565 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9567 * remote-mips.c (mips_load): Don't use pseudo-register when
9568 invalidating regcache.
9570 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9572 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9574 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9576 * NEWS: Add "New targets" section, and mention ARM Symbian
9579 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9581 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9582 add ADDR_SIZE member.
9583 (allocate_piece_closure): Update.
9584 (copy_pieced_value_closure): Likewise.
9585 (dwarf2_evaluate_loc_desc): Likewise.
9586 (read_pieced_value): Use DWARF address size instead of
9587 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9589 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9590 Tom Tromey <tromey@redhat.com>
9592 * python/py-type.c (typy_lookup_typename): Add in block argument.
9593 If provided restrict lookup to specified blocks.
9594 (gdbpy_lookup_type): Likewise.
9595 (typy_lookup_type): Likewise.
9597 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9602 * arm-symbian-tdep.c: New.
9603 * configure.tgt (arm*-*-symbianelf*): New target.
9604 (*-*-symbianelf*): New OS.
9605 * osabi.c (gdb_osabi_names): Add Symbian.
9606 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9607 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9608 (ALLDEPFILES): Add arm-symbian-tdep.c.
9610 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9612 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9614 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9616 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9618 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9619 Tom Tromey <tromey@redhat.com>
9620 Thiago Jung Bauermann <bauerman@br.ibm.com>
9622 * python/python.c (_initialize_python): Call
9623 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9624 gdbpy_initialize_blocks.
9625 * python/python-internal.h: Declare struct symbol, block and
9626 symtab_and_line. Declare block_object_type and
9628 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9629 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9630 (symbol_to_symbol_object, block_to_block_object)
9631 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9632 (gdbpy_initialize_blocks ): Declare.
9633 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9634 (frapy_select): Add methods.
9635 (frapy_read_var): Add symbol branch.
9636 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9638 (SUBDIR_PYTHON_SRCS): Likewise.
9639 (py-symbol.o): New rule.
9640 (py-symtab.o): Likewise.
9641 (py-block.o): Likewise.
9642 * python/py-symbol.c: New file.
9643 * python/py-symtab.c: Likewise.
9644 * python/py-block.c: Likewise.
9646 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9650 * inferior.h (prepare_for_detach): Declare.
9651 (struct inferior) <detaching>: New field.
9652 * infrun.c (prepare_for_detach): New.
9653 (handle_inferior_event) <random signal>: Don't stop if detaching.
9654 * target.c (target_detach): Call prepare_for_detach.
9656 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9658 Per-process displaced stepping queue.
9660 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9661 (displaced_step_gdbarch, displaced_step_closure,
9662 (displaced_step_original, displaced_step_copy): Move globals to
9664 (struct displaced_step_inferior_state): ... new structure.
9665 (displaced_step_inferior_states): New global.
9666 (get_displaced_stepping_state, add_displaced_stepping_state)
9667 (remove_displaced_stepping_state, infrun_inferior_exit): New
9669 (displaced_step_clear): Add displaced_step_inferior_state
9670 parameter, and adjust to handle it.
9671 (displaced_step_clear_cleanup): Parameter is now a
9672 displaced_step_inferior_state. Adjust.
9673 (displaced_step_prepare): Adjust.
9674 (displaced_step_fixup, displaced_step_fixup)
9675 (infrun_thread_ptid_changed, resume): Adjust.
9676 (init_wait_for_inferior): Don't call displaced_step_clear.
9677 (infrun_thread_stop_requested): Rewrite.
9678 (_initialize_infrun): Install infrun_inferior_exit as
9679 inferior_exit observer.
9681 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9683 * inferior.h (ptid_match): Declare.
9684 * infrun.c (ptid_match): New.
9685 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9686 (handle_notification): Add debug output.
9687 * linux-nat.c (ptid_match): Delete.
9689 2010-02-24 David S. Miller <davem@davemloft.net>
9691 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9692 * syscalls/sparc-linux.xml: New.
9693 * syscalls/sparc64-linux.xml: New.
9694 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9695 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9696 (sparc32_linux_get_syscall_number): New function.
9697 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9698 syscall number fetcher.
9699 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9700 (sparc64_linux_get_syscall_number): New function.
9701 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9702 syscall number fetcher.
9704 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9708 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9709 * inferior.c (add_inferior_silent): Notify inferior_added
9711 (delete_inferior_1): Notify inferior_removed observer.
9712 (exit_inferior_1): Pass inferior, not pid, to observer.
9713 (inferior_appeared): Likewise.
9714 (add_inferior_with_spaces): New.
9715 (add_inferior_command): Use the above.
9716 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9719 * inflow.c (inflow_inferior_exit): Likewise.
9720 * jit.c (jit_inferior_exit_hook): Likewise.
9722 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9724 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9725 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9726 (report_initial_inferior): New.
9727 (mi_inferior_removed): Register the above. Make sure
9728 inferior_added observer is called on the first inferior.
9729 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9730 inferior number, not pid.
9731 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9733 * mi/mi-main.c (current_context): New.
9734 (proceed_thread_callback): Use typed closure.
9735 Proceed everything if pid is 0. Most implementation split into
9736 (proceed_thread): ... this.
9737 (run_one_inferior): New.
9738 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9739 Adjust for multiexec behaviour.
9740 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9741 (mi_cmd_execute): Handle the 'thread-group' option here.
9742 Do some extra checks.
9743 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9745 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9747 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9749 Make -exec-run a proper MI commands.
9751 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9752 * mi/mi-cmds.c (mi_cmds): Adjust.
9753 * mi/mi-main.c (mi_cmd_exec_run): New.
9755 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9756 Stan Shebs <stan@codesourcery.com>
9758 * tracepoint.h (set_traceframe_number)
9759 (cleanup_restore_current_traceframe): Declare.
9760 * tracepoint.c (set_traceframe_number): New.
9761 (struct current_traceframe_cleanup): New.
9762 (do_restore_current_traceframe_cleanup)
9763 (restore_current_traceframe_cleanup_dtor)
9764 (make_cleanup_restore_current_traceframe): New.
9765 * infrun.c: Include tracepoint.h.
9766 (fetch_inferior_event): Switch out and in of tfind mode.
9768 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9770 * breakpoint.c (breakpoint_init_inferior): Also delete
9771 bp_shlib_event breakpoints.
9772 * solib-frv.c (enable_break): Remove call to
9773 remove_solib_event_breakpoints.
9774 * solib-svr4.c (enable_break): Ditto.
9775 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9776 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9777 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9778 * solib-spu.c (spu_enable_break): Ditto.
9780 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9782 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9784 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9786 * varobj.c (varobj_update): Avoid non-constants in initializers.
9788 2010-02-23 Tom Tromey <tromey@redhat.com>
9790 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9791 handle big-endian values.
9792 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9794 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9799 * breakpoint.c (insert_bp_location): If inserting the read
9800 watchpoint failed, fallback to an access watchpoint.
9801 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9802 if the value changed, if not watching the same memory for writes.
9803 (watchpoint_locations_match): Add comment.
9804 (update_global_location_list): Copy the location's watchpoint type.
9805 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9806 handle read watchpoints here.
9807 (i386_insert_watchpoint): Read watchpoints aren't supported.
9808 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9810 * target.h (target_insert_watchpoint): Update description.
9812 2010-02-19 Tom Tromey <tromey@redhat.com>
9814 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9815 * m2-typeprint.c (m2_print_type): Update.
9816 * gdbtypes.c (recursive_dump_type): Update.
9817 (copy_type_recursive): Update.
9818 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9819 (c_type_print_base): Update.
9820 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9822 (struct cplus_struct_type) <ntemplate_args>: Remove.
9823 <struct template_arg>: Remove.
9824 <is_dynamic>: Move earlier.
9825 (TYPE_TEMPLATE_ARGS): Remove.
9826 (TYPE_NTEMPLATE_ARGS): Remove.
9827 (TYPE_TEMPLATE_ARG): Remove.
9829 2010-02-19 Tom Tromey <tromey@redhat.com>
9831 PR c++/8693, PR c++/9496:
9832 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9833 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9834 write_dollar_variable. Don't try to classify NAME tokens.
9835 (token_and_value): New type.
9836 (token_fifo, popping, name_obstack): New globals.
9837 (classify_name): New function.
9838 (classify_inner_name): Likewise.
9840 (VARIABLE): Now has type sval.
9841 (exp : VARIABLE): Call write_dollar_variable.
9842 (qualified_name): Use TYPENAME, not typebase. Add production for
9843 multiple "::" instances.
9844 (variable): Use name_not_typename.
9845 (qualified_type): Remove.
9848 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9850 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9851 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9852 found by bfd_get_section_by_name.
9853 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9855 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9857 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9858 7.0 section" into "Changes in 7.1".
9860 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9862 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9863 * version.in: Bump version to 7.1.50.20100219-cvs.
9865 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9867 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9868 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9870 2010-02-17 Tom Tromey <tromey@redhat.com>
9872 * NEWS: Add Python API Improvements section.
9874 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9876 * NEWS: Correct typo.
9878 2010-02-17 Tom Tromey <tromey@redhat.com>
9880 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9882 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9884 * symfile.c (build_section_addr_info_from_objfile): Include sections
9885 only if they are SEC_ALLOC or SEC_LOAD.
9887 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9890 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9891 of ULONGEST for address size.
9893 2010-02-17 Tom Tromey <tromey@redhat.com>
9895 * NEWS: Add C++ improvements section.
9897 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9899 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9900 PyThreadState_Swap): Avoid "statement with no effect" warning.
9902 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9904 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9905 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9907 2010-02-17 Tristan Gingold <gingold@adacore.com>
9908 Petr Hluzin <petr.hluzin@gmail.com>
9910 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9911 gdb_assert. Fix info->size for SIG prologue.
9913 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9915 * infcmd.c (show_inferior_tty_command): Check for NULL.
9916 Correct output message.
9918 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9920 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9921 FUNCTION contains parentheses. Improve removal of a trailing
9924 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9926 * gcore.c (do_bfd_delete_cleanup): New function.
9927 (gcore_command): Use it. Discard the cleanup after success.
9928 (gcore_copy_callback): Delete dead code.
9930 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9932 * symfile.c (addr_info_make_relative): Always use
9933 find_lowest_section.
9935 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9937 * NEWS: Added entry for namespace fixes.
9939 2010-02-15 Tom Tromey <tromey@redhat.com>
9941 * dwarf2read.c (guess_structure_name): Allocate name on the
9944 2010-02-15 Tom Tromey <tromey@redhat.com>
9946 * c-typeprint.c (c_type_print_base): Reverse order of test.
9948 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9951 initialize it from ELF BFD. Extend the prelink condition by it.
9953 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9955 * defs.h (parse_pid_to_attach): New.
9956 * utils.c (parse_pid_to_attach): New.
9957 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9958 * gnu-nat.c (gnu_attach): Likewise.
9959 * nto-procfs.c (procfs_attach): Likewise.
9960 * procfs.c (procfs_attach): Likewise.
9961 * windows-nat.c (windows_attach): Likewise.
9962 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9963 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9964 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9967 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9969 * MAINTAINERS: Add myself for write after approval privileges.
9971 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9973 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9976 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9978 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9979 only if INFO_VERBOSE.
9981 2010-02-12 Tomas Holmberg <th@virtutech.com>
9983 * mi/mi-main.c: Added the --reverse flag to the following MI
9984 commands: exec-continue, exec-finish, exec-next, exec-step,
9985 exec-next-instruction, exec-step-instruction. This is to
9986 support reverse execution over the MI interface to gdb.
9988 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9990 * tracepoint.c (_initialize_tracepoint): Specify that the address
9991 range of `tfind outsize' is exclusive, and that the address range
9992 of `tfind range' is inclusive, in the commands' help strings.
9994 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9996 Spurious "dll not found" error messages on x64-windows.
9997 * windows-nat.c: Add include of complaints.h.
9998 (handle_unload_dll): Change dll-not-found error into a complaint.
10000 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10002 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10003 bp_tracepoint and bp_fast_tracepoint, not
10004 bp_loc_software_breakpoint.
10005 (update_global_location_list): Tracepoints are never duplicates of
10008 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10010 * breakpoint.c (break_command_really): Change return type to int.
10011 Return false if no breakpoint was created, true otherwise.
10012 (trace_command): Don't set the tracepoint count if no tracepoint
10014 (ftrace_command): Ditto.
10015 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10016 created in the breakpoints table.
10018 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10019 Ulrich Weigand <uweigand@de.ibm.com>
10021 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10023 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10025 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10026 the offset value isn't of integral type.
10028 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10030 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10033 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10035 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10036 non-subscriptable types.
10037 * valarith.c (binop_types_user_defined_p): New, abstracted out
10039 (binop_user_defined_p): ... this.
10040 * value.h (binop_types_user_defined_p): Declare.
10042 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10044 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10045 Merge uploaded TSVs before merging uploaded tracepoints.
10047 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10049 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10051 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10053 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10054 whitespace character after a dot in comment.
10055 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10057 (list_args_or_locals): For the 'all' (that is
10058 -stack-list-variables) case, always output list of tuples.
10059 Output 'arg' field if variable is argument.
10061 2010-02-10 Tom Tromey <tromey@redhat.com>
10063 * parser-defs.h (parser_debug): Declare.
10064 * parse.c (_initialize_parse): Install "debug parser" set/show
10066 (parser_debug): New global.
10067 (show_parserdebug): New function.
10068 * c-exp.y (c_parse): Set yydebug.
10070 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10072 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10073 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10074 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10076 (tdesc_find_type): New.
10077 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10078 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10080 * target-descriptions.h (tdesc_find_type): New.
10082 2010-02-10 Michael Snyder <msnyder@vmware.com>
10084 * gdb-gdb.py: Comment fix.
10086 2010-02-09 Tristan Gingold <gingold@adacore.com>
10088 * machoread.c (macho_symfile_relocate): New function.
10089 (macho_sym_fns): Use macho_symfile_relocate instead of
10090 default_symfile_relocate.
10091 (macho_oso_data): New type.
10092 (current_oso): New variable.
10093 (macho_add_oso_symfile): Do not compute section_addr_info, but
10094 instead set vma of sections.
10095 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10096 Set and clear current_oso.
10098 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10100 Wrong type description for tagged type parameter.
10101 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10102 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10103 reference to a tagged type.
10105 2010-02-09 Tristan Gingold <gingold@adacore.com>
10107 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10108 brothers of the parent.
10110 2010-02-08 Tom Tromey <tromey@redhat.com>
10114 * valops.c (search_struct_field): Make 'name' const.
10115 (search_struct_method): Likewise.
10116 (find_method_list): Make 'method' const.
10117 (value_struct_elt): Make 'name' and 'err' const.
10118 (value_find_oload_method_list): Make 'method' const.
10119 (find_overload_match): Make 'name' const.
10120 * eval.c (evaluate_subexp_standard): New locals function,
10122 <OP_FUNCALL>: Handle OP_SCOPE specially.
10124 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10126 * infrun.c (handle_inferior_event): Do not look up regcache
10127 for exited processes.
10129 2010-02-08 Chris Moller <moller@mollerware.com>
10132 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10133 warn if found, and assume length = 1.
10135 2010-02-08 Chris Moller <cmoller@redhat.com>
10138 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10139 (cp_print_static_field) Fix use of obstacks.
10141 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10143 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10144 resumed LWPs as resumed.
10145 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10146 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10147 of throwing an internal error. If an LWP of a process we're not
10148 waiting for reports a signal, don't force collecting a SIGSTOP,
10149 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10150 go through all LWPs cancelling breakpoints in non-stop mode.
10151 (resume_stopped_resumed_lwps): New.
10152 (linux_nat_wait): Use it.
10154 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10156 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10157 i386/amd64 and i386/amd64-linux.
10158 (i386/i386-expedite): New.
10159 (i386/i386-linux-expedite): Likewise.
10160 (i386/amd64-expedite):Likewise.
10161 (i386/amd64-linux-expedite): Likewise.
10162 ($(outdir)/i386/i386-linux.dat): Likewise.
10163 ($(outdir)/i386/amd64.dat): Likewise.
10164 ($(outdir)/i386/amd64-linux.dat): Likewise.
10166 * features/i386/32bit-core.xml: New.
10167 * features/i386/32bit-linux.xml: Likewise.
10168 * features/i386/32bit-sse.xml: Likewise.
10169 * features/i386/64bit-core.xml: Likewise.
10170 * features/i386/64bit-linux.xml: Likewise.
10171 * features/i386/64bit-sse.xml: Likewise.
10172 * features/i386/i386-linux.xml: Likewise.
10173 * features/i386/i386.xml: Likewise.
10174 * features/i386/amd64-linux.xml: Likewise.
10175 * features/i386/amd64.xml: Likewise.
10176 * features/i386/i386-linux.c: Likewise.
10177 * features/i386/i386.c: Likewise.
10178 * features/i386/amd64-linux.c: Likewise.
10179 * features/i386/amd64.c: Likewise.
10181 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10184 * cp-support.h: Added char* alias element to using_direct data
10186 (cp_add_using): Added char* alias argument.
10187 (cp_add_using_directive): Ditto.
10188 * cp-namespace.c: Updated with the above changes.
10189 (cp_lookup_symbol_imports): Check for aliases.
10190 * dwarf2read.c (read_import_statement): Figure out local alias
10191 for the import and pass it on to cp_add_using.
10192 (read_namespace): Pass alias argument to cp_add_using.
10194 2010-02-05 Hui Zhu <teawater@gmail.com>
10196 * defs.h (gdb_bfd_errmsg): New extern.
10197 * exec.c (exec_file_attach): Change bfd_errmsg to
10199 * utils.c (AMBIGUOUS_MESS1): New macro.
10200 (AMBIGUOUS_MESS2): New macro.
10201 (gdb_bfd_errmsg): New function.
10203 2010-02-04 Doug Evans <dje@google.com>
10205 * solib-svr4.c (enable_break): Add comment.
10207 2010-02-04 Anthony Green <green@moxielogic.com>
10209 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10212 2010-02-04 Tom Tromey <tromey@redhat.com>
10214 * valops.c (search_struct_field): Account for
10215 value_embedded_offset. Fix check for virtual base past the end of
10216 the object. Use value_copy when making a slice of the value.
10218 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10221 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10222 only if gdb_stdout is a tty.
10224 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10226 * target-descriptions.c: Include "osabi.h".
10227 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10230 2010-02-04 Tristan Gingold <gingold@adacore.com>
10232 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10233 (macho_symtab_read): Adjust calls to macho_add_oso.
10234 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10235 (macho_symfile_read): Adjust call to macho_oso_symfile.
10236 (macho_new_init): Move this function after declarations.
10237 (macho_symfile_init): Ditto.
10238 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10239 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10241 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10243 Include MI command in remotelog.
10245 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10247 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10249 * remote.c (remote_state): Remove gdbarch.
10250 (init_remote_state): Don't set gdbarch.
10251 (remote_query_supported): Pass target_gdbarch instead of
10252 rs->gdbarch to gdbarch_qsupported.
10254 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10256 * gdbarch.sh: Add qsupported.
10258 * gdbarch.c: Regenerated.
10259 * gdbarch.h: Likewise.
10261 * remote.c (remote_state): Add gdbarch.
10262 (init_remote_state): Set gdbarch.
10263 (remote_query_supported): Support gdbarch_qsupported.
10265 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10267 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10268 __FreeBSD_kernel_version.
10270 2010-02-03 Tristan Gingold <gingold@adacore.com>
10272 * symfile.h (struct sym_fns): Add sym_relocate field.
10273 (default_symfile_relocate): New prototype.
10274 (symfile_relocate_debug_section): First argument is now an objfile.
10275 * symfile.c (default_symfile_relocate): Rename from
10276 symfile_relocate_debug_section, first argument is now an objfile.
10277 (symfile_relocate_debug_section): New function.
10278 * coffread.c (coff_sym_fns): Set sym_relocate field.
10279 * somread.c (som_sym_fns): Ditto.
10280 * mipsread.c (ecoff_sym_fns): Ditto.
10281 * machoread.c (macho_sym_fns): Ditto.
10282 * elfread.c (elf_sym_fns): Ditto.
10283 * dwarf2read.c (dwarf2_read_section): Ditto.
10284 * xcoffread.c (xcoff_sym_fns): Ditto.
10285 * dbxread.c (aout_sym_fns): Ditto.
10286 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10287 (elfstab_build_psymtabs): Ditto.
10289 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10291 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10293 2010-02-02 Tom Tromey <tromey@redhat.com>
10295 * valops.c (value_cast_structs): Try downcasting using the RTTI
10298 2010-02-02 Tom Tromey <tromey@redhat.com>
10300 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10301 (gnuv2_baseclass_offset): Now static.
10302 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10303 * gnu-v2-abi.h: Remove.
10305 2010-02-02 Tom Tromey <tromey@redhat.com>
10307 * m2-typeprint.c (m2_record_fields): Don't use
10308 TYPE_DECLARED_TYPE.
10309 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10310 (struct main_type) <flag_declared_class>: New field.
10311 (struct cplus_struct_type) <declared_type>: Remove.
10312 <ntemplate_args>: Move earlier.
10313 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10314 (DECLARED_TYPE_TEMPLATE): Remove.
10315 (TYPE_DECLARED_TYPE): Remove.
10316 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10317 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10318 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10319 TYPE_DECLARED_TYPE.
10321 2010-02-02 Tom Tromey <tromey@redhat.com>
10323 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10324 * valops.c (search_struct_field): Compute nbases after calling
10326 (check_field): Call CHECK_TYPEDEF.
10327 * cp-valprint.c (cp_print_value): Pass correct address to
10328 baseclass_offset. Fix check for virtual base past the end of the
10329 object. Don't offset address passed to cp_print_value_fields or
10330 apply_val_pretty_printer.
10331 (cp_print_value_fields): Fix call to val_print.
10332 (cp_print_value_fields_rtti): New function.
10333 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10334 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10336 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10338 * language.h (struct language_defn) <la_val_print>: Document.
10339 * c-lang.h (cp_print_value_fields_rtti): Declare.
10341 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10344 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10345 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10346 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10348 2010-02-01 Michael Matz <matz@suse.de>
10349 Daniel Jacobowitz <dan@codesourcery.com>
10351 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10352 functions use a frame pointer.
10354 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10356 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10357 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10358 * config/djgpp/fnchange.lst: Add translations for
10359 symbol-without-target_section.exp and symbol-without-target_section.c.
10361 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10363 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10364 (remote_breakpoint_for_pc): Correct invalid_p check.
10365 * gdbarch.c: Regenerated.
10367 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10369 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10371 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10372 (extend_buffer_earlier): New function.
10373 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10374 (arm_adjust_breakpoint_address): New function.
10375 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10377 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10379 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10380 (arm_linux_thumb2_le_breakpoint): New constants.
10381 (arm_linux_init_abi): Set thumb2_breakpoint and
10382 thumb2_breakpoint_size.
10383 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10384 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10385 Implement support for single stepping through IT blocks if
10386 a 32-bit Thumb breakpoint instruction is available.
10387 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10388 is available, use it when needed.
10389 (arm_remote_breakpoint_from_pc): New function.
10390 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10391 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10392 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10394 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10396 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10397 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10398 * gdbarch.c, gdbarch.h: Regenerated.
10399 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10400 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10401 gdbarch_remote_breakpoint_from_pc.
10403 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10405 * infrun.c (prepare_to_proceed): Handle other signals which might
10406 match a breakpoint.
10407 (handle_inferior_event): Move the check for unusual breakpoint
10410 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10412 amd64 - function returning record with field straddling 2 registers.
10413 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10414 a record of length <= 16 in which a field straddles the two
10417 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10419 Implement return values on amd64-windows.
10420 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10421 (amd64_windows_return_value): New function.
10422 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10423 amd64_windows_return_value.
10425 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10427 amd64-windows: 32 bytes allocated on stack by caller for integer
10428 parameter registers.
10429 * i386-tdep.h (struct gdbarch_tdep): Add new field
10430 integer_param_regs_saved_in_caller_frame.
10431 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10432 tdep->integer_param_regs_saved_in_caller_frame to 1.
10433 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10434 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10436 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10438 amd64-windows: memory args passed by pointer during function calls.
10439 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10440 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10441 where tdep->memory_args_by_pointer is non-zero.
10442 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10443 tdep->memory_args_by_pointer to 1.
10445 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10447 amd64-windows: Integer parameters in function calls.
10448 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10450 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10451 call_dummy_integer_regs, and classify.
10452 * amd64-tdep.h (amd64_classify): Add declaration.
10453 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10454 (amd64_reg_class): Delete, moved to i386-tdep.h.
10455 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10456 Replace call to amd64_classify by call to tdep->classify.
10457 (amd64_push_arguments): Get the list of registers to use for
10458 passing integer parameters from the gdbarch tdep structure,
10459 rather than using a hardcoded one. Replace calls to amd64_classify
10460 by calls to tdep->classify.
10461 (amd64_push_dummy_call): Get the register number used for
10462 the "hidden" argument from tdep->call_dummy_integer_regs.
10463 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10464 and tdep->call_dummy_integer_regs. Set tdep->classify.
10465 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10466 (amd64_windows_dummy_call_integer_regs): New static global.
10467 (amd64_windows_classify): New function.
10468 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10469 tdep->call_dummy_integer_regs and tdep->classify.
10471 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10473 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10474 for the new regcache. All callers updated.
10475 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10476 (get_thread_arch_regcache): Do not set aspace here.
10477 * regcache.h (regcache_xmalloc): Update declaration.
10479 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10480 regcache_xmalloc updated.
10482 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10484 Another -Wunused-function error in procfs.c (sparc-solaris)
10485 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10486 Only define if SYS_syssgi is defined.
10487 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10488 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10489 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10492 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10494 * windows-nat.c (windows_initialization_done): New variable.
10495 (get_windows_debug_event): Issue error when process dies before
10496 completely initializing.
10497 (do_initial_windows_stuff): Set flag to indicate when we are done with
10498 the initial steps of attaching to the child.
10500 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10502 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10504 2010-01-27 Doug Evans <dje@google.com>
10506 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10508 * breakpoint.c (bpstat_stop_status): Delete useless code.
10510 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10512 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10513 objfile via SYMBOL_SYMTAB.
10515 2010-01-26 Tom Tromey <tromey@redhat.com>
10518 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10519 coerce_array on result.
10521 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10523 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10524 search_parent argument.
10525 (cp_add_using): Initialize 'searched' field.
10526 (reset_directive_searched): New function.
10527 * cp-support.h: Add 'searched' field to using_direct struct.
10528 (cp_lookup_symbol_imports): Ditto.
10529 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10530 Perform recursive search.
10531 Implement non parent search.
10532 * valops.c (value_maybe_namespace_elt): Updated.
10534 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10537 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10538 scopes which contain using directives even if they contain no
10540 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10541 la_lookup_symbol_nonlocal.
10542 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10543 cp_lookup_symbol_namespace.
10544 (cp_lookup_symbol_namespace): Perform an import lookup at every
10546 (cp_lookup_symbol_imports): New function.
10547 (cp_lookup_symbol_in_namespace): New function.
10549 2010-01-25 Tom Tromey <tromey@redhat.com>
10552 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10555 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10557 * configure.ac: Only use host_os part when disabling TUI on osf.
10558 Use test to check variables, prefix strings with x.
10559 * configure: Regenerate.
10561 * solib-osf.c (osf_current_sos): Initialize tail.
10563 2010-01-25 gingold <gingold@adacore.com>
10565 * windows-nat.c (windows_continue): Use %x to print thread id.
10566 (get_windows_debug_event): Ditto.
10568 2010-01-22 Tom Tromey <tromey@redhat.com>
10571 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10572 type and arguments. Use smash_to_methodptr_type.
10573 (read_structure_type): Call quirk_gcc_member_function_pointer
10575 * gdbtypes.h (smash_to_methodptr_type): Declare.
10576 * gdbtypes.c (smash_to_methodptr_type): New function.
10577 (lookup_methodptr_type): Use it.
10579 2010-01-21 Tom Tromey <tromey@redhat.com>
10582 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10583 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10584 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10585 (glibc_skip_solib_resolver): Use
10586 lookup_minimal_symbol_and_objfile.
10588 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10590 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10593 2010-01-20 Tom Tromey <tromey@redhat.com>
10595 PR backtrace/10770:
10596 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10597 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10598 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10599 dwarf_stack_values, not CORE_ADDRs.
10600 (execute_stack_op): Change DW_OP_div and comparison operators to
10601 use signed operands.
10603 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10605 Per-inferior args and tty and environment.
10607 * infcmd.c (inferior_args): Rename to ...
10608 (inferior_args_scratch): ... this.
10609 (inferior_io_terminal): Rename to ...
10610 (inferior_io_terminal_scratch): ... this.
10611 (inferior_argc, inferior_argv): Remove.
10612 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10613 inside current_inferior().
10614 (set_inferior_tty_command, show_inferior_tty_command): New.
10615 (get_inferior_args, set_inferior_args): Store inside
10616 current_inferior().
10617 (notice_args_set): Likewise and rename to...
10618 (set_args_command): ... this.
10619 (set_inferior_args_vector): Likewise.
10620 (notice_args_read): Rename to...
10621 (show_args_command): ...new.
10622 (tty_command): Remove.
10623 (run_command_1): Don't free old args, as they are freed by
10624 set_inferior_arg now.
10625 (run_no_args_command): Likewise.
10626 (inferior_environ): Remove.
10627 (run_command_1): Use environment of the current inferior.
10628 (environment_info, set_environment_command)
10629 (unset_environment_command, path_info, path_command): Likewise.
10630 (_initialize_infcmd): Adjust for function and variable renames.
10631 Do not init inferior_environ.
10632 * inferior.h (set_inferior_arg): Adjust prototype.
10633 (struct inferior): New fields args, argc, argv, terminal, environment.
10634 (inferior_environ): Remove declaration.
10635 * inferior.c (free_inferior): Free new fields.
10636 (add_inferior_silent): Initialize 'environment' field.
10637 * main.c (captured_main): Set arguments only after the initial
10638 inferior has been created. Set set_inferior_io_terminal,
10640 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10642 (_initialize_mi_cmd_env): Adjust for disappearance of global
10644 * solib.c (solib_find): Use environment of the current inferior.
10646 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10648 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10650 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10652 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10654 Get rid of ada-lang.c:function_name_from_pc.
10655 * ada-lang.c: Add "stack.h" #include.
10656 (function_name_from_pc): Delete.
10657 (is_known_support_routine): Replace call to function_name_from_pc
10658 by call to find_frame_funname.
10659 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10661 2010-01-19 Tom Tromey <tromey@redhat.com>
10664 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10667 2010-01-19 Tom Tromey <tromey@redhat.com>
10669 * top.c (stop_sig, float_handler, do_nothing): Remove.
10671 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10673 * breakpoint.c (watchpoint_check): Check the call
10674 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10675 Extend the comment.
10676 * config/djgpp/fnchange.lst: Add translations for
10677 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10678 watchpoint-cond-gone-stripped.c.
10680 2010-01-19 Tom Tromey <tromey@redhat.com>
10683 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10684 into parent scope, and enumerator into grandparent scope.
10686 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10688 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10690 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10692 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10693 i[34567]86-*-solaris2.1[0-9]*.
10694 * configure.tgt: Likewise.
10696 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10698 * NEWS: Document the source command enhancement allowing it
10699 to load Python scripts. Document the "set/show script-extension"
10702 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10704 Add -Wunused-function to compile flags.
10705 * configure.ac: Add -Wunused-function to build_warnings.
10706 * configure: Regenerate.
10708 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10710 "delete" ada-lex.c:input function, not used.
10711 * ada-lex.l: #define YY_NO_INPUT.
10713 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10715 Delete free_named_symtabs and associated cleanup.
10716 * symfile.h (free_named_symtabs): Delete declaration.
10717 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10718 (cashier_psymtab): Comment function out.
10719 Delete declaration.
10720 (free_named_symtabs): Delete.
10721 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10722 * dbxread.c (end_psymtab): Likewise.
10723 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10724 * exec.c (exec_close_1): Ditto.
10725 * xcoffread.c (xcoff_end_psymtab): Likewise.
10727 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10729 * stack.c (print_block_frame_labels): Comment function out.
10731 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10733 Delete unused or undefined functions.
10734 * breakpoint.c (ep_parse_optional_filename): Delete.
10735 * dcache.c (dcache_write_line): Remove declaration.
10736 * infrun.c (build_infrun): Remove declaration.
10737 * tracepoint.c (tracepoint_save_command): Remove declaration.
10738 * linux-nat.c (init_lwp_list): Delete. No longer used.
10739 * event-loop.c (check_async_signal_handlers): Delete declaration.
10740 * infrun.c (init_execution_control_state): Delete.
10741 (proceed): Update comment to avoid mentioning
10742 init_execution_control_state.
10743 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10744 * ada-lang.c (ada_to_static_fixed_value): Delete.
10745 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10746 * cp-namespace.c (cp_copy_usings): Delete.
10747 * xml-syscall.c (xml_number_of_syscalls): Delete.
10748 * progspace.c (find_program_space_by_num): Delete.
10749 * inflow.c (handle_sigio): Delete declaration.
10750 * hppa-tdep.c (hppa_alignof): Delete.
10751 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10752 (mipsnbsd_core_osabi_sniffer): Delete.
10754 2010-01-18 Tom Tromey <tromey@redhat.com>
10757 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10758 (CONST_CAST): New tokens.
10759 (exp): Add new productions.
10760 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10762 (is_cast_operator): New function.
10763 (yylex): Handle cast operators specially.
10764 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10765 UNOP_REINTERPRET_CAST>: New cases.
10766 * expprint.c (print_subexp_standard): Likewise.
10767 (op_name_standard): Likewise.
10768 (dump_subexp_body_standard): Likewise.
10769 * parse.c (operator_length_standard): Likewise.
10770 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10771 UNOP_REINTERPRET_CAST.
10772 * gdbtypes.c (class_types_same_p): New function.
10773 (is_ancestor): Use it.
10774 (is_public_ancestor): New function.
10775 (is_unique_ancestor_worker): Likewise.
10776 (is_unique_ancestor): Likewise.
10777 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10778 (is_unique_ancestor): Declare.
10779 * valops.c (value_reinterpret_cast): New function.
10780 (dynamic_cast_check_1): Likewise.
10781 (dynamic_cast_check_2): Likewise.
10782 (value_dynamic_cast): Likewise.
10783 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10785 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10787 Fix build failure when building without Python support.
10788 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10791 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10793 Use XVS field type instead of doing a parallel lookup.
10794 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10795 if it is a reference type instead of doing a type lookup using
10796 the XVS field name.
10798 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10800 Trust PAD types instead of using PAD___XVS.
10801 * ada-lang.c (trust_pad_over_xvs): New static variable.
10802 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10803 parallel XVS type, follow the XVS type instead of the PAD type.
10804 (unwrap_value): Make sure that there is no parallel XVE type
10805 before returning the value as is.
10806 (set_ada_list, show_ada_list): New static variables.
10807 (set_ada_command, show_ada_command): New functions.
10808 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10809 Add new "set/show ada trust-PAD-over-XVS" setting.
10811 2010-01-18 Tom Tromey <tromey@redhat.com>
10812 Thiago Jung Bauermann <bauerman@br.ibm.com>
10814 Allow "source" to load python scripts.
10815 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10816 * python/python.c (source_python_script): New function.
10817 * python/python.h (source_python_script): Add declaration.
10818 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10819 (script_ext_off, script_ext_soft, script_ext_strict)
10820 (script_ext_enums, script_ext_mode): New static constants.
10821 (show_script_ext_mode, find_and_open_script): New functions.
10822 (source_script): Enhance to handle Python scripts.
10823 (init_cli_cmds): Add set/show script-extension commands.
10825 2010-01-16 Stan Shebs <stan@codesourcery.com>
10827 * tracepoint.h (struct trace_status): Use unsigned long long
10829 * tracepoint.c (trace_status_command): Fix printf directive.
10830 (trace_save_command): Check fwrite returns, fix printf directive.
10831 (trace_filename): New global.
10832 (tfile_open): Set it, check read returns.
10833 (tfile_close): Free trace_filename.
10834 (tfile_get_traceframe_address): Check read returns.
10835 (tfile_trace_find): Ditto.
10836 (tfile_fetch_registers): Ditto.
10837 (tfile_xfer_partial): Ditto.
10838 (tfile_get_trace_state_variable_value): Ditto.
10840 2010-01-15 Stan Shebs <stan@codesourcery.com>
10842 Add trace file support.
10843 * tracepoint.h (enum trace_stop_reason): New enum.
10844 (struct trace_status): New struct.
10845 (parse_trace_status): Declare.
10846 (struct uploaded_tp): Move here from remote.c,
10847 add fields for actions.
10848 (struct uploaded_tsv): New struct.
10849 * tracepoint.c (tfile_ops): New target vector.
10850 (trace_fd): New global.
10851 (tfile_open): New function.
10852 (tfile_close): New function.
10853 (tfile_files_info): New function.
10854 (tfile_get_trace_status): New function.
10855 (tfile_get_traceframe_address): New function.
10856 (tfile_trace_find): New function.
10857 (tfile_fetch_registers): New function.
10858 (tfile_xfer_partial): New function.
10859 (tfile_get_trace_state_variable_value): New function.
10860 (init_tfile_ops): New function.
10861 (_initialize_tracepoint): Call it, add tfile target.
10862 (trace_status): New global.
10863 (current_trace_status): New function.
10864 (trace_running_p): Remove, change all users to get from
10865 current_trace_status()->running.
10866 (get_trace_status): Remove.
10867 (trace_status_command): Call target_get_trace_status directly,
10868 report more detail including tracing stop reasons.
10869 (trace_find_command): Always allow tfind on a file.
10870 (trace_find_pc_command): Ditto.
10871 (trace_find_tracepoint_command): Ditto.
10872 (trace_find_line_command): Ditto.
10873 (trace_find_range_command): Ditto.
10874 (trace_find_outside_command): Ditto.
10875 (trace_frames_offset, cur_offset): Declare as off_t.
10876 (trace_regblock_size): Rename from reg_size, update users.
10877 (parse_trace_status): New function.
10878 (tfile_interp_line): New function.
10879 (disconnect_or_stop_tracing): Ensure current trace
10880 status before asking what to do.
10881 (stop_reason_names): New global.
10882 (trace_save_command): New command.
10883 (get_uploaded_tp): Move here from remote.c.
10884 (find_matching_tracepoint): Ditto.
10885 (merge_uploaded_tracepoints): New function.
10886 (parse_trace_status): Use stop_reason_names.
10887 (_initialize_tracepoint): Define tsave command.
10888 * target.h (target_ops): New fields to_save_trace_data,
10889 to_upload_tracepoints, to_upload_trace_state_variables,
10890 to_get_raw_trace_data, change to_get_trace_status
10891 to take a pointer to a status struct.
10892 (target_save_trace_data): New macro.
10893 (target_upload_tracepoints): New macro.
10894 (target_upload_trace_state_variables): New macro.
10895 (target_get_raw_trace_data): New macro.
10896 * target.c (update_current_target): Add new methods, change
10897 signature of to_get_trace_status.
10898 * remote.c (hex2bin): Make globally visible.
10900 (remote_download_trace_state_variable): Download name also.
10901 (remote_get_trace_status): Update parameter, use
10902 parse_trace_status.
10903 (remote_save_trace_data): New function.
10904 (remote_upload_tracepoints): New function.
10905 (remote_upload_trace_state_variables): New function.
10906 (remote_get_raw_trace_data): New function.
10907 (remote_start_remote): Use them.
10908 (_initialize_remote_ops): Add operations.
10909 * ax-gdb.c: Include breakpoint.h.
10910 * breakpoint.c (create_tracepoint_from_upload): Use
10911 break_command_really, return tracepoint, warn about unimplemented
10913 * NEWS: Mention trace file addition.
10915 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10917 Fix compilation warning on gcc-3.4.
10918 * exec.c (print_section_info): Move the `displacement' variable
10919 initialization to its declaration.
10921 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10923 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10926 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10928 "info tasks" broken by typedefs in ATCB type definitions.
10929 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10930 ada_check_typedef before retrieving the length of the type for
10933 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10935 Do not use name-based lookup for unconstrained packed arrays.
10936 * ada-lang.c (find_parallel_type_by_descriptive_type):
10937 Limit the fallback to name-based lookups to the case where
10938 the type is a constrained packed array.
10940 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10942 Enhance gdb-gdb.py to handle main_type.type_specific.
10943 * gdb-gdb.py: Print the type-specific part of struct main_type.
10945 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10947 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10948 * configure: Regenerate.
10949 * config.in: Regenerate.
10950 * utils.c: Include sys/resource.h.
10951 (dump_core, can_dump_core): New.
10952 (internal_vproblem): Update the comment. Check can_dump_core while
10953 setting dump_core_p. Replace two abort calls by dump_core calls.
10955 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10956 Eli Zaretskii <eliz@gnu.org>
10958 * NEWS: Document the PIE support.
10960 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10962 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10963 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10965 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10967 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10968 Replace exec_entry_point call by bfd_get_start_address.
10970 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10972 Support Valgrind attachments broken by the PIE support.
10973 * auxv.c: Include gdbcore.h.
10974 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10975 parameters ops, object and annex. Remove their assertions.
10976 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10977 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10978 (memory_xfer_auxv): ... here.
10979 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10981 * procfs.c (procfs_xfer_partial): Likewise.
10982 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10983 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10984 (svr4_solib_create_inferior_hook): Conditionalize the
10985 svr4_relocate_main_executable call.
10987 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10989 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10990 target_section. Find SECT in current_target_sections, gdb_assert it.
10991 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10993 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10994 of separate debug info file.
10996 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10998 Support PIEs with no symfile_objfile.
10999 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11000 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11002 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11004 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11006 (svr4_static_exec_displacement): ... a new function.
11007 (svr4_exec_displacement): New function.
11008 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11009 new_offsets using alloca now. Remove variable old_chain and changed.
11010 Call objfile_relocate unconditionally now.
11012 2010-01-14 Doug Evans <dje@google.com>
11014 * gdbtypes.c (arch_flags_type): Fix comment.
11015 * gdbtypes.h (arch_composite_type): Fix comment.
11017 2009-01-14 Tristan Gingold <gingold@adacore.com>
11019 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11020 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11021 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11022 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11023 macho_add_oso_symfile.
11024 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11026 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11028 Tru64: Dead threads are never deleted.
11029 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11030 (dec_thread_count_gdb_threads): Fix counter increment.
11031 (dec_thread_add_gdb_thread): Fix *listp increment.
11032 (resync_thread_list): Fix bug in deletion of dead threads that
11033 caused all threads to be deleted, instead of just the dead ones.
11035 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11039 * python/python-internal.h: Add lazy_string_object_type
11041 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11042 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11043 * python/py-value.c (valpy_lazy_string): New function.
11044 (convert_value_from_python): Add lazy string conversion.
11045 * python/py-prettyprint.c (pretty_print_one_value): Check if
11046 return is also a lazy string.
11047 (print_string_repr): Add lazy string printing branch.
11048 (print_children): Likewise.
11049 * python/py-lazy-string.c: New file. Implement lazy strings.
11050 * python/python.c (_initialize_python): Call
11051 gdbpy_initialize_lazy_string.
11052 * varobj.c (value_get_print_value): Add lazy string printing
11053 branch. Account for encoding.
11054 * c-lang.c (c_printstr): Account for new encoding argument. If
11055 encoding is NULL, find encoding suited for type, otherwise use
11057 * language.h (language_defn): Add encoding argument.
11058 (LA_PRINT_STRING): Likewise.
11059 * language.c (unk_lang_printstr): Update to reflect new encoding
11060 argument to language_defn.
11061 * ada-lang.h (ada_printstr): Likewise.
11062 * c-lang.h (c_printstr): Likewise.
11063 * p-lang.h (pascal_printstr);
11064 * f-lang.c (f_printstr): Likewise.
11065 * m2-lang.c (m2_printstr): Likewise.
11066 * objc-lang.c (objc_printstr): Likewise.
11067 * p-lang.c (pascal_printstr): Likewise.
11068 * scm-lang.c (scm_printstr): Likewise.
11069 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11071 * ada-valprint.c (ada_printstr): Likewise.
11072 * f-valprint.c (f_val_print): Likewise
11073 * m2-valprint.c (m2_val_print): Likewise.
11074 * p-valprint.c (pascal_val_print): Likewise.
11075 * expprint.c (print_subexp_standard): Likewise.
11076 * valprint.c (val_print_string): Likewise.
11077 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11078 (SUBDIR_PYTHON_SRCS): Likewise.
11079 (py-lazy-string.o): New rule.
11081 2010-01-13 Doug Evans <dje@google.com>
11083 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11084 uninitialized" warning from gcc on local `tree'.
11086 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11088 Implement core awareness.
11090 * bcache.c (compare_ints): Remove
11091 (print_percentage): Use compare_positive_ints.
11092 * defs.h (compare_positive_ints): Declare.
11093 * linux-nat.h (struct lin_lwp): New field core.
11094 (linux_nat_core_of_thread_1): Declare.
11095 * linux-nat.c (add_lwp): Init the 'core' field.
11096 (linux_nat_wait_1): Record the core.
11097 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11098 (linux_nat_add_target): Register the above.
11099 * linux-thread-db.c (update_thread_core): New.
11100 (thread_db_find_new_threads): Update core information for
11102 * remote.c (struct private_thread_info): New.
11103 (free_private_thread_info, demand_private_info): New.
11104 (PACKET_qXfer_threads, use_osdata_threads): New.
11105 (struct thread_item, threads_parsing_context
11106 (start_thread, end_thread, thread_attributes)
11107 (thread_children, threads_children, threads_elements): New.
11108 (remote_threads_info): Try qXfer:threads before anything
11110 (remote_protocol_packets): Register qXfer:threads.
11111 (remote_open_1): Init use_osdata_threads.
11112 (struct stop_reply): New field 'core'.
11113 (remote_parse_stop_reply): Parse core number.
11114 (process_stop_reply): Record core number.
11115 (remote_xfer_partial): Handle qXfer:threads.
11116 (remote_core_of_thread): New.
11117 (init_remote_ops): Register remote_core_of_thread.
11118 (_initialize_remote): Register qXfer:read.
11119 * target.c (target_core_of_thread): New
11120 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11121 (struct target_ops): New field to_core_of_threads.
11122 (target_core_of_thread): Declare.
11123 * gdbthread.h (struct thread_info): New field private_dtor.
11124 * thread.c (print_thread_info): Report the core.
11125 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11126 * utils.c (compare_positive_ints): New.
11127 * features/threads.dtd: New.
11128 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11129 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11130 (do_nothing, free_vector_of_osdata_items)
11131 (splay_tree_int_comparator, free_splay_tree): New.
11132 (print_one_inferior_data): Implemented printing of selected
11133 inferiors. Collect and print cores.
11134 (output_cores): New.
11135 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11136 thread groups together with --available.
11138 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11140 * configure: Regenerate (for _STRUCTURED_PROC).
11142 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11144 Delete dead function.
11145 * ada-lang.c (extract_string): Delete. No longer used.
11147 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11149 Fix -Wunused warning in dec-thread.c.
11150 * dec-thread.c (dec_thread_count_gdb_threads)
11151 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11153 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11155 * ada-valprint.c (ada_print_floating): Remove trailing space.
11157 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11159 Add support for DW_AT_GNAT_descriptive_type.
11160 * gdbtypes.h (enum type_specific_kind): New enum.
11161 (struct main_type) [type_specific_field]: New component.
11162 [type_specific]: Add new component "gnat_stuff".
11163 (struct gnat_aux_type): New type.
11164 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11165 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11166 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11167 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11168 (TYPE_SPECIFIC_FIELD): New macros.
11169 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11170 type does not hold any cplus-specific data.
11171 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11172 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11173 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11174 cplus-specific data.
11175 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11176 Set new component TYPE_SPECIFIC_FIELD (type).
11177 (gnat_aux_default): New constant.
11178 (allocate_gnat_aux_type): New function.
11179 (init_type): Add initialization the type-specific stuff for
11180 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11181 (print_gnat_stuff): New function.
11182 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11183 specific data. Adjust code that prints the contents of the
11184 type-specific union using the TYPE_SPECIFIC_FIELD value.
11185 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11186 the type cplus stuff for Ada types.
11187 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11188 Error out if these routines are called with an Ada type.
11189 (read_structure_type, read_array_type, read_subrange_type):
11190 Add call to set_descriptive_type.
11191 (set_die_type): Initialize the gnat-specific data if necessary.
11192 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11194 * ada-lang.c (decode_constrained_packed_array_type): Use
11195 decode_constrained_packed_array_type instead of doing a standard
11196 lookup to locate a parallel type.
11197 (find_parallel_type_by_descriptive_type): New function.
11198 (ada_find_parallel_type_with_name): New function.
11199 (ada_find_parallel_type): Reimplement using
11200 ada_find_parallel_type_with_name.
11201 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11202 to check if type has a cplus stuff.
11203 * linespec.c (total_number_of_methods): Likewise.
11204 * mdebugread.c (new_type): Likewise.
11206 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 * NEWS: Document the 0b binary number prefix parsing.
11210 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11212 * objfiles.c (objfile_relocate1): Change the return type to int.
11213 Describe the new return value. Return non-zero if data changed.
11214 (objfile_relocate): New variable changed. Set it. Call
11215 breakpoint_re_set depending on CHANGED.
11217 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11219 Implement binary numbers parsing.
11220 * c-exp.y (parse_number): New case 'b' and 'B'.
11222 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11223 Tristan Gingold <gingold@adacore.com>
11225 * solib.c (info_sharedlibrary_command): Replace
11226 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11227 objfile_has_symbols.
11229 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11231 * NEWS: Document the improvements made to the mips-irix port.
11233 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11235 Fix the documentation of valprint.c:value_print.
11236 * valprint.c (value_print): Update the function description to
11237 mention that the syntax of the output follows the current_language,
11240 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11242 Fix displacement of separate debug info files.
11243 * objfiles.c (objfile_relocate): Rename to ...
11244 (objfile_relocate1): ... here and make it static. Extend the comment.
11245 (objfile_relocate): New function.
11246 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11247 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11248 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11249 allocated using alloca.
11250 * symfile.c (copy_section_addr_info): Remove.
11251 (build_section_addr_info_from_objfile): Make it global. New variables
11252 addr_bit and mask, use them.
11253 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11254 (copy_section_addr_info): Remove.
11256 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11258 Signal unwinder for mips-irix N32.
11259 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11261 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11262 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11263 (SIGCONTEXT_LO_OFF): New macros.
11264 (mips_irix_n32_tramp_frame_init): New function.
11265 (mips_irix_n32_tramp_frame): New static constant.
11266 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11268 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11270 Breakpoint in shared library does not work on mips-irix.
11271 * procfs.c: #include "observer.h".
11272 (procfs_inferior_created): New function, moving here the code
11273 which unsets the syssgi syscall-exit notifications.
11274 (procfs_create_inferior): Remove the code which unsets the syssgi
11275 syscall-exit notifications. It is too early to do this here.
11276 (_initialize_procfs): Attach the procfs_inferior_created observer.
11278 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11280 Wrong return convention for arrays (mips-irix).
11281 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11282 128 bits or smaller are returned the same way as structs
11283 and unions of the the same size.
11285 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11287 Cannot set the PC on mips-irix.
11288 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11289 register number, no the cooked one.
11291 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11293 Error while loading core file on mips-irix.
11294 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11295 if debugging from a core file.
11297 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11299 GDB hangs when attaching to process on mips-irix.
11300 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11301 attaching to a process.
11303 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11305 Use the correct breakpoint instruction on mips-irix.
11306 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11307 containing the correct breakpoint instruction to use on mips-irix.
11308 Use it when the osabi is GDB_OSABI_IRIX.
11310 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11312 -Wunused warning in procfs.c (mips-irix only).
11313 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11314 throughout instead of using praddset and prdelset respectively.
11316 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11318 GDB crash while stepping into function.
11319 * infrun.c (handle_inferior_event): Refetch the current frame
11320 after handling what.main_action, in case that pointer became
11323 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11325 Fix build failure of solaris-hosted cross debuggers.
11326 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11328 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11330 Fix build failure on sparc-solaris.
11331 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11333 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11335 Move some symfile code into subroutines.
11336 * symfile.h (relative_addr_info_to_section_offsets)
11337 (addr_info_make_relative): New prototypes.
11338 * symfile.c (default_symfile_offsets): Move a part to ...
11339 (relative_addr_info_to_section_offsets): ... this new function.
11340 (default_symfile_offsets): Call it.
11341 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11343 (addr_info_make_relative): ... this new function.
11345 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11347 Add from_tty to solib_create_inferior_hook.
11348 * infcmd.c (post_create_inferior): Move solib_add after
11349 solib_create_inferior_hook. Pass from_tty to
11350 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11351 0 from_tty and comment why.
11352 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11353 * linux-nat.c (linux_child_follow_fork): Likewise.
11354 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11355 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11357 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11358 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11359 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11360 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11361 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11362 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11363 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11364 Pass it to svr4_so_ops.solib_create_inferior_hook.
11365 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11367 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11369 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11371 * solib-target.c (solib_target_solib_create_inferior_hook): New
11372 parameter from_tty.
11373 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11374 it to ops->solib_create_inferior_hook.
11375 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11376 Move solib_add after solib_create_inferior_hook, call it now with
11377 from_tty as 0. New comment there.
11378 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11379 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11382 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11384 Fix multiexec race.
11385 * infrun.c (handle_inferior_event): Use get_thread_regcache
11386 with events ptid, not get_current_regcache.
11388 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11390 GDB crash with empty executable name (MinGW).
11391 * source.c (openp): Add assert that parameter string is not NULL.
11392 if parameter string is an empty string, then return with a failure
11395 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11397 Get rid of support for VAX Floats.
11398 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11399 (ada_vax_float_print_function): Delete.
11400 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11401 (ada_vax_float_print_function): Delete.
11402 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11403 (ada_print_type): Remove support for VAX floats.
11404 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11406 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11408 * stabsread.c (read_args): Handle zero arguments.
11410 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11412 Cannot find in-tree libiconv.a after reconfigure.
11413 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11414 that we can use, then cache the path to this archive.
11415 * configure: Regenerate.
11417 2010-01-07 Stan Shebs <stan@codesourcery.com>
11419 Make tracepoint operations go through target vector.
11420 * target.h (enum trace_find_type): New enum.
11421 (struct target_ops): New fields to_trace_init,
11422 to_download_tracepoint, to_download_trace_state_variable,
11423 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11424 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11425 to_set_disconnected_tracing.
11426 (target_trace_init): New macro.
11427 (target_download_tracepoint): New macro.
11428 (target_download_trace_state_variable): New macro.
11429 (target_trace_start): New macro.
11430 (target_trace_set_readonly_regions): New macro.
11431 (target_get_trace_status): New macro.
11432 (target_trace_stop): New macro.
11433 (target_trace_find): New macro.
11434 (target_get_trace_state_variable_value): New macro.
11435 (target_set_disconnected_tracing): New macro.
11436 * target.c (update_current_target): Inherit and set defaults for
11437 tracepoint operations.
11438 * tracepoint.c (default_collect): Make globally visible.
11439 (target_is_remote): Remove, along with all calls.
11440 (tvariables_info): Call target_get_trace_state_variable_value.
11441 (remote_set_transparent_ranges): Remove.
11442 (trace_start_command): Call target_trace_init,
11443 target_download_tracepoint, etc.
11444 (download_tracepoint): Remove.
11445 (trace_stop_command): Simplify.
11446 (stop_tracing): Call target_trace_stop.
11447 (get_trace_status): Call target_get_trace_status.
11448 (trace_status_command): Add case for targets that cannot trace.
11449 (finish_tfind_command): Change to take numerical arguments, call
11451 (trace_find_command): Update call to finish_tfind_command.
11452 (trace_find_pc_command): Ditto.
11453 (trace_find_tracepoint_command): Ditto.
11454 (trace_find_line_command): Ditto.
11455 (trace_find_range_command): Ditto.
11456 (trace_find_outside_command): Ditto.
11457 (set_disconnected_tracing_value): Call
11458 target_set_disconnected_tracing.
11459 * remote.c: Add protocol encoding bits from tracepoint.c.
11460 (trace_error): Move from tracepoint.c.
11461 (remote_get_noisy_reply): Ditto.
11462 (free_actions_list_cleanup_wrapper): Ditto.
11463 (free_actions_list): Ditto.
11464 (remote_trace_init): New function.
11465 (remote_download_tracepoint): New function.
11466 (remote_download_trace_state_variable): New function.
11467 (remote_trace_set_readonly_regions): New function.
11468 (remote_trace_start): New function.
11469 (remote_get_trace_status): New function.
11470 (remote_trace_stop): New function.
11471 (remote_trace_find): New function.
11472 (remote_download_trace_state_variable): New function.
11473 (remote_set_disconnected_tracing): New function.
11474 (init_remote_ops): Add tracepoint operations.
11476 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11478 2010-01-07 Tristan Gingold <gingold@adacore.com>
11480 * symfile.c (build_section_addr_info_from_objfile): New function.
11481 (symbol_file_add_separate): Don't use offsets from objfile but
11482 built an addr info.
11484 2010-01-06 Stan Shebs <stan@codesourcery.com>
11486 Support disconnected tracing.
11487 * infcmd.c (detach_command): Ask whether to stop tracing.
11488 * cli/cli-cmds.c (quit_command): Ditto.
11489 * breakpoint.h (struct breakpoint): New field number_on_target.
11490 * breakpoint.c (create_tracepoint_from_upload): New function.
11491 (get_tracepoint_by_number_on_target): New function.
11492 * remote.c (struct remote): New field disconnected_tracing.
11493 (remote_disconnected_tracing_feature): New function.
11494 (remote_protocol_features): Add DisconnectedTracing.
11495 (struct uploaded_tp): New struct.
11496 (uploaded_tps): New global.
11497 (get_uploaded_tp): New function.
11498 (find_matching_tracepoint): New function.
11499 (remote_get_tracing_state): New function.
11500 (remote_start_remote): Call it.
11501 * tracepoint.c (disconnected_tracing): New global.
11502 (trace_start_command): Initialize number_on_target.
11503 (stop_tracing): New function, split out from...
11504 (trace_stop_command): Call stop_tracing.
11505 (get_trace_status): New function, split out from...
11506 (trace_status_command): Call get_trace_status, add info on
11507 disconnection behavior.
11508 (disconnect_or_stop_tracing): New function.
11509 (finish_tfind_command): Translate from number on target.
11510 (trace_find_tracepoint_command): Translate to number on target.
11511 (send_disconnected_tracing_value): New function.
11512 (set_disconnected_tracing): New function.
11513 (_initialize_tracepoint): Add disconnected-tracing variable.
11514 * NEWS: Mention disconnected tracing.
11516 2010-01-06 Tristan Gingold <gingold@adacore.com>
11518 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11519 parameter to main_objfile. Iterate on all separate debug objfiles.
11520 * symfile.h (symbol_file_add_separate)
11521 (find_separate_debug_file_by_debuglink): Remove parameter names.
11522 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11523 (reread_symbols): Use free_objfile_separate_debug.
11524 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11526 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11527 (free_objfile_separate_debug): New prototypes.
11528 * objfiles.c (objfile_separate_debug_iterate): New function.
11529 (add_separate_debug_objfile, free_objfile_separate_debug): New
11531 (free_objfile): Use free_objfile_separate_debug. Adjust for
11532 multiple separate debug objfile.
11533 (objfile_has_symbols): Adjust comment. Iterate on all separate
11535 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11537 (lookup_minimal_symbol_text): Ditto.
11538 (lookup_minimal_symbol_by_pc_name): Ditto.
11539 (lookup_minimal_symbol_solib_trampoline): Ditto.
11540 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11543 2010-01-05 Stan Shebs <stan@codesourcery.com>
11545 Add fast tracepoints.
11546 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11547 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11548 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11549 * breakpoint.c (tracepoint_type): New function.
11550 (ALL_TRACEPOINTS): Use it.
11551 (should_be_inserted): Ditto.
11552 (bpstat_check_location): Ditto.
11553 (print_one_breakpoint_location): Ditto.
11554 (user_settable_breakpoint): Ditto.
11555 (set_breakpoint_location_function): Ditto.
11556 (disable_breakpoints_in_shlibs): Ditto.
11557 (delete_trace_command): Ditto.
11558 (print_it_typical): Add bp_fast_tracepoint case.
11559 (bpstat_what): Ditto.
11560 (print_one_breakpoint_location): Ditto.
11561 (allocate_bp_location): Ditto.
11563 (breakpoint_re_set_one): Ditto.
11564 (disable_command): Ditto.
11565 (enable_command): Ditto.
11566 (check_fast_tracepoint_sals): New function.
11567 (break_command_really): Call it.
11568 (ftrace_command): New function.
11569 (_initialize_breakpoint): Add ftrace command.
11570 * gdbarch.sh (fast_tracepoint_valid_at): New.
11571 * gdbarch.h, gdbarch.c: Regenerate.
11572 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11573 (i386_gdbarch_init): Use it.
11574 * remote.c (struct remote_state): New field fast_tracepoints.
11575 (PACKET_FastTracepoints): New packet config type.
11576 (remote_fast_tracepoint_feature): New function.
11577 (remote_protocol_features): Add FastTracepoints.
11578 (remote_supports_fast_tracepoints): New function.
11579 (_initialize_remote): Add FastTracepoints.
11580 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11581 * NEWS: Mention fast tracepoints.
11583 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11585 * gdb-gdb.py: New file.
11587 2010-01-05 Michael Snyder <msnyder@vmware.com>
11589 * infrun.c (handle_inferior_event): Fix typo in comment.
11591 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11593 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11595 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11597 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11599 (s390-linux32-expedite): Define.
11600 (s390-linux64-expedite): Define.
11601 (s390x-linux64-expedite): Define.
11602 * features/s390-acr.xml: New file.
11603 * features/s390-fpr.xml: New file.
11604 * features/s390-core32.xml: New file.
11605 * features/s390-core64.xml: New file.
11606 * features/s390x-core64.xml: New file.
11607 * features/s390-linux32.xml: New file.
11608 * features/s390-linux64.xml: New file.
11609 * features/s390x-linux64.xml: New file.
11610 * features/s390-linux32.c: New generated file.
11611 * features/s390-linux64.c: New generated file.
11612 * features/s390x-linux64.c: New generated file.
11614 * regformats/s390-linux32.dat: New generated file.
11615 * regformats/s390-linux64.dat: New generated file.
11616 * regformats/s390x-linux64.dat: New generated file.
11617 * regformats/reg-s390.dat: Remove.
11618 * regformats/reg-s390x.dat: Remove.
11620 * s390-nat.c: Include "auxv.h" and <elf.h>.
11621 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11622 (s390_target_wordsize): New function.
11623 (s390_auxv_parse): Likewise.
11624 (s390_get_hwcap): Likewise.
11625 (s390_read_description): Likewise.
11626 (_initialize_s390_nat): Install s390_auxv_parse and
11627 s390_read_description.
11629 * s390-tdep.c: Include "features/s390-linux32.c",
11630 "features/s390-linux64.c", and "features/s390x-linux64.c".
11631 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11632 (s390_register_call_saved): New function.
11633 (s390_register_name): Remove.
11634 (s390_register_type): Remove.
11635 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11636 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11637 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11638 (s390_pseudo_register_name): New function.
11639 (s390_pseudo_register_type): New function.
11640 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11641 Handle full GPR pesudos and varying pseudo register numbers.
11642 (s390_pseudo_register_write): Likewise
11643 (s390x_pseudo_register_read): Remove.
11644 (s390x_pseudo_register_write): Likewise.
11645 (s390_register_group): Remove.
11646 (s390_pseudo_register_group): New function.
11647 (s390_regmap_gregset): Add GPR upper halves.
11648 (s390x_regmap_gregset): Likewise.
11649 (s390_regmap_fpregset): Likewise.
11650 (s390_regmap_upper): New global variable.
11651 (s390_upper_regset): New global variable.
11652 (s390_upper_regset_sections): New global variable.
11653 (s390_regset_from_core_section): Handle GPR upper halves.
11654 (s390_core_read_description): New function.
11655 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11656 register information. Handle varying pseudo register numbers.
11657 (s390_backchain_frame_unwind_cache): Likewise.
11658 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11659 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11660 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11661 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11662 Handle varying pseudo register numbers.
11663 (s390_unwind_pc): Handle varying pseudo register numbers.
11664 (s390_dwarf2_prev_register): New function.
11665 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11666 register information. Handle varying pseudo register numbers.
11667 Install s390_dwarf2_prev_register to unwind full GPRs.
11668 (s390_gdbarch_init): Handle target descriptions. Assign varying
11669 pseudo register numbers. Install s390_adjust_frame_regnum.
11670 (_initialize_s390_tdep): Initialize target descriptions.
11672 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11673 (S390_NUM_REGS): Redefine to include upper half registers.
11674 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11675 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11676 (tdesc_s390_linux32): Add declaration.
11677 (tdesc_s390_linux64): Likewise.
11678 (tdesc_s390x_linux64): Likewise.
11680 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11682 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11683 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11684 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11685 (ppc_linux_vmx_regset_sections): Likewise.
11686 (ppc_linux_fp_regset_sections): Likewise.
11688 * corelow.c (get_core_register_section): Constify arguments.
11689 (get_core_registers): Use gdbarch_core_regset_sections instead
11690 of hard-coded platform-specific register section names.
11692 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11694 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11695 a register, assume the least-significant part is used.
11696 (write_pieced_value): Likewise.
11698 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11700 * printcmd.c: Include "arch-utils.h".
11701 (do_one_display): Re-parse expression if current architecture changed.
11703 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11704 Joel Brobecker <brobecker@adacore.com>
11706 * gdbtypes.c (check_typedef): New comment on type length.
11707 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11708 comment on type length.
11709 (value_primitive_field): Keep the original TYPE value, new comment.
11711 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11713 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11714 p_start. Change != comparisons to > and < comparisons.
11716 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11718 * cli/cli-script.c (process_next_line): Check P2 overrun.
11720 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11722 Update the copyright hearder to add year 2010 for most GDB files.
11724 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11726 Fix build failure in inf-ptrace.c.
11727 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11729 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11731 * top.c (print_gdb_version): Update copyright year.
11733 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11735 Fix break *FUN'address thread NUM.
11736 * ada-lex.l (task): Expand rule to also match the thread keyword.
11738 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11740 Fix break *FUN'address task NUM.
11741 * ada-lex.l (task): New rule.
11742 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11743 been built before using it.
11745 For older changes see ChangeLog-2009.
11751 version-control: never