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