1 2007-01-26 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4 (ada_exception_sal): Update accordingly.
6 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9 * NEWS: Describe CHAR array vs. string identifcation rules.
11 2007-01-25 Paul Brook <paul@codesourcery.com>
13 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
15 2007-01-24 Jim Blandy <jimb@codesourcery.com>
17 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
18 expression is empty, bother to return the 'optimized out' value we
19 construct. (Thanks to Carl Burch.)
21 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
23 * varobj.c (c_value_of_root, c_value_of_child)
24 (cplus_describe_child): Don't call release_value.
26 2007-01-24 Thiemo Seufer <ths@mips.com>
28 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
31 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
33 Refactor getting children name, value and type access
35 * varobj.c (get_type_deref): Remove.
36 (adjust_value_for_child_access): New.
37 (c_number_of_children): Use the above.
38 (c_describe_child): Likewise.
39 (enum accessibility): New.
40 (match_accessibility): New function.
41 (cplus_describe_child): New function.
42 (cplus_name_of_child, cplus_value_of_child)
43 (cplus_type_of_child): Reimplement in terms
44 of cplus_describe_child.
45 (cplus_number_of_children): Use
46 adjust_value_for_child_access.
48 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
50 Fix computation of the 'editable' attribute and
51 value changeability for for references.
52 * varobj.c (get_value_type): New function.
53 (c_variable_editable): Use get_value_type.
54 (varobj_value_is_changeable): Likewise.
56 2007-01-24 Joel Brobecker <brobecker@adacore.com>
58 * source.c (find_and_open_source): Try rewriting the source
59 path inside filename if dirname is NULL.
61 2007-01-24 Joel Brobecker <brobecker@adacore.com>
63 * dwarf2read.c (add_partial_symbol): Create an extra partial
64 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
65 (new_symbol): Likewise for symbols.
67 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
69 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
71 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
73 * value.c (value_primitive_field): Copy the full 'location'
74 contents, instead of assuming that copying ADDRESS will
75 bring over everything in the union. Remove obsolete comment.
77 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
79 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
80 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
81 (m32c_m16c_pointer_to_address): Separate code from declarations.
83 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
85 * target.c (update_current_target): Correct typo.
87 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
89 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
92 2007-01-11 Andrew Cagney <cagney@redhat.com>
93 Daniel Jacobowitz <dan@codesourcery.com>
94 Jan Kratochvil <jan.kratochvil@redhat.com>
96 * dwarf2-frame.c (execute_cfa_program): New support of
97 `DW_CFA_GNU_negative_offset_extended'.
99 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
101 * NEWS: Mention flash support for "load" and new remote packets.
103 2007-01-21 Markus Deuling <deuling@de.ibm.com>
105 * breakpoint.c (delete_command): Skip redundant loop iterations.
107 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
109 * gdbarch.sh (register_type): Update comment.
110 * gdbarch.h: Regenerated.
111 * arch-utils.c (generic_register_size): Call register_type.
112 * ia64-tdep.c (ia64_extract_return_value): Likewise.
113 * m32c-tdep.c (check_for_saved): Likewise.
114 * mips-tdep.c (mips_print_register, print_gp_register_row)
115 (mips_print_registers_info): Likewise.
116 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
118 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
119 (sh64_do_register, sh64_print_register)
120 (sh64_media_print_registers_info): Likewise.
121 * tui/tui-regs.c (tui_register_format): Likewise.
123 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
125 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
127 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
128 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
129 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
130 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
131 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
132 (make_symbol_completion_list): Likewise.
134 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
135 Daniel Jacobowitz <dan@codesourcery.com>
137 * buildsym.c (end_symtab): Use preallocated symtab if available.
138 Fill in SYMBOL_SYMTAB.
139 * buildsym.h (struct subfile): Add symtab member.
140 * dwarf2read.c (struct dwarf2_cu): Add line_header.
141 (struct file_entry): Add symtab.
142 (free_cu_line_header): New function.
143 (read_file_scope): Use it. Save line_header in the cu. Process
145 (add_file_name): Initialize new symtab member.
146 (dwarf_decode_lines): Create symtabs for included files.
147 (new_symbol): Set SYMBOL_SYMTAB.
148 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
149 (search_symbols): Likewise.
150 * symtab.h (struct symbol): Add symtab member.
151 (SYMBOL_SYMTAB): Define.
153 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
155 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
157 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
159 * arch-utils.c (show_endian): Correct reversed condition.
161 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
163 * MAINTAINERS (Write After Approval): Add myself.
165 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
166 Vladimir Prus <vladimir@codesourcery.com>
168 Fix 'selected frame' varobjs.
169 * varobj.c (struct varobj): Remove the error field.
170 (varobj_set_value): Don't check var->error.
171 (install_new_value): Don't set var->error.
172 (varobj_update): Always pass the new value
173 of the root via install_new_value.
174 (create_child): Don't set error field.
175 (new_variable): Likewise.
176 (c_value_of_root): Always reevaluate the value
177 of selected frame varobjs in the selected frame.
178 Don't call reinit_frame_cache.
180 2007-01-15 Joel Brobecker <brobecker@adacore.com>
182 * source.c (_initialize_source): Improve the help text of
183 the substitute-path commands.
185 2007-01-14 Mark Kettenis <kettenis@gnu.org>
187 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
188 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
189 (frv_skip_prologue): Remove prototypes.
190 (frv_adjust_breakpoint_address): Renamed from
191 frv_gdbarch_adjust_breakpoint_address.
192 (frv_gdbarch_init): Adjust.
194 2007-01-13 Mark Kettenis <kettenis@gnu.org>
196 * gdbarch.sh (deprecated_extract_return_value)
197 (deprecated_store_return_value): Remove.
198 (extract_return_value, store_return_value): Remove default values.
199 * gdbarch.c, gdbarch.h: Regenerate.
200 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
201 (legacy_store_return_value): Remove.
202 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
205 * mi/mi-main.c: Remove obsolete comment.
207 * regcache.c, regcache.h (deprecated_register_bytes)
208 (deprecated_read_register_bytes)
209 (deprecated_write_register_bytes): Remove.
211 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
212 Don't forget to move destination pointer.
214 2007-01-01 Mark Kettenis <kettenis@gnu.org>
216 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
218 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
220 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
221 past entry function with recent newlib.
223 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
225 * gdb.texinfo (GDB/MI Variable Objects): Improve the
226 introduction. Specify -var-update more exactly.
228 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
230 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
232 2007-01-10 Jim Blandy <jimb@codesourcery.com>
234 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
235 the Global Maintainers' invitation to be a global maintainer.
237 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
239 * infrun.c (singlestep_pc): New variable.
240 (resume): Set singlestep_pc.
241 (context_switch): Add a debugging message. Flush the frame cache.
242 (handle_inferior_event): Add debugging messages. Handle thread
243 hops when a software single step has completed. Let context_switch
244 handle flushing the frame cache.
246 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
248 * NEWS: Mention target descriptions, "set tdesc filename",
249 "unset tdesc filename", "show tdesc filename", and
251 * arch-utils.c (choose_architecture_for_target): New function.
252 (gdbarch_info_fill): Call it.
253 * target-descriptions.c (struct property): Make members non-const.
254 (struct target_desc): Add arch member.
255 (target_description_filename): New variable.
256 (target_find_description): Try via XML first.
257 (tdesc_architecture): New.
258 (free_target_description, make_cleanup_free_target_description): New.
259 (set_tdesc_property): Call xstrdup.
260 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
261 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
262 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
263 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
264 * target-descriptions.h (tdesc_architecture)
265 (make_cleanup_free_target_description, set_tdesc_architecture): New
267 * Makefile.in (SFILES): Add xml-tdesc.c.
268 (COMMON_OBS): Add xml-tdesc.o.
269 (target-descriptions.o): Update.
270 (xml-tdesc.o): New rule.
271 * xml-tdesc.c, xml-tdesc.h: New files.
272 * remote.c (PACKET_qXfer_features): New enum.
273 (remote_protocol_features): Add qXfer:features:read.
274 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
275 (_initialize_remote): Register qXfer:features:read.
276 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
277 * features/gdb-target.dtd: New file.
279 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
281 * copyright.sh: Clarify error.
283 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
285 * symtab.c (matching_bfd_sections): Fix VMA matching for
288 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
290 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
293 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
295 Updated copyright notices for most files.
297 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
299 * copyright.sh (prunes): Add step-line.inp and step-line.c.
301 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
303 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
305 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
307 * configure, config.in: Regenerate.
308 * defs.h (debug_file_directory): Declare.
309 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
310 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
311 relocate it if DEBUGDIR_RELOCATABLE.
312 * symfile.c (debug_file_directory): Make non-static.
313 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
314 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
315 (_initialize_symfile): Don't initialize debug_file_directory here.
317 2007-01-09 Jim Blandy <jimb@codesourcery.com>
319 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
322 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
324 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
325 frame_unwind_register to recurse.
326 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
327 (alpha_heuristic_frame_prev_register): Likewise.
328 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
329 * m32c-tdep.c (m32c_prev_register): Likewise.
330 * frame.c (frame_register_unwind_location): Remove FIXME.
332 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
333 Eli Zaretskii <eliz@gnu.org>
335 * copyright.sh: New file.
337 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
339 * configure.ac: Check for XML_StopParser.
340 * xml-support.c (gdb_xml_body_text): Check for an error.
341 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
342 (gdb_xml_end_element_wrapper): Likewise.
343 * config.in, configure: Regenerated.
345 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
347 * varobj.c (install_new_value): Always update print_value.
348 (value_get_print_value): Immediately return NULL for missing
351 2007-01-08 Jim Blandy <jimb@codesourcery.com>
353 * configure.ac: Tighten pattern for extracting value of
354 DEPRECATED_TM_FILE from the target makefile fragment.
355 * configure: Regenerated.
357 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
359 * linux-nat.c (struct simple_pid_list): Add status.
360 (add_to_pid_list): Record the PID's status.
361 (linux_record_stopped_pid): Likewise. Make static.
362 (pull_pid_from_list): Return the saved status.
363 (linux_nat_handle_extended): Deleted.
364 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
365 Make static. Handle non-SIGSTOP for a new thread's first signal.
366 (flush_callback): Handle unexpected pending signals.
367 (linux_nat_wait): Update calls to changed functions.
368 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
369 Remove prototypes for newly static functions.
371 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
373 * gdbarch.sh (value_from_register): New gdbarch function.
374 * gdbarch.c, gdbarch.h: Regenerate.
375 * findvar.c (default_value_from_register): New function.
376 (value_from_register): Use gdbarch_value_from_register.
377 * value.h (default_value_from_register): Declare.
378 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
379 spu_value_to_register): Remove.
380 (spu_value_from_register): New function.
381 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
382 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
383 Call set_gdbarch_value_from_register.
384 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
385 s390_value_to_register): Remove.
386 (s390_value_from_register): New function.
387 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
388 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
389 Call set_gdbarch_value_from_register.
391 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
393 * NEWS: Add "set sysroot" and "show sysroot".
394 * solib.c (solib_absolute_prefix): Delete. Replace
395 all uses with gdb_sysroot.
396 (_initialize_solib): Add "set sysroot" and "show sysroot".
397 Make "solib-absolute-prefix" an alias to it.
399 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
401 * frame.c (get_frame_register_bytes): New function.
402 (put_frame_register_bytes): Likewise.
403 * frame.h (get_frame_register_bytes): Declare.
404 (put_frame_register_bytes): Likewise.
405 * findvar.c (value_from_register): Always construct lval_register
406 values. Use get_frame_register_bytes.
407 * valops.c (value_assign): Use get_frame_register_bytes and
408 put_frame_register_bytes.
410 2007-01-08 Jim Blandy <jimb@codesourcery.com>
412 * MAINTAINERS: Update Stan Shebs' email address.
414 2007-01-07 Joel Brobecker <brobecker@adacore.com>
416 * ada-lang.c (is_known_support_routine): Improve the implementation.
418 2007-01-06 Joel Brobecker <brobecker@adacore.com>
420 * ada-lang.c: Add include of source.h.
421 (is_known_support_routine): Improve the check verifying that the file
422 associated to this frame exists.
423 * Makefile.in (ada-lang.o): Add dependency on source.h.
425 2007-01-07 Jim Blandy <jimb@codesourcery.com>
427 * ax-general.c (ax_const_l): Select proper opcode for the given
430 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
432 * varobj.c (c_value_of_root): Don't select frame if variable
433 object is out of scope.
435 2007-01-06 Nick Roberts <nickrob@snap.net.nz>
437 * varobj.c (struct varobj): New member print_value.
438 (install_new_value): Compare last printed value with current one
440 (new_variable): Initialize var->print_value to NULL.
441 (free_variable): Free var->print_value.
442 (value_get_print_value): New function derived from
444 (c_value_of_variable): Use value_get_print_value.
446 2007-01-05 Joel Brobecker <brobecker@adacore.com>
448 * i386-tdep.c (i386_analyze_stack_align): Add comment.
450 2007-01-05 Joel Brobecker <brobecker@adacore.com>
452 * NEWS: Add entries for new catch commands.
454 2006-02-05 Joel Brobecker <brobecker@adacore.com>
456 * dwarf2read.c (partial_die_info): Add field has_byte_size.
457 (add_partial_symbol): Correct identification of external references.
458 (process_structure_scope): Likewise.
459 (read_partial_die): Handle DW_AT_byte_size attribute.
461 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
463 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
465 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
467 * varobj.c (get_type_deref): Fix variable objects for references to
470 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
472 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
475 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
477 * memory-map.c (struct_memory_map_parsing_data): Remove most
478 members. Make property_name an array.
479 (free_memory_map_parsing_data, memory_map_start_element)
480 (memory_map_end_element, memory_map_character_data): Delete.
481 (memory_map_start_memory, memory_map_end_memory)
482 (memory_map_start_property, memory_map_end_property): New functions.
483 (property_attributes, memory_children, memory_type_enum)
484 (memory_attributes, memory_map_children, memory_map_elements): New.
485 (parse_memory_map): Rewrite.
486 * xml-support.c (debug_xml): New.
487 (xml_get_required_attribute, xml_get_integer_attribute)
488 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
490 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
491 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
492 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
493 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
494 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
495 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
496 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
498 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
499 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
500 (enum gdb_xml_element_flag, struct gdb_xml_element)
501 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
502 (struct gdb_xml_enum): New.
503 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
504 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
505 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
506 (xml_get_required_attribute, xml_get_integer_attribute)
507 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
508 * Makefile.in (xml_support_h, xml-support.o): Update.
510 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
512 * Makefile.in (eval.o): Update dependencies.
513 * eval.c: Include "ui-out.h" and "exceptions.h".
514 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
515 Use value_zero if an error occurs when avoiding side effects.
516 * varobj.c (c_value_of_root): Initialize new_val.
518 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
520 * varobj.c (varobj_list_children): Stop if the number of children is
522 (c_number_of_children):
524 2007-01-04 Mark Kettenis <kettenis@gnu.org>
526 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
527 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
528 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
529 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
530 sizeof, instead of hardcoded constants.
532 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
534 * CONTRIBUTE: Use sourceware.org.
536 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
538 * buildsym.c (start_subfile): Handle producer.
539 (record_producer): New function.
540 * buildsym.h (struct subfile): Include producer.
541 (record_producer): New prototype.
542 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
543 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
544 armcc_cfa_offsets_reversed.
545 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
546 (dwarf2_frame_find_quirks): New function.
547 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
548 (decode_frame_entry_1): Record the CIE version. Record the
549 augmentation. Skip armcc augmentations.
550 * dwarf2read.c (read_file_scope): Save the producer.
551 * symtab.h (struct symtab): Rename unused version member to
554 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
556 * configure.ac (build_warnings): Use -Wall and
557 -Wdeclaration-after-statement.
558 * configure: Regenerated.
560 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
562 Simplify access to variours properties of child
563 variable objects in C.
564 * varobj.c (value_struct_element_index): New function.
565 (c_describe_child): New function.
566 (c_name_of_child, c_value_of_child)
567 (c_type_of_child): Rewrite to use c_describe_child.
569 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
572 * varobj.c: Include "vec.h".
573 (varobj_p): New typedef, declare vector of those.
574 (struct varobj): Use vector for the 'children' member.
575 (child_exists): Remove.
576 (save_child_in_parent): Remove.
577 (remove_child_from_parent): Remove.
578 (struct varobj_child): Remove.
579 (struct vstack): Remove.
580 (vpush, vpop): Remove.
581 (varobj_list_children): Adjust to work work vector.
582 (varobj_update): Likewise. Use vectors for
583 working stack and result.
584 (delete_variable_1): Likewise.
585 * Makefile.in (varobj.o): Update dependencies.
587 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
589 Port from Apple's version.
591 * varobj.c (type_changeable): Rename to...
592 (varobj_value_is_changeable_p): ...this. Adjust all callers.
593 (is_root_p): New function. Use it everywhere.
595 2007-01-04 Jim Blandy <jimb@codesourcery.com>
597 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
600 2007-01-04 Joel Brobecker <brobecker@adacore.com>
602 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
604 2007-01-04 Joel Brobecker <brobecker@adacore.com>
606 * hpread.c (hpread_type_lookup): Fix compilation failure.
608 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
610 * NEWS: New port to S+core.
611 * MAINTAINERS (Write After Approval, Responsible Maintainers):
614 * Makefile.in: Add dependencies for S+core files.
615 * configure.tgt (score*, score-*-*): Add S+core target.
616 * config/score/embed.mt: New file.
617 * score-tdep.c: New file.
618 * score-tdep.h: New file.
620 2007-01-04 Joel Brobecker <brobecker@adacore.com>
622 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
623 the appropriate type rather than a bogus void type.
625 2007-01-04 Joel Brobecker <brobecker@adacore.com>
627 * ada-lang.h (ada_find_printable_frame): Remove.
628 (ada_exception_catchpoint_p, ada_decode_exception_location)
629 (ada_decode_assert_location): Add declaration.
630 * ada-lang.c: Add include of annotate.h and valprint.h.
631 (exception_catchpoint_kind): New enum.
632 (function_name_from_pc, is_known_support_routine)
633 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
634 (ada_exception_name_addr_1, ada_exception_name_addr)
635 (print_it_exception, print_one_exception, print_mention_exception)
636 (print_it_catch_exception, print_one_catch_exception)
637 (print_mention_catch_exception, catch_exception_breakpoint_ops)
638 (print_it_catch_exception_unhandled)
639 (print_one_catch_exception_unhandled)
640 (print_mention_catch_exception_unhandled, print_it_catch_assert)
641 (print_one_catch_assert, print_mention_catch_assert)
642 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
643 (ada_get_next_arg, catch_ada_exception_command_split)
644 (ada_exception_sym_name, ada_exception_sym_name)
645 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
646 (ada_parse_catchpoint_condition, ada_exception_sal)
647 (ada_decode_exception_location)
648 (ada_decode_assert_location): New function.
649 (catch_exception_unhandled_breakpoint_ops): New global variable.
650 (catch_assert_breakpoint_ops): New global variable.
651 * breakpoint.c: Add include of ada-lang.h.
652 (print_one_breakpoint): Do not print the condition for Ada
653 exception catchpoints.
654 (create_ada_exception_breakpoint): New function.
655 (catch_ada_exception_command, catch_assert_command): New function.
656 (catch_command_1): Add support for the new "catch exception" and
657 "catch assert" commands.
658 (_initialize_breakpoint): Add help description for the new catch
660 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
662 (breakpoint.o): Add dependency on ada-lang.h.
664 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
666 * coffread.c (cs_to_section): If bfd_section is found, always
667 return its section index.
668 (coff_symtab_read): Determine the minimal_symbol_type using the
671 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
672 Daniel Jacobowitz <dan@codesourcery.com>
674 * Makefile.in (top.o): Update.
675 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
676 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
677 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
679 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
681 2007-01-03 Mark Kettenis <kettenis@gnu.org>
683 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
684 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
686 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
688 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
689 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
690 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
691 greater than or equal to zero.
692 * m2-typeprint.c (m2_array): Likewise.
693 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
694 * gdbtypes.c (copy_type_recursive): Correct == typo.
695 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
696 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
698 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
699 (default_macro_scope): Remove unused variable.
700 * prologue-value.h (pv_area_find_reg): Don't name an argument
702 * remote-fileio.c (remote_fio_func_map): Add missing braces.
703 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
705 (cleanup_sigint_signal_handler): Remove casts.
706 * valprint.c (val_print): Use a volatile local for the modified
708 * varobj.c (languages): Remove extra array dimension.
709 (varobj_create): Correct access to languages array.
710 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
712 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
713 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
714 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
715 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
716 (mi_cmd_data_write_memory): Likewise.
717 * signals/signals.c (target_signal_to_string): Cast to int before
719 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
722 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
724 * NEWS: Mention pointer to member improvements.
725 * Makefile.in (gnu-v3-abi.o): Delete special rule.
726 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
727 * ada-valprint.c (ada_print_scalar): Update for new type codes.
728 * c-typeprint.c (c_print_type): Update for new type codes.
729 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
730 (c_type_print_base): Likewise.
731 (c_type_print_args): Rewrite.
732 * c-valprint.c (c_val_print): Update for new type codes. Remove
733 support for references to members. Treat methods like functions.
734 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
735 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
736 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
737 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
738 (struct cp_abi_ops): Add corresponding members.
739 * cp-valprint.c (cp_print_class_method): Delete.
740 (cp_find_class_member): New function.
741 (cp_print_class_member): Use it. Simplify support for bogus
743 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
744 lookup_methodptr_type.
745 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
746 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
747 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
749 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
750 references returned by user defined operators.
751 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
752 (f_type_print_varspec_suffix): Remove support for member pointers.
753 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
755 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
756 (lookup_methodptr_type): New.
757 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
758 (recursive_dump_type): Update for new types.
759 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
760 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
761 (lookup_memberptr_type, lookup_methodptr_type)
762 (smash_to_memberptr_type): New prototypes.
763 (smash_to_method_type): Formatting fix.
764 (lookup_member_type, smash_to_member_type): Delete prototypes.
765 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
766 Do not rely on debug information for the vptr or the method's
767 enclosing type. Handle function descriptors for IA64.
768 (gnuv3_virtual_fn_field): Rewrite using the new functions.
769 (gnuv3_find_method_in, gnuv3_print_method_ptr)
770 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
771 (gnuv3_method_ptr_to_value): New.
772 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
773 * hpread.c (hpread_type_lookup): Update for new types.
774 * infcall.c (value_arg_coerce): Likewise.
775 * m2-typeprint.c (m2_print_type): Remove explicit support
777 * m2-valprint.c (m2_val_print): Likewise.
778 * p-typeprint.c (pascal_type_print_varspec_prefix)
779 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
780 * p-valprint.c (pascal_val_print): Likewise.
781 (pascal_object_print_class_method, pascal_object_print_class_member):
783 * p-lang.h (pascal_object_print_class_method)
784 (pascal_object_print_class_member): Delete prototypes.
785 * stabsread.c (read_type): Update for new types.
786 * typeprint.c (print_type_scalar): Likewise.
787 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
788 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
789 argument. Construct a pointer to member if the address of a
790 function or data member is requested.
791 (value_cast_pointers): Don't modify the input value.
792 (value_cast): Adjust pointer to member handling for new types.
793 Allow null pointer to member constants. Don't modify the input
795 (value_ind): Remove pointer to member check. Handle function
796 descriptors for function pointers.
797 (value_struct_elt, value_find_oload_method_list, check_field):
798 Remove pointer to member checks.
799 * value.c (unpack_long): Allow pointers to data members.
800 (value_from_longest): Allow member pointers.
801 * value.h (value_aggregate_elt): Add want_address.
802 * varobj.c (c_variable_editable): Remove check for members.
803 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
804 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
806 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
807 * c-lang.h (cp_print_class_method): Delete prototype.
808 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
809 * mips-tdep.c (mips_gdbarch_init): Likewise.
810 * gdbarch.c, gdbarch.h: Regenerated.
812 2007-01-01 Mark Kettenis <kettenis@gnu.org>
814 * rs6000-tdep.c (rs6000_use_struct_convention)
815 (rs6000_extract_return_value, rs6000_store_return_value)
816 (rs6000_extract_struct_value_address): Remove.
817 (rs6000_return_value): New function.
818 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
819 store_return_value, deprecated_extract_struct_value_address and
820 deprecated_use_struct_convention. Use rs6000_return_value
823 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
825 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
826 -display-disable, -display-enable, -display-insert and
829 2006-01-01 Joel Brobecker <brobecker@adacore.com>
831 * breakpoint.c (remove_breakpoint): Remove dead code.
833 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
835 * varobj.c: Include block.h.
836 (c_value_of_root): Check scope within nested statements.
838 2007-01-01 Mark Kettenis <kettenis@gnu.org>
840 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
841 regcache_cooked_write_signed instead of
842 deprecated_write_register_bytes.
844 2007-01-01 Joel Brobecker <brobecker@adacore.com>
846 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
848 2007-01-01 Joel Brobecker <brobecker@adacore.com>
850 Followed the Start of New Year Procedure:
851 * ChangeLog-2006: New file, containing all the entries for 2006.
852 * ChangeLog: Removed all 2006 entries, and changed the reference
853 to the previous ChangeLog to point to ChangeLog 2006.
854 * top.c (print_gdb_version): Update copyright year.
856 2007-01-01 Mark Kettenis <kettenis@gnu.org>
858 * Makefile.in (remote-sds.o): Remove.
859 * remote-sds.c: Delete.
861 For older changes see ChangeLog-2006.
867 version-control: never