1 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
3 * python/py-value.c (value_object_type) <tp_flags>: Add
6 2010-12-16 Mike Frysinger <vapier@gentoo.org>
8 * NEWS: Mention new sim --map-info flag.
10 2010-12-15 Doug Evans <dje@google.com>
12 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
13 "save gdb-index" command.
15 2010-12-15 Tom Tromey <tromey@redhat.com>
17 * infrun.c (save_infcall_control_state): Handle the
18 exception-resume breakpoint.
19 (restore_infcall_control_state): Likewise.
20 (discard_infcall_control_state): Likewise.
22 2010-12-15 Kevin Buettner <kevinb@redhat.com>
24 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
25 cooked values that are being transferred to 64-bit raw registers.
26 (mips_pseudo_register_read): Revise to preserve symmetry with
27 mips_pseudo_register_write().
29 2010-12-15 Greg Watson <g.watson@computer.org>
31 * f-exp.y (yylex): Check entire token against keywords.
33 2010-12-15 Doug Evans <dje@google.com>
35 Rename "maint set python auto-load" to "set auto-load-scripts".
37 * python/py-auto-load.c (auto_load_scripts): Renamed from
39 (load_auto_scripts_for_objfile): Update.
40 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
41 "set auto-load-scripts".
43 2010-12-14 Kevin Buettner <kevinb@redhat.com>
45 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
46 than unsigned, values in registers.
48 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
50 * valops.c (value_one): Use get_array_bounds to compute the number
51 of array elements instead of dividing the length of the array by the
52 length of the element types.
53 * valarith.c (value_complement, value_neg): Likewise.
55 2010-12-14 Joel Brobecker <brobecker@adacore.com>
57 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
58 and __fp_scr respectively throughout.
59 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
60 Python using GCC on IRIX.
61 * configure: Regenerate.
63 2010-12-13 Kevin Buettner <kevinb@redhat.com>
65 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
66 when attaching, on the names in bkpt_names: _start, __start, and
69 2010-12-12 Stan Shebs <stan@codesourcery.com>
71 * value.c (value_of_internalvar): Add case for trace state
74 2010-12-12 Doug Evans <dje@google.com>
76 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
77 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
78 section. Delete members lines full_names. Rename read_lines to
80 (quick_file_names): New struct.
81 (hash_file_name_entry, eq_file_name_entry): New functions.
82 (delete_file_name_entry, create_quick_file_names_table): New functions.
83 (dwarf2_read_index): Initialize quick_file_names_table.
84 (dw2_get_file_names): Renamed from dw2_require_line_header.
85 Return pointer to quick_file_names entry. All callers updated.
86 (dw2_get_real_path): Renamed from dw2_require_full_path.
87 Replace per_cu arg with pointer to quick_file_names entry.
89 (dw2_free_cached_file_names): New function.
90 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
91 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
92 the OBJF_READNOW case.
93 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
95 2010-12-12 Mark Kettenis <kettenis@gnu.org>
97 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
98 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
100 2010-12-12 Mark Kettenis <kettenis@gnu.org>
102 * sparc-tdep.c: Fix typo in comment.
104 2010-12-10 Doug Evans <dje@google.com>
106 * dwarf2read.c: Whitespace cleanup, plus comment additions.
109 2010-12-10 Tom Tromey <tromey@redhat.com>
111 * NEWS: Document exception-handling change.
113 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
115 * mi/mi-parse.c (mi_parse): Wrong error message.
117 2010-12-09 Doug Evans <dje@google.com>
119 * symfile.h (quick_symbol_functions): Clarify usage of
120 map_symbol_filenames.
122 2010-12-09 Tom Tromey <tromey@redhat.com>
124 * mi/mi-parse.h (mi_parse): Update.
125 * mi/mi-parse.c (mi_parse_cleanup): New function.
126 (mi_parse): Add 'token' argument. Throw exception on error.
127 * mi/mi-main.c (mi_print_exception): New function.
128 (mi_execute_command): Use mi_print_exception. Catch exceptions
131 2010-12-09 Tom Tromey <tromey@redhat.com>
134 * thread.c (clear_thread_inferior_resources): Call
135 delete_longjmp_breakpoint.
136 * infrun.c (handle_inferior_event): Handle exception breakpoints.
137 (handle_inferior_event): Likewise.
138 (insert_exception_resume_breakpoint): New function.
139 (check_exception_resume): Likewise.
140 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
141 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
142 (step_1): Set thread's initiating frame.
143 (until_next_continuation): New function.
144 (until_next_command): Support exception breakpoints.
145 (finish_command_continuation): Delete longjmp breakpoint.
146 (finish_forward): Support exception breakpoints.
147 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
148 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
149 bp_exception_master>: New constants.
150 (struct bpstat_what) <is_longjmp>: New field.
151 (set_longjmp_breakpoint): Update.
152 * breakpoint.c (create_exception_master_breakpoint): New function.
153 (update_breakpoints_after_exec): Handle bp_exception_master. Call
154 create_exception_master_breakpoint.
155 (print_it_typical): Handle bp_exception_master, bp_exception.
156 (bpstat_stop_status): Handle bp_exception_master.
157 (bpstat_what): Handle bp_exception_master, bp_exception,
159 (bptype_string): Likewise.
160 (print_one_breakpoint_location): Likewise.
161 (allocate_bp_location): Likewise.
162 (set_longjmp_breakpoint): Handle exception breakpoints. Change
164 (delete_longjmp_breakpoint): Handle exception breakpoints.
166 (struct until_break_command_continuation_args) <thread_num>: New
168 (until_break_command_continuation): Call
169 delete_longjmp_breakpoint.
170 (until_break_command): Support exception breakpoints.
171 (delete_command): Likewise.
172 (breakpoint_re_set_one): Likewise.
173 (breakpoint_re_set): Likewise.
175 2010-12-08 Doug Evans <dje@google.com>
177 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
179 * gdbtypes.c (check_typedef): Tweak comment.
182 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
183 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
184 (struct addrmap_index_data): New struct.
185 (add_address_entry): Remove arg `pst', new args `start', `end'.
186 (add_address_entry_worker, write_address_map): New functions.
187 (write_psymtabs_to_index): Address table generation moved to
188 write_address_map. Build a table mapping psymtab to CU index
191 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
194 * symfile.h (quick_symbol_functions): Clarify usage of
195 expand_symtabs_with_filename.
196 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
197 comp units, ignore type units.
199 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
201 2010-12-07 Doug Evans <dje@google.com>
203 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
207 * NEWS: Mention -data-directory.
208 * main.c (captured_main): Recognize -data-directory.
210 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
212 * mi/mi-parse.c (mi_parse): Missing else.
214 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
216 * configure.tgt: Accept microblaze*-*-linux* for linux target
217 and microblaze*-*-* for as target.
219 2010-12-02 Keith Seitz <keiths@redhat.com>
221 * linespec.c (find_method): Move name canonicalization outside
223 Be paranoid and use a cleanup.
225 2010-12-01 Doug Evans <dje@google.com>
227 * dwarf2read.c (save_gdb_index_command): Add comment.
229 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
231 * valops.c (value_assign): Returned value is never lazy. If a
232 C++ class type is returned, fix incorrect enclosing type / embedded
233 offset. If internal variable is returned, allocate new internalvar
234 value using value_of_internalvar.
236 * NEWS: Document changes in behavior of "print x = 0" and similar
239 2010-11-29 Doug Evans <dje@google.com>
241 * python/lib/gdb/printing.py (register_pretty_printer): Change
242 printer-name:subprinter-name to printer-name;subprinter-name.
243 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
245 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
247 2010-11-29 Tom Tromey <tromey@redhat.com>
249 * opencl-lang.c (lval_func_check_synthetic_pointer): New
251 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
253 (value_bits_synthetic_pointer): Declare.
254 * value.c (value_bits_synthetic_pointer): New function.
255 * valprint.c (valprint_check_validity): Handle synthetic
257 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
258 * valarith.c (value_ptradd): Use set_value_component_location.
259 * p-valprint.c (pascal_object_print_value_fields): Handle
261 * jv-valprint.c (java_print_value_fields): Handle synthetic
263 * dwarf2read.c (dwarf_stack_op_name): Add
264 DW_OP_GNU_implicit_pointer.
265 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
266 arguments. Handle location lists.
267 (fill_in_loclist_baton): New function.
268 (dwarf2_symbol_mark_computed): Use it.
269 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
270 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
272 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
273 find_location_expression. No longer static. Update all callers.
274 (dwarf_expr_frame_pc): New function.
275 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
277 (struct piece_closure) <per_cu>: New field.
278 (allocate_piece_closure): Add per_cu argument.
279 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
280 (check_pieced_value_bits): Remove validity argument, add check_for
281 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
282 (check_pieced_value_validity, check_pieced_value_invalid):
284 (check_pieced_synthetic_pointer): New function.
285 (get_frame_address_in_block_wrapper): New function.
286 (indirect_pieced_value): New function.
287 (pieced_value_funcs): Update.
288 (invalid_synthetic_pointer): New function.
289 (dwarf2_evaluate_loc_desc_full): Rename from
290 dwarf2_evaluate_loc_desc. Add byte_offset argument.
291 (dwarf2_evaluate_loc_desc): Rewrite.
292 (dwarf2_loc_desc_needs_frame): Set new field on context.
293 (get_ax_pc): New function.
294 (disassemble_dwarf_expression): Handle
295 DW_OP_GNU_implicit_pointer.
296 * dwarf2expr.h (enum dwarf_value_location)
297 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
298 (struct dwarf_expr_context) <get_frame_pc>: New field.
299 (struct dwarf_expr_piece) <v.ptr>: New field.
300 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
301 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
302 * dwarf2-frame.c (no_get_frame_pc): New function.
303 (execute_stack_op): Set new field on context.
304 * cp-valprint.c (cp_print_value_fields): Handle synthetic
307 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
311 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
313 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
315 Fix step_resume_breakpoint unsaved during an infcall.
316 * gdbthread.h (struct thread_control_state): Move here field
317 step_resume_breakpoint ...
318 (struct thread_info): ... from here.
319 * infrun.c (save_infcall_control_state): Reset
320 control.step_resume_breakpoint to NULL.
321 (restore_infcall_control_state, discard_infcall_control_state): Delete
322 control.step_resume_breakpoint.
323 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
326 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
328 Rename and move inferior_thread_state and inferior_status.
329 * gdbthread.h (struct thread_control_state): New struct, move fields
330 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
331 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
332 stop_step and stop_bpstat here from struct thread_info.
333 (struct thread_suspend_state): New struct, move field stop_signal here
334 from struct thread_info.
335 (struct thread_info): Move the fields above from this struct.
336 * inferior.h: Move the inferior_thread_state and inferior_status
337 declarations comment to their definitions at infrun.c.
338 (struct inferior_control_state): New struct, move field stop_soon from
339 struct inferior here.
340 (struct inferior_suspend_state): New empty struct.
341 (struct inferior): New fields control and suspend. Move out field
343 * infrun.c (struct inferior_thread_state): Rename to ...
344 (infcall_suspend_state): ... here. Replace field stop_signal by
345 fields thread_suspend and inferior_suspend.
346 (save_inferior_thread_state): Rename to ...
347 (save_infcall_suspend_state): ... here. New variable inf. Update the
349 (restore_inferior_thread_state): Rename to ...
350 (restore_infcall_suspend_state): ... here. New variable inf. Update
351 the code for new fields.
352 (do_restore_inferior_thread_state_cleanup): Rename to ...
353 (do_restore_infcall_suspend_state_cleanup): ... here.
354 (make_cleanup_restore_inferior_thread_state): Rename to ...
355 (make_cleanup_restore_infcall_suspend_state): ... here.
356 (discard_inferior_thread_state): Rename to ...
357 (discard_infcall_suspend_state): ... here.
358 (get_inferior_thread_state_regcache): Rename to ...
359 (get_infcall_suspend_state_regcache): ... here.
360 (struct inferior_status): Rename to ...
361 (struct infcall_control_state): ... here. Replace fields
362 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
363 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
364 stop_step, stop_bpstat and stop_soon by fields thread_control and
366 (save_inferior_status): Rename to ...
367 (save_infcall_control_state): ... here. Update the code for new
369 (restore_inferior_status): Rename to ...
370 (restore_infcall_control_state): ... here. Update the code for new
372 (do_restore_inferior_status_cleanup): Rename to ...
373 (do_restore_infcall_control_state_cleanup): ... here.
374 (make_cleanup_restore_inferior_status): Rename to ...
375 (make_cleanup_restore_infcall_control_state): ... here.
376 (discard_inferior_status): Rename to ...
377 (discard_infcall_control_state): ... here.
378 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
379 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
380 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
381 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
382 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
383 references to the moved fields and renamed functions.
385 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
387 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
389 (save_inferior_thread_state): Reset tp->stop_signal.
391 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
393 * infcall.c (call_function_by_hand): Remove variable
394 caller_state_cleanup.
396 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
400 * breakpoint.c (is_marker_spec): Check for NULL.
402 2010-11-25 Pedro Alves <pedro@codesourcery.com>
404 * breakpoint.h: No longer include python.h or python-internal.h.
405 (struct breakpoint_object): Forward declare.
406 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
407 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
408 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
410 (gdbpy_breakpoint_created): Remove casts around py_bp_object
413 2010-11-24 Joel Brobecker <brobecker@adacore.com>
415 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
416 only if HAVE_ELF is defined.
418 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
422 (save_inferior_status) <stepping_over_breakpoint>
423 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
425 (struct inferior_status) <step_resume_break_address>: Remove.
427 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
430 * infrun.c (struct inferior_status, save_inferior_status)
431 (restore_inferior_status): Group and reorder the fields, comment their
434 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
438 (struct dict_vector) <iter_match_first, iter_match_next>
439 (iter_match_first_hashed, iter_match_next_hashed)
440 (iter_match_first_linear, iter_match_next_linear)
441 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
442 (iter_match_next_hashed, iter_match_first_linear)
443 (iter_match_next_linear): Use symbol_compare_ftype.
444 * dictionary.h: Include symfile.h.
445 (dict_iter_match_first, dict_iter_match_next): Use
446 symbol_compare_ftype.
447 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
448 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
449 (map_matching_symbols_psymtab): Likewise.
450 * symfile.h (symbol_compare_ftype): New typedef.
451 (struct quick_symbol_functions) <map_matching_symbols): Use
452 symbol_compare_ftype.
454 2010-11-23 Tom Tromey <tromey@redhat.com>
456 * configure: Rebuild.
457 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
459 2010-11-19 Tom Tromey <tromey@redhat.com>
461 * Makefile.in (SUBDIRS): Add doc.
462 * configure: Rebuild.
463 * configure.ac: Don't configure in doc. Create doc/Makefile.
465 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
469 * python/py-inferior.c (find_thread_object): Check if PIDGET
472 010-11-22 Joel Brobecker <brobecker@adacore.com>
474 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
476 2010-11-22 Joel Brobecker <brobecker@adacore.com>
478 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
479 Return the original type if the main type portions match rather
480 than when the type themselves match.
482 2010-11-22 Joel Brobecker <brobecker@adacore.com>
484 * ada-lang.c (ada_template_to_fixed_record_type_1):
485 For dynamic fields, check the field size against the maximum
488 2010-11-22 Joel Brobecker <brobecker@adacore.com>
490 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
492 (mips_irix_n32_stack_tramp_frame): New static global.
493 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
496 2010-11-22 Jerome Guitton <guitton@adacore.com>
498 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
501 2010-11-22 Joel Brobecker <brobecker@adacore.com>
503 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
504 if type1 is a typedef.
506 2010-11-22 Joel Brobecker <brobecker@adacore.com>
508 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
509 "_finalizer" to the list.
511 2010-11-22 Joel Brobecker <brobecker@adacore.com>
513 * symfile.c: Remove all "#if 0"/"#endif" blocks.
515 2010-11-22 Joel Brobecker <brobecker@adacore.com>
517 * symfile.c: Add missing second space after period in various comments.
519 2010-11-22 Joel Brobecker <brobecker@adacore.com>
521 * ada-typeprint.c (print_array_type): Fix formatting in comment.
522 (print_selected_record_field_types): Fix formatting in function
525 2010-11-22 Joel Brobecker <brobecker@adacore.com>
527 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
528 in name of "show ravenscar" prefix command name.
530 2010-11-22 Joel Brobecker <brobecker@adacore.com>
532 * ravenscar-thread.c (show_ravenscar_task_switching_command):
533 Add missing '\n' in output.
535 2010-11-22 Joel Brobecker <brobecker@adacore.com>
537 * ravenscar-thread.c (running_thread_name): Change value.
538 (read_thread_id): Remove advance declaration.
539 (get_running_thread_msymbol): New function.
540 (has_ravenscar_runtime): Use get_running_thread_msymbol to
541 compute msym_running_thread.
542 (get_running_thread_id): Renames read_thread_id. Slight modifications
543 to not take any argument anymore, using get_running_thread_msymbol
544 to determine which symbol to use instead.
545 (ravenscar_running_thread): Use get_running_thread_id instead of
548 2010-11-22 Joel Brobecker <brobecker@adacore.com>
550 * ravenscar-sparc-thread.c (supply_register_at_address):
551 Fix passing of buf in call to regcache_raw_supply.
553 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
557 2010-11-22 Tom Tromey <tromey@redhat.com>
559 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
561 2010-11-19 Keith Seitz <keiths@redhat.com>
563 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
564 Remove extraneous '/' after $(DESTDIR).
565 (PYTHON_INSTALL_DIR): Likewise.
567 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
569 Fix stale memory references.
570 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
573 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
574 Tom Tromey <tromey@redhat.com>
576 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
577 (.PHONY): Remove for .y outputs.
579 2010-11-19 Will Drewry <wad@google.com>
580 Tavis Ormandy <taviso@google.com>
581 Jan Kratochvil <jan.kratochvil@redhat.com>
583 * dwarf2read.c (decode_locdesc): Enforce location description stack
586 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
588 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
589 instruction is found.
591 2010-11-17 Tom Tromey <tromey@redhat.com>
593 * value.c (value_entirely_optimized_out): Check the
594 'check_any_valid' field.
596 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
598 * ada-lang.c (modify_general_field): Remove.
599 (make_array_descriptor): Replace all modify_general_field calls by
601 * value.c (modify_field): Update comment. New variable bytesize.
602 Normalize BITPOS. Initialize BYTESIZE, use it.
604 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
606 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
607 elements after xfree.
609 2010-11-16 Tom Tromey <tromey@redhat.com>
611 * gdb-add-index.sh: Really remove.
613 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
616 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
617 (init_one_comp_unit): ... this one.
618 (prepare_one_comp_unit): New prototype.
619 (dw2_require_line_header, process_psymtab_comp_unit): Use
621 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
622 (load_partial_comp_unit): Remove variable attr. Use
623 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
624 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
625 prepare_one_comp_unit.
626 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
627 Use prepare_one_comp_unit.
628 (alloc_one_comp_unit): Rename to ...
629 (init_one_comp_unit): ... here and remove there calloc, new parameter
631 (prepare_one_comp_unit): New function.
633 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
635 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
636 possible used of uninitialized variable.
638 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
640 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
641 (rs6000_gdbarch_init): Call it.
643 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
645 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
646 instructions if debugging an E500 binary.
648 2010-11-12 Tom Tromey <tromey@redhat.com>
650 * varobj.c (value_get_print_value): Rearrange. Pass stream to
651 apply_varobj_pretty_printer.
652 * c-lang.c: Include exceptions.h.
653 (c_get_string): Throw MEMORY_ERROR when appropriate.
654 * python/py-prettyprint.c (enum string_repr_result): New.
655 (print_stack_unless_memory_error): New function.
656 (print_string_repr): Change return type. Use
657 print_stack_unless_memory_error.
658 (print_children): Use print_stack_unless_memory_error.
659 (apply_val_pretty_printer): Update. Don't print children if
660 string representation threw an exception.
661 (apply_varobj_pretty_printer): Add 'stream' argument. Use
662 print_stack_unless_memory_error.
663 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
665 (_initialize_python): Initialize them.
666 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
667 gdbpy_convert_exception.
668 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
669 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
670 (gdbpy_convert_exception): Declare.
671 (apply_varobj_pretty_printer): Update.
672 * python/py-utils.c (gdbpy_convert_exception): New function.
674 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
676 * mi/mi-main.c (mi_cmd_target_detach): Accept new
677 thread-group id format.
679 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
683 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
685 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
687 (BPPY_SET_REQUIRE_VALID): Ditto.
688 (bpnum_is_valid): Delete function.
689 (bppy_get_visibility): New function.
690 (bppy_new): Parse for, and validate internal keyword. Pass
691 internal keyword to breakpoint or watchpoint functions.
692 (build_bp_list): New function.
693 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
694 iterate_over_breakpoints.
695 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
697 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
698 to internal breakpoint chain.
700 * breakpoint.c (set_breakpoint_number): New function.
701 (breakpoint_1): Check if breakpoint number is more than zero.
702 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
703 (create_breakpoint_sal): Take a new parameter called internal.
704 Call set_breakpoint_number with internal parameter. Do not
705 mention internal breakpoints. All callers updated.
706 (create_breakpoint): Ditto.
707 (create_breakpoints_sal): Ditto.
708 (watch_command_1): Ditto.
709 (watch_command_wrapper): Take a new parameter called internal.
711 (rwatch_command_wrapper): Ditto.
712 (awatch_command_wrapper): Ditto.
713 (save_breakpoints): Update breakpoint save condition check.
714 (iterate_over_breakpoints): New function.
715 * breakpoint.h: Add conditional python includes. Add py_bp_object
716 and comment to struct breakpoint. Update all callers.
717 * defs.h: Add PyObject definition for GDB builds without Python.
719 2010-11-10 Doug Evans <dje@google.com>
721 * python/lib/gdb/command/pretty_printers.py
722 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
724 * value.c (set_value_enclosing_type): Renamed from
725 value_change_enclosing_type. All callers updated.
726 * value.h (set_value_enclosing_type): Update.
727 * valops.c (value_full_object): Always return a copy if we need to
728 make changes to the input value.
730 2010-11-09 Pedro Alves <pedro@codesourcery.com>
732 * breakpoint.c (watch_command_1): Get a pointer of the lazy
733 version of the expression's value, even if reading the value from
734 memory fails. When creating a -location watchpoint, get the
735 value's address from the lazy value pointer.
737 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
739 * infrun.c (restore_inferior_thread_state): Use
740 discard_inferior_thread_state to free the data.
741 (discard_inferior_thread_state): xfree also siginfo_data.
743 2010-11-05 Doug Evans <dje@google.com>
745 Make gdb.parameter("directories") work.
746 New command "set directories".
747 * NEWS: Document them.
748 * source.c (set_directories_command): New function.
749 (show_directories_1): Renamed from show_directories.
751 (show_directories_command): New function.
752 (_initialize_source): Install "directories" as a set/show
753 variable instead of just a show command.
755 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
757 * NEWS: Mention OpenCL C language support.
758 * Makefile.in (SFILES): Add opencl-lang.c.
759 (COMMON_OBS): Add opencl-lang.o.
760 * opencl-lang.c: New File
761 * defs.h (enum language): Add language_opencl.
762 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
763 IBM XL C OpenCL compiler.
764 * c-lang.h: Include "parser-defs.h".
765 (evaluate_subexp_c): Declare.
766 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
767 (c_op_print_tab): Add declaration.
768 * eval.c (binop_promote): Handle language_opencl.
769 * c-exp.y: Lookup the primitive types instead of referring to the
772 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
774 Fix configure --enable-plugins --without-python.
775 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
776 * configure: Regenerate.
778 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * solib.c (solib_read_symbols): Call exception_fprintf even without
781 FROM_TTY. Print also so->so_name.
783 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
785 * gdbtypes.h (struct rank): Created subrank.
786 * gdbtypes.c: Initialized subrank for all
788 (distance_to_ancestor): New function.
789 (is_ancestor): Use distance_to_ancestor.
790 (is_public_ancestor): Ditto.
791 (sum_ranks): Handle subrank.
792 (compare_ranks): Ditto.
793 (rank_one_type): Subrank base conversions.
795 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
797 * gdbtypes.h: Create struct rank.
798 Convert all 'BADNESS' macros to const struct rank declarations.
799 (sum_ranks): New function.
800 (compare_ranks): New function.
801 * valops.c (find_oload_champ): Updated.
802 (classify_oload_match): Use compare_ranks.
804 (compare_parameters): Use compare_ranks.
805 * gdbtypes.c: Initialize 'BADNESS' constants.
806 (sum_ranks): New function.
807 (compare_ranks): New function.
808 (compare_badness): Use compare_ranks.
809 (rank_function): Use global constants instead of literals.
810 (rank_one_type): Ditto.
814 2010-11-04 Doug Evans <dje@google.com>
816 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
817 (find_pretty_printer): Fix comments.
819 2010-11-04 Hui Zhu <teawater@gmail.com>
821 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
823 2010-11-03 Joel Brobecker <brobecker@adacore.com>
825 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
826 and `len' declaration and computation inside block where they
829 2010-11-03 Joel Brobecker <brobecker@adacore.com>
831 * valprint.c (val_print_array_elements): Put back handling of
834 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
836 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
837 DIE and set the length of the type.
838 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
839 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
840 return 0 if the corresponding bounds of the type are undefined.
841 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
842 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
843 (val_print_array_elements): Use get_array_bounds to compute the number
844 of array elements instead of dividing the length of the array by the
845 length of the element types.
846 * valarith.c (vector_binop): Likewise.
847 * valops.c (value_cast): Likewise.
848 * c-valprint.c (c_val_print): Likewise.
849 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
851 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
853 * valarith.c (value_pos, value_neg, value_complement): Handle
855 * valops.c (value_one): Likewise.
857 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
859 * value.h (value_non_lval): Declare.
860 * value.c (value_non_lval): New function.
861 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
862 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
865 2010-11-02 Doug Evans <dje@google.com>
867 New python module gdb.printing, and new commands info pretty-printer,
868 enable pretty-printer, disable pretty-printer.
869 * NEWS: Mention them.
870 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
871 gdb/command/__init__.py, gdb/command/pretty_printers.py.
872 * python/lib/gdb/__init__.py: Install pretty-printer commands.
873 * python/lib/gdb/printing.py: New file.
874 * python/lib/gdb/command/__init__.py: New file.
875 * python/lib/gdb/command/pretty_printers.py: New file.
877 2010-11-02 Tom Tromey <tromey@redhat.com>
879 * NEWS: Mention Guile removal.
880 * defs.h (enum language) <language_scm>: Remove.
881 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
883 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
884 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
885 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
888 2010-11-02 Doug Evans <dje@google.com>
890 * top.c: #include "python/python.h".
891 (gdb_init): Add a comment regarding initialize_all_files.
892 Call finish_python_initialization at the end.
893 * python/python.h (finish_python_initialization): Declare.
894 * python/python.c (finish_python_initialization): New function.
895 (_initialize_python): Move python-implemented initialization there
897 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
899 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
902 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
903 Pedro Alves <pedro@codesourcery.com>
904 * gdbthread.h (currently_stepping): New declaration.
905 * infrun.c (currently_stepping): Remove the forward declaration.
906 (currently_stepping): Make it global.
907 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
908 variables tp and step, initialized them. Pass STEP to to_resume.
909 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
910 * remote.c (currently_stepping_callback): New.
911 (remote_vcont_resume)
912 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
913 New variable tp. Call currently_stepping_callback and step such
916 2010-11-01 Hui Zhu <teawater@gmail.com>
918 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
920 2010-10-28 Hui Zhu <teawater@gmail.com>
922 * tracepoint.c (trace_save): Change utp->actions to
925 2010-10-26 Joel Brobecker <brobecker@adacore.com>
927 * (_FILE_OFFSET_BITS): Fix typo in comment.
929 2010-10-26 Joel Brobecker <brobecker@adacore.com>
931 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
932 (PyEval_InitThreads): Remove duplicate. Define as nothing.
933 (PyEval_ReleaseLock): Define as nothing.
935 2010-10-26 Joel Brobecker <brobecker@adacore.com>
937 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
938 by call to FILENAME_CMP.
940 2010-10-26 Joel Brobecker <brobecker@adacore.com>
942 * dictionary.c (dict_hash): Move assignment out of if condition.
944 2010-10-22 Jie Zhang <jie@codesourcery.com>
946 * Makefile.in (install): Remove dependency of install-only and
947 recursively invoke make for install-only.
948 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
949 (install): Pass FLAGS_TO_PASS when recursively make install-only.
951 2010-10-20 Hui Zhu <teawater@gmail.com>
953 * tracepoint.c (tfile_get_traceframe_address): Call
954 extract_signed_integer.
955 (tfile_trace_find): Call extract_signed_integer and
956 extract_unsigned_integer. Change data_size to unsigned int.
957 (tfile_fetch_registers): Call extract_unsigned_integer.
958 (tfile_xfer_partial): Ditto.
959 (tfile_get_trace_state_variable_value): Call
960 extract_signed_integer and extract_unsigned_integer.
962 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
964 * remote.c (remote_get_threadlist): If we got empty
965 response, bail out immediately, and don't emit any
968 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
970 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
971 for "mov pc, REG" as well.
972 (thumb_instruction_changes_pc): Likewise.
974 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
977 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
978 * eval.c (evaluate_subexp_standard): Check for overload of
980 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
981 (value_x_unop): Ditto.
982 * valops.c: Include "exceptions.h".
983 (find_overload_match): Throw NOT_FOUND_ERROR.
984 (value_struct_elt): Ditto.
986 2010-10-19 Tom Tromey <tromey@redhat.com>
988 * python/py-cmd.c (cmdpy_function): Unreference exception state.
990 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
992 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
993 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
995 Make all other conversions illegal.
997 2010-10-18 Doug Evans <dje@google.com>
999 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1000 assumptions of when this case happens. Print "<unnamed typedef>".
1002 2010-10-18 Tom Tromey <tromey@redhat.com>
1004 * valprint.c (val_print_string): Pass 'encoding' to
1007 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 Fix the `stopped language detection' testcase for gcc-4.5.
1010 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1011 * symfile.c (set_initial_language): Move variable filename to a more
1012 inner block. Prefer LANGUAGE_OF_MAIN.
1013 * symtab.c (language_of_main): New variable.
1014 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1015 * symtab.h (language_of_main): New declaration.
1017 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 Pedro Alves <pedro@codesourcery.com>
1020 * gdbthread.h (currently_stepping): New declaration.
1021 * infrun.c (currently_stepping): Remove the forward declaration.
1022 (currently_stepping): Make it global.
1023 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1024 variables tp and step, initialized them. Pass STEP to to_resume.
1025 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1026 * remote.c (currently_stepping_callback): New.
1027 (remote_vcont_resume)
1028 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1029 New variable tp. Call currently_stepping_callback and step such
1032 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * infrun.c (follow_exec): Replace symbol_file_add_main by
1035 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1037 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1039 * objfiles.c (free_all_objfiles): Likewise.
1040 * remote-m32r-sdi.c (m32r_load): Likewise.
1041 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1042 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1043 clear_symtab_users with ADD_FLAGS.
1044 (reread_symbols): Use parameter 0 for clear_symtab_users.
1045 (clear_symtab_users): New parameter add_flags. Do not call
1046 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1047 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1048 * symtab.h (clear_symtab_users): New parameter add_flags.
1050 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1052 Fix GCC false warning.
1053 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1055 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1057 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1058 display of type of method arguments.
1060 2010-10-15 Tom Tromey <tromey@redhat.com>
1063 * varobj.c (value_get_print_value): Use val_print_string to print
1065 * python/py-prettyprint.c (print_string_repr): Use
1066 val_print_string to print lazy strings. Fix cleanup logic.
1067 (print_children): Likewise.
1068 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1069 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1070 Change return type to 'void', add 'addr' argument.
1071 * value.h (val_print_string): Update.
1072 * valprint.c (val_print_string): Add 'encoding' argument.
1073 * printcmd.c (print_formatted): Update.
1074 * p-valprint.c (pascal_val_print): Update.
1075 * m2-valprint.c (print_unpacked_pointer): Update.
1076 (m2_print_array_contents): Likewise.
1077 * jv-valprint.c (java_value_print): Update.
1078 * f-valprint.c (f_val_print): Update.
1079 * c-valprint.c (c_val_print): Update.
1080 * auxv.c (fprint_target_auxv): Update.
1082 2010-10-15 Doug Evans <dje@google.com>
1083 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 * gdbtypes.c (check_typedef): Clean up function comment.
1087 Keep track of instance flags as we strip typedefs and create a new
1088 type to preserve them if necessary.
1089 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1091 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1093 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1095 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1097 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1098 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1100 (types_equal): ...here. And changed it as follows:
1101 Outside of typedefs type must be of the same TYPE_CODE.
1102 When compairing two pointers or references they are equal if their
1104 Correct pointer conversions.
1106 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1108 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1109 having fields without names.
1111 2010-10-13 Tom Tromey <tromey@redhat.com>
1113 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1115 2010-10-13 Doug Evans <dje@google.com>
1117 New python module gdb.types.
1118 * NEWS: Document it.
1119 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1120 * python/lib/gdb/types.py: New file.
1122 * c-typeprint.c: Whitespace cleanup.
1123 (cp_type_print_method_args): Remove unnecessary forward decl.
1124 (cp_type_print_derivation_info): Ditto.
1125 (c_type_print_varspec_prefix): Mark as static at definition.
1126 (c_type_print_modifier): Fix arg descriptions.
1128 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1130 * python/py-breakpoint.c (bppy_set_condition): New comment.
1131 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1132 failed PyUnicode_Decode.
1133 (cmdpy_completer): Skip element for failed
1134 python_string_to_host_string.
1135 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1136 * python/py-frame.c (frapy_read_var): Extend the function comment.
1137 * python/py-function.c (fnpy_init): Return -1 on failed
1138 python_string_to_host_string.
1139 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1140 the function comment.
1141 (infpy_search_memory): Extend the function comment. Remove the
1142 PyErr_SetString call on already set error state.
1143 * python/py-param.c (set_parameter_value): Extend the function
1144 comment. Return -1 on failed python_string_to_host_string, twice.
1145 (set_attr): Extend the function comment.
1146 (compute_enum_values): Extend the function comment. New variable
1147 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1148 failed python_string_to_host_string.
1149 (get_doc_string): Call gdbpy_print_stack on failed
1150 python_string_to_host_string.
1151 (parmpy_init): Extend the function comment.
1152 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1153 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1154 failed python_string_to_host_string.
1155 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1156 (valpy_binop, valpy_richcompare): Extend the function comment.
1158 (struct python_env) <error_type, error_value, error_traceback>: New
1160 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1161 (ensure_python_env): Call PyErr_Fetch.
1162 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1163 failed convert_value_from_python.
1164 (value_get_print_value): Call gdbpy_print_stack on failed
1165 python_string_to_target_python_string.
1167 2010-10-12 Tom Tromey <tromey@redhat.com>
1169 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1171 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1173 * gdbtypes.c (do_is_ancestor): New function.
1174 (is_ancestor): Use do_is_ancestor.
1175 (is_public_ancestor): Use do_is_ancestor.
1177 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1179 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1181 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1183 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1185 2010-10-11 Doug Evans <dje@google.com>
1187 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1188 the address space id too.
1190 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1192 Fix attaching to re-prelinked executables on ppc64.
1193 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1194 initialize it, try to adjust FILESZ field by it.
1196 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1198 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1199 messages if info_verbose.
1201 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1203 * valops.c (value_cast): Handle vector types.
1204 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1206 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1208 * arm-tdep.c (thumb_expand_immediate): New function.
1209 (thumb_instruction_changes_pc): Likewise.
1210 (thumb2_instruction_changes_pc): Likewise.
1211 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1212 prologue parsing. Improved support for optimized code.
1213 (thumb_scan_prologue): Do not reply on line-number information,
1214 use same heuristics as arm_scan_prologue insead.
1215 (skip_prologue_function): Accept functions
1216 "__tls_get_addr" and "__aeabi_read_tp".
1218 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1219 Daniel Jacobowitz <dan@codesourcery.com>
1221 * arm-tdep.c (thumb_in_function_epilogue_p)
1222 (arm_in_function_epilogue_p): New.
1223 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1224 gdbarch_in_function_epilogue_p callback.
1226 2010-10-07 Doug Evans <dje@google.com>
1228 * cc-with-index.sh (output_file): Default to a.out.
1230 * dwarf2read.c (mapped_index): Rename member index_table to
1231 symbol_table and index_table_slots to symbol_table_slots.
1233 (create_symbol_hash_table): Renamed from create_index_table.
1234 All callers updated.
1235 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1236 (write_hash_table): Rename local index_table to symbol_hash_table.
1238 * addrmap.h (addrmap_foreach_fn): New typedef.
1239 (addrmap_foreach): Declare.
1240 * addrmap.c (struct addrmap_funcs): New member foreach.
1241 (addrmap_foreach): New function.
1242 (addrmap_fixed_foreach): New function.
1243 (addrmap_fixed_funcs): Update.
1244 (struct mutable_foreach_data): New struct.
1245 (addrmap_mutable_foreach_worker): New function.
1246 (addrmap_mutable_foreach): New function.
1247 (addrmap_mutable_funcs): Update.
1249 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1251 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1254 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1256 * ada-lang.c (full_match): Declare.
1257 (ada_match_name): Rename to match_name (we should avoid prefixing static
1258 symbols with "ada_").
1259 (match_name): New name for ada_match_name.
1260 (struct ada_psym_data): Remove and replace with...
1261 (struct match_data): User data for map_matching_symbols.
1262 (ada_add_psyms): Remove.
1263 (aux_add_nonlocal_symbols): New function, used as callback for
1264 map_matching_symbols.
1265 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1267 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1268 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1269 Rework to use map_matching_symbols instead of map_ada_symtabs.
1270 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1271 * psymtab.c: Include dependency on dictionary.h.
1272 (match_partial_symbol): New function.
1273 (ada_lookup_partial_symbol): Remove.
1274 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1275 (map_matching_symbols_psymtab): New function.
1276 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1277 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1279 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1281 * ada-lang.c (ada_match_name): Use new API for wild_match.
1282 (wild_match): Change API to be consistent with that of strcmp_iw;
1283 return 0 for a match, and switch operand order.
1284 (full_match): New function.
1285 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1286 matching to allow use of hashing.
1287 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1288 iter_name_next ot iter_match_first, iter_match_next.
1289 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1290 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1291 (iter_name_first_linear): Replace with iter_match_first_linear.
1292 (iter_name_next_linear): Replace with iter_match_next_linear.
1293 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1294 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1295 (dict_iter_match_first): New function.
1296 (dict_iter_match_next): New function.
1297 (dict_hash): New function.
1298 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1299 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1301 2010-10-06 Doug Evans <dje@google.com>
1303 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1305 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1307 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1309 2010-10-06 Doug Evans <dje@google.com>
1311 * Makefile.in (REQUIRED_SUBDIRS): New var.
1312 (subdir_do): Verify required subdir Makefiles exist.
1314 Create subdir data-directory.
1315 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1316 data-directory/Makefile.in.
1317 (SUBDIRS): Add data-directory.
1318 (all): Remove xml-syscall-copy dependency.
1319 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1321 (xml-syscall-install): Moved to data-directory/Makefile.in as
1323 (install-only): Remove xml-syscall-install dependency.
1324 (all-data-directory): New rule.
1325 (data-directory/Makefile): New rule.
1326 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1327 * configure: Regenerate.
1328 * data-directory/Makefile.in: New file.
1329 * python/lib/gdb/__init__.py: New file.
1331 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1333 Fix ARI warnings in advance_wild_match.
1334 * ada-lang.c (advance_wild_match): Delete local variable t2.
1335 Adjust code accordingly. Minor reformatting.
1337 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1339 * gdbtypes.h (struct main_type): Remove flag_nottext.
1340 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1341 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1342 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1343 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1344 of TYPE_FLAG_NOTTEXT.
1345 (init_type): Remove the initialization of the flag_nottext field.
1346 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1348 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1350 2010-10-04 Doug Evans <dje@google.com>
1352 * cc-with-index.sh: New file.
1354 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1356 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1357 (create_cus_from_index, create_addrmap_from_index): Ditto.
1358 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1359 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1360 (dw2_do_expand_symtabs_matching): Ditto.
1361 (eq_strtab_entry, create_strtab, add_string): Ditto.
1362 (hash_strtab_entry): Ditto.
1363 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1364 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1365 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1366 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1367 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1368 (write_psymtabs_to_index): Ditto.
1370 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1372 * ada-lang.c: #include "value.h".
1373 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1374 arguments. Implement using value_allocate_space_in_inferior
1375 instead of allocating memory from the stack.
1376 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1377 calls to ensure_lval.
1378 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1379 calls to make_array_descriptor and ensure_lval.
1380 * ada-lang.h (ada_convert_actual): Update declaration.
1381 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1383 2010-10-04 Doug Evans <dje@google.com>
1385 * python/python.c (_initialize_python): Define new function
1386 GdbSetPythonDirectory in python. Use it to update sys.path and
1389 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1391 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1392 incorporating and generalizing print_record_field_types.
1393 (print_record_field_types): Change return value and update comment.
1394 Re-implement using print_selected_record_field_types.
1395 (print_choices): Print "=>" here.
1396 Handle case of unencoded variant branch.
1397 (print_variant_clauses): Reformat comment.
1398 Special-case unencoded variant branch.
1400 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1402 * ada-lang.c (wild_match): Reimplement.
1403 Change API to eliminate unused length argument, reverse arguments and
1404 make 0 the 'true' return value.
1405 (advance_wild_match): New auxiliary function for wild_match to improve
1407 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1408 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1410 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1412 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1414 2010-10-01 Doug Evans <dje@google.com>
1416 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1417 for `save gdb-index' command.
1419 2010-10-01 Tom Tromey <tromey@redhat.com>
1421 * symfile.h (allocate_symtab): Update.
1422 * symfile.c (allocate_symtab): Make 'filename' const.
1423 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1424 (add_psymbol_to_list): Likewise.
1425 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1427 (add_psymbol_to_list): Update.
1428 * mdebugread.c (new_symtab): Make 'name' const.
1429 (psymtab_to_symtab_1): Make 'filename' const.
1430 * elfread.c (elfstab_offset_sections): Update.
1431 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1432 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1433 (psymtab_include_file_name): Update.
1434 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1435 * buildsym.h (start_subfile): Update.
1436 * buildsym.c (start_subfile): Make arguments const.
1438 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1440 * fork-child.c (breakup_args): Fix crash if shell forking is
1441 disabled at compile time.
1443 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1445 * ada-lang.c (desc_bounds): Add handling of the case where
1446 the P_BOUNDS field is a pointer to a stub.
1447 (desc_data_target_type): Same for P_ARRAY field.
1448 (ada_check_typedef): Strip the typedef layers from the type
1449 found by ada_find_any_type.
1451 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1453 * sparc-tdep.c (sparc32_frame_align): New function.
1454 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1455 * sparc64-tdep.c (sparc64_frame_align): New function.
1456 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1458 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1460 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1462 2010-09-30 Tom Tromey <tromey@redhat.com>
1464 * symfile.h (struct sym_fns) <next>: Remove.
1465 (add_symtab_fns): Update.
1466 * symfile.c (sym_fns_ptr): New typedef.
1467 (symtab_fns): Now a VEC.
1468 (add_symtab_fns): Update. Change argument type.
1469 (find_sym_fns): Update. Change return type.
1470 (get_symfile_segment_data): Update.
1471 * objfiles.h (struct objfile) <sf>: Now const.
1472 * somread.c (som_sym_fns): Now const. Update.
1473 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1474 * mipsread.c (ecoff_sym_fns): Now const. Update.
1475 * machoread.c (macho_sym_fns): Now const. Update.
1476 * elfread.c (elf_sym_fns): Now const. Update.
1477 (elf_sym_fns_gdb_index): Likewise.
1478 * dbxread.c (aout_sym_fns): Now const. Update.
1479 * coffread.c (coff_sym_fns): Now const. Update.
1481 2010-09-30 Tom Tromey <tromey@redhat.com>
1483 * value.c (value_primitive_field): Take 'offset' into account for
1486 2010-09-30 Tom Tromey <tromey@redhat.com>
1488 * completer.c (count_struct_fields): Handle anonymous structs and
1490 (add_struct_fields): Likewise.
1492 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 Fix printing parameters of inlined functions.
1495 * ada-lang.c (is_known_support_routine)
1496 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1497 for find_frame_funname.
1498 * python/py-frame.c (frapy_name): Likewise.
1499 * stack.c (find_frame_funname): New parameter funcp. Update the
1500 function comment. Fill it in.
1501 (print_frame): New variable func. Initialize it by
1502 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1503 FUNC as the parameter of print_args_stub.
1504 * stack.h (find_frame_funname): New parameter funcp. Remove the
1505 function declaration comment.
1507 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1510 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1511 tp. Iterate INFERIOR_LIST and call target_has_execution.
1513 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 Fix GDB crash on inferior calls with self-referencing classes.
1516 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1519 2010-09-29 Doug Evans <dje@google.com>
1521 Workaround for gcc/45682.
1522 * dwarf2read.c (partial_die_info): New fields fixup_called,
1524 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1525 Move definition next to use. Use linkage_name to determine if class
1526 is in a namespace. All callers updated.
1527 (fixup_partial_die): Return early if already called.
1528 Set fixup_called when done.
1529 (guess_full_die_structure_name): New function.
1530 (determine_prefix): Call it for class/struct/union dies if c++ and
1531 .debug_types section is present and parent is DW_TAG_compile_unit.
1533 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1535 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1536 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1538 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1540 * NEWS: Announce Ravenscar Profile support.
1542 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1543 Jerome Guitton <guitton@adacore.com>
1545 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1547 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1548 ravenscar-sparc-thread.o to gdb_target_obs.
1550 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1552 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1553 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1555 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1557 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1558 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1559 skip_main_prologue method.
1561 2010-09-27 Tom Tromey <tromey@redhat.com>
1563 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1564 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1565 Only emit a given psymbol once.
1566 (struct signatured_type_index_data) <psyms_seen>: New field.
1567 (write_one_signatured_type): Update.
1568 (cleanup_htab): New function.
1569 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1571 (save_gdb_index_command): Update index documentation.
1573 2010-09-27 Tom Tromey <tromey@redhat.com>
1575 * bcache.c (expand_hash_table): Use hash_function, not hash.
1577 2010-09-27 Tom Tromey <tromey@redhat.com>
1579 * gdb_wchar.h: Change minimum libiconv to 0x108.
1581 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1583 Fix lost siginfo_t for inferior calls.
1585 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1586 (save_inferior_thread_state): New variables regcache, gdbarch and
1587 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1588 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1590 (restore_inferior_thread_state): New variables regcache and gdbarch.
1591 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1592 REGCACHE. Free also SIGINFO_DATA.
1594 2010-09-24 Tom Tromey <tromey@redhat.com>
1596 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1598 (dw2_map_symbol_names): Likewise.
1600 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1602 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1603 discard_cleanups do_cleanups.
1605 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1609 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1610 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1611 si_code is < 0. Check for si_code == SI_TIMER before checking for
1614 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1616 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1618 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1620 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1621 debugging a core file.
1623 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1626 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1627 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1629 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1630 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1632 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1633 Remove the conditional.
1634 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1636 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1638 * main.c: Include objfiles.h.
1639 (captured_main): New variable objfile. Call
1640 load_auto_scripts_for_objfile for ALL_OBJFILES.
1642 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1644 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1647 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1649 * dwarf2read.c (scan_partial_symbols): Add handling of
1650 DW_TAG_constant DIEs.
1651 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1653 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1655 * configure.ac: Add support for --enable-gdbserver.
1656 * configure: Regenerate.
1658 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1661 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1662 'old_cleanups' reassignment.
1664 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1666 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1669 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1672 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1673 read_var_value and common_val_print and print a warning.
1675 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1678 keep the list in alphabetical order. Use longer e-mail address.
1680 2010-09-15 Tom Tromey <tromey@redhat.com>
1682 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1684 2010-09-15 Tom Tromey <tromey@redhat.com>
1686 * charset.c (iconv_open): New define.
1688 (iconv_close): Likewise.
1689 (phony_iconv_open): Add "phony_" prefix.
1690 (phony_iconv_close): Likewise.
1691 (phony_iconv): Likewise.
1692 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1693 Change how INTERMEDIATE_ENCODING is defined.
1695 2010-09-15 Doug Evans <dje@google.com>
1697 * dwarf2read.c (struct die_info): Fix comment.
1699 2010-09-15 Alan Modra <amodra@gmail.com>
1702 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1703 than setting SEC_NEVER_LOAD on sections that need not be copied.
1705 2010-09-14 Tom Tromey <tromey@redhat.com>
1707 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1708 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1710 * symfile.h (extend_psymbol_list): Remove.
1711 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1712 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1713 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1715 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1720 2010-09-14 Tom Tromey <tromey@redhat.com>
1723 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1724 for unrecognized frame base expression.
1726 2010-09-14 Tom Tromey <tromey@redhat.com>
1729 * value.c (value_static_field): Use value_of_variable.
1731 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1733 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1734 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1736 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1739 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1742 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1744 * NEWS: Add x86-lynxos to the list of platforms supported by
1747 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1749 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1751 2010-09-13 Tom Tromey <tromey@redhat.com>
1753 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1755 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1757 * i386-tdep.c (i386_ymm_type): Set type name to
1758 builtin_type_vec256i.
1760 2010-09-12 Michael Snyder <msnyder@vmware.com>
1762 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1764 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1766 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1768 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1770 * amd64-tdep.c (amd64_register_name): Removed.
1771 (amd64_init_abi): Don't call set_gdbarch_register_name.
1773 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1775 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1777 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1778 Paul Bolle <pebolle@tiscali.nl>
1780 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1781 * cli-logging.c (struct saved_output_files) <targerr>: New.
1782 (set_logging_redirect, pop_output_files, handle_redirections):
1783 Redirect also gdb_stdtargerr.
1784 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1786 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1787 also gdb_stdtargerr.
1788 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1789 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1790 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1791 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1792 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1795 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1797 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1798 to display a host address.
1799 * monitor.c (monitor_read_memory): Likewise.
1800 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1802 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1804 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1805 `CORE_ADDRESS' as it might contain target addresses.
1807 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1809 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1810 before cast to pointer to avoid warning.
1812 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1814 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1817 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1819 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1820 anonymous class partial DIEs.
1822 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1824 * dwarf2read.c (dwarf2_compute_name): Check that the first
1825 argument is a pointer.
1827 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1829 * dwarf2read.c (read_func_scope, read_structure_type)
1830 (read_common_block): Check for a NULL return from new_symbol.
1832 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1836 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1838 * dwarf2read.c (read_structure_type): Move processing of
1839 fields and member functions from here...
1840 (process_structure_scope): ... to here.
1842 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1844 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1846 (gnuv3_make_method_ptr): Likewise.
1848 2010-09-08 Tom Tromey <tromey@redhat.com>
1850 * breakpoint.c (create_breakpoint): Add missing _().
1852 2010-09-08 Doug Evans <dje@google.com>
1854 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1856 2010-09-08 Tom Tromey <tromey@redhat.com>
1859 2010-09-01 Tom Tromey <tromey@redhat.com>
1860 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1861 symtab.h: Revert earlier change.
1863 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1865 * psymtab.c (add_psymbol_to_bcache): Initialize
1867 memset psymbol.ginfo.value to 0.
1869 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1871 * infrun.c (resume): Extend comment on ignoring single-step
1872 requests on vfork parents waiting for a vfork-done.
1874 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1875 Pedro Alves <pedro@codesourcery.com>
1877 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1879 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1881 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1882 calling strsignal. Use enum target_signal type for saved_signo.
1883 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1884 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1885 target_signal_to_host before calling strsignal.
1886 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1889 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1890 Jan Kratochvil <jan.kratochvil@redhat.com>
1892 * common/signals.c (ANY): Remove.
1893 (SET): No longer use ANY.
1895 2010-09-06 Yao Qi <yao@codesourcery.com>
1897 * infrunc(resume): When inferior is waiting_for_vfork_done,
1898 clear step and don't use displaced stepping.
1900 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1902 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1905 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1907 Code cleanup - split print_stop_reason.
1908 * infrun.c (enum inferior_stop_reason): Remove.
1909 (print_stop_reason): Remove by splitting into ...
1910 (print_exited_reason, print_signal_exited_reason)
1911 (print_no_history_reason, print_signal_received_reason)
1912 (print_end_stepping_range_reason): ... these new functions. Update
1913 the preceding comment.
1914 (handle_inferior_event): Change the calls to print_exited_reason,
1915 print_signal_exited_reason, print_no_history_reason,
1916 print_signal_received_reason, print_end_stepping_range_reason.
1917 (handle_step_into_function, handle_step_into_function_backward):
1918 Change the calls to print_end_stepping_range_reason.
1920 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1922 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1923 * cli-out.c: Include vec.h.
1924 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1925 variable stream, initialize it, use it.
1926 (cli_redirect): New function comment. Replace the stream and
1927 original_stream fields by the new streams field. Remove the
1928 original_stream != NULL conditional, assert error on NULL instead.
1929 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1930 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1931 original_stream fields by the new streams field.
1932 (cli_out_set_stream): Replace the stream field by the new streams
1934 * cli-out.h: Include vec.h.
1935 (ui_filep): New typedef, call DEF_VEC_P for it.
1936 (struct cli_ui_out_data): Replace the stream and original_stream
1937 fields by the new streams field.
1938 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1939 NULL first. Extend the comment.
1940 (handle_redirections): Call ui_out_redirect with output.
1941 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1942 calls outside of the TRY_CATCH block.
1944 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1948 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1950 Back out the following change:
1951 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1952 | * record.c (set_record_pic_cmdlist,
1953 | show_record_pic_cmdlist): New variables.
1954 | (set_record_pic_command,
1955 | show_record_pic_command): New functions.
1956 | (record_pic_function, record_pic_line, record_pic_enum,
1957 | set_record_pic_type, record_pic_hide_nofunction,
1958 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1959 | (record_pic_fputs): New function.
1960 | (function_list, node_list, edge_list): New struct.
1961 | (function_list, node_list, edge_list): New variables.
1962 | (record_pic_cleanups, record_pic_node,
1963 | record_pic_edge, cmd_record_pic): New functions.
1964 | (_initialize_record): Add new commands for record pic.
1966 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1968 * config.in, configure: Regenerated.
1969 * configure.ac: Check for waitpid.
1970 * ser-pipe.c (pipe_close): Wait for the program to exit.
1972 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1974 * cli/cli-logging.c: Include gdb_assert.h.
1975 (set_logging_overwrite): New function.
1976 (logging_redirect): New comment.
1977 (logging_no_redirect_file, set_logging_redirect)
1978 (pop_output_files) <logging_no_redirect_file>: New.
1979 (handle_redirections) <!logging_redirect>: New variable
1980 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1981 discard cleanup for the close of former OUTPUT. Set
1982 LOGGING_NO_REDIRECT_FILE.
1983 (handle_redirections) <logging_redirect>: gdb_assert
1984 LOGGING_NO_REDIRECT_FILE.
1985 (show_logging_command) <logging_redirect handling>: Adjust messages
1986 for SAVED_FILENAME not NULL.
1987 (_initialize_cli_logging): Install set_logging_overwrite and
1988 set_logging_redirect.
1990 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1994 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1996 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1997 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1998 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1999 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2001 2010-09-02 Yao Qi <yao@codesourcery.com>
2003 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2004 number from a WIFSIGNALED status.
2006 2010-09-01 Tom Tromey <tromey@redhat.com>
2008 * symtab.h (lookup_type_symbol): Declare.
2009 * symtab.c (lookup_symbol_in_language_full): Rename from
2010 lookup_symbol_in_language. Add 'for_type' argument.
2011 (lookup_symbol_in_language): New function.
2012 (lookup_type_symbol): Likewise.
2013 (lookup_symbol_aux): Add 'for_type' argument.
2014 (match_symbol_aux): New function.
2015 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2016 (match_transparent_type): New function.
2017 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2018 * symfile.h (struct quick_symbol_functions)
2019 <pre_expand_symtabs_matching>: Remove.
2020 <expand_one_symtab_matching>: New field.
2021 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2022 (pre_expand_symtabs_matching_psymtabs): Remove.
2023 (psym_functions): Update.
2024 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2025 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2026 (dw2_pre_expand_symtabs_matching): Remove.
2027 (dw2_expand_one_symtab_matching): New function.
2028 (dwarf2_gdb_index_functions): Update.
2030 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2032 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2034 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2036 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2037 as a feature reported by -list-target-features.
2039 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2041 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2042 (powerpc-32.o, powerpc-32.c): New rules.
2043 (clean): Also remove powerpc-32.c.
2044 * regformats/rs6000/powerpc-32.dat: Generate.
2046 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2048 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2049 psymbol_bcache_init.
2050 * psymtab.h (psymbol_bcache_init): New function prototype.
2051 (psymbol_bcache_free): New function prototype.
2052 (psymbol_bcache_get_bcache): New function prototype.
2053 * psymtab.c (psymbol_bcache_init): New function.
2054 (psymbol_bcache_free): New function.
2055 (psymbol_bcache_full): New function.
2056 (psymbol_bcache_get_bcache): New function.
2057 (add_psymbol_to_bcache): use psymbol_bcache_full.
2058 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2060 * symmisc.c (print_symbol_bcache_statistics): Updated.
2061 (print_objfile_statistics): Updated.
2062 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2064 (free_objfile): Use psymbol_bcache_free.
2066 2010-08-31 Tom Tromey <tromey@redhat.com>
2069 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2070 Don't set TYPE_NAME on the type.
2072 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2074 * infrun.c (set_exec_direction_func): Error out if target does not
2075 support reverse execution.
2077 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2079 Make linux_get_siginfo_type `type *' unique.
2080 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2081 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2082 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2083 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2084 (_initialize_linux_tdep): New.
2086 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2089 * defs.h (find_memory_region_ftype): New typedef.
2090 (exec_set_find_memory_regions): Use it.
2091 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2092 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2093 * gcore.c (objfile_find_memory_regions): Likewise.
2094 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2095 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2096 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2097 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2098 find_memory_region_ftype.
2099 (insert_dbx_link_bpt_in_region): Likewise.
2100 (iterate_over_mappings): Likewise. Drop the comment part about the
2102 (find_memory_regions_callback): Use find_memory_region_ftype.
2103 (proc_find_memory_regions): Likewise.
2104 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2105 find_memory_region_ftype.
2106 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2107 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2109 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2111 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2112 'static partial_symbol psymbol'.
2113 (psymbol_hash): New function.
2114 (psymbol_compare): New function.
2115 * bcache.c (hash_continue): New.
2116 (hash): Use hash_continue.
2117 * bcache.c: Add hash_function and compare_function
2118 pointers to bcache struct.
2119 (bcache_full): Use bcache->hash_function, and
2120 bcache->compare_function.
2121 (bcache_compare): New function.
2122 (bcache_xmalloc): Take hash_function and
2123 compare_function arguments and initialize the
2126 * objfiles.c (allocate_objfile): Updated.
2127 * symfile.c (reread_symbols): Updated.
2128 * python/py-type.c (typy_richcompare): Updated.
2130 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2131 Tom Tromey <tromey@redhat.com>
2134 * python/py-value.c (valpy_get_dynamic_type): New function.
2135 (value_object_getset): Add "dynamic_type".
2136 (valpy_get_type): Fail on error.
2138 2010-08-30 Yao Qi <yao@codesourcery.com>
2140 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2141 (arm_linux_syscall_next_pc): New.
2142 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2143 (arm_linux_init_abi): Initialize syscall_next_pc.
2144 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2145 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2146 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2147 Declare arm_frame_is_thumb.
2149 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2152 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2153 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2155 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2156 calls of bpstat_alloc. Remove explicit bs chain termination.
2158 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2161 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2162 (my_waitpid): Likewise.
2164 2010-08-27 Doug Evans <dje@google.com>
2166 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2169 2010-08-27 Tom Tromey <tromey@redhat.com>
2171 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2172 TYPE_FIELD_IGNORE_BITS.
2174 2010-08-27 Doug Evans <dje@google.com>
2176 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2177 the order they're defined in. munmap .debug_types buffer.
2179 2010-08-26 Doug Evans <dje@google.com>
2181 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2182 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2183 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2184 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2185 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2186 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2187 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2188 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2189 (write_psymtabs_to_index): Ditto.
2191 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2193 * NEWS: Mention libthread_db debugging with core files.
2195 2010-08-26 Doug Evans <dje@google.com>
2197 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2198 forward decl. Pass pst->dirname to dwarf_decode_lines.
2199 (psymtab_include_file_name): New function.
2200 (dwarf_decode_lines): Call it. Update comments.
2202 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2204 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2205 compilation unit being different from target die's.
2207 2010-08-24 Doug Evans <dje@google.com>
2210 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2211 debug_types_type_hash.
2212 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2214 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2215 appropriate type_hash table. All callers updated.
2216 (allocate_signatured_type_table): Renamed from
2217 allocate_signatured_type_hash_table. All callers updated.
2218 (create_signatured_type_table_from_index): Renamed from
2219 create_signatured_type_hash_from_index. All callers updated.
2220 (read_die_type): Add comment. Move actual reading to ...
2221 (read_die_type_1): ... here. New function.
2222 (follow_die_ref_or_sig): Tweak comment.
2223 (set_die_type): Rewrite to use appropriate choice of
2224 debug_info_type_hash or debug_types_type_hash.
2225 (get_die_type_at_offset): New function.
2226 (get_die_type): Call it.
2228 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 * python/py-type.c (typy_richcompare): Initialize worklist.
2232 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2233 Kazu Hirata <kazu@codesourcery.com>
2234 Jonathan Larmour <jifl@eCosCentric.com>
2236 * arm-tdep.c: Include features/arm-with-m.c.
2237 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2239 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2240 Check is_m after force-mode.
2241 (arm_gdbarch_init): Check the binary before the target description.
2242 Add check for M profile attribute. If we have an M-profile device,
2243 but no target register description, use arm-with-m. Recognize the
2244 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2245 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2246 * arm-tdep.h (XPSR_T): Define.
2247 (struct gdbarch_tdep): Add is_m member.
2248 * features/arm-m-profile.xml, features/arm-with-m.c,
2249 features/arm-with-m.xml: New files.
2251 2010-08-23 Doug Evans <dje@google.com>
2253 * dwarf2read.c (read_structure_type): Add comment.
2254 (read_enumeration_type): Add comment.
2255 (process_enumeration_scope): Move definition of some locals
2256 closer to their use.
2257 (read_namespace_type): Add comment.
2258 (set_die_type): Fix typo in comment.
2260 2010-08-23 Tom Tromey <tromey@redhat.com>
2263 * python/py-value.c: Include expression.h.
2264 (valpy_do_cast): New function.
2265 (valpy_cast): Use it.
2266 (valpy_dynamic_cast): New function.
2267 (valpy_reinterpret_cast): Likewise.
2268 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2270 2010-08-23 Tom Tromey <tromey@redhat.com>
2273 * python/py-value.c (valpy_nonzero): Don't throw error for other
2276 2010-08-23 Tom Tromey <tromey@redhat.com>
2279 * python/py-type.c: Include bcache.h, vec.h.
2280 (struct type_equality_entry): New.
2281 (compare_strings): New function.
2282 (check_types_equal): Likewise.
2283 (check_types_worklist): Likewise.
2284 (typy_richcompare): Likewise.
2285 (type_object_type): Set tp_richcompare field.
2287 2010-08-23 Tom Tromey <tromey@redhat.com>
2290 * python/py-type.c (typy_fields): Call check_typedef.
2291 (typy_template_argument): Add TRY_CATCH.
2293 2010-08-23 Tom Tromey <tromey@redhat.com>
2296 * python/py-type.c (typy_array): New function.
2297 (type_object_methods): Add "array".
2299 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2301 * python/python.c: Include "serial.h".
2302 (gdbpy_event_fds): Change type to `struct serial *' a array from
2304 (gdbpy_run_events): Change parameters. Use serial_readchar in
2306 (gdbpy_post_event): Use serial_write in place of write.
2307 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2308 serial_async in place of add_file_handler.
2310 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2312 * serial.h (gdb_pipe, serial_pipe): Declare.
2313 * serial.c (serial_interface_lookup): Take a const char pointer.
2314 (serial_fdopen): Rename to ...
2315 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2316 Call the OPS' fdopen function if there is one.
2317 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2319 (struct serial_ops) <fdopen>: New field.
2321 * ser-mingw.c (free_pipe_state):
2322 (free_pipe_state): Close output on non-pex pipes.
2323 (pipe_windows_fdopen): New.
2325 (_initialize_ser_windows): Register pipe_windows_fdopen.
2326 * ser-go32.c (gdb_pipe): New.
2327 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2332 2010-08-20 Keith Seitz <keiths@redhat.com>
2335 * dwarf2read.c (struct delayed_method_info): New struct.
2336 (struct dwarf2_cu): Add vector method_list.
2337 (scan_partial_symbols): Count methods for union, class, structure,
2338 and interface types.
2339 (add_to_method_list): New function.
2340 (free_delayed_list): New function.
2341 (compute_delayed_physnames): New function.
2342 (process_full_comp_unit): Make a cleanup for the CU's delayed
2343 physname list, compute the delayed physnames, and free the
2345 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2346 of the physname until after the CU is read.
2348 * dwarf2read.c (read_structure_type): Check if the current
2349 DIE's type was already completed after dwarf2_full_name
2352 2010-08-19 Stan Shebs <stan@codesourcery.com>
2354 * NEWS: Mention some additional changes.
2356 2010-08-19 Tom Tromey <tromey@redhat.com>
2358 * Makefile.in (install-python): Add DESTDIR.
2360 2010-08-19 Doug Evans <dje@google.com>
2363 * parser-defs.h (parse_float, parse_c_float): Declare.
2364 * parse.c (parse_float, parse_c_float): New function.
2365 * c-exp.y (parse_number): Call parse_c_float.
2366 * objc-exp.y (parse_number): Ditto.
2367 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2368 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2370 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2372 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2373 the arguments in the correct order.
2374 * symtab.c (maybe_add_partial_symtab_filename): Declare
2375 the arguments in the correct order.
2377 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2380 initialize it by null_frame_id, wrap its usage by get_frame_id,
2381 frame_id_p and frame_find_by_id.
2383 2010-08-18 Tom Tromey <tromey@redhat.com>
2386 * configure: Rebuild.
2387 * configure.ac: Add install-python to CONFIG_INSTALL.
2388 * Makefile.in (install-python): New.
2390 2010-08-18 Doug Evans <dje@google.com>
2392 * gdb_assert.h (gdb_assert_not_reached): New macro.
2393 (gdb_assert_fail): Fix typo in comment.
2394 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2396 * darwin-nat.c (darwin_check_new_threads): Ditto.
2397 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2398 (munmap_section_buffer): Ditto.
2399 * m32c-tdep.c (make_types): Ditto.
2400 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2401 * macroexp.c (get_character_constant): Ditto.
2402 (get_string_literal): Ditto.
2403 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2404 (mep_pseudo_cr_index, mep_register_type): Ditto.
2405 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2406 (mep_get_insn, mep_analyze_prologue): Ditto.
2407 * objfiles.c (qsort_cmp): Ditto.
2408 * prologue-value.c (pv_is_identical): Ditto.
2409 * record.c (record_get_loc): Ditto.
2410 * value.c (value_static_field): Ditto.
2411 * xtensa-tdep.c (call0_track_op): Ditto.
2413 2010-08-18 Tom Tromey <tromey@redhat.com>
2416 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2417 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2418 name-copying lower. Document exception behavior.
2419 * completer.c (expression_completer): Catch exceptions from
2420 parse_field_expression.
2422 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2426 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2427 workaround on core files.
2428 (try_thread_db_load_1): Don't try enabling thread event reporting
2430 (thread_db_load): Allow thread_db on core files.
2431 (attach_thread): Don't check thread signals on core files, nor try
2432 really attaching to the thread, nor enabling thread event event
2434 (thread_db_detach): Don't try disabing thread event reporting or
2435 removing thread event breakpoints when debugging a core file.
2436 (find_new_threads_callback): Don't try enabling thread event
2437 reporting on core files.
2438 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2439 debugging a core file.
2440 (thread_db_find_new_threads): Don't update thread
2441 cores (processors) when debugging a core (dump).
2443 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2447 * corelow.c (add_to_thread_list): Don't use
2448 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2449 (get_core_register_section): Don't use
2450 gdbarch_core_reg_section_encodes_pid.
2452 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2453 * gdbarch.h, gdbarch.c: Regenerate.
2454 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2455 gdbarch_core_reg_section_encodes_pid.
2456 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2457 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2458 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2460 2010-08-18 Yao Qi <yao@codesourcery.com>
2462 * MAINTAINERS : Add myself under Write After Approval.
2464 2010-08-17 Tom Tromey <tromey@redhat.com>
2466 * NEWS: Mention template parameter support.
2468 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2470 PR breakpoints/11371
2472 * breakpoint.c (decref_bp_location): Assert the reference count is
2475 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2477 PR breakpoints/11371
2479 * breakpoint.c (breakpoint_init_inferior): Decrement the
2480 location's reference count instead of deleting right away.
2481 (bpstat_free): Decrement the location's reference count. Make
2483 (bpstat_copy): Increment the location's reference count.
2484 (bpstat_find_breakpoint): Adjust.
2485 (bpstat_num): Adjust.
2486 (print_it_typical): Adjust. Use the breakpoint pointer in the
2487 bpstat instead of the location's owner.
2488 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2489 Adjust to record the location's owner in the bpstat.
2490 (watchpoint_check): Use the breakpoint pointer in the bpstat
2491 instead of the location's owner.
2492 (bpstat_check_breakpoint_conditions): Don't handle
2493 bp_watchpoint_scope here. Use the breakpoint pointer in the
2494 bpstat instead of the location's owner.
2495 (bpstat_stop_status): Defer inferior function calls to after
2496 building the bpstat list. Handle bp_watchpoint_scope here. Use
2497 the breakpoint pointer in the bpstat instead of the location's
2499 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2500 the location's owner.
2501 (free_bp_location): Don't walk bpstats clearing locations.
2502 (incref_bp_location): New.
2503 (decref_bp_location): New.
2504 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2505 instead of the location's owner.
2506 (update_global_location_list): Clear the location's owner, and
2507 decrement the location's reference count instead of deleting it
2509 (breakpoint_retire_moribund): Decrement the location's reference
2510 count instead of deleting it right away.
2511 (bpstat_remove_bp_location): Delete.
2512 (bpstat_remove_breakpoint): New.
2513 (bpstat_remove_bp_location_callback): Delete.
2514 (bpstat_remove_breakpoint_callback): New.
2515 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2516 clearing references to the breakpoint that is being deleted.
2518 * breakpoint.h (struct bp_location) <refc>: New field.
2519 <owner>: Update comments.
2520 (bpstat_free): Delete declaration.
2521 (struct bpstats): Change the type of the breakpoint_at field to
2522 struct breakpoint point, from struct bp_location pointer. Add new
2523 field bp_location_at.
2525 2010-08-16 Tom Tromey <tromey@redhat.com>
2529 2010-08-16 Tom Tromey <tromey@redhat.com>
2531 * NEWS: Mention watch -location.
2533 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2535 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2536 EXP_STRING_REPARSE to EXP_STRING.
2537 (watch_command_1): Set also EXP_STRING_REPARSE.
2538 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2539 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2540 Update comment for exp_string.
2542 2010-08-16 Tom Tromey <tromey@redhat.com>
2544 * value.c (release_value): Clear 'next' pointer.
2545 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2546 (watch_command_wrapper): Update.
2547 (watch_maybe_just_location): New function.
2548 (watch_command): Update.
2549 (rwatch_command_wrapper): Update.
2550 (rwatch_command): Update.
2551 (awatch_command_wrapper): Update.
2552 (awatch_command): Update.
2553 (check_for_argument): New function.
2554 (_initialize_breakpoint): Update help text.
2556 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2558 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2559 typedef'ed function types correctly.
2561 2010-08-13 Tom Tromey <tromey@redhat.com>
2563 * python/python-internal.h (gdbpy_get_hook_function): Don't
2566 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2568 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2571 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2573 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2574 the format strings to be compatible with Python 2.4.
2576 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2578 Easier and more stubborn MI memory read commands.
2580 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2581 and data-write-memory-bytes.
2582 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2583 (mi_cmd_data_write_memory_bytes): New.
2584 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2585 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2587 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2588 * target.c (target_read_until_error): Remove.
2589 (read_whatever_is_readable, free_memory_read_result_vector)
2590 (read_memory_robust): New.
2591 * target.h (target_read_until_error): Remove.
2592 (struct memory_read_result, free_memory_read_result_vector)
2593 (read_memory_robust): New.
2595 2010-08-13 Hui Zhu <teawater@gmail.com>
2597 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2598 (read_comp_unit): Initialize back_to.
2600 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2601 Pedro Alves <pedro@codesourcery.com>
2603 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2604 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2605 (struct partial_die_info) <has_template_arguments>: New field.
2606 <num_attrs>: Change type to unsigned char.
2607 <building_fullname>: New field.
2608 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2609 allocate a CU if we don't have one already. Add a cleanup for the
2611 (partial_die_full_name): Handle template arguments not in
2613 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2614 (load_full_comp_unit): Only allocate a CU if we don't have one
2616 (do_ui_file_peek_last): New.
2617 (dwarf2_compute_name): Handle template parameters not in
2619 (read_comp_unit): Read and free abbrevs if not read yet.
2620 (load_partial_dies): Handle template arguments not in DW_AT_name.
2621 (find_partial_die): If we have a CU, but no a partial dies yet,
2622 also read in the CU.
2623 (dwarf2_const_value_attr): New, abstracted out from
2625 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2626 dwarf2_const_value_attr.
2627 (determine_prefix): Detect and break loops created by RCVT's debug
2629 (maybe_queue_comp_unit): Bail out early if reading partial
2631 (follow_die_offset): Load full CU if we have no dies.
2632 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2633 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2635 2010-08-11 Tom Tromey <tromey@redhat.com>
2636 Phil Muldoon <pmuldoon@redhat.com>
2638 * python/python.c (gdbpy_run_events): New function.
2639 (gdbpy_post_event): Likewise.
2640 (gdbpy_initialize_events): Likewise.
2641 (_initialize_python): Call gdbpy_initialize_events.
2643 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2645 * gdb/valarith.c (vector_binop): New function.
2646 (scalar_binop): Likewise.
2647 (value_binop): Call scalar_binop or vector_binop depending on the types.
2648 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2649 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2651 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2653 2010-08-11 Brad Roberts <braddr@puremagic.com>
2655 * d-lang.c (extract_identifiers): Handle multiple digits.
2657 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2661 Rename to dummy_frame_unwind.
2662 (dummy_frame_unwind): Remove.
2663 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2664 * frame-unwind.c (frame_unwind_init): Use address of
2665 dummy_frame_unwind and inline_frame_unwind.
2666 * frame.c (create_sentinel_frame): Use address of
2667 sentinel_frame_unwind.
2668 * inline-frame.c (inline_frame_unwinder): Rename to
2669 inline_frame_unwind.
2670 (inline_frame_unwind): Remove.
2671 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2672 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2673 sentinel_frame_unwind.
2674 (sentinel_frame_unwind): Remove.
2675 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2678 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2681 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2682 and returned value. New comment from frame-unwind.h.
2683 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2685 * frame.c (get_frame_id, frame_unwind_register_value)
2686 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2687 (get_frame_type, frame_unwind_arch): Do not use the return value of
2688 frame_unwind_find_by_frame.
2690 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2691 Thiago Jung Bauermann <bauerman@br.ibm.com>
2692 Tom Tromey <tromey@redhat.com>
2694 * python/python.c (gdbpy_solib_address): New function.
2695 (gdbpy_decode_line): Likewise.
2697 2010-08-10 Tom Tromey <tromey@redhat.com>
2699 Revert gdb-add-index addition:
2700 * Makefile.in (install-only): Don't install gdb-add-index.
2701 * gdb-add-index.sh: Remove.
2703 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2705 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2706 `target_has_execution' check with `to_has_memory' check.
2707 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2708 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2709 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2711 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2713 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2714 (resume_siggnal, resume_step): Move these static globals...
2715 (struct sim_inferior_data): ...into this new struct.
2716 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2718 (gdb_callback, callbacks_initialized): Move these globals to
2719 a point earlier in the file.
2720 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2721 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2722 (gdbsim_close_inferior, gdbsim_resume_inferior)
2723 (gdbsim_stop_inferior): New functions.
2724 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2726 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2727 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2728 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2729 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2730 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2731 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2732 new local variable `sim_data' in each of these functions. Use
2733 `sim_data' to reference former globals `program_loaded',
2734 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2736 (gdbsim_open): Remove local variable `argv'. Put results of call
2737 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2738 make a cleanup for it. Free it though when a sim instance cannot
2740 (gdbsim_close): Free sim_argv and null it out as appropriate.
2741 Close sim instances in all inferiors.
2742 (gdbsim_cntrl_c): Stop all inferiors.
2744 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2746 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2748 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2749 function after symbol construction is complete.
2750 Do the same for template symbol addition to template_symbols list.
2752 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2754 * symtab.c (symbol_get_demangled_name): Remove assertion and
2755 return NULL when language_specific.cplus_specific is not initialized.
2756 * stabsread.c (define_symbol): Set the name before calling
2757 cp_scan_for_anonymous_namespaces.
2759 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2761 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2762 SYMBOL_SET_LANGUAGE.
2763 (symbol_init_language_specific): Renamed to symbol_set_language.
2764 * symtab.c (symbol_init_language_specific): Removed redundant check
2766 Renamed to symbol_set_language.
2767 * stabsread.c (define_symbol): Updated.
2768 (read_enum_type): Updated
2769 * psymtab.c (add_psymbol_to_bcache): Updated.
2770 * minsyms.c (install_minimal_symbols): Updated.
2771 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2772 SYMBOL_LANGUAGE to set the language.
2773 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2774 * mdebugread.c (new_symbol): Ditto.
2775 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2776 * dwarf2read.c (new_symbol_full): Ditto.
2777 * jv-lang.c (add_class_symbol): Ditto.
2779 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2781 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2782 (make_cleanup_restore_page_info)
2783 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2784 * gdbcmd.h (execute_command_to_string): New declaration.
2785 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2786 (make_cleanup_restore_ui_file): Move to utils.c
2787 (execute_gdb_command) <to_string>: Move ...
2788 * top.c (execute_command_to_string): ... here. Call
2789 set_batch_flag_and_make_cleanup_restore_page_info.
2790 * utils.c (make_cleanup_restore_integer): New source file blank line.
2791 (make_cleanup_restore_uinteger): New.
2792 (struct restore_ui_file_closure, do_restore_ui_file)
2793 (make_cleanup_restore_ui_file): Move here from python/python.c.
2794 (init_page_info) <batch_flag>
2795 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2796 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2798 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2800 * thread.c (add_thread_silent): Use null_ptid instead of
2801 minus_one_ptid while getting rid of stale inferior_ptid.
2803 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2805 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2806 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2807 (decode_frame_entry_1): Remove redundant setting of
2808 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2809 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2810 on examined frame section. Add comment to explain why.
2811 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2812 comment to explain usage.
2813 * gdbarch.c: Regenerate.
2814 * gdbarch.h: Regenerate.
2816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2818 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2824 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2826 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2827 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2828 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2829 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2830 linux-tdep.o to gdb_target_obs.
2832 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2834 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2837 2010-08-05 Hui Zhu <teawater@gmail.com>
2839 * mips-linux-tdep.c(regset.h): New include.
2840 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2841 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2842 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2843 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2844 mips_linux_regset_from_core_section): New functions.
2845 (fetch_core_registers, regset_core_fns): Deleted.
2846 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2847 Deleted regset_core_fns.
2848 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2849 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2850 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2853 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2855 * s390-tdep.c: Include linux-tdep.h.
2856 (s390_gdbarch_init): Call linux_init_abi.
2858 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2860 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2861 instead of printing "Thread" here.
2862 * linux-tdep.c: Include inferior.h.
2863 (linux_core_pid_to_str): New.
2864 (linux_init_abi): New.
2865 * linux-tdep.h (linux_init_abi): Declare.
2866 * alpha-linux-tdep.c: Include linux-tdep.h.
2867 (alpha_linux_init_abi): Call linux_init_abi.
2868 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2869 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2870 * frv-linux-tdep.c: Include linux-tdep.h
2871 (frv_linux_init_abi): Call linux_init_abi.
2872 * hppa-linux-tdep.c: Include linux-tdep.h
2873 (hppa_linux_init_abi): Call linux_init_abi.
2874 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2875 * ia64-linux-tdep.c: Include linux-tdep.h.
2876 (ia64_linux_init_abi): Call linux_init_abi.
2877 * m32r-linux-tdep.c: Include linux-tdep.h.
2878 (m32r_linux_init_abi): Call linux_init_abi.
2879 * m68klinux-tdep.c: Include linux-tdep.h.
2880 (m68k_linux_init_abi): Call linux_init_abi.
2881 * microblaze-linux-tdep.c: Include linux-tdep.h.
2882 (microblaze_linux_init_abi): Call linux_init_abi.
2883 * mips-linux-tdep.c: Include linux-tdep.h.
2884 (mips_linux_init_abi): Call linux_init_abi.
2885 * mn10300-linux-tdep.c: Include linux-tdep.h.
2886 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2887 'gdbinfo' parameter to 'info'.
2888 * ppc-linux-tdep.c: Include linux-tdep.h.
2889 (ppc_linux_init_abi): Call linux_init_abi.
2890 * sh-linux-tdep.c: Include linux-tdep.h.
2891 (sh_linux_init_abi): Call linux_init_abi.
2892 * sparc-linux-tdep.c: Include linux-tdep.h.
2893 (sparc32_linux_init_abi): Call linux_init_abi.
2894 * sparc64-linux-tdep.c: Include linux-tdep.h.
2895 (sparc64_linux_init_abi): Call linux_init_abi.
2896 * xtensa-linux-tdep.c: Include linux-tdep.h.
2897 (xtensa_linux_init_abi): Call linux_init_abi.
2898 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2899 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2902 2010-08-03 Doug Evans <dje@google.com>
2904 * breakpoint.c (bpdisp_text): Constify bpdisps.
2905 * solib-svr4.c (solib_break_names): Constify.
2906 (bkpt_names, main_name_list): Constify.
2907 (match_main): Constify soname arg.
2908 (bfd_lookup_symbol): Remove unnecessary forward decl.
2909 Constify symname arg.
2910 (enable_break): Constify bkpt_namep.
2911 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2912 (symtab_symbol_info): Constify classnames.
2914 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2916 * NEWS: Document Python value inferior function calls.
2918 2010-08-02 Doug Evans <dje@google.com>
2920 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2922 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2924 * linux-thread-db.c (libthread_db_debug): New variable.
2925 (thread_db_find_new_threads_silently): Control verbosity with it.
2926 (try_thread_db_load_1, try_thread_db_load): Likewise.
2927 (find_new_threads_once): Likewise.
2928 (_initialize_thread_db): Set/show it.
2930 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * common/signals.c (signals): Move the content to signals.def.
2933 Include it. Remove the INDENT comments.
2935 2010-07-30 Tom Tromey <tromey@redhat.com>
2937 * Makefile.in (install-only): Install gdb-add-index.
2938 * gdb-add-index.sh: New file.
2940 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2942 * MAINTAINERS: Add myself for write after approval privileges.
2944 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2946 * symfile.c (addr_section_name): New function.
2947 (addrs_section_compar): Use it.
2948 (addr_info_make_relative): Use it. Move variable sect_name into a more
2949 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2951 2010-07-30 Tom Tromey <tromey@redhat.com>
2953 * configure: Rebuild.
2954 * configure.ac: Add missing case for Python 2.7.
2956 2010-07-29 DJ Delorie <dj@redhat.com>
2958 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2961 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2963 * PROBLEMS: Remove mention of all problems.
2965 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2968 * configure.ac: Check for wresize.
2969 * configure, config.in: Regenerate.
2970 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2973 2010-07-28 Tom Tromey <tromey@redhat.com>
2976 * python/py-type.c (typy_legacy_template_argument): New function,
2977 extracted from typy_template_argument.
2978 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2981 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2983 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2985 2010-07-27 Tom Tromey <tromey@redhat.com>
2987 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2989 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2991 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2992 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2994 2010-07-28 Tom Tromey <tromey@redhat.com>
2996 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2998 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3000 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3001 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3003 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3005 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3006 down, just before the block that parse the breakpoint addr_string.
3008 2010-07-28 Tom Tromey <tromey@redhat.com>
3011 * symfile.c (reread_symbols): Clear template_symbols.
3012 * symtab.h (struct symbol) <is_cplus_template_function>: New
3014 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3015 (struct template_symbol): New.
3016 * symtab.c (lookup_symbol_aux_local): Use
3017 cp_lookup_symbol_imports_or_template.
3018 * objfiles.h (struct objfile) <template_symbols>: New field.
3019 * objfiles.c (relocate_one_symbol): New function.
3020 (objfile_relocate1): Use it. Relocate isolated symbols.
3021 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3022 template_arguments>: New fields.
3023 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3024 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3025 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3026 (lookup_typename): Update.
3027 * gdbtypes.c (lookup_typename): Constify "block" argument.
3028 * dwarf2read.c: Include vec.h.
3029 (symbolp): New typedef.
3030 (read_func_scope): Read template arguments. Allocate a
3031 template_symbol when needed.
3032 (read_structure_type): Read template arguments.
3033 (new_symbol_full): New function, from new_symbol. Handle
3034 DW_TAG_template_type_param and DW_TAG_template_value_param.
3035 (new_symbol): Rewrite as wrapper.
3036 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3037 * cp-namespace.c: Include language.h.
3038 (search_symbol_list): New function.
3039 (cp_lookup_symbol_imports_or_template): Likewise.
3041 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3043 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3044 the command window to the new size and position.
3046 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3048 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3051 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3053 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3054 after a detecting a resize.
3055 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3058 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3060 * configure.ac: Check for resize_term.
3061 * configure, config.in: Regenerate.
3063 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3065 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3067 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3069 * dwarf2read.c (read_string): Rename to ...
3070 (read_direct_string): ... this.
3071 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3072 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3074 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3077 (count_events_callback, select_event_lwp_callback)
3078 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3080 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3082 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3083 (_initialize_ia64_linux_nat): Install it.
3084 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3085 (linux_nat_set_status_is_event): New.
3086 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3087 cancel_breakpoints_callback, linux_nat_filter_event)
3088 (linux_nat_wait_1): Use linux_nat_status_is_event.
3089 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3091 2010-07-27 Tom Tromey <tromey@redhat.com>
3093 * NEWS: Mention labels, .gdb_index.
3095 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3097 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3098 "start,+length" form of arguments.
3099 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3100 since GDB 7.1"; and merge two separated paragraphs of disassemble
3101 description in "Changes in GDB 7.0".
3103 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3105 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3106 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3107 (fputs_maybe_filtered): Do not do filtering also on
3108 ! INPUT_FROM_TERMINAL_P.
3110 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3112 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3115 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3117 * python/py-value.c (valpy_call): New Function.
3119 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3121 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3122 types_list_elements variables.
3124 2010-07-26 Tom Tromey <tromey@redhat.com>
3126 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3127 TLS with DW_OP_const4u or DW_OP_const8u.
3129 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3131 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3132 VSX registers contents.
3134 2010-07-26 Jerome Guitton <guitton@adacore.com>
3136 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3137 its adress is null. Add comment to explain why.
3138 (new_symbol): Ditto.
3140 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3142 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3143 the host signal first.
3145 2010-07-23 Tom Tromey <tromey@redhat.com>
3147 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3148 type_comp_units>: New fields.
3149 (dw2_get_cu): New function.
3150 (create_cus_from_index): Remove unused argument.
3151 (create_signatured_type_hash_from_index): New function.
3152 (create_addrmap_from_index): Update.
3153 (dwarf2_read_index): Handle version 2.
3154 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3155 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3156 (dw2_print_stats, dw2_expand_all_symtabs)
3157 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3158 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3159 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3160 (allocate_signatured_type_hash_table): New function.
3161 (add_signatured_type_cu_to_list): Likewise.
3162 (create_debug_types_hash_table): Use them. Set type_comp_units.
3163 (read_signatured_type): Ensure section data is available.
3164 (add_address_entry): Don't record empty ranges.
3165 (struct signatured_type_index_data): New.
3166 (write_one_signatured_type): New function.
3167 (write_psymtabs_to_index): Write type CUs.
3168 (save_gdb_index_command): Update comment.
3169 (process_type_comp_unit): Move inititalization of
3171 (create_debug_types_hash_table): ... here.
3173 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3175 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3176 cleanup and generating of gdb script to it.
3177 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3178 and terminal size. Convert $tmpfile to a series of -ex-es.
3180 2010-07-23 Keith Seitz <keiths@redhat.com>
3182 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3183 hook for STATIC_BLOCK types, too.
3185 2010-07-23 Keith Seitz <keiths@redhat.com>
3187 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3188 and vector definition.
3190 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3192 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3194 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 * dwarf2read.c: Include completer.h.
3197 (save_gdb_index_command): Use matching usage command name.
3198 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3199 Set filename_completer for it.
3201 2010-07-22 Tom Tromey <tromey@redhat.com>
3203 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3204 type signature's per-CU data.
3206 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3208 * NEWS: Mention target reported shared libraries support by
3211 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3216 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3217 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3218 and DW_TAG_volatile_type.
3219 (new_symbol): Likewise.
3221 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3223 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3224 function symbols before overload resolution.
3226 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3228 * breakpoint.c (bptype_string): New, abstracted out from
3229 print_one_breakpoint_location.
3230 (print_one_breakpoint_location): Adjust.
3231 (breakpoint_1): Adjust the type column width dynamically.
3233 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3235 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3236 a gdb_assert call, new comment.
3238 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 * linux-nat.c (linux_handle_extended_wait): Handle case when
3241 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3243 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3247 linux_nat_wait_1. Use always LP->STATUS afterwards.
3249 2010-07-20 Hui Zhu <teawater@gmail.com>
3251 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3252 (inf_ptrace_attach): Ditto.
3254 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 Make core files the process_stratum.
3257 * corefile.c (core_target): New variable.
3258 (core_file_command): Remove variable t, use core_target.
3259 * corelow.c (core_ops): Make it static.
3260 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3261 * defs.h (make_cleanup_unpush_target): New prototype.
3262 * gdbarch.h: Regenerate.
3263 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3264 * gdbcore.h (core_target): New declaration.
3265 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3266 variables ops_already_pushed and back_to. Use push_target,
3267 make_cleanup_unpush_target and discard_cleanups calls.
3268 * record.c (record_open): Replace core_stratum by a core_bfd check.
3269 * target.c (target_is_pushed): New function.
3270 (find_core_target): Remove.
3271 * target.h (enum strata) <core_stratum>: Remove.
3272 (target_is_pushed): New declaration.
3273 (find_core_target): Remove declaration.
3274 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3275 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3277 2010-07-19 Hui Zhu <teawater@gmail.com>
3279 * breakpoint.c (single_step_breakpoints_inserted): New
3281 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3282 * infrun.c (maybe_software_singlestep): Add check code.
3283 * record.c (record_resume): Add code for software single step.
3284 (record_wait): Ditto.
3286 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3289 a more inner block. Remove its unused declaration initializer.
3291 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3293 * NEWS: Mention support for the new ptrace interface and hardware
3294 accelerated watchpoint conditions on powerpc-linux.
3296 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3298 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3299 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3300 and host_address_to_string() and %s for pointers.
3301 (debug_to_remove_breakpoint): Likewise.
3302 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3303 (debug_to_can_accel_watchpoint_condition): Likewise.
3304 (debug_to_stopped_data_address): Likewise.
3305 (debug_to_watchpoint_addr_within_range): Likewise.
3306 (debug_to_insert_hw_breakpoint): Likewise.
3307 (debug_to_remove_hw_breakpoint): Likewise.
3308 (debug_to_insert_watchpoint): Likewise.
3309 (debug_to_remove_watchpoint): Likewise.
3311 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3313 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3315 (cplus_specific): New struct.
3316 * symtab.c (symbol_set_demangled_name): Updated.
3317 Use cplus_specific for cplus symbols.
3318 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3319 struct for cplus symbols.
3320 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3321 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3322 * symtab.c (symbol_init_cplus_specific): New function.
3324 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3326 * symtab.h (symbol_set_demangled_name): New function.
3327 (symbol_get_demangled_name): New function.
3328 * symtab.c (symbol_set_demangled_name): New function.
3329 (symbol_get_demangled_name): New function.
3330 (symbol_init_language_specific): Use demangled_name setter and getter.
3331 (symbol_set_names): Ditto.
3332 (symbol_natural_name): Ditto.
3333 (symbol_demangled_name): Ditto.
3334 * dwarf2read.c (new_symbol): Ditto.
3336 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3338 * symtab.h: Renamed cplus_specific to mangled_lang.
3339 * symtab.c (symbol_init_language_specific): Updated.
3340 (symbol_set_names): Updated.
3341 (symbol_natural_name): Updated.
3342 (symbol_demangled_name): Updated.
3343 * ada-lang.c (ada_decode_symbol): Updated.
3344 * dwarf2read.c (new_symbol): Updated.
3346 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3348 * valops.c (value_assign): Do not call to value_coerce_to_target.
3349 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3351 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3353 * MAINTAINERS: Add myself for write after approval privileges.
3355 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3357 * c-valprint.c (c_val_print): Add embedded_offset to address in
3358 call to val_print_array_elements.
3360 2010-07-13 Tom Tromey <tromey@redhat.com>
3362 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3364 2010-07-13 Tom Tromey <tromey@redhat.com>
3366 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3369 2010-07-13 Tom Tromey <tromey@redhat.com>
3371 * symfile.c (set_initial_language): Update.
3372 (deduce_language_from_filename): Argument type now const.
3373 * symtab.h (find_main_filename): Update.
3374 (deduce_language_from_filename): Update.
3375 * symtab.c (find_main_filename): Make result const.
3376 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3377 * psymtab.c (find_symbol_file_from_partial): Change return type.
3378 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3381 2010-07-13 Tom Tromey <tromey@redhat.com>
3383 * breakpoint.c (save_cmdlist): No longer static.
3384 * gdbcmd.h (save_cmdlist): Declare.
3385 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3386 OBJF_READNOW on objfile if readnow_symbol_files.
3387 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3388 (elf_sym_fns_gdb_index): New global.
3389 * dwarf2read.c: Include exceptions.h.
3391 (struct mapped_index): New.
3392 (dwarf2_per_cu_data_ptr): New typedef.
3393 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3395 (GDB_INDEX_SECTION): New define.
3396 (struct dwarf2_per_cu_quick_data): New.
3397 (struct dwarf2_per_cu_data) <objfile>: New field.
3400 (byte_swap): New function.
3401 (MAYBE_SWAP): New macro.
3402 (INDEX_SUFFIX): New macro.
3403 (dw2_do_instantiate_symtab): New function.
3404 (dw2_instantiate_symtab): Likewise.
3405 (create_cus_from_index): Likewise.
3406 (create_addrmap_from_index): Likewise.
3407 (mapped_index_string_hash): Likewise.
3408 (find_slot_in_mapped_hash): Likewise.
3409 (dwarf2_read_index): Likewise.
3410 (dw2_setup): Likewise.
3411 (dw2_require_line_header): Likewise.
3412 (dw2_require_full_path): Likewise.
3413 (dw2_find_last_source_symtab): Likewise.
3414 (dw2_forget_cached_source_info): Likewise.
3415 (dw2_lookup_symtab): Likewise.
3416 (dw2_lookup_symbol): Likewise.
3417 (dw2_do_expand_symtabs_matching): Likewise.
3418 (dw2_pre_expand_symtabs_matching): Likewise.
3419 (dw2_print_stats): Likewise.
3420 (dw2_dump): Likewise.
3421 (dw2_relocate): Likewise.
3422 (dw2_expand_symtabs_for_function): Likewise.
3423 (dw2_expand_all_symtabs): Likewise.
3424 (dw2_expand_symtabs_with_filename): Likewise.
3425 (dw2_find_symbol_file): Likewise.
3426 (dw2_map_ada_symtabs): Likewise.
3427 (dw2_expand_symtabs_matching): Likewise.
3428 (dw2_find_pc_sect_symtab): Likewise.
3429 (dw2_map_symbol_names): Likewise.
3430 (dw2_map_symbol_filenames): Likewise.
3431 (dw2_has_symbols): Likewise.
3432 (dwarf2_gdb_index_functions): New global.
3433 (dwarf2_initialize_objfile): New function.
3434 (process_psymtab_comp_unit): Update.
3435 (add_partial_subprogram): Likewise.
3436 (dwarf2_psymtab_to_symtab): Likewise.
3437 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3438 (process_full_comp_unit): Update.
3439 (find_file_and_directory): New function.
3440 (read_file_scope): Use find_file_and_directory.
3441 (dwarf2_per_cu_objfile): Update.
3442 (dwarf2_per_cu_addr_size): Update.
3443 (dwarf2_per_cu_offset_size): Update.
3444 (dwarf2_free_objfile): Free the index, if needed.
3445 (dwarf2_per_objfile_free): Unmap the index, if needed.
3446 (struct strtab_entry): New.
3447 (hash_strtab_entry): New function.
3448 (eq_strtab_entry): Likewise.
3449 (create_strtab): Likewise.
3450 (add_string): Likewise.
3451 (struct symtab_index_entry): New.
3452 (struct mapped_symtab): New.
3453 (hash_symtab_entry): New function.
3454 (eq_symtab_entry): Likewise.
3455 (delete_symtab_entry): Likewise.
3456 (create_index_table): Likewise.
3457 (create_mapped_symtab): Likewise.
3458 (cleanup_mapped_symtab): Likewise.
3459 (find_slot): Likewise.
3460 (hash_expand): Likewise.
3461 (add_index_entry): Likewise.
3462 (add_indices_to_cpool): Likewise.
3463 (write_hash_table): Likewise.
3464 (add_address_entry): Likewise.
3465 (write_psymbols): Likewise.
3466 (write_obstack): Likewise.
3467 (unlink_if_set): Likewise.
3468 (write_psymtabs_to_index): Likewise.
3469 (save_gdb_index_command): Likewise.
3470 (_initialize_dwarf2_read): Install "save gdb-index"
3472 (create_all_comp_units): Initialize 'objfile' field of CU.
3473 (dwarf2_locate_sections): Check for .gdb_index.
3474 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3475 * symfile.h (dwarf2_initialize_objfile): Declare.
3477 2010-07-13 Tom Tromey <tromey@redhat.com>
3479 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3480 (basic_lookup_transparent_type): Likewise.
3481 * symfile.h (struct quick_symbol_functions)
3482 <pre_expand_symtabs_matching>: New field.
3483 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3484 (psym_functions): Update.
3486 2010-07-13 Tom Tromey <tromey@redhat.com>
3488 PR breakpoints/8357:
3489 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3490 * linespec.c (decode_line_1): Update comment. Call decode_label.
3491 (decode_label): New function.
3492 (symbol_found): Handle LOC_LABEL.
3493 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3494 domain. Call add_symbol_to_list.
3496 2010-07-13 Tom Tromey <tromey@redhat.com>
3498 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3499 * dwarf2loc.c (find_location_expression): Use
3500 dwarf2_per_cu_text_offset.
3501 (dwarf2_evaluate_loc_desc): Likewise.
3502 (dwarf2_loc_desc_needs_frame): Likewise.
3503 (compile_dwarf_to_ax): Likewise.
3504 (loclist_describe_location): Likewise.
3505 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3506 (dwarf2_per_cu_objfile): Update comment.
3508 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3510 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3511 * p-lang.c (pascal_printstr): Likewise.
3513 2010-07-09 Tom Tromey <tromey@redhat.com>
3515 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3516 'hint' if it is NULL.
3518 2010-07-09 Hui Zhu <teawater@gmail.com>
3520 * source.c (print_source_lines_base): Add check for noprint.
3522 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3524 * python/python-config.py: Resync with Python 2.7 version of this
3527 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3529 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3531 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3533 * NEWS: Create a new section for the next release branch.
3534 Rename the section of the current branch, now that it has
3537 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3539 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3540 * version.in: Bump version to 7.2.50.20100707-cvs.
3542 2010-07-07 Tom Tromey <tromey@redhat.com>
3544 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3545 LOC_COMPUTED symbol.
3546 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3547 (dwarf2_loc_desc_needs_frame): Likewise.
3548 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3549 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3550 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3551 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3553 (struct dwarf2_frame_cache) <text_offset>: New field.
3554 (dwarf2_frame_cache): Set new field.
3555 (dwarf2_frame_prev_register): Update.
3556 (dwarf2_frame_sniffer): Update.
3557 (dwarf2_frame_base_sniffer): Update.
3558 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3560 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3561 Thiago Jung Bauermann <bauerman@br.ibm.com>
3563 Support for hw accelerated condition watchpoints in booke powerpc.
3565 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3566 and move to eval.c. Change callers.
3567 (insert_bp_location): Pass watchpoint condition in
3568 target_insert_watchpoint.
3569 (remove_breakpoint_1) Pass watchpoint condition in
3570 target_remove_watchpoint.
3571 (watchpoint_locations_match): Call
3572 target_can_accel_watchpoint_condition.
3573 * eval.c: Include wrapper.h.
3574 (fetch_subexp_value): Moved from breakpoint.c.
3575 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3577 (can_use_watchpoint_cond_accel): New function.
3578 (calculate_dvc): Likewise.
3579 (num_memory_accesses): Likewise.
3580 (check_condition): Likewise.
3581 (ppc_linux_can_accel_watchpoint_condition): Likewise
3582 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3583 check_condition and calculate_dvc.
3584 (ppc_linux_remove_watchpoint): Likewise.
3585 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3586 ppc_linux_can_accel_watchpoint_condition
3587 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3589 (debug_to_remove_watchpoint): Likewise.
3590 (debug_to_can_accel_watchpoint_condition): New function.
3591 (update_current_target): Set to_can_accel_watchpoint_condition.
3592 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3593 * target.h: Add opaque declaration for struct expression.
3594 (struct target_ops) <to_insert_watchpoint>,
3595 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3596 <to_can_accel_watchpoint_condition>: New member.
3597 condition. Update all callers and implementations.
3598 (target_can_accel_watchpoint_condition): New macro.
3599 * value.c (free_value_chain): New function.
3600 * value.h (fetch_subexp_value): New prototype.
3601 (free_value_chain): Likewise.
3603 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3605 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3606 from gdbarch_core_regset_sections also for .reg if present.
3608 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3609 section size for .reg.
3610 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3611 (ppc_linux_vmx_regset_sections): Likewise.
3612 (ppc_linux_fp_regset_sections): Likewise.
3613 (ppc64_linux_vsx_regset_sections): New variable.
3614 (ppc64_linux_vmx_regset_sections): Likewise.
3615 (ppc64_linux_fp_regset_sections): Likewise.
3616 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3617 for current word size.
3619 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3621 * server.c (myresume): Make static.
3623 2010-07-06 Tom Tromey <tromey@redhat.com>
3625 * configure, config.in: Rebuild.
3626 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3627 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3629 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3631 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3634 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3636 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3637 * gdbtypes.c (floatformats_ieee_half): New variable.
3638 * doublest.c (floatformat_from_length): Set format to
3639 gdbarch_half_format if length matches.
3640 * gdbarch.sh (half_bit): New architecture method.
3641 (half_format): Likewise.
3642 * gdbarch.h: Regenerate.
3643 * gdbarch.c: Likewise.
3645 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 Joel Brobecker <brobecker@adacore.com>
3648 Fix re-run of PIE executable, PR shlibs/11776.
3649 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3650 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3652 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3653 Joel Brobecker <brobecker@adacore.com>
3655 * auxv.c (memory_xfer_auxv): Update attach comment.
3656 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3657 svr4_relocate_main_executable.
3658 (svr4_solib_create_inferior_hook): Make the call to
3659 svr4_relocate_main_executable unconditional.
3661 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3662 Joel Brobecker <brobecker@adacore.com>
3664 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3666 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 Joel Brobecker <brobecker@adacore.com>
3669 Fix attaching to PIEs prelinked on the disk after the process was
3671 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3672 Verify it against bfd_get_arch_size. Try to match arbitrary
3673 displacement for the phdrs comparison.
3675 2010-07-02 Tom Tromey <tromey@redhat.com>
3678 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3679 value as optimized-out.
3681 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3682 Thiago Jung Bauermann <bauerman@br.ibm.com>
3684 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3685 represent?" question in comment. Change comment to a proper sentence.
3687 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3689 * c-valprint.c (c_val_print): Fix printing of character vectors.
3691 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3693 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3694 create_breakpoint prototype.
3696 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3698 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3699 usefulness suggestion of multiple breakpoints at same location.
3701 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3703 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3705 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3707 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3708 (loclist_tracepoint_var_ref): Handle optimized out values.
3710 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3712 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3713 unnecessary space in string.
3714 * filesystem.c (_initialize_filesystem): Ditto.
3715 * frame.c (_initialize_frame): Ditto.
3716 * infcmd.c (step_once): Ditto.
3717 * infrun.c (_initialize_infrun): Ditto.
3718 * linux-nat.c (linux_child_follow_fork): Ditto.
3719 * maint.c (maintenance_deprecate): Ditto.
3720 * memattr.c (_initialize_mem): Ditto.
3721 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3722 * monitor.c (monitor_open): Ditto.
3723 * procfs.c (procfs_xfer_memory): Ditto.
3724 * reverse.c (bookmarks_info): Ditto.
3725 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3726 * stack.c (_initialize_stack): Ditto.
3727 * tracepoint.c (_initialize_tracepoint): Ditto.
3728 * xtensa-tdep.c (xtensa_supply_gregset,
3729 xtensa_regset_from_core_section): Ditto.
3731 2010-07-01 Tom Tromey <tromey@redhat.com>
3733 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3735 * value.c (value_entirely_optimized_out): Invert result. Update
3736 for new function name.
3738 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3740 Static tracepoints support.
3742 * NEWS: Mention new support for static tracepoints.
3743 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3744 qXfer:statictrace:read.
3745 (New features in the GDB remote stub, GDBserver): Mention static
3746 tracepoints support using an UST based backend.
3747 (New commands): Mention "info static-tracepoint-markers" and
3749 * breakpoint.c (is_marker_spec): New.
3750 (is_tracepoint): Handle static tracepoints.
3751 (validate_commands_for_breakpoint): Static tracepoints can't do
3753 (static_tracepoints_here): New.
3754 (bpstat_what): Handle static tracepoints.
3755 (print_one_breakpoint_location, allocate_bp_location, mention):
3757 (create_breakpoint_sal): Ditto.
3758 (decode_static_tracepoint_spec): New.
3759 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3760 `type_wanted'. Adjust. Handle static tracepoint marker
3762 (break_command_1): Adjust.
3763 (update_static_tracepoint): New.
3764 (update_breakpoint_locations): Handle static tracepoints.
3765 (breakpoint_re_set_one): Handle static tracepoint marker
3767 (disable_command, enable_command): Handle static tracepoints.
3768 (trace_command, ftrace_command): Adjust.
3769 (strace_command): New.
3770 (create_tracepoint_from_upload): Adjust.
3771 (save_breakpoints): Handle static tracepoints.
3772 (_initialize_breakpoint): Install the "strace" command.
3773 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3774 (struct breakpoint): New fields static_trace_marker_id and
3775 static_trace_marker_id_idx.
3776 (breakpoints_here_p): Declare.
3777 (create_breakpoint): Adjust.
3778 (static_tracepoints_here): Declare.
3779 * remote.c (struct remote_state) <static_tracepoints>: New field.
3780 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3781 (remote_static_tracepoint_marker_at): New.
3782 (remote_static_tracepoint_markers_by_strid): New.
3783 (remote_static_tracepoint_feature): New.
3784 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3785 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3786 (remote_supports_static_tracepoints): New.
3787 (remote_download_tracepoint): Download static tracepoints.
3788 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3789 remote_static_tracepoint_markers_by_strid.
3790 (_initialize_remote): Install set|show remote static-tracepoints,
3791 and set|show remote read-sdata-object commands.
3792 * target.c (update_current_target): Inherit and default
3793 to_static_tracepoint_marker_at, and
3794 to_static_tracepoint_markers_by_strid.
3795 * target.h (static_tracepoint_marker): Forward declare.
3796 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3797 (static_tracepoint_marker_p): New typedef.
3798 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3799 (struct target_ops): New fields to_static_tracepoint_marker_at and
3800 to_static_tracepoint_markers_by_strid.
3801 (target_static_tracepoint_marker_at)
3802 (target_static_tracepoint_markers_by_strid): New.
3803 * tracepoint.c: Include source.h.
3804 (validate_actionline): Handle $_sdata.
3805 (struct collection_list): New field strace_data.
3806 (add_static_trace_data): New.
3807 (clear_collection_list): Clear strace_data.
3808 (stringify_collection_list): Account for a possible static trace
3810 (encode_actions_1): Encode an $_sdata collection.
3811 (parse_tracepoint_definition): Handle static tracepoints.
3812 (parse_static_tracepoint_marker_definition): New.
3813 (release_static_tracepoint_marker): New.
3814 (print_one_static_tracepoint_marker): New.
3815 (info_static_tracepoint_markers_command): New.
3816 (sdata_make_value): New.
3817 (_initialize_tracepoint): Create the $_sdata convenience variable.
3818 Add the "info static-tracepoint-markers" command.
3819 Mention $_sdata in the "collect" command's help output.
3820 * tracepoint.h (struct static_tracepoint_marker): New.
3821 (parse_static_tracepoint_marker_definition)
3822 (release_static_tracepoint_marker): Declare.
3823 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3824 * python/py-breakpoint.c (bppy_new): Adjust.
3826 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3828 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3831 2010-06-29 Doug Evans <dje@google.com>
3834 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3835 DW_AT_external is present.
3839 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3840 create a symbol for the field and record the value.
3841 (new_symbol): Handle DW_TAG_member.
3842 * gdbtypes.c (field_is_static): Remove FIXME.
3843 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3844 only ignore LOC_CONST symbols that are enums.
3846 * dwarf2read.c: Remove trailing whitespace.
3848 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3849 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3850 (struct main_type, field loc): Delete dwarf_block.
3851 (FIELD_DWARF_BLOCK): Delete.
3852 (SET_FIELD_DWARF_BLOCK): Delete.
3853 (TYPE_FIELD_DWARF_BLOCK): Delete.
3854 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3857 2010-06-29 Hui Zhu <teawater@gmail.com>
3859 * record.c (set_record_pic_cmdlist,
3860 show_record_pic_cmdlist): New variables.
3861 (set_record_pic_command,
3862 show_record_pic_command): New functions.
3863 (record_pic_function, record_pic_line, record_pic_enum,
3864 set_record_pic_type, record_pic_hide_nofunction,
3865 record_pic_hide_nosource, record_pic_hide_same): New variables.
3866 (record_pic_fputs): New function.
3867 (function_list, node_list, edge_list): New struct.
3868 (function_list, node_list, edge_list): New variables.
3869 (record_pic_cleanups, record_pic_node,
3870 record_pic_edge, cmd_record_pic): New functions.
3871 (_initialize_record): Add new commands for record pic.
3873 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3876 ALLOCATE_CPLUS_STRUCT_TYPE.
3878 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3879 Tom Tromey <tromey@redhat.com>
3880 Thiago Jung Bauermann <bauerman@br.ibm.com>
3882 * value.c (pack_unsigned_long): New function.
3883 (value_from_ulongest): New function.
3884 * value.h (value_from_ulongest): Declare.
3885 * python/python.c (_initialize_python): Call
3886 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3887 * python/python-internal.h: Define thread_object.
3888 (gdbpy_inferiors, gdbpy_selected_thread)
3889 (frame_info_to_frame_object, create_thread_object)
3890 (find_thread_object, find_inferior_object)
3891 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3892 (gdbpy_is_value_object, get_addr_from_python): Declare.
3893 * python/py-value.c (builtin_type_upylong): Define.
3894 (convert_value_from_python): Add logic for ulongest.
3895 (gdbpy_is_value_object): New function.
3896 * python/py-utils.c (get_addr_from_python): New function.
3897 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3898 (gdbpy_selected_frame): Use PyObject over frame_info.
3899 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3901 (SUBDIR_PYTHON_SRCS): Likewise.
3902 (py-inferior.o): New Rule.
3903 (py-infthread.o): New Rule.
3904 * python/py-inferior.c: New File.
3905 * python/py-infthread.c: New File.
3907 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 * c-typeprint.c (c_type_print_base): For no fields check include also
3910 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3911 * dwarf2read.c (struct typedef_field_list)
3912 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3913 (dwarf2_add_typedef): New.
3914 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3915 Copy also FI.TYPEDEF_FIELD_LIST.
3916 * gdbtypes.h (struct typedef_field)
3917 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3918 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3919 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3921 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 * cp-namespace.c (cp_lookup_nested_type): New variable
3924 concatenated_name. Turn the current return condition into a reverse
3925 one. Call also lookup_static_symbol_aux on the constructed qualified
3927 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3928 other files into a called ...
3929 (lookup_static_symbol_aux): ... new function here.
3930 * symtab.h (lookup_static_symbol_aux): New prototype.
3931 * valops.c (value_maybe_namespace_elt): Call also
3932 lookup_static_symbol_aux if we failed otherwise.
3934 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3936 Fix PR c++/11703 and PR gdb/1448.
3937 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3940 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3942 Fix modification of cplus_struct_default.
3943 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3944 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3945 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3947 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3949 * NEWS: Add entry announcing the python directory.
3951 2010-06-28 Tom Tromey <tromey@redhat.com>
3953 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3955 2010-06-28 Doug Evans <dje@google.com>
3957 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3958 All callers updated.
3960 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3963 obstack_begin after each obstack_free.
3965 2010-06-27 Doug Evans <dje@google.com>
3967 * value.c (value_static_field): Use `switch' instead of `if'.
3968 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3970 * valops.c (search_struct_field): Fix typo in error message.
3972 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3974 * dwarf2expr.c (execute_stack_op): Place preprocessor
3975 directives at the start of the source line.
3977 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3979 * defs.h (make_command_stats_cleanup): Declare.
3980 (set_display_time): Declare.
3981 (set_display_space): Declare.
3982 * event-top.c (command_handler): Use make_command_stats_cleanup.
3983 * main.c (display_time, display_space): Move definitions to utils.c.
3984 (captured_main): Use make_command_stats_cleanup to get start-up
3986 Use set_display_time and set_display_space for processing OPT_STATISTICS
3988 * maint.c (maintenance_time_display): Use set_display_time.
3989 (maintenance_space_display): Use set_display_space.
3990 * top.c (execute_command): Remove obsolete 'maint time' code.
3991 (command_loop): Use make_command_stats_cleanup.
3992 * utils.c (struct cmd_stats): Structure for storing initial time
3994 (display_time, display_space): Move definitions here from utils.c.
3995 (set_display_time): New function.
3996 (set_display_space): New function.
3997 (make_command_stats_cleanup): New function.
3998 (report_command_stats): New auxiliary function for
3999 make_command_stats_cleanup.
4001 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4003 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4004 hosts where CORE_ADDR is long long.
4006 2010-06-25 Tom Tromey <tromey@redhat.com>
4009 * python/python.c (execute_gdb_command): Add keywords. Accept
4010 "to_string" argument.
4011 (struct restore_ui_file_closure): New.
4012 (restore_ui_file): New function.
4013 (make_cleanup_restore_ui_file): Likewise.
4014 (GdbMethods) <execute>: Update.
4016 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4018 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4019 during inferior call stack frame setup.
4021 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4023 * solib-spu.c: Include "exception.h".
4024 (ocl_program_data_key): New variable.
4025 (append_ocl_sos): New function.
4026 (ocl_enable_break): Likewise.
4027 (spu_current_sos): Call append_ocl_sos.
4028 (spu_solib_loaded): Call ocl_enable_break.
4029 (_initialize_spu_solib): Register ocl_program_data_key.
4031 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4033 * cp-support.c (reset_directive_searched): New function.
4034 (make_symbol_overload_list_using): Prevent recursive calls.
4036 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4038 * printcmd.c (print_variable_and_value): Print error message on
4041 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4043 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4045 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4047 (dwarf_expr_push): Change input type to ULONGEST.
4048 (dwarf_expr_fetch): Change return type to ULONGEST.
4049 (dwarf_expr_fetch_address): Add prototype.
4050 (dwarf2_read_address): Remove prototype.
4051 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4052 Truncate stack values to ctx->addr_size bytes.
4053 (dwarf_expr_fetch): Change return value to ULONGEST.
4054 (dwarf_expr_fetch_address): New function.
4055 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4056 when appropriate. Update for struct dwarf_expr_piece changes.
4057 (dwarf2_read_address): Remove.
4058 (unsigned_address_type): Remove.
4059 (signed_address_type): Remove.
4060 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4061 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4062 values. Perform operations on ULONGEST instead of on GDB values,
4063 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4064 values and DW_OP_deref results as unsigned integers.
4065 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4067 (write_pieced_value): Likewise.
4068 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4069 dwarf_expr_fetch when appropriate.
4070 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4071 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4072 instead of dwarf_expr_fetch when appropriate.
4074 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4076 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4078 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4080 * python/python.c (_initialize_python): Add new "constant"
4081 PYTHONDIR in gdb module. Insert this path at the head of
4082 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4083 exec its __init__.py script if it exists in that directory.
4085 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4087 * rx-tdep.c (RX_ACC_REGNUM): Define.
4088 (RX_NUM_REGS): Redefine to 26.
4089 (rx_register_name): Add register "acc". Change order of several
4090 registers. Change name of "vct" register to "fintv" to match RX
4092 (rx_register_type): Add case for RX_ACC_REGNUM.
4094 2010-06-24 Tom Tromey <tromey@redhat.com>
4096 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4098 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4099 Tom Tromey <tromey@redhat.com>
4101 Fix GDB startup on readonly filesystem.
4102 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4104 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4105 Pedro Alves <pedro@codesourcery.com>
4108 * breakpoint.c (handle_jit_event): New function.
4109 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4110 jit, err, table and bs_class. New variables shlib_event, jit_event,
4111 this_action and bptype. Change bs_class assignments to this_action
4112 assignments. new unhandled bptype internal error. Move here
4113 shlib_event and jit_event handling from handle_inferior_event.
4114 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4115 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4116 BPSTAT_WHAT_CHECK_JIT.
4117 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4118 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4119 (handle_inferior_event): Reinitialize frame and gdbarch after
4120 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4121 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4122 gdbarch when frame gets reinitialized.
4124 2010-06-24 Hui Zhu <teawater@gmail.com>
4126 * printcmd.c (ui_printf): New function.
4127 (printf_command): Call ui_printf.
4128 (_initialize_printcmd): New command "eval".
4130 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4132 * infrun.c (handle_inferior_event): Handle presence of single-step
4133 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4134 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4135 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4136 * breakpoint.c (detach_single_step_breakpoints): New function.
4137 (detach_breakpoints): Call it.
4138 (cancel_single_step_breakpoints): New function.
4139 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4141 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4142 (spu_gdbarch_init): Install it.
4144 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4147 * configure: Regenerate.
4149 2010-06-22 Hui Zhu <teawater@gmail.com>
4151 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4152 (i386_process_record): Ditto.
4153 * record.c (record_memory_query): New variable.
4154 (_initialize_record): New command "set record memory-query".
4155 * record.h (record_memory_query): New extern.
4157 2010-06-21 Doug Evans <dje@google.com>
4159 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4160 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4161 (i386_syscall_p): Change type of lengthp to int.
4162 (i386_displaced_step_fixup): Handle kernels that run one past a
4164 * i386-linux-tdep.c (i386_linux_init_abi): Use
4165 i386_displaced_step_copy_insn instead of
4166 simple_displaced_step_copy_insn.
4168 2010-06-21 Tom Tromey <tromey@redhat.com>
4170 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4171 (dwarf_type_encoding_name): Likewise.
4173 2010-06-21 Tom Tromey <tromey@redhat.com>
4175 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4176 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4177 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4178 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4179 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4180 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4181 * dwarf2read.c (tag_type_to_type): Create a new error type on
4183 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4184 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4186 2010-06-21 Michael Snyder <msnyder@vmware.com>
4188 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4189 not add_abbrev_prefix_cmd, for "enable breakpoints".
4191 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4193 * dwarf2loc.c (find_location_expression): Add relocation offset
4194 to base-address-selection entry base addresses. Read addresses
4195 (and offsets) as signed/unsigned integers, depending on the
4196 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4197 (loclist_describe_location): Likewise.
4198 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4199 unsigned integer. Do not call dwarf2_read_address.
4200 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4202 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4204 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4205 value instead of hard-coded SPU_LS_SIZE.
4206 (spu_software_single_step): Likewise.
4207 * spu-tdep.h (SPU_LS_SIZE): Remove.
4209 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4211 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4212 limit on local store memory accesses.
4213 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4214 * spu-tdep.c (spu_lslr): Remove.
4215 (spu_pointer_to_address): Do not truncate addresses.
4216 (spu_integer_to_address): Likewise.
4217 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4218 * spu-tdep.h: Add comments.
4219 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4220 (SPU_OVERLAY_LMA): Define.
4222 2010-06-18 Stan Shebs <stan@codesourcery.com>
4224 * osdata.c (get_osdata): Warn separately if target does not report
4226 (info_osdata_command): Allow empty type, report error if target
4227 does not return available types of OS data.
4228 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4229 types if no annex supplied.
4231 * thread.c (thread_id_make_value): Make a value representing the
4233 (_initialize_thread): Create $_thread.
4235 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4237 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4238 last local variable declaration. No real code change.
4240 2010-06-17 Tom Tromey <tromey@redhat.com>
4242 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4243 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4246 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4247 Jan Kratochvil <jan.kratochvil@redhat.com>
4249 * breakpoint.c: Include parser-defs.h.
4250 (watchpoint_exp_is_const): New function.
4251 (watch_command_1): Call watchpoint_exp_is_const to check
4252 if the expression is constant.
4254 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4256 * configure.ac: Check for RDYNAMIC also for cross builds.
4257 * configure: Regenerate.
4259 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4261 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4262 (SFILES): Remove solib-null.c, add solib-target.c.
4263 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4264 (ALLDEPFILES): Remove solib-target.c.
4265 * solib-target.c (_initialize_solib_target): Set
4266 current_target_so_ops to solib_target_so_ops if not already set.
4267 * solib-null.c: Delete.
4269 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4271 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4274 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4276 * cp-valprint.c (cp_print_static_field): Members of
4277 dont_print_stat_array_obstack are of type "struct type *".
4278 (_initialize_cp_valprint): Likewise.
4280 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4282 * frame.c (frame_register_unwind): Do not access contents
4283 of "optimized out" unwound register value.
4285 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4287 * ada-lang.h (ada_print_type): Make varstring const.
4288 * ada-typeprint.c (print_func_type): Make name const.
4289 (ada_print_type): Make varstring const.
4290 * c-lang.h (c_print_type): Make varstring const.
4291 * c-typeprint.c (c_print_type): Likewise.
4292 * f-lang.h (f_print_type): Likewise.
4293 * f-typeprint.c (f_print_type): Likewise.
4294 * jv-lang.h (java_print_type): Likewise.
4295 * jv-typeprint.c (java_print_type): Likewise.
4296 * language.c (unk_lang_print_type): Likewise.
4297 * language.h (struct language_defn) <la_print_type>: Likewise.
4298 * m2-lang.h (m2_print_type): Likewise.
4299 * m2-typeprint.c (m2_print_type): Likewise.
4300 * p-lang.h (pascal_print_type): Likewise.
4301 * p-typeprint.c (pascal_print_type): Likewise.
4303 2010-06-11 Stan Shebs <stan@codesourcery.com>
4305 Add per-operation permission flags.
4307 * target.h (struct target_ops): New method to_set_permissions.
4308 (target_set_permissions): New macro.
4309 (target_insert_breakpoint): Change macro to function.
4310 (target_remove_breakpoint): Ditto.
4311 (target_stop): Ditto.
4312 (may_write_registers): Declare.
4313 (may_write_memory): Declare.
4314 (may_insert_breakpoints): Declare.
4315 (may_insert_tracepoints): Declare.
4316 (may_insert_fast_tracepoints): Declare.
4317 (may_stop): Declare.
4318 * target.c (may_write_registers, may_write_registers_1): New globals.
4319 (may_write_memory, may_write_memory_1): New globals.
4320 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4321 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4322 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4324 (may_stop, may_stop_1): New global.
4325 (target_xfer_partial): Test for write permission.
4326 (target_store_registers): Ditto.
4327 (target_insert_breakpoint): New function.
4328 (target_remove_breakpoint): New function.
4329 (target_stop): New function.
4330 (_initialize_targets): Add new set/show variables.
4331 (set_write_memory_permission): New function.
4332 (update_target_permissions): New function.
4333 (set_target_permissions): New function.
4334 (update_current_target): Default to_set_permissions.
4335 (_initialize_targets): Use new globals and setter function.
4336 * tracepoint.c (start_tracing): Test for permission.
4337 * inferior.h (update_observer_mode): Declare.
4338 * infrun.c (non_stop_1): Define earlier.
4339 (observer_mode, observer_mode_1): New globals.
4340 (set_observer_mode, show_observer_mode): New functions.
4341 (update_observer_mode): New function.
4342 (_initialize_infrun): Define "set observer" command.
4343 * remote.c (PACKET_QAllow): New optional packet.
4344 (remote_protocol_features): Add QAllow.
4345 (remote_set_permissions): New function.
4346 (remote_start_remote): Call it.
4347 (init_remote_ops): Add it to target vector.
4348 (_initialize_remote): Add config command for QAllow.
4350 2010-06-11 Tom Tromey <tromey@redhat.com>
4352 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4353 DW_AT_vtable_elem_location even when GCC extension is seen.
4355 2010-06-11 Tom Tromey <tromey@redhat.com>
4357 PR gdb/9977, PR exp/11636:
4358 * value.h (value_offset): Update.
4359 (struct lval_funcs) <check_validity>: New field.
4360 <copy_closure>: Make argument const.
4361 (value_computed_closure): Update.
4362 (value_contents_for_printing): Declare.
4363 (value_bits_valid): Likewise.
4364 (val_print): Likewise.
4365 (set_value_component_location): Update.
4366 (value_entirely_optimized_out): Declare.
4367 * value.c (value_offset): Argument now const.
4368 (require_not_optimized_out): New function.
4369 (value_contents_for_printing): New function.
4370 (value_contents_all): Call require_not_optimized_out.
4371 (value_contents): Likewise.
4372 (value_bits_valid): New function.
4373 (value_computed_closure): Argument now const.
4374 (set_value_component_location): Make 'whole' argument const.
4375 (value_entirely_optimized_out): New function.
4376 (value_bitsize): Argument now 'const'.
4377 (value_bitpos): Likewise.
4378 (value_type): Likewise.
4379 * valprint.h (val_print_array_elements): Update.
4380 * valprint.c (val_print): Add 'val' argument. Use
4381 valprint_check_validity.
4382 (valprint_check_validity): New function.
4383 (value_check_printable): Use value_entirely_optimized_out.
4384 (common_val_print): Update.
4385 (value_print): Likewise.
4386 (val_print_array_elements): Add 'val' argument.
4387 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4388 value_bits_valid. Reinit frame cache for lval_computed.
4389 * sh64-tdep.c (sh64_do_register): Update.
4390 * scm-valprint.c (scm_val_print): Add 'val' argument.
4391 * scm-lang.h (scm_val_print): Update.
4392 * python/python.h (apply_val_pretty_printer): Update.
4393 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4394 argument. Call set_value_component_location.
4395 * printcmd.c (print_scalar_formatted): Update.
4396 * p-valprint.c (pascal_val_print): Add 'val' argument.
4397 (pascal_object_print_value_fields): Likewise.
4398 (pascal_object_print_value): Likewise.
4399 (pascal_object_print_static_field): Update.
4400 * p-lang.h (pascal_val_print): Update.
4401 (pascal_object_print_value_fields): Update.
4402 * mt-tdep.c (mt_registers_info): Update.
4403 * mi/mi-main.c (get_register): Update.
4404 (mi_cmd_data_evaluate_expression): Use common_val_print.
4405 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4406 (m2_print_unbounded_array): Likewise.
4407 (m2_val_print): Likewise.
4408 * m2-lang.h (m2_val_print): Update.
4409 * language.h (struct language_defn) <la_val_print>: Add 'val'
4411 (LA_VAL_PRINT): Likewise.
4412 * language.c (unk_lang_val_print): Add 'val' argument.
4413 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4414 (java_val_print): Likewise.
4415 * jv-lang.h (java_val_print): Add 'val' argument.
4416 * infcmd.c (default_print_registers_info): Update.
4417 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4418 (f77_print_array): Likewise.
4419 (f_val_print): Likewise.
4420 * f-lang.h (f_val_print): Add 'val' argument.
4421 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4423 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4424 set_value_optimized_out.
4425 (write_pieced_value): Use value_bitsize and value_bitpos.
4426 <default>: Don't exit loop.
4427 (check_pieced_value_validity): New function.
4428 (pieced_value_funcs): Reference check_pieced_value_validity,
4429 check_pieced_value_invalid.
4430 (copy_pieced_value_closure): Update.
4431 (check_pieced_value_bits): New function.
4432 (check_pieced_value_invalid): New function.
4433 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4434 (d_val_print): Likewise.
4435 * d-lang.h (d_val_print): Update.
4436 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4437 (cp_print_value_fields_rtti): Likewise.
4438 (cp_print_value): Likewise.
4439 (cp_print_static_field): Update.
4440 * c-valprint.c (c_val_print): Add 'val' argument.
4441 (c_value_print): Update.
4442 * c-lang.h (c_val_print): Update.
4443 (cp_print_value_fields): Likewise.
4444 (cp_print_value_fields_rtti): Likewise.
4445 * ada-valprint.c (struct ada_val_print_args): Remove.
4446 (val_print_packed_array_elements): Add 'val' argument.
4447 (ada_val_print): Likewise. Rewrite.
4448 (ada_val_print_stub): Remove.
4449 (ada_val_print_array): Add 'val' argument.
4450 (ada_val_print_1): Likewise.
4451 (print_variant_part): Likewise.
4452 (ada_value_print): Update.
4453 (print_record): Add 'val' argument.
4454 (print_field_values): Likewise.
4455 * ada-lang.h (ada_val_print): Update.
4457 2010-06-11 Tom Tromey <tromey@redhat.com>
4459 * vec.h (VEC_cleanup): New macro.
4460 (DEF_VEC_ALLOC_FUNC_I): Update.
4461 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4462 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4463 * dwarf2loc.c (struct axs_var_loc): Remove.
4464 (unimplemented): New function.
4465 (translate_register): Likewise.
4466 (access_memory): Likewise.
4467 (compile_dwarf_to_ax): Likewise.
4468 (dwarf2_tracepoint_var_loc): Remove.
4469 (dwarf2_tracepoint_var_access): Likewise.
4470 (dwarf2_tracepoint_var_ref): Likewise.
4471 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4472 (loclist_tracepoint_var_ref): Likewise.
4473 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4474 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4475 require_composition. No longer static.
4476 (execute_stack_op): Update.
4477 * ax-gdb.h (trace_kludge): Declare.
4479 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4481 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4482 (should_be_inserted): Return zero also on NULL OWNER.
4483 (breakpoint_program_space_exit): New OWNER comment.
4484 (insert_breakpoint_locations): Extend comment for OWNER.
4485 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4486 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4488 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4489 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4490 (bpstat_check_location): New assert on OWNER.
4491 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4492 and B initializations to the code block. New assert on them.
4493 (print_one_breakpoint_location): New OWNER comment.
4494 (watchpoint_locations_match): Assert on OWNER.
4495 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4496 initializations to the code block. New assert on OWNER.
4497 (set_breakpoint_location_function): New assert on OWNER.
4498 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4499 (bp_location_compare, update_global_location_list)
4500 (update_global_location_list): New OWNER comment.
4502 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4504 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4506 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4508 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4509 (lin_thread_get_thread_signals): Remove prototype.
4510 (GET_THREAD_SIGNALS): Remove.
4511 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4512 * linux-thread-db.c (check_thread_signals): Directly call
4513 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4515 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4517 * gregset.h (GDB_FPXREGSET_T): Remove.
4518 (gdb_fpxregset_t): Likewise.
4519 (supply_fpxregset): Remove prototype.
4520 (fill_fpxregset): Likewise.
4521 * i386-linux-nat.c (supply_fpxregset): Remove.
4522 (fill_fpxregset): Likewise.
4523 (fetch_fpxregs): Inline supply_fpxregset call.
4524 (store_fpxregs): Inline fill_fpxregset call.
4526 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4527 * config/i386/nm-linux.h: Remove file.
4529 2010-06-09 Michael Snyder <msnyder@vmware.com>
4531 * target.c (update_current_target): Fix spelling error in comment.
4532 (target_mourn_inferior): Fix spelling error in error message.
4534 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4536 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4537 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4539 2010-06-08 Michael Snyder <msnyder@vmware.com>
4541 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4543 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4545 * configure.ac <"${have_libpython}" != no>: New workaround of
4547 * configure: Regenerate.
4549 2010-06-08 Hui Zhu <teawater@gmail.com>
4551 * record.c (record_wait): Move signal out of replay code.
4553 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4556 * dwarf2-frame.c (no_dwarf_call): New function.
4557 (execute_stack_op): Set CTX->DWARF_CALL.
4558 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4559 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4560 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4561 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4562 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4563 (needs_frame_dwarf_call): New function.
4564 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4565 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4566 Update the comment. Move variables die, offset and error call to ...
4567 (follow_die_ref): ... a new function.
4568 (dwarf2_fetch_die_location_block): New function.
4569 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4571 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4573 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4574 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4575 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4576 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4578 (struct needs_frame_baton): New field per_cu.
4579 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4580 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4582 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4584 * cp-support.c (make_symbol_overload_list_namespace): Only search
4585 static and global blocks.
4586 (make_symbol_overload_list_block): New function.
4587 (make_symbol_overload_list): Separate namespace search from block
4589 (make_symbol_overload_list_qualified): Use
4590 make_symbol_overload_list_block.
4592 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4594 * value.h: Created oload_search_type enum.
4595 (find_overload_match): Use oload_search_type enum.
4596 * valops.c (find_overload_match): Support combined member and
4598 * eval.c (evaluate_subexp_standard): Calls to
4599 find_overload_match now use oload_search_type enum.
4600 (oload_method_static): Verify index is a proper value.
4601 * valarith.c (value_user_defined_cpp_op): Search for and handle
4602 both member and non-member operators.
4603 (value_user_defined_cpp_op): New function.
4604 (value_user_defined_op): New function.
4605 (value_x_unop): Use value_user_defined_op.
4606 (value_x_binop): Ditto.
4607 * cp-support.c (make_symbol_overload_list_using): Added block
4609 Add check for namespace aliases and imported declarations.
4611 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4613 * breakpoint.h (owner): Extend the comment.
4615 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4617 Clear stale specific bp_location from former whole breakpoint.
4618 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4620 (free_bp_location): ... here. Rename there the called function to
4621 bpstat_remove_bp_location_callback.
4622 (bpstat_remove_breakpoint_callback): Rename to ...
4623 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4624 to struct bp_location. Change the called function to
4625 bpstat_remove_bp_location. Create new declaration for the function.
4626 (bpstat_remove_breakpoint): Rename to ...
4627 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4628 code for the new parameter type.
4630 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4632 * README: Make version-agnostic.
4634 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 Fix duplicate types for single DIE.
4637 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4639 (read_array_type): Remove type initialization. Recheck get_die_type
4640 after initial die_type. Move set_die_type before set_descriptive_type.
4641 (read_set_type): New variable domain_type. Recheck get_die_type after
4642 initial die_type. Move attr initialization later.
4643 (read_tag_pointer_type, read_tag_reference_type): New variable
4644 target_type. Recheck get_die_type after initial die_type.
4645 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4646 die_type and die_containing_type.
4647 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4648 Recheck get_die_type after initial die_type.
4649 (read_subrange_type): Recheck get_die_type after initial die_type.
4650 Move set_die_type before set_descriptive_type.
4651 (set_die_type): Extend the function comment. Call complaint if DIE has
4652 some type already set.
4654 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4656 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4657 for current naming of thread groups (iN, not N).
4659 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4661 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4662 * parse.c (operator_length): Likewise.
4663 (operator_length_standard): Likewise.
4664 * parser-defs.h (operator_length): Likewise.
4665 (operator_length_standard): Likewise.
4666 (struct exp_descriptor <operator_length>): Likewise.
4668 2010-06-04 Doug Evans <dje@google.com>
4670 Add support for enabling/disabling individual pretty-printers.
4671 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4672 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4673 * python/python.c (gdbpy_enabled_cst): Define.
4674 (_initialize_python): Initialize gdbpy_enabled_cst.
4677 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4679 * breakpoint.c (update_global_location_list): Fix comment typo.
4681 2010-06-04 Hui Zhu <teawater@gmail.com>
4683 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4685 2010-06-03 Doug Evans <dje@google.com>
4687 * configure.ac: Don't fail if python is unusable when
4688 configured with --with-python=auto.
4689 * configure: Regenerate.
4691 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4693 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4695 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4697 * valprint.h (get_array_bounds): Change low and high parameter types
4699 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4701 (val_print_array_elements): Adapt to change above.
4702 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4703 * p-valprint.c (pascal_val_print): Likewise.
4705 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4707 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4708 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4711 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 Support DW_TAG_module as separate namespaces.
4714 * dwarf2read.c (typename_concat): New parameter physname.
4715 (read_module_type): New function and declaration.
4716 (scan_partial_symbols): Scan also DW_TAG_module children.
4717 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4718 to typename_concat backward compatible physname value 0.
4719 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4720 backward compatible physname value 0.
4721 (add_partial_module, read_module): Remove FIXME comment.
4722 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4723 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4724 DIEs under DW_TAG_module.
4725 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4726 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4727 && physname and return there instead of just setting NAME. Extend
4728 the main block for language_fortran. Pass physname parameter to the
4729 typename_concat call.
4730 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4731 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4732 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4733 missing from SYMBOL_SET_NAMES in the language_fortran case.
4734 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4736 (read_type_die) <DW_TAG_module>: New.
4737 (MAX_SEP_LEN): Increase to 7.
4738 (typename_concat): New parameter physname. New variable lead. Support
4739 also language_fortran.
4740 * f-exp.y (yylex): Consider : also as a symbol name character class.
4741 * f-lang.c: Include cp-support.h.
4742 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4743 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4744 f_word_break_characters and f_make_symbol_completion_list.
4745 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4746 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4747 * symtab.c (symbol_init_language_specific): Support language_fortran.
4748 (symbol_find_demangled_name): New comment on language_fortran.
4749 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4750 for language_fortran.
4751 (lookup_symbol_aux_local): Check imports also for language_fortran.
4752 (default_make_symbol_completion_list): Rename to ...
4753 (default_make_symbol_completion_list_break_on): ... this name. New
4754 parameter break_on, use it.
4755 (default_make_symbol_completion_list): New stub.
4756 * symtab.h (default_make_symbol_completion_list_break_on): New
4759 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4761 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4764 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4766 * dwarf2read.c (typename_concat): Add const to the variable sep.
4768 2010-06-02 Tom Tromey <tromey@redhat.com>
4770 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4771 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4772 type is const. Add 'def' argument. Add missing operators, remove
4774 (decode_locdesc): Update.
4775 (dwarf2_always_disassemble): New global.
4776 (show_dwarf2_always_disassemble): New function.
4777 (_initialize_dwarf2_read): Add always-disassemble.
4778 (dwarf2_per_cu_offset_size): New function.
4779 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4780 (piece_end_p): New function.
4781 (locexpr_describe_location_piece): Replace 'size' argument with
4782 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4783 some constants. Remove errors.
4784 (disassemble_dwarf_expression): New function.
4785 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4786 Add 'offset_size' argument.
4787 (loclist_describe_location): Change output formatting.
4788 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4790 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4792 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4793 anonymous type case.
4795 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4797 * dwarf2read.c (read_subrange_type): Handle missing base type
4798 according to Dwarf-2 specifications.
4800 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4802 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4804 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4805 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4806 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4807 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4808 UNOP_CHMAX, UNOP_CHMIN.
4809 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4810 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4811 UNOP_CHMIN>: Remove opcodes.
4813 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4815 * dwarf2read.c (read_func_scope): Do not complain for
4816 external function if bounds are not found.
4818 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4820 * NEWS: Mention gdbserver fast tracepoints support.
4822 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4824 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4826 (windows_set_console_info): New function.
4827 (windows_create_inferior): Call windows_set_console_info
4828 if NEW_CONSOLE is true.
4829 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4830 (_initialize_loadable): Initialize GetConsoleFontSize and
4831 GetCurrentConsoleFont.
4833 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 * Makefile.in (RDYNAMIC): New.
4836 (SFILES): Add proc-service.list.
4837 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4838 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4839 * config/arm/linux.mh: Likewise.
4840 * config/i386/linux.mh: Likewise.
4841 * config/i386/linux64.mh: Likewise.
4842 * config/ia64/linux.mh: Likewise.
4843 * config/m32r/linux.mh: Likewise.
4844 * config/m68k/linux.mh: Likewise.
4845 * config/mips/linux.mh: Likewise.
4846 * config/pa/linux.mh: Likewise.
4847 * config/powerpc/linux.mh: Likewise.
4848 * config/powerpc/ppc64-linux.mh: Likewise.
4849 * config/s390/s390.mh: Likewise.
4850 * config/sparc/linux.mh: Likewise.
4851 * config/sparc/linux64.mh: Likewise.
4852 * config/xtensa/linux.mh: Likewise.
4853 * configure.ac: New RDYNAMIC on native host and GCC.
4854 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4855 * configure: Regenerate.
4856 * proc-service.list: New.
4858 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4860 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4863 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 * linux-nat.c (linux_nat_wait_1): Do not call
4866 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4867 TARGET_WAITKIND_SIGNALLED.
4869 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4871 * ada-lang.c (ada_inferior_data): New struct.
4872 (ada_inferior_data): New static global.
4873 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4874 (ada_get_tsd_type): New functions.
4875 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4876 to look the tsd type up.
4877 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4878 event. Set ada_inferior_data.
4880 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4882 * remote.c (unpack_varlen_hex): Remove forward declaration.
4883 (remote_console_output): Make static, and add forward declaration.
4884 * remote.h: Drop FIXME comment.
4885 (unpack_varlen_hex): Declare.
4886 (remote_console_output, remote_cisco_objfile_relocate)
4887 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4888 Delete declarations.
4889 * tracepoint.c: Include "remote.h".
4890 (unpack_varlen_hex): Delete declaration.
4892 2010-05-27 Tom Tromey <tromey@redhat.com>
4894 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4895 (allocate_piece_closure): Initialize refc.
4896 (copy_pieced_value_closure): Use refc.
4897 (free_pieced_value_closure): Likewise.
4899 2010-05-27 Tom Tromey <tromey@redhat.com>
4901 * arm-tdep.c (push_stack_item): 'contents' now const.
4902 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4903 value_contents_writeable. Introduce new temporary.
4905 2010-05-27 Tom Tromey <tromey@redhat.com>
4907 * findcmd.c (parse_find_args): Use value_contents, not
4910 2010-05-27 Tom Tromey <tromey@redhat.com>
4912 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4913 const. Use value_contents, not value_contents_writeable.
4915 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4917 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4918 by call to value_contents.
4920 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4922 * MAINTAINERS: Add myself for write after approval privileges.
4924 2010-05-26 Doug Evans <dje@google.com>
4926 Allow python to find its files if moved from original location.
4927 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4928 (GDB_AC_WITH_DIR): Call it.
4929 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4930 python installation directory.
4931 * config.in: Regenerate.
4932 * configure: Regenerate.
4933 * defs.h (python_libdir): Declare.
4934 * main.c (python_libdir): Define.
4935 (captured_main): Initialize python_libdir.
4936 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4937 call Py_SetProgramName to make sure python can find its libraries
4940 * configure.ac: Try to use python's distutils to fetch compilation
4942 * configure: Regenerate.
4943 * python/python-config.py: New file.
4945 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4947 * ser-tcp.c (net_open): Check error return from socket() call by its
4948 equality to -1 not by it being negative.
4949 (net_close): Likewise.
4951 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4953 * NEWS: Mention the `qRelocInsn' feature.
4954 * gdbarch.sh (relocate_instruction): New.
4955 * amd64-tdep.c (rip_relative_offset): New.
4956 (append_insns): New.
4957 (amd64_relocate_instruction): New.
4958 (amd64_init_abi): Install it.
4959 * i386-tdep.c (append_insns): New.
4960 (i386_relocate_instruction): New.
4961 (i386_gdbarch_init): Install it.
4962 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4963 * gdbarch.h, gdbarch.c: Regenerate.
4965 2010-05-26 Tom Tromey <tromey@redhat.com>
4967 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4968 (struct dwarf2_loclist_baton) <data>: Likewise.
4969 * dwarf2loc.c (find_location_expression): Constify return type.
4970 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4971 (dwarf2_loc_desc_needs_frame): Likewise.
4972 (loclist_read_variable): Constify.
4973 (loclist_describe_location): Likewise.
4974 (loclist_tracepoint_var_ref): Likewise.
4976 2010-05-25 Tom Tromey <tromey@redhat.com>
4978 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4979 (dwarf_expr_frame_base_1): Likewise.
4980 (read_pieced_value): Update.
4981 (needs_frame_frame_base): Constify.
4982 (dwarf2_tracepoint_var_loc): Likewise.
4983 (dwarf2_tracepoint_var_access): Likewise.
4984 (locexpr_describe_location_piece): Likewise.
4985 (locexpr_describe_location_1): Likewise.
4986 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4989 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4990 (dwarf_expr_eval, read_uleb128, read_sleb128)
4991 (dwarf2_read_address): Update.
4992 * dwarf2expr.c (dwarf_expr_eval): Constify.
4993 (read_uleb128): Likewise.
4994 (read_sleb128): Likewise.
4995 (dwarf2_read_address): Likewise.
4996 (require_composition): Likewise.
4997 (execute_stack_op): Likewise.
4998 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5000 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5002 (no_get_frame_base): Constify.
5003 (execute_stack_op): Likewise.
5004 (execute_cfa_program): Likewise.
5005 (read_encoded_value): Likewise.
5007 2010-05-25 Doug Evans <dje@google.com>
5009 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5011 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5012 * event-loop.c: ... here.
5013 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5014 `error' for clarity.
5015 (tui_getc): Pass correct value for `error' parameter to
5016 tui_readline_output.
5018 Add python gdb.GdbError and gdb.string_to_argv.
5019 * NEWS: Document them.
5020 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5021 the exception is gdb.GdbError. Print a second traceback if there's
5022 an error computing the error message.
5023 (gdbpy_string_to_argv): New function.
5024 * python/py-utils.c (gdbpy_obj_to_string): New function.
5025 (gdbpy_exception_to_string): New function.
5026 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5027 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5028 (gdbpy_gdberror_exc): Declare.
5029 * python/python.c (gdbpy_gdberror_exc): New global.
5030 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5032 (GdbMethods): Add string_to_argv.
5034 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5036 * windows-nat.c (display_selector): Call GetLastError to give better
5037 failure explanation.
5039 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5041 * config.in: Regenerate.
5043 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5046 * target.c (push_target): Return only void. Remove the return value
5048 * target.h (push_target): Return only void.
5050 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5052 Update gnulib from latest git.
5053 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5055 * gnulib/memcmp.c: Removed.
5056 * gnulib/memchr.valgrind: New.
5057 * gnulib/stddef.in.h: New.
5058 * gnulib/Makefile.am: Updated.
5059 * gnulib/memchr.c: Updated.
5060 * gnulib/memmem.c: Updated.
5061 * gnulib/stdint.in.h: Updated.
5062 * gnulib/str-two-way.h: Updated.
5063 * gnulib/string.in.h: Updated.
5064 * gnulib/wchar.in.h: Updated.
5066 * gnulib/extra/link-warning.h: Removed.
5067 * gnulib/extra/c++defs.h: New.
5068 * gnulib/extra/warn-on-use.h: New.
5069 * gnulib/extra/arg-nonnull.h: Updated.
5071 * gnulib/m4/extensions.m4: Updated.
5072 * gnulib/m4/gnulib-cache.m4: Updated.
5073 * gnulib/m4/gnulib-common.m4: Updated.
5074 * gnulib/m4/gnulib-comp.m4: Updated.
5075 * gnulib/m4/gnulib-tool.m4: Updated.
5076 * gnulib/m4/include_next.m4: Updated.
5077 * gnulib/m4/longlong.m4: Updated.
5078 * gnulib/m4/memchr.m4: Updated.
5079 * gnulib/m4/memmem.m4: Updated.
5080 * gnulib/m4/stdint.m4: Updated.
5081 * gnulib/m4/string_h.m4: Updated.
5082 * gnulib/m4/memcmp.m4: Removed.
5083 * gnulib/m4/onceonly_2_57.m4: Removed.
5084 * gnulib/m4/00gnulib.m4: New.
5085 * gnulib/m4/mmap-anon.m4: New.
5086 * gnulib/m4/multiarch.m4: New.
5087 * gnulib/m4/onceonly.m4: New.
5088 * gnulib/m4/stddef_h.m4: New.
5089 * gnulib/m4/warn-on-use.m4: New.
5090 * gnulib/m4/wchar.m4: Removed.
5091 * gnulib/m4/wchar_h.m4: New.
5092 * gnulib/m4/wchar_t.m4: New.
5093 * gnulib/m4/wint_t.m4: New.
5095 * aclocal.m4: Regenerate.
5096 * config.in: Likewise.
5097 * configure: Likewise.
5098 * gnulib/Makefile.in: Likewise.
5100 2010-05-21 Tom Tromey <tromey@redhat.com>
5102 * dwarf2loc.c (extract_bits_primitive): New function.
5103 (extract_bits): Likewise.
5104 (insert_bits): Likewise.
5105 (copy_bitwise): Likewise.
5106 (read_pieced_value): Do all operations in bits.
5107 (write_pieced_value): Likewise.
5108 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5109 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5110 Always use xrealloc to resize piece array.
5111 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5112 <DW_OP_piece>: Update.
5113 <DW_OP_bit_piece>: New case.
5115 2010-05-21 Tom Tromey <tromey@redhat.com>
5117 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5118 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5119 * dwarf2expr.h (enum dwarf_value_location)
5120 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5121 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5122 (add_piece): Handle empty piece.
5123 (execute_stack_op) <DW_OP_piece>: Handle
5124 DWARF_VALUE_OPTIMIZED_OUT.
5126 2010-05-21 Tom Tromey <tromey@redhat.com>
5128 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5129 evaluate_subexp, not evaluate_subexp_with_coercion.
5131 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5133 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5136 2010-05-21 Tom Tromey <tromey@redhat.com>
5138 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5140 (write_pieced_value): Likewise.
5142 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5144 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5145 and DW_TAG_volatile_type.
5146 (new_symbol): Likewise.
5148 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5150 * p-valprint.c (pascal_val_print): Call get_array_bounds
5151 to obtain the number of elements in an array.
5153 2010-05-19 Doug Evans <dje@google.com>
5155 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5157 * python.c (source_python_script): Add comment.
5158 (source_python_script_for_objfile): Remove unnecessary call to
5161 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5162 Sergio Durigan Junior <sergiodj@redhat.com>
5165 * parse.c (exp_iterate): Use operator_length wrapper function.
5167 2010-05-18 Michael Snyder <msnyder@vmware.com>
5169 * ada-lang.c: White space.
5170 * ada-typeprint.c: White space.
5171 * ada-valprint.c: White space.
5172 * addrmap.c: White space.
5173 * auxv.c: White space.
5174 * ax-gdb.c: White space.
5176 2010-05-18 Hui Zhu <teawater@gmail.com>
5178 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5180 (inferior_call_waitpid): Move make_cleanup out of check.
5181 Check the return of waitpid.
5182 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5184 2010-05-17 Michael Snyder <msnyder@vmware.com>
5186 * tui/tui.c: White space.
5187 * tui/tui-data.c: White space.
5188 * tui/tui-disasm.c: White space.
5189 * tui/tui-file.c: White space.
5190 * tui/tui-interp.c: White space.
5191 * tui/tui-main.c: White space.
5192 * tui/tui-out.c: White space.
5193 * tui/tui-regs.c: White space.
5194 * tui/tui-source.c: White space.
5195 * tui/tui-stack.c: White space.
5196 * tui/tui-win.c: White space.
5197 * tui/tui-winsource.c: White space.
5199 * procfs.c: White space.
5201 * python/py-auto-load.c: White space.
5202 * python/py-block.c: White space.
5203 * python/py-breakpoint.c: White space.
5204 * python/py-cmd.c: White space.
5205 * python/py-function.c: White space.
5206 * python/py-lazy-string.c: White space.
5207 * python/py-objfile.c: White space.
5208 * python/py-param.c: White space.
5209 * python/py-prettyprint.c: White space.
5210 * python/py-progspace.c: White space.
5211 * python/py-symtab.c: White space.
5212 * python/python.c: White space.
5213 * python/py-type.c: White space.
5214 * python/py-utils.c: White space.
5215 * python/py-value.c: White space.
5217 * mi/mi-cmd-break.c: White space.
5218 * mi/mi-cmd-env.c: White space.
5219 * mi/mi-cmds.c: White space.
5220 * mi/mi-cmd-stack.c: White space.
5221 * mi/mi-cmd-var.c: White space.
5222 * mi/mi-console.c: White space.
5223 * mi/mi-getopt.c: White space.
5224 * mi/mi-interp.c: White space.
5225 * mi/mi-main.c: White space.
5226 * mi/mi-out.c: White space.
5227 * mi/mi-parse.c: White space.
5229 * cli/cli-cmds.c: White space.
5230 * cli/cli-decode.c: White space.
5231 * cli/cli-dump.c: White space.
5232 * cli/cli-interp.c: White space.
5233 * cli/cli-logging.c: White space.
5234 * cli/cli-script.c: White space.
5235 * cli/cli-setshow.c: White space.
5237 * valarith.c: White space.
5238 * valops.c: White space.
5239 * valprint.c: White space.
5240 * value.c: White space.
5241 * varobj.c: White space.
5242 * xcoffread.c: White space.
5243 * xml-support.c: White space.
5244 * xml-tdesc.c: White space.
5246 2010-05-17 Andreas Schwab <schwab@redhat.com>
5249 * c-lang.c (c_printstr): Compute real length of NUL terminated
5252 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5254 * parse.c (parse_exp_in_context): When block is not NULL, use
5255 its associated language to parse the expression instead of
5256 the current_language.
5258 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5260 * jv-lang.c (java_lookup_class): Remove commented out code.
5261 (type_from_class): Likewise.
5262 (java_op_print_tab): Remove commented-out elements.
5264 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5266 * ada-lang.c (to_fixed_range_type): The the raw index type as
5267 argument instead of the raw type name. Remove orig_type parameter.
5268 Update calls throughout.
5269 (ada_fixup_array_indexes_type): New function.
5270 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5271 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5272 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5273 Remove name parameter.
5274 (print_array_type): Add call to ada_fixup_array_indexes_type.
5275 Update calls to print_range_type.
5276 (ada_print_type): Update calls to print_range_type.
5278 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5280 * dwarf2read.c (read_set_type): Set type length if
5281 DW_AT_byte_size attribute is present.
5283 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5285 * p-valprint.c (pascal_val_print): Handle set type if range limits
5286 are undefined but size is known.
5288 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5290 * procfs.c: Reformat.
5292 2010-05-16 Michael Snyder <msnyder@vmware.com>
5294 * target.c: White space.
5295 * target-descriptions.c: White space.
5296 * target-memory.c: White space.
5297 * thread.c: White space.
5298 * top.c: White space.
5299 * tracepoint.c: White space.
5300 * trad-frame.c: White space.
5301 * tramp-frame.c: White space.
5302 * ui-file.c: White space.
5303 * ui-out.c: White space.
5304 * user-regs.c: White space.
5305 * utils.c: White space.
5307 * scm-exp.c: White space.
5308 * scm-lang.c: White space.
5309 * scm-valprint.c: White space.
5310 * sentinel-frame.c: White space.
5311 * ser-base.c: White space.
5312 * ser-go32.c: White space.
5313 * serial.c: White space.
5314 * ser-mingw.c: White space.
5315 * ser-pipe.c: White space.
5316 * ser-tcp.c: White space.
5317 * ser-unix.c: White space.
5318 * solib.c: White space.
5319 * solib-darwin.c: White space.
5320 * solib-frv.c: White space.
5321 * solib-irix.c: White space.
5322 * solib-osf.c: White space.
5323 * solib-pa64.c: White space.
5324 * solib-som.c: White space.
5325 * solib-spu.c: White space.
5326 * solib-svr4.c: White space.
5327 * solib-target.c: White space.
5328 * source.c: White space.
5329 * stabsread.c: White space.
5330 * stack.c: White space.
5331 * std-regs.c: White space.
5332 * symfile.c: White space.
5333 * symmisc.c: White space.
5334 * symtab.c: White space.
5336 2010-05-16 Michael Snyder <msnyder@vmware.com>
5338 * source.c (_initialize_source): Add "rev" as an abbreviation
5339 for the "reverse-search" command.
5341 2010-05-16 Michael Snyder <msnyder@vmware.com>
5343 * record.c: White space.
5344 * regcache.c: White space.
5345 * reggroups.c: White space.
5346 * remote-fileio.c: White space.
5347 * remote-m32r-sdi.c: White space.
5348 * remote-mips.c: White space.
5349 * remote-sim.c: White space.
5350 * remote.c: White space.
5351 (process_g_packet): Remove orphan braces.
5353 2010-05-15 Michael Snyder <msnyder@vmware.com>
5355 * parse.c: White space.
5356 * p-lang.c: White space.
5357 * posix-hdep.c: White space.
5358 * printcmd.c: White space.
5359 * progspace.c: White space.
5360 * prologue-value.c: White space.
5361 * psymtab.c: White space.
5362 * p-typeprint.c: White space.
5363 * p-valprint.c: White space.
5365 * objc-lang.c: White space.
5366 * objfiles.c: White space.
5367 * observer.c: White space.
5368 * osabi.c: White space.
5369 * osdata.c: White space.
5371 * m2-lang.c: White space.
5372 * m2-valprint.c: White space.
5373 * macrocmd.c: White space.
5374 * macroexp.c: White space.
5375 * macroscope.c: White space.
5376 * macrotab.c: White space.
5377 * main.c: White space.
5378 * maint.c: White space.
5379 * mdebugread.c: White space.
5380 * memattr.c: White space.
5381 * minsyms.c: White space.
5382 * monitor.c: White space.
5384 2010-05-14 Michael Snyder <msnyder@vmware.com>
5386 * jv-lang.c: White space.
5387 * jv-typeprint.c: White space.
5388 * jv-valprint.c: White space.
5389 * language.c: White space.
5390 * libunwind-frame.c: White space.
5391 * linespec.c: White space.
5392 * linux-nat.c: White space.
5393 * linux-record.c: White space.
5394 * linux-thread-db.c: White space.
5396 * infcall.c: White space.
5397 * inf-child.c: White space.
5398 * infcmd.c: White space.
5399 * inferior.c: White space.
5400 * inf-loop.c: White space.
5401 * inflow.c: White space.
5402 * inline-frame.c: White space.
5403 * interps.c: White space.
5405 * gcore.c: White space.
5406 * gdb.c: White space.
5407 * gdbtypes.c: White space.
5408 * gnu-nat.c: White space.
5409 * gnu-v2-abi.c: White space.
5410 * gnu-v3-abi.c: White space.
5412 * findcmd.c: White space.
5413 * findvar.c: White space.
5414 * fork-child.c: White space.
5415 * frame-base.c: White space.
5416 * frame.c: White space.
5417 * frame-unwind.c: White space.
5418 * f-valprint.c: White space.
5420 * elfread.c: White space.
5421 * environ.c: White space.
5422 * eval.c: White space.
5423 * event-loop.c: White space.
5424 * event-top.c: White space.
5425 * exceptions.c: White space.
5426 * exec.c: White space.
5427 * expprint.c: White space.
5429 * dbxread.c: White space.
5430 * dcache.c: White space.
5431 * disasm.c: White space.
5432 * doublest.c: White space.
5433 * dsrec.c: White space.
5434 * dummy-frame.c: White space.
5435 * dwarf2expr.c: White space.
5436 * dwarf2-frame.c: White space.
5437 * dwarf2loc.c: White space.
5438 * dwarf2read.c: White space.
5440 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5444 * python/py-value.c (valpy_hash): New function.
5445 (value_object_type): Register valpy_hash.
5447 2010-05-14 Hui Zhu <teawater@gmail.com>
5448 Michael Snyder <msnyder@vmware.com>
5450 * linux-fork.c (gdbthread.h): New include.
5451 (fork_info): Add parent_ptid.
5452 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5454 (delete_checkpoint_command): Call inferior_call_waitpid.
5455 (checkpoint_command): Set parent_ptid.
5457 2010-05-13 Michael Snyder <msnyder@vmware.com>
5459 * dictionary.c: Re-indent to GNU coding standard.
5461 * charset.c: White space.
5462 * c-lang.c: White space.
5463 * cli-out.c: White space.
5464 * coffread.c: White space.
5465 * complaints.c: White space.
5466 * completer.c: White space.
5467 * corefile.c: White space.
5468 * corelow.c: White space.
5469 * cp-abi.c: White space.
5470 * cp-namespace.c: White space.
5471 * cp-support.c: White space.
5472 * cp-valprint.c: White space.
5473 * c-typeprint.c: White space.
5474 * c-valprint.c: White space.
5475 * blockframe.c: White space.
5476 * breakpoint.c: White space.
5477 * buildsym.c: White space.
5478 * blockframe.c: White space.
5479 * bcache.c: White space.
5480 * gdbarch.sh: White space, add blank lines.
5481 * arch-utils.c: Ditto.
5482 * gdbarch.c: Regenerate.
5483 * frame.c: White space, add blank lines.
5484 * stack.c: White space, add blank lines.
5485 (initialize_stack): Remove long-dead code.
5487 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5491 (locexpr_read_variable, loclist_read_variable): Update the callers.
5493 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5497 Remove check of NULL returned by tag_type_to_type.
5498 (die_containing_type): Remove variable type. Remove type_die variable
5499 initialization. Remove check of NULL returned by tag_type_to_type.
5501 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5504 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5505 names of unnamed structures or unions.
5507 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5509 * procfs.c (proc_watchpoint_address): New function.
5510 (procfs_stopped_by_watchpoint): Remove useless check after
5511 find_procinfo_or_die call.
5512 (procfs_stopped_data_address): New function.
5513 (procfs_use_watchpoints): Register new watchpoint related function.
5515 2010-05-11 Tom Tromey <tromey@redhat.com>
5517 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5519 2010-05-10 Michael Snyder <msnyder@vmware.com>
5521 * utils.c: White space cleanup.
5523 2010-05-10 Tom Tromey <tromey@redhat.com>
5525 * eval.c (ptrmath_type_p): Add 'lang' argument.
5526 (evaluate_subexp_standard): Update.
5527 (evaluate_subexp_with_coercion): Update.
5528 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5530 2010-05-10 Michael Snyder <msnyder@vmware.com>
5532 * utils.c (do_fclose_cleanup) Restore local variable.
5534 2010-05-09 Doug Evans <dje@google.com>
5536 * record.c (init_record_core_ops): Rename record_core to record-core.
5538 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5540 Implement task switching on pa-hpux.
5541 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5542 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5544 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5546 * valops.c (find_overload_match): Add missing i18n markup.
5548 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5550 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5552 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5555 list for the obconcat call.
5556 * mdebugread.c (parse_symbol): Likewise.
5557 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5559 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5560 New variable ap. Remove variables len and val.
5561 * symfile.h (obconcat): Likewise for the prototype.
5563 2010-05-07 Michael Snyder <msnyder@vmware.com>
5565 * python/python.c (execute_gdb_command): Remove unused variables.
5566 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5567 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5568 Remove unused variable.
5569 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5570 (cmdpy_completer): Remove unused variable.
5571 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5572 * python/py-function.c (fnpy_call): Remove unused variable.
5573 * python/py-objfile.c (objfile_to_objfile_object):
5574 Remove unused variable.
5575 * python/py-param.c (parmpy_init): Remove unused variable.
5576 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5577 Remove unused variable.
5578 (gdbpy_default_visualizer): Remove unused variable.
5579 * python/py-progspace.c (pspace_to_pspace_object):
5580 Remove unused variable.
5581 * python/py-symtab.c (symtab_and_line_to_sal_object):
5582 Remove unused variable.
5583 * python/py-type.c (typy_template_argument):
5584 Remove unused variable.
5585 * python/py-value.c (valpy_string): Remove unused variable.
5586 (convert_value_from_python): Remove unused variables.
5588 2010-05-07 Michael Snyder <msnyder@vmware.com>
5590 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5591 and use it to compute variable 't1'.
5593 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5595 * ada-lang.c (assign_aggregate): Remove unused variable.
5597 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5600 * valops.c (find_overload_match): Handle fsym == NULL case.
5601 Add int no_adl argument.
5602 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5604 Add int no_adl argument.
5605 (find_oload_champ_namespace): Add int no_adl argument.
5606 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5608 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5609 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5610 Evaluate arguments and use them to perform ADL lookup.
5611 Pass no_adl argument to find_overload_match.
5612 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5613 * cp-support.h: Added prototype for
5614 make_symbol_overload_list_namespace.
5615 * cp-support.c (make_symbol_overload_list_namespace): New function.
5616 (make_symbol_overload_list_adl_namespace): New function.
5617 (make_symbol_overload_list_adl): New function.
5618 (make_symbol_overload_list_using): Moved code to add function to
5619 overload set to make_symbol_overload_list_namespace.
5620 * c-exp.y: create UNKNOWN_CPP_NAME token.
5621 Add parse rule for ADL functions.
5622 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5624 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5626 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5629 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5631 Implement task switching on solaris targets.
5632 * sol-thread.c (thread_db_find_thread_from_tid)
5633 (sol_get_ada_task_ptid): New functions.
5634 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5636 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5638 * remote.c (remote_query_supported_append): Use reconcat.
5639 (remote_query_supported): Install a cleanup. Use reconcat.
5641 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5643 * gdbarch.sh (qsupported): Delete.
5644 * gdbarch.h, gdbarch.c: Regenerate.
5645 * remote.c (remote_query_supported): Remove use of
5648 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5650 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5653 2010-05-06 Michael Snyder <msnyder@vmware.com>
5655 * xml-support.c (xinclude_start_include): Delete unused variable.
5656 (xml_process_xincludes): Delete unused variable.
5657 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5658 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5659 (tdesc_find_arch_register): Delete unused variable.
5660 (tdesc_use_registers): Delete unused variable.
5661 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5662 * inferior.c (print_inferior): Delete unused variable.
5663 * record.c (record_open_1): Delete unused variable.
5664 (record_restore): Delete unused variable.
5665 (cmd_record_save): Delete unused variable.
5666 * gcore.c (derive_heap_segment): Delete unused variable.
5667 (objfile_find_memory_regions): Use unused variable.
5668 * jit.c (jit_inferior_init): Delete unused variable.
5669 * progspace.c (clone_program_space): Delete unused variable.
5670 (pspace_empty_p): Delete unused variable.
5672 * frame-unwind.c (frame_unwind_find_by_frame):
5673 Delete unused variable.
5674 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5675 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5676 (method_name_from_physname): Delete unused variable.
5677 (cp_func_name): Delete unused variable.
5678 (cp_validate_operator): Delete unused variable.
5679 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5680 Delete unused variable.
5681 * trad-frame.c (trad_frame_get_prev_register):
5682 Delete unused variable.
5683 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5685 * serial.c (serial_for_fd): Delete unused variable.
5686 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5687 * top.c (execute_command): Delete unused variable.
5688 (init_main): Delete unused variable.
5689 * utils.c (do_fclose_cleanup): Delete unused variable.
5690 (do_all_inferior_continuations): Delete unused variable.
5691 (initialize_utils): Delete unused variable.
5692 (internal_problem_mode): Delete unused global.
5693 * frame.c (get_prev_frame): Delete unused global.
5694 (get_frame_locals_address): Delete unused global.
5695 (get_frame_args_address): Delete unused global.
5697 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5698 (pascal_type_print_varspec_prefix): Delete unused variable.
5699 * f-typeprint.c (f_type_print_base): Delete unused variable.
5700 (f_type_print_varspec_suffix): Delete unused variable.
5701 * m2-typeprint.c (m2_print_type): Delete unused variable.
5702 (m2_long_set): Delete unused variable.
5703 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5704 * d-valprint.c (dynamic_array_type): Delete unused variable.
5705 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5706 Delete unused variable.
5707 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5708 * m2-valprint.c (m2_val_print): Delete unused variable.
5710 * ui-out.c (ui_out_field_int): Delete unused variable.
5711 (ui_out_field_fmt_int): Delete unused variable.
5712 * varobj.c (varobj_list_children): Delete unused variable.
5713 (varobj_set_value): Delete unused variable.
5714 (install_new_value_visualizer): Delete unused variable.
5715 (varobj_set_visualizer): Delete unused variable.
5716 (varobj_update): Delete unused variable.
5717 (varobj_editable_p): Delete unused variable.
5718 (c_value_of_root): Delete unused variable.
5719 (cplus_describe_child): Delete unused variable.
5721 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5722 (decode_constrained_packed_array_type): Delete unused variable.
5723 (add_defn_to_vec): Delete unused variable.
5724 (symbol_completion_match): Delete unused variable.
5725 (value_tag_from_contents_and_address): Delete unused variable.
5726 (ada_evaluate_subexp): Delete unused variable.
5727 * c-lang.c (classify_type): Delete unused variable.
5728 * f-lang.c (f_printstr): Delete unused variable.
5729 * objc-lang.c (objc_printstr): Delete unused variable.
5730 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5731 * jv-lang.c (type_from_class): ifdef unused variable.
5732 (java_class_name_from_physname): Delete unused variable.
5733 * m2-lang.c (m2_printstr): Delete unused variable.
5735 * objfiles.c (objfile_relocate): Delete unused variable.
5736 * maint.c (_initialize_maint_cmds): Delete unused variable.
5737 * demangle.c (_initialize_demangler): Delete unused variable.
5738 * corefile.c (reopen_exec_file): Delete unused variable.
5739 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5740 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5742 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5743 * memattr.c (mem_delete): Delete unused variable.
5744 (invalidate_target_mem_regions): Delete unused variable.
5745 * mem-break.c (default_memory_insert_breakpoint):
5746 Delete unused variable.
5747 * target.c (target_get_osdata): Delete unused variable.
5748 * parse.c (length_of_subexp): Delete unused variable.
5749 (prefixify_subexp): Delete unused variable.
5750 (exp_iterate): Delete unused variable.
5751 * reverse.c (delete_bookmark_command): Delete unused variable.
5753 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5754 * macroexp.c (gather_arguments): Delete unused variable.
5755 (substitute_args): Delete unused variable.
5756 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5757 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5758 (_initialize_gdbarch): Delete unused variable.
5759 * gdbarch.c, gdbarch.h: Regenerate.
5760 * arch-utils.c (initialize_current_architecture):
5761 Delete unused variable.
5762 (_initialize_gdbarch_utils): Delete unused variable.
5763 * gdbtypes.c (make_cv_type): Delete unused variable.
5764 (make_type_with_address_space): Delete unused variable.
5766 * linespec.c (decode_compound): Delete unused variable.
5767 * dictionary.c (iterator_next_hashed): Delete unused variable.
5768 * infcall.c (call_function_by_hand): Delete unused variable.
5769 * infcmd.c (step_1): Delete unused variable.
5770 (registers_info): Delete unused variable.
5771 (attach_command): Delete unused variable.
5772 * infrun.c (follow_exec): Delete unused variable.
5773 (handle_step_into_function_backwards): Delete unused variable.
5774 (_initialize_infrun): Delete unused variable.
5775 * stack.c (parse_frame_specification_1): Delete unused variable.
5776 (frame_info): Delete unused variable.
5777 (backtrace_command_1): Delete unused variable.
5778 (catch_info): Delete unused variable.
5780 * eval.c (evaluate_subexp_standard): Delete unused variable.
5781 * valops.c (value_cast_pointers): Delete unused variable.
5782 (value_dynamic_cast): Delete unused variable.
5783 (value_array): Delete unused variable.
5784 (find_overload_match): Delete unused variable.
5785 * valarith.c (value_subscript): Delete unused variable.
5786 (value_binop): Delete unused variable.
5787 * valprint.c (_initialize_valprint): Delete unused variable.
5788 * printcmd.c (print_command_1): Delete unused variable.
5789 (address_info): Delete unused variable.
5790 (printf_command): Delete unused variable.
5792 * auxv.c (target_auxv_search): Delete unused variable.
5793 * blockframe.c (get_frame_block): Delete unused variable.
5794 * regcache.c (regcache_cpy): Delete unused variable.
5795 (regcache_cpy_no_passthrough): Delete unused variable.
5796 * charset.c (wchar_iterate): Delete unused variable.
5797 (find_charset_names): Delete unused variable.
5798 (_initialize_charset): Delete unused variable.
5799 * disasm.c (do_mixed_source_and_assembly):
5800 Delete unused variable.
5801 * source.c (set_default_source_symtab_and_line):
5802 Delete unused variable.
5803 (set_substitute_path_command): Delete unused variable.
5804 * value.c (preserve_values): Delete unused variable.
5805 (value_from_double): Delete unused variable.
5807 2010-05-05 Michael Snyder <msnyder@vmware.com>
5809 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5810 (find_last_source_symtab_from_partial): Delete unused variable.
5811 * symfile.c (place_section): Delete unused variable.
5812 (default_symfile_offsets): Delete unused variable.
5813 (get_debug_link_info): Delete unused variable.
5814 (find_separate_debug_file_by_debuglink): Delete unused variable.
5815 (add_symbol_file_command): Delete unused variable.
5816 (symfile_find_segment_sections): Delete unused variable.
5817 * symmisc.c (free_symtab): Delete unused variable.
5818 (dump_symtab_1): Delete unused variable.
5819 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5820 (find_pc_sect_symtab): Delete unused variable.
5821 (skip_prologue_using_lineinfo): Delete unused variable.
5822 (sources_info): Delete unused variable.
5823 (completion_list_add_name): Delete unused variable.
5824 (expand_line_sal): Delete unused variable.
5826 * breakpoint.c (validate_commands_for_breakpoint):
5827 Delete unused variables.
5828 (insert_catchpoint): Delete unused variable.
5829 (update_watchpoint): Delete unused variable.
5830 (insert_bp_location): Delete unused variable.
5831 (insert_breakpoint_locations): Delete unused variable.
5832 (remove_breakpoint_1): Delete unused variable.
5833 (software_breakpoint_inserted_here_p): Delete unused variable.
5834 (watchpoints_triggered): Delete unused variable.
5835 (bpstat_check_watchpoint): Delete unused variable.
5836 (bpstat_stop_status): Delete unused variable.
5837 (print_one_breakpoint_location): Delete unused variable.
5838 (allocate_bp_location): Delete unused variable.
5839 (create_breakpoint): Delete unused variable.
5840 (watch_command_1): Delete unused variable.
5841 (catch_exception_command_1): Delete unused variable.
5842 (catch_ada_exception_command): Delete unused variable.
5843 (delete_breakpoint): Delete unused variable.
5844 (breakpoint_re_set_one): Delete unused variable.
5845 (do_enable_breakpoint): Delete unused variable.
5847 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5849 * amd64-tdep.c: Include disasm.h.
5850 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5851 (amd64_insn_length): Moved to disasm.c and renamed.
5852 (fixup_riprel): Adjust.
5853 * disasm.c (do_ui_file_delete): New.
5854 (gdb_insn_length): New.
5855 (gdb_buffered_insn_length_fprintf)
5856 (gdb_buffered_insn_length_init_dis)
5857 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5859 * disasm.h (gdb_insn_length): Declare.
5860 (gdb_buffered_insn_length): Declare.
5862 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5864 * remote.c (clear_threads_parsing_context): New.
5865 (remote_threads_info): Delete unused null_cleanup. Install a
5866 cleanup to clear the threads_parsing_context in case parsing
5869 2010-05-05 Michael Snyder <msnyder@vmware.com>
5871 * c-exp.y (parse_string_or_char): Delete unused variable.
5872 (c_lex): Delete unused variable.
5873 * cp-name-parser.y (cpname_lex): Delete unused variable.
5874 * ada-exp.y (find_primitive_type): Delete unused variable.
5875 (write_var_or_type): Delete unused variable.
5876 * jv-exp.y (java_parse): Delete unused variable.
5877 (push_expression_name): Delete unused variable.
5878 * p-exp.y (pascal_lex): Delete unused variable.
5880 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5882 * remote.c (remote_threads_info): Really revert previous previous
5885 2010-05-05 Michael Snyder <msnyder@vmware.com>
5887 * elfread.c (elf_symtab_read): Delete unused variable.
5888 (find_separate_debug_file_by_buildid): Delete unused variables.
5889 (elf_symfile_read): Delete unused variable.
5891 * coffread.c (coff_symfile_read): Delete unused variables.
5893 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5894 (read_pe_exported_syms): Delete unused variable.
5896 * stabsread.c (define_symbol): Delete unused variable.
5898 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5899 (process_psymtab_comp_unit): Delete unused variable.
5900 (dwarf2_build_psymtabs_hard): Delete unused variable.
5901 (load_partial_comp_unit): Delete unused variable.
5902 (create_all_comp_units): Delete unused variable.
5903 (scan_partial_symbols): Delete unused variable.
5904 (add_partial_symbol): Delete unused variable.
5905 (add_partial_namespace): Delete unused variable.
5906 (add_partial_enumeration): Delete unused variable.
5907 (load_full_comp_unit): Delete unused variable.
5908 (process_full_comp_unit): Delete unused variable.
5909 (read_file_scope): Delete unused variable.
5910 (read_type_unit_scope): Delete unused variable.
5911 (process_structure_scope): Delete unused variable.
5912 (process_enumeration_scope): Delete unused variable.
5913 (read_tag_ptr_to_member_type): Delete unused variable.
5914 (read_typedef): Delete unused variable.
5915 (read_partial_die): Delete unused variable.
5916 (decode_locdesc): Delete unused variable.
5917 (zeroed_partial_die): Delete unused global variable.
5919 * tui/tui-interp.c (_initialize_tui_interp):
5920 Delete unused variable.
5921 * tui/tui-regs.c tui_display_registers_from):
5922 Delete unused variable.
5923 (tui_check_register_values): Delete unused variable.
5924 (tui_register_format): Delete unused variable.
5925 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5926 * tui/tui-windata.c (tui_display_data_from_line):
5927 Delete unused variables.
5928 (tui_vertical_data_scroll): Delete unused variables.
5930 2010-05-05 Michael Snyder <msnyder@vmware.com>
5932 * remote.c (remote_threads_info): Revert questionable part of
5933 the previous change.
5935 2010-05-05 Michael Snyder <msnyder@vmware.com>
5937 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5938 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5939 (mi_cmd_var_list_children): Delete unused variable.
5940 (varobj_update_one): Delete unused variable.
5941 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5942 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5943 Delete unused variable.
5944 (mi_cmd_stack_list_variables): Delete unused variable.
5945 (list_args_or_locals): Delete unused variable.
5946 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5947 Delete unused variables.
5948 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5949 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5950 Delete unused variable.
5951 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5952 (mi_cmd_interpreter_exec): Delete unused variable.
5953 (mi_on_normal_stop): Delete unused variable.
5954 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5955 (print_one_inferior): Delete unused variables.
5956 (mi_execute_command): Delete unused variable.
5957 (mi_cmd_execute): Delete unused variable.
5958 (timestamp): Delete unused variable.
5960 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5961 (restore_binary_file): Delete unused variable.
5962 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5963 * cli/cli-script.c (define_command): Delete unused variables.
5964 (recurse_read_control_structure): Delete unused variable.
5965 (script_from_file): Delete unused variable.
5966 * cli/cli-cmds.c (complete_command): Delete unused variable.
5967 (disassemble_command): Delete unused variable.
5969 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5970 * tracepoint.c (delete_trace_variable_command):
5971 Delete unused variables.
5972 (encode_actions_1): Delete unused variables.
5973 (start_tracing): Delete unused variable.
5974 (trace_status_mi): Delete unused variable.
5975 (tfind_1): Delete unused variable.
5976 (trace_find_pc_command): Delete unused variable.
5977 (trace_find_line_command): Delete unused variables.
5978 (trace_find_range_command): Delete unused variables.
5979 (trace_find_outside_command): Delete unused variables.
5980 (parse_tracepoint_definition): Delete unused variables.
5981 (tfile_fetch_registers): Delete unused variable.
5983 * dcache.c (dcache_init): Delete unused variable.
5984 (dcache_info): Delete unused variable.
5986 * remote.c (remote_threads_info): Delete unused variable.
5987 (process_stop_reply) :Delete unused variable.
5988 (remote_get_trace_status): Delete unused variables.
5990 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5991 (thread_from_lwp): Delete unused variable.
5992 (enable_thread_event_reporting): Delete unused variable.
5993 (check_for_thread_db): Delete unused variables.
5994 (thread_db_find_new_threads_2): Delete unused variable.
5996 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5997 (checkpoint_command): Delete unused variable.
5998 (linux_fork_context): Delete unused variables.
6000 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6001 (linux_tracefork_child): Delete unused variable.
6002 (linux_child_follow_fork): Delete unused variable.
6003 (linux_nat_detach): Delete unused variable.
6004 (linux_handle_extended_wait): Delete unused variable.
6005 (linux_nat_has_pending_sigint): Delete unused variable.
6006 (linux_nat_find_memory_regions): Delete unused variable.
6007 (linux_nat_make_corefile_notes): Delete unused variables.
6008 (linux_nat_info_proc_cmd): Delete unused variable.
6009 (linux_proc_pending_signals): Delete unused variable.
6010 (linux_nat_stop_lwp): Delete unused variables.
6011 (_initialize_linux_nat): Delete unused variable.
6013 * ser-pipe.c (pipe_ops): Delete unused global variable.
6015 * linux-record.c (record_linux_system_call):
6016 Delete unused variables.
6018 * corelow.c (core_xfer_partial): Delete unused variables.
6020 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6021 (svr4_solib_create_inferior_hook): Add ifdef around
6022 conditionally-used variable declarations.
6024 * solib.c (solib_find): Delete unused variable.
6025 (free_so_symbols): Delete unused variable.
6026 (info_sharedlibrary_command): Delete unused variable.
6027 (reload_shared_libraries_1): Delete unused variable.
6028 (_initialize_solib): Delete unused variable.
6030 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6031 (i386_collect_xstateregset): Delete unused variable.
6032 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6034 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6035 Delete unused variable 'type'.
6037 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6039 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6040 ada-lang.c: Remove comment mentioning these macros.
6041 * m2-exp.y: Delete commented out code.
6043 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6045 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6047 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6049 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6051 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6052 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6054 (cleanup_kernel_helper_return): Likewise.
6055 * arm-tdep.c (copy_unmodified): Likewise.
6056 (copy_preload): Likewise.
6057 (copy_copro_load_store): Likewise.
6058 (cleanup_branch): Likewise.
6059 (copy_b_bl_blx): Likewise.
6060 (copy_bx_blx_reg): Likewise.
6061 (copy_alu_imm): Likewise.
6062 (copy_alu_reg): Likewise.
6063 (copy_alu_shifted_reg): Likewise.
6064 (cleanup_load): Likewise.
6065 (cleanup_store): Likewise.
6066 (cleanup_block_load_pc): Likewise.
6067 (cleanup_svc): Likewise.
6068 (copy_undef): Likewise.
6069 (copy_unpred): Likewise.
6070 * remote.c (register_remote_support_xml): Likewise.
6072 2010-05-05 Hui Zhu <teawater@gmail.com>
6074 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6076 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6078 * remote.c (register_remote_support_xml)
6079 (remote_query_supported_append, remote_query_supported): Add cast
6080 to NULL used as sentinel.
6081 * tracepoint.c (tvariables_info_1): Likewise.
6082 * utils.c (add_internal_problem_command): Likewise.
6084 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6086 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6087 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6088 registers gracefully.
6090 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6092 * exec.c (print_section_info): Display entry point without arch
6095 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6098 * printcmd.c (x_command): Only dereference once implicitly for
6101 2010-05-03 Doug Evans <dje@google.com>
6103 * event-loop.c (gdb_timer): Delete unused global.
6104 (create_timer): Update.
6106 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6108 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6109 CURRENT->DECLARATION case.
6110 * cp-support.h (struct using_direct): Provide extended comment.
6112 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6114 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6115 HPPABSD_SIZEOF_GREGS.
6116 (HPPAOBSD_SIZEOF_FPREGS): New define.
6117 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6118 (hppaobsd_supply_fpregset): New function.
6119 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6120 (hppaobsd_fpregset): New variable.
6121 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6122 (_initialize_hppabsd_tdep): Remove spurious blank line.
6124 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6127 * p-valprint.c (pascal_value_print): Always dereference a value with
6128 type code TYPE_CODE_REF.
6130 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6132 * remote.c (remote_notice_signals): New.
6133 (remote_start_remote): In non-stop mode, update the remote end on
6134 which signals it can silently pass.
6135 (init_remote_ops): Install remote_notice_signals.
6137 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6139 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6140 * command.h (error_no_arg): ... here. Remove NORETURN, change
6141 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6142 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6143 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6144 (internal_verror, internal_error, nomem): Remove NORETURN, change
6145 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6146 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6147 (throw_vfatal, throw_error): Remove NORETURN.
6148 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6149 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6150 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6151 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6152 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6153 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6155 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6156 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6158 * target.c (tcomplain): Likewise.
6159 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6161 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6162 (internal_error, perror_with_name, nomem): Remove NORETURN.
6163 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6166 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6168 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6169 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6170 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6171 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6172 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6173 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6174 * complaints.h (complaint, internal_complaint): Likewise.
6175 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6176 (ATTR_FORMAT): Remove.
6177 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6178 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6179 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6180 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6181 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6182 (internal_error, internal_vwarning, internal_warning, warning)
6183 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6184 * disasm.c (fprintf_disasm): Likewise.
6185 * exceptions.c (throw_it): Likewise.
6186 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6187 (throw_error): Likewise.
6188 * language.h (type_error, range_error): Likewise.
6189 * linespec.c (cplusplus_error): Likewise.
6190 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6191 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6192 * monitor.c (monitor_debug): Likewise.
6193 * parser-defs.h (parser_fprintf): Likewise.
6194 * serial.h (serial_printf): Likewise.
6195 * tui/tui-hooks.c (tui_query_hook): Likewise.
6196 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6197 (uo_message): Likewise.
6198 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6199 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6201 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6203 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6205 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6206 (cli_table_header, cli_begin, cli_end, cli_field_int)
6207 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6208 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6209 Delete forward declarations.
6210 (cli_ui_out_impl): Move below the callbacks.
6211 (_initialize_cli_out): Delete.
6213 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6215 * README: Use consistent `GDB' and `GDBserver' spellings.
6217 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6219 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6221 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6223 * infrun.c (prepare_for_detach): In non-stop, context switch to
6224 the thread that got the event before handling the event.
6226 2010-04-30 Tom Tromey <tromey@redhat.com>
6228 * symtab.c (symbol_set_names): Fix typo.
6230 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6232 * python/py-param.c (parm_constants): Avoid ARI warning
6233 by adding ARI comment.
6234 (parmpy_init): Likewise.
6236 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6238 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6239 and created type for re-use.
6241 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6243 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6245 2010-04-29 Doug Evans <dje@google.com>
6247 * ser-base.h (reschedule): Delete prototype.
6248 * ser-base.c (reschedule): Make static.
6250 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6252 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6253 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6254 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6256 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6259 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6263 * regcache.c (registers_changed): Rename to ...
6264 (registers_changed_ptid): ... this, and only delete register cache
6265 entries matching the ptid filter argument.
6266 (registers_changed): Reimplement on top of registers_changed_ptid.
6267 * regcache.h (registers_changed_ptid): Declare.
6268 * target.c (target_resume): Flush register caches.
6270 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6271 Tom Tromey <tromey@redhat.com>
6272 Thiago Jung Bauermann <bauerman@br.ibm.com>
6274 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6275 (SUBDIR_PYTHON_SRCS): Likewise.
6276 (py-parameter.o): New rule.
6277 * python/py-parameter.c: New file.
6278 * python/python-internal.h (gdbpy_initialize_parameter)
6279 (gdbpy_parameter, gdbpy_parameter_value)
6280 (gdbpy_parse_command_name): Declare.
6281 * python/py-cmd.c (parse_command_name): Rename to
6282 gdbpy_parse_command_name.
6283 (gdbpy_parse_command_name): Accept a starting list parameter and
6285 (cmdpy_init): Use gdbpy_parse_command_name.
6286 * python/python.c (parameter_to_python): Rename to
6287 gdbpy_parameter_to_python. Accept enum var_types and value.
6288 (gdbpy_parameter): Use gdbpy_parameter_value.
6289 (_initialize_python): Call gdbpy_initialize_parameters.
6291 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6293 * MAINTAINERS: Add myself for write after approval privileges.
6295 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6298 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6299 (COMMON_OBS): Add d-lang.o d-valprint.o.
6300 (HFILES_NO_SRCDIR): Add d-lang.h.
6301 * NEWS: Mention D language support.
6302 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6303 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6304 * d-lang.c: New file.
6305 * d-lang.h: New file.
6306 * d-valprint.c: New file.
6307 * defs.h (enum language): Add language_d.
6308 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6309 * language.c (binop_result_type, integral_type, character_type)
6310 (string_type, boolean_type, structured_type): Add language_d.
6311 * symfile.c (init_filename_language_table): Add language_d.
6312 * symtab.c: Include d-lang.h.
6313 (symbol_init_language_specific, symbol_find_demangled_name)
6314 (symbol_natural_name, lookup_symbol_in_language)
6315 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6317 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6319 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6321 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6323 * symfile.c (init_filename_language_table): Register .dg files
6326 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6328 * gdbtypes.h (struct main_type): Expand comment about target_type
6331 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6332 Tristan Gingold <gingold@adacore.com>
6334 * symfile.c (reread_symbols): Also search for file in libraries.
6337 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6339 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6340 in terms of configuration.
6342 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6344 * objfiles.c: Include solist.h.
6345 (free_all_objfiles): New variable so. Check stale solist objfiles.
6346 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6347 and no_shared_libraries.
6349 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6352 * python/py-auto-load.c (source_section_scripts): Remove trailing
6353 new-line in i18n string.
6355 2010-04-26 Doug Evans <dje@google.com>
6357 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6359 2010-04-26 Tom Tromey <tromey@redhat.com>
6361 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6364 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6366 Removal of config/i386/nm-i386sol2.h native configuration file.
6367 * config/i386/nm-i386sol2.h: Remove file.
6368 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6369 * config/i386/sol2-64.mh: Idem.
6370 * config/djgpp/fnchange.lst: Remove reference to that file.
6371 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6373 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6375 PR breakpoints/11531.
6376 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6377 macro definition and related comment.
6378 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6379 (resume): Remove code and comment related to this macro.
6381 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6383 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6386 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6388 * defs.h: Adjust comment.
6389 * filesystem.h, filesystem.c: New files.
6390 * Makefile.in (SFILES): Add filesystem.c.
6391 (COMMON_OBS): Add filesystem.o.
6392 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6393 different target and host path flavours.
6394 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6395 has_dos_based_file_system on the gdbarch.
6396 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6397 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6398 * i386-tdep.c (i386_go32_init_abi): Ditto.
6399 * gdbarch.sh (has_dos_based_file_system): New.
6400 * gdbarch.h, gdbarch.c: Regenerate.
6401 * NEWS: Mention improved support for remote targets with DOS-based
6402 filesystems. Mention new `set/show target-file-system-kind'
6405 2010-04-23 Stan Shebs <stan@codesourcery.com>
6407 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6409 (struct agent_reqs): Remove.
6410 (ax_reg_mask): Declare.
6411 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6412 (free_agent_expr): Free reg_mask.
6413 (ax_print): Add scope and register mask info.
6414 (ax_reqs): Remove agent_reqs argument, use agent expression
6415 fields, and move part of register mask computation to...
6416 (ax_reg_mask): New function.
6417 * ax-gdb.c (gen_trace_static_fields): Call it.
6418 (gen_traced_pop): Ditto.
6419 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6420 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6421 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6422 (gen_eval_for_expr): Ditto, and require an rvalue.
6423 (agent_command): Call ax_reqs.
6424 (agent_eval_command): Ditto.
6425 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6426 (validate_action_line): Ditto.
6427 (collect_symbol): Ditto.
6428 (encode_actions_1): Ditto.
6430 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6431 Paul Pluzhnikov <ppluzhnikov@google.com>
6432 Jan Kratochvil <jan.kratochvil@redhat.com>
6434 Fix deadlock on looped list of loaded shared objects.
6435 * solib-svr4.c (LM_PREV): New function.
6436 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6437 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6438 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6439 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6441 2010-04-23 Doug Evans <dje@google.com>
6443 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6445 * configure: Regenerate.
6446 * main.c: #include "python/python.h".
6447 (captured_main): Defer loading auto-loaded scripts until after
6448 local_gdbinit has been sourced.
6449 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6450 (load_auto_scripts_for_objfile): New function.
6451 (auto_load_new_objfile): Call it.
6452 * python/python.h (gdbpy_global_auto_load): Declare.
6453 (load_auto_scripts_for_objfile): Declare.
6455 Add support for auto-loading scripts from .debug_gdb_scripts section.
6456 * NEWS: Add entry for .debug_gdb_scripts.
6457 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6458 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6459 (py-auto-load.o): New rule.
6460 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6461 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6462 * python/py-auto-load.c: New file.
6463 * python/python-internal.h: #include <stdio.h>.
6464 (set_python_list, show_python_list): Declare.
6465 (gdbpy_initialize_auto_load): Declare.
6466 (source_python_script_for_objfile): Declare.
6467 * python/python.c: Remove #include of observer.h.
6468 (gdbpy_auto_load): Moved to py-auto-load.c.
6469 (GDBPY_AUTO_FILENAME): Ditto.
6470 (gdbpy_new_objfile): Delete.
6471 (source_python_script_for_objfile): New function.
6472 (set_python_list, show_python_list): Make externally visible.
6473 (_initialize_python): Move "auto-load" command to py-auto-load.c
6474 and observer_attach_new_objfile to py-auto-load.c.
6476 2010-04-23 Jerome Guitton <guitton@adacore.com>
6478 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6479 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6480 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6482 (alpha_heuristic_analyze_probing_loop): New function.
6483 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6484 and handle cases when a stack probe loop is generated.
6485 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6486 (alpha_mdebug_max_frame_size_exceeded): New function.
6487 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6488 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6489 Return 0 when the maximum debuggable frame size has been exceeded.
6491 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6494 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6496 2010-04-20 Chris Moller <cmoller@redhat.com>
6500 * symtab.c (rbreak_command): Added code to include a filename
6501 specification in the rbreak argument.
6502 * NEWS: Added a brief description of filename-qualified rbreak.
6504 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 Fix crashes on dangling display expressions.
6507 * ada-lang.c (ada_operator_check): New function.
6508 (ada_exp_descriptor): Fill-in the field operator_check.
6509 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6510 * jv-lang.c (exp_descriptor_java): Likewise.
6511 * m2-lang.c (exp_descriptor_modula2): Likewise.
6512 * scm-lang.c (exp_descriptor_scm): Likewise.
6513 * parse.c (exp_descriptor_standard): Likewise.
6514 (operator_check_standard): New function.
6515 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6516 * parser-defs.h (struct exp_descriptor): New field operator_check.
6517 (operator_check_standard, exp_uses_objfile): New declarations.
6518 * printcmd.c: Remove the inclusion of solib.h.
6519 (display_uses_solib_p): Remove the function.
6520 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6521 and exp_uses_objfile instead of display_uses_solib_p.
6522 * solist.h (struct so_list) <objfile>: New comment.
6523 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6524 * symtab.h (lookup_objfile_from_block): New declaration.
6525 (struct general_symbol_info) <obj_section>: Extend the comment.
6527 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6528 Thiago Jung Bauermann <bauerman@br.ibm.com>
6530 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6531 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6532 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6533 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6534 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6535 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6536 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6537 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6538 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6539 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6540 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6541 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6542 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6543 Define, in case <ptrace.h> doesn't provide it.
6544 (booke_debug_info): New variable.
6545 (max_slots_number): Ditto.
6546 (hw_break_tuple): New struct.
6547 (thread_points): Ditto.
6548 (ppc_threads): New variable.
6549 (PPC_DEBUG_CURRENT_VERSION): New define.
6550 (have_ptrace_new_debug_booke): New function.
6551 (ppc_linux_check_watch_resources): Renamed to ...
6552 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6553 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6554 (booke_cmp_hw_point): New function.
6555 (booke_find_thread_points_by_tid): Ditto.
6556 (booke_insert_point): Ditto.
6557 (booke_remove_point): Ditto.
6558 (ppc_linux_insert_hw_breakpoint): Ditto.
6559 (ppc_linux_remove_hw_breakpoint): Ditto.
6560 (get_trigger_type): Ditto.
6561 (ppc_linux_insert_watchpoint): Handle BookE processors.
6562 (ppc_linux_remove_watchpoint): Ditto.
6563 (ppc_linux_new_thread): Ditto.
6564 (ppc_linux_thread_exit): New function..
6565 (ppc_linux_stopped_data_address): Handle BookE processors.
6566 (ppc_linux_watchpoint_addr_within_range): Ditto.
6567 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6568 to_remove_hw_breakpoint fields of the target operations struct.
6569 Add observe for the thread_exit event.
6571 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6573 * i386-linux-nat.c (regmap): Removed.
6574 (fetch_register): Replace regmap with
6575 i386_linux_gregset_reg_offset.
6576 (store_register): Likewise.
6577 (supply_gregset): Likewise.
6578 (fill_gregset): Likewise.
6580 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6583 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6585 2010-04-22 Chris Moller <cmoller@redhat.com>
6587 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6588 method of popping recursion-detection stack with a method based on
6589 obstack_object_size(). (Similar to the PR9167 patch below, but for
6590 the static array obstack rather than the static member obstack.)
6592 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6594 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6595 (_initialize_amd64_linux_nat): Replace
6596 amd64_linux_gregset64_reg_offset with
6597 amd64_linux_gregset_reg_offset.
6599 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6602 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6604 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6607 * stabsread.c (set_length_in_type_chain): New function.
6608 (read_struct_type): Call set_length_in_type_chain function.
6609 (read_enum_type): Idem.
6611 2010-04-21 Stan Shebs <stan@codesourcery.com>
6612 Nathan Sidwell <nathan@codesourcery.com>
6614 * tracepoint.c (trace_save): Open in binary mode.
6616 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6618 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6620 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6621 builtin_char32 fields.
6622 * printcmd.c (decode_format): Set char size to '\0'
6623 for strings unless explicit size is given.
6624 (print_formatted): Correct calculation of NEXT_ADDRESS
6625 for 16 or 32 bit strings.
6626 (do_examine): Do not force byte size for strings.
6627 Use builtin_char16 and builtin_char32 types to display
6628 16 or 32 bit-wide strings.
6629 (x_command): Set LAST_SIZE to 'b' for string type.
6631 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6634 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6637 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6638 there is no .reg-xstate section.
6639 (i386_linux_core_read_description): Check XCR0 first.
6641 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6643 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6646 2010-04-21 Chris Moller <cmoller@redhat.com>
6649 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6650 method of popping recursion-detection stack with a method based on
6651 obstack_object_size().
6653 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6656 * p-valprint.c (pascal_val_print): Fix default printing of integer
6659 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6661 Fix compilation warning on gcc-4.1.2.
6662 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6663 local variable`pc' to zero.
6665 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6667 Implement thread support with core files on alpha-tru64.
6668 * dec-thread.c (dec_thread_find_new_threads): New function,
6669 extracted from resync_thread_list.
6670 (resync_thread_list): Add OPS parameter. Replace extracted-out
6671 code by call to dec_thread_find_new_threads.
6672 (dec_thread_wait): Update call to resync_thread_list.
6673 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6675 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6677 * ada-lang.c (value_pointer): New function.
6678 (make_array_descriptor): Call value_pointer to convert addresses to
6681 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6683 * rs6000-aix-tdep.c: #include exceptions.h.
6684 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6685 while reading the memory at ADDR, then ADDR cannot be a function
6688 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6690 * ada-typeprint.c (ada_print_typedef): New function.
6691 * ada-lang.h (ada_print_typedef): Add declaration.
6692 * ada-lang.c (ada_language_defn): set la_print_typdef field
6693 to ada_print_typedef.
6695 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6697 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6699 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6701 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6702 (iterate_over_mappings): Adjust function profile. Add declaration.
6703 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6706 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6708 * procfs.c (solib_mappings_callback): Move function up to avoid
6711 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6713 * procfs.c (find_signalled_thread, find_stop_signal): Move
6714 these functions down to define them only when used.
6716 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6718 * valprint.c (common_val_print): Fix the value before extracting
6720 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6721 * ada-lang.h (ada_to_fixed_value): New function declaration.
6722 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6723 to avoid code duplication and fix a bug in the handling of
6724 fixed types contents.
6726 2010-04-20 Tom Tromey <tromey@redhat.com>
6728 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6729 (read_partial_die): Likewise.
6730 (dwarf_attr_name): Likewise.
6732 2010-04-20 Chris Moller <cmoller@redhat.com>
6736 * cp-valprint.c (global): Adding new static array recursion
6738 (cp_print_value_fields, cp_print_static_field): Added new static
6739 array recursion detection code.
6741 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6743 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6744 general-purpose register set should be 68 instead of 144.
6745 (i386_linux_sse_regset_sections): Likewise.
6746 (i386_linux_avx_regset_sections): Likewise.
6748 2010-04-20 Stan Shebs <stan@codesourcery.com>
6749 Nathan Sidwell <nathan@codesourcery.com>
6751 * dwarf2loc.c (struct axs_var_loc): New struct.
6752 (dwarf2_tracepoint_var_loc): New function.
6753 (dwarf2_tracepoint_var_access): New function.
6754 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6756 (locexpr_describe_location_piece): New function.
6757 (locexpr_describe_location_1): New function.
6758 (locexpr_describe_location): Call it, update signature.
6759 (loclist_describe_location): Rewrite to loop over locations,
6761 * symtab.h (struct symbol_computed_ops): Add address to
6762 describe_location arguments, return void.
6763 * printcmd.c (address_info): Get context PC, pass to computed
6764 location description.
6765 * tracepoint.c (scope_info): Ditto.
6766 * ax-gdb.c (trace_kludge): Export.
6768 2010-04-20 Tom Tromey <tromey@redhat.com>
6770 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6771 (struct dwarf2_cie) <segment_size>: New field.
6772 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6773 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6775 (read_attribute_value): Handle DW_FORM_flag_present,
6776 DW_FORM_sec_offset, DW_FORM_exprloc.
6777 (dump_die_shallow): Likewise.
6778 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6779 (dwarf2_const_value): Handle DW_FORM_exprloc.
6780 (attr_form_is_block): Likewise.
6781 (struct line_header) <maximum_ops_per_instruction>: New field.
6782 (dwarf_decode_line_header): Set new field.
6783 (dwarf_decode_lines): Handle new field.
6785 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6787 * f-exp.y: Add new production to recognize the `logical*8' type.
6788 (LOGICAL_S8_KEYWORD): New token.
6789 * f-lang.c (enum f_primitive_types)
6790 <f_primitive_type_logical_s8>: New field.
6791 (f_language_arch_info): Handling `logical*8' type.
6792 (build_fortran_types): Building `logical*8' type.
6793 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6795 2010-04-19 Doug Evans <dje@google.com>
6797 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6798 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6799 (pipe_close): Ditto.
6801 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6803 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6805 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6807 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6808 type to void function.
6810 2010-04-19 Stan Shebs <stan@codesourcery.com>
6811 Vladimir Prus <vladimir@codesourcery.com>
6813 * tracepoint.c (tfind_1): Add missing newline, report exit from
6815 * target.c (update_current_target): Make default
6816 to_trace_find return -1.
6818 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6820 * objc-lang.c (find_methods): Move symname check up.
6822 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6824 * ada-lang.c (print_recreate_exception)
6825 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6826 not "catch unhandled".
6828 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6830 PR breakpoints/8554.
6832 Implement `save-breakpoints'.
6834 * breakpoint.c (save_cmdlist): New.
6835 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6837 (print_recreate_catch_fork): New.
6838 (catch_fork_breakpoint_ops): Install it.
6839 (print_recreate_catch_vfork): New.
6840 (catch_vfork_breakpoint_ops): Install it.
6841 (print_recreate_catch_syscall): New.
6842 (catch_syscall_breakpoint_ops): Install it.
6843 (print_recreate_catch_exec): New.
6844 (catch_exec_breakpoint_ops): Install it.
6845 (print_recreate_exception_catchpoint): New.
6846 (gnu_v3_exception_catchpoint_ops): Install it.
6847 (save_breakpoints): New, based on tracepoint_save_command, but
6848 handle all breakpoint types.
6849 (save_breakpoints_command): New.
6850 (tracepoint_save_command): Rename to...
6851 (save_tracepoints_command): ... this, and reimplement using
6853 (save_command): New.
6854 (_initialize_breakpoints): Install the "save" command prefix.
6855 Install the "save breakpoints" command. Make "save-tracepoints" a
6856 deprecated alias for "save tracepoints".
6857 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6858 * ada-lang.c (print_recreate_exception): New.
6859 (print_recreate_catch_exception): New.
6860 (catch_exception_breakpoint_ops): Install it.
6861 (print_recreate_catch_exception_unhandled): New.
6862 (catch_exception_unhandled_breakpoint_ops): Install it.
6863 (print_recreate_catch_assert): New.
6864 (catch_assert_breakpoint_ops): Install it.
6866 * NEWS: Mention the new `save breakpoints' command. Mention the
6867 new `save tracepoints' alias and that `save-tracepoints' is now
6870 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6874 * tui/tui-out.c: Include cli-out.h.
6875 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6876 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6877 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6878 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6880 (struct ui_out_data): Rename to...
6881 (struct tui_ui_out_data): ... this. Remove `stream' and
6882 `suppress_output' fields, and inherit cli_ui_out_data.
6883 (tui_out_data): New typedef.
6884 (tui_ui_out_impl): Don't initialize fields staticaly.
6885 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6886 (tui_begin, tui_end): Delete.
6887 (tui_field_int): Adjust to delegate most work to the base type.
6888 (tui_field_skip): Delete.
6889 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6890 delegate most work to the base type.
6891 (tui_spaces): Delete.
6892 (tui_text): Adjust to delegate most work to the base type.
6893 (tui_message): Delete.
6894 (tui_wrap_hint): Delete.
6895 (tui_flush): Delete.
6896 (out_field_fmt): Delete.
6897 (field_separator): Delete.
6898 (tui_out_new): Adjust to initialize the base type.
6899 (_initialize_tui_out): Initialize tui_ui_out_impl.
6900 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6902 (cli_out_data): Adjust.
6903 (cli_ui_out_impl): Make extern.
6904 (cli_table_header, cli_field_int, cli_field_skip): Use
6905 uo_field_string instead of cli_field_string.
6906 (cli_redirect): Adjust to use cli_out_data.
6907 (cli_out_data_ctor): New.
6908 (cli_out_new): Use it.
6909 * cli-out.h (struct ui_file): Remove forward declaration.
6910 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6911 (cli_ui_out_impl): Declare.
6912 (cli_out_data_ctor): Declare.
6913 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6914 (uo_field_string): No longer static.
6915 (ui_out_data): Change return type to void pointer.
6916 (ui_out_new): Change `data' parameter type to void pointer.
6917 * ui-out.h (struct ui_out_data): Don't forward declare.
6918 (ui_out_data): Change return type to void pointer.
6919 (ui_out_new): Change `data' parameter type to void pointer.
6920 (uo_field_string): Declare.
6922 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6924 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6925 instead of always false.
6927 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6930 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6933 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6935 * breakpoint.c (watchpoints_triggered): Use
6936 is_hardware_watchpoint.
6937 (watchpoints_triggered): Ditto.
6938 (bpstat_check_location): Use is_watchpoint and
6939 is_hardware_watchpoint.
6940 (bpstat_check_watchpoint): Use is_watchpoint and
6941 is_hardware_watchpoint.
6942 (bpstat_stop_status): Fix comment.
6943 (user_settable_breakpoint): Use is_watchpoint.
6944 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6945 (disable_watchpoints_before_interactive_call_start): Use
6947 (enable_watchpoints_after_interactive_call_stop): Use
6949 (clear_command): Use is_watchpoint.
6950 (do_enable_breakpoint): Use is_watchpoint.
6952 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6954 * solib-frv.c (enable_break1_done): Delete.
6955 (enable_break2): Do not check enable_break1_done. Move the
6956 enable_break2_done setting and call to
6957 remove_solib_event_breakpoints() to the end. Return without
6958 warning when the contents of _dl_debug_addr are 0.
6959 (enable_break): Do not set enable_break1_done.
6960 (frv_clear_solib): Likewise.
6962 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6964 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6965 instead of an error if no PLT entry is found. Return a
6966 potentially useful result.
6967 (m32c_m16c_pointer_to_address): Add code to search for function
6968 address when no .plt entry is found.
6970 2010-04-16 Stan Shebs <stan@codesourcery.com>
6972 * tracepoint.c (trace_variable_command): Run a cleanup.
6974 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6976 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6978 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6980 Support for Windows OS Thread Information Block.
6981 * NEWS: Document new feature.
6982 * remote.c (PACKET_qGetTIBAddr): New enum element.
6983 (remote_get_tib_address): New function.
6984 (init_remote_ops): Set to_get_tib_address field
6985 to remote_get_tib_address.
6986 (_initialize_remote): Add add_packet_config_cmd
6987 for PACKET_qGetTIBAddr.
6988 * target.c (update_current_target): Set default value for
6989 new to_get_tib_address field.
6990 * target.h (target_ops): New field to_get_tib_address.
6991 (target_get_tib_address): New macro.
6992 * windows-nat.c (thread_info): Add thread_local_base field.
6993 (windows_add_thread): Add tlb argument of type 'void *'.
6994 (fake_create_process): Adapt windows_add_thread call.
6995 (get_windows_debug_event): Idem.
6996 (windows_get_tib_address): New function.
6997 (init_windows_ops): Set to_get_tib_address field
6998 to remote_get_tib_address.
6999 (_initialize_windows_nat): Replace info_w32_cmdlist
7000 initialization by a call to init_w32_command_list.
7001 (info_w32_command, info_w32_cmdlist): Removed from here...
7002 to windows-tdep.c file.
7003 * windows-tdep.h (info_w32_cmdlist): Declare.
7004 (init_w32_command_list): New external function
7006 * windows-tdep.c: Add several headers.
7007 (info_w32_cmdlist): to here, made global.
7008 (thread_information_32): New struct.
7009 (thread_information_64): New struct.
7010 (TIB_NAME): New char array.
7011 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7012 (maint_display_all_tib): New static variable.
7013 (windows_get_tlb_type): New function.
7014 (tlb_value_read, tlb_value_write): New functions.
7015 (tlb_value_funcs): New static struct.
7016 (tlb_make_value): New function.
7017 (display_one_tib): New function.
7018 (display_tib): New function.
7019 (show_maint_show_all_tib):New function.
7020 (info_w32_command): Moved from windows-nat.c.
7021 (init_w32_command_list): New function.
7022 (_initialize_windows_tdep): New function.
7023 New "maint set/show show-all-tib" command
7024 New "$_tlb" internal variable.
7026 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7028 * tui/tui-regs.c (tui_display_register): Add comment about
7030 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7032 2010-04-15 Stan Shebs <stan@codesourcery.com>
7034 * frame.c: Include tracepoint.h.
7035 (get_current_frame): Allow a trace frame to be an alternate source
7036 of stack frame data.
7037 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7040 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7042 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7044 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7046 2010-04-15 Doug Evans <dje@google.com>
7048 * NEWS: Add entry for python program space support.
7049 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7050 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7051 (py-progspace.o): New rule.
7052 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7054 (find_pretty_printer_from_progspace): New function.
7055 (find_pretty_printer_from_gdb): New function.
7056 (find_pretty_printer): Rewrite.
7057 * python/py-progspace.c: New file.
7058 * python/python-internal.h (program_space): Add forward decl.
7059 (pspace_to_pspace_object, pspy_get_printers): Declare.
7060 (gdbpy_initialize_pspace): Declare.
7061 * python/python.c: #include "progspace.h".
7062 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7063 (_initialize_python): Call gdbpy_initialize_pspace.
7064 (GdbMethods): Add current_progspace, progspaces.
7066 Add -s option to source command.
7067 * NEWS: Document new option.
7068 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7069 Delete from_tty and cleanupp args. Split filep arg into file and
7070 full_pathp. New arg search_path.
7071 (source_script_from_stream): New function.
7072 (source_script_with_search): New function.
7073 (source_script): Rewrite.
7074 (source_command): Parse "-s" option.
7075 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7076 * python/python.c (source_python_script): Make file arg a const char *.
7077 Don't call fclose, leave for caller.
7078 * python/python.h (source_python_script): Update.
7080 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7081 Pedro Alves <pedro@codesourcery.com>
7083 Avoid rereading shared libraries that haven't changed.
7085 * solib.c (free_so_symbols): New function, from ...
7086 (free_so): ... here. Call it.
7087 (solib_read_symbols): Don't warn here if symbols have already been
7089 (solib_add): Warn here instead, if a pattern was specified.
7090 (reload_shared_libraries_1): New.
7091 (reload_shared_libraries): Rewrite to not fetch the library list.
7093 2010-04-14 Doug Evans <dje@google.com>
7095 * source.c (openp): Strip DOS drive letter if present before
7096 concatenating string to search path.
7098 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7100 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7101 * objfiles.c (gdb_bfd_close_or_warn): New.
7102 * corelow.c: Include objfiles.h
7103 (core_close): Use gdb_bfd_close_or_warn.
7104 * elfread.c (build_id_verify): Ditto.
7105 * exec.c (exec_close, exec_close_1): Ditto.
7107 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7108 Pedro Alves <pedro@codesourcery.com>
7110 Group errors for many missing shared libraries.
7112 * solist.h (struct so_list): Remove from_tty.
7113 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7114 (solib_map_sections): Take so_list argument. Return 0 if we
7115 failed to open a BFD. Add target sections here.
7116 (symbol_add_stub): Delete.
7117 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7118 not from_tty copied from the so_list. Don't warn a second time
7119 for a missing library.
7120 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7121 add to the section table here. Print out a single warning for all
7123 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7126 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7128 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7129 error/warning messages. Capitalize and use complete sentences.
7130 (blpy_block_syms_iternext): Likewise.
7131 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7132 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7133 (frame_info_to_frame_object, frapy_read_var)
7134 (gdbpy_frame_stop_reason_string): Likewise.
7135 * python/py-lazy-string.c (stpy_convert_to_value)
7136 (gdbpy_create_lazy_string_object): Likewise.
7137 * python/py-objfile.c (objfpy_set_printers): Likewise.
7138 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7139 * python/python.c (parameter_to_python): Likewise.
7140 * python/py-type.c (typy_range, typy_target): Likewise.
7141 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7142 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7145 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7149 * python/py-prettyprint.c (pretty_print_one_value): Test for
7151 (print_string_repr): Test for Py_None. Set flags accordingly.
7152 Return value depending on return type.
7153 (print_children): Take a value indicating whether data was printed
7154 before this function was called. Alter output accordingly.
7155 (apply_val_pretty_printer): Capture return value from
7156 print_string_repr and pass to print_children.
7158 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7161 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7162 register note sections.
7163 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7165 (i386_linux_init_abi): Install list of supported register note
7166 sections that matches the target description.
7168 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7170 * remote.c (remote_get_noisy_reply): Don't error out on empty
7172 (remote_start_remote): Update and merge tracepoints and trace
7173 state variables as long as the target supports tracepoints.
7174 (remote_trace_init): Fix prototype.
7175 (remote_download_trace_state_variable): Validate reply.
7176 (remote_trace_set_readonly_regions): Fix prototype.
7177 (remote_trace_start): Fix prototype. Check for empty reply.
7178 (remote_get_trace_status): Small cleanup.
7179 (remote_trace_stop): Fix prototype. Check for empty reply.
7180 (remote_trace_find): Check for empty reply.
7181 (remote_save_trace_data): Validate reply.
7182 (remote_set_disconnected_tracing): Check for empty reply, and
7184 (remote_set_circular_trace_buffer): Ditto.
7186 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7188 Suppress unused value warning during compilation.
7189 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7191 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7193 2010-04-12 Stan Shebs <stan@codesourcery.com>
7195 * tracepoint.c (tfile_xfer_partial): Check read result.
7197 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7199 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7200 * remote-sim.c (gdbsim_files_info): Likewise.
7202 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7204 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7205 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7207 (fetch_vfp_registers): New function to fetch VFP registers.
7208 (store_vfp_registers): New function to store VFP registers.
7209 (arm_linux_fetch_inferior_registers): Add support for VFP
7211 (arm_linux_store_inferior_registers): Likewise.
7212 (arm_linux_read_description): Likewise.
7213 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7216 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7218 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7220 (amd64_collect_xstateregset): Likewise.
7222 2010-04-09 Stan Shebs <stan@codesourcery.com>
7224 * tracepoint.c (trace_status_mi): Report frames created.
7226 * tracepoint.c (trace_dump_command): Include default-collect
7229 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7231 * symtab.c (find_function_start_sal): Never return SAL pointing
7232 before function start address, even if line info is missing.
7234 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7236 * NEWS: Mention tracepoints support.
7238 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7240 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7241 circular trace buffer statuses.
7243 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7245 * config/djgpp/fnchange.lst: Fix typo in translations for
7246 symbol-without-target_section.exp and symbol-without-target_section.c.
7248 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7250 * breakpoint.c (condition_command): Pass condition expression to
7251 set_breakpoint_condition stripped from breakpoint number.
7253 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7254 Thiago Jung Bauermann <bauerman@br.ibm.com>
7255 Tom Tromey <tromey@redhat.com>
7257 * breakpoint.c (condition_command): Simplify. Move condition
7259 (set_breakpoint_condition): ... here. New function.
7260 * breakpoint.h (set_breakpoint_condition): Declare.
7261 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7262 (SUBDIR_PYTHON_SRCS): Likewise.
7263 (py-breakpoint.o): New rule.
7264 * python/py-breakpoint.c: New file.
7265 * python/python-internal.h (gdbpy_breakpoints)
7266 (gdbpy_initialize_breakpoints): Declare.
7267 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7269 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7271 * regformats/regdat.sh: Include server.h. Don't include
7274 2010-04-08 Stan Shebs <stan@codesourcery.com>
7275 Pedro Alves <pedro@codesourcery.com>
7277 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7278 and circular_buffer.
7279 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7280 * tracepoint.c (trace_status_command): Display target's status for
7281 disconnected tracing and circular buffer.
7282 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7283 query for non-disconnected-tracing case, remove the stop_tracing
7285 (tfile_open): Clear disconnected and circular buffer status.
7286 (trace_save): Save disconnected and circular buffer status.
7287 (parse_trace_status): Parse disconnected and circular buffer status,
7288 also recognize disconnected as a stop reason.
7289 * remote.c (remote_set_disconnected_tracing): Only set
7290 QTDisconnected if the remote end supports disconnected tracing.
7291 Warn otherwise, if trying to enable disconnected tracing.
7292 * infcmd.c (detach_command): Update disconnect_tracing call.
7293 * cli/cli-cmds.c (quit_command): Ditto.
7295 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7297 * i387-tdep.c (i387_collect_xsave): Replace abort with
7300 2010-04-08 Stan Shebs <stan@codesourcery.com>
7302 * breakpoint.c (default_collect_info): New function.
7303 (breakpoints_info): Call it.
7304 (maintenance_info_breakpoints): Ditto.
7305 (tracepoints_info): Ditto.
7307 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7309 * i387-tdep.c (i387_collect_xsave): Re-indent.
7311 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7313 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7314 if HAVE_PTRACE_GETFPXREGS is defined.
7315 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7316 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7318 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7319 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7320 if .reg-xfp section doesn't exist.
7321 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7323 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7325 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7326 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7327 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7328 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7329 (i386_gdbarch_init): Update comments.
7330 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7332 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7334 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7336 * features/Makefile (i386/i386-mmx-expedite): New.
7337 (i386/i386-mmx-linux-expedite): Likewise.
7338 ($(outdir)/i386/i386-mmx.dat): Likewise.
7339 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7341 * features/i386/i386-mmx-linux.c: New.
7342 * features/i386/i386-mmx-linux.xml: Likewise.
7343 * features/i386/i386-mmx.c: Likewise.
7344 * features/i386/i386-mmx.xml: Likewise.
7345 * regformats/i386/i386-mmx-linux.dat: Likewise.
7346 * regformats/i386/i386-mmx.dat: Likewise.
7348 * features/Makefile (WHICH): Add i386/i386-mmx and
7349 i386/i386-mmx-linux.
7351 2010-04-08 Doug Evans <dje@google.com>
7353 * source.c (openp): Skip $cdir in PATH.
7355 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7358 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7360 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7361 address and a zero length.
7363 2010-04-08 Hui Zhu <teawater@gmail.com>
7365 * i386-tdep.c (i386_process_record): Add support for insn
7368 2010-04-07 Doug Evans <dje@google.com>
7370 * python/python.c (source_python_script): Use ensure_python_env
7371 to prepare environment for script.
7373 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7375 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7376 <sys/uio.h> and "i386-xstate.h".
7377 (PTRACE_GETREGSET): New.
7378 (PTRACE_SETREGSET): Likewise.
7379 (have_ptrace_getregset): Likewise.
7380 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7382 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7384 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7385 (amd64_linux_store_inferior_registers): Likewise.
7386 (amd64_linux_read_description): Check and enable AVX target
7389 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7390 and "features/i386/amd64-avx-linux.c".
7391 (amd64_linux_regset_sections): New.
7392 (amd64_linux_core_read_description): Check and enable AVX
7394 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7395 set_gdbarch_core_regset_sections.
7396 (_initialize_amd64_linux_tdep): Call
7397 initialize_tdesc_amd64_avx_linux.
7399 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7400 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7401 (tdesc_amd64_avx_linux): New.
7402 (amd64_linux_update_xstateregset): Likewise.
7404 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7405 (amd64_ymm_names): New.
7406 (amd64_ymmh_names): Likewise.
7407 (amd64_register_name): Likewise.
7408 (amd64_supply_xstateregset): Likewise.
7409 (amd64_collect_xstateregset): Likewise.
7410 (amd64_supply_xsave): Likewise.
7411 (amd64_collect_xsave): Likewise.
7412 (AMD64_NUM_REGS): Removed.
7413 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7414 %xmmN if AVX is available.
7415 (amd64_pseudo_register_name): Support pseudo YMM registers.
7416 (amd64_regset_from_core_section): Support .reg-xstate section.
7417 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7418 and ymm0h_regnum. Call set_gdbarch_register_name.
7419 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7421 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7422 AMD64_YMM15H_REGNUM.
7423 (AMD64_NUM_REGS): New.
7424 (amd64_supply_xsave): Likewise.
7425 (amd64_collect_xsave): Likewise.
7426 (amd64_register_name): Removed.
7427 (amd64_register_type): Likewise.
7429 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7431 * i387-tdep.c: Include "i386-xstate.h".
7432 (XSAVE_XSTATE_BV_ADDR): New.
7433 (xsave_avxh_offset): Likewise.
7434 (XSAVE_AVXH_ADDR): Likewise.
7435 (i387_supply_xsave): Likewise.
7436 (i387_collect_xsave): Likewise.
7438 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7439 (I387_YMM0H_REGNUM): Likewise.
7440 (I387_YMMENDH_REGNUM): Likewise.
7441 (i387_supply_xsave): Likewise.
7442 (i387_collect_xsave): Likewise.
7444 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7446 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7447 <sys/uio.h> and "i386-xstate.h".
7448 (PTRACE_GETREGSET): New.
7449 (PTRACE_SETREGSET): Likewise.
7450 (fetch_xstateregs): Likewise.
7451 (store_xstateregs): Likewise.
7452 (GETXSTATEREGS_SUPPLIES): Likewise.
7453 (regmap): Include 8 upper YMM registers.
7454 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7456 (i386_linux_store_inferior_registers): Likewise.
7457 (i386_linux_read_description): Check and enable AVX target
7460 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7461 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7462 (i386_linux_regset_sections): Add ".reg-xstate".
7463 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7464 (i386_linux_core_read_xcr0): New.
7465 (i386_linux_core_read_description): Check and enable AVX target
7467 (i386_linux_init_abi): Set xsave_xcr0_offset.
7468 (_initialize_i386_linux_tdep): Call
7469 initialize_tdesc_i386_avx_linux.
7471 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7472 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7473 (i386_linux_core_read_xcr0): New.
7474 (tdesc_i386_avx_linux): Likewise.
7475 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7477 * i386-tdep.c: Include "i386-xstate.h" and
7478 "features/i386/i386-avx.c".
7479 (i386_ymm_names): New.
7480 (i386_ymmh_names): Likewise.
7481 (i386_ymmh_regnum_p): Likewise.
7482 (i386_ymm_regnum_p): Likewise.
7483 (i386_xmm_regnum_p): Likewise.
7484 (i386_register_name): Likewise.
7485 (i386_ymm_type): Likewise.
7486 (i386_supply_xstateregset): Likewise.
7487 (i386_collect_xstateregset): Likewise.
7488 (i386_sse_regnum_p): Removed.
7489 (i386_pseudo_register_name): Support pseudo YMM registers.
7490 (i386_pseudo_register_type): Likewise.
7491 (i386_pseudo_register_read): Likewise.
7492 (i386_pseudo_register_write): Likewise.
7493 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7494 %xmmN if AVX is available.
7495 (i386_regset_from_core_section): Support .reg-xstate section.
7496 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7497 (i386_process_record): Replace i386_sse_regnum_p with
7499 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7500 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7501 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7502 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7503 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7504 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7506 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7508 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7509 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7511 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7512 (I386_AVX_NUM_REGS): New.
7513 (i386_xmm_regnum_p): Likewise.
7514 (i386_ymm_regnum_p): Likewise.
7515 (i386_ymmh_regnum_p): Likewise.
7517 * common/i386-xstate.h: New.
7519 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7521 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7523 * features/Makefile (WHICH): Add i386/i386-avx,
7524 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7525 (i386/i386-avx-expedite): New.
7526 (i386/i386-avx-linux-expedite): Likewise.
7527 (i386/x86-64-avx-expedite):Likewise.
7528 (i386/x86-64-avx-linux-expedite): Likewise.
7529 ($(outdir)/i386/i386-avx.dat): New dependency.
7530 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7531 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7532 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7534 * features/i386/32bit-avx.xml: New.
7535 * features/i386/64bit-avx.xml: Likewise.
7536 * features/i386/i386-avx-linux.c: Likewise.
7537 * features/i386/i386-avx-linux.xml: Likewise.
7538 * features/i386/i386-avx.c: Likewise.
7539 * features/i386/i386-avx.xml: Likewise.
7540 * features/i386/x86-64-avx-linux.c: Likewise.
7541 * features/i386/x86-64-avx-linux.xml: Likewise.
7542 * features/i386/x86-64-avx.c: Likewise.
7543 * features/i386/x86-64-avx.xml: Likewise.
7544 * regformats/i386/i386-avx-linux.dat: Likewise.
7545 * regformats/i386/i386-avx.dat: Likewise.
7546 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7547 * regformats/i386/x86-64-avx.dat: Likewise.
7549 2010-04-07 Doug Evans <dje@google.com>
7551 * top.c (source_file_name): Make const char *.
7552 * top.h (source_file_name): Update.
7553 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7555 (script_from_file): Change `file' arg to const char *.
7556 * cli/cli-script.h (script_from_file): Update.
7558 2010-04-06 Doug Evans <dje@google.com>
7560 * cli/cli-cmds.c (source_command): Run cleanups.
7562 2010-04-06 Stan Shebs <stan@codesourcery.com>
7564 * defs.h (char_ptr): Move typedef here from...
7565 * ada-lang.c (char_ptr): Remove.
7566 * charset.c (char_ptr): Remove.
7567 * tracepoint.h (struct uploaded_string): Remove.
7568 (struct uploaded_tp): Use vectors for string arrays.
7569 * tracepoint.c (trace_save): Use vectors of actions.
7570 (parse_tracepoint_definition): Ditto.
7571 (get_uploaded_tp): Clear vectors.
7572 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7573 (next_cmd): Change to an int.
7574 (read_next_cmd): Use vector of command strings.
7576 2010-04-06 Doug Evans <dje@google.com>
7578 * top.h (source_script, cd_command): Delete.
7579 * main.c: #include "cli/cli-cmds.h"
7581 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7583 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7584 type in bytes, not bits.
7586 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7588 * stabsread.c (define_symbol): Add support for char
7589 and string constants.
7591 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7593 Remove remaining "%ll" uses.
7594 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7596 * rs6000-nat.c (rs6000_ptrace64): Idem.
7597 * solib-pa64.c (pa64_current_sos): Idem.
7598 * solib-spu.c (spu_current_sos): Idem.
7599 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7601 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7603 * sh64-tdep.c (sh64_show_media_regs): Idem.
7605 2010-04-05 Stan Shebs <stan@codesourcery.com>
7607 * tracepoint.c: Include gdbcore.h.
7608 (tfile_xfer_partial): Return partial results, also try reading
7610 (tfile_has_all_memory): New function.
7611 (init_tfile_ops): Use it.
7613 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7616 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7617 the changes in data-directory.
7618 (init_sysinfo): Reload the syscall XML file if the data-directory
7621 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7626 2010-04-04 Stan Shebs <stan@codesourcery.com>
7627 Nathan Sidwell <nathan@codesourcery.com>
7629 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7630 breakpoints printed.
7631 (is_hardware_watchpoint): Make argument const.
7632 (is_watchpoint): Ditto.
7633 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7635 (breakpoints_info): Pass NULL to breakpoint_1.
7636 (maintenance_info_breakpoints): Ditto.
7637 (watchpoints_info): New function.
7638 (tracepoints_info): Use breakpoint_1 filter.
7639 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7640 (_initialize_breakpoint): Make "info watchpoints" its own command.
7641 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7642 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7644 2010-04-04 Stan Shebs <stan@codesourcery.com>
7646 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7648 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7651 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7653 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7655 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7656 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7658 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7663 2010-04-02 Hui Zhu <teawater@gmail.com>
7665 * i386-tdep.c (OT_DQUAD): New enum.
7666 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7667 SSE3, SSSE3 and SSE4.
7669 2010-04-02 Hui Zhu <teawater@gmail.com>
7671 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7674 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7676 * tracepoint.c (trace_dump_actions): New, factored out from
7677 trace_dump_command, and adjusted to recurse into while-stepping's
7679 (trace_dump_command): Use it.
7681 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7683 * breakpoint.h (struct counted_command_line): Moved definition to
7684 breakpoint.c, and forward declare.
7685 (breakpoint_commands): Declare.
7686 * breakpoint.c (struct counted_command_line): Moved here.
7687 (breakpoint_commands): New.
7688 * tracepoint.c (encode_actions): Use breakpoint_commands.
7689 * remote.c (remote_download_tracepoint): Ditto.
7691 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7693 * remote.c (remote_parse_stop_reply): Use hex_string instead
7694 of phex_nz for error.
7696 2010-04-01 Stan Shebs <stan@codesourcery.com>
7697 Nathan Sidwell <nathan@codesourcery.com>
7699 * tracepoint.h (enum actionline_type): Remove.
7700 (validate_actionline): Change return to void.
7701 * tracepoint.c (report_agent_reqs_errors): New function.
7702 (validate_actionline): Call it, change return to void, report errors
7704 (collect_symbol): Call report_agent_reqs_errors.
7705 (encode_actions_1): Ditto.
7706 (encode_actions): Don't expect a result from validate_actionline.
7708 2010-04-01 Stan Shebs <stan@codesourcery.com>
7710 * tracepoint.c (trace_start_command): Confirm if trace is running.
7711 (trace_stop_command): Error if trace not running.
7713 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7715 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7716 (AMD64_NUM_LOWER_BYTE_REGS): New.
7717 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7718 (amd64_pseudo_register_write): Likewise.
7719 (amd64_init_abi): Set num_byte_regs to 20.
7721 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7723 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7724 (prev_breakpoint_count): New.
7725 (set_breakpoint_count): Adjust.
7726 (rbreak_start_breakpoint_count): New.
7727 (start_rbreak_breakpoints): Adjust.
7728 (end_rbreak_breakpoints): Adjust.
7729 (struct commands_info) <arg>: New field.
7730 (do_map_commands_command): Tweak output to include breakpoint spec
7732 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7733 ARG was empty on entry. Set INFO's arg.
7734 (create_breakpoint): Adjust.
7736 * NEWS: Clarify `commands' changes.
7738 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7740 * tracepoint.c: Include stack.h.
7741 (struct add_local_symbols_data): New.
7742 (do_collect_symbol): New.
7743 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7744 iterate_over_block_local_vars.
7745 * stack.c (print_block_frame_locals): Rewrite as ...
7746 (iterate_over_block_locals): ... this. Take a callback function
7747 pointer and generic data pointer, and call that instead of
7748 print_variable_and_value.
7749 (struct print_variable_and_value_data): New.
7750 (do_print_variable_and_value): New.
7751 (iterate_over_block_local_vars): New, abstracted out from
7752 print_frame_local_vars.
7753 (print_frame_local_vars): Rewrite using
7754 iterate_over_block_local_vars.
7755 (iterate_over_block_arg_vars): New, abstracted out from
7756 print_frame_arg_vars.
7757 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7758 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7759 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7761 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7763 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7764 instructions. Use the PC+4 if the base of the TBB or TBH is the
7767 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7769 Fix crash on reading wrong function declaration DWARF.
7770 * dwarf2read.c (read_subroutine_type): New variable void_type.
7771 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7772 more close to their use.
7774 2010-03-31 Stan Shebs <stan@codesourcery.com>
7776 * breakpoint.c (tracepoint_save_command): Include variables,
7777 conditionals, tracepoint types, and default-collect.
7778 * tracepoint.c (save_trace_state_variables): New function.
7779 * tracepoint.h (save_trace_state_variables): Declare it.
7781 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7783 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7785 2010-03-30 Keith Seitz <keiths@redhat.com>
7787 * c-typeprint.c (c_type_print_args): Don't print "void"
7788 for java, regardless of whether it is TYPE_PROTOTYPED.
7789 Use the passed-in language instead of current_language.
7790 (c_type_print_varspec_suffix): Use current_language instead
7791 of assuming language_c.
7792 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7793 any return type specifier from the physname.
7795 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7797 * tui/tui-interp.c (tui_is_toplevel): New.
7799 (tui_allowed_p): New.
7800 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7802 * tui/tui.h (tui_allowed_p): Declare.
7804 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7806 * serial.h: Include winsock2.h before windows.h.
7808 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7810 * NEWS: Mention xmlRegisters= in qSupported packet.
7812 * i386-tdep.c: Include "remote.h".
7813 (_initialize_i386_tdep): Call register_remote_support_xml.
7815 * remote.c (remote_support_xml): New.
7816 (register_remote_support_xml): Likewise.
7817 (remote_query_supported_append): Likewise.
7818 (remote_query_supported): Support remote_support_xml.
7820 * remote.h (register_remote_support_xml): New.
7822 2010-03-29 Stan Shebs <stan@codesourcery.com>
7824 * tracepoint.c (trace_find_line_command): Remove dead code.
7826 * tracepoint.h (struct uploaded_string): New struct.
7827 (struct uploaded_tp): New fields for source strings.
7828 * breakpoint.c (this_utp, next_cmd): New globals.
7829 (read_uploaded_action): New function.
7830 (create_tracepoint_from_upload): Fill in more parts
7832 * tracepoint.c (encode_source_string): New function.
7833 (trace_save): Write out source strings, fix error checks.
7834 (parse_tracepoint_definition): Add source string parsing.
7835 * remote.c (PACKET_TracepointSource): New packet type.
7836 (remote_download_command_source): New function.
7837 (remote_download_tracepoint): Download source pieces also.
7838 (_initialize_remote): Add packet config command.
7840 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7843 * tracepoint.c (start_tracing): Check tracepoints before sending
7844 commands to target, don't start if all tracepoints disabled.
7846 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7848 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7850 2010-03-26 Stan Shebs <stan@codesourcery.com>
7852 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7854 2010-03-26 Tom Tromey <tromey@redhat.com>
7856 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7858 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7860 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7861 (skip_prologue_sal): Remove local definition.
7862 (resolve_sal_pc): Remove now unnecessary code.
7863 * linespec.c (minsym_found): Call skip_prologue_sal.
7864 * symtab.c (find_function_start_pc): Remove.
7865 (find_function_start_sal): Extract prologue skipping into ...
7866 (skip_prologue_sal): ... this new function. Handle code both
7867 with and without debug info. Respect SAL's explicit_pc and
7868 explicit_line flags. Inline old find_function_start_pc.
7869 * symtab.h (find_function_start_pc): Remove.
7870 (skip_prologue_sal): Add prototype.
7872 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7874 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7875 for DW_TAG_imported_module children.
7877 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7879 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7880 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7881 * completer.c (add_struct_fields): Fix inverted logic.
7883 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7885 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7887 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7889 * tracepoint.c (current_trace_status): Don't make sure error_desc
7891 (parse_trace_status): Release a previous error_desc string, and
7892 set it to NULL by default. If stop reason is tracepoint_error,
7893 make sure error_desc is not left NULL.
7895 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7897 * tracepoint.c (trace_save): Remove X from tracepoint error
7900 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7902 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7903 the terror description. Don't expect an X prefix.
7905 2010-03-25 Stan Shebs <stan@codesourcery.com>
7907 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7908 (struct trace_status): New field error_desc.
7909 * tracepoint.c (stop_reason_names): Add terror.
7910 (current_trace_status): Ensure non-NULL error description.
7911 (trace_status_command): Add error report.
7912 (trace_status_mi): Ditto.
7913 (trace_save): Add special case for error description.
7914 (parse_trace_status): Add case for errors.
7916 2010-03-25 Keith Seitz <keiths@redhat.com>
7918 * dwarf2read.c (read_subroutine_type): If the compilation unit
7919 language is Java, mark any formal parameter named "this" as
7920 artificial (GCC/43521).
7921 (dwarf2_name): Add special handling for Java constructors.
7923 2010-03-25 Tom Tromey <tromey@redhat.com>
7925 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7926 * infrun.c (handle_inferior_event): Change initialization of
7928 (handle_inferior_event): Change assignment to stop_stack_dummy.
7929 (normal_stop): Update use of stop_stack_dummy.
7930 (struct inferior_status) <stop_stack_dummy>: Change type.
7931 * inferior.h (stop_stack_dummy): Update.
7932 * infcmd.c (stop_stack_dummy): Change type.
7933 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7935 (call_function_by_hand): Call set_std_terminate_breakpoint.
7936 Rewrite std::terminate handling.
7937 * breakpoint.h (enum bptype) <bp_std_terminate,
7938 bp_std_terminate_master>: New.
7939 (enum stop_stack_kind): New.
7940 (struct bpstat_what) <call_dummy>: Change type.
7941 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7943 * breakpoint.c (create_std_terminate_master_breakpoint): New
7945 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7946 Call create_std_terminate_master_breakpoint.
7947 (print_it_typical): Handle new breakpoint kinds.
7948 (bpstat_stop_status): Handle bp_std_terminate_master.
7949 (bpstat_what): Correctly set call_dummy field. Handle
7950 bp_std_terminate_master and bp_std_terminate.
7951 (print_one_breakpoint_location): Update.
7952 (allocate_bp_location): Update.
7953 (set_std_terminate_breakpoint): New function.
7954 (delete_std_terminate_breakpoint): Likewise.
7955 (create_thread_event_breakpoint): Update.
7956 (delete_command): Update.
7957 (breakpoint_re_set_one): Update.
7958 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7960 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7962 * symfile.c (build_section_addr_info_from_bfd): New.
7963 (build_section_addr_info_from_objfile): Base it on
7964 build_section_addr_info_from_bfd.
7965 (addrs_section_compar, addrs_section_sort): New.
7966 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7967 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7968 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7970 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7972 * elfread.c (find_separate_debug_file_by_buildid):
7973 Remove unused local variable.
7975 2010-03-24 Tom Tromey <tromey@redhat.com>
7977 PR breakpoints/9352:
7978 * NEWS: Mention changes to `commands' and `rbreak'.
7979 * symtab.c (do_end_rbreak_breakpoints): New function.
7980 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7981 end_rbreak_breakpoints.
7982 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7983 (set_breakpoint_count): Likewise. Clear last_was_multi.
7984 (multi_start, multi_end, last_was_multi): New globals.
7985 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7987 (struct commands_info): New
7988 (do_map_commands_command): New function.
7989 (commands_command_1): New function.
7990 (commands_command): Use it.
7991 (commands_from_control_command): Likewise.
7992 (do_delete_breakpoint): New function.
7993 (delete_command): Use it.
7994 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7995 (do_map_disable_breakpoint): New function.
7996 (disable_command): Use it.
7997 (do_map_enable_breakpoint): New function.
7998 (enable_command): Use it.
7999 (enable_once_breakpoint): Add argument.
8000 (enable_once_command): Update.
8001 (enable_delete_breakpoint): Add argument.
8002 (enable_delete_command): Update.
8003 (break_command_really): Set last_was_multi when needed.
8004 (check_tracepoint_command): Fix formatting.
8005 (validate_commands_for_breakpoint): New function.
8006 (breakpoint_set_commands): Use it.
8007 (tracepoint_save_command): Update.
8008 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8011 2010-03-24 Tom Tromey <tromey@redhat.com>
8013 * breakpoint.h (struct counted_command_line): New struct.
8014 (struct breakpoint) <commands>: Change type.
8015 (struct bpstats) <commands>: Change type.
8016 <commands_left>: New field.
8017 * breakpoint.c (alloc_counted_command_line): New function.
8018 (incref_counted_command_line): Likewise.
8019 (decref_counted_command_line): Likewise.
8020 (do_cleanup_counted_command_line): Likewise.
8021 (make_cleanup_decref_counted_command_line): Likewise.
8022 (breakpoint_set_commands): Use decref_counted_command_line and
8023 alloc_counted_command_line.
8024 (commands_command): Don't error if breakpoint commands are
8026 (commands_from_control_command): Likewise.
8027 (bpstat_free): Update.
8028 (bpstat_copy): Likewise.
8029 (bpstat_clear_actions): Likewise.
8030 (bpstat_do_actions_1): Likewise.
8031 (bpstat_stop_status): Likewise.
8032 (print_one_breakpoint_location): Likewise.
8033 (delete_breakpoint): Likewise.
8034 (bpstat_alloc): Initialize new field.
8035 (tracepoint_save_command): Update.
8036 * tracepoint.c (encode_actions): Update.
8037 (trace_dump_command): Update.
8039 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8041 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8042 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8043 (read_structure_type): For RealView, set TYPE_STUB on structures with
8044 no byte size and no children.
8045 (read_subroutine_type): Mark functions as prototyped by default.
8046 * symtab.c (producer_is_realview): New function.
8047 * symtab.h (expand_line_sal): Fix declaration formatting.
8048 (producer_is_realview): Declare.
8050 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8052 * arm-tdep.c (skip_prologue_function): New function.
8053 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8054 (thumb_analyze_prologue): Document return value. Recognize more
8055 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8057 (arm_skip_prologue): Remove call dummy check. Check the prologue
8058 for non-GNU compilers.
8059 (arm_instruction_changes_pc): New function.
8060 (arm_analyze_prologue): New function, broken out from
8061 arm_scan_prologue. Recognize more ARM instructions and skippable
8062 calls. Update comments. Handle NULL cache. Return the address
8063 of the first unrecognized instruction. Do not skip past other
8064 instructions which change control flow. Add debug output.
8065 (arm_scan_prologue): Use arm_analyze_prologue.
8066 (ARM_PC_32): Delete.
8067 (shifted_reg_val): Simplify ARM_PC_32 check.
8069 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8071 * tracepoint.c (tvariables_info_1): Actually compute
8072 the number of rows in the result.
8074 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8076 * remote.c (crc32): Constify `buf' parameter.
8077 (remote_verify_memory): New, abstracted out from...
8078 (compare_sections_command): ... this. Remove hardcoded target
8080 (init_remote_ops): Install remote_verify_memory.
8081 * target.c (target_verify_memory): New.
8082 * target.h (struct target_ops) <to_verify_memory>: New field.
8083 (target_verify_memory): Declare.
8085 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8087 Implement -trace-save.
8089 * mi-cmds.h (mi_cmds_trace_save): Declare.
8090 * mi-cmds.c (mi_cmds): Register -trace-save.
8091 * mi/mi-main.c (mi_cmd_trace_save): New.
8092 * remote.c (remote_save_trace_data): Take const parameter.
8093 * target.h (struct target_ops::to_save_trace_data): Take
8095 * target.c (update_current_target): Adjust to the above.
8096 * tracepoint.c (trave_save): New, extracted from
8097 (trace_save_command): ...this.
8098 (tfile_trace_find): Remove message that is unnecessary now
8099 that 'tfind' reports found frame.
8100 * tracepoint.h (trace_save): Declare.
8102 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8104 Implement -trace-find.
8106 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8107 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8108 * mi/mi-main.c (mi_cmd_trace_find): New.
8109 * target.h (struct target_ops): Document to_trace_find.
8110 * tracepoint.h (tfind_1): Declare.
8111 * tracepoint.c (finish_tfind_command): Rename to...
8113 * remote.c (remote_trace_find): Return -1 if target say
8114 there's no frame. Improve error diagnostics.
8116 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8118 -trace-define-variable and -trace-list-variables.
8120 * tracepoint.c (create_trace_state_variable): Make
8121 private copy of name, as opposed to assuming the
8122 pointer lives forever.
8123 (tvariables_info_1): New.
8124 (tvariables_info): Use the above.
8125 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8127 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8128 and -trace-list-variables.
8129 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8130 (mi_cmd_trace_list_variables): New.
8131 * mi/mi-main.c (mi_cmd_trace_define_variable)
8132 (mi_cmd_trace_list_variables): New.
8134 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8136 Implement -break-passcount.
8138 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8139 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8140 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8142 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8144 -trace-start/-trace-end/-trace-status.
8146 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8148 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8149 (mi_cmd_trace_stop): Declare.
8150 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8151 (mi_cmd_trace_stop): New.
8152 * tracepoint.c (start_tracing): New, extracted from...
8153 (trace_start_command): ...this.
8154 (trace_status_mi): New.
8155 * tracepoint.h (struct trace_status): Document
8156 stopping_tracepoint.
8157 (start_tracing, stop_tracing, trace_status_mi): Declare.
8159 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8161 Implement creating tracepoints with -break-insert.
8163 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8164 to mean that tracepoint should be created.
8166 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8168 * breakpoint.c (check_no_tracepoint_commands): Use
8169 current spelling of 'teval'.
8171 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8173 Unify actions and commands
8175 * defs.h (read_command_lines, read_command_lines_1): New
8176 parameters validator and closure.
8177 * tracepoint.h (struct action_line): Remove.
8178 * breakpoint.h (struct breakpoint): Remove the 'actions'
8180 * defs.h (enum command_control_type): New value
8181 while_stepping_control.
8182 (struct command_line): Add comments.
8183 * breakpoint.c (breakoint_is_tracepoint): New.
8184 (breakpoint_set_commands): For tracepoints,
8185 verify the commands are permissible.
8186 (check_tracepoint_commands): New.
8187 (commands_command): Require that each new line is validated using
8188 check_tracepoint_command, if we set commands for a tracepoint.
8189 (create_tracepoint_from_upload): Likewise.
8190 (print_one_breakpoint_location): Remove the code to print
8191 actions specifically.
8192 (tracepoint_save_command): Relay to print_command_lines.
8193 * cli/cli-script.c (process_next_line): New parameters validator
8194 and closure. Handle 'while-stepping'. Call validator if not null.
8195 (read_command_lines, read_command_lines1): Likewise.
8196 (recurse_read_control_structure): New parameters validator and
8197 closure. Handle while_stepping_control.
8198 (print_command_lines): Handle while-stepping.
8199 (get_command_line, define_command, document_command): Adjust.
8200 * remote.c (remote_download_tracepoint): Adjust.
8201 * tracepoint.c (make_cleanup_free_actions, read_actions)
8202 (free_actions, do_free_actions_cleanup): Remove.
8203 (trace_actions_command): Use read_command_lines.
8204 (validate_actionline): Use error in one place.
8205 (encode_actions_1): New, extracted from...
8206 (encode_actions): ...this. Also use cleanups for exception
8208 (trace_dump_command): Adjust.
8209 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8212 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8214 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8216 2010-03-22 Stan Shebs <stan@codesourcery.com>
8218 * value.c (value_static_field): Be lazy about the field's value.
8220 2010-03-22 Reid Kleckner <reid@kleckner.net>
8223 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8225 (disable_breakpoints_in_shlibs): Likewise.
8227 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8229 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8230 GCC 4.1 debug info generation (GCC PR c++/28460).
8231 (determine_prefix): Likewise.
8233 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8235 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8237 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8239 2010-03-19 Stan Shebs <stan@codesourcery.com>
8241 * ax-gdb.c (gen_fetch): Handle bool.
8242 (gen_usual_unary): Ditto.
8244 (gen_equal): New function.
8245 (gen_less): New function.
8246 (gen_expr_binop_rest): Call them, also return integer type from
8250 2010-03-19 Tom Tromey <tromey@redhat.com>
8252 * jv-lang.c (jv_dynamics_objfile_data_key)
8253 (jv_type_objfile_data_key): New globals.
8254 (class_symtab): Move earlier.
8255 (jv_per_objfile_free): New function.
8256 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8258 Remove ancient #if 1.
8259 (add_class_symbol): Remove redundant declaration.
8260 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8261 (java_link_class_type): Mark as static. Update.
8262 (jv_clear_object_type): New function.
8263 (set_java_object_type): Likewise.
8264 (get_java_object_type): Use set_java_object_type.
8265 (is_object_type): Likewise.
8266 (_initialize_java_language): Register new objfile keys.
8267 (get_java_class_symtab): Add 'gdbarch' parameter.
8268 (add_class_symtab_symbol): Update.
8269 (type_from_class): Update.
8271 2010-03-19 Stan Shebs <stan@codesourcery.com>
8273 * ax-general.c (ax_const_l): Fix a sizing bug.
8275 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8279 2010-03-18 Stan Shebs <stan@codesourcery.com>
8280 Pedro Alves <pedro@codesourcery.com>
8282 * target.h (struct target_ops): New method
8283 to_set_circular_trace_buffer.
8284 (target_set_circular_trace_buffer): New macro.
8285 * target.c (update_current_target): Add
8286 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8288 * remote.c (remote_set_circular_trace_buffer): New function.
8289 (init_remote_ops): Add it to vector.
8290 * tracepoint.h (struct trace_status): New field traceframes_created,
8291 change buffer_size and buffer_free to int.
8292 * tracepoint.c (circular_trace_buffer): New global.
8293 (start_tracing): Send values of disconnected tracing and circular
8294 trace buffer settings.
8295 (set_circular_trace_buffer): New function.
8296 (parse_trace_state): Handle total space and frames created.
8297 (trace_status_command): Display total space and total frames
8299 (trace_save): Write out new status values.
8300 (parse_trace_status): Set traceframe_count, traceframes_created,
8301 buffer_free and buffer_size to -1 by default.
8302 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8303 * NEWS: Mention the circular trace buffer option.
8305 2010-03-18 Tom Tromey <tromey@redhat.com>
8307 * infcmd.c (finish_command_continuation): Wrap print_return_value
8310 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8312 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8313 DIE has a name before creating the associated partial symbol.
8314 (read_func_scope): Emit a complaint if the subprogram does not
8315 have a name or when we can't extract the subprogram PC bounds.
8317 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8319 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8320 instead of selected frame architecture.
8322 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8324 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8325 a valid selected thread, and that it is not running.
8326 (advance_command): Ditto.
8327 (finish_command): Ditto.
8329 2010-03-17 Stan Shebs <stan@codesourcery.com>
8331 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8333 * infcall.c: Include tracepoint.h.
8334 (call_function_by_hand): Disallow calls in tfind mode.
8335 * infcmd.c: Include tracepoint.h.
8336 (ensure_not_tfind_mode): New function.
8337 (continue_1): Call it.
8339 (jump_command): Ditto.
8340 (signal_command): Ditto.
8341 (advance_command): Ditto.
8342 (until_command): Ditto.
8343 (finish_command): Ditto.
8344 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8346 * ax-gdb.h (struct axs_value): New field optimized_out.
8347 (gen_trace_for_var): Add gdbarch argument.
8348 * ax-gdb.c (gen_trace_static_fields): New function.
8349 (gen_traced_pop): Call it, add gdbarch argument.
8350 (gen_trace_for_expr): Update call to it.
8351 (gen_trace_for_var): Ditto, and report optimized-out variables.
8352 (gen_struct_ref_recursive): Check for optimized-out value.
8353 (gen_struct_elt_for_reference): Ditto.
8354 (gen_static_field): Pass gdbarch instead of expression, assume
8355 optimization if field not found.
8356 (gen_var_ref): Set the optimized_out flag.
8357 (gen_expr): Error on optimized-out variable.
8358 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8359 expressions, skip optimized-out variables with computed locations.
8360 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8361 erroring out if location expression missing.
8362 (loclist_tracepoint_var_ref): Don't error out here.
8364 2010-03-17 Tom Tromey <tromey@redhat.com>
8366 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8367 DWARF data is available.
8369 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8371 * symfile.c (generic_load): Reset breakpoints after loading.
8373 2010-03-17 Tom Tromey <tromey@redhat.com>
8375 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8377 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8379 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8380 create_breakpoint call, adjust the parameters.
8382 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8383 Chandru <chandru@in.ibm.com>
8385 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8386 * valarith.c (value_subscripted_rvalue): Suppress error if
8387 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8389 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8391 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8393 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8395 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8396 before doing the associated thread switch.
8398 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8400 * MAINTAINERS: Update my email address.
8402 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8404 Simplify MI breakpoint setting.
8406 * breakpoint.c (break_command_really): Make nonstatic and
8408 (create_breakpoint): ...this. Rename prior function by this name
8410 (create_breakpoint_sal): ...this.
8411 (create_breakpoints): Rename to...
8412 (create_breakpoints_sal): ...this.
8413 (set_breakpoint): Remove.
8414 * breakpoint.h: Adjust to above changes.
8415 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8417 2010-03-15 Stan Shebs <stan@codesourcery.com>
8419 * ax-gdb.c: Include cp-support.h.
8420 (find_field): Remove.
8421 (gen_primitive_field): New function.
8422 (gen_struct_ref_recursive): New function.
8423 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8425 (gen_static_field): New function.
8426 (gen_struct_elt_for_reference): New.
8427 (gen_namespace_elt): New.
8428 (gen_maybe_namespace_elt): New.
8429 (gen_aggregate_elt_ref): New.
8430 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8432 2010-03-15 Tom Tromey <tromey@redhat.com>
8434 * dwarf2read.c (die_needs_namespace): Also return 0 for
8437 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8440 * cp-support.h: Added char *declaration element to using_direct
8442 (cp_add_using): Added char *declaration argument.
8443 (cp_add_using_directive): Ditto.
8444 (cp_lookup_symbol_imports): made extern.
8445 * cp-namespace.c: Updated with the above changes.
8446 * dwarf2read.c (read_import_statement): Ditto.
8447 (read_namespace): Ditto.
8448 (read_import_statement): Support import declarations.
8449 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8451 Added support for 'declaration_only' search.
8452 (cp_lookup_symbol_namespace): Attempt to search for the name as
8453 is before consideration of imports.
8454 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8455 search at every block level search.
8456 Now takes language argument.
8457 (lookup_symbol_aux): Updated.
8459 2010-03-15 Tom Tromey <tromey@redhat.com>
8461 * c-exp.y (name_not_typename): Add 'operator' clause.
8463 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8465 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8466 * configure: Regenerate.
8468 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8470 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8471 and ".sdynbss". Update the comment.
8473 2010-03-15 Jie Zhang <jie@codesourcery.com>
8475 * MAINTAINERS: Update my email address.
8477 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8479 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8481 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8483 * charset.c [USE_WIN32API]: Include <windows.h>.
8484 (_initialize_charset): Correct type of w32_host_default_charset.
8486 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8488 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8490 2010-03-12 Tom Tromey <tromey@redhat.com>
8493 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8494 in a lexical block does not need a namespace.
8495 (new_symbol) <DW_TAG_variable>: Put extern variables on
8496 list_in_scope in all cases.
8498 2010-03-12 Stan Shebs <stan@codesourcery.com>
8500 * ax-gdb.c (gen_expr): Add shift expressions.
8501 (gen_expr_binop_rest): Ditto.
8503 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8505 * buildsym.c (finish_block): Reset using_directives pointer
8506 after block initialization.
8508 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8510 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8511 * i386-tdep.c (i386_word_names): Likewise.
8513 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8515 * target.c (memory_xfer_partial): Don't use the stack cache if
8516 inspecting trace frames.
8517 * tracepoint.c (finish_tfind_command): Invalidate the target
8520 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8522 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8523 for the PIC displacement, print also the displacement value.
8524 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8526 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8528 * remote-mips.c (close_ports, mips_initialize_cleanups)
8529 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8530 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8531 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8532 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8533 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8534 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8535 comments describing each of these functions.
8536 (mips_enter_debug, mips_exit_debug, common_open)
8537 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8538 blank line after the comment describing the function.
8540 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8542 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8543 parameter displacementp. Update comment.
8544 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8545 element exists. Return if svr4_exec_displacement was not successful.
8548 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8549 Daniel Jacobowitz <dan@codesourcery.com>
8551 * solib-svr4.c (read_program_header): Support type == -1 to read
8552 all program headers.
8553 (read_program_headers_from_bfd): New function.
8554 (svr4_static_exec_displacement): Remove and move the comment ...
8555 (svr4_exec_displacement): ... here. Remove variable found. New
8556 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8557 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8558 targets using read_program_headers_from_bfd. Remove the call of
8559 svr4_static_exec_displacement.
8561 2010-03-10 Tom Tromey <tromey@redhat.com>
8563 * dwarf2read.c (struct pubnames_header): Remove.
8564 (_PUBNAMES_HEADER): Remove.
8565 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8566 (struct aranges_header): Remove.
8567 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8568 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8569 (PUBNAMES_SECTION): Remove.
8570 (ARANGES_SECTION): Remove.
8571 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8572 (dwarf2_build_psymtabs): Remove dead code.
8573 (dwarf2_build_psymtabs_easy): Remove.
8575 2010-03-10 Tom Tromey <tromey@redhat.com>
8577 * elfread.c (elf_symfile_read): Don't call
8578 dwarf2_build_frame_info.
8579 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8580 (struct dwarf2_per_objfile) <objfile>: New field.
8581 (dwarf2_has_info): Now idempotent. Set objfile field.
8582 (dwarf2_read_section): Check and set readin field. Call
8584 (dwarf2_build_psymtabs): Don't read all sections.
8585 (read_type_comp_unit_head): Read types section.
8586 (create_debug_types_hash_table): Likewise.
8587 (init_cu_die_reader): Add asserts.
8588 (process_type_comp_unit): Add assert.
8589 (dwarf2_build_psymtabs_hard): Read info section.
8590 (load_partial_comp_unit): Add assert.
8591 (create_all_comp_units): Read info section.
8592 (load_full_comp_unit): Likewise.
8593 (dwarf2_ranges_read): Read ranges section.
8594 (dwarf2_record_block_ranges): Add assert.
8595 (dwarf2_read_abbrevs): Read abbrev section.
8596 (read_indirect_string): Read str section.
8597 (dwarf_decode_line_header): Read line section.
8598 (read_signatured_type_at_offset): Read types section.
8599 (dwarf_decode_macros): Read macinfo section.
8600 (dwarf2_symbol_mark_computed): Read loc section.
8601 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8602 dwarf2_build_frame_info.
8603 (dwarf2_build_frame_info): Unconditionally set
8604 dwarf2_frame_objfile_data on the objfile.
8605 * configure.ac: Check for posix_madvise.
8606 * config.in, configure: Rebuild.
8608 2010-03-10 Tom Tromey <tromey@redhat.com>
8610 * xcoffread.c (xcoff_start_psymtab): Update.
8611 (xcoff_end_psymtab): Update.
8612 * psymtab.c (allocate_psymtab): Remove dead code.
8613 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8615 * mdebugread.c (parse_partial_symbols): Update.
8616 (new_psymtab): Likewise.
8617 * dwarf2read.c (process_psymtab_comp_unit): Update.
8618 (psymtab_to_symtab_1): Update.
8619 * dbxread.c (start_psymtab): Update.
8620 (end_psymtab): Likewise.
8622 2010-03-10 Tom Tromey <tromey@redhat.com>
8624 * xcoffread.c: Include psymtab.h.
8625 (xcoff_sym_fns): Update.
8626 * symtab.h (struct partial_symbol): Remove.
8627 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8628 (struct partial_symtab): Remove.
8629 (PSYMTAB_TO_SYMTAB): Remove.
8630 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8631 (find_pc_sect_psymtab): Remove.
8632 (find_pc_sect_symtab_via_partial): Declare.
8633 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8634 (find_main_psymtab): Remove.
8635 (find_main_filename): Declare.
8636 (fixup_psymbol_section): Remove.
8637 (fixup_section): Declare.
8638 * symtab.c: Include psymtab.h.
8639 (lookup_symtab): Use lookup_symtab method.
8640 (lookup_partial_symtab): Remove.
8641 (find_pc_sect_psymtab_closer): Remove.
8642 (find_pc_sect_psymtab): Remove.
8643 (find_pc_sect_symtab_via_partial): New function.
8644 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8645 (fixup_section): No longer static.
8646 (fixup_psymbol_section): Remove.
8647 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8648 (lookup_global_symbol_from_objfile): Likewise.
8649 (lookup_symbol_aux_psymtabs): Remove.
8650 (lookup_symbol_aux_quick): New function.
8651 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8652 (lookup_partial_symbol): Remove.
8653 (basic_lookup_transparent_type_quick): New function.
8654 (basic_lookup_transparent_type): Use it.
8655 (find_main_psymtab): Remove.
8656 (find_main_filename): New function.
8657 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8658 (find_line_symtab): Use expand_symtabs_with_filename method.
8659 (output_partial_symbol_filename): New function.
8660 (sources_info): Use map_partial_symbol_filenames.
8661 (struct search_symbols_data): New type.
8662 (search_symbols_file_matches): New function.
8663 (search_symbols_name_matches): Likewise.
8664 (search_symbols): Use expand_symtabs_matching method.
8665 (struct add_name_data): Rename from add_macro_name_data.
8666 (add_macro_name): Update.
8667 (add_partial_symbol_name): New function.
8668 (default_make_symbol_completion_list): Use
8669 map_partial_symbol_names.
8670 (struct add_partial_symbol_name): New type.
8671 (maybe_add_partial_symtab_filename): New function.
8672 (make_source_files_completion_list): Use
8673 map_partial_symbol_filenames.
8674 (expand_line_sal): Use expand_symtabs_with_filename method.
8675 * symmisc.c: Include psymtab.h.
8676 (print_objfile_statistics): Use print_stats method.
8677 (dump_objfile): Use dump method.
8678 (dump_psymtab, maintenance_print_psymbols)
8679 (maintenance_info_psymtabs, maintenance_check_symtabs)
8680 (extend_psymbol_list): Remove.
8681 * symfile.h (struct quick_symbol_functions): New struct.
8682 (struct sym_fns) <qf>: New field.
8683 (sort_pst_symbols): Remove.
8684 (increment_reading_symtab): Declare.
8685 * symfile.c: Include psymtab.h.
8686 (compare_psymbols, sort_pst_symbols): Remove.
8687 (psymtab_to_symtab): Remove.
8688 (increment_reading_symtab): New function.
8689 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8691 (set_initial_language): Use find_main_filename.
8692 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8693 (free_named_symtabs): Remove unused code.
8694 (start_psymtab_common, add_psymbol_to_bcache)
8695 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8697 * stack.c: Include psymtab.h, symfile.h.
8698 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8699 * source.h (psymtab_to_fullname): Don't declare.
8700 * source.c: Include psymtab.h.
8701 (select_source_symtab): Use find_last_source_symtab method.
8702 (forget_cached_source_info): Use forget_cached_source_info
8704 (find_and_open_source): No longer static.
8705 (psymtab_to_fullname): Remove.
8706 * somread.c: Include psymtab.h.
8707 (som_sym_fns): Update.
8708 * psympriv.h: New file.
8709 * psymtab.h: New file.
8710 * psymtab.c: New file.
8711 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8712 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8713 * objfiles.c: Include psymtab.h.
8714 (objfile_relocate1): Use relocate method.
8715 (objfile_has_partial_symbols): Use has_symbols method.
8716 * mipsread.c: Include psymtab.h.
8717 (ecoff_sym_fns): Update.
8718 * mi/mi-cmd-file.c: Include psymtab.h.
8719 (print_partial_file_name): New function.
8720 (mi_cmd_file_list_exec_source_files): Use
8721 map_partial_symbol_filenames.
8722 * mdebugread.c: Include psympriv.h.
8723 * machoread.c: Include psympriv.h.
8724 (macho_sym_fns): Update.
8725 * m2-exp.y (yylex): Use lookup_symtab.
8726 * elfread.c: Include psympriv.h.
8727 (elf_sym_fns): Update.
8728 * dwarf2read.c: Include psympriv.h.
8729 * dbxread.c: Include psympriv.h.
8730 (aout_sym_fns): Update.
8731 * cp-support.c: Include psymtab.h.
8732 (read_in_psymtabs): Remove.
8733 (make_symbol_overload_list_qualified): Use
8734 expand_symtabs_for_function method.
8735 * coffread.c: Include psympriv.h.
8736 (coff_sym_fns): Update.
8737 * blockframe.c: Include psymtab.h.
8738 (find_pc_partial_function): Use find_pc_sect_symtab method.
8739 * ada-lang.h (ada_update_initial_language): Update.
8740 * ada-lang.c: Include psymtab.h.
8741 (ada_update_initial_language): Remove 'main_pst' argument.
8742 (ada_lookup_partial_symbol): Remove.
8743 (struct ada_psym_data): New type.
8744 (ada_add_psyms): New function.
8745 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8746 (struct add_partial_datum): New type.
8747 (ada_add_partial_symbol_completions): New function.
8748 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8749 (ada_exception_support_info_sniffer): Update.
8750 * Makefile.in (SFILES): Add psymtab.c.
8751 (COMMON_OBS): Add psymtab.o.
8752 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8754 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8756 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8758 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8761 * cp-namespace.c (cp_add_using): Deleted.
8762 (cp_add_using_directive): Use obstack allocations.
8763 Merged the function cp_add_using into this one.
8764 Added 'struct obstack *' argument.
8765 (cp_scan_for_anonymous_namespaces): Updated.
8766 * cp-support.h: Updated.
8767 * dwarf2read.c (read_import_statement): Updated.
8768 (read_namespace): Updated.
8770 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8772 * windows-nat.c (cygwin_conv_path): Remove old macro.
8774 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8776 * breakpoint.c (condition_command): Handle watchpoint conditions.
8777 (is_hardware_watchpoint): Add comment.
8778 (is_watchpoint): New.
8779 (update_watchpoint): Don't reparse the watchpoint's condition
8782 (watchpoint_check): Use it.
8783 (bpstat_check_watchpoint): Handle it.
8784 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8785 conditions in a frame where it makes sense.
8786 (watch_command_1): Store the innermost block of the condition
8788 (delete_breakpoint): Delete the watchpoint condition expression.
8789 * breakpoint.h (struct bp_location) <cond>: Update comment.
8790 (struct breakpoint): New field `cond_exp_valid_block'.
8792 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8794 Adjust handling of Ada DIEs after dwarf2_physname patch.
8795 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8797 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8798 Pierre Muller <muller@ics.u-strasbg.fr>
8800 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8801 from/to posix/win32.
8802 (windows_make_so): Use non-Cygwin 1.7 specific function.
8803 (windows_create_inferior): Make sure that cygallargs points to
8804 original args in non Cygwin 1.7. case.
8806 2010-03-09 Michael Snyder <msnyder@vmware.com>
8808 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8809 after target_read_memory to get host byte order.
8810 (i386_process_record): Ditto.
8812 2010-03-09 Keith Seitz <keiths@redhat.com>
8814 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8815 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8816 print out const or volatile qualifiers, too.
8817 (c_type_print_args): Add parameters show_artificial and language.
8818 Skip artificial parameters when requested.
8819 Use the appropriate language printer.
8820 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8821 parameters and pass language_c.
8822 * dwarf2read.c (die_list): New file global.
8823 (struct partial_die_info): Update comments for name field.
8824 (pdi_needs_namespace): Renamed to ...
8825 (die_needs_namespace): ... this. Rewrite.
8826 (dwarf2_linkage_name): Remove.
8827 (add_partial_symbol): Do not predicate the call to
8828 partial_die_full_name based on pdi_needs_namespace.
8829 Remove call to cp_check_possible_namespace_symbols and associated
8831 (guess_structure_name): Do not inspect child subprogram DIEs.
8832 (dwarf2_fullname): Update comments.
8833 Use die_needs_namespace to assist in computing the name.
8834 (read_func_scope): Use dwarf2_name to get the DIE's name.
8835 Use dwarf2_physname to get the "linkage name" of the DIE.
8836 (dwarf2_add_member_field): Use dwarf2_physname instead of
8837 dwarf2_linkage_name.
8838 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8839 (determine_class): Remove.
8840 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8842 (new_symbol): Unconditionally call dwarf2_name.
8843 Compute the "linkage name" using dwarf2_physname.
8844 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8845 When determining to scan for anonymous C++ namespaces, ignore
8847 (dwarf2_physname): New function.
8848 (dwarf2_full_name): Move content to new function and call
8850 (dwarf2_compute_name): "New" function.
8851 (_initialize_dwarf2_read): Initialize die_list.
8852 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8854 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8855 without a demangled name.
8856 Print out type information for non-virtual methods.
8857 * linespec.c (decode_line_1): Force ANY string using "::" (or
8858 "." for java) to use decode_compound, and clean up any stray quoting.
8859 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8860 (decode_compound): Stop consuming at an open parenthesis.
8861 Keep template parameters.
8862 Keep any overload information.
8863 Keep keywords like "const".
8864 Remove paren_pointer.
8865 Move is_quoted check from set_flags to here.
8866 Remove #if 0 code from 2000. Ten years is long enough.
8867 (find_method): Before comparing symbol names, canonicalize the string
8869 If a specific overload is requested, find it. Otherwise throw an error.
8870 (find_method_overload_end): New function.
8871 (set_flags): Remove.
8872 (decode_compound): Assume that parentheses are matched.
8874 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8876 * linespec.c (decode_line_1): Keep important keywords like
8877 "const" and "volatile".
8878 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8879 * typeprint.h (c_type_print_args): Add declaration.
8880 * ui-file.c (do_ui_file_obsavestring): New function.
8881 (ui_file_obsavestring): New function.
8882 * ui-file.h (ui_file_obsavestring): Add declaration.
8883 * valops.c (find_overload_match): Resolve the object to
8885 If the object is a data member, search the object for the member
8886 and return with staticp set.
8887 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8888 Do not attempt to extract a function name from non-function types.
8889 If the extracted function name and the original name are the same,
8890 we don't have a C++ method.
8892 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8893 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8895 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8896 and arguments from symbol lookups.
8897 * ax-gdb.c (gen_expr): Likewise.
8898 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8899 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8900 lookup_possible_namespace_symbol): Likewise.
8901 * cp-support.c (read_in_psymtabs): Likewise.
8902 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8903 * language.h (la_lookup_symbol_nonlocal): Likewise.
8904 * scm-valprint.c (scm_inferior_print): Likewise.
8905 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8906 * solib-svr.c (elf_lookup_lib): Likewise.
8907 * solib.c (show_auto_solib_add): Likewise.
8908 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8909 * symmisc.c (maintenance_check_symtabs): Likewise.
8910 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8911 lookup_symbol_aux_local, lookup_symbol_aux_block,
8912 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8913 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8914 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8915 basic_lookup_transparent_type, find_main_psymtab,
8916 lookup_block_symbol): Likewise.
8917 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8918 lookup_symbol_global, lookup_symbol_aux_block,
8919 lookup_symbol_partial_symbol, lookup_block_symbol,
8920 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8922 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8924 * python/python-internal.h: Include symtab.h.
8926 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8927 Pierre Muller <muller@ics.u-strasbg.fr>
8929 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8930 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8933 2010-03-08 Tom Tromey <tromey@redhat.com>
8935 * breakpoint.c (breakpoint_1): Add "QUIT".
8937 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8938 Pedro Alves <pedro@codesourcery.com>
8940 * solib.c (solib_find): Replace extension if
8941 solib_symbols_extension is set in the target gdbarch.
8942 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8943 solib_symbols_extension to "sym".
8944 * gdbarch.sh (solib_symbols_extension): New variable.
8945 (pstring): New function.
8946 * gdbarch.h, gdbarch.c: Regenerate.
8948 2010-03-08 Tom Tromey <tromey@redhat.com>
8952 * utils.c: Include main.h.
8953 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8954 (defaulted_query): Use default answer if `batch_flag'.
8955 * main.h (batch_flag): Declare.
8956 * main.c (batch_flag): New global.
8957 (captured_main): Remove 'batch'. Update.
8959 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8961 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8964 * remote-mips.c (rockhopper_ops): New target_ops struct.
8965 (MON_ROCKHOPPER): New mips_monitor_type.
8966 (read_hex_value): New function.
8967 (mips_request): Send 8-byte values with a 'T' packet. Read the
8968 packet argument as a string and use read_hex_value to parse it.
8969 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8970 (rockhopper_open): New function.
8971 (mips_wait): Read the PC, FP and SP fields as strings. Use
8972 read_hex_value to parse them and mips_set_register to commit them.
8973 (mips_set_register): New function.
8974 (mips_fetch_registers): Do not cast register value to "unsigned"
8975 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8976 (mips_store_registers): Use a 'T' packet to set registers when
8977 using MON_ROCKHOPPER.
8978 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8979 and expect the total to be printed before the entry address.
8980 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8982 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8984 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8985 Change return value to int. Store value fetched in location
8986 addressed by `val'. Use function's return value as success
8987 or failure indicator. Adjust all callers.
8989 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8991 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8993 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8994 Hui Zhu <teawater@gmail.com>
8996 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8997 tmp_to_stopped_data_address.
8998 (record_open): Reset tmp_to_stopped_by_watchpoint and
8999 tmp_to_stopped_data_address.
9000 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9001 to_stopped_data_address.
9003 2010-03-08 Hui Zhu <teawater@gmail.com>
9005 * i386-tdep.c (i386_process_record): Initialize regnum.
9007 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9009 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9010 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9012 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9014 Memory error when reading wrong core file.
9015 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9016 errors while reading the inferior memory, and return zero if
9017 an exception was raised.
9019 2010-03-07 Michael Snyder <msnyder@vmware.com>
9021 * record.c (record_restore): Rename tmpu8 to rectype.
9023 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9024 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9026 (i386_record_push): Rename local tmpulongest to addr.
9028 (i386_process_record): Rename local tmpulongest to addr.
9030 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9033 Rename local variable tmpu8 to opcode8 and regnum.
9035 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9037 * remote.c (remote_get_ada_task_ptid): New function.
9038 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9040 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9042 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9043 block. Define helper macros to reduce ifdefs in code.
9044 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9045 size. Call unadorned GetModuleFileNameEx rather than
9046 GetModuleFileNameEx*.
9047 (windows_make_so): Use __PMAX to denote maximum buffer size and
9048 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9050 (get_image_name): Use __PMAX to denote maximum buffer size.
9051 (handle_load_dll): Likewise.
9052 (windows_pid_to_exec_file): Likewise.
9053 (windows_create_inferior): Add many accommodations for older Cygwin and
9055 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9056 __USEWIDE conditional.
9057 (bad_GetModuleFileNameExA): Likewise.
9058 (_initialize_loadable): Just use real function names without the dyn_
9059 part since they are defined earlier.
9061 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9062 Tom Tromey <tromey@redhat.com>
9064 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9065 (parse_escape): Likewise.
9066 * python/py-utils.c (unicode_to_target_string): Update.
9067 (unicode_to_target_python_string): Update.
9068 (target_string_to_unicode): Update.
9069 * printcmd.c (printf_command): Update.
9070 * p-exp.y (yylex): Update.
9071 * objc-exp.y (yylex): Update.
9072 * mi/mi-parse.c: Include charset.h.
9073 (mi_parse_escape): New function.
9074 (mi_parse_argv): Use it.
9075 * jv-exp.y (yylex): Update.
9076 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9078 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9079 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9080 * gdbarch.c: Rebuild.
9081 * gdbarch.h: Rebuild.
9082 * defs.h (parse_escape): Update.
9083 * cli/cli-setshow.c: Include arch-utils.h.
9084 (do_setshow_command): Update.
9085 * cli/cli-cmds.c (echo_command): Update.
9086 * charset.h (target_charset, target_wide_charset): Update.
9087 * charset.c: Include arch-utils.h.
9088 (target_charset_name): Default to "auto".
9089 (target_wide_charset_name): Likewise.
9090 (show_target_charset_name): Handle "auto".
9091 (show_target_wide_charset_name): Likewise.
9092 (be_le_arch): New global.
9093 (set_be_le_names): Add 'gdbarch' argument.
9094 (validate): Likewise. Don't call set_be_le_names.
9095 (set_charset_sfunc, set_host_charset_sfunc)
9096 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9098 (target_charset): Add 'gdbarch' argument.
9099 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9100 (auto_target_charset_name): New global.
9101 (default_auto_charset, default_auto_wide_charset): New functions.
9102 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9103 for target charsets. Copy result of nl_langinfo. Use GetACP if
9105 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9106 remove 'byte_order' argument. Update.
9107 (classify_type): Likewise.
9108 (c_emit_char): Update.
9109 (c_printchar): Update.
9110 (c_printstr): Update.
9111 (c_get_string): Update.
9112 (evaluate_subexp_c): Update.
9113 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9115 * python/python.c (gdbpy_target_charset): New function.
9116 (gdbpy_target_wide_charset): Likewise.
9117 (GdbMethods): Update.
9120 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9122 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9123 off high address bits.
9125 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9127 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9128 address as UnsignedLongLong, not LongLong.
9130 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9131 Pedro Alves <pedro@codesourcery.com>
9133 * remote-mips.c (gdbthread.h): Include.
9134 (remote_mips_ptid): Declare.
9135 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9136 (common_open): Set inferior_ptid, add it as an inferior, and
9137 as a thread too. Delete FIXME comment regarding start_remote().
9138 (mips_close): Invoke generic_mourn_inferior().
9139 (mips_kill): Make sure that target_mourn_inferior is invoked.
9140 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9141 it's now invoked from mips_close().
9142 (mips_load): Don't null out inferior_ptid. Don't call
9143 clear_symtab_users().
9144 (mips_thread_alive, mips_pid_to_str): New functions.
9145 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9146 to_thread_alive and to_pid_to_str operations.
9148 2010-03-04 Tom Tromey <tromey@redhat.com>
9150 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9151 in DWARF 3 and later.
9152 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9154 2010-03-04 Keith Seitz <keiths@redhat.com>
9156 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9157 If the filename portion of the linespec was quoted, recheck the
9158 remainder for additional quoting.
9159 (locate_first_half): Skip over completer chars, too.
9161 2010-03-04 Tom Tromey <tromey@redhat.com>
9163 * printcmd.c (printf_command): Pass dummy argument to
9166 2010-03-04 Doug Evans <dje@google.com>
9168 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9171 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9173 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9175 * breakpoint.c (update_watchpoint): Create a sentinel location if
9176 the software watchpoint isn't watching any memory.
9177 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9179 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9181 * utils.c (fputs_maybe_filtered): Check if there's already a top
9182 level interpreter before dereferencing it. If there isn't one,
9183 don't paginate either.
9185 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9187 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9188 the state right when single stepping.
9189 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9190 Get the next PC along with the instruction state.
9191 (thumb_get_next_pc): Remove.
9192 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9194 2010-03-04 Hui Zhu <teawater@gmail.com>
9196 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9198 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9200 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9201 top level interpreter is MI.
9203 2010-03-03 Stan Shebs <stan@codesourcery.com>
9205 * remote.c (remote_download_tracepoint): Iterate over locations.
9206 * tracepoint.c (validate_actionline): Ditto.
9207 (encode_actions): Add location argument.
9208 (trace_dump_command): Check all locations to see if stepping
9211 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9212 Eli Zaretskii <eliz@gnu.org>
9214 * NEWS: Add X86 general purpose registers section.
9216 2010-03-03 Tom Tromey <tromey@redhat.com>
9219 * varobj.c (install_new_value): Handle case where new print_value
9222 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9225 * printcmd.c (printf_command): Print end of format string using
9228 2010-03-02 Tom Tromey <tromey@redhat.com>
9230 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9231 * defs.h (read_command_lines_1): Add missing 'void'.
9232 * cli/cli-script.c (recurse_read_control_structure): Add missing
9234 (read_next_line): Likewise.
9235 (read_command_lines_1): Likewise.
9237 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9239 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9240 store backchain as part of prologue.
9242 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9244 * progspace.c (update_address_spaces): Update inferior address spaces
9247 2010-03-02 Doug Evans <dje@google.com>
9249 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9250 lowpc,highpc args to addrmap_set_empty.
9252 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9254 * amd64-tdep.c (amd64_byte_names): New.
9255 (amd64_word_names): Likewise.
9256 (amd64_dword_names): Likewise.
9257 (amd64_pseudo_register_name): Likewise.
9258 (amd64_pseudo_register_read): Likewise.
9259 (amd64_pseudo_register_write): Likewise.
9260 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9261 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9262 set_gdbarch_pseudo_register_write and
9263 set_tdesc_pseudo_register_name. Don't call
9264 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9266 * i386-tdep.c (i386_num_mmx_regs): Removed.
9267 (i386_num_pseudo_regs): Likewise.
9268 (i386_byte_names): New.
9269 (i386_word_names): Likewise.
9270 (i386_byte_regnum_p): Likewise.
9271 (i386_word_regnum_p): Likewise.
9272 (i386_mmx_regnum_p): Updated.
9273 (i386_pseudo_register_name): Make it global. Handle byte and
9274 word pseudo-registers.
9275 (i386_pseudo_register_read): Likewise.
9276 (i386_pseudo_register_write): Likewise.
9277 (i386_pseudo_register_type): Handle byte, word and dword
9279 (i386_register_reggroup_p): Don't include pseudo
9280 registers, except for MXX, in any register groups. Don't
9281 include pseudo byte, word, dword registers in general_reggroup.
9282 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9283 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9284 pseudo-registers after word pseudo-registers. Call
9285 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9287 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9288 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9290 (i386_byte_regnum_p): New.
9291 (i386_word_regnum_p): Likewise.
9292 (i386_dword_regnum_p): Likewise.
9293 (i386_pseudo_register_name): Likewise.
9294 (i386_pseudo_register_read): Likewise.
9295 (i386_pseudo_register_write): Likewise.
9297 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9299 * target-descriptions.c (tdesc_type): Remove
9300 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9301 (tdesc_predefined_types): Likewise.
9302 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9303 if flag name is empty.
9304 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9306 * features/i386/32bit-core.xml: Define i386_eflags.
9307 * features/i386/64bit-core.xml: Likewise.
9309 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9310 * features/i386/64bit-sse.xml: Likewise.
9312 * features/i386/amd64-linux.c: Regenerated.
9313 * features/i386/amd64.c: Likewise.
9314 * features/i386/i386-linux.c: Likewise.
9315 * features/i386/i386.c: Likewise.
9317 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9319 * gdbtypes.c (append_composite_type_field_raw): New.
9320 (append_composite_type_field_aligned): Use the new function.
9321 * gdbtypes.h (append_composite_type_field_raw): Declare.
9322 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9323 (struct tdesc_type_flag): New type.
9324 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9325 kind. Add size to u.u. Add u.f for flags.
9326 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9327 (tdesc_free_type): Likewise.
9328 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9329 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9330 (tdesc_add_bitfield, tdesc_add_flag): New.
9331 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9332 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9333 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9334 current_type. Add current_type_size and current_type_is_flags.
9335 (tdesc_start_union): Clear the new fields.
9336 (tdesc_start_struct, tdesc_start_flags): New.
9337 (tdesc_start_field): Handle struct fields, including bitfields.
9338 (field_attributes): Make type optional. Add start and end.
9339 (union_children): Rename to struct_union_children.
9340 (union_attributes): Rename to struct_union_attributes. Add optional
9342 (flags_attributes): New.
9343 (feature_children): Add struct and flags.
9344 * features/gdb-target.dtd: Add flags and struct to features.
9345 Make field type optional. Add field start and end.
9347 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9349 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9350 (amd64_linux_read_description): Likewise.
9351 (_initialize_amd64_linux_nat): Set to_read_description to
9352 amd64_linux_read_description.
9354 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9355 (amd64_linux_register_name): Removed.
9356 (amd64_linux_register_type): Likewise.
9357 (amd64_linux_core_read_description): New.
9358 (amd64_linux_init_abi): Set target description to
9359 tdesc_amd64_linux if needed. Support orig_rax in target
9360 description. Don't call set_gdbarch_register_name nor
9361 set_gdbarch_register_type. Call
9362 set_gdbarch_core_read_description.
9363 (_initialize_amd64_linux_tdep): Call
9364 initialize_tdesc_amd64_linux.
9366 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9368 * amd64-tdep.c: Include "features/i386/amd64.c".
9369 (amd64_register_names): Removed.
9370 (amd64_register_name): Likewise.
9371 (amd64_register_type): Likewise.
9372 (amd64_init_abi): Set num_core_regs and register_names. Set
9373 target description to tdesc_amd64 if needed. Don't call
9374 set_gdbarch_register_name nor set_gdbarch_register_type.
9375 (_initialize_amd64_tdep): New.
9377 * i386-linux-nat.c (i386_linux_read_description): New.
9378 (_initialize_i386_linux_nat): Set to_read_description to
9379 i386_linux_read_description.
9381 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9382 (i386_linux_register_name): Removed.
9383 (i386_linux_core_read_description): New.
9384 (i386_linux_read_description): Likewise.
9385 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9386 Set target description to tdesc_i386_linux if needed. Support
9387 orig_eax. Set register_reggroup_p. Call
9388 set_gdbarch_core_read_description.
9389 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9391 * i386-linux-tdep.h (tdesc_i386_linux): New.
9393 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9396 * i386-tdep.c: Include "features/i386/i386.c".
9397 (i386_register_names): Make it const.
9398 (i386_mmx_names): Likewise.
9399 (i386_num_register_names): Removed.
9400 (i386_register_name): Likewise.
9401 (i386_eflags_type): Likewise.
9402 (i386_mxcsr_type): Likewise.
9403 (i386_sse_type): Likewise.
9404 (i386_register_type): Likewise.
9405 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9406 (i386_pseudo_register_name): New.
9407 (i386_pseudo_register_type): Likewise.
9408 (i386_mmx_type): Make it static.
9409 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9410 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9411 call set_gdbarch_register_name nor set_gdbarch_register_type.
9412 Set register_reggroup_p. Set target description to tdesc_i386
9413 if needed. Call set_tdesc_pseudo_register_type,
9414 set_tdesc_pseudo_register_name and tdesc_use_registers.
9415 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9416 initialize_tdesc_x86_64.
9418 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9419 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9420 register_names, tdesc and register_reggroup_p.
9421 (I386_NUM_FREGS): Removed.
9422 (i386_eflags_type): Likewise.
9423 (i386_mxcsr_type): Likewise.
9424 (i386_mmx_type): Likewise.
9425 (i386_sse_type): Likewise.
9426 (i386_register_name): Likewise.
9427 (i386_regnum): Add I386_MXCSR_REGNUM.
9428 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9430 * i387-tdep.h (I387_NUM_REGS): New.
9432 * regformats/i386/i386-linux.dat: Generated.
9433 * regformats/i386/i386.dat: Likewise.
9434 * regformats/i386/amd64-linux.dat: Likewise.
9435 * regformats/i386/amd64.dat: Likewise.
9437 * regformats/reg-i386-linux.dat: Removed.
9438 * regformats/reg-i386.dat: Likewise.
9439 * regformats/reg-x86-64-linux.dat: Likewise.
9440 * regformats/reg-x86-64.dat: Likewise.
9442 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9444 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9445 cygwin_conv_path API rather than the deprecated
9446 cygwin_conv_to_full_posix_path.
9448 (GetModuleFileNameExA): Undefine for Cygwin.
9449 (GetModuleFileNameExW): Define for Cygwin.
9450 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9451 Call GetModuleFileNameExW and convert path to POSIX using
9453 (windows_make_so): Always define p. Drop unused variable m.
9454 Don't use Win32 functions to check file existance, rather use
9455 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9456 Use canonicalize_file_name to get full path.
9457 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9458 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9459 use correct target buffer size in call to WideCharToMultiByte.
9460 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9461 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9462 (windows_create_inferior): Convert all paths and arguments to wchar_t
9463 and use CreateProcessW on Cygwin.
9464 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9465 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9466 (bad_GetModuleFileNameExW): Define for Cygwin.
9467 (_initialize_loadable): Load GetModuleFileNameExW into
9468 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9470 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9473 * python/py-frame.c (frapy_read_var): Add block argument and logic
9474 to cope with user provided blocks.
9476 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9478 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9481 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9483 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9484 (COMMON_OBS): ... to here since it's used unconditionally.
9485 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9488 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9490 * mips-linux-tdep.c: Update struct sigframe comments.
9491 (SIGFRAME_CODE_OFFSET): Delete macro.
9492 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9494 (mips_linux_n32n64_sigframe_init): Same.
9496 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9498 * remote-mips.c (mips_load): Don't use pseudo-register when
9499 invalidating regcache.
9501 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9503 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9505 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9507 * NEWS: Add "New targets" section, and mention ARM Symbian
9510 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9512 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9513 add ADDR_SIZE member.
9514 (allocate_piece_closure): Update.
9515 (copy_pieced_value_closure): Likewise.
9516 (dwarf2_evaluate_loc_desc): Likewise.
9517 (read_pieced_value): Use DWARF address size instead of
9518 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9520 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9521 Tom Tromey <tromey@redhat.com>
9523 * python/py-type.c (typy_lookup_typename): Add in block argument.
9524 If provided restrict lookup to specified blocks.
9525 (gdbpy_lookup_type): Likewise.
9526 (typy_lookup_type): Likewise.
9528 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9533 * arm-symbian-tdep.c: New.
9534 * configure.tgt (arm*-*-symbianelf*): New target.
9535 (*-*-symbianelf*): New OS.
9536 * osabi.c (gdb_osabi_names): Add Symbian.
9537 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9538 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9539 (ALLDEPFILES): Add arm-symbian-tdep.c.
9541 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9543 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9545 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9547 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9549 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9550 Tom Tromey <tromey@redhat.com>
9551 Thiago Jung Bauermann <bauerman@br.ibm.com>
9553 * python/python.c (_initialize_python): Call
9554 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9555 gdbpy_initialize_blocks.
9556 * python/python-internal.h: Declare struct symbol, block and
9557 symtab_and_line. Declare block_object_type and
9559 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9560 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9561 (symbol_to_symbol_object, block_to_block_object)
9562 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9563 (gdbpy_initialize_blocks ): Declare.
9564 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9565 (frapy_select): Add methods.
9566 (frapy_read_var): Add symbol branch.
9567 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9569 (SUBDIR_PYTHON_SRCS): Likewise.
9570 (py-symbol.o): New rule.
9571 (py-symtab.o): Likewise.
9572 (py-block.o): Likewise.
9573 * python/py-symbol.c: New file.
9574 * python/py-symtab.c: Likewise.
9575 * python/py-block.c: Likewise.
9577 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9581 * inferior.h (prepare_for_detach): Declare.
9582 (struct inferior) <detaching>: New field.
9583 * infrun.c (prepare_for_detach): New.
9584 (handle_inferior_event) <random signal>: Don't stop if detaching.
9585 * target.c (target_detach): Call prepare_for_detach.
9587 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9589 Per-process displaced stepping queue.
9591 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9592 (displaced_step_gdbarch, displaced_step_closure,
9593 (displaced_step_original, displaced_step_copy): Move globals to
9595 (struct displaced_step_inferior_state): ... new structure.
9596 (displaced_step_inferior_states): New global.
9597 (get_displaced_stepping_state, add_displaced_stepping_state)
9598 (remove_displaced_stepping_state, infrun_inferior_exit): New
9600 (displaced_step_clear): Add displaced_step_inferior_state
9601 parameter, and adjust to handle it.
9602 (displaced_step_clear_cleanup): Parameter is now a
9603 displaced_step_inferior_state. Adjust.
9604 (displaced_step_prepare): Adjust.
9605 (displaced_step_fixup, displaced_step_fixup)
9606 (infrun_thread_ptid_changed, resume): Adjust.
9607 (init_wait_for_inferior): Don't call displaced_step_clear.
9608 (infrun_thread_stop_requested): Rewrite.
9609 (_initialize_infrun): Install infrun_inferior_exit as
9610 inferior_exit observer.
9612 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9614 * inferior.h (ptid_match): Declare.
9615 * infrun.c (ptid_match): New.
9616 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9617 (handle_notification): Add debug output.
9618 * linux-nat.c (ptid_match): Delete.
9620 2010-02-24 David S. Miller <davem@davemloft.net>
9622 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9623 * syscalls/sparc-linux.xml: New.
9624 * syscalls/sparc64-linux.xml: New.
9625 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9626 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9627 (sparc32_linux_get_syscall_number): New function.
9628 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9629 syscall number fetcher.
9630 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9631 (sparc64_linux_get_syscall_number): New function.
9632 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9633 syscall number fetcher.
9635 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9639 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9640 * inferior.c (add_inferior_silent): Notify inferior_added
9642 (delete_inferior_1): Notify inferior_removed observer.
9643 (exit_inferior_1): Pass inferior, not pid, to observer.
9644 (inferior_appeared): Likewise.
9645 (add_inferior_with_spaces): New.
9646 (add_inferior_command): Use the above.
9647 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9650 * inflow.c (inflow_inferior_exit): Likewise.
9651 * jit.c (jit_inferior_exit_hook): Likewise.
9653 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9655 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9656 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9657 (report_initial_inferior): New.
9658 (mi_inferior_removed): Register the above. Make sure
9659 inferior_added observer is called on the first inferior.
9660 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9661 inferior number, not pid.
9662 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9664 * mi/mi-main.c (current_context): New.
9665 (proceed_thread_callback): Use typed closure.
9666 Proceed everything if pid is 0. Most implementation split into
9667 (proceed_thread): ... this.
9668 (run_one_inferior): New.
9669 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9670 Adjust for multiexec behaviour.
9671 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9672 (mi_cmd_execute): Handle the 'thread-group' option here.
9673 Do some extra checks.
9674 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9676 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9678 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9680 Make -exec-run a proper MI commands.
9682 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9683 * mi/mi-cmds.c (mi_cmds): Adjust.
9684 * mi/mi-main.c (mi_cmd_exec_run): New.
9686 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9687 Stan Shebs <stan@codesourcery.com>
9689 * tracepoint.h (set_traceframe_number)
9690 (cleanup_restore_current_traceframe): Declare.
9691 * tracepoint.c (set_traceframe_number): New.
9692 (struct current_traceframe_cleanup): New.
9693 (do_restore_current_traceframe_cleanup)
9694 (restore_current_traceframe_cleanup_dtor)
9695 (make_cleanup_restore_current_traceframe): New.
9696 * infrun.c: Include tracepoint.h.
9697 (fetch_inferior_event): Switch out and in of tfind mode.
9699 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9701 * breakpoint.c (breakpoint_init_inferior): Also delete
9702 bp_shlib_event breakpoints.
9703 * solib-frv.c (enable_break): Remove call to
9704 remove_solib_event_breakpoints.
9705 * solib-svr4.c (enable_break): Ditto.
9706 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9707 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9708 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9709 * solib-spu.c (spu_enable_break): Ditto.
9711 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9713 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9715 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9717 * varobj.c (varobj_update): Avoid non-constants in initializers.
9719 2010-02-23 Tom Tromey <tromey@redhat.com>
9721 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9722 handle big-endian values.
9723 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9725 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9730 * breakpoint.c (insert_bp_location): If inserting the read
9731 watchpoint failed, fallback to an access watchpoint.
9732 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9733 if the value changed, if not watching the same memory for writes.
9734 (watchpoint_locations_match): Add comment.
9735 (update_global_location_list): Copy the location's watchpoint type.
9736 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9737 handle read watchpoints here.
9738 (i386_insert_watchpoint): Read watchpoints aren't supported.
9739 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9741 * target.h (target_insert_watchpoint): Update description.
9743 2010-02-19 Tom Tromey <tromey@redhat.com>
9745 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9746 * m2-typeprint.c (m2_print_type): Update.
9747 * gdbtypes.c (recursive_dump_type): Update.
9748 (copy_type_recursive): Update.
9749 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9750 (c_type_print_base): Update.
9751 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9753 (struct cplus_struct_type) <ntemplate_args>: Remove.
9754 <struct template_arg>: Remove.
9755 <is_dynamic>: Move earlier.
9756 (TYPE_TEMPLATE_ARGS): Remove.
9757 (TYPE_NTEMPLATE_ARGS): Remove.
9758 (TYPE_TEMPLATE_ARG): Remove.
9760 2010-02-19 Tom Tromey <tromey@redhat.com>
9762 PR c++/8693, PR c++/9496:
9763 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9764 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9765 write_dollar_variable. Don't try to classify NAME tokens.
9766 (token_and_value): New type.
9767 (token_fifo, popping, name_obstack): New globals.
9768 (classify_name): New function.
9769 (classify_inner_name): Likewise.
9771 (VARIABLE): Now has type sval.
9772 (exp : VARIABLE): Call write_dollar_variable.
9773 (qualified_name): Use TYPENAME, not typebase. Add production for
9774 multiple "::" instances.
9775 (variable): Use name_not_typename.
9776 (qualified_type): Remove.
9779 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9781 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9782 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9783 found by bfd_get_section_by_name.
9784 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9786 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9788 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9789 7.0 section" into "Changes in 7.1".
9791 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9793 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9794 * version.in: Bump version to 7.1.50.20100219-cvs.
9796 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9798 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9799 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9801 2010-02-17 Tom Tromey <tromey@redhat.com>
9803 * NEWS: Add Python API Improvements section.
9805 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9807 * NEWS: Correct typo.
9809 2010-02-17 Tom Tromey <tromey@redhat.com>
9811 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9813 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9815 * symfile.c (build_section_addr_info_from_objfile): Include sections
9816 only if they are SEC_ALLOC or SEC_LOAD.
9818 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9821 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9822 of ULONGEST for address size.
9824 2010-02-17 Tom Tromey <tromey@redhat.com>
9826 * NEWS: Add C++ improvements section.
9828 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9830 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9831 PyThreadState_Swap): Avoid "statement with no effect" warning.
9833 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9836 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9838 2010-02-17 Tristan Gingold <gingold@adacore.com>
9839 Petr Hluzin <petr.hluzin@gmail.com>
9841 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9842 gdb_assert. Fix info->size for SIG prologue.
9844 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9846 * infcmd.c (show_inferior_tty_command): Check for NULL.
9847 Correct output message.
9849 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9851 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9852 FUNCTION contains parentheses. Improve removal of a trailing
9855 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9857 * gcore.c (do_bfd_delete_cleanup): New function.
9858 (gcore_command): Use it. Discard the cleanup after success.
9859 (gcore_copy_callback): Delete dead code.
9861 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9863 * symfile.c (addr_info_make_relative): Always use
9864 find_lowest_section.
9866 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9868 * NEWS: Added entry for namespace fixes.
9870 2010-02-15 Tom Tromey <tromey@redhat.com>
9872 * dwarf2read.c (guess_structure_name): Allocate name on the
9875 2010-02-15 Tom Tromey <tromey@redhat.com>
9877 * c-typeprint.c (c_type_print_base): Reverse order of test.
9879 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9881 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9882 initialize it from ELF BFD. Extend the prelink condition by it.
9884 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9886 * defs.h (parse_pid_to_attach): New.
9887 * utils.c (parse_pid_to_attach): New.
9888 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9889 * gnu-nat.c (gnu_attach): Likewise.
9890 * nto-procfs.c (procfs_attach): Likewise.
9891 * procfs.c (procfs_attach): Likewise.
9892 * windows-nat.c (windows_attach): Likewise.
9893 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9894 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9895 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9898 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9900 * MAINTAINERS: Add myself for write after approval privileges.
9902 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9904 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9907 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9909 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9910 only if INFO_VERBOSE.
9912 2010-02-12 Tomas Holmberg <th@virtutech.com>
9914 * mi/mi-main.c: Added the --reverse flag to the following MI
9915 commands: exec-continue, exec-finish, exec-next, exec-step,
9916 exec-next-instruction, exec-step-instruction. This is to
9917 support reverse execution over the MI interface to gdb.
9919 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9921 * tracepoint.c (_initialize_tracepoint): Specify that the address
9922 range of `tfind outsize' is exclusive, and that the address range
9923 of `tfind range' is inclusive, in the commands' help strings.
9925 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9927 Spurious "dll not found" error messages on x64-windows.
9928 * windows-nat.c: Add include of complaints.h.
9929 (handle_unload_dll): Change dll-not-found error into a complaint.
9931 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9933 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9934 bp_tracepoint and bp_fast_tracepoint, not
9935 bp_loc_software_breakpoint.
9936 (update_global_location_list): Tracepoints are never duplicates of
9939 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9941 * breakpoint.c (break_command_really): Change return type to int.
9942 Return false if no breakpoint was created, true otherwise.
9943 (trace_command): Don't set the tracepoint count if no tracepoint
9945 (ftrace_command): Ditto.
9946 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9947 created in the breakpoints table.
9949 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 Ulrich Weigand <uweigand@de.ibm.com>
9952 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9954 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9956 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9957 the offset value isn't of integral type.
9959 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9964 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9966 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9967 non-subscriptable types.
9968 * valarith.c (binop_types_user_defined_p): New, abstracted out
9970 (binop_user_defined_p): ... this.
9971 * value.h (binop_types_user_defined_p): Declare.
9973 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9975 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9976 Merge uploaded TSVs before merging uploaded tracepoints.
9978 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9980 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9982 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9984 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9985 whitespace character after a dot in comment.
9986 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9988 (list_args_or_locals): For the 'all' (that is
9989 -stack-list-variables) case, always output list of tuples.
9990 Output 'arg' field if variable is argument.
9992 2010-02-10 Tom Tromey <tromey@redhat.com>
9994 * parser-defs.h (parser_debug): Declare.
9995 * parse.c (_initialize_parse): Install "debug parser" set/show
9997 (parser_debug): New global.
9998 (show_parserdebug): New function.
9999 * c-exp.y (c_parse): Set yydebug.
10001 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10003 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10004 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10005 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10007 (tdesc_find_type): New.
10008 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10009 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10011 * target-descriptions.h (tdesc_find_type): New.
10013 2010-02-10 Michael Snyder <msnyder@vmware.com>
10015 * gdb-gdb.py: Comment fix.
10017 2010-02-09 Tristan Gingold <gingold@adacore.com>
10019 * machoread.c (macho_symfile_relocate): New function.
10020 (macho_sym_fns): Use macho_symfile_relocate instead of
10021 default_symfile_relocate.
10022 (macho_oso_data): New type.
10023 (current_oso): New variable.
10024 (macho_add_oso_symfile): Do not compute section_addr_info, but
10025 instead set vma of sections.
10026 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10027 Set and clear current_oso.
10029 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10031 Wrong type description for tagged type parameter.
10032 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10033 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10034 reference to a tagged type.
10036 2010-02-09 Tristan Gingold <gingold@adacore.com>
10038 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10039 brothers of the parent.
10041 2010-02-08 Tom Tromey <tromey@redhat.com>
10045 * valops.c (search_struct_field): Make 'name' const.
10046 (search_struct_method): Likewise.
10047 (find_method_list): Make 'method' const.
10048 (value_struct_elt): Make 'name' and 'err' const.
10049 (value_find_oload_method_list): Make 'method' const.
10050 (find_overload_match): Make 'name' const.
10051 * eval.c (evaluate_subexp_standard): New locals function,
10053 <OP_FUNCALL>: Handle OP_SCOPE specially.
10055 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10057 * infrun.c (handle_inferior_event): Do not look up regcache
10058 for exited processes.
10060 2010-02-08 Chris Moller <moller@mollerware.com>
10063 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10064 warn if found, and assume length = 1.
10066 2010-02-08 Chris Moller <cmoller@redhat.com>
10069 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10070 (cp_print_static_field) Fix use of obstacks.
10072 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10074 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10075 resumed LWPs as resumed.
10076 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10077 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10078 of throwing an internal error. If an LWP of a process we're not
10079 waiting for reports a signal, don't force collecting a SIGSTOP,
10080 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10081 go through all LWPs cancelling breakpoints in non-stop mode.
10082 (resume_stopped_resumed_lwps): New.
10083 (linux_nat_wait): Use it.
10085 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10087 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10088 i386/amd64 and i386/amd64-linux.
10089 (i386/i386-expedite): New.
10090 (i386/i386-linux-expedite): Likewise.
10091 (i386/amd64-expedite):Likewise.
10092 (i386/amd64-linux-expedite): Likewise.
10093 ($(outdir)/i386/i386-linux.dat): Likewise.
10094 ($(outdir)/i386/amd64.dat): Likewise.
10095 ($(outdir)/i386/amd64-linux.dat): Likewise.
10097 * features/i386/32bit-core.xml: New.
10098 * features/i386/32bit-linux.xml: Likewise.
10099 * features/i386/32bit-sse.xml: Likewise.
10100 * features/i386/64bit-core.xml: Likewise.
10101 * features/i386/64bit-linux.xml: Likewise.
10102 * features/i386/64bit-sse.xml: Likewise.
10103 * features/i386/i386-linux.xml: Likewise.
10104 * features/i386/i386.xml: Likewise.
10105 * features/i386/amd64-linux.xml: Likewise.
10106 * features/i386/amd64.xml: Likewise.
10107 * features/i386/i386-linux.c: Likewise.
10108 * features/i386/i386.c: Likewise.
10109 * features/i386/amd64-linux.c: Likewise.
10110 * features/i386/amd64.c: Likewise.
10112 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10115 * cp-support.h: Added char* alias element to using_direct data
10117 (cp_add_using): Added char* alias argument.
10118 (cp_add_using_directive): Ditto.
10119 * cp-namespace.c: Updated with the above changes.
10120 (cp_lookup_symbol_imports): Check for aliases.
10121 * dwarf2read.c (read_import_statement): Figure out local alias
10122 for the import and pass it on to cp_add_using.
10123 (read_namespace): Pass alias argument to cp_add_using.
10125 2010-02-05 Hui Zhu <teawater@gmail.com>
10127 * defs.h (gdb_bfd_errmsg): New extern.
10128 * exec.c (exec_file_attach): Change bfd_errmsg to
10130 * utils.c (AMBIGUOUS_MESS1): New macro.
10131 (AMBIGUOUS_MESS2): New macro.
10132 (gdb_bfd_errmsg): New function.
10134 2010-02-04 Doug Evans <dje@google.com>
10136 * solib-svr4.c (enable_break): Add comment.
10138 2010-02-04 Anthony Green <green@moxielogic.com>
10140 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10143 2010-02-04 Tom Tromey <tromey@redhat.com>
10145 * valops.c (search_struct_field): Account for
10146 value_embedded_offset. Fix check for virtual base past the end of
10147 the object. Use value_copy when making a slice of the value.
10149 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10152 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10153 only if gdb_stdout is a tty.
10155 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10157 * target-descriptions.c: Include "osabi.h".
10158 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10161 2010-02-04 Tristan Gingold <gingold@adacore.com>
10163 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10164 (macho_symtab_read): Adjust calls to macho_add_oso.
10165 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10166 (macho_symfile_read): Adjust call to macho_oso_symfile.
10167 (macho_new_init): Move this function after declarations.
10168 (macho_symfile_init): Ditto.
10169 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10170 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10172 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10174 Include MI command in remotelog.
10176 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10178 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10180 * remote.c (remote_state): Remove gdbarch.
10181 (init_remote_state): Don't set gdbarch.
10182 (remote_query_supported): Pass target_gdbarch instead of
10183 rs->gdbarch to gdbarch_qsupported.
10185 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10187 * gdbarch.sh: Add qsupported.
10189 * gdbarch.c: Regenerated.
10190 * gdbarch.h: Likewise.
10192 * remote.c (remote_state): Add gdbarch.
10193 (init_remote_state): Set gdbarch.
10194 (remote_query_supported): Support gdbarch_qsupported.
10196 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10198 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10199 __FreeBSD_kernel_version.
10201 2010-02-03 Tristan Gingold <gingold@adacore.com>
10203 * symfile.h (struct sym_fns): Add sym_relocate field.
10204 (default_symfile_relocate): New prototype.
10205 (symfile_relocate_debug_section): First argument is now an objfile.
10206 * symfile.c (default_symfile_relocate): Rename from
10207 symfile_relocate_debug_section, first argument is now an objfile.
10208 (symfile_relocate_debug_section): New function.
10209 * coffread.c (coff_sym_fns): Set sym_relocate field.
10210 * somread.c (som_sym_fns): Ditto.
10211 * mipsread.c (ecoff_sym_fns): Ditto.
10212 * machoread.c (macho_sym_fns): Ditto.
10213 * elfread.c (elf_sym_fns): Ditto.
10214 * dwarf2read.c (dwarf2_read_section): Ditto.
10215 * xcoffread.c (xcoff_sym_fns): Ditto.
10216 * dbxread.c (aout_sym_fns): Ditto.
10217 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10218 (elfstab_build_psymtabs): Ditto.
10220 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10222 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10224 2010-02-02 Tom Tromey <tromey@redhat.com>
10226 * valops.c (value_cast_structs): Try downcasting using the RTTI
10229 2010-02-02 Tom Tromey <tromey@redhat.com>
10231 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10232 (gnuv2_baseclass_offset): Now static.
10233 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10234 * gnu-v2-abi.h: Remove.
10236 2010-02-02 Tom Tromey <tromey@redhat.com>
10238 * m2-typeprint.c (m2_record_fields): Don't use
10239 TYPE_DECLARED_TYPE.
10240 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10241 (struct main_type) <flag_declared_class>: New field.
10242 (struct cplus_struct_type) <declared_type>: Remove.
10243 <ntemplate_args>: Move earlier.
10244 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10245 (DECLARED_TYPE_TEMPLATE): Remove.
10246 (TYPE_DECLARED_TYPE): Remove.
10247 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10248 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10249 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10250 TYPE_DECLARED_TYPE.
10252 2010-02-02 Tom Tromey <tromey@redhat.com>
10254 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10255 * valops.c (search_struct_field): Compute nbases after calling
10257 (check_field): Call CHECK_TYPEDEF.
10258 * cp-valprint.c (cp_print_value): Pass correct address to
10259 baseclass_offset. Fix check for virtual base past the end of the
10260 object. Don't offset address passed to cp_print_value_fields or
10261 apply_val_pretty_printer.
10262 (cp_print_value_fields): Fix call to val_print.
10263 (cp_print_value_fields_rtti): New function.
10264 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10265 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10267 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10269 * language.h (struct language_defn) <la_val_print>: Document.
10270 * c-lang.h (cp_print_value_fields_rtti): Declare.
10272 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10275 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10276 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10277 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10279 2010-02-01 Michael Matz <matz@suse.de>
10280 Daniel Jacobowitz <dan@codesourcery.com>
10282 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10283 functions use a frame pointer.
10285 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10287 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10288 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10289 * config/djgpp/fnchange.lst: Add translations for
10290 symbol-without-target_section.exp and symbol-without-target_section.c.
10292 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10294 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10295 (remote_breakpoint_for_pc): Correct invalid_p check.
10296 * gdbarch.c: Regenerated.
10298 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10300 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10302 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10303 (extend_buffer_earlier): New function.
10304 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10305 (arm_adjust_breakpoint_address): New function.
10306 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10308 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10310 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10311 (arm_linux_thumb2_le_breakpoint): New constants.
10312 (arm_linux_init_abi): Set thumb2_breakpoint and
10313 thumb2_breakpoint_size.
10314 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10315 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10316 Implement support for single stepping through IT blocks if
10317 a 32-bit Thumb breakpoint instruction is available.
10318 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10319 is available, use it when needed.
10320 (arm_remote_breakpoint_from_pc): New function.
10321 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10322 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10323 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10325 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10327 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10328 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10329 * gdbarch.c, gdbarch.h: Regenerated.
10330 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10331 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10332 gdbarch_remote_breakpoint_from_pc.
10334 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10336 * infrun.c (prepare_to_proceed): Handle other signals which might
10337 match a breakpoint.
10338 (handle_inferior_event): Move the check for unusual breakpoint
10341 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10343 amd64 - function returning record with field straddling 2 registers.
10344 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10345 a record of length <= 16 in which a field straddles the two
10348 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10350 Implement return values on amd64-windows.
10351 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10352 (amd64_windows_return_value): New function.
10353 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10354 amd64_windows_return_value.
10356 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10358 amd64-windows: 32 bytes allocated on stack by caller for integer
10359 parameter registers.
10360 * i386-tdep.h (struct gdbarch_tdep): Add new field
10361 integer_param_regs_saved_in_caller_frame.
10362 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10363 tdep->integer_param_regs_saved_in_caller_frame to 1.
10364 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10365 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10367 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10369 amd64-windows: memory args passed by pointer during function calls.
10370 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10371 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10372 where tdep->memory_args_by_pointer is non-zero.
10373 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10374 tdep->memory_args_by_pointer to 1.
10376 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10378 amd64-windows: Integer parameters in function calls.
10379 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10381 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10382 call_dummy_integer_regs, and classify.
10383 * amd64-tdep.h (amd64_classify): Add declaration.
10384 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10385 (amd64_reg_class): Delete, moved to i386-tdep.h.
10386 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10387 Replace call to amd64_classify by call to tdep->classify.
10388 (amd64_push_arguments): Get the list of registers to use for
10389 passing integer parameters from the gdbarch tdep structure,
10390 rather than using a hardcoded one. Replace calls to amd64_classify
10391 by calls to tdep->classify.
10392 (amd64_push_dummy_call): Get the register number used for
10393 the "hidden" argument from tdep->call_dummy_integer_regs.
10394 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10395 and tdep->call_dummy_integer_regs. Set tdep->classify.
10396 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10397 (amd64_windows_dummy_call_integer_regs): New static global.
10398 (amd64_windows_classify): New function.
10399 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10400 tdep->call_dummy_integer_regs and tdep->classify.
10402 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10404 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10405 for the new regcache. All callers updated.
10406 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10407 (get_thread_arch_regcache): Do not set aspace here.
10408 * regcache.h (regcache_xmalloc): Update declaration.
10410 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10411 regcache_xmalloc updated.
10413 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10415 Another -Wunused-function error in procfs.c (sparc-solaris)
10416 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10417 Only define if SYS_syssgi is defined.
10418 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10419 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10420 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10423 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10425 * windows-nat.c (windows_initialization_done): New variable.
10426 (get_windows_debug_event): Issue error when process dies before
10427 completely initializing.
10428 (do_initial_windows_stuff): Set flag to indicate when we are done with
10429 the initial steps of attaching to the child.
10431 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10433 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10435 2010-01-27 Doug Evans <dje@google.com>
10437 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10439 * breakpoint.c (bpstat_stop_status): Delete useless code.
10441 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10443 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10444 objfile via SYMBOL_SYMTAB.
10446 2010-01-26 Tom Tromey <tromey@redhat.com>
10449 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10450 coerce_array on result.
10452 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10454 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10455 search_parent argument.
10456 (cp_add_using): Initialize 'searched' field.
10457 (reset_directive_searched): New function.
10458 * cp-support.h: Add 'searched' field to using_direct struct.
10459 (cp_lookup_symbol_imports): Ditto.
10460 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10461 Perform recursive search.
10462 Implement non parent search.
10463 * valops.c (value_maybe_namespace_elt): Updated.
10465 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10468 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10469 scopes which contain using directives even if they contain no
10471 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10472 la_lookup_symbol_nonlocal.
10473 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10474 cp_lookup_symbol_namespace.
10475 (cp_lookup_symbol_namespace): Perform an import lookup at every
10477 (cp_lookup_symbol_imports): New function.
10478 (cp_lookup_symbol_in_namespace): New function.
10480 2010-01-25 Tom Tromey <tromey@redhat.com>
10483 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10486 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10488 * configure.ac: Only use host_os part when disabling TUI on osf.
10489 Use test to check variables, prefix strings with x.
10490 * configure: Regenerate.
10492 * solib-osf.c (osf_current_sos): Initialize tail.
10494 2010-01-25 gingold <gingold@adacore.com>
10496 * windows-nat.c (windows_continue): Use %x to print thread id.
10497 (get_windows_debug_event): Ditto.
10499 2010-01-22 Tom Tromey <tromey@redhat.com>
10502 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10503 type and arguments. Use smash_to_methodptr_type.
10504 (read_structure_type): Call quirk_gcc_member_function_pointer
10506 * gdbtypes.h (smash_to_methodptr_type): Declare.
10507 * gdbtypes.c (smash_to_methodptr_type): New function.
10508 (lookup_methodptr_type): Use it.
10510 2010-01-21 Tom Tromey <tromey@redhat.com>
10513 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10514 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10515 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10516 (glibc_skip_solib_resolver): Use
10517 lookup_minimal_symbol_and_objfile.
10519 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10521 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10524 2010-01-20 Tom Tromey <tromey@redhat.com>
10526 PR backtrace/10770:
10527 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10528 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10529 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10530 dwarf_stack_values, not CORE_ADDRs.
10531 (execute_stack_op): Change DW_OP_div and comparison operators to
10532 use signed operands.
10534 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10536 Per-inferior args and tty and environment.
10538 * infcmd.c (inferior_args): Rename to ...
10539 (inferior_args_scratch): ... this.
10540 (inferior_io_terminal): Rename to ...
10541 (inferior_io_terminal_scratch): ... this.
10542 (inferior_argc, inferior_argv): Remove.
10543 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10544 inside current_inferior().
10545 (set_inferior_tty_command, show_inferior_tty_command): New.
10546 (get_inferior_args, set_inferior_args): Store inside
10547 current_inferior().
10548 (notice_args_set): Likewise and rename to...
10549 (set_args_command): ... this.
10550 (set_inferior_args_vector): Likewise.
10551 (notice_args_read): Rename to...
10552 (show_args_command): ...new.
10553 (tty_command): Remove.
10554 (run_command_1): Don't free old args, as they are freed by
10555 set_inferior_arg now.
10556 (run_no_args_command): Likewise.
10557 (inferior_environ): Remove.
10558 (run_command_1): Use environment of the current inferior.
10559 (environment_info, set_environment_command)
10560 (unset_environment_command, path_info, path_command): Likewise.
10561 (_initialize_infcmd): Adjust for function and variable renames.
10562 Do not init inferior_environ.
10563 * inferior.h (set_inferior_arg): Adjust prototype.
10564 (struct inferior): New fields args, argc, argv, terminal, environment.
10565 (inferior_environ): Remove declaration.
10566 * inferior.c (free_inferior): Free new fields.
10567 (add_inferior_silent): Initialize 'environment' field.
10568 * main.c (captured_main): Set arguments only after the initial
10569 inferior has been created. Set set_inferior_io_terminal,
10571 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10573 (_initialize_mi_cmd_env): Adjust for disappearance of global
10575 * solib.c (solib_find): Use environment of the current inferior.
10577 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10579 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10581 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10583 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10585 Get rid of ada-lang.c:function_name_from_pc.
10586 * ada-lang.c: Add "stack.h" #include.
10587 (function_name_from_pc): Delete.
10588 (is_known_support_routine): Replace call to function_name_from_pc
10589 by call to find_frame_funname.
10590 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10592 2010-01-19 Tom Tromey <tromey@redhat.com>
10595 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10598 2010-01-19 Tom Tromey <tromey@redhat.com>
10600 * top.c (stop_sig, float_handler, do_nothing): Remove.
10602 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 * breakpoint.c (watchpoint_check): Check the call
10605 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10606 Extend the comment.
10607 * config/djgpp/fnchange.lst: Add translations for
10608 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10609 watchpoint-cond-gone-stripped.c.
10611 2010-01-19 Tom Tromey <tromey@redhat.com>
10614 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10615 into parent scope, and enumerator into grandparent scope.
10617 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10619 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10621 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10623 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10624 i[34567]86-*-solaris2.1[0-9]*.
10625 * configure.tgt: Likewise.
10627 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10629 * NEWS: Document the source command enhancement allowing it
10630 to load Python scripts. Document the "set/show script-extension"
10633 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10635 Add -Wunused-function to compile flags.
10636 * configure.ac: Add -Wunused-function to build_warnings.
10637 * configure: Regenerate.
10639 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10641 "delete" ada-lex.c:input function, not used.
10642 * ada-lex.l: #define YY_NO_INPUT.
10644 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10646 Delete free_named_symtabs and associated cleanup.
10647 * symfile.h (free_named_symtabs): Delete declaration.
10648 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10649 (cashier_psymtab): Comment function out.
10650 Delete declaration.
10651 (free_named_symtabs): Delete.
10652 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10653 * dbxread.c (end_psymtab): Likewise.
10654 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10655 * exec.c (exec_close_1): Ditto.
10656 * xcoffread.c (xcoff_end_psymtab): Likewise.
10658 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10660 * stack.c (print_block_frame_labels): Comment function out.
10662 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10664 Delete unused or undefined functions.
10665 * breakpoint.c (ep_parse_optional_filename): Delete.
10666 * dcache.c (dcache_write_line): Remove declaration.
10667 * infrun.c (build_infrun): Remove declaration.
10668 * tracepoint.c (tracepoint_save_command): Remove declaration.
10669 * linux-nat.c (init_lwp_list): Delete. No longer used.
10670 * event-loop.c (check_async_signal_handlers): Delete declaration.
10671 * infrun.c (init_execution_control_state): Delete.
10672 (proceed): Update comment to avoid mentioning
10673 init_execution_control_state.
10674 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10675 * ada-lang.c (ada_to_static_fixed_value): Delete.
10676 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10677 * cp-namespace.c (cp_copy_usings): Delete.
10678 * xml-syscall.c (xml_number_of_syscalls): Delete.
10679 * progspace.c (find_program_space_by_num): Delete.
10680 * inflow.c (handle_sigio): Delete declaration.
10681 * hppa-tdep.c (hppa_alignof): Delete.
10682 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10683 (mipsnbsd_core_osabi_sniffer): Delete.
10685 2010-01-18 Tom Tromey <tromey@redhat.com>
10688 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10689 (CONST_CAST): New tokens.
10690 (exp): Add new productions.
10691 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10693 (is_cast_operator): New function.
10694 (yylex): Handle cast operators specially.
10695 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10696 UNOP_REINTERPRET_CAST>: New cases.
10697 * expprint.c (print_subexp_standard): Likewise.
10698 (op_name_standard): Likewise.
10699 (dump_subexp_body_standard): Likewise.
10700 * parse.c (operator_length_standard): Likewise.
10701 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10702 UNOP_REINTERPRET_CAST.
10703 * gdbtypes.c (class_types_same_p): New function.
10704 (is_ancestor): Use it.
10705 (is_public_ancestor): New function.
10706 (is_unique_ancestor_worker): Likewise.
10707 (is_unique_ancestor): Likewise.
10708 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10709 (is_unique_ancestor): Declare.
10710 * valops.c (value_reinterpret_cast): New function.
10711 (dynamic_cast_check_1): Likewise.
10712 (dynamic_cast_check_2): Likewise.
10713 (value_dynamic_cast): Likewise.
10714 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10716 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10718 Fix build failure when building without Python support.
10719 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10722 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10724 Use XVS field type instead of doing a parallel lookup.
10725 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10726 if it is a reference type instead of doing a type lookup using
10727 the XVS field name.
10729 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10731 Trust PAD types instead of using PAD___XVS.
10732 * ada-lang.c (trust_pad_over_xvs): New static variable.
10733 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10734 parallel XVS type, follow the XVS type instead of the PAD type.
10735 (unwrap_value): Make sure that there is no parallel XVE type
10736 before returning the value as is.
10737 (set_ada_list, show_ada_list): New static variables.
10738 (set_ada_command, show_ada_command): New functions.
10739 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10740 Add new "set/show ada trust-PAD-over-XVS" setting.
10742 2010-01-18 Tom Tromey <tromey@redhat.com>
10743 Thiago Jung Bauermann <bauerman@br.ibm.com>
10745 Allow "source" to load python scripts.
10746 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10747 * python/python.c (source_python_script): New function.
10748 * python/python.h (source_python_script): Add declaration.
10749 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10750 (script_ext_off, script_ext_soft, script_ext_strict)
10751 (script_ext_enums, script_ext_mode): New static constants.
10752 (show_script_ext_mode, find_and_open_script): New functions.
10753 (source_script): Enhance to handle Python scripts.
10754 (init_cli_cmds): Add set/show script-extension commands.
10756 2010-01-16 Stan Shebs <stan@codesourcery.com>
10758 * tracepoint.h (struct trace_status): Use unsigned long long
10760 * tracepoint.c (trace_status_command): Fix printf directive.
10761 (trace_save_command): Check fwrite returns, fix printf directive.
10762 (trace_filename): New global.
10763 (tfile_open): Set it, check read returns.
10764 (tfile_close): Free trace_filename.
10765 (tfile_get_traceframe_address): Check read returns.
10766 (tfile_trace_find): Ditto.
10767 (tfile_fetch_registers): Ditto.
10768 (tfile_xfer_partial): Ditto.
10769 (tfile_get_trace_state_variable_value): Ditto.
10771 2010-01-15 Stan Shebs <stan@codesourcery.com>
10773 Add trace file support.
10774 * tracepoint.h (enum trace_stop_reason): New enum.
10775 (struct trace_status): New struct.
10776 (parse_trace_status): Declare.
10777 (struct uploaded_tp): Move here from remote.c,
10778 add fields for actions.
10779 (struct uploaded_tsv): New struct.
10780 * tracepoint.c (tfile_ops): New target vector.
10781 (trace_fd): New global.
10782 (tfile_open): New function.
10783 (tfile_close): New function.
10784 (tfile_files_info): New function.
10785 (tfile_get_trace_status): New function.
10786 (tfile_get_traceframe_address): New function.
10787 (tfile_trace_find): New function.
10788 (tfile_fetch_registers): New function.
10789 (tfile_xfer_partial): New function.
10790 (tfile_get_trace_state_variable_value): New function.
10791 (init_tfile_ops): New function.
10792 (_initialize_tracepoint): Call it, add tfile target.
10793 (trace_status): New global.
10794 (current_trace_status): New function.
10795 (trace_running_p): Remove, change all users to get from
10796 current_trace_status()->running.
10797 (get_trace_status): Remove.
10798 (trace_status_command): Call target_get_trace_status directly,
10799 report more detail including tracing stop reasons.
10800 (trace_find_command): Always allow tfind on a file.
10801 (trace_find_pc_command): Ditto.
10802 (trace_find_tracepoint_command): Ditto.
10803 (trace_find_line_command): Ditto.
10804 (trace_find_range_command): Ditto.
10805 (trace_find_outside_command): Ditto.
10806 (trace_frames_offset, cur_offset): Declare as off_t.
10807 (trace_regblock_size): Rename from reg_size, update users.
10808 (parse_trace_status): New function.
10809 (tfile_interp_line): New function.
10810 (disconnect_or_stop_tracing): Ensure current trace
10811 status before asking what to do.
10812 (stop_reason_names): New global.
10813 (trace_save_command): New command.
10814 (get_uploaded_tp): Move here from remote.c.
10815 (find_matching_tracepoint): Ditto.
10816 (merge_uploaded_tracepoints): New function.
10817 (parse_trace_status): Use stop_reason_names.
10818 (_initialize_tracepoint): Define tsave command.
10819 * target.h (target_ops): New fields to_save_trace_data,
10820 to_upload_tracepoints, to_upload_trace_state_variables,
10821 to_get_raw_trace_data, change to_get_trace_status
10822 to take a pointer to a status struct.
10823 (target_save_trace_data): New macro.
10824 (target_upload_tracepoints): New macro.
10825 (target_upload_trace_state_variables): New macro.
10826 (target_get_raw_trace_data): New macro.
10827 * target.c (update_current_target): Add new methods, change
10828 signature of to_get_trace_status.
10829 * remote.c (hex2bin): Make globally visible.
10831 (remote_download_trace_state_variable): Download name also.
10832 (remote_get_trace_status): Update parameter, use
10833 parse_trace_status.
10834 (remote_save_trace_data): New function.
10835 (remote_upload_tracepoints): New function.
10836 (remote_upload_trace_state_variables): New function.
10837 (remote_get_raw_trace_data): New function.
10838 (remote_start_remote): Use them.
10839 (_initialize_remote_ops): Add operations.
10840 * ax-gdb.c: Include breakpoint.h.
10841 * breakpoint.c (create_tracepoint_from_upload): Use
10842 break_command_really, return tracepoint, warn about unimplemented
10844 * NEWS: Mention trace file addition.
10846 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10848 Fix compilation warning on gcc-3.4.
10849 * exec.c (print_section_info): Move the `displacement' variable
10850 initialization to its declaration.
10852 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10854 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10857 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10859 "info tasks" broken by typedefs in ATCB type definitions.
10860 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10861 ada_check_typedef before retrieving the length of the type for
10864 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10866 Do not use name-based lookup for unconstrained packed arrays.
10867 * ada-lang.c (find_parallel_type_by_descriptive_type):
10868 Limit the fallback to name-based lookups to the case where
10869 the type is a constrained packed array.
10871 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10873 Enhance gdb-gdb.py to handle main_type.type_specific.
10874 * gdb-gdb.py: Print the type-specific part of struct main_type.
10876 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10878 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10879 * configure: Regenerate.
10880 * config.in: Regenerate.
10881 * utils.c: Include sys/resource.h.
10882 (dump_core, can_dump_core): New.
10883 (internal_vproblem): Update the comment. Check can_dump_core while
10884 setting dump_core_p. Replace two abort calls by dump_core calls.
10886 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10887 Eli Zaretskii <eliz@gnu.org>
10889 * NEWS: Document the PIE support.
10891 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10893 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10894 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10896 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10898 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10899 Replace exec_entry_point call by bfd_get_start_address.
10901 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10903 Support Valgrind attachments broken by the PIE support.
10904 * auxv.c: Include gdbcore.h.
10905 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10906 parameters ops, object and annex. Remove their assertions.
10907 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10908 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10909 (memory_xfer_auxv): ... here.
10910 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10912 * procfs.c (procfs_xfer_partial): Likewise.
10913 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10914 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10915 (svr4_solib_create_inferior_hook): Conditionalize the
10916 svr4_relocate_main_executable call.
10918 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10920 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10921 target_section. Find SECT in current_target_sections, gdb_assert it.
10922 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10924 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10925 of separate debug info file.
10927 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10929 Support PIEs with no symfile_objfile.
10930 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10931 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10933 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10935 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10937 (svr4_static_exec_displacement): ... a new function.
10938 (svr4_exec_displacement): New function.
10939 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10940 new_offsets using alloca now. Remove variable old_chain and changed.
10941 Call objfile_relocate unconditionally now.
10943 2010-01-14 Doug Evans <dje@google.com>
10945 * gdbtypes.c (arch_flags_type): Fix comment.
10946 * gdbtypes.h (arch_composite_type): Fix comment.
10948 2009-01-14 Tristan Gingold <gingold@adacore.com>
10950 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10951 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10952 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10953 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10954 macho_add_oso_symfile.
10955 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10957 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10959 Tru64: Dead threads are never deleted.
10960 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10961 (dec_thread_count_gdb_threads): Fix counter increment.
10962 (dec_thread_add_gdb_thread): Fix *listp increment.
10963 (resync_thread_list): Fix bug in deletion of dead threads that
10964 caused all threads to be deleted, instead of just the dead ones.
10966 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10970 * python/python-internal.h: Add lazy_string_object_type
10972 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10973 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10974 * python/py-value.c (valpy_lazy_string): New function.
10975 (convert_value_from_python): Add lazy string conversion.
10976 * python/py-prettyprint.c (pretty_print_one_value): Check if
10977 return is also a lazy string.
10978 (print_string_repr): Add lazy string printing branch.
10979 (print_children): Likewise.
10980 * python/py-lazy-string.c: New file. Implement lazy strings.
10981 * python/python.c (_initialize_python): Call
10982 gdbpy_initialize_lazy_string.
10983 * varobj.c (value_get_print_value): Add lazy string printing
10984 branch. Account for encoding.
10985 * c-lang.c (c_printstr): Account for new encoding argument. If
10986 encoding is NULL, find encoding suited for type, otherwise use
10988 * language.h (language_defn): Add encoding argument.
10989 (LA_PRINT_STRING): Likewise.
10990 * language.c (unk_lang_printstr): Update to reflect new encoding
10991 argument to language_defn.
10992 * ada-lang.h (ada_printstr): Likewise.
10993 * c-lang.h (c_printstr): Likewise.
10994 * p-lang.h (pascal_printstr);
10995 * f-lang.c (f_printstr): Likewise.
10996 * m2-lang.c (m2_printstr): Likewise.
10997 * objc-lang.c (objc_printstr): Likewise.
10998 * p-lang.c (pascal_printstr): Likewise.
10999 * scm-lang.c (scm_printstr): Likewise.
11000 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11002 * ada-valprint.c (ada_printstr): Likewise.
11003 * f-valprint.c (f_val_print): Likewise
11004 * m2-valprint.c (m2_val_print): Likewise.
11005 * p-valprint.c (pascal_val_print): Likewise.
11006 * expprint.c (print_subexp_standard): Likewise.
11007 * valprint.c (val_print_string): Likewise.
11008 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11009 (SUBDIR_PYTHON_SRCS): Likewise.
11010 (py-lazy-string.o): New rule.
11012 2010-01-13 Doug Evans <dje@google.com>
11014 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11015 uninitialized" warning from gcc on local `tree'.
11017 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11019 Implement core awareness.
11021 * bcache.c (compare_ints): Remove
11022 (print_percentage): Use compare_positive_ints.
11023 * defs.h (compare_positive_ints): Declare.
11024 * linux-nat.h (struct lin_lwp): New field core.
11025 (linux_nat_core_of_thread_1): Declare.
11026 * linux-nat.c (add_lwp): Init the 'core' field.
11027 (linux_nat_wait_1): Record the core.
11028 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11029 (linux_nat_add_target): Register the above.
11030 * linux-thread-db.c (update_thread_core): New.
11031 (thread_db_find_new_threads): Update core information for
11033 * remote.c (struct private_thread_info): New.
11034 (free_private_thread_info, demand_private_info): New.
11035 (PACKET_qXfer_threads, use_osdata_threads): New.
11036 (struct thread_item, threads_parsing_context
11037 (start_thread, end_thread, thread_attributes)
11038 (thread_children, threads_children, threads_elements): New.
11039 (remote_threads_info): Try qXfer:threads before anything
11041 (remote_protocol_packets): Register qXfer:threads.
11042 (remote_open_1): Init use_osdata_threads.
11043 (struct stop_reply): New field 'core'.
11044 (remote_parse_stop_reply): Parse core number.
11045 (process_stop_reply): Record core number.
11046 (remote_xfer_partial): Handle qXfer:threads.
11047 (remote_core_of_thread): New.
11048 (init_remote_ops): Register remote_core_of_thread.
11049 (_initialize_remote): Register qXfer:read.
11050 * target.c (target_core_of_thread): New
11051 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11052 (struct target_ops): New field to_core_of_threads.
11053 (target_core_of_thread): Declare.
11054 * gdbthread.h (struct thread_info): New field private_dtor.
11055 * thread.c (print_thread_info): Report the core.
11056 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11057 * utils.c (compare_positive_ints): New.
11058 * features/threads.dtd: New.
11059 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11060 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11061 (do_nothing, free_vector_of_osdata_items)
11062 (splay_tree_int_comparator, free_splay_tree): New.
11063 (print_one_inferior_data): Implemented printing of selected
11064 inferiors. Collect and print cores.
11065 (output_cores): New.
11066 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11067 thread groups together with --available.
11069 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11071 * configure: Regenerate (for _STRUCTURED_PROC).
11073 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11075 Delete dead function.
11076 * ada-lang.c (extract_string): Delete. No longer used.
11078 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11080 Fix -Wunused warning in dec-thread.c.
11081 * dec-thread.c (dec_thread_count_gdb_threads)
11082 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11084 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11086 * ada-valprint.c (ada_print_floating): Remove trailing space.
11088 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11090 Add support for DW_AT_GNAT_descriptive_type.
11091 * gdbtypes.h (enum type_specific_kind): New enum.
11092 (struct main_type) [type_specific_field]: New component.
11093 [type_specific]: Add new component "gnat_stuff".
11094 (struct gnat_aux_type): New type.
11095 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11096 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11097 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11098 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11099 (TYPE_SPECIFIC_FIELD): New macros.
11100 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11101 type does not hold any cplus-specific data.
11102 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11103 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11104 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11105 cplus-specific data.
11106 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11107 Set new component TYPE_SPECIFIC_FIELD (type).
11108 (gnat_aux_default): New constant.
11109 (allocate_gnat_aux_type): New function.
11110 (init_type): Add initialization the type-specific stuff for
11111 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11112 (print_gnat_stuff): New function.
11113 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11114 specific data. Adjust code that prints the contents of the
11115 type-specific union using the TYPE_SPECIFIC_FIELD value.
11116 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11117 the type cplus stuff for Ada types.
11118 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11119 Error out if these routines are called with an Ada type.
11120 (read_structure_type, read_array_type, read_subrange_type):
11121 Add call to set_descriptive_type.
11122 (set_die_type): Initialize the gnat-specific data if necessary.
11123 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11125 * ada-lang.c (decode_constrained_packed_array_type): Use
11126 decode_constrained_packed_array_type instead of doing a standard
11127 lookup to locate a parallel type.
11128 (find_parallel_type_by_descriptive_type): New function.
11129 (ada_find_parallel_type_with_name): New function.
11130 (ada_find_parallel_type): Reimplement using
11131 ada_find_parallel_type_with_name.
11132 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11133 to check if type has a cplus stuff.
11134 * linespec.c (total_number_of_methods): Likewise.
11135 * mdebugread.c (new_type): Likewise.
11137 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11139 * NEWS: Document the 0b binary number prefix parsing.
11141 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11143 * objfiles.c (objfile_relocate1): Change the return type to int.
11144 Describe the new return value. Return non-zero if data changed.
11145 (objfile_relocate): New variable changed. Set it. Call
11146 breakpoint_re_set depending on CHANGED.
11148 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11150 Implement binary numbers parsing.
11151 * c-exp.y (parse_number): New case 'b' and 'B'.
11153 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11154 Tristan Gingold <gingold@adacore.com>
11156 * solib.c (info_sharedlibrary_command): Replace
11157 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11158 objfile_has_symbols.
11160 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11162 * NEWS: Document the improvements made to the mips-irix port.
11164 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11166 Fix the documentation of valprint.c:value_print.
11167 * valprint.c (value_print): Update the function description to
11168 mention that the syntax of the output follows the current_language,
11171 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 Fix displacement of separate debug info files.
11174 * objfiles.c (objfile_relocate): Rename to ...
11175 (objfile_relocate1): ... here and make it static. Extend the comment.
11176 (objfile_relocate): New function.
11177 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11178 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11179 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11180 allocated using alloca.
11181 * symfile.c (copy_section_addr_info): Remove.
11182 (build_section_addr_info_from_objfile): Make it global. New variables
11183 addr_bit and mask, use them.
11184 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11185 (copy_section_addr_info): Remove.
11187 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11189 Signal unwinder for mips-irix N32.
11190 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11192 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11193 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11194 (SIGCONTEXT_LO_OFF): New macros.
11195 (mips_irix_n32_tramp_frame_init): New function.
11196 (mips_irix_n32_tramp_frame): New static constant.
11197 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11199 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11201 Breakpoint in shared library does not work on mips-irix.
11202 * procfs.c: #include "observer.h".
11203 (procfs_inferior_created): New function, moving here the code
11204 which unsets the syssgi syscall-exit notifications.
11205 (procfs_create_inferior): Remove the code which unsets the syssgi
11206 syscall-exit notifications. It is too early to do this here.
11207 (_initialize_procfs): Attach the procfs_inferior_created observer.
11209 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11211 Wrong return convention for arrays (mips-irix).
11212 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11213 128 bits or smaller are returned the same way as structs
11214 and unions of the the same size.
11216 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11218 Cannot set the PC on mips-irix.
11219 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11220 register number, no the cooked one.
11222 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11224 Error while loading core file on mips-irix.
11225 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11226 if debugging from a core file.
11228 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11230 GDB hangs when attaching to process on mips-irix.
11231 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11232 attaching to a process.
11234 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11236 Use the correct breakpoint instruction on mips-irix.
11237 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11238 containing the correct breakpoint instruction to use on mips-irix.
11239 Use it when the osabi is GDB_OSABI_IRIX.
11241 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11243 -Wunused warning in procfs.c (mips-irix only).
11244 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11245 throughout instead of using praddset and prdelset respectively.
11247 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11249 GDB crash while stepping into function.
11250 * infrun.c (handle_inferior_event): Refetch the current frame
11251 after handling what.main_action, in case that pointer became
11254 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11256 Fix build failure of solaris-hosted cross debuggers.
11257 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11259 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11261 Fix build failure on sparc-solaris.
11262 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11264 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11266 Move some symfile code into subroutines.
11267 * symfile.h (relative_addr_info_to_section_offsets)
11268 (addr_info_make_relative): New prototypes.
11269 * symfile.c (default_symfile_offsets): Move a part to ...
11270 (relative_addr_info_to_section_offsets): ... this new function.
11271 (default_symfile_offsets): Call it.
11272 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11274 (addr_info_make_relative): ... this new function.
11276 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11278 Add from_tty to solib_create_inferior_hook.
11279 * infcmd.c (post_create_inferior): Move solib_add after
11280 solib_create_inferior_hook. Pass from_tty to
11281 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11282 0 from_tty and comment why.
11283 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11284 * linux-nat.c (linux_child_follow_fork): Likewise.
11285 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11286 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11288 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11289 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11290 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11291 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11292 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11293 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11294 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11295 Pass it to svr4_so_ops.solib_create_inferior_hook.
11296 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11298 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11300 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11302 * solib-target.c (solib_target_solib_create_inferior_hook): New
11303 parameter from_tty.
11304 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11305 it to ops->solib_create_inferior_hook.
11306 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11307 Move solib_add after solib_create_inferior_hook, call it now with
11308 from_tty as 0. New comment there.
11309 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11310 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11313 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11315 Fix multiexec race.
11316 * infrun.c (handle_inferior_event): Use get_thread_regcache
11317 with events ptid, not get_current_regcache.
11319 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11321 GDB crash with empty executable name (MinGW).
11322 * source.c (openp): Add assert that parameter string is not NULL.
11323 if parameter string is an empty string, then return with a failure
11326 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11328 Get rid of support for VAX Floats.
11329 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11330 (ada_vax_float_print_function): Delete.
11331 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11332 (ada_vax_float_print_function): Delete.
11333 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11334 (ada_print_type): Remove support for VAX floats.
11335 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11337 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11339 * stabsread.c (read_args): Handle zero arguments.
11341 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11343 Cannot find in-tree libiconv.a after reconfigure.
11344 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11345 that we can use, then cache the path to this archive.
11346 * configure: Regenerate.
11348 2010-01-07 Stan Shebs <stan@codesourcery.com>
11350 Make tracepoint operations go through target vector.
11351 * target.h (enum trace_find_type): New enum.
11352 (struct target_ops): New fields to_trace_init,
11353 to_download_tracepoint, to_download_trace_state_variable,
11354 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11355 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11356 to_set_disconnected_tracing.
11357 (target_trace_init): New macro.
11358 (target_download_tracepoint): New macro.
11359 (target_download_trace_state_variable): New macro.
11360 (target_trace_start): New macro.
11361 (target_trace_set_readonly_regions): New macro.
11362 (target_get_trace_status): New macro.
11363 (target_trace_stop): New macro.
11364 (target_trace_find): New macro.
11365 (target_get_trace_state_variable_value): New macro.
11366 (target_set_disconnected_tracing): New macro.
11367 * target.c (update_current_target): Inherit and set defaults for
11368 tracepoint operations.
11369 * tracepoint.c (default_collect): Make globally visible.
11370 (target_is_remote): Remove, along with all calls.
11371 (tvariables_info): Call target_get_trace_state_variable_value.
11372 (remote_set_transparent_ranges): Remove.
11373 (trace_start_command): Call target_trace_init,
11374 target_download_tracepoint, etc.
11375 (download_tracepoint): Remove.
11376 (trace_stop_command): Simplify.
11377 (stop_tracing): Call target_trace_stop.
11378 (get_trace_status): Call target_get_trace_status.
11379 (trace_status_command): Add case for targets that cannot trace.
11380 (finish_tfind_command): Change to take numerical arguments, call
11382 (trace_find_command): Update call to finish_tfind_command.
11383 (trace_find_pc_command): Ditto.
11384 (trace_find_tracepoint_command): Ditto.
11385 (trace_find_line_command): Ditto.
11386 (trace_find_range_command): Ditto.
11387 (trace_find_outside_command): Ditto.
11388 (set_disconnected_tracing_value): Call
11389 target_set_disconnected_tracing.
11390 * remote.c: Add protocol encoding bits from tracepoint.c.
11391 (trace_error): Move from tracepoint.c.
11392 (remote_get_noisy_reply): Ditto.
11393 (free_actions_list_cleanup_wrapper): Ditto.
11394 (free_actions_list): Ditto.
11395 (remote_trace_init): New function.
11396 (remote_download_tracepoint): New function.
11397 (remote_download_trace_state_variable): New function.
11398 (remote_trace_set_readonly_regions): New function.
11399 (remote_trace_start): New function.
11400 (remote_get_trace_status): New function.
11401 (remote_trace_stop): New function.
11402 (remote_trace_find): New function.
11403 (remote_download_trace_state_variable): New function.
11404 (remote_set_disconnected_tracing): New function.
11405 (init_remote_ops): Add tracepoint operations.
11407 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11409 2010-01-07 Tristan Gingold <gingold@adacore.com>
11411 * symfile.c (build_section_addr_info_from_objfile): New function.
11412 (symbol_file_add_separate): Don't use offsets from objfile but
11413 built an addr info.
11415 2010-01-06 Stan Shebs <stan@codesourcery.com>
11417 Support disconnected tracing.
11418 * infcmd.c (detach_command): Ask whether to stop tracing.
11419 * cli/cli-cmds.c (quit_command): Ditto.
11420 * breakpoint.h (struct breakpoint): New field number_on_target.
11421 * breakpoint.c (create_tracepoint_from_upload): New function.
11422 (get_tracepoint_by_number_on_target): New function.
11423 * remote.c (struct remote): New field disconnected_tracing.
11424 (remote_disconnected_tracing_feature): New function.
11425 (remote_protocol_features): Add DisconnectedTracing.
11426 (struct uploaded_tp): New struct.
11427 (uploaded_tps): New global.
11428 (get_uploaded_tp): New function.
11429 (find_matching_tracepoint): New function.
11430 (remote_get_tracing_state): New function.
11431 (remote_start_remote): Call it.
11432 * tracepoint.c (disconnected_tracing): New global.
11433 (trace_start_command): Initialize number_on_target.
11434 (stop_tracing): New function, split out from...
11435 (trace_stop_command): Call stop_tracing.
11436 (get_trace_status): New function, split out from...
11437 (trace_status_command): Call get_trace_status, add info on
11438 disconnection behavior.
11439 (disconnect_or_stop_tracing): New function.
11440 (finish_tfind_command): Translate from number on target.
11441 (trace_find_tracepoint_command): Translate to number on target.
11442 (send_disconnected_tracing_value): New function.
11443 (set_disconnected_tracing): New function.
11444 (_initialize_tracepoint): Add disconnected-tracing variable.
11445 * NEWS: Mention disconnected tracing.
11447 2010-01-06 Tristan Gingold <gingold@adacore.com>
11449 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11450 parameter to main_objfile. Iterate on all separate debug objfiles.
11451 * symfile.h (symbol_file_add_separate)
11452 (find_separate_debug_file_by_debuglink): Remove parameter names.
11453 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11454 (reread_symbols): Use free_objfile_separate_debug.
11455 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11457 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11458 (free_objfile_separate_debug): New prototypes.
11459 * objfiles.c (objfile_separate_debug_iterate): New function.
11460 (add_separate_debug_objfile, free_objfile_separate_debug): New
11462 (free_objfile): Use free_objfile_separate_debug. Adjust for
11463 multiple separate debug objfile.
11464 (objfile_has_symbols): Adjust comment. Iterate on all separate
11466 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11468 (lookup_minimal_symbol_text): Ditto.
11469 (lookup_minimal_symbol_by_pc_name): Ditto.
11470 (lookup_minimal_symbol_solib_trampoline): Ditto.
11471 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11474 2010-01-05 Stan Shebs <stan@codesourcery.com>
11476 Add fast tracepoints.
11477 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11478 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11479 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11480 * breakpoint.c (tracepoint_type): New function.
11481 (ALL_TRACEPOINTS): Use it.
11482 (should_be_inserted): Ditto.
11483 (bpstat_check_location): Ditto.
11484 (print_one_breakpoint_location): Ditto.
11485 (user_settable_breakpoint): Ditto.
11486 (set_breakpoint_location_function): Ditto.
11487 (disable_breakpoints_in_shlibs): Ditto.
11488 (delete_trace_command): Ditto.
11489 (print_it_typical): Add bp_fast_tracepoint case.
11490 (bpstat_what): Ditto.
11491 (print_one_breakpoint_location): Ditto.
11492 (allocate_bp_location): Ditto.
11494 (breakpoint_re_set_one): Ditto.
11495 (disable_command): Ditto.
11496 (enable_command): Ditto.
11497 (check_fast_tracepoint_sals): New function.
11498 (break_command_really): Call it.
11499 (ftrace_command): New function.
11500 (_initialize_breakpoint): Add ftrace command.
11501 * gdbarch.sh (fast_tracepoint_valid_at): New.
11502 * gdbarch.h, gdbarch.c: Regenerate.
11503 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11504 (i386_gdbarch_init): Use it.
11505 * remote.c (struct remote_state): New field fast_tracepoints.
11506 (PACKET_FastTracepoints): New packet config type.
11507 (remote_fast_tracepoint_feature): New function.
11508 (remote_protocol_features): Add FastTracepoints.
11509 (remote_supports_fast_tracepoints): New function.
11510 (_initialize_remote): Add FastTracepoints.
11511 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11512 * NEWS: Mention fast tracepoints.
11514 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11516 * gdb-gdb.py: New file.
11518 2010-01-05 Michael Snyder <msnyder@vmware.com>
11520 * infrun.c (handle_inferior_event): Fix typo in comment.
11522 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11524 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11526 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11528 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11530 (s390-linux32-expedite): Define.
11531 (s390-linux64-expedite): Define.
11532 (s390x-linux64-expedite): Define.
11533 * features/s390-acr.xml: New file.
11534 * features/s390-fpr.xml: New file.
11535 * features/s390-core32.xml: New file.
11536 * features/s390-core64.xml: New file.
11537 * features/s390x-core64.xml: New file.
11538 * features/s390-linux32.xml: New file.
11539 * features/s390-linux64.xml: New file.
11540 * features/s390x-linux64.xml: New file.
11541 * features/s390-linux32.c: New generated file.
11542 * features/s390-linux64.c: New generated file.
11543 * features/s390x-linux64.c: New generated file.
11545 * regformats/s390-linux32.dat: New generated file.
11546 * regformats/s390-linux64.dat: New generated file.
11547 * regformats/s390x-linux64.dat: New generated file.
11548 * regformats/reg-s390.dat: Remove.
11549 * regformats/reg-s390x.dat: Remove.
11551 * s390-nat.c: Include "auxv.h" and <elf.h>.
11552 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11553 (s390_target_wordsize): New function.
11554 (s390_auxv_parse): Likewise.
11555 (s390_get_hwcap): Likewise.
11556 (s390_read_description): Likewise.
11557 (_initialize_s390_nat): Install s390_auxv_parse and
11558 s390_read_description.
11560 * s390-tdep.c: Include "features/s390-linux32.c",
11561 "features/s390-linux64.c", and "features/s390x-linux64.c".
11562 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11563 (s390_register_call_saved): New function.
11564 (s390_register_name): Remove.
11565 (s390_register_type): Remove.
11566 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11567 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11568 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11569 (s390_pseudo_register_name): New function.
11570 (s390_pseudo_register_type): New function.
11571 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11572 Handle full GPR pesudos and varying pseudo register numbers.
11573 (s390_pseudo_register_write): Likewise
11574 (s390x_pseudo_register_read): Remove.
11575 (s390x_pseudo_register_write): Likewise.
11576 (s390_register_group): Remove.
11577 (s390_pseudo_register_group): New function.
11578 (s390_regmap_gregset): Add GPR upper halves.
11579 (s390x_regmap_gregset): Likewise.
11580 (s390_regmap_fpregset): Likewise.
11581 (s390_regmap_upper): New global variable.
11582 (s390_upper_regset): New global variable.
11583 (s390_upper_regset_sections): New global variable.
11584 (s390_regset_from_core_section): Handle GPR upper halves.
11585 (s390_core_read_description): New function.
11586 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11587 register information. Handle varying pseudo register numbers.
11588 (s390_backchain_frame_unwind_cache): Likewise.
11589 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11590 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11591 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11592 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11593 Handle varying pseudo register numbers.
11594 (s390_unwind_pc): Handle varying pseudo register numbers.
11595 (s390_dwarf2_prev_register): New function.
11596 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11597 register information. Handle varying pseudo register numbers.
11598 Install s390_dwarf2_prev_register to unwind full GPRs.
11599 (s390_gdbarch_init): Handle target descriptions. Assign varying
11600 pseudo register numbers. Install s390_adjust_frame_regnum.
11601 (_initialize_s390_tdep): Initialize target descriptions.
11603 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11604 (S390_NUM_REGS): Redefine to include upper half registers.
11605 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11606 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11607 (tdesc_s390_linux32): Add declaration.
11608 (tdesc_s390_linux64): Likewise.
11609 (tdesc_s390x_linux64): Likewise.
11611 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11613 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11614 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11615 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11616 (ppc_linux_vmx_regset_sections): Likewise.
11617 (ppc_linux_fp_regset_sections): Likewise.
11619 * corelow.c (get_core_register_section): Constify arguments.
11620 (get_core_registers): Use gdbarch_core_regset_sections instead
11621 of hard-coded platform-specific register section names.
11623 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11625 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11626 a register, assume the least-significant part is used.
11627 (write_pieced_value): Likewise.
11629 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11631 * printcmd.c: Include "arch-utils.h".
11632 (do_one_display): Re-parse expression if current architecture changed.
11634 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11635 Joel Brobecker <brobecker@adacore.com>
11637 * gdbtypes.c (check_typedef): New comment on type length.
11638 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11639 comment on type length.
11640 (value_primitive_field): Keep the original TYPE value, new comment.
11642 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11644 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11645 p_start. Change != comparisons to > and < comparisons.
11647 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11649 * cli/cli-script.c (process_next_line): Check P2 overrun.
11651 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11653 Update the copyright hearder to add year 2010 for most GDB files.
11655 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11657 Fix build failure in inf-ptrace.c.
11658 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11660 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11662 * top.c (print_gdb_version): Update copyright year.
11664 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11666 Fix break *FUN'address thread NUM.
11667 * ada-lex.l (task): Expand rule to also match the thread keyword.
11669 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11671 Fix break *FUN'address task NUM.
11672 * ada-lex.l (task): New rule.
11673 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11674 been built before using it.
11676 For older changes see ChangeLog-2009.
11682 version-control: never