2007-01-21 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-01-21 Markus Deuling <deuling@de.ibm.com>
2
3 * breakpoint.c (delete_command): Skip redundant loop iterations.
4
5 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6
7 * gdbarch.sh (register_type): Update comment.
8 * gdbarch.h: Regenerated.
9 * arch-utils.c (generic_register_size): Call register_type.
10 * ia64-tdep.c (ia64_extract_return_value): Likewise.
11 * m32c-tdep.c (check_for_saved): Likewise.
12 * mips-tdep.c (mips_print_register, print_gp_register_row)
13 (mips_print_registers_info): Likewise.
14 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
15 Likewise.
16 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
17 (sh64_do_register, sh64_print_register)
18 (sh64_media_print_registers_info): Likewise.
19 * tui/tui-regs.c (tui_register_format): Likewise.
20
21 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
22
23 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
24
25 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
26 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
27 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
28 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
29 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
30 (make_symbol_completion_list): Likewise.
31
32 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
33 Daniel Jacobowitz <dan@codesourcery.com>
34
35 * buildsym.c (end_symtab): Use preallocated symtab if available.
36 Fill in SYMBOL_SYMTAB.
37 * buildsym.h (struct subfile): Add symtab member.
38 * dwarf2read.c (struct dwarf2_cu): Add line_header.
39 (struct file_entry): Add symtab.
40 (free_cu_line_header): New function.
41 (read_file_scope): Use it. Save line_header in the cu. Process
42 lines before DIEs.
43 (add_file_name): Initialize new symtab member.
44 (dwarf_decode_lines): Create symtabs for included files.
45 (new_symbol): Set SYMBOL_SYMTAB.
46 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
47 (search_symbols): Likewise.
48 * symtab.h (struct symbol): Add symtab member.
49 (SYMBOL_SYMTAB): Define.
50
51 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
54
55 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
56
57 * arch-utils.c (show_endian): Correct reversed condition.
58
59 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
60
61 * MAINTAINERS (Write After Approval): Add myself.
62
63 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
64 Vladimir Prus <vladimir@codesourcery.com>
65
66 Fix 'selected frame' varobjs.
67 * varobj.c (struct varobj): Remove the error field.
68 (varobj_set_value): Don't check var->error.
69 (install_new_value): Don't set var->error.
70 (varobj_update): Always pass the new value
71 of the root via install_new_value.
72 (create_child): Don't set error field.
73 (new_variable): Likewise.
74 (c_value_of_root): Always reevaluate the value
75 of selected frame varobjs in the selected frame.
76 Don't call reinit_frame_cache.
77
78 2007-01-15 Joel Brobecker <brobecker@adacore.com>
79
80 * source.c (_initialize_source): Improve the help text of
81 the substitute-path commands.
82
83 2007-01-14 Mark Kettenis <kettenis@gnu.org>
84
85 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
86 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
87 (frv_skip_prologue): Remove prototypes.
88 (frv_adjust_breakpoint_address): Renamed from
89 frv_gdbarch_adjust_breakpoint_address.
90 (frv_gdbarch_init): Adjust.
91
92 2007-01-13 Mark Kettenis <kettenis@gnu.org>
93
94 * gdbarch.sh (deprecated_extract_return_value)
95 (deprecated_store_return_value): Remove.
96 (extract_return_value, store_return_value): Remove default values.
97 * gdbarch.c, gdbarch.h: Regenerate.
98 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
99 (legacy_store_return_value): Remove.
100 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
101 Remove.
102
103 * mi/mi-main.c: Remove obsolete comment.
104
105 * regcache.c, regcache.h (deprecated_register_bytes)
106 (deprecated_read_register_bytes)
107 (deprecated_write_register_bytes): Remove.
108
109 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
110 Don't forget to move destination pointer.
111
112 2007-01-01 Mark Kettenis <kettenis@gnu.org>
113
114 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
115
116 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
117
118 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
119 past entry function with recent newlib.
120
121 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
122
123 * gdb.texinfo (GDB/MI Variable Objects): Improve the
124 introduction. Specify -var-update more exactly.
125
126 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
127
128 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
129
130 2007-01-10 Jim Blandy <jimb@codesourcery.com>
131
132 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
133 the Global Maintainers' invitation to be a global maintainer.
134
135 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
136
137 * infrun.c (singlestep_pc): New variable.
138 (resume): Set singlestep_pc.
139 (context_switch): Add a debugging message. Flush the frame cache.
140 (handle_inferior_event): Add debugging messages. Handle thread
141 hops when a software single step has completed. Let context_switch
142 handle flushing the frame cache.
143
144 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * NEWS: Mention target descriptions, "set tdesc filename",
147 "unset tdesc filename", "show tdesc filename", and
148 qXfer:features:read.
149 * arch-utils.c (choose_architecture_for_target): New function.
150 (gdbarch_info_fill): Call it.
151 * target-descriptions.c (struct property): Make members non-const.
152 (struct target_desc): Add arch member.
153 (target_description_filename): New variable.
154 (target_find_description): Try via XML first.
155 (tdesc_architecture): New.
156 (free_target_description, make_cleanup_free_target_description): New.
157 (set_tdesc_property): Call xstrdup.
158 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
159 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
160 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
161 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
162 * target-descriptions.h (tdesc_architecture)
163 (make_cleanup_free_target_description, set_tdesc_architecture): New
164 prototypes.
165 * Makefile.in (SFILES): Add xml-tdesc.c.
166 (COMMON_OBS): Add xml-tdesc.o.
167 (target-descriptions.o): Update.
168 (xml-tdesc.o): New rule.
169 * xml-tdesc.c, xml-tdesc.h: New files.
170 * remote.c (PACKET_qXfer_features): New enum.
171 (remote_protocol_features): Add qXfer:features:read.
172 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
173 (_initialize_remote): Register qXfer:features:read.
174 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
175 * features/gdb-target.dtd: New file.
176
177 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
178
179 * copyright.sh: Clarify error.
180
181 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
182
183 * symtab.c (matching_bfd_sections): Fix VMA matching for
184 prelinked objects.
185
186 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
187
188 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
189 nested symbols.
190
191 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
192
193 Updated copyright notices for most files.
194
195 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
196
197 * copyright.sh (prunes): Add step-line.inp and step-line.c.
198
199 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
200
201 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
202 exec_prefix.
203 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
204 '${prefix}'.
205 * configure, config.in: Regenerate.
206 * defs.h (debug_file_directory): Declare.
207 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
208 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
209 relocate it if DEBUGDIR_RELOCATABLE.
210 * symfile.c (debug_file_directory): Make non-static.
211 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
212 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
213 (_initialize_symfile): Don't initialize debug_file_directory here.
214
215 2007-01-09 Jim Blandy <jimb@codesourcery.com>
216
217 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
218 statements.
219
220 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
221
222 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
223 frame_unwind_register to recurse.
224 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
225 (alpha_heuristic_frame_prev_register): Likewise.
226 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
227 * m32c-tdep.c (m32c_prev_register): Likewise.
228 * frame.c (frame_register_unwind_location): Remove FIXME.
229
230 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
231 Eli Zaretskii <eliz@gnu.org>
232
233 * copyright.sh: New file.
234
235 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
236
237 * configure.ac: Check for XML_StopParser.
238 * xml-support.c (gdb_xml_body_text): Check for an error.
239 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
240 (gdb_xml_end_element_wrapper): Likewise.
241 * config.in, configure: Regenerated.
242
243 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
244
245 * varobj.c (install_new_value): Always update print_value.
246 (value_get_print_value): Immediately return NULL for missing
247 values.
248
249 2007-01-08 Jim Blandy <jimb@codesourcery.com>
250
251 * configure.ac: Tighten pattern for extracting value of
252 DEPRECATED_TM_FILE from the target makefile fragment.
253 * configure: Regenerated.
254
255 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * linux-nat.c (struct simple_pid_list): Add status.
258 (add_to_pid_list): Record the PID's status.
259 (linux_record_stopped_pid): Likewise. Make static.
260 (pull_pid_from_list): Return the saved status.
261 (linux_nat_handle_extended): Deleted.
262 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
263 Make static. Handle non-SIGSTOP for a new thread's first signal.
264 (flush_callback): Handle unexpected pending signals.
265 (linux_nat_wait): Update calls to changed functions.
266 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
267 Remove prototypes for newly static functions.
268
269 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
270
271 * gdbarch.sh (value_from_register): New gdbarch function.
272 * gdbarch.c, gdbarch.h: Regenerate.
273 * findvar.c (default_value_from_register): New function.
274 (value_from_register): Use gdbarch_value_from_register.
275 * value.h (default_value_from_register): Declare.
276 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
277 spu_value_to_register): Remove.
278 (spu_value_from_register): New function.
279 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
280 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
281 Call set_gdbarch_value_from_register.
282 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
283 s390_value_to_register): Remove.
284 (s390_value_from_register): New function.
285 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
286 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
287 Call set_gdbarch_value_from_register.
288
289 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
290
291 * NEWS: Add "set sysroot" and "show sysroot".
292 * solib.c (solib_absolute_prefix): Delete. Replace
293 all uses with gdb_sysroot.
294 (_initialize_solib): Add "set sysroot" and "show sysroot".
295 Make "solib-absolute-prefix" an alias to it.
296
297 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
298
299 * frame.c (get_frame_register_bytes): New function.
300 (put_frame_register_bytes): Likewise.
301 * frame.h (get_frame_register_bytes): Declare.
302 (put_frame_register_bytes): Likewise.
303 * findvar.c (value_from_register): Always construct lval_register
304 values. Use get_frame_register_bytes.
305 * valops.c (value_assign): Use get_frame_register_bytes and
306 put_frame_register_bytes.
307
308 2007-01-08 Jim Blandy <jimb@codesourcery.com>
309
310 * MAINTAINERS: Update Stan Shebs' email address.
311
312 2007-01-07 Joel Brobecker <brobecker@adacore.com>
313
314 * ada-lang.c (is_known_support_routine): Improve the implementation.
315
316 2007-01-06 Joel Brobecker <brobecker@adacore.com>
317
318 * ada-lang.c: Add include of source.h.
319 (is_known_support_routine): Improve the check verifying that the file
320 associated to this frame exists.
321 * Makefile.in (ada-lang.o): Add dependency on source.h.
322
323 2007-01-07 Jim Blandy <jimb@codesourcery.com>
324
325 * ax-general.c (ax_const_l): Select proper opcode for the given
326 value.
327
328 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
329
330 * varobj.c (c_value_of_root): Don't select frame if variable
331 object is out of scope.
332
333 2007-01-06 Nick Roberts <nickrob@snap.net.nz>
334
335 * varobj.c (struct varobj): New member print_value.
336 (install_new_value): Compare last printed value with current one
337 instead of contents.
338 (new_variable): Initialize var->print_value to NULL.
339 (free_variable): Free var->print_value.
340 (value_get_print_value): New function derived from
341 c_value_of_variable.
342 (c_value_of_variable): Use value_get_print_value.
343
344 2007-01-05 Joel Brobecker <brobecker@adacore.com>
345
346 * i386-tdep.c (i386_analyze_stack_align): Add comment.
347
348 2007-01-05 Joel Brobecker <brobecker@adacore.com>
349
350 * NEWS: Add entries for new catch commands.
351
352 2006-02-05 Joel Brobecker <brobecker@adacore.com>
353
354 * dwarf2read.c (partial_die_info): Add field has_byte_size.
355 (add_partial_symbol): Correct identification of external references.
356 (process_structure_scope): Likewise.
357 (read_partial_die): Handle DW_AT_byte_size attribute.
358
359 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
360
361 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
362
363 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
364
365 * varobj.c (get_type_deref): Fix variable objects for references to
366 pointers.
367
368 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
369
370 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
371 with no symbols.
372
373 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
374
375 * memory-map.c (struct_memory_map_parsing_data): Remove most
376 members. Make property_name an array.
377 (free_memory_map_parsing_data, memory_map_start_element)
378 (memory_map_end_element, memory_map_character_data): Delete.
379 (memory_map_start_memory, memory_map_end_memory)
380 (memory_map_start_property, memory_map_end_property): New functions.
381 (property_attributes, memory_children, memory_type_enum)
382 (memory_attributes, memory_map_children, memory_map_elements): New.
383 (parse_memory_map): Rewrite.
384 * xml-support.c (debug_xml): New.
385 (xml_get_required_attribute, xml_get_integer_attribute)
386 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
387 Delete.
388 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
389 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
390 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
391 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
392 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
393 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
394 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
395 New.
396 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
397 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
398 (enum gdb_xml_element_flag, struct gdb_xml_element)
399 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
400 (struct gdb_xml_enum): New.
401 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
402 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
403 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
404 (xml_get_required_attribute, xml_get_integer_attribute)
405 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
406 * Makefile.in (xml_support_h, xml-support.o): Update.
407
408 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
409
410 * Makefile.in (eval.o): Update dependencies.
411 * eval.c: Include "ui-out.h" and "exceptions.h".
412 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
413 Use value_zero if an error occurs when avoiding side effects.
414 * varobj.c (c_value_of_root): Initialize new_val.
415
416 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
417
418 * varobj.c (varobj_list_children): Stop if the number of children is
419 unknown.
420 (c_number_of_children):
421
422 2007-01-04 Mark Kettenis <kettenis@gnu.org>
423
424 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
425 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
426 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
427 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
428 sizeof, instead of hardcoded constants.
429
430 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
431
432 * CONTRIBUTE: Use sourceware.org.
433
434 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
435
436 * buildsym.c (start_subfile): Handle producer.
437 (record_producer): New function.
438 * buildsym.h (struct subfile): Include producer.
439 (record_producer): New prototype.
440 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
441 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
442 armcc_cfa_offsets_reversed.
443 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
444 (dwarf2_frame_find_quirks): New function.
445 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
446 (decode_frame_entry_1): Record the CIE version. Record the
447 augmentation. Skip armcc augmentations.
448 * dwarf2read.c (read_file_scope): Save the producer.
449 * symtab.h (struct symtab): Rename unused version member to
450 producer.
451
452 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
453
454 * configure.ac (build_warnings): Use -Wall and
455 -Wdeclaration-after-statement.
456 * configure: Regenerated.
457
458 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
459
460 Simplify access to variours properties of child
461 variable objects in C.
462 * varobj.c (value_struct_element_index): New function.
463 (c_describe_child): New function.
464 (c_name_of_child, c_value_of_child)
465 (c_type_of_child): Rewrite to use c_describe_child.
466
467 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
468
469 gdb/
470 * varobj.c: Include "vec.h".
471 (varobj_p): New typedef, declare vector of those.
472 (struct varobj): Use vector for the 'children' member.
473 (child_exists): Remove.
474 (save_child_in_parent): Remove.
475 (remove_child_from_parent): Remove.
476 (struct varobj_child): Remove.
477 (struct vstack): Remove.
478 (vpush, vpop): Remove.
479 (varobj_list_children): Adjust to work work vector.
480 (varobj_update): Likewise. Use vectors for
481 working stack and result.
482 (delete_variable_1): Likewise.
483 * Makefile.in (varobj.o): Update dependencies.
484
485 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
486
487 Port from Apple's version.
488 gdb/
489 * varobj.c (type_changeable): Rename to...
490 (varobj_value_is_changeable_p): ...this. Adjust all callers.
491 (is_root_p): New function. Use it everywhere.
492
493 2007-01-04 Jim Blandy <jimb@codesourcery.com>
494
495 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
496 then plain 'fixup'.
497
498 2007-01-04 Joel Brobecker <brobecker@adacore.com>
499
500 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
501
502 2007-01-04 Joel Brobecker <brobecker@adacore.com>
503
504 * hpread.c (hpread_type_lookup): Fix compilation failure.
505
506 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
507
508 * NEWS: New port to S+core.
509 * MAINTAINERS (Write After Approval, Responsible Maintainers):
510 Add myself.
511
512 * Makefile.in: Add dependencies for S+core files.
513 * configure.tgt (score*, score-*-*): Add S+core target.
514 * config/score/embed.mt: New file.
515 * score-tdep.c: New file.
516 * score-tdep.h: New file.
517
518 2007-01-04 Joel Brobecker <brobecker@adacore.com>
519
520 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
521 the appropriate type rather than a bogus void type.
522
523 2007-01-04 Joel Brobecker <brobecker@adacore.com>
524
525 * ada-lang.h (ada_find_printable_frame): Remove.
526 (ada_exception_catchpoint_p, ada_decode_exception_location)
527 (ada_decode_assert_location): Add declaration.
528 * ada-lang.c: Add include of annotate.h and valprint.h.
529 (exception_catchpoint_kind): New enum.
530 (function_name_from_pc, is_known_support_routine)
531 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
532 (ada_exception_name_addr_1, ada_exception_name_addr)
533 (print_it_exception, print_one_exception, print_mention_exception)
534 (print_it_catch_exception, print_one_catch_exception)
535 (print_mention_catch_exception, catch_exception_breakpoint_ops)
536 (print_it_catch_exception_unhandled)
537 (print_one_catch_exception_unhandled)
538 (print_mention_catch_exception_unhandled, print_it_catch_assert)
539 (print_one_catch_assert, print_mention_catch_assert)
540 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
541 (ada_get_next_arg, catch_ada_exception_command_split)
542 (ada_exception_sym_name, ada_exception_sym_name)
543 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
544 (ada_parse_catchpoint_condition, ada_exception_sal)
545 (ada_decode_exception_location)
546 (ada_decode_assert_location): New function.
547 (catch_exception_unhandled_breakpoint_ops): New global variable.
548 (catch_assert_breakpoint_ops): New global variable.
549 * breakpoint.c: Add include of ada-lang.h.
550 (print_one_breakpoint): Do not print the condition for Ada
551 exception catchpoints.
552 (create_ada_exception_breakpoint): New function.
553 (catch_ada_exception_command, catch_assert_command): New function.
554 (catch_command_1): Add support for the new "catch exception" and
555 "catch assert" commands.
556 (_initialize_breakpoint): Add help description for the new catch
557 commands.
558 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
559 valprint.h.
560 (breakpoint.o): Add dependency on ada-lang.h.
561
562 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
563
564 * coffread.c (cs_to_section): If bfd_section is found, always
565 return its section index.
566 (coff_symtab_read): Determine the minimal_symbol_type using the
567 bfd_section flags.
568
569 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
570 Daniel Jacobowitz <dan@codesourcery.com>
571
572 * Makefile.in (top.o): Update.
573 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
574 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
575 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
576 New.
577 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
578
579 2007-01-03 Mark Kettenis <kettenis@gnu.org>
580
581 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
582 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
583
584 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
585
586 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
587 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
588 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
589 greater than or equal to zero.
590 * m2-typeprint.c (m2_array): Likewise.
591 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
592 * gdbtypes.c (copy_type_recursive): Correct == typo.
593 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
594 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
595 greater than zero.
596 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
597 (default_macro_scope): Remove unused variable.
598 * prologue-value.h (pv_area_find_reg): Don't name an argument
599 "register".
600 * remote-fileio.c (remote_fio_func_map): Add missing braces.
601 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
602 type.
603 (cleanup_sigint_signal_handler): Remove casts.
604 * valprint.c (val_print): Use a volatile local for the modified
605 argument.
606 * varobj.c (languages): Remove extra array dimension.
607 (varobj_create): Correct access to languages array.
608 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
609 missing braces.
610 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
611 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
612 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
613 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
614 (mi_cmd_data_write_memory): Likewise.
615 * signals/signals.c (target_signal_to_string): Cast to int before
616 comparing.
617 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
618 Update all callers.
619
620 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
621
622 * NEWS: Mention pointer to member improvements.
623 * Makefile.in (gnu-v3-abi.o): Delete special rule.
624 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
625 * ada-valprint.c (ada_print_scalar): Update for new type codes.
626 * c-typeprint.c (c_print_type): Update for new type codes.
627 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
628 (c_type_print_base): Likewise.
629 (c_type_print_args): Rewrite.
630 * c-valprint.c (c_val_print): Update for new type codes. Remove
631 support for references to members. Treat methods like functions.
632 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
633 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
634 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
635 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
636 (struct cp_abi_ops): Add corresponding members.
637 * cp-valprint.c (cp_print_class_method): Delete.
638 (cp_find_class_member): New function.
639 (cp_print_class_member): Use it. Simplify support for bogus
640 member pointers.
641 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
642 lookup_methodptr_type.
643 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
644 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
645 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
646 pointer support.
647 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
648 references returned by user defined operators.
649 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
650 (f_type_print_varspec_suffix): Remove support for member pointers.
651 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
652 and adjusted.
653 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
654 (lookup_methodptr_type): New.
655 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
656 (recursive_dump_type): Update for new types.
657 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
658 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
659 (lookup_memberptr_type, lookup_methodptr_type)
660 (smash_to_memberptr_type): New prototypes.
661 (smash_to_method_type): Formatting fix.
662 (lookup_member_type, smash_to_member_type): Delete prototypes.
663 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
664 Do not rely on debug information for the vptr or the method's
665 enclosing type. Handle function descriptors for IA64.
666 (gnuv3_virtual_fn_field): Rewrite using the new functions.
667 (gnuv3_find_method_in, gnuv3_print_method_ptr)
668 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
669 (gnuv3_method_ptr_to_value): New.
670 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
671 * hpread.c (hpread_type_lookup): Update for new types.
672 * infcall.c (value_arg_coerce): Likewise.
673 * m2-typeprint.c (m2_print_type): Remove explicit support
674 for member pointers.
675 * m2-valprint.c (m2_val_print): Likewise.
676 * p-typeprint.c (pascal_type_print_varspec_prefix)
677 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
678 * p-valprint.c (pascal_val_print): Likewise.
679 (pascal_object_print_class_method, pascal_object_print_class_member):
680 Delete.
681 * p-lang.h (pascal_object_print_class_method)
682 (pascal_object_print_class_member): Delete prototypes.
683 * stabsread.c (read_type): Update for new types.
684 * typeprint.c (print_type_scalar): Likewise.
685 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
686 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
687 argument. Construct a pointer to member if the address of a
688 function or data member is requested.
689 (value_cast_pointers): Don't modify the input value.
690 (value_cast): Adjust pointer to member handling for new types.
691 Allow null pointer to member constants. Don't modify the input
692 value.
693 (value_ind): Remove pointer to member check. Handle function
694 descriptors for function pointers.
695 (value_struct_elt, value_find_oload_method_list, check_field):
696 Remove pointer to member checks.
697 * value.c (unpack_long): Allow pointers to data members.
698 (value_from_longest): Allow member pointers.
699 * value.h (value_aggregate_elt): Add want_address.
700 * varobj.c (c_variable_editable): Remove check for members.
701 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
702 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
703 in virtual tables.
704 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
705 * c-lang.h (cp_print_class_method): Delete prototype.
706 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
707 * mips-tdep.c (mips_gdbarch_init): Likewise.
708 * gdbarch.c, gdbarch.h: Regenerated.
709
710 2007-01-01 Mark Kettenis <kettenis@gnu.org>
711
712 * rs6000-tdep.c (rs6000_use_struct_convention)
713 (rs6000_extract_return_value, rs6000_store_return_value)
714 (rs6000_extract_struct_value_address): Remove.
715 (rs6000_return_value): New function.
716 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
717 store_return_value, deprecated_extract_struct_value_address and
718 deprecated_use_struct_convention. Use rs6000_return_value
719 instead.
720
721 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
722
723 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
724 -display-disable, -display-enable, -display-insert and
725 -display-list.
726
727 2006-01-01 Joel Brobecker <brobecker@adacore.com>
728
729 * breakpoint.c (remove_breakpoint): Remove dead code.
730
731 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
732
733 * varobj.c: Include block.h.
734 (c_value_of_root): Check scope within nested statements.
735
736 2007-01-01 Mark Kettenis <kettenis@gnu.org>
737
738 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
739 regcache_cooked_write_signed instead of
740 deprecated_write_register_bytes.
741
742 2007-01-01 Joel Brobecker <brobecker@adacore.com>
743
744 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
745
746 2007-01-01 Joel Brobecker <brobecker@adacore.com>
747
748 Followed the Start of New Year Procedure:
749 * ChangeLog-2006: New file, containing all the entries for 2006.
750 * ChangeLog: Removed all 2006 entries, and changed the reference
751 to the previous ChangeLog to point to ChangeLog 2006.
752 * top.c (print_gdb_version): Update copyright year.
753
754 2007-01-01 Mark Kettenis <kettenis@gnu.org>
755
756 * Makefile.in (remote-sds.o): Remove.
757 * remote-sds.c: Delete.
758
759 For older changes see ChangeLog-2006.
760 \f
761 Local Variables:
762 mode: change-log
763 left-margin: 8
764 fill-column: 74
765 version-control: never
766 End:
This page took 0.051149 seconds and 5 git commands to generate.