* mips-tdep.c (mips_o32_push_dummy_call): Take account of
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2             Nigel Stephens  <nigel@mips.com>
3
4         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5         argument alignment requirements when calculating stack space
6         required.  When aligning an arg register to eight bytes
7         boundary, align stack_offset too.  Write floating-point
8         arguments to the appropriate integer register if need go there.
9         (mips_o64_push_dummy_call): Likewise.
10
11 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
12
13         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
14         "sig" arguments, add "regcache" argument.
15         * gdbarch.c, gdbarch.h: Regenerate.
16
17         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
18         (handle_inferior_event): Call remove_single_step_breakpoints directly
19         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
20
21         * alpha-tdep.c (alpha_software_single_step): Update argument list.
22         Remove handling of !insert_breakpoints_p case.
23         * arm-tdep.c (arm_software_single_step): Likewise.
24         * cris-tdep.c (cris_software_single_step): Likewise.
25         * mips-tdep.c (mips_software_single_step): Likewise.
26         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
27         * sparc-tdep.c (sparc_software_single_step): Likewise.
28         * spu-tdep.c (spu_software_single_step): Likewise.
29
30         * alpha-tdep.h (alpha_software_single_step): Update prototype.
31         * mips-tdep.h (mips_software_single_step): Likewise.
32         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
33         * sparc-tdep.h (sparc_software_single_step): Likewise.
34
35 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
36
37         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
38         when removing single-step breakpoints.
39
40 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
41
42         * varobj.h (varobj_set_frozen): New
43         (varobj_get_frozen): New.
44         (varobj_update): New parameter explicit.
45         * varobj.c (struct varobj): New fields frozen
46         and not_fetched.
47         (varobj_set_frozen, varobj_get_frozen): New.
48         (install_new_value): Don't fetch values for 
49         frozen variable object, or children thereof.  Allow
50         a frozen variable object to have non-fetched value.
51         (varobj_update): Allow updating child variables.
52         Don't traverse frozen children.
53         (new_variable): Initialize the frozen field.
54         (c_value_of_variable): Return NULL for frozen
55         variable without any value yet. 
56         * mi/mi-cmd-var.c (varobj_update_one): New parameter
57         'explicit'.
58         (mi_cmd_var_create): Output the 'frozen' field,
59         as soon as testsuite is adjusted to expect that field.
60         (mi_cmd_var_set_frozen): New.
61         (mi_cmd_var_update): Pass the 'explicit' parameter to
62         varobj_update_one.
63         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
64         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
65         
66 2007-04-13  Paul Brook  <paul@codesourcery.com>
67
68         * target-descriptions.c (tdesc_named_type): Add ieee_single and
69         ieee_double.
70         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
71
72 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
73
74         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
75         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
76         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
77         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
78         * Makefile.in: Remove references to deleted files.
79         * README: Do not mention deleted ROM monitor interfaces.
80         * defs.h (enum language): Delete language_scm.
81         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
82         (dump_subexp_body_standard): Likewise.
83         * parse.c (operator_length_standard): Likewise.
84         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
85         * remote-mips.c: Do not include remote-utils.h.
86         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
87         throughout.
88         * value.c: Do not include scm-lang.h.
89         (unpack_long): Delete scm_unpack call.
90         * config/h8300/h8300.mt, config/mips/embed.mt,
91         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
92         config/sh/embed.mt, config/sh/linux.mt: Remove references to
93         deleted files.
94         * NEWS: Mention removed files.
95
96 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
97
98         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
99         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
100
101 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
102
103         * NEWS: Mention removal of HP aCC support.
104
105 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
106
107         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
108         first entry for static executables.
109         (breakpoint_addr): Delete unused variable.
110         (elf_locate_base): Search for _r_debug in static executables.
111         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
112         also.
113
114 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
115
116         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
117         (bpstat_what, print_one_breakpoint, allocate_bp_location)
118         (mention): Remove bp_through_sigtramp support.
119         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
120
121 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
122
123         * breakpoint.c (bpstat_what): Give step-resume higher priority than
124         shlib events.
125
126 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
127
128         * infrun.c: Doc fixes.
129         (handle_inferior_event): Clarify debug message.
130         (insert_step_resume_breakpoint_at_sal): Print a debug message.
131
132 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
133
134         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
135
136 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
137
138         * config/m68k/tm-monitor.h: Delete file.
139         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
140         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
141         call moved to ...
142         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
143         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
144
145 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
146
147         * gdbarch.sh (software_single_step): Change the return type
148         from void to int and reformatted some comments to <= 80
149         columns.
150         * gdbarch.c, gdbarch.h: Regenerated.
151         * alpha-tdep.c (alpha_software_single_step): Likewise.
152         * alpha-tdep.h (alpha_software_single_step): Likewise.
153         * arm-tdep.c (arm_software_single_step): Likewise.
154         * cris-tdep.c (cris_software_single_step): Likewise.
155         * mips-tdep.c (mips_software_single_step): Likewise.
156         * mips-tdep.h (mips_software_single_step): Likewise.
157         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
158         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
159         * sparc-tdep.c (sparc_software_single_step): Likewise.
160         * sparc-tdep.h (sparc_software_single_step): Likewise.
161         * spu-tdep.c (spu_software_single_step): Likewise.
162         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
163         and act accordingly.
164
165 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
166
167         * configure.ac (build_warnings): Add -Wno-char-subscripts.
168         * configure: Regenerate.
169         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
170
171 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
172
173         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
174
175 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
176
177         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
178         macros.
179         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
180         distinct on the TYPE_STUB_SUPPORTED debug targets.
181         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
182
183 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
184
185         * sparc-tdep.c (X_RS2): New macro.
186         (sparc_skip_stack_check): New function.
187         (sparc_analyze_prologue): Adjust PC past stack probing
188         sequence if necessary.
189
190 2007-04-10  Andreas Schwab  <schwab@suse.de>
191
192         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
193         register.
194
195 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
196
197         * breakpoint.c (gdb_breakpoint_query): Really return an
198         enum gdb_rc.
199         (gdb_breakpoint): Likewise.
200         * thread.c (gdb_list_thread_ids): Likewise.
201         (gdb_thread_select): Likewise.
202         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
203         (mi_cmd_thread_list_ids): Remove bogus initialization.
204
205 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
206
207         * Makefile.in (SFILES): Remove hpacc-abi.c.
208         (COMMON_OBS): Remove hpacc-abi.o.
209         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
210         (hpacc-abi.o, hpread.o): Delete rules.
211         * somread.c: Delete extern declarations from hpread.c.
212         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
213         (som_symfile_finish): Do not call hpread_symfile_finish.
214         (som_symfile_init): Do not call hpread_symfile_init.
215         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
216         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
217         * hpacc-abi.c, hpread.c: Deleted.
218
219 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
220
221         * solib-svr4.c (enable_break): Simplify return value.
222         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
223
224 2007-04-10  Andreas Schwab  <schwab@suse.de>
225
226         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
227         l_ld_size, l_next_size, l_prev_size, l_name_size.
228
229         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
230         to extract addresses from link map.
231         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
232         (LM_NEXT): Likewise.
233         (LM_NAME): Likewise.
234         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
235         (elf_locate_base): Likewise.
236         (open_symbol_file_object): Likewise.
237         (svr4_fetch_objfile_link_map): Likewise.
238         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
239         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
240         l_ld_size.
241         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
242         (svr4_lp64_fetch_link_map_offsets): Likewise.
243
244         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
245         removed members.  Set l_ld_offset to -1 if not present.
246
247 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
248         
249         Pass stderr of program run with "target remote |"
250         via gdb_stderr.
251         * serial.c (serial_open): Set error_fd to -1.
252         * serial.h (struct serial): New field error_fd.
253         (struct serial_opts): New field avail.
254         * ser-pipe.c (pipe_open): Create another pair
255         of sockets.  Pass stderr to gdb.
256         * ser-mingw.c (pipe_windows_open): Pass
257         PEX_STDERR_TO_PIPE to pex_run.  Initialize
258         sd->error_fd.
259         (pipe_avail): New.
260         (_initialize_ser_windows): Hook pipe_avail.
261         * ser-base.c (generic_readchar): Check if there's
262         anything in stderr channel and route that to gdb_stderr.
263
264 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
265
266         * dbxread.c (read_ofile_symtab): Move current_objfile
267         clearing to after end_stabs.
268
269 2007-04-01  Andreas Schwab  <schwab@suse.de>
270
271         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
272         gdbarch instead of current_gdbarch.
273
274 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
275
276         * varobj.c (varobj_create): Keep varobj value
277         NULL when evaluating the type.
278         
279 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
280
281         * NEWS: Mention new Windows CE support.
282
283 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
284
285         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
286         the obsoletion stanza.
287         * NEWS: Mention deleted targets.
288
289         * config/sh/tm-wince.h: Remove.
290         * config/sh/wince.mt: Remove.
291         * config/mips/tm-wince.h: Remove.
292         * config/mips/wince.mt: Remove.
293
294         * wince.c: Remove.
295         * wince-stub.c: Remove.
296         * wince-stub.h: Remove.
297         * Makefile.in (wince.o): Remove rule.
298         (wince-stub.o): Likewise.
299
300         * mips-tdep.c (mips_next_pc): Make static.
301         * mips-tdep.h (mips_next_pc): Remove declaration.
302         * arm-tdep.c (arm_pc_is_thumb): Make static.
303         (thumb_get_next_pc): Likewise.
304         (arm_get_next_pc): Likewise.
305         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
306         (arm_pc_is_thumb): Likewise.
307         (thumb_get_next_pc): Likewise.
308         (arm_get_next_pc): Likewise.
309
310 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
311
312         * MAINTAINERS: Remove d10v entry.
313         * Makefile.in (SFILES): Remove dwarfread.c.
314         (COMMON_OBS): Remove dwarfread.o.
315         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
316         (remote-est.o, rom68k-rom.o): Delete.
317         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
318         target est, target rom68k, and DWARF 1.
319         * configure.tgt: Mark d10v as removed.
320         * dwarf2read.c: Doc update.
321         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
322         and lnsize.
323         (elf_locate_sections): Do not set them.
324         (elf_symfile_read): Do not call dwarf_build_psymtabs.
325         * symfile.h (dwarf_build_psymtabs): Delete prototype.
326         * config/m68k/monitor.mt (TDEPFILES): Prune.
327         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
328         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
329
330 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
331
332         * doublest.c (convert_floatformat_to_doublest): Use
333         floatformat_classify.
334         (floatformat_is_nan): Rename to...
335         (floatformat_classify): ...this.  Return more information.
336         * doublest.h (enum float_kind): New.
337         (floatformat_is_nan): Replace prototype...
338         (floatformat_classify): ...with this one.
339         * valprint.c (print_floating): Use floatformat_classify.  Handle
340         infinity.
341
342 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
343
344         * README: Mention ISO C library requirement.
345
346 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
347
348         * Makefile.in (SFILES): Remove nlmread.c.
349         (COMMON_OBS): Remove nlmread.o.
350         (nlmread.o): Delete rule.
351         * README: Delete reference to remote-st.c.
352         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
353         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
354         GDB_OSABI_LYNXOS.
355         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
356         (_initialize_i386_tdep): Do not reference them.
357         * nlmread.c: Delete file.
358         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
359         * target.c: Doc update.
360         * thread.c: Delete commented include.
361         * config/alpha/tm-alpha.h: Doc update.
362
363 2007-03-30  Chris Dearman  <chris@mips.com>
364
365         * utils.c (string_to_core_addr): Comment typo.
366
367 2007-03-30  Chris Dearman  <chris@mips.com>
368
369         * mips-tdep.c: Comment typo.
370
371 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
372
373         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
374         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
375         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
376         * config/powerpc/nm-ppc64-linux.h: Remove file.
377         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
378         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
379         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
380         * infptrace.c (call_ptrace): Likewise.
381         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
382         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
383         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
384         (store_register): Likewise.
385
386 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
387
388         * Makefile.in (varobj.o): Add missing dependency.
389
390 2007-03-29  Michael Snyder  <msnyder@access-company.com>
391
392         * MAINTAINERS: Update my email address.
393
394 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
395
396         Add support for exception handling with multiple versions of
397         the Ada runtime:
398         * ada-lang.c: Update general comments on how Ada exception catchpoints
399         are implemented.
400         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
401         (__gnat_raise_nodefer_with_msg): Delete.
402         (ada_unhandled_exception_name_addr_ftype): New type.
403         (exception_support_info): New type.
404         (ada_unhandled_exception_name_addr): Add forward declaration.
405         (ada_unhandled_exception_name_addr_from_raise): Likewise.
406         (default_exception_support_info): New constant.
407         (exception_support_info_fallback): Likewise.
408         (exception_info): New global variable.
409         (ada_exception_support_info_sniffer): New function.
410         (ada_executable_changed_observer): Likewise.
411         (ada_unhandled_exception_name_addr_from_raise): Renamed from
412         ada_unhandled_exception_name_addr.
413         (ada_unhandled_exception_name_addr): Reimplement to match the
414         latest Ada runtime implementation.
415         (error_breakpoint_runtime_sym_not_found): Delete.
416         (ada_exception_sym_name): Get the exception sym name from
417         exception_info rather than hardcoding it.
418         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
419         Update error handling.
420         * Makefile.in (ada-lang.o): Add dependency on observer.h.
421
422 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
423
424         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
425         (remote-st.o, uw-thread.o): Delete.
426         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
427         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
428         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
429         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
430         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
431         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
432         rs6000-*-lynxos* to an obsoletion stanza.
433         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
434         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
435         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
436         i[34567]86-*-netware*.
437         * NEWS: Mention deleted targets.
438
439         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
440         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
441         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
442         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
443         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
444         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
445         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
446         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
447         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
448         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
449         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
450         config/rs6000/tm-rs6000ly.h: Delete files.
451
452 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
453
454         * defs.h (deprecated_registers_changed_hook): Delete declaration.
455         * interps.c (clear_interpreter_hooks): Do not clear
456         deprecated_registers_changed_hook.
457         * regcache.c (registers_changed): Do not call it.
458         * top.c (deprecated_registers_changed_hook): Do not define it.
459         * mi/mi-interp.c (mi_command_loop): Do not clear it.
460         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
461         (tui_remove_hooks): Do not remove it.
462         (tui_selected_frame_level_changed_hook): Check for negative level.
463         Use get_selected_frame.
464         (tui_registers_changed_hook): Deleted.
465
466 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
467
468         * stabsread.c (add_undefined_type): Add extra parameter.
469         Now handles nameless types separately.
470         (struct nat): New type.
471         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
472         New static variables.
473         (read_type): Update calls to add_undefined_type.
474         (add_undefined_type_noname): New function.
475         (add_undefined_type_1): Renames from add_undefined_type.
476         (cleanup_undefined_types_noname): New function.
477         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
478         (cleanup_undefined_types): New handles nameless types separately.
479         (_initialize_stabsread): Initialize our new static constants.
480
481 2007-03-29  Denis Pilat  <denis.pilat@st.com>
482
483         * configure.ac: Test for signal.h.
484         * configure, config.in: Regenerate.
485
486 2007-03-29  Denis Pilat  <denis.pilat@st.com>
487
488         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
489         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
490
491 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
492
493         * arm-wince-tdep.c: New.
494         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
495         (MT_CFLAGS): Delete.
496         (TM_CLIBS): Delete.
497         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
498         solib-legacy.o, solib-svr4.o, and remove wince.o.
499         * configure.tgt (arm*-*-mingw32ce*): Add.
500         * signals/signals.c [HAVE_SIGNAL_H]: Check.
501         (do_target_signal_to_host): Silence 'not used' warning.
502         * config/arm/tm-wince.h: Remove.
503
504 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
505
506         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
507         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
508
509         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
510         * config/ia64/tm-linux.h: Remove file.
511         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
512         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
513         legacy_pc_in_sigtramp.
514         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
515         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
516         Remove func_name argument.
517         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
518
519         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
520         * target.c (update_current_target): Add to_have_steppable_watchpoint.
521         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
522         (HAVE_STEPPABLE_WATCHPOINT): Define.
523
524         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
525         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
526         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
527         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
528         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
529         target_insert_watchpoint, target_remove_watchpoint): Remove.
530         (FETCH_INFERIOR_REGISTERS): Define.
531         * ia64-linux-nat.c (ia64_register_addr): Make static.
532         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
533         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
534         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
535         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
536         (ia64_linux_stopped_by_watchpoint): Make static.
537         (ia64_linux_can_use_hw_breakpoint): New function.
538         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
539         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
540         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
541
542 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
543
544         * linespec.c: Include language.h.
545         (find_methods): Add language parameter.  Call
546         lookup_symbol_in_language.  Pass language down.
547         (add_matching_methods): Likewise.  Call
548         lookup_symbol_in_language.
549         (add_constructors): Likewise.
550         (find_method): Pass sym_class to collect_methods.
551         (collect_methods): Add sym_class parameter.  Pass language
552         down.
553         * symtab.c (lookup_symbol): Rename to ...
554         (lookup_symbol_in_language): ... this.  Add language
555         parameter.  Use passed language instead of current_language.
556         (lookup_symbol): New as wrapper around
557         lookup_symbol_in_language.
558         (lookup_symbol_aux): Add language parameter.  Use passed
559         language instead of current_language.
560         (search_symbols): Indent.
561         * symtab.h (enum language): Forward declare.
562         (lookup_symbol_in_language): Declare.
563         (lookup_symbol): Update description.
564         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
565         * ada-lang.c (restore_language): Remove.
566         (lookup_symbol_in_language): Remove.
567
568 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
569
570         * breakpoint.c (bpstat_num): Add int *num parameter.
571         * breakpoint.h (bpstat_num): Likewise.
572         * infcmd.c (continue_command): Adjust to new bpstat_num
573         interface.
574         (program_info): Likewise.
575
576 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
577
578         * config/sh/tm-sh.h: Remove file.
579         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
580         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
581         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
582         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
583
584 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
585
586         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
587         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
588         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
589         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
590         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
591         sequence if target_shortname is "remote".
592
593 2007-03-27  Anton Blanchard  <anton@samba.org>
594
595         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
596         instead of wordsize when looking for the LR in a stack frame.
597
598 2007-03-27  Andreas Schwab  <schwab@suse.de>
599             Daniel Jacobowitz  <dan@codesourcery.com>
600
601         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
602         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
603         argument.  Update all callers.
604         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
605         (dwarf2_frame_set_eh_frame_regnum): Rename to...
606         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
607         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
608         (dwarf2_frame_set_adjust_regnum): ...this.
609         (dwarf2_frame_eh_frame_regnum): Delete prototype.
610         * rs6000-tdep.c: Include "dwarf2-frame.h".
611         (rs6000_adjust_frame_regnum): Define.
612         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
613         Register rs6000_adjust_frame_regnum.
614
615         * Makefile.in (rs6000-tdep.o): Update dependencies.
616
617 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
618
619         * Makefile.in: Add support for a "pdf" target.
620
621 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
622
623         * amd64-tdep.c (amd64_init_frame_cache): New function.
624         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
625
626 2007-03-26  Nigel Stephens  <nigel@mips.com>
627             Maciej W. Rozycki  <macro@mips.com>
628
629         * ui-out.c (ui_out_field_core_addr): Truncate address to
630         TARGET_ADDR_BIT size before printing.
631
632 2007-03-22  Nigel Stephens  <nigel@mips.com>
633             Maciej W. Rozycki  <macro@mips.com>
634
635         * remote-mips.c (mips_xfer_memory): Update prototype.
636
637 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
638
639         * symfile.h: #include "symtab.h"
640
641 2007-03-22  Denis Pilat  <denis.pilat@st.com>
642
643         * utils.c (pagination_on_command, pagination_off_command):
644         Remove useless prototypes.
645
646 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
647
648         Fix PR pascal/2232.
649         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
650         instead of TYPE_NAME for object base class name.
651
652
653 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
654
655         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
656         Specify frame type in calls to frame_func_unwind().
657
658 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
659
660         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
661         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
662         (refine_prologue_limit): Delete.
663         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
664         Assume lim_pc is set.  Correct check for incomplete prologues.
665         Do not skip clobbers of the frame pointer.
666         * symtab.c (skip_prologue_using_sal): Fail if there is only one
667         sal.
668
669 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
670
671         * frame.c (frame_pop): Check to see whether there's a frame to
672         which we can pop first.
673
674 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
675
676         * MAINTAINERS (Write After Approval): Add myself.
677
678 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
679
680         * infrun.c (breakpoints_failed): Remove unnecessary variable.
681         (handle_inferior_event): Remove unnecessary braces.
682         * breakpoint.c (bpstat_what): Remove wrong comment.
683
684 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
685
686         * spu-tdep.c (spu_in_function_epilogue_p): New function.
687         (spu_gdbarch_init): Install it.
688
689 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
690
691         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
692         object types, not 0.
693
694 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
695
696         * spu-tdep.c (spu_frame_align): New function.
697         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
698
699 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
700
701         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
702         (spu_software_single_step): Likewise.
703         (spu_read_pc, spu_write_pc): New functions.
704         (spu_gdbarch_init): Install them.
705
706 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
707
708         * cli/cli-dump.c (struct callback_data): load_offset needs to 
709         have signed long type.
710
711 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
712
713         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
714         Revert the previous change that had some unexpected side-effects
715         on mips32.
716         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
717         function to get the address of the calling instruction.
718
719 2007-03-07  Denis Pilat  <denis.pilat@st.com>
720
721         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
722         get_selected_frame by deprecated_safe_get_selected_frame.
723
724 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
725
726         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
727         "gdb_string.h".  Don't include "nbsd-tdep.h".
728         (SIZEOF_STRUCT_REG): Remove.
729         (SHNBSD_SIZEOF_GREGS): New.
730         (shnbsd_supply_gregset, shnbsd_collect_gregset)
731         (shnbsd_regset_from_core_section): New functions.
732         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
733         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
734         shnbsd_supply_gregset, shnbsd_collect_gregset.
735         (shnbsd_gregset): New variable.
736         (shnbsd_init_abi): Set regset_from_core_section.
737         (GDB_OSABI_NETBSD_CORE): New define.
738         (shnbsd_core_osabi_sniffer): New function.
739         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
740         * Makefile.in (shnbsd-tdep.o): Update dependencies.
741         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
742         nbsd-tdep.o.
743         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
744
745 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
746
747         * gdbtypes.c (replace_type): Fix typo that caused us to not update
748         length of the types referenced by the new type CV ring.
749
750 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
751
752         * frame.c (frame_pop, frame_observer_target_changed): Call
753         reinit_frame_cache.
754         (flush_cached_frames): Rename to reinit_frame_cache and delete
755         old implementation.
756         * frame.h (flush_cached_frames): Delete prototype and update comment.
757
758         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
759         reinit_frame_cache instead of flush_cached_frames.  Do not call
760         select_frame after reinit_frame_cache.
761         * corelow.c (core_open): Likewise.
762         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
763         * infrun.c (prepare_to_proceed, context_switch)
764         (handle_inferior_event): Likewise.
765         * linux-fork.c (fork_load_infrun_state): Likewise.
766         * ocd.c (ocd_start_remote): Likewise.
767         * remote-e7000.c (e7000_start_remote): Likewise.
768         * remote-mips.c (device): Likewise.
769         * thread.c (switch_to_thread): Likewise.
770         * tracepoint.c (finish_tfind_command): Likewise.
771         * gdbarch.c: Regenerated.
772
773 2007-02-28  Jerome Guitton  <guitton@adacore.com>
774             Joel Brobecker  <brobecker@adacore.com>
775
776         * gdbtypes.c (check_typedef): Do not replace stub type if
777         the resolved type is not defined in the same objfile.
778
779 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
780
781         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
782
783 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
784
785         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
786         symbol for Ada units when the symbol is defined using 't' rather
787         than 'Tt' as symbol descriptor.
788
789 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
790
791         * config/mips/tm-nbsd.h: Delete file.
792         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
793         * config/sh/tm-nbsd.h: Delete file.
794         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
795
796 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
797
798         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
799         unused WRONG_PARAM value since it was recently deleted.
800
801 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
802
803         * varobj.c (varobj_update): Free temporary vectors.
804
805 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
806
807         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
808         * config/powerpc/tm-linux.h: Delete file.
809         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
810         (PROCESS_LINENUMBER_HOOK): Do not undefine.
811         (TEXT_SEGMENT_BASE): Do not redefine.
812         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
813         from config/rs6000/tm-rs6000.h.
814         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
815         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
816         (TEXT_SEGMENT_BASE): Remove.
817         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
818         (rs6000_in_solib_return_trampoline): Remove.
819         (SKIP_TRAMPOLINE_CODE): Remove.
820         (rs6000_skip_trampoline_code): Remove.
821         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
822         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
823         (FP0_REGNUM): Remove.
824         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
825         (rs6000_set_host_arch_hook): Remove.
826         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
827         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
828         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
829         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
830         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
831         * rs6000-nat.c: Include "rs6000-tdep.h".
832         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
833         (set_host_arch): Rename to ...
834         (rs6000_create_inferior): ... this.  Make public.
835         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
836         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
837         (rs6000_create_inferior): Remove.
838         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
839         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
840         set_gdbarch_in_solib_return_trampoline, and
841         set_gdbarch_skip_trampoline_code.
842         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
843         from config/rs6000/tm-rs6000.h.
844
845 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
846
847         * buildsym.c (record_producer): Do nothing if no producer is provided.
848
849 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
850
851         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
852         to check changelist is non-NULL.  Call error if the frontend tries
853         to update a non-root variable.
854
855         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
856
857 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
858
859         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
860         (dwarf2_frame_sniffer): Update.
861         (dwarf2_signal_frame_this_id): New function.
862         (dwarf2_signal_frame_unwind): Use it.
863         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
864         * frame.c (frame_func_unwind): Add this_type argument.
865         (get_frame_func): Update.
866         (frame_unwind_address_in_block): Add this_type argument and check it.
867         Fix a typo.
868         (get_frame_address_in_block): Update.
869         * frame.h (enum frame_type): Move higher in the file.
870         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
871         argument.
872
873         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
874         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
875         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
876         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
877         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
878         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
879         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
880         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
881         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
882         frame_func_unwind and frame_unwind_address_in_block to specify
883         the frame type.  Use frame_unwind_address_in_block instead of
884         frame_pc_unwind in sniffers.
885
886 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
887
888         * frame.c (deprecated_selected_frame): Rename to...
889         (selected_frame): ...this.  Make static.
890         (get_selected_frame, select_frame): Update.
891         * frame.h (deprected_select_frame): Delete.
892         (deprecated_safe_get_selected_frame): Update comments.
893
894         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
895         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
896         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
897         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
898         tui/tui.c: Replace references to deprecated_selected_frame.
899
900 2007-02-27  Fred Fish  <fnf@specifix.com>
901
902         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
903         directly decrement the stack pointer, accumulate their operand into 
904         the stack offset, and mark the function as not being frameless.
905
906 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
907
908         * arch-utils.c (selected_byte_order): New.
909         * arch-utils.h (selected_byte_order): New prototype.
910         * remote-sim.c (gdbsim_open): Use selected_byte_order.
911
912 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
913
914         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
915         (default_symfile_offsets): Check VMA here.  Update section VMAs.
916
917 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
918
919         * remote.c (init_remote_state): Add special handling for placeholder
920         registers.
921
922 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
923
924         * Makefile.in (XMLFILES): Include $(TDEP_XML).
925         (filenames_h): New variable.
926         (clean): Clean up xml-builtin.c and stamp-xml.
927         (arm-linux-nat.o): Update.
928         * config/arm/linux.mh (TDEP_XML): Define.
929         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
930         (arm_linux_has_wmmx_registers): New.
931         (GET_THREAD_ID): Fix typo.
932         (IWMMXT_REGS_SIZE): Define.
933         (fetch_wmmx_regs, store_wmmx_regs): New.
934         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
935         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
936         (super_xfer_partial, arm_linux_xfer_partial): New.
937         (_initialize_arm_linux_nat): Use them.
938         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
939         (xml_builtin_xfer_partial): New function.
940         * xml-support.h (xml_builtin_xfer_partial): New prototype.
941         * NEWS: Update mention of iWMMXt support.
942
943 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
944
945         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
946         if there are no FPA registers.
947         (arm_dwarf_reg_to_regnum): New function.
948         (arm_register_type, arm_register_name): Return minimal values for
949         unsupported registers.
950         (arm_register_sim_regno): Handle iWMMXt registers.
951         (arm_gdbarch_init): Record missing FPA registers if indicated by
952         a target description.  Recognize iWMMXt registers.  Only register
953         "info float" for FPA.  Use ARM_NUM_REGS.  Register
954         arm_dwarf_reg_to_regnum.
955         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
956         constants.
957         (struct gdbarch_tdep): Add have_fpa_registers.
958         * features/xscale-iwmmxt.xml: Update capitalization.
959         * regformats/arm-with-iwmmxt.dat: Regenerated.
960
961 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
962
963         * NEWS (New targets): Add entry for the Toshiba Media Processor.
964
965 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
966
967         * MAINTAINERS (mep): New target.
968
969 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
970
971         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
972         Richard Sandiford:
973         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
974         (mep-tdep.o): New rule.
975         * configure.tgt (mep-*-*): New target.
976         * mep-tdep.c: New file.
977         * config/mep/mep.mt: New file.
978
979 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
980
981         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
982         BREAKPOINT_HIT and STOP_UNKNOWN.
983
984 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
985
986         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
987
988 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
989
990         * gdb_expat.h (XMLCALL): Define if not already defined.
991
992 2007-02-20  Andreas Schwab  <schwab@suse.de>
993
994         * Makefile.in (symfile.o): Update dependencies.
995
996 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
997
998         * MAINTAINERS: Disable -Werror for cris simulator.  Build
999         sparc64-solaris2.10 instead of the broken sparc-elf.
1000         * solib-frv.c: Include "solib.h".
1001         * Makefile.in (solib-frv.o): Update.
1002         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1003         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1004         (xtensa_frame_this_id, xtensa_frame_prev_register)
1005         (xtensa_push_dummy_call): Use %p.
1006
1007 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
1008
1009         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1010         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1011         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1012         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1013         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1014         (sparc-linux-tdep.o): Update.
1015
1016 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
1017
1018         * xtensa-tdep.h (xtensa_reg_mask_t): New.
1019         (xtensa_mask_t): Change mask field to be a separate array.
1020         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1021         (xtensa_pseudo_register_write, xtensa_unwind_pc)
1022         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1023         (xtensa_breakpoint_from_pc): Remove implicit type casting.
1024         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1025         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1026         (mask14, mask15): Rename to
1027         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1028         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1029         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1030         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1031         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1032         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1033         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1034         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1035         (xtensa_submask14, xtensa_submask15): New.
1036         (rmap): Follow strict aliasing rules doing static initialization.
1037
1038 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
1039
1040         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1041         handling from here...
1042         (tdesc_register_type): ...to here.
1043         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1044         * features/arm-core.xml: Use code_ptr and data_ptr.
1045
1046 2007-02-13  Denis Pilat  <denis.pilat@st.com>
1047
1048         * varobj.h (enum varobj_update_error): New enum.
1049         * varobj.c (struct varobj_root): Add is_valid member.
1050         (varobj_get_type): Check for invalid varobj.
1051         (varobj_get_attributes): Likewise.
1052         (variable_editable):Likewise.
1053         (varobj_update): Likewise.  Use varobj_update_error.
1054         (new_root_variable): Set root varobj as valid by default.
1055         (varobj_invalidate): New function.
1056         * symfile.c (clear_symtab_users): Use varobj_invalidate.
1057         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1058         Use varobj_update_error.
1059
1060 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1061
1062         Fix PR pascal/2223.
1063         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1064         Pascal language marker.
1065         * dwarf2read.c (set_cu_language): Likewise.
1066
1067 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
1068
1069         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1070         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1071         instead of target_terminal_init since inferior_ptid isn't set yet.
1072
1073 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
1074
1075         * MAINTAINERS (Write After Approval): Add myself.
1076
1077 2007-02-09  Fred Fish  <fnf@specifix.com>
1078
1079         Based on work by Apple Computer, Inc.
1080         * event-top.c (async_request_quit): Call quit() whenever either
1081         quit_flag is set or immediate_quit is set.
1082
1083 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1084
1085         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1086         type to a pointer to const struct block.
1087         (ada_lookup_symbol_list): Don't cast away constness when calling
1088         remove_out_of_scope_renamings.
1089
1090 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1091
1092         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1093         address of 'filename'; it is always non null.
1094
1095 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
1096
1097         * exec.c (add_to_section_table): Do not discard empty sections.
1098
1099 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1100
1101         * features/Makefile, features/arm-with-iwmmxt.xml,
1102         features/gdbserver-regs.xsl, features/number-regs.xsl,
1103         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1104         * regformats/arm-with-iwmmxt.dat: Generate.
1105         * NEWS: Mention iWMMXt.
1106
1107 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1108
1109         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1110         (xml-tdesc.o): Update.
1111         * xml-support.c: Add a comment.
1112         (gdb_xml_enums_boolean): New variable.
1113         (gdb_xml_parse_attr_enum): Use strcasecmp.
1114         * xml-support.h (gdb_xml_enums_boolean): Declare.
1115         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1116         next_regnum, and current_union.
1117         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1118         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1119         (field_attributes, union_children, reg_attributes, union_attributes)
1120         (vector_attributes, feature_attributes, feature_children): New.
1121         (target_children): Make static.  Add <feature>.
1122         (tdesc_elements): Make static.
1123         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1124         (struct tdesc_feature, tdesc_feature_p): New types.
1125         (struct target_desc): Add features member.
1126         (struct tdesc_arch_data, tdesc_data): New.
1127         (target_find_description): Clarify error message.  Warn about
1128         ignored register descriptions.
1129         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1130         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1131         (tdesc_data_cleanup, tdesc_numbered_register)
1132         (tdesc_numbered_register_choices, tdesc_find_register)
1133         (tdesc_register_name, tdesc_register_type)
1134         (tdesc_remote_register_number, tdesc_register_reggroup_p)
1135         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1136         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1137         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1138         (tdesc_create_feature, tdesc_record_type): New.
1139         (free_target_description): Free features.
1140         (_initialize_target_descriptions): Initialize tdesc_data.
1141         * arch-utils.c (default_remote_register_number): New.
1142         * arch-utils.h (default_remote_register_number): New prototype.
1143         * target-descriptions.h (set_tdesc_pseudo_register_name)
1144         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1145         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1146         (tdesc_numbered_register, tdesc_numbered_register_choices)
1147         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1148         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1149         (tdesc_create_reg): Declare.
1150         * gdbarch.sh (remote_register_number): New entry.
1151         * gdbarch.c, gdbarch.h: Regenerate.
1152         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1153         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1154
1155         * arm-tdep.c (arm_register_aliases): New.
1156         (arm_register_name_strings): Rename to...
1157         (arm_register_names): ...this.  Make const.  Delete the old version.
1158         (current_option, arm_register_byte): Delete.
1159         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
1160         (value_of_arm_user_reg): New.
1161         (arm_gdbarch_init): Verify any described registers.  Call
1162         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
1163         for standard register names.
1164         (_initialize_arm_tdep): Do not adjust arm_register_names.
1165         * user-regs.c (struct user_reg): Add baton member.
1166         (append_user_reg, user_reg_add_builtin, user_regs_init)
1167         (user_reg_add, value_of_user_reg): Use a baton for user
1168         register functions.
1169         * std-regs.c: Update.
1170         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1171         (user_reg_add): Add baton argument.
1172         * NEWS: Mention target description register support.
1173         * features/arm-core.xml, features/arm-fpa.xml: New.
1174         * eval.c (evaluate_subexp_standard): Allow ptype $register
1175         when the program is not running.
1176
1177 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
1178
1179         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
1180
1181 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1182
1183         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1184         info->disassembler_options to "any".
1185
1186 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1187
1188         * varobj.c (install_new_value): Only call value_get_print_value
1189         if changeable.
1190
1191 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1192
1193         Reported by timeless@gmail.com:
1194         * gdb/target.c (target_flash_erase): Do not return void value.
1195         (target_flash_done): Likewise.
1196         * gdb/cli/cli-cmds.c (source_command): Likewise.
1197
1198 2007-02-08  Fred Fish  <fnf@specifix.com>
1199
1200         Based on work by Apple Computer, Inc.
1201         * event-top.c (handle_sigint): Set quit_flag.
1202         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
1203         if quit_flag has already been reset.
1204
1205 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1206
1207         * ser-mingw.c (pipe_windows_close): Move variable initialization back
1208         up.
1209
1210 2007-02-08  Fred Fish  <fnf@specifix.com>
1211
1212         * defs.h (request_quit): Remove declaration.
1213         * utils.c (request_quit): Remove definition.
1214
1215 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
1216             Jan Kratochvil  <jan.kratochvil@redhat.com>
1217             Daniel Jacobowitz  <dan@codesourcery.com>
1218
1219         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1220         (skip_prologue): Allow bl->blrl used by PIC code.
1221
1222 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
1223             Daniel Jacobowitz  <dan@codesourcery.com>
1224
1225         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1226         initialize tmp_obstack.
1227         * p-valprint.c (pascal_object_print_value_fields)
1228         (pascal_object_print_value): Likewise.
1229
1230 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1231
1232         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1233
1234 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
1235
1236         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1237         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1238
1239 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
1240
1241         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1242         (xml_cache): New.
1243         (tdesc_parse_xml): Cache expanded descriptions.
1244
1245 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
1246
1247         * Makefile.in (XMLFILES): New.
1248         (COMMON_OBS): Add xml-builtin.o.
1249         (xml-builtin.c, stamp-xml): New rules.
1250         (xml-tdesc.o): Update.
1251         * features/feature_to_c.sh: New file.
1252         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1253         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1254         (gdb_xml_start_element): Initialize scope after possibly reallocating
1255         scopes.  Move cleanup later.  Handle the XInclude description
1256         specially.
1257         (gdb_xml_end_element): Only parse the body if there is a current element.
1258         Call XML_DefaultCurrent if there is no element.
1259         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1260         (struct xinclude_parsing_data, xinclude_start_include)
1261         (xinclude_end_include, xml_xinclude_default)
1262         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1263         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1264         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1265         * xml-support.h (xml_fetch_another, xml_process_xincludes)
1266         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1267         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
1268         XInclude directives.  Use the compiled in DTD.
1269         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
1270         directory name.  Do not warn here.
1271         (file_read_description_xml): Update call.  Warn here instead.  Pass
1272         a dirname as baton.
1273         (fetch_available_features_from_target): New.
1274         (target_read_description_xml): Use it.
1275         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
1276         to handle XInclude.
1277         * features/xinclude.dtd: New file.
1278
1279 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
1280
1281         * linux-thread-db.c (check_for_thread_db): Return early if we have
1282         no libthread_db support.
1283
1284 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
1285
1286         * mi/mi-parse.h: Include <sys/time.h>.
1287
1288 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
1289
1290         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1291         instead of print_variable_value to print values.
1292
1293 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
1294
1295         * mi/mi-main.c: Numerous formatting changes.
1296         (mi_cmd_data_write_register_values): Replace clause inadvertantly
1297         removed in my previous change.
1298
1299 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
1300
1301         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1302         Use 1000000L instead of 1000000.
1303
1304 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
1305
1306             Based on work by Apple Computer, Inc.
1307
1308         * configure.ac: Test for sys/resource.h and getrusage.
1309         * configure, config.in: Regenerate.
1310
1311         * mi/mi-main.c: Include <sys/resource.h> if present.
1312         (rusage): Declare if HAVE_GETRUSAGE.
1313         (current_command_ts, do_timings): New static variables.
1314         (timestamp, print_diff_now, print_diff, timeval_diff):
1315         New static timing functions.
1316         (mi_cmd_enable_timings): New function for new MI command.
1317         (captured_mi_execute_command, mi_execute_async_cli_command): 
1318         Call timing functions.
1319
1320         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1321         -enable-timings.
1322
1323         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1324
1325         * mi/mi-parse.h: (mi_timestamp): New structure.
1326         (mi_parse): Add mi_timestamp* member.
1327
1328 2007-02-02  Denis Pilat  <denis.pilat@st.com>
1329
1330         * thread.c (make_cleanup_restore_current_thread): New function.
1331         (info_threads_command): Use of make_cleanup_restore_current_thread
1332         to restore the current thread and the selected frame.
1333         (restore_selected_frame): New function.
1334         (struct current_thread_cleanup): Add frame_id field.
1335         (do_restore_current_thread_cleanup): Add restoring of the selected
1336         frame.
1337         (make_cleanup_restore_current_thread): Likewise.
1338         (thread_apply_all_command): backup the selected frame while 
1339         entering the function and restore it at exit.
1340         (thread_apply_command): Likewise.
1341
1342 2007-02-02  Denis Pilat  <denis.pilat@st.com>
1343
1344         * MAINTAINERS (Write After Approval): Add myself to the list.
1345
1346 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1347
1348         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1349         (m32r_store_register): Ditto.
1350
1351 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
1352
1353         * ser-mingw.c (pipe_windows_open)
1354         (pipe_windows_read, pipe_windows_write): Declare
1355         variables at the top of the function.
1356
1357 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
1358
1359         * doublest.c (floatformat_from_length): Use the right element from
1360         gdbarch floatformats.
1361         (floatformat_from_type, extract_typed_floating)
1362         (store_typed_floating): Likewise.
1363         * doublest.h: Remove declarations for undefined floatformat arrays.
1364         * gdbarch.sh (float_format, double_format, long_double_format): Change
1365         to pairs.
1366         (pformat): Update for pairs.
1367         * gdbarch.c, gdbarch.h: Regenerated.
1368         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1369         (floatformats_ieee_double_littlebyte_bigword)
1370         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1371         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1372         (floatformats_vax_d): New variables.
1373         (builtin_type_ieee_single, builtin_type_ieee_double)
1374         (builtin_type_arm_ext, builtin_type_ia64_spill)
1375         (builtin_type_ia64_quad): Replace arrays with individual types.
1376         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1377         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1378         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1379         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1380         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1381         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1382         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1383         unused and endian-specific types.
1384         (recursive_dump_type): Update for floatformat pairs.
1385         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
1386         (build_gdbtypes): Use build_flt.
1387         (_initialize_gdbtypes): Update set of initialized types.
1388         * gdbtypes.h: Update declarations to match gdbtypes.c.
1389         (struct main_type): Store a pointer to two floatformats.
1390         * arch-utils.c (default_float_format, default_double_format): Delete.
1391         * arch-utils.h (default_float_format, default_double_format): Delete.
1392
1393         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1394         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1395         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1396         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1397         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1398
1399 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
1400
1401         * target.c (maintenance_print_target_stack): New function.
1402         (initialize_targets): Add new "maintenance print target-stack"
1403         command.
1404
1405 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
1406
1407         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1408
1409 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
1410
1411         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1412         (struct dwarf2_loclist_baton): Likewise.
1413
1414 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
1415
1416         * cli/cli-script.c: Include breakpoint.h.
1417         (build_command_line): Require arguments only for if and while
1418         commands.
1419         (get_command_line, execute_user_command, execute_control_command):
1420         Fix wording of warning messages.
1421         (print_command_lines): Print breakpoint commands.
1422         (execute_control_command): Call commands_from_control_command to
1423         handle the `commands' command inside a body of a flow-control
1424         command.
1425         (read_next_line): Recognize the `commands' command and build a
1426         command line structure for it.
1427         (recurse_read_control_structure, read_command_lines): Handle
1428         `commands' similarly to `if' and `while'.
1429
1430         * breakpoint.c (get_number_trailer): Document the special meaning
1431         of NULL as the first argument PP.
1432         (commands_from_control_command): New function.
1433
1434         * breakpoint.h (commands_from_control_command): Add prototype.
1435
1436         * defs.h (commands_control): New enumerated value for enum
1437         command_control_type.
1438
1439 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
1440
1441         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1442         (ada_exception_sal): Update accordingly.
1443
1444 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
1445
1446         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1447         * NEWS: Describe CHAR array vs. string identifcation rules.
1448
1449 2007-01-25  Paul Brook  <paul@codesourcery.com>
1450
1451         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1452
1453 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
1454
1455         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1456         expression is empty, bother to return the 'optimized out' value we
1457         construct.  (Thanks to Carl Burch.)
1458
1459 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1460
1461         * varobj.c (c_value_of_root, c_value_of_child)
1462         (cplus_describe_child): Don't call release_value.
1463
1464 2007-01-24  Thiemo Seufer  <ths@mips.com>
1465
1466         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1467         initialization.
1468
1469 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1470
1471         Refactor getting children name, value and type access 
1472         for varobjs in C++.
1473         * varobj.c (get_type_deref): Remove.
1474         (adjust_value_for_child_access): New.
1475         (c_number_of_children): Use the above.
1476         (c_describe_child): Likewise.
1477         (enum accessibility): New.
1478         (match_accessibility): New function.
1479         (cplus_describe_child): New function.
1480         (cplus_name_of_child, cplus_value_of_child)
1481         (cplus_type_of_child): Reimplement in terms
1482         of cplus_describe_child.
1483         (cplus_number_of_children): Use 
1484         adjust_value_for_child_access.
1485         
1486 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1487
1488         Fix computation of the 'editable' attribute and
1489         value changeability for for references.
1490         * varobj.c (get_value_type): New function.
1491         (c_variable_editable): Use get_value_type.
1492         (varobj_value_is_changeable): Likewise.
1493                 
1494 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
1495
1496         * source.c (find_and_open_source): Try rewriting the source
1497         path inside filename if dirname is NULL.
1498
1499 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
1500
1501         * dwarf2read.c (add_partial_symbol): Create an extra partial
1502         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1503         (new_symbol): Likewise for symbols.
1504
1505 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
1506
1507         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1508
1509 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
1510         
1511         * value.c (value_primitive_field): Copy the full 'location' 
1512         contents, instead of assuming that copying ADDRESS will 
1513         bring over everything in the union.  Remove obsolete comment.
1514         
1515 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
1516
1517         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1518         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1519         (m32c_m16c_pointer_to_address): Separate code from declarations.
1520
1521 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
1522
1523         * target.c (update_current_target): Correct typo.
1524
1525 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
1526
1527         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1528         declaration.
1529
1530 2007-01-11  Andrew Cagney  <cagney@redhat.com>
1531             Daniel Jacobowitz  <dan@codesourcery.com>
1532             Jan Kratochvil  <jan.kratochvil@redhat.com>
1533
1534         * dwarf2-frame.c (execute_cfa_program): New support of
1535         `DW_CFA_GNU_negative_offset_extended'.
1536
1537 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1538
1539         * NEWS: Mention flash support for "load" and new remote packets.
1540
1541 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
1542
1543         * breakpoint.c (delete_command): Skip redundant loop iterations.
1544
1545 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1546
1547         * gdbarch.sh (register_type): Update comment.
1548         * gdbarch.h: Regenerated.
1549         * arch-utils.c (generic_register_size): Call register_type.
1550         * ia64-tdep.c (ia64_extract_return_value): Likewise.
1551         * m32c-tdep.c (check_for_saved): Likewise.
1552         * mips-tdep.c (mips_print_register, print_gp_register_row)
1553         (mips_print_registers_info): Likewise.
1554         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1555         Likewise.
1556         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1557         (sh64_do_register, sh64_print_register)
1558         (sh64_media_print_registers_info): Likewise.
1559         * tui/tui-regs.c (tui_register_format): Likewise.
1560
1561 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1562
1563         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1564
1565         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1566         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1567         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1568         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1569         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1570         (make_symbol_completion_list): Likewise.
1571
1572 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1573             Daniel Jacobowitz  <dan@codesourcery.com>
1574
1575         * buildsym.c (end_symtab): Use preallocated symtab if available.
1576         Fill in SYMBOL_SYMTAB.
1577         * buildsym.h (struct subfile): Add symtab member.
1578         * dwarf2read.c (struct dwarf2_cu): Add line_header.
1579         (struct file_entry): Add symtab.
1580         (free_cu_line_header): New function.
1581         (read_file_scope): Use it.  Save line_header in the cu.  Process
1582         lines before DIEs.
1583         (add_file_name): Initialize new symtab member.
1584         (dwarf_decode_lines): Create symtabs for included files.
1585         (new_symbol): Set SYMBOL_SYMTAB.
1586         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1587         (search_symbols): Likewise.
1588         * symtab.h (struct symbol): Add symtab member.
1589         (SYMBOL_SYMTAB): Define.
1590
1591 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1592
1593         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1594
1595 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1596
1597         * arch-utils.c (show_endian): Correct reversed condition.
1598
1599 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1600
1601         * MAINTAINERS (Write After Approval): Add myself.
1602
1603 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
1604             Vladimir Prus  <vladimir@codesourcery.com>
1605
1606         Fix 'selected frame' varobjs.
1607         * varobj.c (struct varobj): Remove the error field.
1608         (varobj_set_value): Don't check var->error.
1609         (install_new_value): Don't set var->error.
1610         (varobj_update): Always pass the new value
1611         of the root via install_new_value.
1612         (create_child): Don't set error field.
1613         (new_variable): Likewise.
1614         (c_value_of_root): Always reevaluate the value
1615         of selected frame varobjs in the selected frame.
1616         Don't call reinit_frame_cache.
1617
1618 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
1619
1620         * source.c (_initialize_source): Improve the help text of
1621         the substitute-path commands.
1622
1623 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
1624
1625         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1626         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1627         (frv_skip_prologue): Remove prototypes.
1628         (frv_adjust_breakpoint_address): Renamed from
1629         frv_gdbarch_adjust_breakpoint_address.
1630         (frv_gdbarch_init): Adjust.
1631
1632 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
1633
1634         * gdbarch.sh (deprecated_extract_return_value)
1635         (deprecated_store_return_value): Remove.
1636         (extract_return_value, store_return_value): Remove default values.
1637         * gdbarch.c, gdbarch.h: Regenerate.
1638         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1639         (legacy_store_return_value): Remove.
1640         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1641         Remove.
1642
1643         * mi/mi-main.c: Remove obsolete comment.
1644
1645         * regcache.c, regcache.h (deprecated_register_bytes)
1646         (deprecated_read_register_bytes)
1647         (deprecated_write_register_bytes): Remove.
1648
1649         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1650         Don't forget to move destination pointer.
1651
1652 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1653
1654         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1655
1656 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
1657
1658         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1659         past entry function with recent newlib.
1660
1661 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
1662
1663         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
1664         introduction.  Specify -var-update more exactly.
1665
1666 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
1667
1668         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1669
1670 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
1671
1672         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1673         the Global Maintainers' invitation to be a global maintainer.
1674
1675 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
1676
1677         * infrun.c (singlestep_pc): New variable.
1678         (resume): Set singlestep_pc.
1679         (context_switch): Add a debugging message.  Flush the frame cache.
1680         (handle_inferior_event): Add debugging messages.  Handle thread
1681         hops when a software single step has completed.  Let context_switch
1682         handle flushing the frame cache.
1683
1684 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1685
1686         * NEWS: Mention target descriptions, "set tdesc filename",
1687         "unset tdesc filename", "show tdesc filename", and
1688         qXfer:features:read.
1689         * arch-utils.c (choose_architecture_for_target): New function.
1690         (gdbarch_info_fill): Call it.
1691         * target-descriptions.c (struct property): Make members non-const.
1692         (struct target_desc): Add arch member.
1693         (target_description_filename): New variable.
1694         (target_find_description): Try via XML first.
1695         (tdesc_architecture): New.
1696         (free_target_description, make_cleanup_free_target_description): New.
1697         (set_tdesc_property): Call xstrdup.
1698         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1699         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1700         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1701         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1702         * target-descriptions.h (tdesc_architecture)
1703         (make_cleanup_free_target_description, set_tdesc_architecture): New
1704         prototypes.
1705         * Makefile.in (SFILES): Add xml-tdesc.c.
1706         (COMMON_OBS): Add xml-tdesc.o.
1707         (target-descriptions.o): Update.
1708         (xml-tdesc.o): New rule.
1709         * xml-tdesc.c, xml-tdesc.h: New files.
1710         * remote.c (PACKET_qXfer_features): New enum.
1711         (remote_protocol_features): Add qXfer:features:read.
1712         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1713         (_initialize_remote): Register qXfer:features:read.
1714         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1715         * features/gdb-target.dtd: New file.
1716
1717 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1718
1719         * copyright.sh: Clarify error.
1720
1721 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1722
1723         * symtab.c (matching_bfd_sections): Fix VMA matching for
1724         prelinked objects.
1725
1726 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1727
1728         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1729         nested symbols.
1730
1731 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1732
1733         Updated copyright notices for most files.
1734
1735 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1736
1737         * copyright.sh (prunes): Add step-line.inp and step-line.c.
1738
1739 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1740
1741         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1742         exec_prefix.
1743         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1744         '${prefix}'.
1745         * configure, config.in: Regenerate.
1746         * defs.h (debug_file_directory): Declare.
1747         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
1748         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
1749         relocate it if DEBUGDIR_RELOCATABLE.
1750         * symfile.c (debug_file_directory): Make non-static.
1751         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1752         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1753         (_initialize_symfile): Don't initialize debug_file_directory here.
1754
1755 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
1756
1757         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1758         statements.
1759
1760 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1761
1762         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1763         frame_unwind_register to recurse.
1764         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1765         (alpha_heuristic_frame_prev_register): Likewise.
1766         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1767         * m32c-tdep.c (m32c_prev_register): Likewise.
1768         * frame.c (frame_register_unwind_location): Remove FIXME.
1769
1770 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1771             Eli Zaretskii  <eliz@gnu.org>
1772
1773         * copyright.sh: New file.
1774
1775 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
1776
1777         * configure.ac: Check for XML_StopParser.
1778         * xml-support.c (gdb_xml_body_text): Check for an error.
1779         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1780         (gdb_xml_end_element_wrapper): Likewise.
1781         * config.in, configure: Regenerated.
1782
1783 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
1784
1785         * varobj.c (install_new_value): Always update print_value.
1786         (value_get_print_value): Immediately return NULL for missing
1787         values.
1788
1789 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
1790
1791         * configure.ac: Tighten pattern for extracting value of
1792         DEPRECATED_TM_FILE from the target makefile fragment.
1793         * configure: Regenerated.
1794
1795 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
1796
1797         * linux-nat.c (struct simple_pid_list): Add status.
1798         (add_to_pid_list): Record the PID's status.
1799         (linux_record_stopped_pid): Likewise.  Make static.
1800         (pull_pid_from_list): Return the saved status.
1801         (linux_nat_handle_extended): Deleted.
1802         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1803         Make static.  Handle non-SIGSTOP for a new thread's first signal.
1804         (flush_callback): Handle unexpected pending signals.
1805         (linux_nat_wait): Update calls to changed functions.
1806         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1807         Remove prototypes for newly static functions.
1808
1809 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
1810
1811         * gdbarch.sh (value_from_register): New gdbarch function.
1812         * gdbarch.c, gdbarch.h: Regenerate.
1813         * findvar.c (default_value_from_register): New function.
1814         (value_from_register): Use gdbarch_value_from_register.
1815         * value.h (default_value_from_register): Declare.
1816         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1817         spu_value_to_register): Remove.
1818         (spu_value_from_register): New function.
1819         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1820         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1821         Call set_gdbarch_value_from_register.
1822         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1823         s390_value_to_register): Remove.
1824         (s390_value_from_register): New function.
1825         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1826         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1827         Call set_gdbarch_value_from_register.
1828
1829 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
1830
1831         * NEWS: Add "set sysroot" and "show sysroot".
1832         * solib.c (solib_absolute_prefix): Delete.  Replace
1833         all uses with gdb_sysroot.
1834         (_initialize_solib): Add "set sysroot" and "show sysroot".
1835         Make "solib-absolute-prefix" an alias to it.
1836
1837 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
1838
1839         * frame.c (get_frame_register_bytes): New function.
1840         (put_frame_register_bytes): Likewise.
1841         * frame.h (get_frame_register_bytes): Declare.
1842         (put_frame_register_bytes): Likewise.
1843         * findvar.c (value_from_register): Always construct lval_register
1844         values.  Use get_frame_register_bytes.
1845         * valops.c (value_assign): Use get_frame_register_bytes and
1846         put_frame_register_bytes.
1847
1848 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
1849
1850         * MAINTAINERS: Update Stan Shebs' email address.
1851
1852 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
1853
1854         * ada-lang.c (is_known_support_routine): Improve the implementation.
1855
1856 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
1857
1858         * ada-lang.c: Add include of source.h.
1859         (is_known_support_routine): Improve the check verifying that the file
1860         associated to this frame exists.
1861         * Makefile.in (ada-lang.o): Add dependency on source.h.
1862
1863 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
1864
1865         * ax-general.c (ax_const_l): Select proper opcode for the given
1866         value.
1867
1868 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
1869
1870         * varobj.c (c_value_of_root): Don't select frame if variable
1871         object is out of scope.
1872
1873 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
1874
1875         * varobj.c (struct varobj): New member print_value.
1876         (install_new_value): Compare last printed value with current one
1877         instead of contents.
1878         (new_variable): Initialize var->print_value to NULL.
1879         (free_variable): Free var->print_value.
1880         (value_get_print_value): New function derived from
1881         c_value_of_variable.
1882         (c_value_of_variable): Use value_get_print_value.
1883
1884 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1885
1886         * i386-tdep.c (i386_analyze_stack_align): Add comment.
1887
1888 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1889
1890         * NEWS: Add entries for new catch commands.
1891
1892 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
1893
1894         * dwarf2read.c (partial_die_info): Add field has_byte_size.
1895         (add_partial_symbol): Correct identification of external references.
1896         (process_structure_scope): Likewise.
1897         (read_partial_die): Handle DW_AT_byte_size attribute.
1898
1899 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
1900
1901         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1902
1903 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
1904
1905         * varobj.c (get_type_deref): Fix variable objects for references to
1906         pointers.
1907
1908 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1909
1910         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
1911         with no symbols.
1912
1913 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1914
1915         * memory-map.c (struct_memory_map_parsing_data): Remove most
1916         members.  Make property_name an array.
1917         (free_memory_map_parsing_data, memory_map_start_element)
1918         (memory_map_end_element, memory_map_character_data): Delete.
1919         (memory_map_start_memory, memory_map_end_memory)
1920         (memory_map_start_property, memory_map_end_property): New functions.
1921         (property_attributes, memory_children, memory_type_enum)
1922         (memory_attributes, memory_map_children, memory_map_elements): New.
1923         (parse_memory_map): Rewrite.
1924         * xml-support.c (debug_xml): New.
1925         (xml_get_required_attribute, xml_get_integer_attribute)
1926         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1927         Delete.
1928         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1929         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1930         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1931         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1932         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1933         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1934         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1935         New.
1936         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1937         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1938         (enum gdb_xml_element_flag, struct gdb_xml_element)
1939         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1940         (struct gdb_xml_enum): New.
1941         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1942         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1943         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1944         (xml_get_required_attribute, xml_get_integer_attribute)
1945         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1946         * Makefile.in (xml_support_h, xml-support.o): Update.
1947
1948 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1949
1950         * Makefile.in (eval.o): Update dependencies.
1951         * eval.c: Include "ui-out.h" and "exceptions.h".
1952         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1953         Use value_zero if an error occurs when avoiding side effects.
1954         * varobj.c (c_value_of_root): Initialize new_val.
1955
1956 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1957
1958         * varobj.c (varobj_list_children): Stop if the number of children is
1959         unknown.
1960         (c_number_of_children):
1961
1962 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
1963
1964         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1965         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1966         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1967         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1968         sizeof, instead of hardcoded constants.
1969
1970 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1971
1972         * CONTRIBUTE: Use sourceware.org.
1973
1974 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1975
1976         * buildsym.c (start_subfile): Handle producer.
1977         (record_producer): New function.
1978         * buildsym.h (struct subfile): Include producer.
1979         (record_producer): New prototype.
1980         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1981         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1982         armcc_cfa_offsets_reversed.
1983         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1984         (dwarf2_frame_find_quirks): New function.
1985         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
1986         (decode_frame_entry_1): Record the CIE version.  Record the
1987         augmentation.  Skip armcc augmentations.
1988         * dwarf2read.c (read_file_scope): Save the producer.
1989         * symtab.h (struct symtab): Rename unused version member to
1990         producer.
1991
1992 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
1993
1994         * configure.ac (build_warnings): Use -Wall and
1995         -Wdeclaration-after-statement.
1996         * configure: Regenerated.
1997
1998 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
1999
2000         Simplify access to variours properties of child
2001         variable objects in C.
2002         * varobj.c (value_struct_element_index): New function.
2003         (c_describe_child): New function.
2004         (c_name_of_child, c_value_of_child)
2005         (c_type_of_child): Rewrite to use c_describe_child.
2006
2007 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
2008
2009         gdb/
2010         * varobj.c: Include "vec.h". 
2011         (varobj_p): New typedef, declare vector of those.
2012         (struct varobj): Use vector for the 'children' member.
2013         (child_exists): Remove.
2014         (save_child_in_parent): Remove.
2015         (remove_child_from_parent): Remove.
2016         (struct varobj_child): Remove.
2017         (struct vstack): Remove.
2018         (vpush, vpop): Remove.
2019         (varobj_list_children): Adjust to work work vector.
2020         (varobj_update): Likewise. Use vectors for
2021         working stack and result.
2022         (delete_variable_1): Likewise.
2023         * Makefile.in (varobj.o): Update dependencies.
2024
2025 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
2026
2027         Port from Apple's version.
2028         gdb/
2029         * varobj.c (type_changeable): Rename to...
2030         (varobj_value_is_changeable_p): ...this. Adjust all callers.
2031         (is_root_p): New function. Use it everywhere.
2032
2033 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
2034
2035         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2036         then plain 'fixup'.
2037
2038 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2039
2040         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2041
2042 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2043
2044         * hpread.c (hpread_type_lookup): Fix compilation failure.
2045
2046 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
2047
2048         * NEWS: New port to S+core.
2049         * MAINTAINERS (Write After Approval, Responsible Maintainers):
2050         Add myself.
2051
2052         * Makefile.in: Add dependencies for S+core files.
2053         * configure.tgt (score*, score-*-*): Add S+core target.
2054         * config/score/embed.mt: New file.
2055         * score-tdep.c: New file.
2056         * score-tdep.h: New file.
2057
2058 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2059
2060         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2061         the appropriate type rather than a bogus void type.
2062
2063 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2064
2065         * ada-lang.h (ada_find_printable_frame): Remove.
2066         (ada_exception_catchpoint_p, ada_decode_exception_location)
2067         (ada_decode_assert_location): Add declaration.
2068         * ada-lang.c: Add include of annotate.h and valprint.h.
2069         (exception_catchpoint_kind): New enum.
2070         (function_name_from_pc, is_known_support_routine)
2071         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2072         (ada_exception_name_addr_1, ada_exception_name_addr)
2073         (print_it_exception, print_one_exception, print_mention_exception)
2074         (print_it_catch_exception, print_one_catch_exception)
2075         (print_mention_catch_exception, catch_exception_breakpoint_ops)
2076         (print_it_catch_exception_unhandled)
2077         (print_one_catch_exception_unhandled)
2078         (print_mention_catch_exception_unhandled, print_it_catch_assert)
2079         (print_one_catch_assert, print_mention_catch_assert)
2080         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2081         (ada_get_next_arg, catch_ada_exception_command_split)
2082         (ada_exception_sym_name, ada_exception_sym_name)
2083         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2084         (ada_parse_catchpoint_condition, ada_exception_sal)
2085         (ada_decode_exception_location)
2086         (ada_decode_assert_location): New function.
2087         (catch_exception_unhandled_breakpoint_ops): New global variable.
2088         (catch_assert_breakpoint_ops): New global variable.
2089         * breakpoint.c: Add include of ada-lang.h.
2090         (print_one_breakpoint): Do not print the condition for Ada
2091         exception catchpoints.
2092         (create_ada_exception_breakpoint): New function.
2093         (catch_ada_exception_command, catch_assert_command): New function.
2094         (catch_command_1): Add support for the new "catch exception" and
2095         "catch assert" commands.
2096         (_initialize_breakpoint): Add help description for the new catch
2097         commands.
2098         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2099         valprint.h.
2100         (breakpoint.o): Add dependency on ada-lang.h.
2101
2102 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
2103
2104         * coffread.c (cs_to_section): If bfd_section is found, always
2105         return its section index.
2106         (coff_symtab_read): Determine the minimal_symbol_type using the
2107         bfd_section flags.
2108
2109 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2110             Daniel Jacobowitz  <dan@codesourcery.com>
2111
2112         * Makefile.in (top.o): Update.
2113         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2114         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2115         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2116         New.
2117         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2118
2119 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
2120
2121         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2122         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2123
2124 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
2125
2126         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2127         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2128         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2129         greater than or equal to zero.
2130         * m2-typeprint.c (m2_array): Likewise.
2131         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2132         * gdbtypes.c (copy_type_recursive): Correct == typo.
2133         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2134         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2135         greater than zero.
2136         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2137         (default_macro_scope): Remove unused variable.
2138         * prologue-value.h (pv_area_find_reg): Don't name an argument
2139         "register".
2140         * remote-fileio.c (remote_fio_func_map): Add missing braces.
2141         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2142         type.
2143         (cleanup_sigint_signal_handler): Remove casts.
2144         * valprint.c (val_print): Use a volatile local for the modified
2145         argument.
2146         * varobj.c (languages): Remove extra array dimension.
2147         (varobj_create): Correct access to languages array.
2148         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2149         missing braces.
2150         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2151         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2152         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2153         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2154         (mi_cmd_data_write_memory): Likewise.
2155         * signals/signals.c (target_signal_to_string): Cast to int before
2156         comparing.
2157         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2158         Update all callers.
2159
2160 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
2161
2162         * NEWS: Mention pointer to member improvements.
2163         * Makefile.in (gnu-v3-abi.o): Delete special rule.
2164         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2165         * ada-valprint.c (ada_print_scalar): Update for new type codes.
2166         * c-typeprint.c (c_print_type): Update for new type codes.
2167         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2168         (c_type_print_base): Likewise.
2169         (c_type_print_args): Rewrite.
2170         * c-valprint.c (c_val_print): Update for new type codes.  Remove
2171         support for references to members.  Treat methods like functions.
2172         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2173         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2174         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2175         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2176         (struct cp_abi_ops): Add corresponding members.
2177         * cp-valprint.c (cp_print_class_method): Delete.
2178         (cp_find_class_member): New function.
2179         (cp_print_class_member): Use it.  Simplify support for bogus
2180         member pointers.
2181         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2182         lookup_methodptr_type.
2183         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2184         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2185         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
2186         pointer support.
2187         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
2188         references returned by user defined operators.
2189         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2190         (f_type_print_varspec_suffix): Remove support for member pointers.
2191         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2192         and adjusted.
2193         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2194         (lookup_methodptr_type): New.
2195         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2196         (recursive_dump_type): Update for new types.
2197         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2198         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2199         (lookup_memberptr_type, lookup_methodptr_type)
2200         (smash_to_memberptr_type): New prototypes.
2201         (smash_to_method_type): Formatting fix.
2202         (lookup_member_type, smash_to_member_type): Delete prototypes.
2203         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2204         Do not rely on debug information for the vptr or the method's
2205         enclosing type.  Handle function descriptors for IA64.
2206         (gnuv3_virtual_fn_field): Rewrite using the new functions.
2207         (gnuv3_find_method_in, gnuv3_print_method_ptr)
2208         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2209         (gnuv3_method_ptr_to_value): New.
2210         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2211         * hpread.c (hpread_type_lookup): Update for new types.
2212         * infcall.c (value_arg_coerce): Likewise.
2213         * m2-typeprint.c (m2_print_type): Remove explicit support
2214         for member pointers.
2215         * m2-valprint.c (m2_val_print): Likewise.
2216         * p-typeprint.c (pascal_type_print_varspec_prefix)
2217         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2218         * p-valprint.c (pascal_val_print): Likewise.
2219         (pascal_object_print_class_method, pascal_object_print_class_member):
2220         Delete.
2221         * p-lang.h (pascal_object_print_class_method)
2222         (pascal_object_print_class_member): Delete prototypes.
2223         * stabsread.c (read_type): Update for new types.
2224         * typeprint.c (print_type_scalar): Likewise.
2225         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2226         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2227         argument.  Construct a pointer to member if the address of a
2228         function or data member is requested.
2229         (value_cast_pointers): Don't modify the input value.
2230         (value_cast): Adjust pointer to member handling for new types.
2231         Allow null pointer to member constants.  Don't modify the input
2232         value.
2233         (value_ind): Remove pointer to member check.  Handle function
2234         descriptors for function pointers.
2235         (value_struct_elt, value_find_oload_method_list, check_field):
2236         Remove pointer to member checks.
2237         * value.c (unpack_long): Allow pointers to data members.
2238         (value_from_longest): Allow member pointers.
2239         * value.h (value_aggregate_elt): Add want_address.
2240         * varobj.c (c_variable_editable): Remove check for members.
2241         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2242         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2243         in virtual tables.
2244         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2245         * c-lang.h (cp_print_class_method): Delete prototype.
2246         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2247         * mips-tdep.c (mips_gdbarch_init): Likewise.
2248         * gdbarch.c, gdbarch.h: Regenerated.
2249
2250 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2251
2252         * rs6000-tdep.c (rs6000_use_struct_convention)
2253         (rs6000_extract_return_value, rs6000_store_return_value)
2254         (rs6000_extract_struct_value_address): Remove.
2255         (rs6000_return_value): New function.
2256         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2257         store_return_value, deprecated_extract_struct_value_address and
2258         deprecated_use_struct_convention.  Use rs6000_return_value
2259         instead.
2260
2261 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
2262
2263         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2264         -display-disable, -display-enable, -display-insert and
2265         -display-list.
2266
2267 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2268
2269         * breakpoint.c (remove_breakpoint): Remove dead code.
2270
2271 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
2272
2273         * varobj.c: Include block.h.
2274         (c_value_of_root): Check scope within nested statements.
2275
2276 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2277
2278         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2279         regcache_cooked_write_signed instead of
2280         deprecated_write_register_bytes.
2281
2282 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2283
2284         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2285
2286 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2287
2288         Followed the Start of New Year Procedure:
2289         * ChangeLog-2006: New file, containing all the entries for 2006.
2290         * ChangeLog: Removed all 2006 entries, and changed the reference
2291         to the previous ChangeLog to point to ChangeLog 2006.
2292         * top.c (print_gdb_version): Update copyright year.
2293
2294 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2295
2296         * Makefile.in (remote-sds.o): Remove.
2297         * remote-sds.c: Delete.
2298
2299 For older changes see ChangeLog-2006.
2300 \f
2301 Local Variables:
2302 mode: change-log
2303 left-margin: 8
2304 fill-column: 74
2305 version-control: never
2306 End: