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