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