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