* frame.c (deprecated_selected_frame): Rename to...
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
2
3         * frame.c (deprecated_selected_frame): Rename to...
4         (selected_frame): ...this.  Make static.
5         (get_selected_frame, select_frame): Update.
6         * frame.h (deprected_select_frame): Delete.
7         (deprecated_safe_get_selected_frame): Update comments.
8
9         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
10         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
11         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
12         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
13         tui/tui.c: Replace references to deprecated_selected_frame.
14
15 2007-02-27  Fred Fish  <fnf@specifix.com>
16
17         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
18         directly decrement the stack pointer, accumulate their operand into 
19         the stack offset, and mark the function as not being frameless.
20
21 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
22
23         * arch-utils.c (selected_byte_order): New.
24         * arch-utils.h (selected_byte_order): New prototype.
25         * remote-sim.c (gdbsim_open): Use selected_byte_order.
26
27 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
28
29         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
30         (default_symfile_offsets): Check VMA here.  Update section VMAs.
31
32 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
33
34         * remote.c (init_remote_state): Add special handling for placeholder
35         registers.
36
37 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
38
39         * Makefile.in (XMLFILES): Include $(TDEP_XML).
40         (filenames_h): New variable.
41         (clean): Clean up xml-builtin.c and stamp-xml.
42         (arm-linux-nat.o): Update.
43         * config/arm/linux.mh (TDEP_XML): Define.
44         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
45         (arm_linux_has_wmmx_registers): New.
46         (GET_THREAD_ID): Fix typo.
47         (IWMMXT_REGS_SIZE): Define.
48         (fetch_wmmx_regs, store_wmmx_regs): New.
49         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
50         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
51         (super_xfer_partial, arm_linux_xfer_partial): New.
52         (_initialize_arm_linux_nat): Use them.
53         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
54         (xml_builtin_xfer_partial): New function.
55         * xml-support.h (xml_builtin_xfer_partial): New prototype.
56         * NEWS: Update mention of iWMMXt support.
57
58 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
59
60         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
61         if there are no FPA registers.
62         (arm_dwarf_reg_to_regnum): New function.
63         (arm_register_type, arm_register_name): Return minimal values for
64         unsupported registers.
65         (arm_register_sim_regno): Handle iWMMXt registers.
66         (arm_gdbarch_init): Record missing FPA registers if indicated by
67         a target description.  Recognize iWMMXt registers.  Only register
68         "info float" for FPA.  Use ARM_NUM_REGS.  Register
69         arm_dwarf_reg_to_regnum.
70         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
71         constants.
72         (struct gdbarch_tdep): Add have_fpa_registers.
73         * features/xscale-iwmmxt.xml: Update capitalization.
74         * regformats/arm-with-iwmmxt.dat: Regenerated.
75
76 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
77
78         * NEWS (New targets): Add entry for the Toshiba Media Processor.
79
80 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
81
82         * MAINTAINERS (mep): New target.
83
84 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
85
86         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
87         Richard Sandiford:
88         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
89         (mep-tdep.o): New rule.
90         * configure.tgt (mep-*-*): New target.
91         * mep-tdep.c: New file.
92         * config/mep/mep.mt: New file.
93
94 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
95
96         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
97         BREAKPOINT_HIT and STOP_UNKNOWN.
98
99 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
100
101         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
102
103 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
104
105         * gdb_expat.h (XMLCALL): Define if not already defined.
106
107 2007-02-20  Andreas Schwab  <schwab@suse.de>
108
109         * Makefile.in (symfile.o): Update dependencies.
110
111 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
112
113         * MAINTAINERS: Disable -Werror for cris simulator.  Build
114         sparc64-solaris2.10 instead of the broken sparc-elf.
115         * solib-frv.c: Include "solib.h".
116         * Makefile.in (solib-frv.o): Update.
117         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
118         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
119         (xtensa_frame_this_id, xtensa_frame_prev_register)
120         (xtensa_push_dummy_call): Use %p.
121
122 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
123
124         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
125         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
126         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
127         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
128         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
129         (sparc-linux-tdep.o): Update.
130
131 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
132
133         * xtensa-tdep.h (xtensa_reg_mask_t): New.
134         (xtensa_mask_t): Change mask field to be a separate array.
135         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
136         (xtensa_pseudo_register_write, xtensa_unwind_pc)
137         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
138         (xtensa_breakpoint_from_pc): Remove implicit type casting.
139         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
140         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
141         (mask14, mask15): Rename to
142         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
143         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
144         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
145         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
146         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
147         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
148         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
149         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
150         (xtensa_submask14, xtensa_submask15): New.
151         (rmap): Follow strict aliasing rules doing static initialization.
152
153 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
154
155         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
156         handling from here...
157         (tdesc_register_type): ...to here.
158         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
159         * features/arm-core.xml: Use code_ptr and data_ptr.
160
161 2007-02-13  Denis Pilat  <denis.pilat@st.com>
162
163         * varobj.h (enum varobj_update_error): New enum.
164         * varobj.c (struct varobj_root): Add is_valid member.
165         (varobj_get_type): Check for invalid varobj.
166         (varobj_get_attributes): Likewise.
167         (variable_editable):Likewise.
168         (varobj_update): Likewise.  Use varobj_update_error.
169         (new_root_variable): Set root varobj as valid by default.
170         (varobj_invalidate): New function.
171         * symfile.c (clear_symtab_users): Use varobj_invalidate.
172         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
173         Use varobj_update_error.
174
175 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
176
177         Fix PR pascal/2223.
178         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
179         Pascal language marker.
180         * dwarf2read.c (set_cu_language): Likewise.
181
182 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
183
184         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
185         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
186         instead of target_terminal_init since inferior_ptid isn't set yet.
187
188 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
189
190         * MAINTAINERS (Write After Approval): Add myself.
191
192 2007-02-09  Fred Fish  <fnf@specifix.com>
193
194         Based on work by Apple Computer, Inc.
195         * event-top.c (async_request_quit): Call quit() whenever either
196         quit_flag is set or immediate_quit is set.
197
198 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
199
200         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
201         type to a pointer to const struct block.
202         (ada_lookup_symbol_list): Don't cast away constness when calling
203         remove_out_of_scope_renamings.
204
205 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
206
207         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
208         address of 'filename'; it is always non null.
209
210 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
211
212         * exec.c (add_to_section_table): Do not discard empty sections.
213
214 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
215
216         * features/Makefile, features/arm-with-iwmmxt.xml,
217         features/gdbserver-regs.xsl, features/number-regs.xsl,
218         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
219         * regformats/arm-with-iwmmxt.dat: Generate.
220         * NEWS: Mention iWMMXt.
221
222 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
223
224         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
225         (xml-tdesc.o): Update.
226         * xml-support.c: Add a comment.
227         (gdb_xml_enums_boolean): New variable.
228         (gdb_xml_parse_attr_enum): Use strcasecmp.
229         * xml-support.h (gdb_xml_enums_boolean): Declare.
230         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
231         next_regnum, and current_union.
232         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
233         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
234         (field_attributes, union_children, reg_attributes, union_attributes)
235         (vector_attributes, feature_attributes, feature_children): New.
236         (target_children): Make static.  Add <feature>.
237         (tdesc_elements): Make static.
238         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
239         (struct tdesc_feature, tdesc_feature_p): New types.
240         (struct target_desc): Add features member.
241         (struct tdesc_arch_data, tdesc_data): New.
242         (target_find_description): Clarify error message.  Warn about
243         ignored register descriptions.
244         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
245         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
246         (tdesc_data_cleanup, tdesc_numbered_register)
247         (tdesc_numbered_register_choices, tdesc_find_register)
248         (tdesc_register_name, tdesc_register_type)
249         (tdesc_remote_register_number, tdesc_register_reggroup_p)
250         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
251         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
252         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
253         (tdesc_create_feature, tdesc_record_type): New.
254         (free_target_description): Free features.
255         (_initialize_target_descriptions): Initialize tdesc_data.
256         * arch-utils.c (default_remote_register_number): New.
257         * arch-utils.h (default_remote_register_number): New prototype.
258         * target-descriptions.h (set_tdesc_pseudo_register_name)
259         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
260         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
261         (tdesc_numbered_register, tdesc_numbered_register_choices)
262         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
263         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
264         (tdesc_create_reg): Declare.
265         * gdbarch.sh (remote_register_number): New entry.
266         * gdbarch.c, gdbarch.h: Regenerate.
267         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
268         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
269
270         * arm-tdep.c (arm_register_aliases): New.
271         (arm_register_name_strings): Rename to...
272         (arm_register_names): ...this.  Make const.  Delete the old version.
273         (current_option, arm_register_byte): Delete.
274         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
275         (value_of_arm_user_reg): New.
276         (arm_gdbarch_init): Verify any described registers.  Call
277         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
278         for standard register names.
279         (_initialize_arm_tdep): Do not adjust arm_register_names.
280         * user-regs.c (struct user_reg): Add baton member.
281         (append_user_reg, user_reg_add_builtin, user_regs_init)
282         (user_reg_add, value_of_user_reg): Use a baton for user
283         register functions.
284         * std-regs.c: Update.
285         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
286         (user_reg_add): Add baton argument.
287         * NEWS: Mention target description register support.
288         * features/arm-core.xml, features/arm-fpa.xml: New.
289         * eval.c (evaluate_subexp_standard): Allow ptype $register
290         when the program is not running.
291
292 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
293
294         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
295
296 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
297
298         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
299         info->disassembler_options to "any".
300
301 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
302
303         * varobj.c (install_new_value): Only call value_get_print_value
304         if changeable.
305
306 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
307
308         Reported by timeless@gmail.com:
309         * gdb/target.c (target_flash_erase): Do not return void value.
310         (target_flash_done): Likewise.
311         * gdb/cli/cli-cmds.c (source_command): Likewise.
312
313 2007-02-08  Fred Fish  <fnf@specifix.com>
314
315         Based on work by Apple Computer, Inc.
316         * event-top.c (handle_sigint): Set quit_flag.
317         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
318         if quit_flag has already been reset.
319
320 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
321
322         * ser-mingw.c (pipe_windows_close): Move variable initialization back
323         up.
324
325 2007-02-08  Fred Fish  <fnf@specifix.com>
326
327         * defs.h (request_quit): Remove declaration.
328         * utils.c (request_quit): Remove definition.
329
330 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
331             Jan Kratochvil  <jan.kratochvil@redhat.com>
332             Daniel Jacobowitz  <dan@codesourcery.com>
333
334         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
335         (skip_prologue): Allow bl->blrl used by PIC code.
336
337 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
338             Daniel Jacobowitz  <dan@codesourcery.com>
339
340         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
341         initialize tmp_obstack.
342         * p-valprint.c (pascal_object_print_value_fields)
343         (pascal_object_print_value): Likewise.
344
345 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
346
347         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
348
349 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
350
351         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
352         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
353
354 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
355
356         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
357         (xml_cache): New.
358         (tdesc_parse_xml): Cache expanded descriptions.
359
360 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
361
362         * Makefile.in (XMLFILES): New.
363         (COMMON_OBS): Add xml-builtin.o.
364         (xml-builtin.c, stamp-xml): New rules.
365         (xml-tdesc.o): Update.
366         * features/feature_to_c.sh: New file.
367         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
368         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
369         (gdb_xml_start_element): Initialize scope after possibly reallocating
370         scopes.  Move cleanup later.  Handle the XInclude description
371         specially.
372         (gdb_xml_end_element): Only parse the body if there is a current element.
373         Call XML_DefaultCurrent if there is no element.
374         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
375         (struct xinclude_parsing_data, xinclude_start_include)
376         (xinclude_end_include, xml_xinclude_default)
377         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
378         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
379         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
380         * xml-support.h (xml_fetch_another, xml_process_xincludes)
381         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
382         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
383         XInclude directives.  Use the compiled in DTD.
384         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
385         directory name.  Do not warn here.
386         (file_read_description_xml): Update call.  Warn here instead.  Pass
387         a dirname as baton.
388         (fetch_available_features_from_target): New.
389         (target_read_description_xml): Use it.
390         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
391         to handle XInclude.
392         * features/xinclude.dtd: New file.
393
394 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
395
396         * linux-thread-db.c (check_for_thread_db): Return early if we have
397         no libthread_db support.
398
399 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
400
401         * mi/mi-parse.h: Include <sys/time.h>.
402
403 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
404
405         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
406         instead of print_variable_value to print values.
407
408 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
409
410         * mi/mi-main.c: Numerous formatting changes.
411         (mi_cmd_data_write_register_values): Replace clause inadvertantly
412         removed in my previous change.
413
414 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
415
416         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
417         Use 1000000L instead of 1000000.
418
419 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
420
421             Based on work by Apple Computer, Inc.
422
423         * configure.ac: Test for sys/resource.h and getrusage.
424         * configure, config.in: Regenerate.
425
426         * mi/mi-main.c: Include <sys/resource.h> if present.
427         (rusage): Declare if HAVE_GETRUSAGE.
428         (current_command_ts, do_timings): New static variables.
429         (timestamp, print_diff_now, print_diff, timeval_diff):
430         New static timing functions.
431         (mi_cmd_enable_timings): New function for new MI command.
432         (captured_mi_execute_command, mi_execute_async_cli_command): 
433         Call timing functions.
434
435         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
436         -enable-timings.
437
438         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
439
440         * mi/mi-parse.h: (mi_timestamp): New structure.
441         (mi_parse): Add mi_timestamp* member.
442
443 2007-02-02  Denis Pilat  <denis.pilat@st.com>
444
445         * thread.c (make_cleanup_restore_current_thread): New function.
446         (info_threads_command): Use of make_cleanup_restore_current_thread
447         to restore the current thread and the selected frame.
448         (restore_selected_frame): New function.
449         (struct current_thread_cleanup): Add frame_id field.
450         (do_restore_current_thread_cleanup): Add restoring of the selected
451         frame.
452         (make_cleanup_restore_current_thread): Likewise.
453         (thread_apply_all_command): backup the selected frame while 
454         entering the function and restore it at exit.
455         (thread_apply_command): Likewise.
456
457 2007-02-02  Denis Pilat  <denis.pilat@st.com>
458
459         * MAINTAINERS (Write After Approval): Add myself to the list.
460
461 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
462
463         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
464         (m32r_store_register): Ditto.
465
466 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
467
468         * ser-mingw.c (pipe_windows_open)
469         (pipe_windows_read, pipe_windows_write): Declare
470         variables at the top of the function.
471
472 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
473
474         * doublest.c (floatformat_from_length): Use the right element from
475         gdbarch floatformats.
476         (floatformat_from_type, extract_typed_floating)
477         (store_typed_floating): Likewise.
478         * doublest.h: Remove declarations for undefined floatformat arrays.
479         * gdbarch.sh (float_format, double_format, long_double_format): Change
480         to pairs.
481         (pformat): Update for pairs.
482         * gdbarch.c, gdbarch.h: Regenerated.
483         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
484         (floatformats_ieee_double_littlebyte_bigword)
485         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
486         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
487         (floatformats_vax_d): New variables.
488         (builtin_type_ieee_single, builtin_type_ieee_double)
489         (builtin_type_arm_ext, builtin_type_ia64_spill)
490         (builtin_type_ia64_quad): Replace arrays with individual types.
491         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
492         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
493         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
494         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
495         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
496         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
497         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
498         unused and endian-specific types.
499         (recursive_dump_type): Update for floatformat pairs.
500         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
501         (build_gdbtypes): Use build_flt.
502         (_initialize_gdbtypes): Update set of initialized types.
503         * gdbtypes.h: Update declarations to match gdbtypes.c.
504         (struct main_type): Store a pointer to two floatformats.
505         * arch-utils.c (default_float_format, default_double_format): Delete.
506         * arch-utils.h (default_float_format, default_double_format): Delete.
507
508         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
509         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
510         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
511         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
512         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
513
514 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
515
516         * target.c (maintenance_print_target_stack): New function.
517         (initialize_targets): Add new "maintenance print target-stack"
518         command.
519
520 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
521
522         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
523
524 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
525
526         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
527         (struct dwarf2_loclist_baton): Likewise.
528
529 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
530
531         * cli/cli-script.c: Include breakpoint.h.
532         (build_command_line): Require arguments only for if and while
533         commands.
534         (get_command_line, execute_user_command, execute_control_command):
535         Fix wording of warning messages.
536         (print_command_lines): Print breakpoint commands.
537         (execute_control_command): Call commands_from_control_command to
538         handle the `commands' command inside a body of a flow-control
539         command.
540         (read_next_line): Recognize the `commands' command and build a
541         command line structure for it.
542         (recurse_read_control_structure, read_command_lines): Handle
543         `commands' similarly to `if' and `while'.
544
545         * breakpoint.c (get_number_trailer): Document the special meaning
546         of NULL as the first argument PP.
547         (commands_from_control_command): New function.
548
549         * breakpoint.h (commands_from_control_command): Add prototype.
550
551         * defs.h (commands_control): New enumerated value for enum
552         command_control_type.
553
554 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
555
556         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
557         (ada_exception_sal): Update accordingly.
558
559 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
560
561         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
562         * NEWS: Describe CHAR array vs. string identifcation rules.
563
564 2007-01-25  Paul Brook  <paul@codesourcery.com>
565
566         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
567
568 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
569
570         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
571         expression is empty, bother to return the 'optimized out' value we
572         construct.  (Thanks to Carl Burch.)
573
574 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
575
576         * varobj.c (c_value_of_root, c_value_of_child)
577         (cplus_describe_child): Don't call release_value.
578
579 2007-01-24  Thiemo Seufer  <ths@mips.com>
580
581         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
582         initialization.
583
584 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
585
586         Refactor getting children name, value and type access 
587         for varobjs in C++.
588         * varobj.c (get_type_deref): Remove.
589         (adjust_value_for_child_access): New.
590         (c_number_of_children): Use the above.
591         (c_describe_child): Likewise.
592         (enum accessibility): New.
593         (match_accessibility): New function.
594         (cplus_describe_child): New function.
595         (cplus_name_of_child, cplus_value_of_child)
596         (cplus_type_of_child): Reimplement in terms
597         of cplus_describe_child.
598         (cplus_number_of_children): Use 
599         adjust_value_for_child_access.
600         
601 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
602
603         Fix computation of the 'editable' attribute and
604         value changeability for for references.
605         * varobj.c (get_value_type): New function.
606         (c_variable_editable): Use get_value_type.
607         (varobj_value_is_changeable): Likewise.
608                 
609 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
610
611         * source.c (find_and_open_source): Try rewriting the source
612         path inside filename if dirname is NULL.
613
614 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
615
616         * dwarf2read.c (add_partial_symbol): Create an extra partial
617         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
618         (new_symbol): Likewise for symbols.
619
620 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
621
622         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
623
624 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
625         
626         * value.c (value_primitive_field): Copy the full 'location' 
627         contents, instead of assuming that copying ADDRESS will 
628         bring over everything in the union.  Remove obsolete comment.
629         
630 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
631
632         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
633         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
634         (m32c_m16c_pointer_to_address): Separate code from declarations.
635
636 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
637
638         * target.c (update_current_target): Correct typo.
639
640 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
641
642         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
643         declaration.
644
645 2007-01-11  Andrew Cagney  <cagney@redhat.com>
646             Daniel Jacobowitz  <dan@codesourcery.com>
647             Jan Kratochvil  <jan.kratochvil@redhat.com>
648
649         * dwarf2-frame.c (execute_cfa_program): New support of
650         `DW_CFA_GNU_negative_offset_extended'.
651
652 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
653
654         * NEWS: Mention flash support for "load" and new remote packets.
655
656 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
657
658         * breakpoint.c (delete_command): Skip redundant loop iterations.
659
660 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
661
662         * gdbarch.sh (register_type): Update comment.
663         * gdbarch.h: Regenerated.
664         * arch-utils.c (generic_register_size): Call register_type.
665         * ia64-tdep.c (ia64_extract_return_value): Likewise.
666         * m32c-tdep.c (check_for_saved): Likewise.
667         * mips-tdep.c (mips_print_register, print_gp_register_row)
668         (mips_print_registers_info): Likewise.
669         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
670         Likewise.
671         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
672         (sh64_do_register, sh64_print_register)
673         (sh64_media_print_registers_info): Likewise.
674         * tui/tui-regs.c (tui_register_format): Likewise.
675
676 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
677
678         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
679
680         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
681         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
682         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
683         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
684         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
685         (make_symbol_completion_list): Likewise.
686
687 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
688             Daniel Jacobowitz  <dan@codesourcery.com>
689
690         * buildsym.c (end_symtab): Use preallocated symtab if available.
691         Fill in SYMBOL_SYMTAB.
692         * buildsym.h (struct subfile): Add symtab member.
693         * dwarf2read.c (struct dwarf2_cu): Add line_header.
694         (struct file_entry): Add symtab.
695         (free_cu_line_header): New function.
696         (read_file_scope): Use it.  Save line_header in the cu.  Process
697         lines before DIEs.
698         (add_file_name): Initialize new symtab member.
699         (dwarf_decode_lines): Create symtabs for included files.
700         (new_symbol): Set SYMBOL_SYMTAB.
701         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
702         (search_symbols): Likewise.
703         * symtab.h (struct symbol): Add symtab member.
704         (SYMBOL_SYMTAB): Define.
705
706 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
707
708         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
709
710 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
711
712         * arch-utils.c (show_endian): Correct reversed condition.
713
714 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
715
716         * MAINTAINERS (Write After Approval): Add myself.
717
718 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
719             Vladimir Prus  <vladimir@codesourcery.com>
720
721         Fix 'selected frame' varobjs.
722         * varobj.c (struct varobj): Remove the error field.
723         (varobj_set_value): Don't check var->error.
724         (install_new_value): Don't set var->error.
725         (varobj_update): Always pass the new value
726         of the root via install_new_value.
727         (create_child): Don't set error field.
728         (new_variable): Likewise.
729         (c_value_of_root): Always reevaluate the value
730         of selected frame varobjs in the selected frame.
731         Don't call reinit_frame_cache.
732
733 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
734
735         * source.c (_initialize_source): Improve the help text of
736         the substitute-path commands.
737
738 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
739
740         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
741         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
742         (frv_skip_prologue): Remove prototypes.
743         (frv_adjust_breakpoint_address): Renamed from
744         frv_gdbarch_adjust_breakpoint_address.
745         (frv_gdbarch_init): Adjust.
746
747 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
748
749         * gdbarch.sh (deprecated_extract_return_value)
750         (deprecated_store_return_value): Remove.
751         (extract_return_value, store_return_value): Remove default values.
752         * gdbarch.c, gdbarch.h: Regenerate.
753         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
754         (legacy_store_return_value): Remove.
755         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
756         Remove.
757
758         * mi/mi-main.c: Remove obsolete comment.
759
760         * regcache.c, regcache.h (deprecated_register_bytes)
761         (deprecated_read_register_bytes)
762         (deprecated_write_register_bytes): Remove.
763
764         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
765         Don't forget to move destination pointer.
766
767 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
768
769         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
770
771 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
772
773         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
774         past entry function with recent newlib.
775
776 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
777
778         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
779         introduction.  Specify -var-update more exactly.
780
781 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
782
783         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
784
785 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
786
787         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
788         the Global Maintainers' invitation to be a global maintainer.
789
790 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
791
792         * infrun.c (singlestep_pc): New variable.
793         (resume): Set singlestep_pc.
794         (context_switch): Add a debugging message.  Flush the frame cache.
795         (handle_inferior_event): Add debugging messages.  Handle thread
796         hops when a software single step has completed.  Let context_switch
797         handle flushing the frame cache.
798
799 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
800
801         * NEWS: Mention target descriptions, "set tdesc filename",
802         "unset tdesc filename", "show tdesc filename", and
803         qXfer:features:read.
804         * arch-utils.c (choose_architecture_for_target): New function.
805         (gdbarch_info_fill): Call it.
806         * target-descriptions.c (struct property): Make members non-const.
807         (struct target_desc): Add arch member.
808         (target_description_filename): New variable.
809         (target_find_description): Try via XML first.
810         (tdesc_architecture): New.
811         (free_target_description, make_cleanup_free_target_description): New.
812         (set_tdesc_property): Call xstrdup.
813         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
814         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
815         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
816         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
817         * target-descriptions.h (tdesc_architecture)
818         (make_cleanup_free_target_description, set_tdesc_architecture): New
819         prototypes.
820         * Makefile.in (SFILES): Add xml-tdesc.c.
821         (COMMON_OBS): Add xml-tdesc.o.
822         (target-descriptions.o): Update.
823         (xml-tdesc.o): New rule.
824         * xml-tdesc.c, xml-tdesc.h: New files.
825         * remote.c (PACKET_qXfer_features): New enum.
826         (remote_protocol_features): Add qXfer:features:read.
827         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
828         (_initialize_remote): Register qXfer:features:read.
829         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
830         * features/gdb-target.dtd: New file.
831
832 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
833
834         * copyright.sh: Clarify error.
835
836 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
837
838         * symtab.c (matching_bfd_sections): Fix VMA matching for
839         prelinked objects.
840
841 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
842
843         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
844         nested symbols.
845
846 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
847
848         Updated copyright notices for most files.
849
850 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
851
852         * copyright.sh (prunes): Add step-line.inp and step-line.c.
853
854 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
855
856         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
857         exec_prefix.
858         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
859         '${prefix}'.
860         * configure, config.in: Regenerate.
861         * defs.h (debug_file_directory): Declare.
862         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
863         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
864         relocate it if DEBUGDIR_RELOCATABLE.
865         * symfile.c (debug_file_directory): Make non-static.
866         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
867         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
868         (_initialize_symfile): Don't initialize debug_file_directory here.
869
870 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
871
872         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
873         statements.
874
875 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
876
877         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
878         frame_unwind_register to recurse.
879         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
880         (alpha_heuristic_frame_prev_register): Likewise.
881         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
882         * m32c-tdep.c (m32c_prev_register): Likewise.
883         * frame.c (frame_register_unwind_location): Remove FIXME.
884
885 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
886             Eli Zaretskii  <eliz@gnu.org>
887
888         * copyright.sh: New file.
889
890 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
891
892         * configure.ac: Check for XML_StopParser.
893         * xml-support.c (gdb_xml_body_text): Check for an error.
894         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
895         (gdb_xml_end_element_wrapper): Likewise.
896         * config.in, configure: Regenerated.
897
898 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
899
900         * varobj.c (install_new_value): Always update print_value.
901         (value_get_print_value): Immediately return NULL for missing
902         values.
903
904 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
905
906         * configure.ac: Tighten pattern for extracting value of
907         DEPRECATED_TM_FILE from the target makefile fragment.
908         * configure: Regenerated.
909
910 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
911
912         * linux-nat.c (struct simple_pid_list): Add status.
913         (add_to_pid_list): Record the PID's status.
914         (linux_record_stopped_pid): Likewise.  Make static.
915         (pull_pid_from_list): Return the saved status.
916         (linux_nat_handle_extended): Deleted.
917         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
918         Make static.  Handle non-SIGSTOP for a new thread's first signal.
919         (flush_callback): Handle unexpected pending signals.
920         (linux_nat_wait): Update calls to changed functions.
921         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
922         Remove prototypes for newly static functions.
923
924 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
925
926         * gdbarch.sh (value_from_register): New gdbarch function.
927         * gdbarch.c, gdbarch.h: Regenerate.
928         * findvar.c (default_value_from_register): New function.
929         (value_from_register): Use gdbarch_value_from_register.
930         * value.h (default_value_from_register): Declare.
931         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
932         spu_value_to_register): Remove.
933         (spu_value_from_register): New function.
934         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
935         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
936         Call set_gdbarch_value_from_register.
937         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
938         s390_value_to_register): Remove.
939         (s390_value_from_register): New function.
940         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
941         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
942         Call set_gdbarch_value_from_register.
943
944 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
945
946         * NEWS: Add "set sysroot" and "show sysroot".
947         * solib.c (solib_absolute_prefix): Delete.  Replace
948         all uses with gdb_sysroot.
949         (_initialize_solib): Add "set sysroot" and "show sysroot".
950         Make "solib-absolute-prefix" an alias to it.
951
952 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
953
954         * frame.c (get_frame_register_bytes): New function.
955         (put_frame_register_bytes): Likewise.
956         * frame.h (get_frame_register_bytes): Declare.
957         (put_frame_register_bytes): Likewise.
958         * findvar.c (value_from_register): Always construct lval_register
959         values.  Use get_frame_register_bytes.
960         * valops.c (value_assign): Use get_frame_register_bytes and
961         put_frame_register_bytes.
962
963 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
964
965         * MAINTAINERS: Update Stan Shebs' email address.
966
967 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
968
969         * ada-lang.c (is_known_support_routine): Improve the implementation.
970
971 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
972
973         * ada-lang.c: Add include of source.h.
974         (is_known_support_routine): Improve the check verifying that the file
975         associated to this frame exists.
976         * Makefile.in (ada-lang.o): Add dependency on source.h.
977
978 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
979
980         * ax-general.c (ax_const_l): Select proper opcode for the given
981         value.
982
983 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
984
985         * varobj.c (c_value_of_root): Don't select frame if variable
986         object is out of scope.
987
988 2007-01-06  Nick Roberts  <nickrob@snap.net.nz>
989
990         * varobj.c (struct varobj): New member print_value.
991         (install_new_value): Compare last printed value with current one
992         instead of contents.
993         (new_variable): Initialize var->print_value to NULL.
994         (free_variable): Free var->print_value.
995         (value_get_print_value): New function derived from
996         c_value_of_variable.
997         (c_value_of_variable): Use value_get_print_value.
998
999 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1000
1001         * i386-tdep.c (i386_analyze_stack_align): Add comment.
1002
1003 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1004
1005         * NEWS: Add entries for new catch commands.
1006
1007 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1008
1009         * dwarf2read.c (partial_die_info): Add field has_byte_size.
1010         (add_partial_symbol): Correct identification of external references.
1011         (process_structure_scope): Likewise.
1012         (read_partial_die): Handle DW_AT_byte_size attribute.
1013
1014 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
1015
1016         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1017
1018 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
1019
1020         * varobj.c (get_type_deref): Fix variable objects for references to
1021         pointers.
1022
1023 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1024
1025         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
1026         with no symbols.
1027
1028 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1029
1030         * memory-map.c (struct_memory_map_parsing_data): Remove most
1031         members.  Make property_name an array.
1032         (free_memory_map_parsing_data, memory_map_start_element)
1033         (memory_map_end_element, memory_map_character_data): Delete.
1034         (memory_map_start_memory, memory_map_end_memory)
1035         (memory_map_start_property, memory_map_end_property): New functions.
1036         (property_attributes, memory_children, memory_type_enum)
1037         (memory_attributes, memory_map_children, memory_map_elements): New.
1038         (parse_memory_map): Rewrite.
1039         * xml-support.c (debug_xml): New.
1040         (xml_get_required_attribute, xml_get_integer_attribute)
1041         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1042         Delete.
1043         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1044         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1045         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1046         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1047         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1048         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1049         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1050         New.
1051         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1052         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1053         (enum gdb_xml_element_flag, struct gdb_xml_element)
1054         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1055         (struct gdb_xml_enum): New.
1056         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1057         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1058         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1059         (xml_get_required_attribute, xml_get_integer_attribute)
1060         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1061         * Makefile.in (xml_support_h, xml-support.o): Update.
1062
1063 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1064
1065         * Makefile.in (eval.o): Update dependencies.
1066         * eval.c: Include "ui-out.h" and "exceptions.h".
1067         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1068         Use value_zero if an error occurs when avoiding side effects.
1069         * varobj.c (c_value_of_root): Initialize new_val.
1070
1071 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1072
1073         * varobj.c (varobj_list_children): Stop if the number of children is
1074         unknown.
1075         (c_number_of_children):
1076
1077 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
1078
1079         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1080         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1081         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1082         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1083         sizeof, instead of hardcoded constants.
1084
1085 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1086
1087         * CONTRIBUTE: Use sourceware.org.
1088
1089 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1090
1091         * buildsym.c (start_subfile): Handle producer.
1092         (record_producer): New function.
1093         * buildsym.h (struct subfile): Include producer.
1094         (record_producer): New prototype.
1095         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1096         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1097         armcc_cfa_offsets_reversed.
1098         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1099         (dwarf2_frame_find_quirks): New function.
1100         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
1101         (decode_frame_entry_1): Record the CIE version.  Record the
1102         augmentation.  Skip armcc augmentations.
1103         * dwarf2read.c (read_file_scope): Save the producer.
1104         * symtab.h (struct symtab): Rename unused version member to
1105         producer.
1106
1107 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1108
1109         * configure.ac (build_warnings): Use -Wall and
1110         -Wdeclaration-after-statement.
1111         * configure: Regenerated.
1112
1113 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
1114
1115         Simplify access to variours properties of child
1116         variable objects in C.
1117         * varobj.c (value_struct_element_index): New function.
1118         (c_describe_child): New function.
1119         (c_name_of_child, c_value_of_child)
1120         (c_type_of_child): Rewrite to use c_describe_child.
1121
1122 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
1123
1124         gdb/
1125         * varobj.c: Include "vec.h". 
1126         (varobj_p): New typedef, declare vector of those.
1127         (struct varobj): Use vector for the 'children' member.
1128         (child_exists): Remove.
1129         (save_child_in_parent): Remove.
1130         (remove_child_from_parent): Remove.
1131         (struct varobj_child): Remove.
1132         (struct vstack): Remove.
1133         (vpush, vpop): Remove.
1134         (varobj_list_children): Adjust to work work vector.
1135         (varobj_update): Likewise. Use vectors for
1136         working stack and result.
1137         (delete_variable_1): Likewise.
1138         * Makefile.in (varobj.o): Update dependencies.
1139
1140 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
1141
1142         Port from Apple's version.
1143         gdb/
1144         * varobj.c (type_changeable): Rename to...
1145         (varobj_value_is_changeable_p): ...this. Adjust all callers.
1146         (is_root_p): New function. Use it everywhere.
1147
1148 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
1149
1150         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1151         then plain 'fixup'.
1152
1153 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
1154
1155         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1156
1157 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
1158
1159         * hpread.c (hpread_type_lookup): Fix compilation failure.
1160
1161 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
1162
1163         * NEWS: New port to S+core.
1164         * MAINTAINERS (Write After Approval, Responsible Maintainers):
1165         Add myself.
1166
1167         * Makefile.in: Add dependencies for S+core files.
1168         * configure.tgt (score*, score-*-*): Add S+core target.
1169         * config/score/embed.mt: New file.
1170         * score-tdep.c: New file.
1171         * score-tdep.h: New file.
1172
1173 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
1174
1175         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1176         the appropriate type rather than a bogus void type.
1177
1178 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
1179
1180         * ada-lang.h (ada_find_printable_frame): Remove.
1181         (ada_exception_catchpoint_p, ada_decode_exception_location)
1182         (ada_decode_assert_location): Add declaration.
1183         * ada-lang.c: Add include of annotate.h and valprint.h.
1184         (exception_catchpoint_kind): New enum.
1185         (function_name_from_pc, is_known_support_routine)
1186         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1187         (ada_exception_name_addr_1, ada_exception_name_addr)
1188         (print_it_exception, print_one_exception, print_mention_exception)
1189         (print_it_catch_exception, print_one_catch_exception)
1190         (print_mention_catch_exception, catch_exception_breakpoint_ops)
1191         (print_it_catch_exception_unhandled)
1192         (print_one_catch_exception_unhandled)
1193         (print_mention_catch_exception_unhandled, print_it_catch_assert)
1194         (print_one_catch_assert, print_mention_catch_assert)
1195         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1196         (ada_get_next_arg, catch_ada_exception_command_split)
1197         (ada_exception_sym_name, ada_exception_sym_name)
1198         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1199         (ada_parse_catchpoint_condition, ada_exception_sal)
1200         (ada_decode_exception_location)
1201         (ada_decode_assert_location): New function.
1202         (catch_exception_unhandled_breakpoint_ops): New global variable.
1203         (catch_assert_breakpoint_ops): New global variable.
1204         * breakpoint.c: Add include of ada-lang.h.
1205         (print_one_breakpoint): Do not print the condition for Ada
1206         exception catchpoints.
1207         (create_ada_exception_breakpoint): New function.
1208         (catch_ada_exception_command, catch_assert_command): New function.
1209         (catch_command_1): Add support for the new "catch exception" and
1210         "catch assert" commands.
1211         (_initialize_breakpoint): Add help description for the new catch
1212         commands.
1213         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1214         valprint.h.
1215         (breakpoint.o): Add dependency on ada-lang.h.
1216
1217 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
1218
1219         * coffread.c (cs_to_section): If bfd_section is found, always
1220         return its section index.
1221         (coff_symtab_read): Determine the minimal_symbol_type using the
1222         bfd_section flags.
1223
1224 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1225             Daniel Jacobowitz  <dan@codesourcery.com>
1226
1227         * Makefile.in (top.o): Update.
1228         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1229         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1230         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1231         New.
1232         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1233
1234 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
1235
1236         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1237         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1238
1239 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
1240
1241         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1242         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1243         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1244         greater than or equal to zero.
1245         * m2-typeprint.c (m2_array): Likewise.
1246         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1247         * gdbtypes.c (copy_type_recursive): Correct == typo.
1248         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1249         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1250         greater than zero.
1251         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1252         (default_macro_scope): Remove unused variable.
1253         * prologue-value.h (pv_area_find_reg): Don't name an argument
1254         "register".
1255         * remote-fileio.c (remote_fio_func_map): Add missing braces.
1256         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1257         type.
1258         (cleanup_sigint_signal_handler): Remove casts.
1259         * valprint.c (val_print): Use a volatile local for the modified
1260         argument.
1261         * varobj.c (languages): Remove extra array dimension.
1262         (varobj_create): Correct access to languages array.
1263         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1264         missing braces.
1265         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1266         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1267         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1268         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1269         (mi_cmd_data_write_memory): Likewise.
1270         * signals/signals.c (target_signal_to_string): Cast to int before
1271         comparing.
1272         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1273         Update all callers.
1274
1275 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
1276
1277         * NEWS: Mention pointer to member improvements.
1278         * Makefile.in (gnu-v3-abi.o): Delete special rule.
1279         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1280         * ada-valprint.c (ada_print_scalar): Update for new type codes.
1281         * c-typeprint.c (c_print_type): Update for new type codes.
1282         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1283         (c_type_print_base): Likewise.
1284         (c_type_print_args): Rewrite.
1285         * c-valprint.c (c_val_print): Update for new type codes.  Remove
1286         support for references to members.  Treat methods like functions.
1287         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1288         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1289         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1290         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1291         (struct cp_abi_ops): Add corresponding members.
1292         * cp-valprint.c (cp_print_class_method): Delete.
1293         (cp_find_class_member): New function.
1294         (cp_print_class_member): Use it.  Simplify support for bogus
1295         member pointers.
1296         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1297         lookup_methodptr_type.
1298         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1299         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1300         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
1301         pointer support.
1302         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
1303         references returned by user defined operators.
1304         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1305         (f_type_print_varspec_suffix): Remove support for member pointers.
1306         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1307         and adjusted.
1308         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1309         (lookup_methodptr_type): New.
1310         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1311         (recursive_dump_type): Update for new types.
1312         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1313         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1314         (lookup_memberptr_type, lookup_methodptr_type)
1315         (smash_to_memberptr_type): New prototypes.
1316         (smash_to_method_type): Formatting fix.
1317         (lookup_member_type, smash_to_member_type): Delete prototypes.
1318         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1319         Do not rely on debug information for the vptr or the method's
1320         enclosing type.  Handle function descriptors for IA64.
1321         (gnuv3_virtual_fn_field): Rewrite using the new functions.
1322         (gnuv3_find_method_in, gnuv3_print_method_ptr)
1323         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1324         (gnuv3_method_ptr_to_value): New.
1325         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1326         * hpread.c (hpread_type_lookup): Update for new types.
1327         * infcall.c (value_arg_coerce): Likewise.
1328         * m2-typeprint.c (m2_print_type): Remove explicit support
1329         for member pointers.
1330         * m2-valprint.c (m2_val_print): Likewise.
1331         * p-typeprint.c (pascal_type_print_varspec_prefix)
1332         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1333         * p-valprint.c (pascal_val_print): Likewise.
1334         (pascal_object_print_class_method, pascal_object_print_class_member):
1335         Delete.
1336         * p-lang.h (pascal_object_print_class_method)
1337         (pascal_object_print_class_member): Delete prototypes.
1338         * stabsread.c (read_type): Update for new types.
1339         * typeprint.c (print_type_scalar): Likewise.
1340         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1341         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1342         argument.  Construct a pointer to member if the address of a
1343         function or data member is requested.
1344         (value_cast_pointers): Don't modify the input value.
1345         (value_cast): Adjust pointer to member handling for new types.
1346         Allow null pointer to member constants.  Don't modify the input
1347         value.
1348         (value_ind): Remove pointer to member check.  Handle function
1349         descriptors for function pointers.
1350         (value_struct_elt, value_find_oload_method_list, check_field):
1351         Remove pointer to member checks.
1352         * value.c (unpack_long): Allow pointers to data members.
1353         (value_from_longest): Allow member pointers.
1354         * value.h (value_aggregate_elt): Add want_address.
1355         * varobj.c (c_variable_editable): Remove check for members.
1356         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1357         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1358         in virtual tables.
1359         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1360         * c-lang.h (cp_print_class_method): Delete prototype.
1361         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1362         * mips-tdep.c (mips_gdbarch_init): Likewise.
1363         * gdbarch.c, gdbarch.h: Regenerated.
1364
1365 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1366
1367         * rs6000-tdep.c (rs6000_use_struct_convention)
1368         (rs6000_extract_return_value, rs6000_store_return_value)
1369         (rs6000_extract_struct_value_address): Remove.
1370         (rs6000_return_value): New function.
1371         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1372         store_return_value, deprecated_extract_struct_value_address and
1373         deprecated_use_struct_convention.  Use rs6000_return_value
1374         instead.
1375
1376 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
1377
1378         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1379         -display-disable, -display-enable, -display-insert and
1380         -display-list.
1381
1382 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1383
1384         * breakpoint.c (remove_breakpoint): Remove dead code.
1385
1386 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
1387
1388         * varobj.c: Include block.h.
1389         (c_value_of_root): Check scope within nested statements.
1390
1391 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1392
1393         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1394         regcache_cooked_write_signed instead of
1395         deprecated_write_register_bytes.
1396
1397 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1398
1399         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1400
1401 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1402
1403         Followed the Start of New Year Procedure:
1404         * ChangeLog-2006: New file, containing all the entries for 2006.
1405         * ChangeLog: Removed all 2006 entries, and changed the reference
1406         to the previous ChangeLog to point to ChangeLog 2006.
1407         * top.c (print_gdb_version): Update copyright year.
1408
1409 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1410
1411         * Makefile.in (remote-sds.o): Remove.
1412         * remote-sds.c: Delete.
1413
1414 For older changes see ChangeLog-2006.
1415 \f
1416 Local Variables:
1417 mode: change-log
1418 left-margin: 8
1419 fill-column: 74
1420 version-control: never
1421 End: