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