1 2007-02-02 Denis Pilat <denis.pilat@st.com>
3 * thread.c (make_cleanup_restore_current_thread): New function.
4 (info_threads_command): Use of make_cleanup_restore_current_thread
5 to restore the current thread and the selected frame.
6 (restore_selected_frame): New function.
7 (struct current_thread_cleanup): Add frame_id field.
8 (do_restore_current_thread_cleanup): Add restoring of the selected
10 (make_cleanup_restore_current_thread): Likewise.
11 (thread_apply_all_command): backup the selected frame while
12 entering the function and restore it at exit.
13 (thread_apply_command): Likewise.
15 2007-02-02 Denis Pilat <denis.pilat@st.com>
17 * MAINTAINERS (Write After Approval): Add myself to the list.
19 2006-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
21 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
22 (m32r_store_register): Ditto.
24 2006-01-30 Vladimir Prus <vladimir@codesourcery.com>
26 * ser-mingw.c (pipe_windows_open)
27 (pipe_windows_read, pipe_windows_write): Declare
28 variables at the top of the function.
30 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
32 * doublest.c (floatformat_from_length): Use the right element from
34 (floatformat_from_type, extract_typed_floating)
35 (store_typed_floating): Likewise.
36 * doublest.h: Remove declarations for undefined floatformat arrays.
37 * gdbarch.sh (float_format, double_format, long_double_format): Change
39 (pformat): Update for pairs.
40 * gdbarch.c, gdbarch.h: Regenerated.
41 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
42 (floatformats_ieee_double_littlebyte_bigword)
43 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
44 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
45 (floatformats_vax_d): New variables.
46 (builtin_type_ieee_single, builtin_type_ieee_double)
47 (builtin_type_arm_ext, builtin_type_ia64_spill)
48 (builtin_type_ia64_quad): Replace arrays with individual types.
49 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
50 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
51 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
52 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
53 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
54 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
55 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
56 unused and endian-specific types.
57 (recursive_dump_type): Update for floatformat pairs.
58 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
59 (build_gdbtypes): Use build_flt.
60 (_initialize_gdbtypes): Update set of initialized types.
61 * gdbtypes.h: Update declarations to match gdbtypes.c.
62 (struct main_type): Store a pointer to two floatformats.
63 * arch-utils.c (default_float_format, default_double_format): Delete.
64 * arch-utils.h (default_float_format, default_double_format): Delete.
66 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
67 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
68 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
69 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
70 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
72 2007-01-29 Joel Brobecker <brobecker@adacore.com>
74 * target.c (maintenance_print_target_stack): New function.
75 (initialize_targets): Add new "maintenance print target-stack"
78 2007-01-28 Mark Kettenis <kettenis@gnu.org>
80 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
82 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
84 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
85 (struct dwarf2_loclist_baton): Likewise.
87 2007-01-27 Eli Zaretskii <eliz@gnu.org>
89 * cli/cli-script.c: Include breakpoint.h.
90 (build_command_line): Require arguments only for if and while
92 (get_command_line, execute_user_command, execute_control_command):
93 Fix wording of warning messages.
94 (print_command_lines): Print breakpoint commands.
95 (execute_control_command): Call commands_from_control_command to
96 handle the `commands' command inside a body of a flow-control
98 (read_next_line): Recognize the `commands' command and build a
99 command line structure for it.
100 (recurse_read_control_structure, read_command_lines): Handle
101 `commands' similarly to `if' and `while'.
103 * breakpoint.c (get_number_trailer): Document the special meaning
104 of NULL as the first argument PP.
105 (commands_from_control_command): New function.
107 * breakpoint.h (commands_from_control_command): Add prototype.
109 * defs.h (commands_control): New enumerated value for enum
110 command_control_type.
112 2007-01-26 Joel Brobecker <brobecker@adacore.com>
114 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
115 (ada_exception_sal): Update accordingly.
117 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
120 * NEWS: Describe CHAR array vs. string identifcation rules.
122 2007-01-25 Paul Brook <paul@codesourcery.com>
124 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
126 2007-01-24 Jim Blandy <jimb@codesourcery.com>
128 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
129 expression is empty, bother to return the 'optimized out' value we
130 construct. (Thanks to Carl Burch.)
132 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
134 * varobj.c (c_value_of_root, c_value_of_child)
135 (cplus_describe_child): Don't call release_value.
137 2007-01-24 Thiemo Seufer <ths@mips.com>
139 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
142 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
144 Refactor getting children name, value and type access
146 * varobj.c (get_type_deref): Remove.
147 (adjust_value_for_child_access): New.
148 (c_number_of_children): Use the above.
149 (c_describe_child): Likewise.
150 (enum accessibility): New.
151 (match_accessibility): New function.
152 (cplus_describe_child): New function.
153 (cplus_name_of_child, cplus_value_of_child)
154 (cplus_type_of_child): Reimplement in terms
155 of cplus_describe_child.
156 (cplus_number_of_children): Use
157 adjust_value_for_child_access.
159 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
161 Fix computation of the 'editable' attribute and
162 value changeability for for references.
163 * varobj.c (get_value_type): New function.
164 (c_variable_editable): Use get_value_type.
165 (varobj_value_is_changeable): Likewise.
167 2007-01-24 Joel Brobecker <brobecker@adacore.com>
169 * source.c (find_and_open_source): Try rewriting the source
170 path inside filename if dirname is NULL.
172 2007-01-24 Joel Brobecker <brobecker@adacore.com>
174 * dwarf2read.c (add_partial_symbol): Create an extra partial
175 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
176 (new_symbol): Likewise for symbols.
178 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
180 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
182 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
184 * value.c (value_primitive_field): Copy the full 'location'
185 contents, instead of assuming that copying ADDRESS will
186 bring over everything in the union. Remove obsolete comment.
188 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
190 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
191 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
192 (m32c_m16c_pointer_to_address): Separate code from declarations.
194 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
196 * target.c (update_current_target): Correct typo.
198 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
200 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
203 2007-01-11 Andrew Cagney <cagney@redhat.com>
204 Daniel Jacobowitz <dan@codesourcery.com>
205 Jan Kratochvil <jan.kratochvil@redhat.com>
207 * dwarf2-frame.c (execute_cfa_program): New support of
208 `DW_CFA_GNU_negative_offset_extended'.
210 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
212 * NEWS: Mention flash support for "load" and new remote packets.
214 2007-01-21 Markus Deuling <deuling@de.ibm.com>
216 * breakpoint.c (delete_command): Skip redundant loop iterations.
218 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
220 * gdbarch.sh (register_type): Update comment.
221 * gdbarch.h: Regenerated.
222 * arch-utils.c (generic_register_size): Call register_type.
223 * ia64-tdep.c (ia64_extract_return_value): Likewise.
224 * m32c-tdep.c (check_for_saved): Likewise.
225 * mips-tdep.c (mips_print_register, print_gp_register_row)
226 (mips_print_registers_info): Likewise.
227 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
229 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
230 (sh64_do_register, sh64_print_register)
231 (sh64_media_print_registers_info): Likewise.
232 * tui/tui-regs.c (tui_register_format): Likewise.
234 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
236 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
238 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
239 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
240 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
241 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
242 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
243 (make_symbol_completion_list): Likewise.
245 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
246 Daniel Jacobowitz <dan@codesourcery.com>
248 * buildsym.c (end_symtab): Use preallocated symtab if available.
249 Fill in SYMBOL_SYMTAB.
250 * buildsym.h (struct subfile): Add symtab member.
251 * dwarf2read.c (struct dwarf2_cu): Add line_header.
252 (struct file_entry): Add symtab.
253 (free_cu_line_header): New function.
254 (read_file_scope): Use it. Save line_header in the cu. Process
256 (add_file_name): Initialize new symtab member.
257 (dwarf_decode_lines): Create symtabs for included files.
258 (new_symbol): Set SYMBOL_SYMTAB.
259 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
260 (search_symbols): Likewise.
261 * symtab.h (struct symbol): Add symtab member.
262 (SYMBOL_SYMTAB): Define.
264 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
266 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
268 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
270 * arch-utils.c (show_endian): Correct reversed condition.
272 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
274 * MAINTAINERS (Write After Approval): Add myself.
276 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
277 Vladimir Prus <vladimir@codesourcery.com>
279 Fix 'selected frame' varobjs.
280 * varobj.c (struct varobj): Remove the error field.
281 (varobj_set_value): Don't check var->error.
282 (install_new_value): Don't set var->error.
283 (varobj_update): Always pass the new value
284 of the root via install_new_value.
285 (create_child): Don't set error field.
286 (new_variable): Likewise.
287 (c_value_of_root): Always reevaluate the value
288 of selected frame varobjs in the selected frame.
289 Don't call reinit_frame_cache.
291 2007-01-15 Joel Brobecker <brobecker@adacore.com>
293 * source.c (_initialize_source): Improve the help text of
294 the substitute-path commands.
296 2007-01-14 Mark Kettenis <kettenis@gnu.org>
298 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
299 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
300 (frv_skip_prologue): Remove prototypes.
301 (frv_adjust_breakpoint_address): Renamed from
302 frv_gdbarch_adjust_breakpoint_address.
303 (frv_gdbarch_init): Adjust.
305 2007-01-13 Mark Kettenis <kettenis@gnu.org>
307 * gdbarch.sh (deprecated_extract_return_value)
308 (deprecated_store_return_value): Remove.
309 (extract_return_value, store_return_value): Remove default values.
310 * gdbarch.c, gdbarch.h: Regenerate.
311 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
312 (legacy_store_return_value): Remove.
313 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
316 * mi/mi-main.c: Remove obsolete comment.
318 * regcache.c, regcache.h (deprecated_register_bytes)
319 (deprecated_read_register_bytes)
320 (deprecated_write_register_bytes): Remove.
322 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
323 Don't forget to move destination pointer.
325 2007-01-01 Mark Kettenis <kettenis@gnu.org>
327 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
329 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
331 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
332 past entry function with recent newlib.
334 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
336 * gdb.texinfo (GDB/MI Variable Objects): Improve the
337 introduction. Specify -var-update more exactly.
339 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
341 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
343 2007-01-10 Jim Blandy <jimb@codesourcery.com>
345 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
346 the Global Maintainers' invitation to be a global maintainer.
348 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
350 * infrun.c (singlestep_pc): New variable.
351 (resume): Set singlestep_pc.
352 (context_switch): Add a debugging message. Flush the frame cache.
353 (handle_inferior_event): Add debugging messages. Handle thread
354 hops when a software single step has completed. Let context_switch
355 handle flushing the frame cache.
357 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
359 * NEWS: Mention target descriptions, "set tdesc filename",
360 "unset tdesc filename", "show tdesc filename", and
362 * arch-utils.c (choose_architecture_for_target): New function.
363 (gdbarch_info_fill): Call it.
364 * target-descriptions.c (struct property): Make members non-const.
365 (struct target_desc): Add arch member.
366 (target_description_filename): New variable.
367 (target_find_description): Try via XML first.
368 (tdesc_architecture): New.
369 (free_target_description, make_cleanup_free_target_description): New.
370 (set_tdesc_property): Call xstrdup.
371 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
372 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
373 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
374 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
375 * target-descriptions.h (tdesc_architecture)
376 (make_cleanup_free_target_description, set_tdesc_architecture): New
378 * Makefile.in (SFILES): Add xml-tdesc.c.
379 (COMMON_OBS): Add xml-tdesc.o.
380 (target-descriptions.o): Update.
381 (xml-tdesc.o): New rule.
382 * xml-tdesc.c, xml-tdesc.h: New files.
383 * remote.c (PACKET_qXfer_features): New enum.
384 (remote_protocol_features): Add qXfer:features:read.
385 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
386 (_initialize_remote): Register qXfer:features:read.
387 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
388 * features/gdb-target.dtd: New file.
390 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
392 * copyright.sh: Clarify error.
394 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
396 * symtab.c (matching_bfd_sections): Fix VMA matching for
399 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
401 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
404 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
406 Updated copyright notices for most files.
408 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
410 * copyright.sh (prunes): Add step-line.inp and step-line.c.
412 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
414 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
416 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
418 * configure, config.in: Regenerate.
419 * defs.h (debug_file_directory): Declare.
420 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
421 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
422 relocate it if DEBUGDIR_RELOCATABLE.
423 * symfile.c (debug_file_directory): Make non-static.
424 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
425 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
426 (_initialize_symfile): Don't initialize debug_file_directory here.
428 2007-01-09 Jim Blandy <jimb@codesourcery.com>
430 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
433 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
435 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
436 frame_unwind_register to recurse.
437 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
438 (alpha_heuristic_frame_prev_register): Likewise.
439 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
440 * m32c-tdep.c (m32c_prev_register): Likewise.
441 * frame.c (frame_register_unwind_location): Remove FIXME.
443 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
444 Eli Zaretskii <eliz@gnu.org>
446 * copyright.sh: New file.
448 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
450 * configure.ac: Check for XML_StopParser.
451 * xml-support.c (gdb_xml_body_text): Check for an error.
452 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
453 (gdb_xml_end_element_wrapper): Likewise.
454 * config.in, configure: Regenerated.
456 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
458 * varobj.c (install_new_value): Always update print_value.
459 (value_get_print_value): Immediately return NULL for missing
462 2007-01-08 Jim Blandy <jimb@codesourcery.com>
464 * configure.ac: Tighten pattern for extracting value of
465 DEPRECATED_TM_FILE from the target makefile fragment.
466 * configure: Regenerated.
468 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
470 * linux-nat.c (struct simple_pid_list): Add status.
471 (add_to_pid_list): Record the PID's status.
472 (linux_record_stopped_pid): Likewise. Make static.
473 (pull_pid_from_list): Return the saved status.
474 (linux_nat_handle_extended): Deleted.
475 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
476 Make static. Handle non-SIGSTOP for a new thread's first signal.
477 (flush_callback): Handle unexpected pending signals.
478 (linux_nat_wait): Update calls to changed functions.
479 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
480 Remove prototypes for newly static functions.
482 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
484 * gdbarch.sh (value_from_register): New gdbarch function.
485 * gdbarch.c, gdbarch.h: Regenerate.
486 * findvar.c (default_value_from_register): New function.
487 (value_from_register): Use gdbarch_value_from_register.
488 * value.h (default_value_from_register): Declare.
489 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
490 spu_value_to_register): Remove.
491 (spu_value_from_register): New function.
492 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
493 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
494 Call set_gdbarch_value_from_register.
495 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
496 s390_value_to_register): Remove.
497 (s390_value_from_register): New function.
498 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
499 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
500 Call set_gdbarch_value_from_register.
502 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
504 * NEWS: Add "set sysroot" and "show sysroot".
505 * solib.c (solib_absolute_prefix): Delete. Replace
506 all uses with gdb_sysroot.
507 (_initialize_solib): Add "set sysroot" and "show sysroot".
508 Make "solib-absolute-prefix" an alias to it.
510 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
512 * frame.c (get_frame_register_bytes): New function.
513 (put_frame_register_bytes): Likewise.
514 * frame.h (get_frame_register_bytes): Declare.
515 (put_frame_register_bytes): Likewise.
516 * findvar.c (value_from_register): Always construct lval_register
517 values. Use get_frame_register_bytes.
518 * valops.c (value_assign): Use get_frame_register_bytes and
519 put_frame_register_bytes.
521 2007-01-08 Jim Blandy <jimb@codesourcery.com>
523 * MAINTAINERS: Update Stan Shebs' email address.
525 2007-01-07 Joel Brobecker <brobecker@adacore.com>
527 * ada-lang.c (is_known_support_routine): Improve the implementation.
529 2007-01-06 Joel Brobecker <brobecker@adacore.com>
531 * ada-lang.c: Add include of source.h.
532 (is_known_support_routine): Improve the check verifying that the file
533 associated to this frame exists.
534 * Makefile.in (ada-lang.o): Add dependency on source.h.
536 2007-01-07 Jim Blandy <jimb@codesourcery.com>
538 * ax-general.c (ax_const_l): Select proper opcode for the given
541 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
543 * varobj.c (c_value_of_root): Don't select frame if variable
544 object is out of scope.
546 2007-01-06 Nick Roberts <nickrob@snap.net.nz>
548 * varobj.c (struct varobj): New member print_value.
549 (install_new_value): Compare last printed value with current one
551 (new_variable): Initialize var->print_value to NULL.
552 (free_variable): Free var->print_value.
553 (value_get_print_value): New function derived from
555 (c_value_of_variable): Use value_get_print_value.
557 2007-01-05 Joel Brobecker <brobecker@adacore.com>
559 * i386-tdep.c (i386_analyze_stack_align): Add comment.
561 2007-01-05 Joel Brobecker <brobecker@adacore.com>
563 * NEWS: Add entries for new catch commands.
565 2006-02-05 Joel Brobecker <brobecker@adacore.com>
567 * dwarf2read.c (partial_die_info): Add field has_byte_size.
568 (add_partial_symbol): Correct identification of external references.
569 (process_structure_scope): Likewise.
570 (read_partial_die): Handle DW_AT_byte_size attribute.
572 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
574 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
576 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
578 * varobj.c (get_type_deref): Fix variable objects for references to
581 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
583 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
586 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
588 * memory-map.c (struct_memory_map_parsing_data): Remove most
589 members. Make property_name an array.
590 (free_memory_map_parsing_data, memory_map_start_element)
591 (memory_map_end_element, memory_map_character_data): Delete.
592 (memory_map_start_memory, memory_map_end_memory)
593 (memory_map_start_property, memory_map_end_property): New functions.
594 (property_attributes, memory_children, memory_type_enum)
595 (memory_attributes, memory_map_children, memory_map_elements): New.
596 (parse_memory_map): Rewrite.
597 * xml-support.c (debug_xml): New.
598 (xml_get_required_attribute, xml_get_integer_attribute)
599 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
601 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
602 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
603 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
604 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
605 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
606 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
607 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
609 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
610 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
611 (enum gdb_xml_element_flag, struct gdb_xml_element)
612 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
613 (struct gdb_xml_enum): New.
614 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
615 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
616 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
617 (xml_get_required_attribute, xml_get_integer_attribute)
618 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
619 * Makefile.in (xml_support_h, xml-support.o): Update.
621 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
623 * Makefile.in (eval.o): Update dependencies.
624 * eval.c: Include "ui-out.h" and "exceptions.h".
625 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
626 Use value_zero if an error occurs when avoiding side effects.
627 * varobj.c (c_value_of_root): Initialize new_val.
629 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
631 * varobj.c (varobj_list_children): Stop if the number of children is
633 (c_number_of_children):
635 2007-01-04 Mark Kettenis <kettenis@gnu.org>
637 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
638 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
639 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
640 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
641 sizeof, instead of hardcoded constants.
643 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
645 * CONTRIBUTE: Use sourceware.org.
647 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
649 * buildsym.c (start_subfile): Handle producer.
650 (record_producer): New function.
651 * buildsym.h (struct subfile): Include producer.
652 (record_producer): New prototype.
653 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
654 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
655 armcc_cfa_offsets_reversed.
656 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
657 (dwarf2_frame_find_quirks): New function.
658 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
659 (decode_frame_entry_1): Record the CIE version. Record the
660 augmentation. Skip armcc augmentations.
661 * dwarf2read.c (read_file_scope): Save the producer.
662 * symtab.h (struct symtab): Rename unused version member to
665 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
667 * configure.ac (build_warnings): Use -Wall and
668 -Wdeclaration-after-statement.
669 * configure: Regenerated.
671 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
673 Simplify access to variours properties of child
674 variable objects in C.
675 * varobj.c (value_struct_element_index): New function.
676 (c_describe_child): New function.
677 (c_name_of_child, c_value_of_child)
678 (c_type_of_child): Rewrite to use c_describe_child.
680 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
683 * varobj.c: Include "vec.h".
684 (varobj_p): New typedef, declare vector of those.
685 (struct varobj): Use vector for the 'children' member.
686 (child_exists): Remove.
687 (save_child_in_parent): Remove.
688 (remove_child_from_parent): Remove.
689 (struct varobj_child): Remove.
690 (struct vstack): Remove.
691 (vpush, vpop): Remove.
692 (varobj_list_children): Adjust to work work vector.
693 (varobj_update): Likewise. Use vectors for
694 working stack and result.
695 (delete_variable_1): Likewise.
696 * Makefile.in (varobj.o): Update dependencies.
698 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
700 Port from Apple's version.
702 * varobj.c (type_changeable): Rename to...
703 (varobj_value_is_changeable_p): ...this. Adjust all callers.
704 (is_root_p): New function. Use it everywhere.
706 2007-01-04 Jim Blandy <jimb@codesourcery.com>
708 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
711 2007-01-04 Joel Brobecker <brobecker@adacore.com>
713 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
715 2007-01-04 Joel Brobecker <brobecker@adacore.com>
717 * hpread.c (hpread_type_lookup): Fix compilation failure.
719 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
721 * NEWS: New port to S+core.
722 * MAINTAINERS (Write After Approval, Responsible Maintainers):
725 * Makefile.in: Add dependencies for S+core files.
726 * configure.tgt (score*, score-*-*): Add S+core target.
727 * config/score/embed.mt: New file.
728 * score-tdep.c: New file.
729 * score-tdep.h: New file.
731 2007-01-04 Joel Brobecker <brobecker@adacore.com>
733 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
734 the appropriate type rather than a bogus void type.
736 2007-01-04 Joel Brobecker <brobecker@adacore.com>
738 * ada-lang.h (ada_find_printable_frame): Remove.
739 (ada_exception_catchpoint_p, ada_decode_exception_location)
740 (ada_decode_assert_location): Add declaration.
741 * ada-lang.c: Add include of annotate.h and valprint.h.
742 (exception_catchpoint_kind): New enum.
743 (function_name_from_pc, is_known_support_routine)
744 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
745 (ada_exception_name_addr_1, ada_exception_name_addr)
746 (print_it_exception, print_one_exception, print_mention_exception)
747 (print_it_catch_exception, print_one_catch_exception)
748 (print_mention_catch_exception, catch_exception_breakpoint_ops)
749 (print_it_catch_exception_unhandled)
750 (print_one_catch_exception_unhandled)
751 (print_mention_catch_exception_unhandled, print_it_catch_assert)
752 (print_one_catch_assert, print_mention_catch_assert)
753 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
754 (ada_get_next_arg, catch_ada_exception_command_split)
755 (ada_exception_sym_name, ada_exception_sym_name)
756 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
757 (ada_parse_catchpoint_condition, ada_exception_sal)
758 (ada_decode_exception_location)
759 (ada_decode_assert_location): New function.
760 (catch_exception_unhandled_breakpoint_ops): New global variable.
761 (catch_assert_breakpoint_ops): New global variable.
762 * breakpoint.c: Add include of ada-lang.h.
763 (print_one_breakpoint): Do not print the condition for Ada
764 exception catchpoints.
765 (create_ada_exception_breakpoint): New function.
766 (catch_ada_exception_command, catch_assert_command): New function.
767 (catch_command_1): Add support for the new "catch exception" and
768 "catch assert" commands.
769 (_initialize_breakpoint): Add help description for the new catch
771 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
773 (breakpoint.o): Add dependency on ada-lang.h.
775 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
777 * coffread.c (cs_to_section): If bfd_section is found, always
778 return its section index.
779 (coff_symtab_read): Determine the minimal_symbol_type using the
782 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
783 Daniel Jacobowitz <dan@codesourcery.com>
785 * Makefile.in (top.o): Update.
786 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
787 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
788 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
790 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
792 2007-01-03 Mark Kettenis <kettenis@gnu.org>
794 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
795 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
797 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
799 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
800 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
801 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
802 greater than or equal to zero.
803 * m2-typeprint.c (m2_array): Likewise.
804 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
805 * gdbtypes.c (copy_type_recursive): Correct == typo.
806 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
807 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
809 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
810 (default_macro_scope): Remove unused variable.
811 * prologue-value.h (pv_area_find_reg): Don't name an argument
813 * remote-fileio.c (remote_fio_func_map): Add missing braces.
814 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
816 (cleanup_sigint_signal_handler): Remove casts.
817 * valprint.c (val_print): Use a volatile local for the modified
819 * varobj.c (languages): Remove extra array dimension.
820 (varobj_create): Correct access to languages array.
821 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
823 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
824 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
825 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
826 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
827 (mi_cmd_data_write_memory): Likewise.
828 * signals/signals.c (target_signal_to_string): Cast to int before
830 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
833 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
835 * NEWS: Mention pointer to member improvements.
836 * Makefile.in (gnu-v3-abi.o): Delete special rule.
837 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
838 * ada-valprint.c (ada_print_scalar): Update for new type codes.
839 * c-typeprint.c (c_print_type): Update for new type codes.
840 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
841 (c_type_print_base): Likewise.
842 (c_type_print_args): Rewrite.
843 * c-valprint.c (c_val_print): Update for new type codes. Remove
844 support for references to members. Treat methods like functions.
845 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
846 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
847 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
848 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
849 (struct cp_abi_ops): Add corresponding members.
850 * cp-valprint.c (cp_print_class_method): Delete.
851 (cp_find_class_member): New function.
852 (cp_print_class_member): Use it. Simplify support for bogus
854 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
855 lookup_methodptr_type.
856 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
857 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
858 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
860 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
861 references returned by user defined operators.
862 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
863 (f_type_print_varspec_suffix): Remove support for member pointers.
864 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
866 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
867 (lookup_methodptr_type): New.
868 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
869 (recursive_dump_type): Update for new types.
870 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
871 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
872 (lookup_memberptr_type, lookup_methodptr_type)
873 (smash_to_memberptr_type): New prototypes.
874 (smash_to_method_type): Formatting fix.
875 (lookup_member_type, smash_to_member_type): Delete prototypes.
876 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
877 Do not rely on debug information for the vptr or the method's
878 enclosing type. Handle function descriptors for IA64.
879 (gnuv3_virtual_fn_field): Rewrite using the new functions.
880 (gnuv3_find_method_in, gnuv3_print_method_ptr)
881 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
882 (gnuv3_method_ptr_to_value): New.
883 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
884 * hpread.c (hpread_type_lookup): Update for new types.
885 * infcall.c (value_arg_coerce): Likewise.
886 * m2-typeprint.c (m2_print_type): Remove explicit support
888 * m2-valprint.c (m2_val_print): Likewise.
889 * p-typeprint.c (pascal_type_print_varspec_prefix)
890 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
891 * p-valprint.c (pascal_val_print): Likewise.
892 (pascal_object_print_class_method, pascal_object_print_class_member):
894 * p-lang.h (pascal_object_print_class_method)
895 (pascal_object_print_class_member): Delete prototypes.
896 * stabsread.c (read_type): Update for new types.
897 * typeprint.c (print_type_scalar): Likewise.
898 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
899 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
900 argument. Construct a pointer to member if the address of a
901 function or data member is requested.
902 (value_cast_pointers): Don't modify the input value.
903 (value_cast): Adjust pointer to member handling for new types.
904 Allow null pointer to member constants. Don't modify the input
906 (value_ind): Remove pointer to member check. Handle function
907 descriptors for function pointers.
908 (value_struct_elt, value_find_oload_method_list, check_field):
909 Remove pointer to member checks.
910 * value.c (unpack_long): Allow pointers to data members.
911 (value_from_longest): Allow member pointers.
912 * value.h (value_aggregate_elt): Add want_address.
913 * varobj.c (c_variable_editable): Remove check for members.
914 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
915 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
917 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
918 * c-lang.h (cp_print_class_method): Delete prototype.
919 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
920 * mips-tdep.c (mips_gdbarch_init): Likewise.
921 * gdbarch.c, gdbarch.h: Regenerated.
923 2007-01-01 Mark Kettenis <kettenis@gnu.org>
925 * rs6000-tdep.c (rs6000_use_struct_convention)
926 (rs6000_extract_return_value, rs6000_store_return_value)
927 (rs6000_extract_struct_value_address): Remove.
928 (rs6000_return_value): New function.
929 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
930 store_return_value, deprecated_extract_struct_value_address and
931 deprecated_use_struct_convention. Use rs6000_return_value
934 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
936 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
937 -display-disable, -display-enable, -display-insert and
940 2006-01-01 Joel Brobecker <brobecker@adacore.com>
942 * breakpoint.c (remove_breakpoint): Remove dead code.
944 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
946 * varobj.c: Include block.h.
947 (c_value_of_root): Check scope within nested statements.
949 2007-01-01 Mark Kettenis <kettenis@gnu.org>
951 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
952 regcache_cooked_write_signed instead of
953 deprecated_write_register_bytes.
955 2007-01-01 Joel Brobecker <brobecker@adacore.com>
957 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
959 2007-01-01 Joel Brobecker <brobecker@adacore.com>
961 Followed the Start of New Year Procedure:
962 * ChangeLog-2006: New file, containing all the entries for 2006.
963 * ChangeLog: Removed all 2006 entries, and changed the reference
964 to the previous ChangeLog to point to ChangeLog 2006.
965 * top.c (print_gdb_version): Update copyright year.
967 2007-01-01 Mark Kettenis <kettenis@gnu.org>
969 * Makefile.in (remote-sds.o): Remove.
970 * remote-sds.c: Delete.
972 For older changes see ChangeLog-2006.
978 version-control: never