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