2007-11-09 Markus Deuling <deuling@de.ibm.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2007-11-09  Markus Deuling  <deuling@de.ibm.com>
2
3         * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
4         * arch-utils.h (generic_convert_register_p): Likewise.
5
6 2007-11-09  Markus Deuling  <deuling@de.ibm.com>
7
8         * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
9         * ia64-tdep.c (ia64_convert_register_p): Likewise.
10         * i387-tdep.c (i387_convert_register_p): Likewise.
11         * i387-tdep.h (i387_convert_register_p): Likewise.
12         * alpha-tdep.c (alpha_convert_register_p): Likewise.
13         * gdbarch.{c,h}: Regenerate.
14
15         * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
16         Replace current_gdbarch by gdbarch.
17         * mips-tdep.c (mips_convert_register_p): Likewise.
18         * m68k-tdep.c (m68k_convert_register_p): Likewise.
19         * i386-tdep.c (i386_convert_register_p): Likewise.
20
21 2007-11-08  Aleksandar Ristovski  <aristovski@qnx.com>
22
23         * gdb_string.h: Include <strings.h>.
24
25 2007-11-08  Vladimir Prus  <vladimir@codesourcery.com>
26
27         * breakpoint.c (break_command_1): Remove
28         pending_bp parameter.
29         (create_breakpoint): Likewise.
30         (create_breakpoints): Likewise. Adjust call to
31         create_breakpoint.
32         (break_command_1): Likewise. Adjust call to
33         create_breakpoints.
34         (do_captured_breakpoint): Adjust call to
35         create_breakpoints.
36         (break_command, tbreak_command, hbreak_command)
37         (stopin_command, stopat_command): Adjust call
38         to break_command_1.
39                         
40 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
41             Daniel Jacobowitz  <dan@codesourcery.com>
42
43         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
44         struct values smaller than one doubleword; left-align those
45         larger.  Pass structs containing a single floating-point value in
46         registers.
47
48 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
49             Daniel Jacobowitz  <dan@codesourcery.com>
50
51         * gdbtypes.c (floatformats_ibm_long_double): New.
52         * gdbtypes.h (floatformats_ibm_long_double): Declare.
53         * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
54         split_half field.
55         * mips-tdep.c (n32n64_floatformat_always_valid,
56         floatformat_n32n64_long_double_big, floatformats_n32n64_long):
57         Remove.
58         (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
59         floatformats_n32n64_long.
60         * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
61         double.
62         * doublest.c (convert_floatformat_to_doublest,
63         convert_doublest_to_floatformat): Handle split floating-point
64         formats.
65         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
66         double arguments.
67         (ppc64_sysv_abi_push_dummy_call): Likewise.
68         (do_ppc_sysv_return_value): Handle IBM long double return.
69
70 2007-11-07  Vladimir Prus  <vladimir@codesourcery.com>
71
72         Fix crash when a variable object being deleted
73         has any of its children deleted previously.
74         
75         * varobj.c (delete_variable_1): Don't recurse
76         into deleted children.
77         
78 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
79
80         * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
81         * gdbarch.{c,h}: Regenerate.
82         * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
83         Replace current_gdbarch by gdbarch.
84         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
85         * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
86         * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
87
88 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
89
90         * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
91         get_regcache_arch to get at the current architecture by regcache.
92         * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
93         to get at the current architecture by frame_info.
94         * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
95         at the current architecture by regcache.
96         * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
97         the current architecture by frame_info.
98         (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
99         * aix-thread.c (special_register_p): Add gdbarch as parameter.
100         (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
101         caller of special_register_p.
102
103 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
104
105         * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
106         current architecture by frame_info.
107
108 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
109
110         * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
111
112 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
113
114         * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
115         get at the current architecture by regcache.
116         (SUBOFF): Add gdbarch to macro definition.
117
118 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
119
120         * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
121         * gdbarch.{c,h}: Regenerate.
122
123         * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
124         Replace current_gdbarch by gdbarch.
125         * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
126         * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
127         * score-tdep.c (score_breakpoint_from_pc): Likewise.
128         * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
129         * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
130         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
131         * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
132
133         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
134         parameter.
135         * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
136         * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
137         * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
138         * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
139         * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
140         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
141         * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
142         * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
143         * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
144         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
145         * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
146         * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
147         * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
148         * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
149         * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
150         * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
151         * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
152         * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
153         * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
154         * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
155
156         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
157         Replace current_gdbarch by gdbarch.
158         (rs6000_software_single_step): Use get_frame_arch to get at the
159         current architecture by frame_info. Add gdbarch to
160         rs6000_breakpoint_from_pc call.
161
162 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
163
164         * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
165         macro CURRENT_VARIANT by its expression.
166         (CURRENT_VARIANT): Remove.
167         (frv_check_watch_resources): Add gdbarch parameter.
168
169 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
170
171         * MAINTAINERS (Write After Approval): Add self.
172
173 2007-11-05  Ulrich Weigand  <uweigand@de.ibm.com>
174
175         * features/rs6000/power-core.xml: Use uint32 as register type.
176         * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
177         * features/rs6000/powerpc-32.c: Regenerate.
178         * features/rs6000/powerpc-403.c: Regenerate.
179         * features/rs6000/powerpc-403gc.c: Regenerate.
180         * features/rs6000/powerpc-505.c: Regenerate.
181         * features/rs6000/powerpc-602.c: Regenerate.
182         * features/rs6000/powerpc-603.c: Regenerate.
183         * features/rs6000/powerpc-604.c: Regenerate.
184         * features/rs6000/powerpc-64.c: Regenerate.
185         * features/rs6000/powerpc-7400.c: Regenerate.
186         * features/rs6000/powerpc-750.c: Regenerate.
187         * features/rs6000/powerpc-860.c: Regenerate.
188         * features/rs6000/powerpc-e500.c: Regenerate.
189
190 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
191
192         * breakpoint.c (set_raw_breakpoint_without_location): Make static.
193
194 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
195
196         * breakpoint.h (create_solib_load_event_breakpoint)
197         (create_solib_unload_event_breakpoint)
198         (create_fork_event_catchpoint, create_vfork_event_catchpoint)
199         (create_exec_event_catchpoint): Delete declaration.
200         * breakpoint.c (create_solib_load_event_breakpoint)
201         (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
202         (create_fork_event_catchpoint, create_vfork_event_catchpoint)
203         (create_exec_event_catchpoint): Make static.
204
205 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
206
207         * breakpoint.h (set_breakpoint_sal): Remove declaration.
208         * breakpoint.c (set_breakpoint_sal): Delete.
209
210 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
211
212         * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
213         (make_blockvector): Likewise. Remove FIXME comment.
214
215 2007-11-05  Luis Machado  <luisgpm@br.ibm.com>
216
217         * printcmd.c: (printf_command): Add support for new DFP
218         modifiers %H, %D and %DD.
219         * configure.ac: Add check for DECFLOAT printf support.
220         * configure: Regenerated.
221
222 2007-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
223
224         * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
225         (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
226         TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
227         (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
228         HP_ACC_TOP_OFFSET_OFFSET): Likewise.
229         (has_vtable, primary_base_class, virtual_base_list_length,
230         virtual_base_list_length_skip_primaries, virtual_base_index,
231         virtual_base_index_skip_primaries, class_index_in_primary_list,
232         count_virtual_fns): Remove prototypes.
233         * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
234         virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
235         virtual_base_list_length_skip_primaries, virtual_base_index,
236         virtual_base_index_skip_primaries, class_index_in_primary_list,
237         count_virtual_fns): Remove.
238
239         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
240         (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
241         (cp_print_value_fields): Remove support for HP aCC vtables.
242         (cp_print_value): Likewise.
243         * c-typeprint.c (c_type_print_base): Likewise.
244
245         * value.h (find_rt_vbase_offset): Remove prototype.
246         * valops.c (find_rt_vbase_offset): Remove.
247         (search_struct_method): Remove support for HP aCC vtables.
248         (find_method_list): Likewise.
249
250 2007-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
251
252         * language.h (struct language_defn): Remove la_builtin_type_vector
253         and string_char_type members.
254         * language.c (language_string_char_type): No longer consult
255         la->string_char_type.
256         (language_lookup_primitive_type_by_name): No longer consult
257         current_language->la_builtin_type_vector.
258
259         * language.c (unknown_language_defn, auto_language_defn,
260         local_language_defn): Adapt initializer.
261         * ada-lang.c (ada_language_defn): Likewise.
262         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
263         minimal_language_defn): Likewise.
264         * f-lang.c (f_language_defn): Likewise.
265         * jv-lang.c (java_language_defn): Likewise.
266         * m2-lang.c (m2_language_defn): Likewise.
267         * objc-lang.c (objc_language_defn): Likewise.
268         * p-lang.c (pascal_language_defn): Likewise.
269         * scm-lang.c (scm_language_defn): Likewise.
270
271 2007-11-02  Markus Deuling  <deuling@de.ibm.com>
272
273         * frame.c (frame_id_inner): Add gdbarch parameter. Replace
274         current_gdbarch by gdbarch.
275         (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
276         current architecture by frame_info.
277         * frame.h (frame_id_inner): Add gdbarch parameter.
278         * stack.c (return_command): Use get_frame_arch to get at the current
279         architecture by frame_info. Update call of frame_id_inner.
280         * infrun.c (handle_inferior_event): Likewise.
281         * dummy-frame.c (dummy_frame_push):  Use get_regcache_arch to get at the
282         current architecture by regcache. Update call of frame_id_inner.
283
284 2007-11-02  Markus Deuling  <deuling@de.ibm.com>
285
286         * gdbarch.sh (register_name): Add gdbarch parameter.
287         * gdbarch.{c,h}: Regenerate.
288
289         * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
290         (tdesc_register_name): Replace current_gdbarch by gdbarch.
291         * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
292
293         * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
294         * vax-tdep.c (vax_register_name): Add gdbarch parameter.
295         * spu-tdep.c (spu_register_name): Add gdbarch parameter.
296         * s390-tdep.c (s390_register_name): Add gdbarch parameter.
297         * mt-tdep.c (mt_register_name): Add gdbarch parameter.
298         (mt_registers_info): Replace current_gdbarch by gdbarch.
299         (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
300         * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
301         current_gdbarch by gdbarch.
302         (mips_register_name): Add gdbarch to tdesc_register_name call.
303         * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
304         current_gdbarch by gdbarch.
305         (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
306         * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
307         current_gdbarch by gdbarch.
308         * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
309         * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
310         * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
311         (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
312         architecture by frame_info.
313         * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
314         * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
315         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
316         parameter.
317         * h8300-tdep.c (h8300_register_name, h8300s_register_name)
318         (h8300sx_register_name): Add gdbarch parameter.
319         * cris-tdep.c (cris_register_name, crisv32_register_name): Add
320         gdbarch parameter. Replace current_gdbarch by gdbarch.
321         (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
322         * avr-tdep.c (avr_register_name): Add gdbarch parameter.
323         * arm-tdep.c (arm_register_name): Add gdbarch paramete
324         * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
325         caller.
326         * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
327         * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
328         * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
329         (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
330         of alpha_register_name.
331         * frv-tdep.c (frv_register_name): Add gdbarch parameter.
332         * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
333         current_gdbarch by gdbarch.
334         (i386_register_type): Replace ?current_gdbarch by gdbarch.
335         * i386-tdep.h (i386_register_name): Add gdbarch parameter.
336         * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
337
338         * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
339         (m68hc11_register_reggroup_p): Add gdbarch to call of
340         m68hc11_register_name.
341         * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
342         (am33_2_register_name): Add gdbarch parameter.
343         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
344         architecture by frame_info.
345         (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
346         * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
347         current_gdbarch by gdbarch.
348         * score-tdep.c (score_register_name): Add gdbarch parameter.
349         (score_return_value, score_push_dummy_call): Replace current_gdbarch
350         by gdbarch.
351         * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
352         (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
353         (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
354         (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
355         and update caller. Replace current_gdbarch by gdbarch.
356         (sh64_extract_return_value, sh64_store_return_value): Use
357         get_regcache_arch to get at the current architecture by regcache.
358         * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
359         (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
360         (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
361         (sh_sh3_dsp_register_name, sh_sh4_register_name)
362         (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
363         parameter.
364         (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
365         (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
366         current_gdbarch by gdbarch.
367         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
368         get_regcache_arch to get at the current architecture by regcache.
369         * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
370         * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
371         * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
372         parameter.
373         (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
374         * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
375         current_gdbarch by gdbarch.
376         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
377         (xtensa_frame_prev_register): Add gdbarch parameter to
378         xtensa_register_name call.
379
380 2007-10-31  Ulrich Weigand  <uweigand@de.ibm.com>
381
382         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
383         find_solib_trampoline_target if PC is not in .plt section.
384
385 2007-10-31  Ulrich Weigand  <uweigand@de.ibm.com>
386
387         * elfread.c (elf_symtab_read): When constructing a solib trampoline
388         minimal symbol from an undefined dynamic symbol, use proper section.
389
390 2007-10-31  Markus Deuling  <deuling@de.ibm.com>
391
392         * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
393         to get at the current architecture by regcache.
394
395 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
396
397         * libunwind-frame.c (libunwind_frame_sniffer)
398         libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
399         (libunwind_frame_cache): Use get_frame_arch to get at the current
400         architecture by frame_info.
401         (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
402
403 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
404
405         * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
406         at the current architecture by frame_info.
407
408 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
409
410         * inf-child.c (inf_child_fetch_inferior_registers): Use 
411         get_regcache_arch to get at the current architecture by regcache.
412
413 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
414
415         * inf-ptrace.c (inf_ptrace_fetch_registers)
416         (inf_ptrace_fetch_register, inf_ptrace_store_register)
417         (inf_ptrace_store_registers): Use get_regcache_arch to get at the
418         current architecture by regcache.
419
420 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
421
422         * hpux-thread.c (hpux_thread_fetch_registers)
423         (hpux_thread_store_registers): Use get_regcache_arch to get at the
424         current architecture by regcache.
425
426 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
427
428         * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
429         current architecture by frame_info.
430
431 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
432
433         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
434         (go32_store_registers): Use get_regcache_arch to get at the current
435         architecture by regcache.
436
437 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
438
439         * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
440
441 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
442
443         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
444         to get at the current architecture by frame_info.
445
446 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
447
448         * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
449
450 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
451
452         * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
453         the current architecture by regcache.
454
455 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
456
457         * corelow.c (get_core_registers): Use get_regcache_arch to get at the
458         current architecture by regcache.
459
460 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
461
462         * bsd-uthread.c (bsd_uthread_fetch_registers)
463         (bsd_uthread_store_registers): Use get_regcache_arch to get at the
464         current architecture by regcache.
465
466 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
467
468         * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
469         get_frame_arch to get at the current architecture by frame_info.
470
471 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
472
473         * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
474
475 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
476
477         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
478         (store_regs): Use get_regcache_arch to get at the current architecture
479         by regcache.
480
481 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
482
483         * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
484         to get at the current architecture by regcache.
485
486 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
487
488         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
489         (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
490         the current architecture by regcache.
491
492 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
493
494         * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
495         gdbarch.
496
497 2007-10-30  Daniel Jacobowitz  <dan@codesourcery.com>
498
499         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
500         soft float and vector ABIs.  Support the generic vector ABI for
501         AltiVec types.
502         (do_ppc_sysv_return_value): Likewise.  Correct argument types and
503         casts.
504         (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
505         supported.
506         * ppc-tdep.h (enum powerpc_vector_abi): New.
507         (struct gdbarch_tdep): Add soft_float and vector_abi.
508         * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
509         (powerpc_soft_float_global, powerpc_vector_strings)
510         (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
511         (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
512         (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
513         (powerpc_set_vector_abi): New.
514         (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
515         commands.
516         * Makefile.in (elf_ppc_h): New.
517         (rs6000-tdep.o): Update.
518
519 2007-10-29  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
520
521         * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
522         swapped offsets and VRSAVE offset.
523         (ppc64_linux_reg_offsets): Corrected swapped offsets.
524         (ppc32_linux_vrregset): Added.
525         (ppc_linux_regset_from_core_section): Added support for
526         .reg-ppc-vmx section.
527         * ppc-tdep.h (ppc_altivec_support_p): Declare.
528         (ppc_supply_vrregset): Declare.
529         (ppc_collect_vrregset): Declare.
530         * rs6000-tdep.c (ppc_altivec_support_p): Added.
531         (ppc_supply_vrregset): Added.
532         (ppc_collect_vrregset): Added.
533         * corelow.c (get_core_registers): Added support for
534         .reg-ppc-vmx section.
535
536 2007-10-29  Joel Brobecker  <brobecker@adacore.com>
537
538         GDB 6.7.1 released.
539
540 2007-10-26  Jim Blandy  <jimb@codesourcery.com>
541
542         * ax-gdb.h (expr_to_address_and_size): Delete declaration for
543         deleted function.
544
545         * tracepoint.c (tracepoint_operation): Report the deletion event
546         after we have unlinked the tracepoint from the list, and use the
547         proper tracepoint number.
548
549         * ax-gdb.c (expr_to_agent): Delete unused function.
550         (expr_to_address_and_size): Delete #if 0'd function.
551         * ax-gdb.h (expr_to_agent): Delete declaration.
552
553         * ax-gdb.c (gen_cast): Remove redundant assignment to
554         value->type.  Doc fix.
555
556         * ax-general.c (gen_traced_pop, gen_int_literal)
557         (gen_usual_arithmetic): Check for typedefs.
558
559 2007-10-26  Joel Brobecker  <brobecker@adacore.com>
560
561         * parse.c (prefixify_expression): Minor reformatting.
562
563 2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
564
565         * version.in: Use dot instead of dash.
566
567 2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
568
569         * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
570
571 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
572
573         * memory-map.c (parse_memory_map): Don't use an empty struct
574         initializer.
575
576 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
577
578         * signals/signals.c (signals): Update pointer to enum
579         target_signal declaration.
580
581 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com>
582             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
583             Jim Blandy  <jimb@codesourcery.com>
584
585         * dwarf2read.c (read_partial_die): check the value
586         of DW_AT_calling_convention in Fortran programs.
587
588 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
589             Thiago Jung Bauermann  <bauerman@br.ibm.com>
590
591         * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
592         floating point in YYSTYPE union.
593         (DECFLOAT) Add token and expression element handling code.
594         (parse_number): Parse DFP constants, which end with suffix 'df',
595         'dd' or 'dl'.  Return DECFLOAT.
596         * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
597         handle OP_DECFLOAT.
598         * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
599         for DFP constants.
600         (union exp_element): Add decfloatconst to represent DFP
601         elements, which is 16 bytes by default.
602         * parse.c (write_exp_elt_decfloatcst): New function to write a
603         decimal float const into the expression.
604         (operator_length_standard): Set operator length for OP_DECFLOAT
605         to 4.
606         * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
607         * valarith.c (value_neg): Add code to handle the negation
608         operation of DFP values.
609         * value.c (value_from_decfloat): New function to get the value
610         from a decimal floating point.
611         * value.h (value_from_decfloat): Prototype.
612
613 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
614             Thiago Jung Bauermann  <bauerman@br.ibm.com>
615
616         * c-lang.c (c_create_fundamental_type): Create fundamental
617         types for DFP.
618         * c-typeprint.c (c_type_print_varspec_prefix): Add
619         TYPE_CODE_DECFLOAT to no prefix needed case.
620         (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
621         suffix needed case.
622         * c-valprint.c (c_val_print): Call print_decimal_floating to
623         print DFP values.
624         * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
625         attribute code and return TYPE_CODE_DECFLOAT.
626         (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
627         * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
628         builtin_decdouble and builtin_declong. 
629         * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
630         type code for DFP.
631         (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
632         types, for decimal floating point.
633         (FT_NUM_MEMBERS):  Increment, new types added.
634         (struct builtin_type): Add builtin_decfloat, builtin_decdouble
635         and builtin_declong.
636         * valprint.c (print_decimal_floating): New function to print DFP
637         values.
638         * value.h (print_decimal_floating): Prototype.
639
640 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
641             Thiago Jung Bauermann  <bauerman@br.ibm.com>
642
643         * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
644         LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
645         (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
646         (INSTALLED_LIBS): Add -ldecnumber in.
647         (CLIBS): Add LIBDECNUMBER in.
648         (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
649         headers.
650         (dfp_h): New macros for decimal floating point.
651         (dfp.o): New target.
652         (COMMON_OBS): Add dfp.o in.
653         (c-exp.o): Add dfp_h as dependency.
654         (valprint.o): Add dfp_h as dependency.
655         (value.o): Add dfp_h as dependency.
656         * dfp.h: New header file for decimal floating point support in
657         GDB.
658         * dfp.c: New source file for decimal floating point support in
659         GDB.  Implement decimal_from_string and decimal_to_string based
660         on libdecnumber API.
661         * configure.ac: Add AC_C_BIGENDIAN test.
662         * config.in, configure: Regenerate.
663
664 2007-10-25  David Ung  <davidu@mips.com>
665             Maciej W. Rozycki  <macro@mips.com>
666
667         PR exp/1926
668         * infcmd.c (registers_info): Check for a user register before
669         calling target's gdbarch_print_registers_info().  If found to be
670         so, extract the implicit value of user register and call
671         print_scalar_formatted().
672         * Makefile.in: (infcmd.o): Add $(user_regs_h).
673
674 2007-10-25  Joel Brobecker  <brobecker@adacore.com>
675
676         * NEWS: Document status of hppa64-hpux support.
677
678 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
679
680         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
681         set_solib_ops to install SVR4 operations.
682         (_initialize_svr4_solib): Do not set current_target_so_ops.
683
684         * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
685         * config/i386/i386gnu.mt (TDEPFILES): ... to here.
686
687 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
688
689         * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
690         (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
691         * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
692         * solib-legacy.c: Remove file.
693
694         * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
695         * config/arm/linux.mt (TDEPFILES): Likewise.
696         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
697         * config/ia64/linux.mt (TDEPFILES): Likewise.
698         * config/m32r/linux.mt (TDEPFILES): Likewise.
699         * config/powerpc/linux.mt (TDEPFILES): Likewise.
700         * config/s390/s390.mt (TDEPFILES): Likewise.
701
702         * alpha-linux-tdep.c (alpha_linux_init_abi): Call
703         set_solib_svr4_fetch_link_map_offsets.
704         * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
705         * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
706
707         * i386gnu-tdep.c: Include "solib-svr4.h".
708         * Makefile.in: Update dependencies.
709
710 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
711
712         * i386-nto-tdep.c: Include "solib.h".
713         (i386nto_init_abi): Use set_solib_ops instead of overwriting
714         current_target_so_ops members.
715         * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
716         (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
717         (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
718         * Makefile.in: Update dependencies.
719
720 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
721
722         * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
723         (arm_wince_init_abi): Call set_solib_ops.
724         * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
725         (i386_cygwin_init_abi): Call set_solib_ops.
726         * solib-target.c: Include "solib-target.h".
727         (solib_target_so_ops): Make global.
728         (_initialize_solib_target): Do not set current_target_so_ops.
729         * solib-target.h: New file.
730         * Makefile.in: Update dependencies.
731
732 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
733
734         * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
735         (mips_irix_init_abi): Call set_solib_ops.
736         * solib-irix.c: Include "solib.h" and "solib-irix.h".
737         (irix_so_ops): Make global.
738         (_initialize_irix_solib): Do not set current_target_so_ops.
739         * solib-irix.h: New file.
740         * Makefile.in: Update dependencies.
741
742 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
743
744         * configure.tgt: Remove hppa*64*-*-hpux11* special case.
745         * config/pa/hppa64.mt: Delete file.
746         * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
747         (TDEPFILES): Move somread.o to ...
748         * config/pa/hpux.mh (NATDEPFILES): ... here.
749
750         * configure.ac: Add check for elf_hp.h header.
751         Search libdl and libxpdl for dlgetmodinfo.
752         * config.in, configure: Regenerate.
753         * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
754         instead of #ifndef PA_SOM_ONLY.  Include "solib.h".
755         (pa64_solib_select): Take gdbarch instead of tdep argument.  Call
756         set_solib_ops instead of modifying current_target_so_ops.
757         * solib-pa64.h (pa64_solib_select): Update prototype.
758         * solib-som.c: Remove include of "som.h".  Include "solib.h".
759         (som_solib_select): Take gdbarch instead of tdep argument.  Call
760         set_solib_ops instead of modifying current_target_so_ops.
761         * solib-som.h (som_solib_select): Update prototype.
762         * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
763         of tdep to som_solib_select call.
764         (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
765         pa64_solib_select call.
766         * Makefile.in: Update dependencies.
767
768 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
769
770         * frv-tdep.c: Include "solib.h".
771         (frv_gdbarch_init): Call set_solib_ops.
772         * frv-tdep.h (struct target_so_ops): Add forward reference.
773         (frv_so_ops): Add extern declaration.
774         * solib-frv.c (frv_so_ops): Make global.
775         (_initialize_frv_solib): Do not set current_target_so_ops.
776         * Makefile.in: Update dependencies.
777
778 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
779
780         * solib.c (solib_global_lookup): Use solib_ops instead of global
781         current_target_so_ops.
782
783 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
784
785         * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
786         * config/frv-tm-frv.h: Delete file.
787
788 2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
789
790         * NEWS: Mention gdbserver support for non-libthread_db operation.
791
792 2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
793
794         * amd64-tdep.c (amd64_convert_register_p): Delete.
795         (amd64_init_abi): Use i387_convert_register_p.
796         * alpha-tdep.c (alpha_convert_register_p): Return zero for
797         eight byte types.
798         (alpha_register_to_value, alpha_value_to_register): Do not handle
799         eight byte types.
800         * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
801         * i387-tdep.c (i387_convert_register_p): New.
802         (i387_register_to_value, i387_value_to_register): Update comments.
803         * i387-tdep.h (i387_convert_register_p): Declare.
804         * ia64-tdep.c (ia64_convert_register_p): Return zero for
805         builtin_type_ia64_ext.
806         (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
807         (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
808         * m68k-tdep.c (m68k_convert_register_p): Return zero for
809         builtin_type_m68881_ext.
810         (m68k_register_to_value, m68k_value_to_register): Update comments.
811
812 2007-10-24  Nathan Sidwell  <nathan@codesourcery.com>
813
814         * target-memory.c (claim_memory): Propagate baton for split memory
815         requests.
816
817 2007-10-24  Pedro Alves  <pedro_alves@portugalmail.pt>
818
819         PR gdb/2341
820         * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
821         alias warning bug.
822
823 2007-10-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
824
825         * symtab.c (find_line_symtab): scan through psymtabs
826         when exact_match is zero.
827
828 2007-10-23  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
829
830         * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
831         (deal_with_atomic_sequence): New.
832         (mips_software_single_step): Use it.
833
834 2007-10-23  Daniel Jacobowitz  <dan@codesourcery.com>
835
836         PR gdb/2336
837         * configure.ac: Modify $LIBINTL before the BFD check.
838         * configure: Regenerated.
839
840 2007-10-23  Joel Brobecker  <brobecker@adacore.com>
841
842         * buildsym.c (free_pending_blocks): Remove commented-out code.
843         (make_blockvector): Likewise. Re-use free_pending_blocks.
844         (end_symtab): Remove commented-out code.
845
846 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
847
848         * top.c (command_loop): Fix output for shrinkage.
849
850 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
851
852         * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
853         (exp): Remove and document function-like casts.
854
855 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
856
857         * cp-support.c: Include "safe-ctype.h".
858         (cp_already_canonical): New function.
859         (cp_canonicalize_string): Use it.  Return NULL for already canonical
860         strings.
861         (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
862         (cp_func_name, remove_params): Likewise.
863         (cp_find_first_component_aux): Use ISSPACE.
864         * cp-support.h (cp_demangled_name_to_comp): Correct comment.  Remove
865         MEMORY_P argument.
866         * cp-name-parser.y (ALLOC_CHUNK): Define.
867         (struct demangle_info): Add PREV and NEXT.  Increase the size of
868         COMPS.
869         (d_grab): Convert to a function.
870         (allocate_info): Rewrite.
871         (cp_demangled_name_to_comp): Remove MEMORY argument.  Do not use
872         strlen.  Update call to allocate_info.  Do not free it on failure.
873         (main): Update calls to cp_demangled_name_to_comp.
874         * Makefile.in (cp-support.o): Update.
875
876 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
877
878         * std-regs.c (value_of_builtin_frame_fp_reg)
879         value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
880         value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
881         current architecture by frame_info.
882
883 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
884
885         * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
886         by gdbarch.
887
888 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
889
890         * infcmd.c (default_print_registers_info, print_return_value)
891         (print_vector_info, print_float_info): Replace current_gdbarch by
892         gdbarch.
893         (registers_info): Use get_frame_arch to get at the current 
894         architecture by frame_info.
895
896 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
897
898         * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
899         get_regcache_arch to get at the current architecture by regcache.
900
901 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
902
903         * target.c (debug_print_register): Use get_regcache_arch to get at the
904         current architecture by regcache. 
905
906 2007-10-21  Daniel Jacobowitz  <dan@codesourcery.com>
907
908         * dwarf2read.c (read_file_scope): Add a comment.
909         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
910         (read_enumeration_type, process_enumeration_scope, read_array_type)
911         (read_typedef, read_base_type, read_subrange_type)
912         (read_unspecified_type): Use dwarf2_name.
913
914 2007-10-21  Daniel Jacobowitz  <dan@codesourcery.com>
915
916         * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
917         * dwarf2read.c (dwarf2_free_objfile): New.
918         * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
919         * symfile.h (dwarf2_free_objfile): Declare.
920
921 2007-10-21  Joel Brobecker  <brobecker@adacore.com>
922
923         * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
924
925 2007-10-21  Luis Machado  <luisgpm@br.ibm.com>
926
927         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
928         * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
929         default dwarf2_frame_set_init_reg function.
930                 
931 2007-10-21  Pedro Alves  <pedro_alves@portugalmail.pt>
932
933         * NEWS: Mention native MinGW configuration.
934
935 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
936
937         * gdbarch.sh: Remove "macro" column of input table.  Remove handling
938         of "macro" column throughout the file.  Remove (empty) "macro" entry
939         of all gdbarch functions.
940
941 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
942
943         * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
944         * gdbarch.c, gdbarch.h: Regenerate.
945         * dbxread.c (find_stab_function_addr): Define unconditionally.
946         (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
947         instead of SOFUN_ADDRESS_MAYBE_MISSING.
948         (end_psymtab): Likewise.
949         (process_one_symbol): Likewise.
950         * mdebugread.c (parse_partial_symbols): Likewise.
951
952         * symtab.h (struct minimal_symbol): Always define "filename" member.
953         * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
954         * minsyms.c (lookup_minimal_symbol): Likewise.
955         * symmisc.c (dump_msymbols): Likewise.
956
957         * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
958         * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
959         * config/i386/tm-i386sol2.h: Remove file.
960         * config/i386/tm-linux.h: Remove file.
961         * i386-linux-tdep.c (i386_linux_init_abi): Add call to
962         set_gdbarch_sofun_address_maybe_missing.
963         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
964
965         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
966         * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
967         * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
968         * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
969         * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
970         * config/powerpc/tm-ppc-eabi.h: Remove file.
971         * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
972         set_gdbarch_sofun_address_maybe_missing.
973
974         * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
975         * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
976         * config/sparc/tm-sol2.h: Remove file.
977         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
978         set_gdbarch_sofun_address_maybe_missing.
979         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
980
981 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
982
983         * gdbarch.sh (static_transform_name): New gdbarch callback.
984         * gdbarch.c, gdbarch.h: Regenerate.
985         * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
986         instead of STATIC_TRANSFORM_NAME.
987         * mdebugread.c (parse_partial_symbols): Likewise.
988         * stabsread.c (define_symbol): Likewise.
989         * xcoffread.c (scan_xcoff_symtab): Likewise.
990
991         * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
992         (IS_STATIC_TRANSFORM_NAME): Remove.
993         * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
994         * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
995         (i386_sol2_init_abi): Install it.
996
997         * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
998         (IS_STATIC_TRANSFORM_NAME): Remove.
999         * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1000         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1001         (sparc32_sol2_init_abi): Install it.
1002         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1003         * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1004
1005 2007-10-18  Daniel Jacobowitz  <dan@codesourcery.com>
1006
1007         * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1008         (mips_n32n64_return_value, mips_o32_return_value)
1009         (mips_o64_return_value): Update calls to mips_xfer_register.
1010
1011 2007-10-17  Daniel Jacobowitz  <dan@codesourcery.com>
1012
1013         * frame.c (frame_unwind_unsigned_register): Delete.
1014         (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1015         * frame.h (frame_unwind_unsigned_register): Delete prototype.
1016
1017         * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1018         avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1019         mt-tdep.c: Replace frame_unwind_unsigned_register with
1020         frame_unwind_register_unsigned.
1021
1022 2007-10-16  Pedro Alves  <pedro_alves@portugalmail.pt>
1023
1024         * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1025         * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1026         * win32-nat.c: Only include cygwin.h on Cygwin host.  Don't
1027         include procfs.h.
1028         (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1029         if not building on Cygwin.
1030         (win32_make_so, handle_output_debug_string, handle_exception)
1031         (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1032         (win32_attach): Only fallback to Cygwin pids if building on
1033         Cygwin.
1034         (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1035         building on Cygwin.
1036         (win32_create_inferior): Disable starting the inferior through a
1037         shell, environment var processing and tty handling if not building
1038         on Cygwin.
1039         (cygwin_pid_to_str): Rename to ...
1040         (win32_pid_to_str): ... this.
1041         (init_win32_ops): Update use of win32_pid_to_str.  Disable "shell"
1042         and "cygwin-exceptions" commands if not building on Cygwin.
1043
1044 2007-10-16  Gaius Mulley  <gaius@glam.ac.uk>
1045
1046         * doc/gdb.texinfo:  Add TSIZE definition, removed
1047         statement about unbounded arrays being unimplemented.
1048         * m2-valprint.c (m2_print_array_contents):  New function.
1049         (m2_print_unbounded_array):  New function.
1050         (m2_print_array_contents):  New function.
1051         * m2-typeprint.c (m2_unbounded_array):  New function.
1052         (m2_is_unbounded_array):  New function.
1053         (m2_print_type):  Test for unbounded array when walking
1054         across structs.
1055         * m2-lang.h:  Added extern m2_is_unbounded_array.
1056         * m2-lang.c (evaluate_subexp_modula2):  New function.
1057         (exp_descriptor_modula2):  New structure.
1058         (m2_language_defn):  Use exp_descriptor_modula2.
1059         * m2-exp.y:  Added TSIZE and binary subscript.
1060
1061 2007-10-16  Daniel Jacobowitz  <dan@codesourcery.com>
1062
1063         * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1064         after freeing it.
1065
1066 2007-10-16  Kevin Buettner  <kevinb@redhat.com>
1067
1068         * m32r-tdep.c (decode_prologue): Sign extend offset for
1069         "addi sp, xx" case.
1070         (m32r_frame_unwind_cache): Likewise.
1071
1072 2007-10-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1073
1074         * rs6000-tdep.c (skip_prologue): Restore comment with
1075         function description to its proper place.
1076
1077 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1078
1079         * NEWS: Mention gdbserver PowerPC improvements.
1080
1081 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1082
1083         * features/Makefile (WHICH): Add PowerPC register definitions.
1084         (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1085         (rs6000/powerpc-64-expedite): New macros.
1086         ($(outdir)/%.dat): Handle subdirectories.
1087         * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1088         regformats/rs6000/powerpc-e500.dat: New generated files.
1089
1090 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1091
1092         * ppc-linux-nat.c (ppc_linux_read_description): New.
1093         (_initialize_ppc_linux_nat): Set to_read_description.
1094         * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1095
1096 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1097
1098         * NEWS: Document target described register support for PowerPC.
1099         * ppc-tdep.h: Remove ppc_spr constants.
1100         (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1101         ppc_builtin_type_vec128 members.
1102         (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1103         (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1104         (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1105         (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1106         (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1107         * rs6000-tdep.c: Include preparsed descriptions.
1108         (init_sim_regno_table): Do not iterate over pseudo registers.
1109         Look up segment registers by name.  Use sim_spr_register_name
1110         for SPRs.
1111         (rs6000_register_sim_regno): Call init_sim_regno_table here.
1112         (rs6000_builtin_type_vec128): Delete.
1113         (rs6000_register_name): Only handle SPE pseudo registers and upper
1114         halves.  Call tdesc_register_name for everything else.
1115         (rs6000_register_type): Delete.  Replace with...
1116         (rs6000_pseudo_register_type): ...this new function.  Only handle
1117         SPE pseudo registers.
1118         (rs6000_register_reggroup_p): Delete.  Replace with...
1119         (rs6000_pseudo_register_reggroup_p): ...this new function.  Only
1120         handle SPE pseudo registers.
1121         (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1122         "struct reg".
1123         (rs6000_register_to_value, rs6000_value_to_register): Remove check
1124         of reg->fpr.
1125         (e500_register_reggroup_p): Delete.
1126         (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1127         (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1128         (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1129         (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1130         (registers_powerpc, registers_403, registers_403GC, registers_505)
1131         (registers_860, registers_601, registers_602, registers_603)
1132         (registers_604, registers_750, registers_7400, registers_e500): Delete
1133         variables.
1134         (struct variant): Delete nregs, npregs, num_tot_regs, and regs.  Add
1135         tdesc.
1136         (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1137         (variants): Delete outdated comment.  Use standard target descriptions
1138         instead of "struct reg" arrays.
1139         (init_variants): Delete.
1140         (rs6000_gdbarch_init): Do not guess word size from the BFD
1141         architecture if we have a target description.  Select a variant
1142         before creating a new architecture.  Use the variant's target
1143         description if the target did not define a register layout.
1144         Validate target-supplied registers.  Reject mismatches.  Use
1145         fixed register numbers and new constants instead of magic
1146         numbers.  Call set_gdbarch_ps_regnum.  Call tdesc_use_registers.
1147         (_initialize_rs6000_tdep): Initialize the preparsed target
1148         descriptions.
1149         * target-descriptions.c (tdesc_predefined_types): Add int128 and
1150         uint128.
1151         (tdesc_find_register_early): New function.
1152         (tdesc_numbered_register): Use it.
1153         (tdesc_register_size): New function.
1154         (tdesc_use_registers): Take a target_desc argument.  Do not use
1155         gdbarch_target_desc.
1156         * target-descriptions.h (tdesc_use_registers): Update prototype
1157         and comment.
1158         (tdesc_register_size): New prototype.
1159         * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1160         (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1161         (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1162         (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1163         (rs6000-tdep.o): Update.
1164         * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1165         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1166         * mips-tdep.c (mips_gdbarch_init): Likewise.
1167
1168 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1169
1170         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1171         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1172         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1173         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1174         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1175         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1176         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1177         generated files.
1178
1179 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1180
1181         * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1182         features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1183         features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1184         feature descriptions for standard PowerPC register sets.
1185
1186         * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1187         features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1188         features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1189         features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1190         features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1191         features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1192         features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1193         target descriptions for PowerPC processors.
1194
1195 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
1196
1197         * target-descriptions.c (tdesc_predefined_types): New.
1198         (tdesc_named_type): Use it.
1199         (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1200         (_intialize_target_descriptions): Register "maint print c-tdesc".
1201         * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1202         (cfiles, %.c): New rules.
1203         * features/arm-with-iwmmxt.c, features/mips-linux.c,
1204         features/mips64-linux.c: New generated files.
1205
1206         * arm-linux-nat.c: Include preparsed description instead of
1207         "xml-support.h".
1208         (super_xfer_partial, arm_linux_xfer_partial): Remove.
1209         (arm_linux_read_description): New function.
1210         (_initialize_arm_linux_nat): Set to_read_description instead of
1211         to_xfer_partial.  Initialize preparsed description.
1212         * config/arm/linux.mh (TDEP_XML): Delete.
1213         * mips-linux-nat.c: Include preparsed descriptions instead of
1214         "xml-support.h".
1215         (super_xfer_partial, mips_linux_xfer_partial): Remove.
1216         (mips_linux_read_description): New function.
1217         (_initialize_mips_linux_nat): Set to_read_description instead of
1218         to_xfer_partial.  Initialize preparsed description.
1219         * config/mips/linux.mh (TDEP_XML): Delete.
1220         * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1221         (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1222         (mips64_linux_c): New macros.
1223         (arm-linux-nat.o, mips-linux-nat.o): Update.
1224
1225 2007-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
1226
1227         * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1228         Replace xasprintf by xstrprintf.
1229         symfile-mem.c (add_vsyscall_page): Ditto.
1230
1231 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1232
1233         * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1234         replacing use of global current_gdbarch.
1235         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1236         (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1237
1238         * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1239         (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1240         replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1241         (ia64_sigtramp_frame_cache): Update caller.
1242
1243 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1244
1245         * gdbarch.sh (deprecated_use_struct_convention): Remove.
1246         (extract_return_value, store_return_value): Remove.
1247         (return_value): Remove default implementation.
1248         * gdbarch.c, gdbarch.h: Regenerate.
1249
1250         * stack.c (return_command): Remove compatibility hack.
1251         * arch-utils.c (legacy_return_value): Remove.
1252         * arch-utils.h (legacy_return_value): Likewise.
1253
1254         * arch-utils.c (always_use_struct_convention): Remove.
1255         * arch-utils.h (always_use_struct_convention): Likewise.
1256         * value.c (generic_use_struct_convention): Remove.
1257         * defs.h (generic_use_struct_convention): Likewise.
1258
1259 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1260
1261         * avr-tdep.c (avr_return_value): New function.
1262         (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1263         set_gdbarch_extract_return_value.
1264
1265         * fvr-tdep.c (frv_return_value): New function.
1266         (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1267         set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1268         and set_gdbarch_deprecated_use_struct_convention.
1269
1270         * ia64-tdep.c (ia64_use_struct_convention): Make static.
1271         Add check for structure, union, or array types.
1272         (ia64_extract_return_value): Make static.
1273         (ia64_store_return_value): Make static.  Support multi-word values.
1274         (ia64_return_value): New function.
1275         (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1276         set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1277         and set_gdbarch_deprecated_use_struct_convention.
1278
1279 2007-10-12  Joel Brobecker  <brobecker@adacore.com>
1280
1281         * solib-target.c (solib_target_parse_libraries)
1282         [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1283
1284 2007-10-12  Jim Blandy  <jimb@codesourcery.com>
1285
1286         * serial.h (struct serial_ops): Document read_prim to return zero
1287         at EOF.
1288         * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1289         read_prim returns zero, not SERIAL_TIMEOUT.
1290
1291 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1292
1293         * alpha-mdebug-tdep.c: Include "gdb_string.h".
1294         (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1295         * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1296         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1297
1298         * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1299         * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1300         * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1301         * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1302         * config/alpha/tm-alpha.h: Remove file.
1303
1304 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1305
1306         * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1307         DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1308
1309         * config/pa/tm-hppa.h: Delete file.
1310         * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1311         * config/pa/hppahpux.mt: Likewise.
1312         * config/pa/hppa.mt: Likewise.
1313         * config/pa/linux.mt: Likewise.
1314         * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1315
1316 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1317
1318         * config/arm/nm-nbsdaout.h: Remove file.
1319         * config/nm-nbsdaout.h: Likewise.
1320         * config/nm-nbsd.h: Likewise.
1321
1322 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1323
1324         * block.h (struct block): Remove "gcc_compile_flag" member.
1325         (BLOCK_GCC_COMPILED): Remove.
1326         * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1327         * buildsym.c (finish_block): Do not set it.
1328         * symmisc.c (dump_symtab_1): Do not dump it.
1329
1330         * value.h (using_struct_return): Remove "gcc_p" argument.
1331         * value.c (using_struct_return): Likewise.
1332         * eval.c (evaluate_subexp_standard): Adapt callers.
1333         * infcall.c (call_function_by_hand): Likewise.
1334         * stack.c (return_command): Likewise.
1335         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1336
1337         * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1338         * gdbarch.c, gdbarch.h: Regenerate.
1339         * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1340         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1341         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1342         * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1343         (push_dummy_code, call_function_by_hand): Adapt callers.
1344
1345 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1346
1347         * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1348         (finish_command_continuation, finish_command): Adapt callers.
1349
1350 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1351
1352         * infcall.c (call_function_by_hand): Remove special handling
1353         for HP aCC compiled code.
1354
1355 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
1356
1357         * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1358         reference.  Fix endianness bugs.
1359         (cris_reg_struct_has_address): Remove.
1360         (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1361         and set_gdbarch_deprecated_use_struct_convention calls.
1362
1363         * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1364         * gdbarch.c, gdbarch.h: Regenerate.
1365         * infcall.c (call_function_by_hand): Remove handling of
1366         deprecated_reg_struct_has_addr.
1367
1368 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
1369             Kazu Hirata  <kazu@codesourcery.com>
1370
1371         * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1372         checking watchpoint resources.
1373
1374 2007-10-11  Kazu Hirata  <kazu@codesourcery.com>
1375
1376         * memattr.c (inaccessible_by_default): Change the initial
1377         value to 1.
1378
1379 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
1380
1381         PR gdb/2280
1382         * coffread.c (read_one_sym): Check for read errors.
1383
1384 2007-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
1385
1386         * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1387         instead of "Linux 2.6.19" in comment.
1388         (linux_xfer_partial): Use "GNU/Linux target" instead of 
1389         "Linux target" in comment.
1390         * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1391         (m68k_linux_get_sigtramp_info): Likewise.
1392
1393 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
1394
1395         * MAINTAINERS (language support): List Joel and Paul as
1396         Ada maintainers.
1397
1398 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
1399
1400         * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1401         checks.
1402         * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1403         not set DEPRECATED_TM_FILE.
1404         * config/arm/tm-arm.h: Delete file.
1405
1406 2007-10-11  Luis Machado  <luisgpm@br.ibm.com>
1407
1408         * MAINTAINERS (Write After Approval): Add self.
1409
1410 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
1411
1412         * buildsym.c (record_line): Remove empty lines followed by
1413         end-of-sequence markers.
1414
1415 2007-10-11  Kazu Hirata  <kazu@codesourcery.com>
1416
1417         * configure.tgt: Recognize fido-*-elf.
1418
1419 2007-10-10  Joel Brobecker  <brobecker@adacore.com>
1420
1421         GDB 6.7 released.
1422
1423 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1424
1425         * stack.c (print_frame_args, frame_info, return_command): Use
1426         get_regcache_arch or get_frame_arch to get at the current architecture
1427         by regcache or by frame, respectively.
1428
1429 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1430
1431         * rs6000-nat.c (fetch_register, store_register)
1432         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1433         get_regcache_arch to get at the current architecture by regcache.
1434
1435         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1436         (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1437         (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1438         current_gdbarch by gdbarch.
1439         (rs6000_skip_trampoline_code, rs6000_register_to_value)
1440         (rs6000_value_to_register): Use get_frame_arch to get at the current
1441         architecture by frame_info.
1442
1443 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1444
1445         * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1446         get_regcache_arch to get at the current architecture by regcache.
1447
1448         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1449         (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1450         get_regcache_arch to get at the current architecture by regcache.
1451
1452         * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1453         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1454         (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1455         current architecture by regcache.
1456
1457 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1458
1459         * remote-mips.c (mips_wait, mips_fetch_registers)
1460         (mips_store_registers): Use get_regcache_arch to get at the
1461         current architecture by regcache.
1462
1463         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1464         (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1465         get at the current architecture by regcache.
1466         (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1467         architecture by frame_info.
1468
1469         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1470         (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1471         the current architecture by regcache.
1472
1473         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1474         (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
1475         (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
1476         current architecture by frame_info.
1477         (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
1478         (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
1479         (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
1480         (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
1481         get at the current architecture by regcache.
1482
1483         * mips-linux-nat.c (mips_linux_register_addr)
1484         (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
1485         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
1486         (mips64_linux_regsets_fetch_registers)
1487         (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
1488         the current architecture by regcache.
1489
1490         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
1491         get at the current architecture by frame_info.
1492
1493 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1494
1495         * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
1496         current architecture by regcache.
1497         (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
1498         (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
1499         (mips_stub_frame_cache, mips_read_fp_register_single)
1500         (mips_read_fp_register_double, mips_print_fp_register)
1501         (mips_print_register, print_gp_register_row): Use get_frame_arch to get
1502         at the current architecture by frame_info.
1503         (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
1504         (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
1505         (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
1506         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1507         (mips_o32_push_dummy_call, mips_o32_return_value)
1508         (mips_o64_push_dummy_call, mips_o64_return_value)
1509         (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
1510         gdbarch.
1511
1512 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
1513
1514         * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
1515         (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
1516         (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1517         (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
1518         (xtensa_register_write_masked, xtensa_register_read_masked)
1519         (xtensa_supply_gregset, xtensa_store_return_value)
1520         (xtensa_extract_return_value): Use get_regcache_arch to get at the
1521         current architecture by regcache.
1522         (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
1523         (xtensa_frame_prev_register): Use get_frame_arch to get at the current
1524         architecture by frame_info.
1525
1526 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
1527
1528         * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
1529         (thumb_analyze_prologue): Move pv_area_store_would_trash call
1530         out of loop.  Do not set cache->frameoffset.
1531         (arm_scan_prologue): Use prologue-value mechanism.  Do not set
1532         frameoffset.  Simplify framesize.
1533         (arm_make_prologue_cache, arm_normal_frame_base): Do not use
1534         frameoffset.
1535         * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
1536
1537 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
1538
1539         * target.c (update_current_target): Call setup_target_debug.
1540         (push_target): Do not call it here.
1541
1542 2007-10-09  Michael Snyder  <msnyder@specifix.com>
1543
1544         * MAINTAINERS: Update my email address.
1545
1546 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1547
1548         * xtensa-tdep.c: Replace following current-gdbarch based macros by
1549         their expression:
1550         (xtensa_pseudo_register_read)
1551         (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
1552         (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
1553         (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
1554         (xtensa_pseudo_register_read)
1555         (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
1556         (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
1557         (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
1558         (xtensa_frame_prev_register): NUM_AREGS.
1559         (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
1560         (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
1561         (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
1562         (xtensa_supply_gregset, xtensa_frame_cache)
1563         (xtensa_frame_prev_register): WS_REGNUM.
1564         (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
1565         SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
1566         (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
1567         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1568         (xtensa_register_reggroup_p): REGMAP.
1569         (call0_track_op): LITBASE_REGNUM.
1570         (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
1571         (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
1572         (xtensa_frame_prev_register, AREG_NUMBER)
1573         (xtensa_register_type): AR_BASE.
1574         (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
1575         (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
1576         (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1577         (xtensa_frame_cache, xtensa_frame_prev_register)
1578         (xtensa_extract_return_value, xtensa_store_return_value)
1579         (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
1580         (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
1581         (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
1582         (xtensa_frame_prev_register, xtensa_push_dummy_call)
1583         (call0_frame_cache): A1_REGNUM.
1584         (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
1585         (xtensa_push_dummy_call): A4_REGNUM.
1586         (ARGS_FIRST_REG): A6_REGNUM.
1587         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1588         (xtensa_frame_prev_register): A15_REGNUM.
1589         * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
1590         them in the appropriate source file:
1591         XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
1592         ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
1593         ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
1594         DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
1595         DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
1596         REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
1597         EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
1598         FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
1599         A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
1600         A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
1601         A13_REGNUM, A14_REGNUM, A15_REGNUM.
1602
1603 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1604
1605         * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
1606         the current architecture by frame_info.
1607         (h8300_frame_prev_register
1608         (h8300_print_register): Replace current_gdbarch by gdbarch.
1609         (h8300_print_registers_info, h8300_register_type)
1610         (h8300_register_type): Likewise.
1611
1612 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1613
1614         * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
1615         the current architecture by regcache.
1616         (store_register, supply_gregset, fill_gregset, i386_linux_resume)
1617         (i386_linux_fetch_inferior_registers)
1618         (i386_linux_store_inferior_registers): Likewise.
1619         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1620         * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1621         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1622         * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
1623         (i386_extract_return_value, i386_store_return_value): Likewise.
1624         * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
1625         the current architecture by frame_info.
1626         (i386_sigtramp_frame_cache, i386_get_longjmp_target)
1627         (i386_register_to_value, i386_value_to_register): Likewise.
1628
1629 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1630
1631         * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
1632         the current architecture by regcache.
1633         (monitor_store_register, monitor_store_registers): Likewise.
1634
1635 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1636
1637         * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
1638         the current architecture by regcache.
1639
1640 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1641
1642         * arch-utils.c (legacy_return_value): Replace current_gdbarch by
1643         gdbarch.
1644
1645 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
1646
1647         * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
1648         architecture by frame.
1649         (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
1650         (inside_main_func, frame_sp_unwind): Likewise.
1651
1652 2007-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
1653
1654         * solib-svr4.c (enable_break): Add the dynamic linker also if
1655         auxv succeeds.
1656
1657 2007-10-09  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1658
1659         * MAINTAINERS (Write After Approval): Add self.
1660
1661 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
1662
1663         * stabsread.c (read_huge_number): Initialize local variable to 0.
1664
1665 2007-10-09  Pierre Muller  <muller@ics.u-strasbg.fr>
1666
1667         * p-lang.h (pascal_main_name): Add declaration.
1668         * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
1669         (GPC_MAIN_PROGRAM_NAME_2): New constants.
1670         (pascal_main_name): New function.
1671         * symtab.c: Include p-lang.h.
1672         (find_main_name): Add call to pascal_main_name.
1673         * Makefile.in (symtab.o): Add dependency on p-lang.h.
1674
1675 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
1676
1677         * stabsread.c (read_huge_number): Fix handling of octal
1678         representation when the bit width is known.
1679         (read_range_type): Record unsigned integral types with their size,
1680         when the type size is known.
1681
1682 2007-10-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1683
1684         * MAINTAINERS (Write After Approval): Add self.
1685
1686 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1687
1688         * breakpoint.c (print_one_breakpoint_location): ARI fix: 
1689         Replace asprintf by xstrprintf.
1690
1691 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1692
1693         * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
1694         Makefile.in (linux-fork.o): Add gdb_dirent.h dependency. 
1695
1696 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1697
1698         * linux-fork.c: Move "gdb_wait.h" include back to the position of
1699         <sys/wait.h> include before last commit.
1700
1701 2007-10-08  Maciej W. Rozycki  <macro@mips.com>
1702
1703         * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
1704
1705 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1706
1707         * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
1708         (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
1709         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
1710         (store_regs_user_thread, store_regs_kernel_thread): Use
1711         get_regcache_arch or get_frame_arch to get at the current architecture
1712         by regcache or by frame, respectively.
1713
1714 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1715
1716         * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
1717         (sh64_pseudo_register_read, sh64_pseudo_register_write)
1718         (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
1719         (sh64_print_register, sh64_media_print_registers_info)
1720         (sh64_compact_print_registers_info, sh64_unwind_sp)
1721         (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
1722         (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
1723         (sh64_frame_prev_register): Use FRAME to recognize current
1724         architecture.
1725
1726 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1727
1728         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1729         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1730         (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
1731         current_gdbarch by gdbarch.
1732         (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
1733         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1734         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
1735         (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
1736         recognize current architecture.
1737
1738 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1739
1740         * remote.c (init_remote_state, fetch_register_using_p)
1741         (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
1742         (store_register_using_P, store_registers_using_G)
1743         (remote_store_registers): Use get_regcache_arch or get_frame_arch to
1744         get at the current architecture by regcache or by frame, respectively.
1745
1746 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1747
1748         * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
1749         (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
1750         (m68k_frame_prev_register, m68k_get_longjmp_target): Use
1751         get_regcache_arch or get_frame_arch to get at the current architecture
1752         by regcache or by frame, respectively.
1753         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1754         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
1755         (store_register, old_store_inferior_registers, supply_gregset)
1756         (supply_fpregset, fill_fpregset): Likewise.
1757         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
1758         Replace current_gdbarch by gdbarch.
1759
1760 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1761
1762         * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
1763         (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
1764         get_frame_arch to get at the current architecture by regcache or by
1765         frame, respectively.
1766
1767 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1768
1769         * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
1770         Replace current_gdbarch by gdbarch.
1771         * ia64-tdep.c (ia64_frame_prev_register
1772         (ia64_sigtramp_frame_prev_register)
1773         (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
1774         get_frame_arch to get at the current architecture by regcache or by
1775         frame, respectively.
1776         * ia64-linux-nat.c (ia64_linux_fetch_register)
1777         (ia64_linux_fetch_registers, ia64_linux_store_register)
1778         (ia64_linux_store_registers): Likewise.
1779
1780 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1781
1782         * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
1783         current_gdbarch by gdbarch.
1784         * hppa-linux-nat.c (fetch_register, store_register)
1785         (hppa_linux_fetch_inferior_registers)
1786         (hppa_linux_store_inferior_registers): Use get_regcache_arch or
1787         get_frame_arch to get at the current architecture by regcache or by
1788         frame, respectively.
1789         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
1790         (hppa_hpux_unwind_adjust_stub): Likewise.
1791         * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
1792         (hppa_hpux_fetch_inferior_registers)
1793         (hppa_hpux_store_inferior_registers): Likewise.
1794
1795 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1796
1797         * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1798         (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
1799         (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
1800         or get_frame_arch to get at the current architecture by regcache or by
1801         frame, respectively.
1802         * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
1803         (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
1804         (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
1805         current_gdbarch by gdbarch.
1806
1807 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1808
1809         * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
1810         (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
1811         (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
1812         get at the current architecture by regcache or by·frame, respectively.
1813         (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
1814         gdbarch.
1815
1816 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1817
1818         * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
1819         Use get_regcache_arch or get_frame_arch to get at the current
1820         architecture by regcache or by frame, respectively.
1821         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1822         * amd64-nat.c (amd64_supply_native_gregset)
1823         (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
1824
1825 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1826
1827         * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
1828         gdbarch.
1829         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1830         (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
1831         (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
1832         get_frame_arch to get at the current architecture by regcache or by 
1833         frame, respectively.
1834         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1835
1836 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1837
1838         * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
1839         (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
1840         current_gdbarch by gdbarch.
1841         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
1842
1843 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1844
1845         * regcache.c (init_regcache_descr, register_type, read_pc_pid)
1846         (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
1847         * regcache.c (regcache_raw_write): Use get_regcache_arch or
1848         get_frame_arch to get at the current architecture by regcache or by
1849         frame, respectively.
1850
1851 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
1852
1853         * findvar.c (value_of_register, locate_var_value): Use
1854         get_regcache_arch or get_frame_arch to get at the current architecture
1855         by regcache or by frame, respectively.
1856         * findvar.c (default_value_from_register, value_from_register): Replace
1857         current_gdbarch by gdbarch.
1858
1859 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1860
1861         * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
1862
1863 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1864
1865         * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
1866         Makefile.in (linux-fork.o): Add gdb_wait.h dependency. 
1867
1868 2007-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
1869
1870         * remote.c (get_offsets): Only call free_symfile_segment_data if
1871         data was allocated.
1872
1873 2007-10-03  Pierre Muller  <muller@ics.u-strasbg.fr>
1874
1875         * objc-exp.y: ARI fix: remove 4 PARAMS. 
1876
1877 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
1878
1879         * NEWS: Use uniform spacing.  Correct version number for GDB 6.7
1880         news.  Mention XML support for M68K in GDB 6.7.
1881
1882 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
1883
1884         * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
1885         bounds.
1886         (init_vector_type): Use builtin_type_int32.
1887
1888 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
1889
1890         * s390-tdep.c (s390_regset_from_core_section): Allow excess section
1891         size to enable bi-arch generate-core-file support.
1892
1893 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
1894
1895         * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
1896
1897 2007-10-02  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1898
1899         * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
1900         signal handler.
1901         * tui/tui-win.c (tui_initialize_win): New function for
1902         initializing tui's SIGWINCH signal handler.
1903         * tui/tui-win.h (tui_initialize_win): Declare.
1904
1905 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
1906
1907         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
1908         pointer to uintptr_t before casting to CORE_ADDR.
1909
1910 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
1911
1912         * linux-nat.c (PTRACE_GETSIGINFO): Add define.
1913
1914 2007-10-02  Mark Mitchell  <mark@codesourcery.com>
1915
1916         * mingw-hdep.c (gdb_select): Stop helper threads before returning.
1917         * ser-mingw.c (enum select_thread_state): New type.
1918         (struct ser_console_state): Add have_started and thread_state.
1919         (select_thread_wait): New function.
1920         (thread_fn_type): New type.
1921         (create_select_thread): New function.
1922         (destroy_select_thread): Likewise.
1923         (start_select_thread): Likewise.
1924         (stop_select_thread): Likewise.
1925         (console_select_thread): Use new functions.
1926         (pipe_select_thread): Likewise.
1927         (file_select_thread): Likewise.
1928         (ser_console_wait_handle): Likewise.
1929         (ser_console_done_wait_handle): Likewise.
1930         (ser_console_close): Likewise.
1931         (free_pipe_state): Likewise.
1932         (pipe_wait_handle): Likewise.
1933         (pipe_done_wait_handle): Likewise.
1934         (struct net_windows_state): Derive from ser_console_state.
1935         (net_windows_select_thread): Use new functions.
1936         (net_windows_wait_handle): Likewise.
1937         (net_windows_done_wait_handle): Likewise.
1938         (net_windows_close): Likewise.
1939
1940 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
1941
1942         * inflow.c (terminal_ours_1): Remove useless line.
1943
1944 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
1945
1946         * mips-tdep.c (mips_read_fp_register_double): Correct check for
1947         odd FP registers.
1948         (mips_print_fp_register): Correct check for even FP registers.
1949         (mips_virtual_frame_pointer): New function.
1950         (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1951
1952 2007-09-30  Mike Frysinger  <vapier@gentoo.org>
1953
1954         * value.h (lookup_only_internalvar): New prototype.
1955         (create_internalvar): Likewise.
1956         * value.c (lookup_only_internalvar): New function.
1957         (create_internalvar): Likewise.
1958         (lookup_internalvar): Use new lookup_only_internalvar and
1959         create_internalvar functions.
1960         * parse.c (write_dollar_variable): Look up $ symbols in internal
1961         table first rather than last.
1962
1963 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
1964
1965         * linux-nat.c (linux_nat_new_thread): New variable.
1966         (linux_child_follow_fork): Set inferior_ptid to include LWP ID.  Use
1967         linux_nat_switch_fork.
1968         (lwp_list): Make public.
1969         (add_lwp): Call linux_nat_new_thread.
1970         (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1971         the new thread.
1972         (resume_callback): Clear lp->siginfo.  Remove unused variable.
1973         (linux_nat_resume): Assert that the LWP list is already initialized.
1974         Clear lp->siginfo.
1975         (save_siginfo): New.
1976         (stop_wait_callback, linux_nat_wait): Call it.
1977         (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1978         * linux-nat.h (struct lwp_info): Add siginfo.
1979         (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1980         (ALL_LWPS): Define.
1981
1982         * amd64-linux-nat.c (amd64_linux_dr): New.
1983         (amd64_linux_dr_get): Take a PTID argument.  Correct typo.
1984         (amd64_linux_dr_set): Take a PTID argument.
1985         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1986         (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1987         (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1988         (amd64_linux_new_thread): New.
1989         (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1990         * i386-linux-nat.c (i386_linux_dr): New.
1991         (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1992         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1993         (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1994         (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1995         (i386_linux_new_thread): New.
1996         (i386_linux_resume): Remove unnecessary PID check.
1997         (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1998         * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1999         (fetch_debug_register, fetch_debug_register_pair): Delete.
2000         (debug_registers): New.
2001         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2002         ALL_LWPS and debug_registers.
2003         (ia64_linux_new_thread): New.
2004         (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2005         (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2006         * ppc-linux-nat.c (last_stopped_data_address): Delete.
2007         (saved_dabr_value): New.
2008         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2009         ALL_LWPS.
2010         (ppc_linux_new_thread): New.
2011         (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2012         (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2013         (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2014         * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2015         after reading it.
2016         (s390_fix_watch_points): Take a PTID argument.
2017         (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2018         (_initialize_s390_nat): Call linux_nat_set_new_thread.
2019
2020 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
2021             Jeff Johnston  <jjohnstn@redhat.com>
2022
2023         * breakpoint.c (watchpoints_triggered): New.
2024         (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2025         Check watchpoint_triggered instead.  Combine handling for software
2026         and hardware watchpoints.  Do not use target_stopped_data_address
2027         here.  Always check a watchpoint if its scope breakpoint triggers.
2028         Do not stop for thread or overlay events.  Improve check for
2029         triggered watchpoints without a value change.
2030         (watch_command_1): Insert the scope breakpoint first.  Link the
2031         scope breakpoint to the watchpoint.
2032         * breakpoint.h (enum watchpoint_triggered): New.
2033         (struct breakpoint): Add watchpoint_triggered.
2034         (bpstat_stop_status): Update prototype.
2035         (watchpoints_triggered): Declare.
2036         * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2037         (stepped_after_stopped_by_watchpoint): Delete.
2038         (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2039         local.  Handle infwait_step_watch_state.  Update calls to
2040         bpstat_stop_status.  Use watchpoints_triggered to check
2041         watchpoints.
2042         * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2043         (remote_stopped_data_address): Do not check it.
2044
2045 2007-09-29  Daniel Jacobowitz  <dan@codesourcery.com>
2046
2047         * configure.ac: Add $LIBINTL when testing libbfd.
2048         * configure: Regenerated.
2049
2050 2007-09-28  Vladimir Prus  <vladimir@codesourcery.com>
2051
2052         * NEW: Mention pending breakpoint changes and
2053         support for breakpoints at multiple locations.
2054         
2055 2007-09-27  Daniel Jacobowitz  <dan@codesourcery.com>
2056
2057         * arm-linux-tdep.c (arm_linux_software_single_step): New.
2058         (arm_linux_init_abi): Use it.
2059         * arm-tdep.c (arm_get_next_pc): Make global.  Handle all-ones
2060         condition correctly.
2061         * arm-tdep.h (arm_get_next_pc): Declare.
2062         * Makefile.in (arm-linux-tdep.o): Update.
2063
2064 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
2065
2066         * varobj.c (install_new_value): Don't
2067         call value_get_print_value when a value is
2068         lazy.  Update the print_value member in a
2069         single place.
2070
2071 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
2072
2073         * breakpoint.c (create_breakpoint): Set
2074         condition on each location, not on the first
2075         location of breakpoint.
2076         
2077 2007-09-26  Jim Blandy  <jimb@codesourcery.com>
2078
2079         * remote.c (getpkt_sane): Fix error message.  No animals were
2080         harmed in the making of this debugger.
2081
2082 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2083
2084         * p-typeprint.c: Fix 11 ARI reported problems.
2085         (pascal_print_type): Fix 4 operator at end of line.
2086         (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros 
2087         using strncmp function.
2088         (pascal_type_print_base): Fix 2 operator at end of line.
2089         (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros 
2090         using strncmp function.
2091
2092
2093 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2094
2095         * Fix PR pascal/2231
2096         dwarf2read.c (read_subroutine_type): 
2097         All pascal functions are prototyped. 
2098
2099 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2100
2101         * Fix PR pascal/2283
2102         p-valprint.c (pascal_val_print): correct current language check.
2103         Also print array of char as strings.
2104
2105
2106 2007-09-26  David Ung  <davidu@mips.com>
2107             Maciej W. Rozycki  <macro@mips.com>
2108
2109         * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2110
2111 2007-09-25  Pierre Muller  <muller@ics.u-strasbg.fr>
2112
2113         * p-exp.y: Fix 12 ARI reported problems.
2114         (name_not_typename): Fix 2 operator at end of line issues.
2115         (yylex): Fix 3 operator at end of line issues.
2116         Replace 7 DEPRECATED_STREQ macros using strcmp function.
2117
2118 2007-09-25  David Ung  <davidu@mips.com>
2119             Maciej W. Rozycki  <macro@mips.com>
2120
2121         * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2122         rules return composite types in registers as appropriate.
2123
2124 2007-09-24  Jim Blandy  <jimb@codesourcery.com>
2125
2126         * symfile.h (struct symfile_segment_data): Doc fixes.
2127         * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2128         Assert that we were passed some loaded segment addresses,
2129         and that sections' segment numbers are valid.
2130         Simplify offset calculation.
2131         * remote.c (get_offsets): Clarify selection of relocate-by-segment
2132         strategy, and set num_segments correctly.  Delete redundant
2133         assignments to do_sections.
2134
2135 2007-09-24  Daniel Jacobowitz  <dan@codesourcery.com>
2136
2137         * frame.c (get_prev_frame_1): Also check for PC in the same register.
2138
2139 2007-09-24  Vladimir Prus  <vladimir@codesourcery.com>
2140         
2141         * breakpoint.c (remove_sal): New.
2142         (expand_line_sal_maybe): New.
2143         (create_breakpoints): Call expand_line_sal_maybe.
2144         (clear_command): Add comment.
2145         (breakpoint_re_set_one): Call expand_line_sal_maybe.
2146         * linespec.c (decode_indirect): Set explicit_pc to 1.
2147         (decode_all_digits): Set explicit_line to 1.
2148         (append_expanded_sal): New.
2149         (expand_line_sal): New.
2150         * linespec.h (expand_line_sal): Declare.
2151         * symtab.c (init_sal): Initialize explicit_pc 
2152         and explicit_line.
2153         * symtab.h (struct symtab_and_line): New fields
2154         explicit_pc and explicit_line.  
2155
2156 2007-09-23  Daniel Jacobowitz  <dan@codesourcery.com>
2157
2158         * infcall.c (call_function_by_hand): Handle language-specific
2159         pass and return by reference.
2160
2161         * cp-abi.c (cp_pass_by_reference): New.
2162         * cp-abi.h (cp_pass_by_reference): Declare.
2163         (struct cp_abi_ops): Add pass_by_reference.
2164         * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2165         (init_gnuv3_ops): Set pass_by_reference.
2166
2167         * language.c (language_pass_by_reference): New.
2168         (default_pass_by_reference): New.
2169         (unknown_language_defn, auto_language_defn, local_language_defn): Add
2170         default_pass_by_reference.
2171         * langauge.h (struct language_defn): Add la_pass_by_reference.
2172         (language_pass_by_reference, default_pass_by_reference): Declare.
2173         * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2174         * c-lang.c (c_language_defn, asm_language_defn)
2175         (minimal_language_defn): Likewise.
2176         (cplus_language_defn): Add cp_pass_by_reference.
2177         * f-lang.c (f_language_defn): Add default_pass_by_reference.
2178         * jv-lang.c (java_language_defn): Likewise.
2179         * m2-lang.c (m2_language_defn): Likewise.
2180         * objc-lang.c (objc_language_defn): Likewise.
2181         * p-lang.c (pascal_language_defn): Likewise.
2182         * scm-lang.c (scm_language_defn): Likewise
2183
2184 2007-09-23  Vladimir Prus  <vladimir@codesourcery.com>
2185
2186         Allow a code breakpoint to have several locations
2187         associated with it.
2188         * breakpoint.h (enum enable_state): Remove the
2189         bp_shlib_disabled enumerator. 
2190         (struct bp_location): New members shlib_disabled,
2191         global_next, enabled and function_name.
2192         Rename pending to condition_not_parsed.
2193
2194         * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2195         (ALL_BP_LOCATIONS_SAFE): Likewise.
2196         (breakpoint_enabled): Don't check for pending.
2197         (condition_command): Free and update all locations of
2198         a breakpoint.
2199         (insert_bp_location): Adjust.
2200         (software_breakpoint_inserted_here_p): Don't care
2201         if breakpoint is enabled, as soon as it's inserted.
2202         (print_it_typical): Print bpstat's location, not
2203         bpstat's breakpoint's location.
2204         (bpstat_stop_status): Iterate over all locations, not
2205         all breakpoints.
2206         (print_breakpoint_location): New.
2207         (print_one_breakpoint): Renamed to
2208         (print_one_breakpoint_location): ...this. Take
2209         parameters to describe which location is being
2210         printed. Modify code to properly print header
2211         for several locations and individual locations.
2212         (print_one_breakpoint): Print all locations.
2213         (breakpoint_has_pc): New.
2214         (describe_other_breakpoints): Use the above.
2215         (check_duplicates): Renamed to...
2216         (check_duplicates_for): .. this.
2217         (check_duplicates): Use check_duplicates_for.
2218         (allocate_bp_location): Adjust.
2219         (set_raw_breakpoint_without_location): New,
2220         extracted from set_raw_breakpoint.
2221         (set_breakpoint_location_function): New.
2222         (set_raw_breakpoint): Use 
2223         set_raw_breakpoint_without_location.
2224         (make_breakpoint_permanent): Mark all locations
2225         as inserted.
2226         (disable_breakpoints_in_shlibs): Iterate over
2227         locations.
2228         (disable_breakpoints_in_unloaded_shlib): Likewise.
2229         (re_enable_breakpoints_in_shlibs): Likewise.
2230         (mention): Say "pending" when breakpoint has
2231         zero locations.  If breakpoint has more than one
2232         location, say so.
2233         (add_location_to_breakpoint): New.
2234         (create_breakpoint): Accept symtabs_and_lines, not
2235         symtab_and_line. Pass extra sals to 
2236         add_location_to_breakpoint.
2237         (create_breakpoints): Pass symtabs_and_lines to
2238         create_breakpoints.
2239         (break_command_1): Make pending breakpoints
2240         have zero locations.
2241         (do_captured_breakpoint): Remove wrong allocation.
2242         (clear_command): Iterate over all locations.
2243         (unlink_locations_from_global_list): Renamed
2244         from unlink_location_from_global_list. Remove
2245         all locations.
2246         (delete_breakpoint): Remove all locations.
2247         Iterate over all locations when deciding which
2248         other location to re-enable.
2249         (all_locations_are_pending): New.
2250         (update_breakpoint_locations): Renamed from
2251         update_breakpoint_location. Try to match old
2252         and new locations using names of containing
2253         functions.
2254         (breakpoint_re_set_one): Adjust.
2255         (find_location_by_number): New.
2256         (disable_command): Allow disabling individual location.
2257         (enable_command): Allow enabling individual location.
2258         * breakpoint.c: Adjust all uses of breakpoint's
2259         enable state to for bp_shlib_disabled change.
2260         
2261 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
2262
2263         * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2264         (resolve_pending_breakpoint): Remove.
2265         (re_enable_breakpoints_in_shlibs): Remove.
2266         (unlink_locations_from_global_list): New.
2267         (update_breakpoint_locations): New.
2268         (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2269         Use parse_condition and update_breakpoint_location to
2270         reset breakpoint.  Ignore 'symbol not found' error from
2271         decode_line_1.
2272         (breakpoint_re_set): Don't emit newline before the
2273         reason why breakpoint is not reset.
2274         (do_enable_breakpoint): Don't specially process pending
2275         breakpoints.
2276         (free_bp_location): New.
2277         (break_command_1): For pending breakpoints, initialize
2278         all fields of a sal with zeroes.
2279         * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2280         * infcmd.c (post_create_inferior): Don't call
2281         re_enable_breakpoints_in_shlibs.
2282         * infrun.c (handle_inferior_event): Likewise.
2283         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2284         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2285         * win32-nat.c (get_win32_debug_event): Likewise.
2286         
2287 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
2288
2289         * breakpoint.c (create_breakpoint): Split from
2290         create_breakpoints, implementing most of its logic.
2291         Take just a single sal, single address string and
2292         single condition.  Do not take parsed condition at
2293         all.
2294         (create_breakpoints): Just call create_breakpoint
2295         for each sal.
2296         (find_condition_and_thread): New.
2297         (break_command_1): Use find_condition_and_thread.
2298         Do not keep parsed conditions.
2299         (do_captured_breakpoint): Don't convert
2300         condition string to struct expression.
2301         
2302 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
2303
2304         * breakpoint.h (struct breakpoint): Move the cond 
2305         field to...
2306         (struct bp_location): Here.
2307         * breakpoint.c (condition_command, bpstat_stop_status)
2308         (print_one_breakpoint, allocate_bp_location)
2309         (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2310         (create_exec_event_catchpoint, create_breakpoints)
2311         (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2312         (create_ada_exception_breakpoint, set_breakpoint_sal)
2313         (delete_breakpoint, breakpoint_re_set_one): Adjust.
2314         * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2315         
2316 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
2317
2318         Associate bp_stat with bp_location, not breakpoint.
2319         * breakpoint.h (breakpoint_at): Change type
2320         to bp_location*.
2321         * breakpoint.c (bpstat_alloc): Take bp_location,
2322         not breakpoint.
2323         (bpstat_find_breakpoint): Look at bpstat's location's
2324         owner, not at bpstat->breakpoint_at.
2325         (bpstat_find_step_resume_breakpoint): Likewise.
2326         (bpstat_num): Likewise.
2327         (print_it_typical): Likewise.
2328         (print_bp_stop_message): Likewise.
2329         (watchpoint_check): Likewise.
2330         (bpstat_what): Likewise.
2331         (bpstat_get_triggered_catchpoints): Likewise.
2332         (breakpoint_auto_delete): Likewise.
2333         (delete_breakpoint): Likewise.  
2334         (bpstat_stop_status): Pass location, not breakpoint,
2335         to bpstat_alloc.  Look at bpstat's location's
2336         owner, not at bpstat->breakpoint_at.
2337
2338 2007-09-21  Jim Blandy  <jimb@codesourcery.com>
2339
2340         * macrotab.h (new_macro_table): Document that removing information
2341         from an obstack/bcache-managed macro table leaks memory.
2342         * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2343         that data is never freed in obstack/bcache-managed macro tables,
2344         just leak the storage.
2345         (macro_undef): If we're undefining a macro at exactly the same
2346         source location that we defined it, simply remove the definition
2347         altogether.
2348
2349 2007-09-21  Joel Brobecker  <brobecker@adacore.com>
2350
2351         * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2352         * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2353         Adjust the struct sym_fns object accordingly by setting
2354         the new field to NULL.
2355         * xcoffread.c (aix_process_linenos): Make static.
2356         (xcoff_sym_fns): Set new field to aix_process_linenos.
2357         * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2358         by call to new the new sym_fns sym_read_linetable function.
2359         * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2360         * config/rs6000/tm-rs6000.h: Delete.
2361
2362 2007-09-21  David Ung  <davidu@mips.com>
2363             Maciej W. Rozycki  <macro@mips.com>
2364
2365         * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2366         rules do not treat composite types specially.
2367
2368 2007-09-20  Maciej W. Rozycki  <macro@mips.com>
2369
2370         * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2371         (mips16_in_function_epilogue_p): Likewise.
2372         (mips_in_function_epilogue_p): Likewise.
2373         (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2374
2375 2007-09-19  Joel Brobecker  <brobecker@adacore.com>
2376
2377         * configure.ac: Add check for "etext".
2378         * configure, config.in: Regenerate.
2379         * maint.c (TEXTEND): Only define if either _etext or etext
2380         are available.
2381         Disable the profiling functionality if TEXTEND is not defined.
2382
2383 2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
2384
2385         * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2386         address register.  Correct the call to frame_id_build.
2387         (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2388         is invalid.
2389
2390 2007-09-18  Joel Brobecker  <brobecker@adacore.com>
2391
2392         * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2393         the linetable past the function end.
2394
2395 2007-09-18  James E. Wilson  <wilson@specifix.com>
2396
2397         * MAINTAINERS: Update my email address.
2398
2399 2007-09-18  Jerome Guitton  <guitton@adacore.com>
2400
2401         * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2402         (inf_ttrace_delete_dying_threads_callback): New function.
2403         (inf_ttrace_resume): After resuming the execution, iterate over
2404         the dying threads to delete them for the thread list.
2405         (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2406         mark the corresponding thread as dying instead of removing it
2407         from the thread list.
2408         (inf_ttrace_thread_alive): return 0 for dying threads.
2409
2410 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
2411
2412         * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2413         that return_frame is not null.
2414
2415 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
2416
2417         * solib-svr4.c: Add include of "auxv.h".
2418         (enable_break): Use the AT_BASE auxiliary entry if available.
2419         * Makefile.in (solib-svr4.o): Update dependencies.
2420
2421 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
2422
2423         * NEWS: Create a new section for the next release branch.
2424         Rename the section of the current branch, now that it has
2425         been cut.
2426
2427 2007-09-17  Jerome Guitton  <guitton@adacore.com>
2428
2429         * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2430         * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2431
2432 2007-09-16  Vladimir Prus  <vladimir@codesourcery.com>
2433
2434         * mi/mi-cmds.c (mi_cmds): Register -list-features.
2435         * mi/mi-cmds.h (mi_cmd_list_features): New.
2436         * mi/mi-main.c (mi_cmd_list_features): New.
2437         
2438 2007-09-11  Joel Brobecker  <brobecker@adacore.com>
2439
2440         GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2441         * version.in: Bump version to 6.7.50-20070911-cvs.
2442
2443 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
2444
2445         * thread.c (free_thread): Do not delete the step resume breakpoint
2446         right away.
2447
2448 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
2449
2450         * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2451         * corelow.c (core_read_description): New.
2452         (init_core_ops): Set to_read_description.
2453         * gdbarch.sh: Add gdbarch_core_read_description.
2454         * mips-linux-tdep.c (mips_linux_core_read_description): New.
2455         (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2456         * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2457         (mips_register_g_packet_guesses): Use them.
2458         (_initialize_mips_tdep): Initialize them.
2459         * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2460         * gdbarch.h, gdbarch.c: Regenerated.
2461
2462 2007-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2463
2464         * infrun.c (stepping_past_breakpoint): New global variable.
2465         (stepping_past_breakpoint_ptid): Likewise.
2466         (prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
2467         Only switch threads if we need to single-step over a breakpoint hit
2468         in the previously selected thread.  If stepping, remember previous
2469         thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
2470         switch_to_thread instead of copying its contents.
2471         (proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
2472         prepare_to_proceed returns true.
2473         (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
2474         (context_switch): Call switch_to_thread.
2475         (handle_inferior_event): Switch back to previous thread if requested
2476         in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
2477         * gdbthread.h (switch_to_thread): Add prototype.
2478         * thread.c (switch_to_thread): Make global.
2479
2480 2007-09-07  Pierre Muller  <muller@ics.u-strasbg.fr>
2481
2482          * p-valprint.c: Fix 7 ARI reported problems.
2483          (pascal_val_print): Fix one operator at end of line issue.
2484          Use paddress function to remove use of
2485          deprecated_print_address_numeric function (2 times).
2486          Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
2487          (pascal_value_print): Fix 3 operator at end of line issues.
2488
2489 2007-09-07  Daniel Jacobowitz  <dan@codesourcery.com>
2490
2491         PR gdb/2103
2492         * arm-tdep.c (arm_in_call_stub): Delete.
2493         (arm_skip_stub): Handle from_arm and from_thumb stubs.
2494
2495 2007-09-06  Daniel Jacobowitz  <dan@codesourcery.com>
2496
2497         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
2498         types.
2499
2500 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
2501             Jim Blandy  <jimb@codesourcery.com>
2502
2503         * NEWS: Update description of string changes.  Mention print/s.
2504         * c-valprint.c (textual_element_type): New.
2505         (c_val_print): Use it.  Do not skip address printing for pointers
2506         with a string format.
2507         (c_value_print): Doc update.
2508         * dwarf2read.c (read_array_type): Use make_vector_type.
2509         * gdbtypes.c (make_vector_type): New.
2510         (init_vector_type): Use it.
2511         (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
2512         (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
2513         * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
2514         (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
2515         (make_vector_type): New.
2516         * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
2517         Call the language print routine for string format.
2518         (print_scalar_formatted): Call val_print for string format.  Handle
2519         unsigned original types for char format.
2520         (validate_format): Do not reject string format.
2521         * stabsread.c (read_type): Use make_vector_type.
2522         * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
2523
2524 2007-09-04  Michael Snyder  <msnyder@access-company.com>
2525
2526         * expprint.c (print_subexp_standard): Check strchr for null.
2527         * Makefile.in (expprint.o): Depend on gdb_assert.h.
2528
2529         * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2530
2531         * stabsread.c (patch_block_status): Guard against null.
2532         * Makefile.in (stabsread.o): Depend on gdb_assert.h.
2533
2534 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
2535
2536         * printcmd.c (printf_command): Handle ptr_arg.  Correct typo
2537         in internal error message.
2538
2539 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
2540             Daniel Jacobowitz  <dan@codesourcery.com>
2541
2542         * infcmd.c (post_create_inferior): Update comment.
2543         (run_command_1): Always call post_create_inferior with 0 as
2544         from_tty.
2545
2546         * i386-cygwin-tdep.h: New.
2547         * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
2548         (win32_xfer_shared_library): Make it extern.
2549
2550         * win32-nat.c: Include gdb_obstack.h and xml-support.h and
2551         i386-cygwin-tdep.h.
2552         (win32_so_ops): Delete.
2553         (get_relocated_section_addrs): Delete.
2554         (solib_symbols_add): Delete.
2555         (register_loaded_dll): Delete.
2556         (win32_make_so): New.
2557         (handle_load_dll): Use win32_make_so.
2558         (win32_free_so): Free the passed in so.
2559         (win32_relocate_section_addresses): Delete.
2560         (win32_solib_create_inferior_hook): Delete.
2561         (handle_unload_dll): Don't add PE offset here.  Free so with
2562         win32_free_so instead of free_so.
2563         (win32_special_symbol_handling): Delete.
2564         (get_win32_debug_event): Remove unneeded calls.  Set state to
2565         TARGET_WAITKIND_LOADED on a dll unload.
2566         (do_initial_win32_stuff): Clear cygwin_load_start and
2567         cygwin_load_end.
2568         (map_code_section_args): Delete.
2569         (dll_code_sections_add): Delete.
2570         (core_section_load_dll_symbols): Delete.
2571         (win32_xfer_shared_libraries): New.
2572         (win32_current_sos): Delete.
2573         (win32_xfer_partial): New.
2574         (open_symbol_file_object): Delete.
2575         (in_dynsym_resolve_code): Delete.
2576         (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
2577         of win32_ops.  Remove win32_so_ops settings.  Don't set
2578         current_target_so_ops here.
2579
2580         * Makefile.in (i386_cygwin_tdep_h): New variable.
2581         (i386-cygwin-tdep.o): Update dependencies.
2582         (win32-nat.o): Update dependencies.
2583
2584 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
2585             Daniel Jacobowitz  <dan@codesourcery.com>
2586
2587         * gdbarch.sh (core_xfer_shared_libraries): New.
2588
2589         * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2590
2591         * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
2592
2593         * xml-support.c (gdb_xml_parse): Debug output tweaks.
2594         (xml_escape_text): New.
2595         * xml-support.h (xml_escape_text): Declare.
2596
2597         * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
2598         * config/i386/cygwin.mt (TDEPFILES): ... here.
2599
2600         * win32-nat.c: (fetch_elf_core_registers): Delete.
2601         (win32_elf_core_fn): Delete.
2602         (_initialize_core_win32): Delete.
2603
2604         * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
2605         "xml-support.h" and "gdbcore.h".
2606         (i386_win32_gregset_reg_offset): New.
2607         (I386_WIN32_SIZEOF_GREGSET): New.
2608         (i386_win32_regset_from_core_section): New.
2609         (win32_xfer_shared_library): New.
2610         (struct cpms_data): New.
2611         (core_process_module_section): New.
2612         (win32_core_xfer_shared_libraries): New.
2613         (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
2614         gregset_num_regs, sizeof_gregset members of tdep.  Register
2615         regset_from_core_section and core_xfer_shared_libraries callbacks.
2616
2617         * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
2618         * gdbarch.h, gdbarch.c: Regenerate.
2619
2620 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
2621
2622         * corelow.c (core_xfer_partial): Pass writebuf to
2623         deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
2624
2625 2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
2626
2627         * arm-tdep.h (arm_skip_stub): Declare.
2628         * arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
2629         "gdbcore.h".
2630         (arm_pe_skip_trampoline_code): New function.
2631         (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
2632         gdbarch_skip_trampoline_code callback.
2633         * Makefile.in (arm-wince-tdep.o): Update dependencies.
2634
2635 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
2636
2637         * MAINTAINERS: Move Fred Fish to Past Maintainers.
2638
2639 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
2640
2641         * configure.ac: Add --with-expat.
2642         * configure: Regenerated.
2643
2644 2007-09-03  Andreas Schwab  <schwab@suse.de>
2645
2646         * configure.ac: Accept --with-system-readline.
2647         (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
2648         * configure: Regenerate.
2649         * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
2650         substituted values.
2651         (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
2652
2653 2007-09-03  Maxim Grigoriev  <maxim2405@gmail.com>
2654             Daniel Jacobowitz  <dan@codesourcery.com>
2655
2656         * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
2657
2658 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2659
2660         * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
2661
2662 2007-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
2663
2664         * top.c (print_gdb_version): Update for GPL version 3.
2665
2666 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2667
2668         * NEWS: Mention the build-id .debug files verification.
2669
2670 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2671
2672         * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
2673
2674 2007-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2675
2676         * Makefile.in (symfile.o): Update dependencies.
2677         * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
2678         DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
2679         (struct build_id): New structure.
2680         (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
2681         (find_separate_debug_file): New variable BUILD_ID.
2682         Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2683
2684 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
2685
2686         * varobj.c (struct varobj): Fix comment
2687         for the type member not to lie when it can be 
2688         NULL.
2689         
2690 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
2691
2692         Implement -var-info-path-expression.
2693
2694         * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
2695         Declare.
2696         * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
2697         * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
2698         * varobj.c (struct varobj): New field 'path_expr'.
2699         (c_path_expr_of_child, cplus_path_expr_of_child)
2700         (java_path_expr_of_child): New.
2701         (struct language_specific): New field path_expr_of_child.
2702         (varobj_create): Initialize the path_expr field.
2703         (varobj_get_path_expr): New.
2704         (new_variable): Initialize the path_expr field.
2705         (free_variable): Free the path_expr field.
2706         (adjust_value_for_children_access): New parameter
2707         WAS_TYPE.
2708         (c_number_of_children): Adjust.
2709         (c_describe_child): New parameter CFULL_EXPRESSION.
2710         Compute full expression.
2711         (c_value_of_child, c_type_of_child): Adjust.
2712         (cplus_number_of_children): Adjust.
2713         (cplus_describe_child): New parameter CFULL_EXPRESSION.
2714         Compute full expression.
2715         (cplus_name_of_child, cplus_value_of_child)
2716         (cplus_type_of_child): Adjust.
2717         * varobj.h (varobj_get_path_expr): Declare.
2718
2719 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
2720
2721         * mi/mi-cmd-var.c (print_varobj): If a varobj
2722         type is NULL, don't try to print it.
2723         
2724 2007-08-30  Alan Modra  <amodra@bigpond.net.au>
2725
2726         * ppc-linux-nat.c (right_fill_reg): Delete.
2727         (supply_gregset): Use ppc_supply_gregset.
2728         (supply_fpregset): Use ppc_supply_fpregset.
2729         (fill_gregset): Use ppc_collect_gregset.
2730         (fill_fpregset): Use ppc_collect_fpregset.
2731         * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
2732         (right_supply_register, ppc_linux_supply_gregset): Delete.
2733         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
2734         (ppc_linux_supply_fpregset): Delete.
2735         (ppc_linux_collect_gregset): New function.
2736         (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
2737         (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
2738         ppc_linux_supply_gregset, and ppc_collect_gregset.
2739         (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
2740         (ppc_linux_gregset, ppc_linux_fpregset): New functions.
2741         (ppc_linux_regset_from_core_section): Update.
2742         * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
2743         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
2744         (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
2745         * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
2746         (ppcobsd_collect_gregset): Likewise.
2747         (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
2748         * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2749         * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
2750         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
2751         (rs6000_aix64_reg_offsets): Likewise.
2752         (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
2753         ppc_floating_point_unit_p.
2754         (rs6000_aix_collect_regset): Similarly.
2755         * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
2756         when regsize is larger than regcache register size.
2757         (ppc_collect_reg): Similarly zero pad when regsize is larger than
2758         regcache register size.
2759         (ppc_greg_offset): New function, split out from..
2760         (ppc_supply_gregset): ..here.  Separate code handling all regs from
2761         single reg case.  Correct xer offset.
2762         (ppc_fpreg_offset): New function, split out from..
2763         (ppc_supply_fpregset): ..here.  Separate code handling all regs from
2764         single reg case.
2765         (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
2766         (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
2767         a fp unit, instead return if no fp.
2768
2769 2007-08-29  Jim Blandy  <jimb@codesourcery.com>
2770
2771         * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
2772         this code has not been compiled for two years.
2773
2774 2007-08-29  Michael Snyder  <msnyder@access-company.com>
2775
2776         * event-top.c (gdb_readline2): Return after EOF.
2777
2778 2007-08-29  Joel Brobecker  <brobecker@adacore.com>
2779
2780         * symtab.c: Remove a function that has been commented out 3 years ago.
2781
2782 2007-08-29  Randolph Chung  <tausq@debian.org>
2783
2784         * hppa-tdep.c (hppa32_cannot_fetch_register)
2785         (hppa64_cannot_fetch_register): New functions.
2786         (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
2787         * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2788
2789 2007-08-28  Michael Snyder  <msnyder@access-company.com>
2790
2791         * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 
2792         check for null before calling check_typedef.
2793
2794         * NEWS: Mention Coverity bug fixes.
2795
2796 2007-08-27  Markus Deuling  <deuling@de.ibm.com>
2797
2798         * spu-tdep.c (spu_pointer_to_address): New function.
2799         (spu_integer_to_address): Likewise.
2800         (spu_gdbarch_init): Add spu_pointer_to_address and 
2801         spu_integer_to_address to gdbarch.
2802
2803 2007-08-26  Pedro Alves  <pedro_alves@portugalmail.pt>
2804
2805         * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
2806
2807 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
2808
2809         * Makefile.in (copying.c): Use the top-level COPYING3 as the file
2810         that contains the GDB license.
2811         * copying.awk: Adjust to the GPLv3 wording.
2812         * copying.c: Regenerate.
2813
2814 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
2815
2816         * copying.awk: Protoization, and i18n markup.
2817
2818 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
2819
2820         * config/djgpp/djconfig.sh: Switch license to GPLv3.
2821         * copyright.sh: Likewise.
2822         * gdb-events.sh: Likewise.
2823         * gdb_gcore.sh: Likewise.
2824         * gdb_mbuild.sh: Likewise.
2825         * gdbarch.sh: Likewise.
2826         * observer.sh: Likewise.
2827         * features/feature_to_c.sh: Likewise.
2828         * regformats/regdat.sh: Likewise.
2829
2830 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
2831
2832         Switch the license of all .c files to GPLv3.
2833         Switch the license of all .h files to GPLv3.
2834         Switch the license of all .cc files to GPLv3.
2835
2836 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
2837
2838         * configure.ac: Switch license to GPLv3.
2839
2840 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
2841
2842         * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
2843         determine the file's FPU type.
2844
2845 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
2846
2847         * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
2848         (mips_n32n64_push_dummy_call): Always increment float_argreg along
2849         with argreg.  Use mips_n32n64_fp_arg_chunk_p.
2850
2851 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
2852
2853         * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
2854         Fix formatting.
2855         (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
2856         (elf_lookup_lib_symbol): Fix formatting.
2857
2858 2007-08-21  Michael Snyder  <msnyder@access-company.com>
2859
2860         * dbxread.c (read_dbx_symtab): Guard null deref.
2861         Break up long line.
2862
2863         * valops.c (find_overload_match): Guard against NULL.
2864
2865 2007-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2866
2867         * MAINTAINERS (Patch Champions): Remove self.
2868
2869 2007-08-21  Chris Smith  <chris.smith@st.com>
2870
2871         * cli/cli-script.c (read_command_lines): Call dont_repeat for each
2872         line.
2873
2874 2007-08-18  Michael Snyder  <msnyder@access-company.com>
2875
2876         * stabsread.c (dbx_lookup_type): Memory leak.
2877
2878         * event-loop.c (delete_async_signal_handler): Move pointer null
2879         test to before pointer dereference.
2880
2881         * ui-out.c (append_header_to_list): Possible cut and paste error.
2882
2883         * MAINTAINERS: white space tweak.
2884
2885 2007-08-17  Michael Snyder  <msnyder@access-company.com>
2886
2887         * stack.c (print_frame): Memory leak.
2888
2889         * completer.c (filename_completer): Avoid memory leak.
2890         Remove unnecessary nested block.
2891
2892         * c-exp.y (parse_number): Memory leak.
2893
2894         * completer.c (location_completer): Must free 'fn_list', except 
2895         in the one case where it is returned (as 'list').
2896
2897         * varobj.c (value_of_root): Memory leak.
2898
2899         * gdbtypes.h (virtual_base_list): Remove export decl.
2900         * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
2901         (virtual_base_index): Memory leak.
2902         (virtual_base_index_skip_primaries): Ditto.
2903
2904 2007-08-17  Maxim Grigoriev  <maxim2405@gmail.com>
2905
2906         * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
2907         (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
2908         (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
2909         (xtensa_read_register): New function.
2910         (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
2911         (xtensa_insn_kind): New types.
2912         (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
2913         (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
2914         (xtensa_verify_config, xtensa_pseudo_register_read)
2915         (xtensa_pseudo_register_write, xtensa_extract_return_value)
2916         (xtensa_store_return_value)
2917         (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
2918         (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
2919         (xtensa_frame_this_id, xtensa_frame_prev_register)
2920         (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
2921         (call0_frame_cache, call0_frame_get_reg_at_entry)
2922         (call0_classify_opcode, call0_track_op)
2923         (call0_analyze_prologue, call0_frame_cache): New functions.
2924
2925 2007-08-17  Vladimir Prus  <vladimir@codesourcery.com>
2926
2927         * breakpoint.c (bpstat_free): New.
2928         (bpstat_clear): Use bpstat_free.
2929         (delete_breakpoint): Document why we cannot
2930         remove bpstats from stop_bpstat.
2931         * breakpoint.h (bpstat_free): Declare.
2932                 
2933 2007-08-16  Michael Snyder  <msnyder@access-company.com>
2934
2935         * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
2936
2937 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
2938             Joel Brobecker  <brobecker@adacore.com>
2939
2940         * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2941
2942 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
2943             Joel Brobecker  <brobecker@adacore.com>
2944
2945         * ada-lang.c (possible_user_operator_p): Alternative fix to last
2946         checkin guarding against NULL.
2947
2948 2007-08-14  Michael Snyder  <msnyder@access-company.com>
2949
2950         * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2951         tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2952         tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2953         go at beginning of new line.
2954
2955         * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2956         tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2957         tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2958         tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2959         tui-winsource.h, tui.c, tui.h: Function declarations and 
2960         definitions, wrap long lines.
2961
2962         * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2963         tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2964         Reformat block comments to GNU standard.
2965
2966         * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2967         tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2968         tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2969         tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2970         tui.c, tui.h: Comment reformatting to coding standard (capitals, 
2971         spaces after periods, etc).     
2972
2973         * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2974         tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2975         tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2976         tui-winsource.h: Whitespace changes, fix pointer declarations
2977         to be consistant.
2978
2979 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
2980             Michael Snyder  <msnyder@access-company.com>
2981
2982         * ada-lang.c (field_alignment): Guard against NULL.
2983
2984 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
2985
2986         * MAINTAINERS (Global Maintainers): Add self.
2987
2988 2007-08-14  Michael Snyder  <msnyder@access-company.com>
2989
2990         * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2991
2992         * ada-lang.c (possible_user_operator_p): Guard against NULL.
2993
2994         * varobj.c (cplus_describe_child): Guard against null.
2995         Use "NULL" instead of "0" to initialize pointers.
2996
2997 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
2998
2999         * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3000         to match any gdbarch with matching OSABI.  Set default ABI and FPU
3001         after running the OSABI handler.
3002
3003 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
3004
3005         * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3006         * config/i386/linux.mt (TDEPFILES): ...to here.
3007
3008 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
3009
3010         * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3011         the 'silent' parameter and code to implement that.
3012         * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3013         prototype.
3014         * win32-nat.c: Adjust.
3015         * solib.c: Adjust.
3016         
3017 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
3018
3019         * breakpoint.c (update_breakpoints_after_exec): Don't
3020         set address to zero.
3021
3022 2007-08-13  Michael Snyder  <msnyder@access-company.com>
3023
3024         * valops.c: Whitespace clean-up.
3025
3026         * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3027
3028         * event-top.c (command_line_handler): Memory leak.
3029
3030         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3031         No need to make copy.
3032
3033         * source.c (find_source_lines): Require symtab 's'.
3034
3035 2007-08-11  Michael Snyder  <msnyder@access-company.com>
3036
3037         * completer.c: Spelling fix in comments.
3038
3039 2007-08-10  Michael Snyder  <msnyder@access-company.com>
3040
3041         * gdbtypes.c: Coding standard cleanup.
3042         * gdbtypes.c: Comment/whitespace cleanup.
3043
3044         * stabsread.c (read_huge_number): Attempt to compute value before
3045         values that it depends on.
3046
3047         * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3048         (decode_objc): Use "NULL" instead of 0.
3049         (find_method): Ditto.
3050         (decode_all_digits): Ditto.
3051         (decode_dollar): Ditto.
3052
3053         * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3054
3055         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3056
3057         * solib-svr4.c (enable_break): Don't free tmp_pathname until
3058         after closing bfd.
3059
3060         * completer.c: Comment/whitespace cleanup.
3061
3062 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
3063
3064         * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3065
3066 2007-08-10  Maxim Grigoriev  <maxim2405@gmail.com>
3067
3068         * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3069         allocated file descriptors.
3070
3071 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
3072
3073         * Makefile.in: Minor cleanup throughout; add some missing variables,
3074         add some missing rules, remove some rules that are no longer needed,
3075         and fix the dependencies in several rules.
3076
3077 2007-08-10  Ludovic Courtès  <ludo@gnu.org>
3078
3079         * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3080         (scm_lang_h, scm_tags_h): New.
3081         (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3082         (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3083         * defs.h (enum language): Add `language_scm'.
3084
3085         * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3086         opening.
3087
3088 2007-08-09  Ludovic Courtès  <ludo@gnu.org>
3089
3090         * MAINTAINERS (Write After Approval): Add myself.
3091
3092 2007-08-09  Michael Snyder  <msnyder@access-company.com>
3093
3094         * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3095
3096 2007-08-09  Joel Brobecker  <brobecker@adacore.com>
3097
3098         * solib-som.c (som_relocate_section_addresses): Stop saving
3099         the $CODE$ section in the so_list structure.
3100
3101 2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
3102
3103         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3104         (xtensa_register_group_t): Add entries for coprocessors.
3105         * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3106         (xtensa_add_reggroups): Likewise.
3107         (xtensa_register_reggroup_p): Likewise.
3108         (xtensa_coprocessor_register_group): New function.
3109         (xtensa_cp): New.
3110
3111 2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3112
3113         * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3114
3115 2007-08-08  Michael Snyder  <msnyder@access-company.com>
3116
3117         * target.c (target_read_string): Guard against null.
3118
3119         * varobj.c (value_of_root): Move alloc after return to avoid leak.
3120
3121         * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3122         (tui_set_layout_for_display_command): Mem leak.
3123
3124         * top.c (command_line_input): Memory leak.
3125
3126         * solib-svr4.c (open_symbol_file_object): Memory leak.
3127         (svr4_current_sos): Ditto.
3128         (enable_break): Ditto.
3129
3130         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3131
3132         * dwarf2read.c (add_partial_symbol): Memory leak.
3133
3134 2007-08-06  Michael Snyder  <msnyder@access-company.com>
3135
3136         * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3137
3138 2007-08-05  Jim Blandy  <jimb@codesourcery.com>
3139
3140         * macroexp.c (init_buffer): Remove testing code that overrides the
3141         caller's length guess.
3142         (gather_arguments): Use a larger initial size, now that the vector
3143         growth code has been exercised.
3144
3145 2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
3146
3147         * solib-target.c (solib_target_relocate_section_addresses): Add
3148         orig_delta to addr_high.
3149
3150 2007-08-04  Michael Snyder  <msnyder@access-company.com>
3151
3152         * remote-fileio.c (remote_fileio_func_write): Memory leak.
3153
3154         * breakpoint.c (print_one_breakpoint): Off by one error.
3155
3156         * tracepoint.c (add_register): Off by one error.
3157         (stringify_collection_list): Free malloc buffer.
3158
3159 2007-08-03  Michael Snyder  <msnyder@access-company.com>
3160
3161         * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3162         stop memory leak, straighten out cleanups.
3163
3164         * jv-lang.c (java_link_class_type): Guard against NULL.
3165
3166 2007-08-02  Michael Snyder  <msnyder@access-company.com>
3167
3168         * gdbtypes.c (create_set_type): Test should only be done within
3169         the preceeding if block.  Otherwise, variable is uninitialized.
3170
3171         * gdbtypes.c (check_typedef): Guard NULL.
3172
3173 2007-08-01  Michael Snyder  <msnyder@access-company.com>
3174
3175         * cli/cli-decode.c (lookup_cmd): Check for null earlier, to 
3176         avoid dereference in lookup_cmd_1.
3177
3178         * tui/tui-data.c (tui_alloc_content): Move assign out of if, 
3179         clean up long lines.
3180         (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3181         (tui_alloc_win_info): Ditto.
3182         (tui_add_content_elements): Ditto.
3183         * tui/tui-file.c (tui_file_magic): Ditto.
3184
3185 2007-07-31  Michael Snyder  <msnyder@access-company.com>
3186
3187         * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3188         True and false paths are mutually exclusive.
3189
3190         * event-top.c (command_line_handler): Add pedantic return.
3191
3192         * f-valprint.c (info_common_command): Bail out to prevent null
3193         pointer deref.  Break up a long line.
3194
3195         * exec.c (xfer_memory): Remove redundant condition from 'if'.
3196
3197         * symfile.c (reread_separate_symbols): Free xmalloced memory.
3198
3199         * printcmd.c (build_address_symbolic): Remove dead code and dead 
3200         variable.
3201
3202 2007-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
3203
3204         * linespec.c (minsym_found): Advance to the next line if possible.
3205
3206 2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
3207
3208         * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3209         * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3210         solib-svr4.o, and add solib-target.o
3211
3212 2007-07-27  Michael Snyder  <msnyder@access-company.com>
3213
3214         * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3215
3216 2007-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
3217
3218         * MAINTAINERS (Write After Approval): Add myself.
3219
3220 2007-07-26  Maciej W. Rozycki  <macro@mips.com>
3221
3222         * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3223         for include files.
3224
3225 2007-07-25  Maciej W. Rozycki  <macro@mips.com>
3226
3227         * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3228
3229 2007-07-24  Michael Snyder  <msnyder@access-company.com>
3230
3231         * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3232         'buffer' must cover both branches that call strcmp (Coverity).
3233
3234         * stack.c (print_frame_args): Check return value of lookup_symbol.
3235
3236         * ax-gdb.c (find_field): Guard against null ptr.
3237
3238 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
3239
3240         * regformats/reg-spu.dat: Fix order of npc, id registers.
3241
3242 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
3243
3244         * target.c (memory_xfer_partial): Accesses to unmapped overlay
3245         sections should always go to the executable file.
3246
3247 2004-07-20  Chris Dearman  <chris@mips.com>
3248
3249         * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3250         prologue instructions.
3251
3252 2007-07-20  Maciej W. Rozycki  <macro@mips.com>
3253
3254         * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3255         a direct test.
3256
3257 2007-07-20  Chris Dearman  <chris@mips.com>
3258             Maciej W. Rozycki  <macro@mips.com>
3259
3260         * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3261         description.
3262
3263 2007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
3264             Daniel Jacobowitz  <dan@codesourcery.com>
3265
3266         * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3267         * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3268         printf.
3269         * NEWS: Mention gdbserver DLL support.
3270
3271 2007-07-17  Daniel Jacobowitz  <dan@codesourcery.com>
3272
3273         * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3274
3275 2007-07-16  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3278         warning bug.
3279
3280 2007-07-13  Kevin Buettner  <kevinb@redhat.com>
3281
3282         * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3283         instruction case.
3284
3285 2007-07-12  Kevin Buettner  <kevinb@redhat.com>
3286
3287         * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3288         (mep_analyze_prologue): Add case for BRA instruction.
3289
3290 2007-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
3291
3292         * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3293
3294 2007-07-10  Nick Roberts  <nickrob@snap.net.nz>
3295
3296         * breakpoint.c: Include "top.h".
3297         (breakpoint_1): Don't set convenience variable $_ if server prefix
3298         is used.
3299         (_initialize_breakpoint): Describe this behaviour in command help.
3300
3301 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
3302
3303         * solib-target.c (library_list_start_segment): Cast address to
3304         CORE_ADDR.
3305
3306 2007-07-06  Mark Kettenis  <kettenis@gnu.org>
3307
3308         * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3309         for terminated processes.
3310
3311 2007-07-05  Michael Snyder  <msnyder@access-company.com>
3312
3313         * event-top.c (cli_command_loop): Prompt string can (and should)
3314         be freed after call to readline (Coverity).  Also move local var
3315         declarations into block where they are used.
3316
3317         * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3318         should) be freed after call to readline (Coverity).  Also move
3319         local var declarations into block where they are used.
3320
3321 2007-07-03  Andreas Schwab  <schwab@suse.de>
3322
3323         * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3324         /proc/../stat.
3325
3326 2007-07-03  Paul Gilliam  <pgilliam@us.ibm.com>
3327             Thiago Bauermann  <bauerman@br.ibm.com>
3328             Joseph S. Myers  <joseph@codesourcery.com>
3329             Daniel Jacobowitz  <dan@codesourcery.com>
3330
3331         * remote.c (remote_check_symbols): Use
3332         gdbarch_convert_from_func_ptr_addr.
3333         * infcall.c (find_function_addr): Handle function descriptors
3334         without debugging information.
3335         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3336         from ppc64_linux_convert_from_func_ptr_addr.  Handle -msecure-plt.
3337         (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3338         * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3339         (bfd_lookup_symbol): Do not take a SECT_FLAGS argument.  Always
3340         allow SEC_CODE and SEC_DATA.
3341         (enable_break): Update calls.  Pass current_target to solib_add.
3342         Use gdbarch_convert_from_func_ptr_addr.
3343
3344 2007-07-03  Ilko Iliev  <iliev@ronetix.at>
3345             Daniel Jacobowitz  <dan@codesourcery.com>
3346
3347         * symfile.c (print_transfer_performance): Avoid integer overflow.
3348         Use larger units.
3349
3350 2007-07-03  Markus Deuling  <deuling@de.ibm.com>
3351
3352         * cp-namespace.c (lookup_symbol_file): Add block to
3353         lookup_symbol_global call.
3354         * Makefile.in (solist_h): Add dependency on symtab header.
3355         (symtab.o): Add dependency on solist header.
3356         * solib.c (solib_global_lookup): New function.
3357         * solib-svr4.c (scan_dyntag): Likewise.
3358         (elf_locate_base): Call helper routine scan_dyntag.
3359         (elf_lookup_lib_symbol): New function.
3360         (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3361         * solist.h (symtab.h): New include.
3362         (struct target_so_ops): New member lookup_lib_global_symbol.
3363         (solib_global_lookup): New prototype.
3364         * symtab.c: New include solist.h.
3365         (lookup_objfile_from_block): New function.
3366         (lookup_global_symbol_from_objfile): New function.
3367         (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3368         (lookup_symbol_global): Call library-specific lookup procedure.
3369         * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3370
3371         * NEWS: Document framework.
3372
3373 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3374
3375         * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3376         to NULL.
3377
3378         * cli/cli-script.c (build_command_line): Update NULL check.
3379
3380 2007-07-02  Michael Snyder  <msnyder@access-company.com>
3381
3382         * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3383
3384 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3385
3386         * Makefile.in (XMLFILES): Add library-list.dtd.
3387         (ALLDEPFILES): Add solib-target.o.
3388         (solib-target.o): New rule.
3389         * remote.c (PACKET_qXfer_libraries): New constant.
3390         (remote_protocol_features): Add qXfer:libraries:read.
3391         (remote_wait): Recognize library stop replies.
3392         (remote_async_wait): Likewise.  Fix typo.
3393         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3394         (init_remote_async_ops): Fix typo.
3395         (_initialize_remote): Register "set remote library-info-packet".
3396         * solib-som.c (som_current_sos): Set addr_low and addr_high.
3397         * solib-target.c: New file.
3398         * solib.c (solib_map_sections): Use addr_low and addr_high instead
3399         of textsection.
3400         (info_sharedlibrary_command): Likewise.
3401         (solib_add_library, solib_remove_library): New.
3402         * solist.h (struct so_list): Replace textsection with addr_low and
3403         addr_high.
3404         * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3405         * NEWS: Describe new qXfer:libraries:read and shared library
3406         event support.
3407         * features/library-list.dtd: New.
3408
3409 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3410
3411         * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3412         (start_remote): Use STOP_QUIETLY_REMOTE.
3413         (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3414         support on a SOLIB_ADD definition.  Update breakpoints_inserted.
3415         Update to match shared library event breakpoint support.  Only
3416         resume if appropriate.  Handle STOP_QUIETLY_REMOTE.
3417         (normal_stop): Handle TARGET_WAITKIND_LOADED.
3418         * fork-child.c (startup_inferior): Do not set
3419         inferior_ignoring_startup_exec_events
3420         * inferior.h (inferior_ignoring_startup_exec_events): Delete
3421         declaration.
3422         (enum stop_kind): Improve documentation.  Add STOP_QUIETLY_REMOTE.
3423
3424 2007-07-02  Markus Deuling  <deuling@de.ibm.com>
3425
3426         * breakpoint.c (insert_bp_location): Remove dead code
3427         (DISABLE_UNSETTABLE_BREAK).
3428         (disable_breakpoints_in_shlibs)
3429         (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3430
3431 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3432
3433         * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3434         Call insert_bp_location.
3435
3436 2007-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3437
3438         * core-regset.c (fetch_core_registers): Work around gcc 3.4
3439         alias warning bug.
3440
3441 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3442
3443         * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3444         objfiles.
3445
3446 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3447
3448         * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3449         (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3450         (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3451         (gdb_readline_wrapper): Do not save the prompt.  Pass our prompt
3452         to display_gdb_prompt.
3453
3454 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3455
3456         PR symtab/2161
3457         * target.c (memory_xfer_partial): Do not continue past targets with
3458         all memory.
3459
3460 2007-06-30  Andreas Schwab  <schwab@suse.de>
3461
3462         * m68k-tdep.c (m68k_ps_type): New.
3463         (m68k_init_types): New.
3464         (m68k_register_type): Use m68k_ps_type for PS register.
3465         (_initialize_m68k_tdep): Call m68k_init_types.
3466
3467         * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3468         from the generic m68k arch.
3469
3470 2007-06-28  Michael Snyder  <msnyder@access-company.com>
3471
3472         * m2-typeprint.c (m2_print_type): Move pointer ref after null test
3473         (Coverity).
3474
3475         * linux-thread-db.c (thread_db_get_thread_local_address): Add
3476         gdb_assert before using return value of find_thread_pid (Coverity).
3477
3478         * source.c (unset_substitute_path_command): Plug leak (Coverity).
3479
3480         * cli/cli-script.c (build_command_line): Add null pointer guard 
3481         (Coverity).
3482         
3483 2007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
3484
3485         * linux-thread-db.c (thread_db_attach): Delete.
3486         (thread_db_detach): Typo fix.  Call target_mourn_inferior
3487         instead of fixing up proc_handle.
3488         (have_threads_callback, have_threads): New functions.
3489         (thread_db_wait): Remove dead proc_handle.pid check.  Only
3490         translate PTIDs if we have registered threads.  Check for new
3491         threads if we have none.
3492         (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
3493         (find_new_threads_callback): Only enable event reporting if TID == 0.
3494         (same_ptid_callback): New.
3495         (thread_db_get_thread_local_address): Check for new threads.
3496         (init_thread_db_ops): Don't set to_attach, to_create_inferior,
3497         or to_post_startup_inferior.
3498
3499 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3500
3501         * infrun.c (adjust_pc_after_break): Do not assume software single-step
3502         is always active if SOFTWARE_SINGLE_STEP_P is true.
3503         (resume): Use gdbarch_software_single_step[_p] instead of
3504         SOFTWARE_SINGLE_STEP[_P].
3505         (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
3506
3507         * gdbarch.sh (software_single_step): Remove target macro.
3508         * gdbarch.h, gdbarch.c: Regenerate.
3509
3510 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3511
3512         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
3513         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
3514         (struct gdbarch_swap, struct gdbarch_swap_registration, 
3515         struct gdbarch_swap_registry, gdbarch_swap_registry,
3516         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
3517         current_gdbarch_swap_in_hack): Remove.
3518         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
3519         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
3520         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
3521         (deprecated_current_gdbarch_select_hack): Likewise.
3522         * gdbarch.h, gdbarch.c: Regenerate.
3523
3524 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3525
3526         * infrun.c (clear_proceed_status): Clean up stop_registers.
3527         (normal_stop): Allocate regcache for stop_registers.
3528         (struct inferior_status): Remove stop_registers member.
3529         (save_inferior_status): Do not save stop_registers.
3530         (restore_inferior_status): Do not restore stop_registers.
3531         (discard_inferior_status): Do not discard stop_registers.
3532         (build_infrun): Remove.
3533         (_initialize_infrun): Do not swap stop_registers.
3534
3535 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3536
3537         * remote.c (remote_address_masked): If remote_address_size is zero,
3538         default to target address size.
3539         (build_remote_gdbarch_data): Remove.
3540         (_initialize_remote): Do not swap remote_address_size.
3541
3542 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3543
3544         * gdbtypes.h (builtin_type_true_char, builtin_type_void,
3545         builtin_type_char, builtin_type_short, builtin_type_int,
3546         builtin_type_long, builtin_type_signed_char,
3547         builtin_type_unsigned_char, builtin_type_unsigned_short,
3548         builtin_type_unsigned_int, builtin_type_unsigned_long,
3549         builtin_type_float, builtin_type_double, builtin_type_long_double,
3550         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3551         builtin_type_bool, builtin_type_long_long,
3552         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3553         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
3554         variable declaration with compatibility macro.
3555         * gdbtypes.c (builtin_type_true_char, builtin_type_void,
3556         builtin_type_char, builtin_type_short, builtin_type_int,
3557         builtin_type_long, builtin_type_signed_char,
3558         builtin_type_unsigned_char, builtin_type_unsigned_short,
3559         builtin_type_unsigned_int, builtin_type_unsigned_long,
3560         builtin_type_float, builtin_type_double, builtin_type_long_double,
3561         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3562         builtin_type_bool, builtin_type_long_long,
3563         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3564         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
3565         (build_gdbtypes): Remove.
3566         (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
3567         opaque-type-resolution command here.   Do not call 
3568         deprecated_register_gdbarch_swap.
3569
3570 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3571
3572         * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
3573         nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
3574         * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
3575
3576         * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
3577         (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
3578         (write_exp_msymbol): Use builtin nodebug_ types instead of them.
3579         (build_parse): Remove.
3580         (_initialize_parse): Do not call build_parse.  Do not register
3581         msym_ types for gdbarch-swapping.
3582
3583         * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
3584         instead of creating private type.
3585
3586         * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
3587         (_initialize_xcoffread): Do not initialized them.
3588         (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
3589
3590         * mdebugread.c (nodebug_func_symbol_type): Remove.
3591         (nodebug_var_symbol_type): Remove.
3592         (_initialize_mdebugread): Do not initialize them.
3593         (parse_symbol): Use builtin nodebug_ type instead of them.
3594         (parse_procedure): Likewise.
3595
3596 2007-06-21  Chris Dearman  <chris@mips.com>
3597
3598         * printcmd.c (do_one_display): If display/i, start with an initial
3599         line feed to avoid bad layout if there is a branch delay slot.
3600
3601 2007-06-21  Nigel Stephens  <nigel@mips.com>
3602             Maciej W. Rozycki  <macro@mips.com>
3603
3604         * disasm.c (gdb_print_insn): Return the number of branch delay
3605         slot instructions too.
3606         * disasm.h (gdb_print_insn): Update prototype.
3607         * printcmd.c (branch_delay_insns): New variable to record the
3608         number of delay slot instructions after disassembling a branch.
3609         (print_formatted): Record the number of branch delay slot
3610         instructions.
3611         (do_examine): When disassembling, if the last instruction
3612         disassembled has any branch delay slots, then bump the count so
3613         that they get disassembled too.
3614         * tui/tui-disasm.c (tui_disassemble): Update the call to
3615         gdb_print_insn().
3616         * NEWS: Document the new behaviour.
3617
3618 2007-06-21  Andreas Schwab  <schwab@suse.de>
3619
3620         * regcache.c (write_pc_pid): Restore missing else.
3621
3622 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
3623
3624         * regcache.c (regcache_print): Use get_current_regcache ()
3625         instead of current_regcache.
3626
3627 2007-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3628
3629         PR 4606
3630         * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
3631         instead of bfd_make_section_anyway.
3632         (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
3633         when clearing SEC_LOAD.
3634
3635 2007-06-19  Joseph Myers  <joseph@codesourcery.com>
3636
3637         * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
3638         registers for big-endian.
3639
3640 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
3641
3642         * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
3643         * disasm.c (dump_insns, gdb_print_insn): Likewise.
3644         * gdbarch.c, gdbarch.h: Regenerate.
3645
3646 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
3647
3648         * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
3649         gdbarch_believe_pcc_promotion.
3650         * stabsread.c (define_symbol): Likewise.
3651         Remove unnecessary definition.
3652         * coffread.c (process_coff_symbol): Remove unnecessary code.
3653         * gdbarch.c, gdbarch.h: Regenerate.
3654
3655 2007-06-19  Daniel Jacobowitz  <dan@codesourcery.com>
3656
3657         * configure.ac: Do not use ${objdir}.
3658         * configure: Regenerated.
3659
3660 2007-06-18  Ulrich Weigand  <uweigand@de.ibm.com>
3661
3662         * gdbarch.sh (deprecated_register_size): Remove.
3663         * gdbarch.h, gdbarch.c: Regenerate.
3664
3665         * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
3666         by INT_REGISTER_SIZE.
3667         (thumb_get_next_pc, arm_return_in_memory): Likewise.
3668         (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
3669         * ia64-tdep.c (ia64_gdbarch_init): Do not call
3670         set_gdbarch_deprecated_register_size.
3671
3672 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3673
3674         * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
3675         gdbarch_deprecated_fp_regnum.
3676         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3677         * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
3678         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3679         * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
3680         (comment).
3681         * gdbarch.c, gdbarch.h: Regenerate.
3682
3683 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3684
3685         * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
3686         gdbarch_extract_return_value.
3687         * value.c (generic_use_struct_convention): Likewise (comment).
3688         * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
3689         * arch-utils.c (legacy_return_value): Likewise.
3690         * arch-utils.h (legacy_return_value): Likewise (comment).
3691         * gdbarch.sh (STORE_RETURN_VALUE): Replace by
3692         gdbarch_store_return_value.
3693         * stack.c (return_command): Likewise (comment).
3694         * arch-utils.h (legacy_return_value): Likewise (comment).
3695         * arch-utils.c (legacy_return_value): Likewise.
3696         * gdbarch.c, gdbarch.h: Regenerate.
3697
3698 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3699
3700         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
3701         gdbarch_deprecated_use_struct_convention.
3702         * arch-utils.c (legacy_return_value): Likewise.
3703         * gdbarch.c, gdbarch.h: Regenerate.
3704
3705 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3706
3707         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
3708         gdbarch_deprecated_function_start_offset.
3709         * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
3710         * linespec.c (minsym_found): Likewise.
3711         * infrun.c (handle_inferior_event): Likewise.
3712         * infcall.c (find_function_addr): Likewise.
3713         * cli/cli-cmds.c (disassemble_command): Likewise.
3714         * gdbarch.c, gdbarch.h: Regenerate.
3715
3716 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3717
3718         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
3719         gdbarch_deprecated_reg_struct_has_addr.
3720         * infcall.c (call_function_by_hand): Likewise.
3721         (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
3722         * gdbarch_deprecated_reg_struct_has_addr_p.
3723         * infcall.c (call_function_by_hand): Likewise.
3724         * gdbarch.c, gdbarch.h: Regenerate.
3725
3726 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3727
3728         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3729         * sh-tdep.c (sh_extract_struct_value_address): Remove.
3730         (sh_gdbarch_init): Remove
3731         set_gdbarch_deprecated_extract_struct_value_address.
3732         * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
3733         (sh64_gdbarch_init): Remove
3734         set_gdbarch_deprecated_extract_struct_value_address.
3735         * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
3736         (ia64_gdbarch_init): Remove
3737         set_gdbarch_deprecated_extract_struct_value_address.
3738         * frv-tdep.c (frv_extract_struct_value_address): Remove.
3739         (frv_gdbarch_init): Remove
3740         set_gdbarch_deprecated_extract_struct_value_address.
3741         * gdbarch.c, gdbarch.h: Regenerate.
3742
3743 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
3744
3745         * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
3746         * v850-tdep.c (v850_unwind_sp): Likewise.
3747         * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
3748         * stack.c (frame_info): Likewise.
3749         * stabsread.c (define_symbol): Likewise.
3750         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3751         (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
3752         (sh_unwind_sp): Likewise.
3753         * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
3754         (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
3755         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
3756         (rs6000_frame_cache): Likewise.
3757         * rs6000-nat.c (store_register): Likewise.
3758         * remote-mips.c (mips_wait): Likewise.
3759         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3760         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3761         (ppc64_sysv_abi_push_dummy_call): Likewise.
3762         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3763         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3764         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3765         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3766         * m32r-rom.c (m32r_supply_register): Likewise.
3767         * frame.c (frame_sp_unwind): Likewise.
3768         * mips-tdep.c (mips_insn16_frame_cache)
3769         (mips_insn32_frame_cache): Likewise (comment).
3770         * m68klinux-nat.c (supply_gregset): Likewise.
3771         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3772         * ia64-tdep.c (ia64_frame_prev_register): Likewise.
3773         * i386-tdep.c (i386_get_longjmp_target): Likewise.
3774         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3775         * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
3776         (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
3777         (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
3778         (cris_register_type, crisv32_register_type)
3779         (cris_dwarf2_frame_init_reg): Likewise.
3780         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3781         * amd64-tdep.c (amd64_frame_prev_register): Likewise.
3782         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3783         * libunwind-frame.c (libunwind_frame_cache): Likewise.
3784
3785         * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
3786         * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
3787         * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
3788         (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
3789         (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
3790         * v850-tdep.c (v850_unwind_pc): Likewise.
3791         * stack.c (frame_info): Likewise.
3792         * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
3793         (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
3794         (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
3795         (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
3796         (sh_dsp_show_regs): Likewise.
3797         * shnbsd-tdep.c (shnbsd_supply_gregset)
3798         (shnbsd_collect_gregset): Likewise.
3799         * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
3800         * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
3801         (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
3802         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3803         (6000_register_reggroup_p, rs6000_unwind_pc)
3804         (rs6000_frame_cache): Likewise.
3805         * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
3806         (rs6000_store_inferior_registers): Likewise.
3807         * remote-mips.c (mips_wait, mips_load): Likewise.
3808         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3809         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3810         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3811         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3812         * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
3813         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3814         * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
3815         (store_ppc_registers, fill_gregset): Likewise.
3816         * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
3817         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
3818         * mipsnbsd-nat.c (getregs_supplies): Likewise.
3819         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
3820         * m68klinux-nat.c (supply_gregset): Likewise.
3821         * irix5-nat.c (fill_gregset): Likewise.
3822         * i386-tdep.c (i386_unwind_pc): Likewise.
3823         * i386-linux-nat.c (i386_linux_resume): Likewise.
3824         * frame.c (get_prev_frame_1): Likewise.
3825         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3826         * dbug-rom.c (dbug_supply_register): Likewise.
3827         * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
3828         (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
3829         (cris_register_type, crisv32_register_type, crisv32_register_name)
3830         (cris_dwarf2_frame_init_reg, find_step_target)
3831         (cris_software_single_step, cris_supply_gregset)
3832         (cris_regnums): Likewise.
3833         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3834         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3835         (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
3836         * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
3837         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3838
3839         * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
3840         * dbug-rom.c (dbug_supply_register): Likewise.
3841         * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
3842         (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
3843         * win32-nat.c (win32_resume): Likewise.
3844         * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
3845         * m68k-tdep.c (m68k_register_type): Likewise.
3846         * m68klinux-nat.c (supply_gregset): Likewise.
3847
3848         * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
3849         * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
3850         (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
3851         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3852         (fv_reg_base_num, dr_reg_base_num): Likewise.
3853         * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
3854         (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
3855         (sh64_extract_return_value, sh64_store_return_value)
3856         (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
3857         (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
3858         * procfs.c (procfs_fetch_registers, procfs_store_registers)
3859         (invalidate_cache): Likewise.
3860         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3861         * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
3862         (mipsnbsd_fill_fpreg): Likewise.
3863         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3864         (mipsnbsd_store_inferior_registers): Likewise.
3865         * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
3866         (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
3867         * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
3868         * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
3869         * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
3870         (fill_fpregset): Likewise.
3871         * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
3872         * i386-tdep.h (struct_return): Likewise (comment).
3873         * i386-nto-tdep.c (i386nto_register_area): Likewise.
3874         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
3875         (go32_store_registers): Likewise.
3876         * alpha-tdep.c (alpha_next_pc): Likewise.
3877         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3878         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
3879         (alphabsd_store_inferior_registers): Likewise.
3880         * core-regset.c (fetch_core_registers): Likewise.
3881         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
3882
3883         * gdbarch.c, gdbarch.h: Regenerate.
3884
3885 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
3886
3887         * coffread.c (coff_sym_fns): Add default_symfile_segments.
3888         * dbxread.c (start_psymtab): Check HAVE_ELF.
3889         (aout_sym_fns): Likewise.
3890         * elfread.c (elf_symfile_segments): New.
3891         (elf_sym_fns): Add elf_symfile_segments.
3892         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
3893         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
3894         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
3895         * somread.c (som_sym_fns): Use default_symfile_segments.
3896         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
3897         (init_objfile_sect_indices): Call symfile_find_segment_sections.
3898         (default_symfile_segments): New function.
3899         (syms_from_objfile): Update call to find_sym_fns.
3900         (symfile_get_segment_data, free_symfile_segment_data): New.
3901         (symfile_map_offsets_to_segments): New.
3902         (symfile_find_segment_sections): New.
3903         * symfile.h (struct symfile_segment_data): New.
3904         (struct sym_fns): Add sym_segments.
3905         (default_symfile_segments, symfile_get_segment_data)
3906         (free_symfile_segment_data): New prototypes.
3907         (symfile_map_offsets_to_segments): Likewise.
3908         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
3909         * Makefile.in (COMMON_OBS): Remove elfread.o.
3910         (elf_internal_h): New.
3911         (elfread.o): Update.
3912         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
3913         compiled.
3914         * config.in, configure: Regenerated.
3915         * NEWS: Mention qOffsets changes.
3916
3917 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3918
3919         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
3920         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3921         Replace global variable declaration with compatibility macro.
3922         (struct builtin_m2_type): New data type.
3923         (builtin_m2_type): Add prototype.
3924         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
3925         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3926         Remove global variables.
3927         (m2_language_arch_info): Use builtin_m2_type instead of variables.
3928         (build_m2_types): New function.
3929         (m2_type_data): New variable.
3930         (builtin_m2_type): New function.
3931         (_initialize_m2_language): Do not build data types.  Register
3932         m2_type_data per-gdbarch data.
3933
3934 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3935
3936         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
3937         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3938         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3939         builtin_type_f_real_s8, builtin_type_f_real_s16,
3940         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3941         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3942         variable declaration with compatibility macro.
3943         (struct builtin_f_type): New data type.
3944         (builtin_f_type): Add prototype.
3945         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3946         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3947         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3948         builtin_type_f_real_s8, builtin_type_f_real_s16,
3949         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3950         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3951         (f_language_arch_info): Use builtin_f_type instead of variables.
3952         (build_fortran_types): Build builtin_f_type structure instead of
3953         setting global type variables.
3954         (f_type_data): New variable.
3955         (builtin_f_type): New function.
3956         (_initialize_f_language): Do not call build_fortran_types.  Do not
3957         swap global type variables.  Register f_type_data per-gdbarch data.
3958
3959 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3960
3961         * f-lang.c (_initialize_f_language): Do not initialize or
3962         swap builtin_type_string.
3963
3964 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3965
3966         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3967         value_of_builtin_frame_reg): Remove.
3968         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
3969         inactive call to value_of_builtin_frame_reg.
3970
3971 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3972
3973         * gdbarch.sh (bfd_vma_bit): Remove.
3974         * gdbarch.c, gdbarch.h: Regenerate.
3975
3976         * gdbtypes.h (builtin_bfd_vma_type): Remove.
3977         * gdbtypes.h (builtin_bfd_vma_type): Remove.
3978         (build_gdbtypes): Do not initialize it.
3979         (_initialize_gdbtypes): Do not swap it.
3980
3981 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
3982
3983         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
3984         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3985         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3986         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3987         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
3988         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3989         builtin_type_vec64, builtin_type_vec128): Remove.
3990         (init_simd_type): Remove.
3991         (init_vector_type): Make global.
3992         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3993         (build_gdbtypes): Do not build vector types.
3994         (_initialize_gdbtypes): Do not swap vector types.
3995         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
3996         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3997         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3998         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3999         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
4000         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4001         builtin_type_vec64, builtin_type_vec128): Remove declarations.
4002         (init_vector_type): Add prototype.
4003
4004         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4005         i386_sse_type members.
4006         (i386_mmx_type, i386_sse_type): Change from variables to functions.
4007         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4008         (i386_init_types): Do not build vector types.
4009         (i386_mmx_type, i386_sse_type): New functions.
4010         (i386_register_type): Call them instead of using global variables.
4011         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4012         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4013         of using global variable.
4014
4015         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4016         and ppc_builtin_type_vec128 members.
4017         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4018         (rs6000_builtin_type_vec128): Likewise.
4019         (rs6000_register_type): Call them instead of using builtin_type_vec64
4020         and builtin_type_vec128.
4021         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4022
4023         * spu-tdep.c (struct gdbarch_tdep): New data type.
4024         (spu_builtin_type_vec128): Remove variable.
4025         (spu_builtin_type_vec128): New function.
4026         (spu_register_type): Call it instead of using global variable.
4027         (spu_gdbarch_init): Allocate tdep structure.
4028         (spu_init_vector_type): Remove function.
4029         (_initialize_spu_tdep): Do not call it.
4030
4031 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
4032
4033         * amd64-tdep.c (struct amd64_register_info): Remove.
4034         (amd64_register_info): Remove.
4035         (amd64_register_names): New static variable.
4036         (AMD64_NUM_REGS): Use amd64_register_names instead of
4037         amd64_register_info.
4038         (amd64_register_name): Likewise.
4039         (amd64_register_type): Do not refer to amd64_register_info.
4040
4041         * s390-tdep.c (struct s390_register_info): Remove.
4042         (s390_register_info): Remove.
4043         (s390_register_name): Do not refer to s390_register_info.
4044         (s390_register_type): Likewise.
4045
4046         * sparc64-tdep.c (struct sparc64_register_info): Remove.
4047         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4048         (sparc64_register_names, sparc64_pseudo_register_names): New.
4049         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4050         sparc64_register_names and sparc64_pseudo_register_names instead of
4051         sparc64_register_info and sparc64_pseudo_register_info.
4052         (sparc64_register_name): Likewise.
4053         (sparc64_register_type): Do not refer to sparc64_register_info
4054         and sparc64_pseudo_register_info.
4055
4056 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
4057
4058         * c-lang.c (cplus_builtin_types): Remove.
4059         (enum cplus_primitive_types): New data type.
4060         (cplus_language_arch_info): New function.
4061         (cplus_language_defn): Set la_language_arch_info member.  Do not set
4062         la_builtin_type_vector and string_char_type members.
4063
4064         * f-lang.c (f_builtin_types): Remove.
4065         (enum f_primitive_types): New data type.
4066         (f_language_arch_info): New function.
4067         (f_language_de): Set la_language_arch_info member.  Do not set
4068         la_builtin_type_vector and string_char_type members.
4069
4070         * m2-lang.c (m2_builtin_types): Remove.
4071         (enum m2_primitive_types): New data type.
4072         (m2_language_arch_info): New function.
4073         (m2_language_defn): Set la_language_arch_info member.  Do not set
4074         la_builtin_type_vector and string_char_type members.
4075
4076         * objc-lang.c (objc_builtin_types): Remove.
4077         (objc_language): Set la_language_arch_info member.  Do not set
4078         la_builtin_type_vector and string_char_type members.
4079
4080         * p-lang.c (pascal_builtin_types): Remove.
4081         (enum pascal_primitive_types): New data type.
4082         (pascal_language_arch_info): New function.
4083         (pascal_language_defn): Set la_language_arch_info member.  Do not set
4084         la_builtin_type_vector and string_char_type members.
4085
4086 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
4087
4088         * regcache.c (struct regcache): Add ptid_t member.
4089         (regcache_xmalloc): Initialize it.
4090         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4091         (regcache_dup): Likewise.
4092         (regcache_dup_no_passthrough): Likewise.
4093         (current_regcache): Make static.
4094         (registers_ptid): Remove variable.
4095         (get_thread_regcache): New function.
4096         (get_current_regcache): New function.
4097         (registers_changed): Implement by freeing current regcache.
4098         (regcache_raw_read): Do not refer to current_regcache.  Set 
4099         inferior_ptid to regcache->ptid while calling target routines.
4100         (regcache_raw_write): Likewise.
4101         (regcache_raw_supply): Do not refer to current_regcache.
4102         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
4103         (write_pc_pid): Likewise.
4104         (build_regcache): Remove.
4105         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4106         or deprecated_register_gdbarch_swap.  Do not initialize
4107         registers_ptid.
4108         * regcache.h (get_current_regcache): Add prototype.
4109         (get_thread_regcache): Likewise.
4110         (current_regcache): Remove declaration.
4111
4112         * corelow.c (core_open): Replace current_regcache by
4113         get_current_regcache ().
4114         * frame.c (frame_pop): Likewise.
4115         (put_frame_register): Likewise.
4116         (get_current_frame, create_new_frame): Likewise.
4117         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4118         * stack.c (return_command): Likewise.
4119         * infcall.c (call_function_by_hand): Likewise.
4120         * infrun.c (resume): Likewise.
4121         (save_inferior_status, restore_inferior_status): Likewise.
4122         * linux-fork.c (fork_load_infrun_state): Likewise.
4123         (fork_save_infrun_state): Likewise.
4124         * win32-nat.c (win32_resume): Likewise.
4125         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4126         * monitor.c (monitor_wait): Likewise.
4127         * remote.c (remote_wait): Likewise.
4128         * remote-mips.c (mips_wait): Likewise.
4129
4130         * bsd-kvm.c (bsd_kvm_open): Likewise
4131         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4132         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4133         * i386-linux-nat.c (i386_linux_resume): Likewise.
4134         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4135         (ia64_linux_stopped_data_address): Likewise.
4136
4137         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4138         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4139         * mep-tdep.c (current_me_module, current_options): Likewise.
4140         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4141
4142         * linux-nat.c (linux_nat_do_thread_registers): Use thread
4143         regcache instead of current_regcache.  Call target_fetch_registers.
4144         (linux_nat_corefile_thread_callback): Update call site.
4145         (linux_nat_do_registers): Likewise.
4146         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4147         of current_regcache.
4148         (procfs_make_note_section): Likewise.
4149         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4150         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4151         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4152         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4153
4154 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4155
4156         * regcache.c (read_register, read_register_pid): Remove.
4157         (write_register, write_register_pid): Likewise.
4158         * regcache.h (read_register, read_register_pid): Remove prototype.
4159         (write_register, write_register_pid): Likewise.
4160
4161 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4162
4163         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
4164         (write_pc): Likewise.  Remove default implementation, add predicate.
4165         * gdbarch.c, gdbarch.h: Regenerate.
4166         * regcache.c (read_pc_pid): Use current regcache instead of calling
4167         read_register_pid.
4168         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4169         case inline.
4170         (generic_target_write_pc): Remove.
4171         * inferior.h (generic_target_write_pc): Remove.
4172         * frv-tdep.c (frv_gdbarch_init): Do not install it.
4173         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4174         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4175         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4176         * sh-tdep.c (sh_gdbarch_init): Likewise.
4177         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4178
4179         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
4180         argument.  Use REGCACHE instead of calling read_register_pid.
4181         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4182         * hppa-tdep.c (hppa_read_pc): Likewise.
4183         * hppa-tdep.h (hppa_read_pc): Likewise.
4184         * ia64-tdep.c (ia64_read_pc): Likewise.
4185         * m32r-tdep.c (m32r_read_pc): Likewise.
4186         * mep-tdep.c (mep_read_pc): Likewise.
4187         * mn10300-tdep.c (mn10300_read_pc): Likewise.
4188         * spu-tdep.c (spu_read_pc): Likewise.
4189
4190         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
4191         argument.  Use REGCACHE instead of calling write_register_pid.
4192         * avr-tdep.c (avr_write_pc): Likewise.
4193         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4194         * hppa-tdep.c (hppa_write_pc): Likewise.
4195         * hppa-tdep.h (hppa_write_pc): Likewise.
4196         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4197         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4198         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4199         * ia64-tdep.c (ia64_write_pc): Likewise.
4200         * ia64-tdep.h (ia64_write_pc): Likewise.
4201         * m32r-tdep.c (m32r_write_pc): Likewise.
4202         * m88k-tdep.c (m88k_write_pc): Likewise.
4203         * mep-tdep.c (mep_write_pc): Likewise.
4204         * mips-tdep.c (mips_write_pc): Likewise.
4205         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4206         * mn10300-tdep.c (mn10300_write_pc): Likewise.
4207         * sparc-tdep.c (sparc_write_pc): Likewise.
4208         * spu-tdep.c (spu_write_pc): Likewise.
4209
4210         * mips-tdep.c (read_signed_register): Remove.
4211         (read_signed_register_pid): Likewise.
4212         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
4213         Use REGCACHE instead of calling read_signed_register_pid.
4214
4215 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4216
4217         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4218         * gdbarch.c, gdbarch.h: Regenerate.
4219         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4220         (push_dummy_code): Likewise.  Pass it to callee.
4221         (call_function_by_hand): Pass current regcache to push_dummy_code.
4222
4223         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4224         argument.  Use it instead of current_regcache.
4225
4226         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4227         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4228
4229 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4230
4231         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4232         * gdbarch.c, gdbarch.h: Regenerate.
4233         * infrun.c (handle_inferior_event): Pass current frame to
4234         gdbarch_get_longjmp_target.
4235
4236         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4237         Read registers from FRAME instead of using read_register.
4238         Use get_frame_arch instead of current_gdbarch.
4239         * arm-tdep.c (arm_get_longjmp_target): Likewise.
4240         * i386-tdep.c (i386_get_longjmp_target): Likewise.
4241         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4242         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4243         (mips64_linux_get_longjmp_target): Likewise.
4244         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4245
4246 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4247
4248         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4249         * gdbarch.c, gdbarch.h: Regenerate.
4250         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4251         * arch-utils.h (generic_skip_trampoline_code): Likewise.
4252         * infrun.c (handle_inferior_event): Pass current frame to
4253         gdbarch_skip_trampoline_code and skip_language_trampoline.
4254
4255         * language.c (unk_lang_trampoline): Add FRAME argument.
4256         (skip_language_trampoline): Add FRAME argument.  Pass it to
4257         skip_trampoline callback.
4258         * language.h: Add forward declaration of struct frame_info.
4259         (struct language_defn): Add FRAME argument to skip_trampoline.
4260         (skip_language_trampoline): Add FRAME argument.
4261         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
4262         to skip_trampoline callback.
4263         * cp-abi.h: Add forward declaration of struct frame_info.
4264         (cplus_skip_trampoline): Add FRAME argument.
4265         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4266         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
4267         to gdbarch_skip_trampoline_code.
4268         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
4269         to gdbarch_skip_trampoline_code.
4270
4271         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4272         * symtab.h (find_solib_trampoline_target): Likewise.
4273         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4274         find_solib_trampoline_target.
4275
4276         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
4277         from FRAME instead of calling read_register.
4278
4279         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4280         argument.  Read registers from FRAME instead of using read_register.
4281         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4282         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4283
4284         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4285         argument.
4286
4287         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4288
4289         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
4290         registers from FRAME instead of using read_signed_register.
4291
4292         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4293         argument.
4294         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
4295         instead of using read_register.
4296         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
4297         ppc64_standard_linkage_target.
4298         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4299         Pass it to find_solib_trampoline_target.  Read registers from FRAME
4300         instead of using read_register.
4301
4302         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4303         argument.
4304
4305 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4306
4307         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4308         FRAME argument.
4309         * gdbarch.c, gdbarch.h: Regenerate.
4310         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4311
4312         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
4313         registers from FRAME instead of using read_register.
4314         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
4315         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
4316         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4317         argument by FRAME.
4318
4319         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
4320         from FRAME instead of using read_register.
4321         (thumb_get_next_pc): Likewise.
4322         (arm_get_next_pc): Likewise.
4323         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
4324         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
4325         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4326         argument by FRAME.
4327
4328         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
4329         from FRAME instead of using read_register.
4330         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
4331         to find_step_target.
4332
4333         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
4334         from FRAME instead of using read_register / read_signed_register.
4335         (extended_mips16_next_pc): Likewise.
4336         (mips16_next_pc): Likewise.
4337         (mips_next_pc): Likewise.
4338         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
4339         to mips_next_pc.  Use get_frame_pc instead of read_pc.
4340         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4341         argument by FRAME.
4342
4343         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
4344         of current frame.  Read registers from FRAME.
4345         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
4346         branch_dest.  Use get_frame_pc instead of read_pc.
4347         (rs6000_software_single_step): Likewise.
4348         (bl_to_blrl_insn_p): Do not call branch_dest.
4349         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4350         argument by FRAME.
4351
4352         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4353         Read registers from FRAME instead of current regcache.
4354         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4355         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4356         * sparc-tdep.c (sparc_address_from_register): Remove.
4357         (sparc_analyze_control_transfer): Pass FRAME argument instead of
4358         GDBARCH.  Pass FRAME to step_trap callback.
4359         (sparc_step_trap): Add FRAME argument.
4360         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
4361         to sparc_analyze_control_transfer.  Read registers from FRAME instead
4362         of calling sparc_address_from_register.
4363         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4364         step_trap callback.
4365         (sparc_address_from_register): Remove prototype.
4366         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4367         (sparcnbsd_step_trap): Add FRAME argument.
4368
4369         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4370         by FRAME.  Read registers from FRAME instead of REGCACHE.
4371
4372 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4373
4374         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4375         instead of calling read_register.
4376
4377         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4378         calling write_register.
4379
4380         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4381         calling write_register.
4382
4383         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
4384         instead of calling read_register.
4385         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
4386         instead of calling read_register and write_register.
4387
4388         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4389         instead of current_regcache.
4390
4391         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4392         of calling write_register.
4393         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4394         parameter instead of current_regcache.
4395
4396         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
4397         instead of calling read_register.
4398         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4399         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4400         (mips_n32n64_push_dummy_call): Likewise.
4401         (mips_o32_push_dummy_call): Likewise.
4402         (mips_o64_push_dummy_call): Likewise.
4403
4404         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4405         parameter instead of current_regcache.
4406
4407         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4408         Use it instead of read_register and write_register.
4409         (xtensa_register_read_masked): Likewise.
4410         (xtensa_pseudo_register_read): Update call.
4411         (xtensa_pseudo_register_write): Likewise.
4412         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4413         instead of calling read_register.
4414         (xtensa_push_dummy_call): Update comment.
4415
4416 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4417
4418         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4419         by frame_unwind_register_signed calls.
4420         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
4421         frame allocations when called with NULL NEXT_FRAME parameter.
4422         (read_next_frame_reg): Remove.
4423
4424         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
4425         instead of reading the FPSCR register.
4426         (sh_frame_cache): Pass unwound FPSCR register value to
4427         sh_analyze_prologue.
4428         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4429
4430         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
4431         instead of reading the CTBP register.
4432         (v850_frame_cache): Pass unwound CTBP register value to
4433         v850_analyze_prologue.
4434
4435 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4436
4437         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4438         * sh-tdep.c (sh_show_regs): Likewise.
4439         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4440         (sh_generic_show_regs): Add FRAME parameter.  Use register
4441         values from that frame instead of calling read_register.
4442         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4443         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4444         sh_dsp_show_regs): Likewise.
4445         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4446         sh64_show_regs): Likewise.
4447
4448 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4449
4450         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4451         current regcache instead of calling read_register.
4452
4453 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4454
4455         * mep-tdep.c (current_me_module): Read from current regcache
4456         instead of calling read_register.
4457         (current_options): Likewise.
4458
4459 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4460
4461         * cris-tdep.c (cris_stopped_data_address): Read register values
4462         from current frame instead of calling read_register.
4463         * frv-tdep.c (frv_stopped_data_address): Likewise.
4464
4465 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4466
4467         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4468         instead of write_register (PC_REGNUM, ...).
4469
4470 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4471
4472         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
4473         explaining why the PC adjustment code is necessary.
4474
4475 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
4476
4477         * m68k-tdep.h (enum m68k_flavour): New. 
4478         (struct gdbarch_tdep): New fields
4479         float_return, flavour and fpregs_present.
4480         * m68k-tdep.c (m68k_register_type): Use
4481         fpregs_present and conditionalize floating
4482         registers type on flavour.
4483         (m68k_register_names): New.
4484         (m68k_register_name): Use the above.
4485         (m68k_convert_register_p): Consult fpregs_present.
4486         (m68k_register_to_value, m68k_value_to_register):
4487         Use register_type to obtain the type of floating
4488         point registers.
4489         (m68k_svr4_extract_return_value): Check tdep->float_return.
4490         Use register_type to get the type of floating
4491         point regiters.
4492         (m68k_svr4_store_return_value): Likewise.
4493         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
4494         (m68k_analyze_register_saves): Likewise.
4495         (m68k_gdbarch_init): Extract infromation
4496         from XML description, if present.  Guess coldfire by
4497         looking at the file, if present. Conditionalize
4498         setting of long double format.  Set decr_pc_after_break
4499         to 2 on coldfire and fido.  Enable XML-driven
4500         register description.
4501         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
4502         size of tdep->fpreg_type, as opposed to hardcoded value.
4503         * Makefile.in (m68k-tdep.o): Update dependencies.
4504         
4505 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
4506
4507         * NEWS: Mention "info spu" commands and qXfer:spu:read and
4508         qXfer:spu:write remote packet types.
4509
4510 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4511
4512         * xml-tdesc.c (tdesc_start_target): New.
4513         (target_attributes): New.
4514         (tdesc_elements): Use it.
4515         * features/gdb-target.dtd: Add #FIXED version attribute for
4516         <target>.
4517
4518 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
4519
4520         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
4521
4522 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
4523
4524         * fork-child.c (fork_inferior): Update comment.
4525
4526 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4527
4528         * features/Makefile: Generate regformats for mips-linux and
4529         mips64-linux.
4530         * features/sort-regs.xsl: Correct typo.
4531         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
4532         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
4533         files.
4534
4535 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4536
4537         * config/mips/linux.mh (TDEP_XML): New.
4538         * features/mips-linux.xml, features/mips64-linux.xml: New files.
4539         * mips-linux-nat.c (mips_linux_register_addr): Handle
4540         MIPS_RESTART_REGNUM.
4541         (mips64_linux_register_addr): Likewise.
4542         (super_xfer_partial, mips_linux_xfer_partial): New.
4543         (_initialize_mips_linux_nat): Add them to the target_ops.
4544         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
4545         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
4546         (mips_linux_o32_sigframe_init)
4547         (mips_linux_n32n64_sigframe_init): Likewise.
4548         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
4549         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
4550         "org.gnu.gdb.mips.linux" feature.
4551         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
4552         (mips_linux_restart_reg_p): New prototype.
4553         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
4554         initialization routine.
4555         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
4556
4557 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4558
4559         * Makefile.in (mips-tdep.o): Update.
4560         * mips-tdep.c (struct register_alias, mips_o32_aliases)
4561         (mips_n32_n64_aliases, mips_register_aliases): New.
4562         (mips_register_name): Call tdesc_register_name.
4563         (mips_tdesc_register_reggroup_p): New.
4564         (mips_pseudo_register_type, value_of_mips_user_reg): New.
4565         (mips_gdbarch_init): Add target-described register support.
4566         Register aliases for register names.
4567         * target-descriptions.c (tdesc_register_name): Make global.
4568         (tdesc_register_in_reggroup_p): New function, broken out from
4569         tdesc_register_reggroup_p.
4570         (tdesc_register_reggroup_p): Use it.
4571         * target-descriptions.h (tdesc_register_name)
4572         (tdesc_register_in_reggroup_p): New prototypes.
4573         * NEWS: Correct formatting.  Mention MIPS register support.
4574         * features/mips-cp0.xml, features/mips-fpu.xml,
4575         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
4576         features/mips64-cpu.xml: New files.
4577
4578 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
4579
4580         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
4581         * valops.c (value_cast): Likewise.
4582         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
4583         * ui-out.c (ui_out_field_core_addr): Likewise.
4584         * tracepoint.c (tracepoints_info): Likewise.
4585         * symtab.c (print_msymbol_info): Likewise.
4586         * solib-irix.c (irix_current_sos)
4587         (irix_open_symbol_file_object): Likewise.
4588         * remote.c (build_remote_gdbarch_data): Likewise.
4589         * prologue-value.c (make_pv_area): Likewise.
4590         * procfs.c (info_mappings_callback): Likewise.
4591         * printcmd.c (print_scalar_formatted)
4592         (deprecated_print_address_numeric): Likewise.
4593         * memattr.c (mem_info_command): Likewise.
4594         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
4595         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
4596         * exec.c (print_section_info): Likewise.
4597         * dwarf2read.c (read_subrange_type): Likewise.
4598         * dwarf2loc.c (find_location_expression): Likewise.
4599         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
4600         (signed_address_type, execute_stack_op): Likewise.
4601         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
4602         * gdbarch.c, gdbarch.h: Regenerate.
4603
4604 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
4605
4606         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
4607         * arch-utils.c (show_architecture): Likewise.
4608         * remote-mips.c (mips_open): Likewise
4609         * nto-tdep.c (nto_find_and_open_solib)
4610         (nto_init_solib_absolute_prefix): Likewise.
4611         * nto-procfs (procfs_open): Likewise.
4612         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
4613         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
4614         * gdbarch.c, gdbarch.h: Regenerate.
4615
4616 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
4617
4618         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
4619         * gdbtypes.c (build_flt): Likewise.
4620         * gdbarch.c, gdbarch.h: Regenerate.
4621
4622 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
4623
4624         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
4625         gdbarch_breakpoint_from_pc.
4626         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
4627         * remote.c (remote_insert_breakpoint)
4628         (remote_insert_hw_breakpoint): Likewise.
4629         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
4630         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
4631         * breakpoint.h (bp_target_info): Likewise (comment).
4632         * breakpoint.c (read_memory_nobpt): Likewise.
4633         * mem-break.c (default_memory_insert_breakpoint): Likewise.
4634         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
4635         * gdbarch.c, gdbarch.h: Regenerate.
4636
4637 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
4638
4639         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
4640         * solib-svr4.c (svr4_truncate_ptr): Likewise.
4641         * solib-pa64.c (read_dynamic_info): Likewise.
4642         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
4643         * solib.c (info_sharedlibrary_command): Likewise.
4644         * s390-nat.c (SUBOFF): Likewise.
4645         * p-valprint.c (pascal_val_print): Likewise.
4646         * procfs.c (info_proc_mappings): Likewise.
4647         * printcmd.c (decode_format): Likewise.
4648         * nto-tdep.c (nto_truncate_ptr): Likewise.
4649         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4650         (mips64_linux_get_longjmp_target): Likewise.
4651         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4652         * jv-valprint.c (java_value_print): Likewise.
4653         * jv-lang.c (get_java_object_header_size): Likewise.
4654         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4655         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4656         (hppa_hpux_unwind_adjust_stub): Likewise.
4657         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4658         * gdbtypes.c (make_pointer_type, make_reference_type)
4659         (smash_to_memberptr_type): Likewise.
4660         * gdbarch.c, gdbarch.h: Regenerate.
4661
4662 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4663
4664         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
4665         (print_gp_register_row): Stop before printing a register bigger
4666         than the ABI register size.
4667         (mips_print_registers_info): Update call to mips_print_register.
4668
4669 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4670
4671         * expression.h (enum exp_opcode): Document a register name for
4672         OP_REGISTER.
4673         * parse.c (write_dollar_variable): Write the register name for
4674         OP_REGISTER.
4675         (operator_length_standard): Expect the register name following
4676         OP_REGISTER.
4677         * ada-lang.c (resolve_subexp): Likewise.
4678         * ax-gdb.c (gen_expr): Likewise.
4679         * eval.c (evaluate_subexp_standard): Likewise.
4680         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4681         Likewise.
4682         * tracepoint.c (encode_actions): Likewise.
4683
4684 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
4685
4686         * utils.c (set_screen_size): Use INT_MAX for default columns.
4687
4688 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
4689
4690         * remote.c (remote_protocol_features): Add qXfer:spu:read and
4691         qXfer:spu:write packet types.
4692
4693 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4694
4695         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
4696         * gdbarch.c, gdbarch.h: Regenerate.
4697
4698 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4699
4700         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
4701         gdbarch_stab_reg_to_regnum.
4702         * stabsread.c (define_symbol): Likewise.
4703         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
4704         gdbarch_ecoff_reg_to_regnum.
4705         * mdebugread.c (parse_symbol): Likewise.
4706         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
4707         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
4708         gdbarch_dwarf_reg_to_regnum.
4709         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
4710         * coffread.c (process_coff_symbol): Likewise.
4711         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
4712         gdbarch_dwarf2_reg_to_regnum.
4713         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
4714         (locexpr_describe_location): Likewise.
4715         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
4716         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
4717         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
4718         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
4719         * gdbarch.c, gdbarch.h: Regenerate.
4720
4721 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4722
4723         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
4724         gdbarch_smash_text_address.
4725         * somread.c (som_symtab_read): Likewise.
4726         * elfread.c (record_minimal_symbol): Likewise.
4727         * dbxread.c (process_one_symbol): Likewise.
4728         * coffread.c (coff_symtab_read): Likewise.
4729         * gdbarch.c, gdbarch.h: Regenerate.
4730
4731 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4732
4733         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
4734         * findvar.c (value_from_register): Likewise.
4735         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
4736         * valops.c (value_assign): Likewise.
4737         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
4738         gdbarch_convert_register_p.
4739         * findvar.c (value_from_register): Likewise.
4740         * valops.c (value_assign): Likewise.
4741         * gdbarch.c, gdbarch.h: Regenerate.
4742
4743 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4744
4745         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
4746         gdbarch_register_sim_regno.
4747         * sim-regno.h (sim_regno): Likewise (comment).
4748         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
4749         * gdbarch.c, gdbarch.h: Regenerate.
4750
4751 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4752
4753         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
4754         gdbarch_virtual_frame_pointer.
4755         * tracepoint.c (encode_actions): Likewise.
4756         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
4757         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
4758         * gdbarch.c, gdbarch.h: Regenerate.
4759
4760 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4761
4762         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
4763         * p-lang.c (pascal_create_fundamental_type): Likewise.
4764         * objc-lang.c (objc_create_fundamental_type): Likewise.
4765         * mdebugread.c (_initialize_mdebugread): Likewise.
4766         * m2-lang.c (m2_create_fundamental_type)
4767         (_initialize_m2_language): Likewise.
4768         * gdbtypes.c (build_gdbtypes): Likewise.
4769         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4770         * doublest.c (floatformat_from_length): Likewise.
4771         * c-lang.c (c_create_fundamental_type): Likewise.
4772         * ada-lang.c (ada_create_fundamental_type)
4773         (ada_language_arch_info): Likewise.
4774         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
4775         * value.c (unpack_double): Likewise (comment).
4776         * gdbtypes.c (build_gdbtypes): Likewise.
4777         * doublest.c (floatformat_from_length): Likewise.
4778         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
4779         * valarith.c (value_binop): Likewise.
4780         * p-lang.c (pascal_create_fundamental_type): Likewise.
4781         * objc-lang.c (objc_create_fundamental_type): Likewise.
4782         * mdebugread.c (_initialize_mdebugread): Likewise.
4783         * m2-lang.c (m2_create_fundamental_type): Likewise.
4784         * gdbtypes.c (build_gdbtypes): Likewise.
4785         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4786         * doublest.c (floatformat_from_length): Likewise.
4787         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
4788         * c-lang.c (c_create_fundamental_type): Likewise.
4789         * ada-lex.l (processReal): Likewise.
4790         * ada-lang.c (ada_create_fundamental_type)
4791         (ada_language_arch_info): Likewise.
4792         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
4793         * value.c (unpack_double): Likewise (comment).
4794         * gdbtypes.c (build_gdbtypes): Likewise.
4795         * doublest.c (floatformat_from_length): Likewise.
4796         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
4797         gdbarch_long_double_bit.
4798         * p-lang.c (pascal_create_fundamental_type): Likewise.
4799         * objc-lang.c (objc_create_fundamental_type): Likewise.
4800         * m2-lang.c (m2_create_fundamental_type): Likewise.
4801         * gdbtypes.c (build_gdbtypes): Likewise.
4802         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4803         * doublest.c (floatformat_from_length): Likewise.
4804         * c-lang.c (c_create_fundamental_type): Likewise.
4805         * ada-lex.l (processReal): Likewise.
4806         * ada-lang.c (ada_create_fundamental_type)
4807         (ada_language_arch_info): Likewise.
4808         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
4809         gdbarch_long_double_format.
4810         * gdbtypes.c (build_gdbtypes): Likewise.
4811         * doublest.c (floatformat_from_length): Likewise.
4812         * gdbarch.c, gdbarch.h: Regenerate.
4813
4814 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
4815
4816         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
4817         * ada-lang.c (ada_create_fundamental_type)
4818         (ada_language_arch_info): Likewise.
4819         * c-lang.c (c_create_fundamental_type): Likewise.
4820         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4821         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4822         * m2-lang.c (m2_create_fundamental_type): Likewise.
4823         * objc-lang.c (objc_create_fundamental_type): Likewise.
4824         * p-lang.c (pascal_create_fundamental_type): Likewise.
4825         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
4826         * c-exp.y (parse_number): Likewise.
4827         * objc-exp.y (parse_number): Likewise.
4828         * ada-lex.l (processInt): Likewise.
4829         * f-exp.y (parse_number): Likewise.
4830         * p-exp.y (parse_number): Likewise.
4831         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
4832         (gdbtypes_post_init, build_gdbtypes): Likewise.
4833         * p-lang.c (pascal_create_fundamental_type): Likewise.
4834         * parse.c (build_parse): Likewise.
4835         * xcoffread.c (_initialize_xcoffread): Likewise.
4836         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
4837         (read_range_type): Likewise.
4838         * objc-lang.c (objc_create_fundamental_type): Likewise.
4839         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
4840         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
4841         (m2_create_fundamental_type): Likewise.
4842         * c-lang.c (c_create_fundamental_type): Likewise.
4843         * coffread.c (coff_read_enum_type): Likewise.
4844         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
4845         * dwarf2read.c (new_symbol): Likewise.
4846         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
4847         * c-exp.y (parse_number): Likewise.
4848         * objc-exp.y (parse_number): Likewise.
4849         * ada-lex.l (processInt): Likewise.
4850         * f-exp.y (parse_number): Likewise.
4851         * p-exp.y (parse_number): Likewise.
4852         * valarith.c (value_binop): Likewise.
4853         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
4854         * ada-lang.c (ada_create_fundamental_type)
4855         (ada_language_arch_info): Likewise.
4856         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4857         * symfile.c (TARGET_LONG_BYTES): Likewise.
4858         * p-lang.c (pascal_create_fundamental_type): Likewise.
4859         * objc-lang.c (objc_create_fundamental_type): Likewise.
4860         * m2-lang.c (m2_create_fundamental_type): Likewise.
4861         * f-lang.c (f_create_fundamental_type): Likewise.
4862         * c-lang.c (c_create_fundamental_type): Likewise.
4863         * coffread.c (decode_base_type): Likewise.
4864         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
4865         * c-exp.y (parse_number): Likewise.
4866         * objc-exp.y (parse_number): Likewise.
4867         * p-exp.y (parse_number): Likewise.
4868         * ada-lang.c (ada_create_fundamental_type)
4869         (ada_language_arch_info): Likewise.
4870         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
4871         * stabsread.c (read_range_type): Likewise.
4872         * p-lang.c (pascal_create_fundamental_type): Likewise.
4873         * objc-lang.c (objc_create_fundamental_type): Likewise.
4874         * m2-lang.c (m2_create_fundamental_type): Likewise.
4875         * f-lang.c (f_create_fundamental_type): Likewise.
4876         * c-lang.c (c_create_fundamental_type): Likewise.
4877         * gdbarch.c, gdbarch.h: Regenerate.
4878
4879 2007-06-12  Andreas Schwab  <schwab@suse.de>
4880
4881         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
4882         (struct frame_unwind): Add dealloc_cache.
4883         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
4884
4885         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
4886         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
4887         (libunwind_frame_unwind): Set dealloc_cache.
4888         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
4889
4890 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4891             Markus Deuling  <deuling@de.ibm.com>
4892
4893         * remote.c (remote_write_qxfer): New function.
4894         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
4895         (remote_read_qxfer): Do not cache empty objects.
4896         (_initialize_remote): Add PACKET_qXfer_spu_read and
4897         PACKET_qXfer_spu_write.
4898
4899 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4900
4901         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
4902         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
4903
4904         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
4905         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
4906         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
4907         * spu-tdep.c (infospucmdlist): New variable.
4908         (spu_register_name): Handle additional pseudo registers.
4909         (spu_register_type): Likewise.
4910         (spu_pseudo_register_read): Likewise.
4911         (spu_pseudo_register_write): Likewise.
4912         (spu_pseudo_register_read_spu): New function.
4913         (spu_pseudo_register_write_spu): Likewise.
4914         (info_spu_event_command): New function.
4915         (info_spu_signal_command): Likewise.
4916         (info_spu_mailbox_list): Likewise.
4917         (info_spu_mailbox_command): Likewise.
4918         (spu_mfc_get_bitfield): Likewise.
4919         (info_spu_dma_cmdlist): Likewise.
4920         (info_spu_dma_command): Likewise.
4921         (info_spu_proxydma_command): Likewise.
4922         (info_spu_command): Likewise.
4923         (_initialize_spu_tdep): Install "info spu" commands.
4924
4925 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4926
4927         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
4928         accessing non-seekable spufs files.
4929
4930 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4931
4932         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
4933         gdbarch_skip_trampoline_code.
4934         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4935         * objc-lang.c (objc_skip_trampoline)
4936         (objc_submethod_helper_data): Likewise.
4937         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
4938         * infrun.c (handle_inferior_event): Likewise.
4939         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4940         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4941         gdbarch_in_solib_return_trampoline.
4942         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4943         * infrun.c (handle_inferior_event): Likewise.
4944         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4945         * gdbarch.c, gdbarch.h: Regenerate.
4946
4947 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4948
4949         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4950         * symtab.c (find_function_start_sal, in_prologue): Likewise.
4951         * linespec.c (minsym_found): Likewise.
4952         * infrun.c (step_into_function): Likewise.
4953         * gdbarch.c, gdbarch.h: Regenerate.
4954
4955 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4956
4957         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4958         * valops.c (value_allocate_space_in_inferior): Likewise.
4959         * gdbarch.c, gdbarch.h: Regenerate.
4960
4961 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4962
4963         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4964         gdbarch_memory_insert_breakpoint.
4965         * mem-break.c (memory_insert_breakpoint): Likewise.
4966         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4967         gdbarch_memory_remove_breakpoint.
4968         * mem-break.c (memory_remove_breakpoint): Likewise.
4969         * gdbarch.c, gdbarch.h: Regenerate.
4970
4971 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4972
4973         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4974         gdbarch_fetch_tls_load_module_address.
4975         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4976         gdbarch_fetch_tls_load_module_address_p.
4977         * gdbarch.c, gdbarch.h: Regenerate.
4978
4979 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4980
4981         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4982         gdbarch_decr_pc_after_break.
4983         * tracepoint.c (trace_dump_command): Likewise.
4984         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4985         * linux-thread-db.c (check_event): Likewise.
4986         * linux-nat.c (cancel_breakpoints_callback): Likewise.
4987         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4988         * frame.h: Likewise (comment).
4989         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4990         * aix-thread.c (aix_thread_wait): Likewise.
4991         * gdbarch.c, gdbarch.h: Regenerate.
4992
4993 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
4994
4995         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4996         gdbarch_address_class_type_flags.
4997         * dwarf2read.c (read_tag_pointer_type): Likewise.
4998         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4999         gdbarch_address_class_type_flags_p.
5000         * dwarf2read.c (read_tag_pointer_type): Likewise.
5001         * gdbarch.c, gdbarch.h: Regenerate.
5002
5003 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
5004
5005         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5006         * value.c (value_as_address): Likewise (comment).
5007         * remote-mips.c (common_breakpoint): Likewise.
5008         * regcache.c (read_pc_pid): Likewise.
5009         * printcmd.c (do_one_display): Likewise.
5010         * monitor.c (monitor_write_memory, monitor_read_memory)
5011         (monitor_insert_breakpoint): Likewise.
5012         * mips-tdep.c (heuristic_proc_start): Likewise.
5013         * infrun.c (insert_step_resume_breakpoint_at_frame)
5014         (insert_step_resume_breakpoint_at_caller): Likewise.
5015         * buildsym.c (record_line): Likewise.
5016         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5017         (arm_get_next_pc): Likewise.
5018         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5019         (store_regs): Likewise.
5020         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5021         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5022         * gdbarch.c, gdbarch.h: Regenerate.
5023
5024 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
5025
5026         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5027         * tracepoint.c (scope_info): Likewise.
5028         * target.c (debug_print_register): Likewise.
5029         * stack.c (frame_info): Likewise.
5030         * sh-tdep.c (sh_register_reggroup_p): Likewise.
5031         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5032         (sh64_media_print_registers_info)
5033         (sh64_compact_print_registers_info): Likewise.
5034         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5035         * remote-sim.c (gdbsim_fetch_register): Likewise.
5036         * remote.c (packet_reg): Likewise (comment).
5037         * reggroups.c (default_register_reggroup_p): Likewise.
5038         * regcache.c (regcache_dump): Likewise.
5039         * printcmd.c (address_info): Likewise.
5040         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5041         * mt-dep.c (mt_registers_info): Likewise.
5042         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5043         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5044         (mips_read_fp_register_double, mips_print_fp_register)
5045         (mips_print_register, print_gp_register_row, mips_print_registers_info)
5046         (mips_register_sim_regno): Likewise.
5047         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5048         * inf-ptrace.c (inf_ptrace_fetch_register)
5049         (inf_ptrace_store_register): Likewise.
5050         * infcmd.c (default_print_registers_info): Likewise.
5051         * ia64-linux-nat.c (ia64_linux_fetch_register)
5052         (ia64_linux_store_register): Likewise.
5053         * i386-linux-nat.c (fetch_register, store_register): Likewise.
5054         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5055         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5056         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5057         (hppa_hpux_store_register): Likewise.
5058         * findvar.c (locate_var_value): Likewise.
5059         * dwarf2loc.c (locexpr_describe_location): Likewise.
5060         * dwarf2-frame.c (execute_cfa_program): Likewise.
5061         * arm-tdep.c (arm_push_dummy_call): Likewise.
5062         * arch-utils.c (legacy_register_sim_regno): Likewise.
5063         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5064         * alpha-nat.c (fetch_osf_core_registers): Likewise.
5065         * mi/mi-main.c (mi_cmd_data_list_register_names)
5066         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5067         (mi_cmd_data_write_register_values): Likewise.
5068         * gdbarch.c, gdbarch.h: Regenerate.
5069
5070 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
5071
5072         * target-memory.c (blocks_to_erase): Correct off-by-one error.
5073
5074 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
5075         
5076         * remote.c (process_g_packet): Don't check size.
5077         * gdbarch.sh: Remove register_bytes_ok.
5078         * gdbarch.c: Regenerated.
5079         * gdbarch.h: Regenerated.
5080         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5081         (m68k_register_bytes_ok): Remove.
5082         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5083         
5084 2007-06-06  Andreas Schwab  <schwab@suse.de>
5085
5086         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5087         (destroy_addr_space_name): Define.
5088         (libunwind_load): Get address of destroy_addr_space function.
5089         (libunwind_frame_cache): Destroy unw_addr_space_t object before
5090         returning unsuccessfully.
5091         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5092         returning.
5093         (libunwind_sigtramp_frame_sniffer): Likewise.
5094         (libunwind_get_reg_special): Likewise.
5095
5096 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5097
5098         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5099         gdbarch_fetch_pointer_argument.
5100         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5101         * gdbarch.c, gdbarch.h: Regenerate.
5102
5103 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5104
5105         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5106         gdbarch_have_nonsteppable_watchpoint.
5107         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5108         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5109         gdbarch_cannot_step_breakpoint.
5110         * infrun.c (resume): Likewise.
5111         * gdbarch.c, gdbarch.h: Regenerate.
5112
5113 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5114
5115         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5116         * stack.c (print_frame_args): Likewise.
5117         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5118         * stack.c (print_args_stub, frame_info): Likewise.
5119         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5120         * stack.c (print_args_stub, frame_info): Likewise.
5121         * gdbarch.c, gdbarch.h: Regenerate.
5122
5123 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5124
5125         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5126         gdbarch_coff_make_msymbol_special.
5127         * coffread.c (coff_symtab_read): Likewise.
5128         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5129         gdbarch_elf_make_msymbol_special.
5130         * elfread.c (elf_symtab_read): Likewise.
5131         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5132         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5133         * gdbarch.c, gdbarch.h: Regenerate.
5134
5135 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5136
5137         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5138         gdbarch_frame_red_zone_size.
5139         * gdbarch.c, gdbarch.h: Regenerate.
5140
5141 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5142
5143         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5144         * infcall.c (call_function_by_hand): Likewise.
5145         * gcore.c (derive_stack_segment): Likewise.
5146         * frame.c (frame_id_inner): Likewise.
5147         * arch-utils.c (core_addr_lessthan): Likewise (comment).
5148         * ada-lang.c (ensure_lval): Likewise.
5149         * gdbarch.c, gdbarch.h: Regenerate.
5150
5151 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5152
5153         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5154         gdbarch_address_to_pointer.
5155         * findvar.c (store_typed_address): Likewise.
5156         * gdbtypes.c (make_pointer_type): Likewise (comment).
5157         * procfs.c (procfs_address_to_host_pointer): Likewise.
5158         * std-regs.c (value_of_builtin_frame_reg): Likewise.
5159         (value_of_builtin_frame_fp_reg): Likewise.
5160         (value_of_builtin_frame_pc_reg): Likewise.
5161         * utils.c (paddress): Likewise (comment).
5162         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5163         gdbarch_pointer_to_address.
5164         * findvar.c (extract_typed_address): Likewise.
5165         * gdbtypes.c (make_pointer_type): Likewise (comment).
5166         * valops.c (value_cast): Likewise (comment).
5167         * gdbarch.c, gdbarch.h: Regenerate.
5168
5169 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
5170
5171         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5172         * infrun.c (handle_inferior_event): Likewise.
5173         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5174         gdbarch_get_longjmp_target_p.
5175         * breakpoint.c (breakpoint_re_set): Likewise.
5176         * infrun.c (handle_inferior_event): Likewise.
5177         * gdbarch.c, gdbarch.h: Regenerate.
5178
5179 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
5180
5181         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5182         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5183         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5184         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5185         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5186         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5187         find_stub_with_shl_get, cover_find_stub_with_shl_get,
5188         initialize_hp_cxx_exception_support, child_enable_exception_callback,
5189         current_ex_event, child_get_current_exception_event): Remove.
5190         (hppa_hpux_inferior_created): Remove.
5191         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5192
5193         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5194         (deprecated_exception_support_initialized): Remove.
5195         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5196         (deprecated_exception_support_initialized): Remove.
5197         (breakpoint_init_inferior): Remove handling of non-zero
5198         deprecated_exception_catchpoints_are_fragile.
5199
5200         * symtab.h (deprecated_hp_som_som_object_present): Remove.
5201         * symtab.c (deprecated_hp_som_som_object_present): Remove.
5202         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5203         deprecated_hp_som_som_object_present.
5204         * eval.c (evaluate_subexp_standard): Likewise.
5205         * valops.c (value_cast): Likewise.
5206
5207         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5208         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5209         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5210
5211 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
5212
5213         * objfiles.h (ImportEntry, ExportEntry): Remove types.
5214         (struct objfile): Remove import_list, import_list_size,
5215         export_list, export_list_size members.
5216         (is_in_import_list): Remove prototype.
5217         * objfiles.c (is_in_import_list): Remove.
5218         * somread.c (init_import_symbols, init_export_symbols): Remove.
5219         (som_symfile_read): Do not call init_import_symbols.  Do not
5220         set objfile->export_list and objfile->export_list_size.
5221
5222 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
5223
5224         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5225         Use the original objfile if necessary.
5226
5227 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
5228
5229         * defs.h (ldirname): New prototype.
5230         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5231         missing.
5232         * utils.c (ldirname): New function.
5233         * xml-tdesc.c (file_read_description_xml): Use ldirname.
5234
5235 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
5236
5237         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5238
5239 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
5240
5241         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5242
5243 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
5244
5245         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5246
5247 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
5248
5249         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5250         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5251         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5252         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5253         (ppc_linux_in_sigtramp, insn_is_sigreturn,
5254         ppc_linux_at_sigtramp_return_path): Remove.
5255
5256 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5257
5258         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5259         (xtensa_register_write_masked, xtensa_register_read_masked)
5260         (xtensa_extract_return_value, xtensa_store_return_value
5261         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
5262         TARGET_BYTE_ORDER by gdbarch_byte_order.
5263         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5264         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5265         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5266         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5267         (sh64_push_dummy_call, sh64_extract_return_value)
5268         (sh64_store_return_value, sh64_register_convert_to_virtual)
5269         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5270         (sh64_pseudo_register_write, sh64_do_fp_register)
5271         (sh64_frame_prev_register): Likewise.
5272         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5273         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5274         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5275         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5276         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5277         * ppc-linux-nat.c (store_register): Likewise.
5278         * nto-tdep.c (nto_find_and_open_solib)
5279         (nto_init_solib_absolute_prefix): Likewise.
5280         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5281         (mips_convert_register_p, mips_eabi_push_dummy_call)
5282         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5283         (mips_o32_push_dummy_call, mips_o32_return_value)
5284         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5285         (mips_read_fp_register_single, mips_read_fp_register_double)
5286         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5287         (mips_breakpoint_from_pc): Likewise.
5288         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5289         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5290         (mips_linux_o32_sigframe_init): Likewise.
5291         * m32r-tdep.c (m32r_memory_insert_breakpoint)
5292         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5293         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5294         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5295         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5296         * coffread.c (process_coff_symbol): Likewise.
5297         * arm-tdep.c (convert_from_extended, convert_to_extended)
5298         (gdb_print_insn_arm): Likewise.
5299
5300 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5301
5302         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5303         * i386-tdep.c (i386_dbx_reg_to_regnum)
5304         (i386_svr4_reg_to_regnum): Likewise.
5305         * inf-ptrace.c (inf_ptrace_fetch_registers)
5306         (inf_ptrace_store_registers): Likewise.
5307         * corelow.c (get_core_registers): Likewise.
5308         * i386-linux-nat.c (supply_gregset, fill_gregset)
5309         (i386_linux_fetch_inferior_registers)
5310         (i386_linux_store_inferior_registers): Likewise.
5311         * remote.c (init_remote_state,packet_reg_from_regnum)
5312         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5313         (remote_prepare_to_store,store_registers_using_G)
5314         (remote_store_registers,remote_arch_state): Likewise.
5315         * tracepoint.c (encode_actions): Likewise.
5316         * mi/mi-main.c (mi_cmd_data_list_register_names)
5317         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5318         (mi_cmd_data_write_register_values): Likewise.
5319         * tui/tui-regs.c (tui_show_register_group)
5320         (tui_show_register_group): Likewise.
5321         * xtensa-tdep.h (FP_ALIAS): Likewise.
5322         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5323         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5324         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5325         * win32-nat.c (do_win32_fetch_inferior_registers)
5326         (do_win32_store_inferior_registers,fetch_elf_core_registers
5327         * user-regs.h: Likewise (comment).
5328         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5329         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5330         * target-descriptions.h: Likewise (comment).
5331         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5332         * target.c (debug_print_register): Likewise.
5333         * stack.c (frame_info): Likewise.
5334         * stabsread.c (define_symbol): Likewise.
5335         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5336         (sh64_media_print_registers_info)
5337         (sh64_compact_print_registers_info): Likewise.
5338         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5339         * rs6000-nat.c (fetch_register,store_register): Likewise.
5340         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5341         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5342         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5343         * remote-m32r-sdi.c (m32r_fetch_registers)
5344         (m32r_store_registers): Likewise.
5345         * reggroups.c (default_register_reggroup_p): Likewise.
5346         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5347         (regcache_restore,regcache_dump): Likewise.
5348         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5349         * mips-tdep.c (mips_xfer_register,mips_register_name)
5350         (mips_register_reggroup_p,mips_pseudo_register_read)
5351         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5352         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5353         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5354         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5355         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5356         (print_gp_register_row,mips_print_registers_info)
5357         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5358         (mips_register_sim_regno): Likewise.
5359         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5360         (mips_linux_n32n64_sigframe_init): Likewise.
5361         * mips-linux-nat.c (mips_linux_register_addr)
5362         (mips64_linux_register_addr): Likewise.
5363         * findvar.c (value_of_register): Likewise.
5364         * infcmd.c (default_print_registers_info,registers_info)
5365         (print_vector_info,print_float_info): Likewise.
5366         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5367         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5368         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5369         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5370         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5371         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5372         (ia64_cannot_store_register,ia64_linux_fetch_registers)
5373         (ia64_linux_store_registers): Likewise.
5374         * hpux-thread.c (hpux_thread_fetch_registers)
5375         (hpux_thread_store_registers): Likewise.
5376         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5377         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5378         (h8300_register_type): Likewise.
5379         * dwarf2-frame.c (dwarf2_frame_cache)
5380         (dwarf2_frame_state_alloc_regs): Likewise.
5381         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5382         (cris_cannot_store_register,crisv32_cannot_fetch_register)
5383         (crisv32_cannot_store_register,cris_register_name): Likewise.
5384         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5385         * arch-utils.c (legacy_register_sim_regno)
5386         (legacy_virtual_frame_pointer): Likewise.
5387         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5388         * arm-tdep.h: Likewise (comment).
5389         * frv-tdep.c (frv_register_sim_regno): Likewise.
5390         * m68klinux-nat.c (old_fetch_inferior_registers)
5391         (old_store_inferior_registers): Likewise.
5392         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5393         * irix5-nat.c (fetch_core_registers): Likewise.
5394         * hppa-tdep.c (hppa_frame_cache): Likewise.
5395         * hppa-linux-nat.c (hppa_linux_register_addr)
5396         (hppa_linux_fetch_inferior_registers)
5397         (hppa_linux_store_inferior_registers): Likewise.
5398         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5399         (hppa_hpux_store_inferior_registers): Likewise.
5400         * amd64-nat.c (amd64_native_gregset_reg_offset)
5401         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5402         * dbug-rom.c (dbug_regname): Likewise.
5403         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5404         (HARD_PAGE_REGNUM (comment)): Likewise.
5405         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5406         * i386-tdep.c (i386_dbx_reg_to_regnum)
5407         (i386_svr4_reg_to_regnum): Likewise.
5408         * mi/mi-main.c (mi_cmd_data_list_register_names)
5409         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5410         (mi_cmd_data_write_register_values): Likewise.
5411         * gdbarch.c, gdbarch.h: Regenerate.
5412         * tui/tui-regs.c (tui_show_register_group): Likewise.
5413         * xtensa-tdep.h (FP_ALIAS): Likewise.
5414         * user-regs.h: Likewise (comment).
5415         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5416         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5417         * target-descriptions.h: Likewise (comment).
5418         * target.c (debug_print_register): Likewise.
5419         * stack.c (frame_info): Likewise.
5420         * stabsread.c (define_symbol): Likewise.
5421         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5422         (sh64_compact_print_registers_info): Likewise.
5423         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5424         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5425         (regcache_restore,regcache_dump): Likewise.
5426         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5427         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5428         (mips_stab_reg_to_regnum): Likewise.
5429         * findvar.c (value_of_register): Likewise.
5430         * infcmd.c (default_print_registers_info,registers_info)
5431         (print_vector_info,print_float_info): Likewise.
5432         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5433         * h8300-tdep.c (h8300_register_type): Likewise.
5434         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5435         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5436         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5437         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5438         * parse.c: Remove comment.
5439         * gdbarch.c, gdbarch.h: Regenerate
5440
5441 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5442
5443         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5444         gdbarch_cannot_fetch_register.
5445         * alpha-nat.c (fetch_osf_core_registers): Likewise.
5446         * hppa-linux-nat.c (fetch_register): Likewise.
5447         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5448         * m68klinux-nat.c (fetch_register): Likewise.
5449         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5450         Likewise.
5451         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5452         gdbarch_cannot_store_register.
5453         * hppa-linux-nat.c (store_register): Likewise.
5454         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5455         * regcache.c (regcache_raw_write): Likewise.
5456         * m68klinux-nat.c (store_register): Likewise.
5457         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5458         * gdbarch.c, gdbarch.h: Regenerate.
5459
5460 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5461
5462         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5463         * gdbarch.c, gdbarch.h: Regenerate.
5464
5465 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5466
5467         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5468         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5469         * gdbarch.c, gdbarch.h: Regenerate.
5470
5471 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5472
5473         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
5474         * ax-gdb.c (gen_bitfield_ref): Likewise.
5475         * mi/mi-main.c (get_register): Likewise.
5476         * findvar.c (default_value_from_register, extract_signed_integer)
5477         (extract_unsigned_integer, extract_long_unsigned_integer)
5478         (store_signed_integer, store_unsigned_integer): Likewise.
5479         * regcache.c (regcache_dump): Likewise.
5480         * value.c (lookup_internalvar, value_of_internalvar)
5481         (set_internalvar): Likewise.
5482         * defs.h: Likewise.
5483         * valprint.c (print_binary_chars, print_octal_chars)
5484         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
5485         * infcmd.c (default_print_registers_info): Likewise.
5486         * arch-utils.c (selected_byte_order, show_endian): Likewise.
5487         * stabsread.c (define_symbol): Likewise.
5488         * doublest.c (floatformat_from_length, floatformat_from_type)
5489         (extract_typed_floating, store_typed_floating): Likewise.
5490         * gdbarch.c, gdbarch.h: Regenerate.
5491
5492 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
5493
5494         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
5495         gdbarch_call_dummy_location.
5496         * infcall.c (call_function_by_hand): Likewise.
5497         * inferior.h: Change comment.
5498         * arch-utils.c: Change comment.
5499         * gdbarch.c, gdbarch.h: Regenerate.
5500
5501 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
5502
5503         * solib-aix5.c: Delete.
5504         * Makefile.in (solib-aix5.o): Delete rule.
5505
5506 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
5507
5508         * breakpoint.h (enum bpstat_what_main_action): Remove
5509         BPSTAT_WHAT_THROUGH_SIGTRAMP.
5510         * infrun.c (process_event_stop_test): Do not check for it.
5511
5512 2007-05-22  Chris Dearman  <chris@mips.com>
5513             Maciej W. Rozycki  <macro@mips.com>
5514
5515         * ser-unix.c (show_serial_hwflow): New function.
5516         (hardwire_raw): Add hardware flow control support.
5517         (_initialize_ser_hardwire): Add "set/show remoteflow".
5518         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
5519         * NEWS: Document the new command.
5520
5521 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
5522
5523         * config/i386/tm-linux.h (sys_quotactl): Do not define.
5524         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
5525         define for i[[3456]]86-*-linux* native configurations.
5526         * config.in, configure: Regenerate.
5527
5528 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
5529
5530         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
5531         a core file. Add comment in the function description.
5532
5533 2007-05-18  Caroline Tice  <ctice@apple.com>
5534
5535         * c-valprint.c (c_value_print):  If the initialized field of the
5536         value struct is 0, print out "[uninitialized]" before the value.
5537         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
5538         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
5539         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
5540         ctx->initialized appropriately. Verify no location op follows
5541         DW_OP_GNU_uninit.
5542         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
5543         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
5544         set_value_initialized.
5545         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
5546         (decode_locdesc): Add case for DW_OP_GNU_uninit.
5547         * value.c (struct value):  New field, initialized.
5548         (allocate_value): Initialize new field.
5549         (set_value_initialized): New function.
5550         (value_initialized): New function.
5551         * value.h (value_initialized): New extern declaration.
5552         (set_value_initialized): Likewise.
5553         
5554 2007-05-18  Caroline Tice  <ctice@apple.com>
5555
5556         * MAINTAINERS (Write After Approval): Add self.
5557         
5558 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
5559
5560         * gdbtypes.c (make_reference_type): Preserve the type chain
5561         and set the length of all the variants of the pointer type.
5562
5563 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
5564
5565         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
5566         and set the length of all the variants of the pointer type.
5567
5568 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
5569
5570         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
5571         comment.
5572         (mips_o64_push_dummy_call): Reformat a comment.
5573
5574 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
5575
5576         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
5577         (score_prologue_frame_base_address): Return fp to keep gdb print
5578         local variables correctly when debugging information is stabs.
5579
5580         (score_analyze_prologue): For software watchpoint, fetch all the
5581         instructions from range [startaddr, pc] once and identify them locally
5582         to reduce memory access.
5583         (score_malloc_and_get_memblock, score_free_memblock)
5584         (score_adjust_memblock_ptr): New functions.
5585         (score_fetch_inst): Fetch single instruction or mutiple instructions.
5586
5587         (score_target_can_use_watch, score_stopped_by_watch)
5588         (score_target_insert_watchpoint, score_target_remove_watchpoint)
5589         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
5590         New functions for remote & local hw-watchpoint and hw-breakpoint.
5591
5592 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
5593
5594         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
5595         declarations as well.
5596
5597 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5598
5599         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
5600         * config/arm/tm-embed.h: Delete file.
5601
5602         * arm-tdep.h (arm_software_single_step): Declare.
5603         * arm-tdep.c (arm_software_single_step): Make global.
5604         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
5605         from here to ...
5606         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
5607         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
5608         * armobsd-tdep.c (armobsd_init_abi): ... here ...
5609         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
5610
5611         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
5612         allow defines to be overriden by TM file.
5613         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
5614         change default to {0xbe,0xbe}.
5615         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
5616         arm_obsd_thumb_be_breakpoint): New global variables.
5617         (armobsd_init_abi): Override tdep->thumb_breakpoint and
5618         tdep->thumb_breakpoint_size.
5619         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
5620         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
5621         tdep->thumb_breakpoint_size.
5622
5623         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
5624
5625 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
5626
5627         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
5628         saved-gpreg-size".
5629
5630         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
5631         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
5632         (mips_stack_argsize_string, mips_stack_argsize): Delete.
5633         (mips_abi_regsize): Simplify.
5634         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5635         (mips_n32n64_return_value, mips_o32_push_dummy_call)
5636         (mips_o32_return_value, mips_o64_push_dummy_call)
5637         (mips_o64_return_value): Propogate constant register sizes.  Use the
5638         ABI register size instead of mips_stack_argsize.
5639         (mips_dump_tdep): Don't print mips_stack_argsize.
5640         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
5641         settings.
5642
5643 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
5644
5645         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
5646         * config/mips/tm-linux.h: Delete.
5647         * mips-linux-tdep.c (mips_svr4_so_ops): New.
5648         (mips_linux_in_dynsym_resolve_code): Make static.  Use
5649         svr4_in_dynsym_resolve_code.
5650         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
5651         set_solib_ops.
5652         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
5653         global.
5654         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
5655         * Makefile.in (mips-linux-tdep.o): Update.
5656         * solib.c (set_solib_ops): New.
5657         (current_target_so_ops): Update comment.
5658         * solib.h (set_solib_ops): New prototype.
5659
5660 2007-05-16  Chris Dearman  <chris@mips.com>
5661
5662         * printcmd.c (do_examine): Fix typos in a comment.
5663
5664 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
5665
5666         * configure.ac: Allow sysroots to be relocated under $prefix as
5667         well as $exec_prefix.
5668         * configure: Regenerate.
5669
5670 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
5671
5672         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
5673         (offsetof): Do not define.
5674         (find_stub_with_shl_get): Use numerical value 3 instead of
5675         symbolic value TYPE_PROCEDURE.
5676
5677 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5678
5679         * gdb_proc_service.h (paddr_t): Delete typedef.
5680         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
5681         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
5682         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
5683         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
5684         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
5685         * Makefile.in (proc-service.o): Update.
5686
5687 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5688
5689         * Makefile.in (mips-tdep.o): Update.
5690         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
5691         unwinder.
5692
5693 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5694
5695         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
5696         instead of store_typed_address.
5697         * value.c (pack_long): New.
5698         (value_from_longest): Use it.
5699         * value.h (pack_long): New prototype.
5700
5701 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5702
5703         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
5704         DW_EH_PE_signed if appropriate.
5705
5706 2007-05-14  Paul Brook  <paul@codesourcery.com>
5707             Daniel Jacobowitz  <dan@codesourcery.com>
5708
5709         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
5710         function.
5711         (dwarf_decode_lines): Check for line info without a file.
5712
5713 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5714
5715         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
5716         as hexadecimal.
5717
5718 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5719
5720         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
5721         STRUCTOP_STRUCT.
5722         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
5723         STRUCTOP_STRUCT.
5724         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
5725
5726 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
5727
5728         * gdbarch.sh (read_sp): Remove.
5729         * gdbarch.c, gdbarch.h: Regenerate.
5730         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
5731
5732         * avr-tdep.c (avr_read_sp): Remove.
5733         (avr_unwind_sp): New function.
5734         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
5735         * mips-tdep.c (mips_read_sp): Remove.
5736         (mips_unwind_sp): New function.
5737         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
5738         * score-tdep.c (score_read_unsigned_register): Remove.
5739         (score_read_sp): Remove.
5740         (score_unwind_sp): New function.
5741         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
5742
5743 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
5744
5745         * buildsym.c (start_subfile): Handle absolute pathnames
5746         while comparing subfile names.
5747
5748 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5749
5750         * hppa-hpux-tdep.c: Include "regcache.h".
5751         * hppa-linux-tdep.c: Likewise.
5752         * hppa-tdep.c: Include "gdb_stdint.h".
5753         (find_unwind_entry): Cast host pointer to uintptr_t before passing
5754         it to paddr_nz.
5755         * Makefile.in: Update dependencies.
5756
5757 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5758
5759         * blockframe.c: Remove obsolete comments.
5760         * alpha-nat.c (fetch_osf_core_registers): Update comment.
5761         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
5762         * hppa-tdep.h (enum hppa_regnum): Likewise.
5763         * mips-tdep.h: Likewise.
5764         * m68hc11-tdep.c: Likewise.
5765
5766 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5767
5768         * inferior.h (read_sp): Remove prototype.
5769         * regcache.c (read_sp): Remove.
5770         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
5771         * infcall.c (call_function_by_hand): Likewise.
5772         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
5773         of calling read_sp.
5774         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5775
5776 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5777
5778         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
5779         instead of read_register and read_register_pid.
5780
5781         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
5782         argument instead of PTID.  Use regcache functions instead of
5783         read_register_pid.
5784         (ia64_linux_insert_watchpoint): Update call.
5785         (ia64_linux_stopped_data_address): Use regcache functions
5786         instead of read_register_pid and write_register_pid.
5787
5788 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5789
5790         * libunwind-frame.h (struct regcache): Add forward declaration.
5791         (libunwind_get_reg_special): Add REGCACHE argument.
5792         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
5793         argument.  Pass it to unw_init_remote_p.
5794
5795         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
5796         libunwind_get_reg_special.
5797         (ia64_access_reg): Remove "write" case.
5798         (ia64_access_fpreg): Likewise.  Read from next_frame passed
5799         as callback argument instead of from current_regcache.
5800         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
5801         passed as callback argument instead of from current_regcache.
5802         (ia64_access_rse_fpreg): New function.
5803         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
5804
5805 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5806
5807         * NEWS: Mention SPU overlay support.
5808
5809 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5810
5811         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
5812
5813 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5814
5815         * breakpoint.c (remove_breakpoint): Do not remove software
5816         breakpoints in unmapped overlay sections.
5817
5818 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5819
5820         * spu-tdep.c: Include "observer.h".
5821         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
5822         (spu_overlay_data): New variable.
5823         (struct spu_overlay_table): New type.
5824         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
5825         spu_overlay_new_objfile): New functions.
5826         (spu_gdbarch_init): Install spu_overlay_update.
5827         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
5828         allocate spu_overlay_data objfile data.
5829
5830 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5831
5832         * gdbarch.sh (overlay_update): New gdbarch function.
5833         (struct obj_section): Add forward declaration.
5834         * gdbarch.c, gdbarch.h: Regenerate.
5835
5836         * symfile.c (simple_overlay_update): Make global.
5837         (target_overlay_update): Remove variable.
5838         (overlay_is_mapped): Call gdbarch_overlay_update instead of
5839         target_overlay_update.
5840         (overlay_load_command): Likewise.
5841         * symfile.h (struct obj_section): Add forward declaration.
5842         (simple_overlay_update): Add prototype.
5843
5844         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
5845
5846 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5847
5848         * observer.sh: Add "struct objfile" forward declaration.
5849         * target.h (deprecated_target_new_objfile_hook): Remove.
5850         * symfile.c (deprecated_target_new_objfile_hook): Remove.
5851         (clear_symtab_users): Call observer_notify_new_objfile.
5852         (symbol_file_add_with_addrs_or_offsets): Likewise.
5853         * rs6000-nat.c: Include "observer.h".
5854         (vmap_ldinfo): Call observer_notify_new_objfile.
5855         (xcoff_relocate_core): Likewise.
5856         * remote.c (remote_new_objfile_chain): Remove.
5857         (remote_new_objfile): Do not call remote_new_objfile_chain.
5858         (_initialize_remote): Use observer_attach_new_objfile.
5859         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
5860         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
5861         (_initialize_tui_hooks): Use observer_attach_new_objfile.
5862         * aix-thread.c: Include "observer.h".
5863         (target_new_objfile_chain): Remove.
5864         (new_objfile): Do not call target_new_objfile_chain.
5865         (_initialize_aix_thread): Use observer_attach_new_objfile.
5866         * hpux-thread.c: Include "observer.h"
5867         (target_new_objfile_chain): Remove.
5868         (hpux_thread_new_objfile): Make static.  Do not call
5869         target_new_objfile_chain.
5870         (_initialize_hpux_thread): Use observer_attach_new_objfile.
5871         * linux-thread-db.c: Include "observer.h".
5872         (target_new_objfile_chain): Remove.
5873         (thread_db_new_objfile): Do not call target_new_objfile_chain.
5874         (_initialize_thread_db): Use observer_attach_new_objfile.
5875         * sol-thread.c: Include "observer.h".
5876         (target_new_objfile_chain): Remove.
5877         (sol_thread_new_objfile): Make static.  Do not call
5878         target_new_objfile_chain.
5879         (_initialize_sol_thread): Use observer_attach_new_objfile.
5880         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
5881         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
5882         $(observer_h).
5883
5884 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5885
5886         * gdbarch.sh (remote_translate_xfer_address): Remove.
5887         * gdbarch.h, gdbarch.c: Regenerate.
5888         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
5889         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
5890         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
5891         call gdbarch_remote_translate_xfer_address.
5892         * frv-tdep.c (frv_gdbarch_init): Do not call
5893         set_gdbarch_remote_translate_xfer_address.
5894         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
5895         (ia64_gdbarch_init): Do not install it.
5896
5897 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
5898
5899         * NEWS: Mention change in handling the -tui option.
5900
5901 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
5902
5903         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
5904         typo.
5905
5906 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5907
5908         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
5909         (breakpoint_inserted_here_p): Call it.
5910         (software_breakpoint_inserted_here_p): Likewise.
5911
5912 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
5913
5914         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
5915         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
5916         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
5917         (inf_ptrace_store_register): Likewise.
5918         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
5919         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
5920
5921         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
5922
5923         * linux-nat.c (linux_trad_target): Adapt parameter list.
5924         * linux-nat.h (linux_trad_target): Likewise.
5925
5926         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
5927
5928         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
5929         (mips_linux_cannot_store_register): Likewise.
5930         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
5931         Return (CORE_ADDR) -1 for registers that cannot be fetched or
5932         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
5933         (mips64_linux_register_addr): Likewise.
5934         (mips_linux_register_u_offset): Adapt parameter list.  Pass
5935         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
5936
5937         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5938         * config/mips/nm-linux.h: Delete file.
5939
5940 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
5941
5942         * remote.c (remote_detach): Error out if remote can't detach.
5943
5944 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
5945
5946         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5947         instruction's opcode in the "opcode" variable and declares new
5948         variable "closing_insn".
5949
5950 2007-05-10  Chris Dearman  <chris@mips.com>
5951             Maciej W. Rozycki  <macro@mips.com>
5952
5953         * cli/cli-setshow.c (do_setshow_command): Remove trailing
5954         whitespace when setting a var_filename.
5955
5956 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
5957         
5958         * main.c (captured_main): Recognize -tui option and print an error
5959         message when the TUI is not configured.
5960         
5961 2007-05-09  Andreas Schwab  <schwab@suse.de>
5962
5963         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5964         set removed members.
5965         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5966
5967 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
5968
5969         * gdbarch.sh (deprecated_store_struct_return): Remove.
5970         * gdbarch.c, gdbarch.h: Regenerate.
5971         * frv-tdep.c (frv_store_struct_return): Remove.
5972         (frv_gdbarch_init): Do not install it.
5973
5974 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
5975
5976         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5977         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5978         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5979
5980 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
5981
5982         * spu-linux-nat.c: Include "gdb_stdint.h".
5983         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5984         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5985         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5986         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5987         (spu_child_wait): Mark up string for translation.
5988
5989 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
5990             Luis Machado  <luisgpm@br.ibm.com>
5991
5992         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5993         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5994         BC_INSTRUCTION): Define.
5995         (deal_with_atomic_sequence): New function.
5996         (rs6000_software_single_step): Call deal_with_atomic_sequence.
5997         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5998         gdbarch_software_single_step routine.
5999
6000 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
6001
6002         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6003         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6004         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6005         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6006         spu_child_post_attach, spu_fetch_inferior_registers,
6007         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6008         memory addresses as ULONGEST, not CORE_ADDR.
6009
6010 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
6011
6012         * gdbarch.sh: Add skip_permanent_breakpoint callback.
6013         * gdbarch.h, gdbarch.c: Regenerate.
6014
6015         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6016         (resume): Call gdbarch_skip_permanent_breakpoint instead of
6017         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
6018
6019         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6020         Add REGCACHE argument.  Use it instead of read/write_register.
6021         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6022
6023         * config/pa/tm-hppah.h: Delete file.
6024         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6025         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6026
6027 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
6028
6029         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6030         * NEWS: Mention improved C++ thunk support.
6031         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6032         * cp-abi.c (cplus_skip_trampoline): New.
6033         * cp-abi.h (cplus_skip_trampoline): New prototype.
6034         (struct cp_abi_ops): Add skip_trampoline member.
6035         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6036         (init_gnuv3_ops): Set skip_trampoline.
6037
6038 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
6039
6040         * rs6000-tdep.c (struct frame_extra_info): Delete.
6041
6042 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
6043
6044         * linux-thread-db.c: Update some FIXME comments.
6045         (thread_db_xfer_partial): Delete.
6046         (init_thread_db_ops): Do not set to_xfer_partial.
6047
6048 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6049
6050         * inftarg.c, infptrace.c: Remove files.
6051         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6052         (inftarg.o, infptrace.o): Remove rules.
6053         * gdbcore.h (register_addr): Remove prototype.
6054         * inferior.h (kill_inferior, store_inferior_registers,
6055         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6056         call_ptrace, pre_fork_inferior): Remove prototypes.
6057         * target.h (child_xfer_memory, child_pid_to_exec_file, 
6058         child_core_file_to_sym_file, child_post_attach,
6059         child_post_startup_inferior, child_acknowledge_created_inferior,
6060         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6061         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6062         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6063         child_follow_fork, child_reported_exec_events_per_exec_call,
6064         child_has_exited, child_thread_alive): Remove prototypes.
6065
6066 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6067
6068         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6069         (sparc_store_inferior_registers): Likewise.
6070         * sparc-nat.c (fetch_inferior_registers): Rename to ...
6071         (sparc_fetch_inferior_registers): ... this.
6072         (store_inferior_registers): Rename to ...
6073         (sparc_store_inferior_registers): ... this.
6074         (sparc_target): Update callback names.
6075         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
6076         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
6077
6078 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6079
6080         * linux-nat.c (child_post_attach): Rename to ...
6081         (linux_child_post_attach): ... this.  Make static.
6082         (child_follow_fork): Rename to ...
6083         (linux_child_follow_fork): ... this.  Make static.
6084         (child_insert_fork_catchpoint): Rename to ...
6085         (linux_child_insert_fork_catchpoint): ... this.  Make static.
6086         (child_insert_vfork_catchpoint): Rename to ...
6087         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
6088         (child_insert_exec_catchpoint): Rename to ...
6089         (linux_child_insert_exec_catchpoint): ... this.  Make static.
6090         (child_pid_to_exec_file): Rename to ...
6091         (linux_child_pid_to_exec_file): ... this.  Make static.
6092         Add prototype.
6093         (linux_handle_extended_wait): Update call.
6094         (linux_xfer_partial): Update callback routine names.
6095
6096 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6097
6098         * configure.host (alpha*-*-osf[12]*): Remove support.
6099         * NEWS: Mention removed configurations.
6100
6101         * config/alpha/alpha-osf1.mh: Delete file.
6102         * config/alpha/alpha-osf2.mh: Delete file.
6103         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6104         and infptrace.o.
6105         * config/alpha/nm-osf.h: Delete file.
6106         * config/alpha/nm-osf2.h: Delete file.
6107         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6108         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6109         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6110
6111         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6112         (register_addr, kernel_u_size): Remove.
6113         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6114
6115 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6116
6117         * regcache.c (regcache_invalidate): New function.
6118         (register_cached): Remove.
6119         (set_register_cached): Remove.
6120         (deprecated_registers_fetched): Remove.
6121         (registers_changed): Use regcache_invalidate instead
6122         of set_register_cached.
6123         (regcache_raw_read): Update comment.
6124
6125         * regcache.h (regcache_invalidate): Add prototype.
6126         (register_cached): Remove.
6127         (set_register_cached): Remove.
6128         (deprecated_registers_fetched): Remove.
6129
6130         * findvar.c (value_of_register): Do not call register_cached.
6131         * frame.c (frame_register): Likewise.
6132         * tui/tui-regs.c (tui_get_register): Likewise.
6133
6134         * remote.c (fetch_register_using_p): Do not call set_register_cached.
6135         (process_g_packet): Likewise.
6136         (remote_fetch_registers): Likewise.
6137         * remote-sim.c (gdbsim_fetch_register): Likewise.
6138         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6139         by regcache_invalidate.
6140         (mt_pseudo_register_write): Likewise.
6141         * sh-tdep.c (sh_pseudo_register_write): Likewise.
6142
6143         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6144         call by loop over regcache_raw_supply (..., NULL).
6145
6146 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6147
6148         * target.h (struct target_ops): Add REGCACHE parameter to
6149         to_prepare_to_store.
6150         (target_prepare_to_store): Likewise.
6151         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6152         (update_current_target): Adapt prepare_to_store de_fault rule.
6153
6154         * regcache.c (regcache_raw_write): Pass regcache to
6155         target_prepare_to_store.
6156
6157         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6158         Do not call CHILD_PREPARE_TO_STORE.
6159         * gnu-nat.c (gnu_prepare_to_store): Likewise.
6160         * procfs.c (procfs_prepare_to_store): Likewise.
6161
6162         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6163         * go32-nat.c (go32_prepare_to_store): Likewise.
6164         * monitor.c (monitor_prepare_to_store): Likewise.
6165         * nto-procfs.c (procfs_prepare_to_store): Likewise.
6166         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6167         * remote-mips.c (mips_prepare_to_store): Likewise.
6168         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6169         * win32-nat.c (win32_prepare_to_store): Likewise.
6170
6171         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6172         Use it instead of current_regcache.
6173
6174         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6175         parameter.  Pass it on to next target.
6176         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6177
6178 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6179
6180         * target.h (struct regcache): Add forward declaration.
6181         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6182         and to_store_registers target operations.
6183         (target_fetch_registers, target_store_registers): Update.
6184
6185         * regcache.c (regcache_raw_read): Replace register_cached by
6186         regcache_valid_p.  Pass regcache to target_fetch_registers.
6187         (regcache_raw_write): Pass regcache to target_store_registers.
6188
6189         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6190         store_regs, store_wmmx_regs): Replace register_cached by
6191         regcache_valid_p.
6192
6193         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6194         to target_fetch_registers calls.
6195         * corelow.c (core_open): Likewise.
6196         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6197         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6198         ps_lsetfpregs): Likewise.
6199         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6200         ps_lsetfpregs): Likewise.
6201         * win32-nat.c (win32_resume): Likewise.
6202         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6203         to target_store_registers call.
6204         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6205
6206         * inferior.h (store_inferior_registers): Update prototype.
6207         (fetch_inferior_registers): Likewise.
6208         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6209         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6210         Update function pointer signatures.
6211
6212         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6213         use it instead of current_regcache, update calls.
6214         (aix_thread_store_registers): Likewise.
6215         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6216         (alphabsd_store_inferior_registers): Likewise.
6217         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6218         (amd64bsd_store_inferior_registers): Likewise.
6219         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6220         (amd64_linux_store_inferior_registers): Likewise.
6221         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6222         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6223         fetch_wmmx_regs, store_wmmx_regs): Likewise.
6224         (arm_linux_fetch_inferior_registers): Likewise.
6225         (arm_linux_store_inferior_registers): Likewise.
6226         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6227         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6228         (store_register, store_regs, store_fp_register, store_fp_regs,
6229         armnbsd_store_registers): Likewise.
6230         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6231         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6232         (bsd_uthread_store_registers): Likewise.
6233         * corelow.c (get_core_registers): Likewise.
6234         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6235         go32_store_registers): Likewise.
6236         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6237         (hppabsd_store_registers): Likewise.
6238         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6239         (hppa_hpux_fetch_inferior_registers): Likewise.
6240         (hppa_hpux_store_register): Likewise.
6241         (hppa_hpux_store_inferior_registers): Likewise.
6242         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6243         (hppa_linux_fetch_inferior_registers): Likewise.
6244         (hppa_linux_store_inferior_registers): Likewise.
6245         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6246         (hpux_thread_store_registers): Likewise.
6247         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6248         (i386bsd_store_inferior_registers): Likewise.
6249         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6250         gnu_store_registers): Likewise.
6251         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6252         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6253         Likewise.
6254         (i386_linux_fetch_inferior_registers): Likewise.
6255         (i386_linux_store_inferior_registers): Likewise.
6256         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6257         (ia64_linux_fetch_registers): Likewise.
6258         (ia64_linux_store_register): Likewise.
6259         (ia64_linux_store_registers): Likewise.
6260         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6261         (inf_child_store_inferior_registers): Likewise.
6262         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6263         (inf_ptrace_fetch_registers): Likewise.
6264         (inf_ptrace_store_register): Likewise.
6265         (inf_ptrace_store_registers): Likewise.
6266         * infptrace.c (fetch_register, store_register): Likewise.
6267         (fetch_inferior_registers, store_inferior_registers): Likewise.
6268         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6269         (m32r_linux_fetch_inferior_registers): Likewise.
6270         (m32r_linux_store_inferior_registers): Likewise.
6271         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6272         (m68kbsd_store_inferior_registers): Likewise.
6273         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6274         store_register, old_store_inferior_registers, fetch_regs, store_regs,
6275         fetch_fpregs, store_fpregs): Likewise.
6276         (m68k_linux_fetch_inferior_registers): Likewise.
6277         (m68k_linux_store_inferior_registers): Likewise.
6278         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6279         (m88kbsd_store_inferior_registers): Likewise.
6280         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6281         (mips64obsd_store_inferior_registers): Likewise.
6282         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6283         (mips64_linux_regsets_store_registers): Likewise.
6284         (mips64_linux_fetch_registers): Likewise.
6285         (mips64_linux_store_registers): Likewise.
6286         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6287         (mipsnbsd_store_inferior_registers): Likewise.
6288         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6289         (monitor_fetch_registers, monitor_store_registers): Likewise.
6290         * nto-procfs.c (procfs_fetch_registers): Likewise.
6291         (procfs_store_registers): Likewise.
6292         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6293         fetch_register, supply_vrregset, fetch_altivec_registers,
6294         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6295         (store_altivec_register, store_spe_register, store_register, 
6296         fill_vrregset, store_altivec_registers, store_ppc_registers,
6297         ppc_linux_store_inferior_registers): Likewise.
6298         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6299         (ppcnbsd_store_inferior_registers): Likewise.
6300         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6301         (ppcobsd_store_registers): Likewise.
6302         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6303         * remote.c (fetch_register_using_p, process_g_packet,
6304         fetch_registers_using_g, remote_fetch_registers): Likewise.
6305         (store_register_using_P, store_registers_using_G, 
6306         remote_store_registers): Likewise.
6307         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6308         m32r_store_register, m32r_store_register): Likewise.
6309         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6310         * remote-sim.c (gdbsim_fetch_register): Likewise.
6311         (gdbsim_store_register): Likewise.
6312         * rs6000-nat.c (fetch_register, store_register): Likewise.
6313         (rs6000_fetch_inferior_registers): Likewise.
6314         (rs6000_store_inferior_registers): Likewise.
6315         * s390-nat.c (fetch_regs, store_regs): Likewise.
6316         (fetch_fpregs, store_fpregs): Likewise.
6317         (s390_linux_fetch_inferior_registers): Likewise.
6318         (s390_linux_store_inferior_registers): Likewise.
6319         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6320         (shnbsd_store_inferior_registers): Likewise.
6321         * sol-thread.c (sol_thread_fetch_registers): Likewise.
6322         (sol_thread_store_registers): Likewise.
6323         * sparc-nat.c (fetch_inferior_registers): Likewise.
6324         (store_inferior_registers): Likewise.
6325         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6326         (spu_store_inferior_registers): Likewise.
6327         * target.c (debug_print_register): Likewise.
6328         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6329         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6330         (vaxbsd_store_inferior_registers): Likewise.
6331         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6332         (win32_fetch_inferior_registers): Likewise.
6333         (win32_store_inferior_registers): Likewise.
6334
6335 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6336
6337         * gdbcore.h (struct regcache): Add forward declaration.
6338         (struct core_fns): Add REGCACHE argument to core_read_registers
6339         callback.
6340         * corelow.c (get_core_register_section): Add REGCACHE argument,
6341         use it instead of current_regcache, pass it to core_read_registers
6342         callback.
6343         (get_core_registers): Add current_regcache as parameter to
6344         get_core_register_section calls.
6345
6346         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6347         use it instead of current_regcache.
6348         * armnbsd-nat.c (fetch_core_registers): Likewise.
6349         (fetch_elfcore_registers): Likewise.
6350         * core-regset.c (fetch_core_registers): Likewise.
6351         * cris-tdep.c (fetch_core_registers): Likewise.
6352         * irix5-nat.c (fetch_core_registers): Likewise.
6353         * m68klinux-nat.c (fetch_core_registers): Likewise.
6354         * mips-linux-tdep.c (fetch_core_registers): Likewise.
6355         * win32-nat.c (fetch_elf_core_registers): Likewise.
6356
6357 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6358
6359         * gregset.h (struct regcache): Add forward declaration.
6360         (supply_gregset): Add REGCACHE parameter, make GREGS const.
6361         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6362         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6363         (fill_gregset): Add REGCACHE parameter.
6364         (fill_fpregset): Likewise.
6365         (fill_fpxregset): Likewise.
6366
6367         Update all definitions accordingly:
6368         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6369         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6370         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
6371         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6372         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
6373         (supply_gregset): Add REGCACHE parameter, use it instead of 
6374         current_regcache.  Make GREGSETP parameter const, adapt casts.
6375         (supply_fpregset): Add REGCACHE parameter, use it instead of
6376         current_regcache.  Make FPREGSETP parameter const, adapt casts.
6377         (fill_gregset): Add REGCACHE parameter, use it instead of
6378         current_regcache.
6379         (fill_fpregset): Likewise.
6380
6381         Update all callers to pass in current_regcache as the new argument:
6382         * core-regset.c: Include "regcache.h".
6383         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6384         * procfs.c: Include "regcache.h".
6385         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6386         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6387         (procfs_do_thread_registers): Likewise.
6388         (procfs_make_note_section): Likewise.
6389         * proc-service.c: Include "regcache.h".
6390         (ps_lgetregs): Update fill_gregset call.
6391         (ps_lsetregs): Update supply_gregset call.
6392         (ps_lgetfpregs): Update fill_fpregset call.
6393         (ps_lsetfpregs): Update supply_fpregset call.
6394         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6395         supply_fpregset calls.
6396         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6397         (ps_lgetregs): Update fill_gregset call.
6398         (ps_lsetregs): Update supply_gregset call.
6399         (ps_lgetfpregs): Update fill_fpregset call.
6400         (ps_lsetfpregs): Update supply_fpregset call.
6401         
6402         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6403         fill_fpregset, and fill_fpxregset calls.
6404         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6405         (store_regs): Update fill_gregset call.
6406         (fetch_fpregs): Update supply_fpregset call.
6407         (store_fpregs): Update fill_fpregset call.
6408         (fetch_fpxregs): Update supply_fpxregset call.
6409         (store_fpxregs): Update fill_fpxregset call.
6410         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6411         (store_regs): Update fill_gregset call.
6412         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6413         (store_regs): Update fill_gregset call.
6414         (fetch_fpregs): Update supply_fpregset call.
6415         (store_fpregs): Update fill_fpregset call.
6416         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6417         * s390-nat.c (fetch_regs): Update supply_gregset call.
6418         (store_regs): Update fill_gregset call.
6419         (fetch_fpregs): Update supply_fpregset call.
6420         (store_fpregs): Update fill_fpregset call.
6421
6422         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6423         dependencies.
6424
6425 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6426
6427         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6428         it instead of current_regcache.
6429         (parse_register_dump): Add REGCACHE parameter, pass it to 
6430         supply_register callback.
6431         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6432         parse_register_dump.
6433         (monitor_dump_regs): Add REGCACHE parameter, pass it to
6434         parse_register_dump and dumpregs callback.
6435         (monitor_wait): Pass current_regcache to parse_register_dump and
6436         monitor_dump_regs.
6437         (monitor_fetch_register): Pass current_regcache to
6438         monitor_supply_register.
6439         (monitor_fetch_registers): Pass current_regcache to
6440         monitor_dump_regs.
6441         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6442         supply_register and dumpregs callbacks.
6443         (monitor_supply_register, monitor_dump_reg_block): Update
6444         prototypes.
6445         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
6446         it to monitor_supply_register.
6447         * dink32-rom.c (dink32_supply_register): Likewise.
6448         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6449         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
6450         instead of current_regcache.
6451
6452 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6453
6454         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6455         Add REGCACHE parameter.  Use it instead of current_regcache.
6456         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6457         i386nto_supply_gregset and i386nto_supply_fpregset.
6458         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6459         of current_regcache.
6460
6461         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6462         nto_supply_ helper functions.
6463         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6464
6465         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6466
6467         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6468         supply_greget, supply_fpregset, supply_altregset, supply_regset,
6469         and regset_fill member function pointers.
6470         (nto_dummy_supply_regset): Adapt prototype.
6471
6472 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6473
6474         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
6475         instead of current_regcache.  Make REGS const.
6476         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
6477         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
6478         prototypes.
6479         * shnbsd-nat.c: Include "regcache.h".
6480         (shnbsd_fetch_inferior_registers): Pass current_regcache to
6481         shnbsd_supply_reg.
6482         (shnbsd_store_inferior_registers): Pass current_regcache to
6483         shnbsd_fill_reg.
6484         * Makefile.in (shbsd-nat.o): Update dependencies.
6485
6486 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6487
6488         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
6489         instead of current_regcache.
6490         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
6491         Make GREGSETP const, remove superfluous casts.
6492         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6493         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
6494         superfluous casts.
6495         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6496         (supply_64bit_reg): Likewise
6497         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
6498         Make GREGSETP const, adapt casts accordingly.
6499         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6500         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
6501         casts accordingly.
6502         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6503         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
6504         helper routines.
6505         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
6506         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
6507         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
6508         Adapt prototypes.
6509         * mips-linux-nat.c: Include "regcache.h".
6510         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6511         current_regcache to mips{64}_(supply|fill)_ helper routines.
6512         (mips64_linux_regsets_fetch_registers): Likewise.
6513         (mips64_linux_regsets_store_registers): Likewise.
6514
6515         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
6516         REGCACHE argument; replace current_regcache.  Make REGS const.
6517         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
6518         replace current_regcache.
6519         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
6520         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
6521         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
6522         mipsnbsd_store_inferior_registers): Pass current_regcache to
6523         mipsnbsd_(supply|fill)_... helper routines.
6524
6525         * Makefile.in (mips-linux-nat.o): Update dependencies.
6526
6527 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6528
6529         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
6530         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
6531         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
6532         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
6533         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
6534         * i386gnu-nat.c (store_fpregs): Likewise.
6535         * i386v4-nat.c (fill_fpregset): Likewise.
6536         * go32-nat.c (store_register, go32_store_registers): Likewise.
6537
6538 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6539
6540         * cris-tdep.c (supply_gregset): Rename to ...
6541         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
6542         instead of current_regcache.
6543         (fetch_core_registers): Update call.  Pass current_regcache.
6544
6545 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6546
6547         * arnmnbsd-nat.c (supply_gregset): Rename to ...
6548         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
6549         Use it instead of current_regcache.
6550         (supply_fparegset): Rename to ...
6551         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
6552         Use it instead of current_regcache.
6553         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
6554         (fetch_core_registers, fetch_elfcore_registers): Likewise.
6555
6556 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6557
6558         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
6559         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
6560         use it instead of current_regcache.
6561         * alpha-tdep.h (struct regcache): Add forward declaration.
6562         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
6563         alpha_fill_fp_regs): Update prototypes.
6564
6565         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
6566         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
6567         * alpha-linux-nat.c: Include "regcache.h".
6568         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6569         current_regcache to alpha_supply/fill_ routines.
6570
6571         * alphabsd-tdep.c: Include "regcache.h".
6572         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
6573         pass it to alpha_supply_ routines.  Make REGS const.
6574         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
6575         pass it to alpha_fill_ routines.
6576         * alphabsd-tdep.h (struct regcache): Add forward declaration.
6577         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
6578         alphabsd_fill_fpreg): Update prototypes.
6579
6580         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6581         fill_fpregset, alphabsd_fetch_inferior_registers,
6582         alphabsd_store_inferior_registers): Pass current_regcache to
6583         alphabsd_supply/fill_ routines.
6584
6585         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
6586         dependencies.
6587
6588 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6589
6590         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
6591         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
6592         instead of current_regcache.
6593         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
6594         REGCACHE parameter, pass it to supply_ routines.
6595         (aix_thread_fetch_registers): Pass current_regcache to
6596         fetch_regs_user_thread and fetch_regs_kernel_thread.
6597
6598         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
6599         Add REGCACHE parameter, use it instead of current_regcache.
6600         Call regcache_valid_p instead of register_cached.
6601         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
6602         Also, pass REGCACHE to fill_ routines.
6603         (aix_thread_store_registers): Pass current_regcache to
6604         store_regs_user_thread and store_regs_kernel_thread.
6605
6606 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6607
6608         * m32r-linux-nat.c (supply_gregset): Do not modify contents
6609         pointed to by GREGSETP.
6610
6611 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6612
6613         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
6614         of regcache_raw_read_signed.
6615         (fill_fpregset): Use regcache_raw_collect instead of
6616         regcache_raw_read.
6617
6618 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
6619
6620         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
6621         point arguments, test explicitly for use of the EABI32 ABI
6622         instead of inferring this condition from tests on register
6623         sizes.
6624
6625 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
6626
6627         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
6628         prior to allocating its location.
6629
6630 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
6631
6632         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
6633         based on mips_abi_regsize() whose result is known in advance.
6634         (mips_o64_push_dummy_call): Likewise.
6635
6636 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
6637
6638         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
6639         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
6640
6641         * mips-linux-nat.c: Include "gregset.h".
6642         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
6643         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
6644         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
6645         fill_fpregset): Move to mips-linux-nat.c.
6646
6647         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
6648
6649 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
6650
6651         * regcache.c (deprecated_read_register_gen): Remove, inline ...
6652         (read_register): ... here.
6653         (deprecated_write_register_gen): Remove, inline ...
6654         (write_register): ... here.
6655         * regcache.h (deprecated_read_register_gen): Remove prototype.
6656         (deprecated_write_register_gen): Likewise.
6657
6658         * remote-sim.c (gdbsim_store_register): Replace call to
6659         deprecated_read_register_gen with regcache_cooked_read.
6660         * target.c (debug_print_register): Replace calls to
6661         deprecated_read_register_gen and read_register with
6662         regcache_cooked_read.
6663
6664 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
6665
6666         * hpux-thread.c (hpux_thread_store_registers): Use
6667         regcache_raw_collect, not regcache_raw_read.
6668         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
6669         not regcache_raw_write.
6670
6671 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
6672
6673         * gdbarch.sh: Remove deprecated_register_byte.
6674         * gdbarch.c, gdbarch.h: Regenerate.
6675         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
6676         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
6677
6678         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
6679         * regcache.c (regcache_valid_p): Allow to query cooked registers in
6680         read-only register caches.  Make REGCACHE parameter const.
6681         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
6682
6683         * mi/mi-main.c (old_regs): Remove.
6684         (mi_setup_architecture_data, _initialize_mi_main): Remove.
6685         (register_changed_p): Reimplement to compare two register caches.
6686         (mi_cmd_data_list_changed_registers): Update caller.
6687         * mi/mi-main.h (mi_setup_architecture_data): Remove.
6688         * mi/mi-interp.c (mi_interpreter_init): Do not call
6689         mi_setup_architecture_data.
6690
6691 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
6692
6693         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
6694         inline definition at the places the macros are used.
6695         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
6696
6697 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
6698
6699         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
6700         "gdb_string.h".
6701         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
6702         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
6703         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
6704         (rs6000_aix_regset_from_core_section): New function.
6705         (rs6000_aix_init_osabi): Register it.
6706         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
6707         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
6708         * rs6000-nat.c (CoreRegs): Do not define type.
6709         (fetch_core_registers, rs6000_core_fns): Remove.
6710         (_initialize_core_rs6000): Do not register it.  Rename to ...
6711         (_initialize_rs6000_nat): ... this.
6712         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
6713
6714 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
6715
6716         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
6717         (dwarf2_read_address): Sign extend return address as required by
6718         target architecture.
6719
6720 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
6721
6722         * solib-frv.c (lm_base): Bail out if the main executable has
6723         not been relocated.
6724
6725 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6726
6727         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
6728         of FPCR register in fpregset.
6729
6730 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
6731
6732         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
6733         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
6734
6735 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6736
6737         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
6738         * rs6000-nat.c (rs6000_wait): New function.
6739         (_initialize_core_rs6000): Install it as to_wait target method.
6740         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
6741
6742 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6743
6744         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
6745         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
6746         * rs6000-nat.c (super_create_inferior): New variable.
6747         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
6748         original version of create_inferior via super_create_inferior.
6749         (_initialize_core_rs6000): Install to_create_inferior target method.
6750
6751 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6752
6753         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
6754         (aix_thread_xfer_partial): ... this.
6755         (init_aix_thread_ops): Install to_xfer_partial instead
6756         of deprecated_xfer_memory target method.
6757
6758         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
6759         and inftarg.o, add inf-ptrace.o.
6760         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
6761         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
6762         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
6763         (fetch_inferior_registers): Rename to ...
6764         (rs6000_fetch_inferior_registers): ... this.  Make static.
6765         (store_inferior_registers): Rename to ...
6766         (rs6000_store_inferior_registers): ... this.  Make static.
6767         (read_word, child_xfer_memory): Remove.
6768         (rs6000_xfer_partial): New function.
6769         (kernel_u_size): Remove.
6770         (_initialize_core_rs6000): Add inf_ptrace-based target.
6771         * Makefile.in (rs6000-nat.o): Update dependencies.
6772
6773 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6774
6775         * inf-ptrace.c: Include "gdb_stdint.h".
6776         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
6777         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
6778         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
6779         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
6780         (inf_ptrace_store_register): Likewise.
6781         * Makefile.in (inf-ptrace.o): Update dependencies.
6782
6783 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6784
6785         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
6786         * configure.tgt (rs6000-*-*): Likewise.
6787         * config/rs6000/aix4.mh: Delete file.
6788         * config/rs6000/aix4.mt: Delete file.
6789         * config/rs6000/rs6000.mh: Delete file.
6790         * config/rs6000/rs6000.mt: Delete file.
6791
6792         * config/powerpc/nm-aix.h: Delete file.
6793         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
6794
6795 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6796
6797         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
6798         Remove obsolete part of comment.
6799         (store_regs_user_thread): Use uint32_t temporaries when calling
6800         fill_sprs32.
6801         (store_regs_kernel_thread): Likewise.  Add assertion to verify
6802         correct size of struct ptsprs members.
6803         (aix_thread_xfer_memory): Fix type of myaddr.
6804         (aix_thread_extra_thread_info): Fix compiler warning.
6805         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
6806         (fetch_register, store_register): Adapt callers.
6807
6808 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
6809
6810         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
6811
6812 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
6813
6814         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
6815         and "regcache.h".
6816         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
6817         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
6818         (alpha_linux_regset_from_core_section): New function.
6819         (alpha_linux_init_abi): Install it.
6820         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
6821         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
6822         <sys/procfs.h>, and "gregset.h".
6823         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
6824         Move from config/alpha/nm-linux.h.
6825         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
6826         from alpha-nat.c.
6827         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
6828         * alpha-nat.c: Remove #ifdef __linux__ section.
6829         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
6830         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
6831         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
6832         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
6833         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
6834         (NATDEPFILES): Remove alpha-nat.o.
6835         * config/alpha/nm-linux.h: Delete file.
6836         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
6837         * Makefile.in (alpha-linux-nat.o): Update dependencies.
6838         (alpha-linux-tdep.o): Likewise.
6839
6840 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
6841
6842         * mips-linux-nat.c: No longer include "gdbcore.h".
6843         (mips_linux_register_addr): Move from mips-linux-tdep.c.
6844         (mips64_linux_register_addr): Likewise.
6845         (mips_linux_register_u_offset): Call mips_linux_register_addr or
6846         mips64_linux_register_addr instead of register_addr.
6847         * mips-linux-tdep.c (mips_linux_register_addr,
6848         mips64_linux_register_addr): Move to mips-linux-nat.c.
6849         (register_addr): Remove.
6850         (register_addr_data, init_register_addr_data): Remove.
6851         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
6852         (set_mips_linux_register_addr): Remove.
6853         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
6854         * Makefile.in (mips-linux-nat.o): Update dependencies.
6855
6856 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
6857
6858         * linux-nat.c (linux_register_u_offset): Remove.
6859         (linux_target_install_ops): New function.
6860         (linux_target): Use it.
6861         (linux_trad_target): New function.
6862         * linux-nat.h (linux_trad_target): Declare.
6863
6864         * alpha-linux-nat.c: Include "gdbcore.h".
6865         (alpha_linux_register_u_offset): New function.
6866         (_initialize_alpha_linux_nat): Use linux_trad_target.
6867
6868         * mips-linux-nat.c: Include "gdbcore.h".
6869         (mips_linux_register_u_offset): New function.
6870         (_initialize_mips_linux_nat): Use linux_trad_target.
6871
6872         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6873         * config/arm/nm-linux.h: Delete file.
6874
6875         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
6876         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
6877
6878         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6879         * config/ia64/nm-linux.h: Delete file.
6880
6881         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6882         * config/m32r/nm-linux.h: Delete file.
6883
6884         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6885         * config/m68k/nm-linux.h: Delete file.
6886
6887         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6888         * config/pa/nm-linux.h: Delete file.
6889
6890         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6891         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
6892         * config/powerpc/nm-linux.h: Delete file.
6893
6894         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
6895         * config/s390/nm-linux.h: Delete file.
6896
6897         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6898         * config/sparc/linux64.mh (NAT_FILE): Likewise.
6899         * config/sparc/nm-linux.h: Delete file.
6900
6901         * Makefile.in (alpha-linux-nat.o): Update dependencies.
6902         (mips-linux-nat.o): Likewise.
6903
6904 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
6905
6906         * core-aout.c: Delete file.
6907         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
6908         (core-aout.o): Delete rule.
6909         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
6910
6911         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
6912
6913         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
6914         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
6915         KERNEL_U_ADDR): Remove.
6916
6917         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
6918         (cannot_fetch_register, cannot_store_register): Remove.
6919         (fetch_register): Inline cannot_fetch_register and register_addr.
6920         (store_register): Inline cannot_store_register and register_addr.
6921         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
6922         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6923         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
6924         Remove.
6925
6926         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
6927         (fetch_register): Inline register_addr.
6928         (store_register): Inline register_addr.
6929         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
6930         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6931         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
6932
6933         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
6934         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
6935         REGISTER_U_ADDR): Remove.
6936
6937         * hppa-linux-nat.c (register_addr): Rename to ...
6938         (hppa_linux_register_addr): ... this.  Make static.
6939         (fetch_register, store_register): Adapt callers.
6940         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6941
6942         * ppc-linux-nat.c (kernel_u_size): Remove.
6943         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6944
6945         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6946         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6947         (NAT_FILE): Remove.
6948         * config/vax/nm-vax.h: Delete file.
6949
6950 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
6951
6952         * MAINTAINERS (Write After Approval): Add myself.
6953
6954 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
6955
6956         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6957         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6958         (m68k_linux_sigcontext_reg_offset): Fix typo.
6959         (target_is_uclinux): New.
6960         (m68k_linux_inferior_created): New.
6961         (m68k_linux_get_sigtramp_info):  Check for uClinux or
6962         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
6963         uClinux.
6964         (_initialize_m68k_linux_tdep): Register
6965         m68k_linux_inferior_created.
6966
6967 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
6968
6969         * win32-nat.c (win32_detach): Remove delete_command call.
6970         Resume inferior with win32_resume instead of win32_continue.
6971
6972 2007-04-19  Jerome Guitton  <guitton@adacore.com>
6973
6974         * ser-mingw.c (fd_is_file): New function.
6975         (file_select_thread): New function.
6976         (ser_console_wait_handle): Add special handling for files.
6977
6978 2007-04-18  Denis Pilat  <denis.pilat@st.com>
6979
6980         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6981         when missing from DW_TAG_subrange_type.  Remove the handling of null
6982         return from die_type.
6983
6984 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
6985
6986         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6987         change to rearrange some brackets.
6988         (mips_n32n64_push_dummy_call): Likewise.
6989         (mips_o32_push_dummy_call): Likewise.
6990         (mips_o64_push_dummy_call): Likewise.
6991
6992 2007-04-18  Denis Pilat  <denis.pilat@st.com>
6993
6994         * infcmd.c (post_create_inferior): Start with a call to 
6995         target_terminal_ours.
6996
6997 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
6998
6999         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7000         brackets.
7001         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
7002         expressions.
7003         (mips_o32_push_dummy_call): Likewise.
7004         (mips_o64_push_dummy_call): Likewise.
7005
7006 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
7007
7008         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7009         comment.
7010
7011 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
7012
7013         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7014         comment.
7015         (mips_o32_push_dummy_call): Likewise.
7016
7017 2007-04-17  Andreas Schwab  <schwab@suse.de>
7018
7019         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7020         sal to be bigger than the end of the function.
7021
7022 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
7023             Nigel Stephens  <nigel@mips.com>
7024
7025         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7026         argument alignment requirements when calculating stack space
7027         required.  When aligning an arg register to eight bytes
7028         boundary, align stack_offset too.  Write floating-point
7029         arguments to the appropriate integer register if need go there.
7030         (mips_o64_push_dummy_call): Likewise.
7031
7032 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
7033
7034         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7035         "sig" arguments, add "regcache" argument.
7036         * gdbarch.c, gdbarch.h: Regenerate.
7037
7038         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7039         (handle_inferior_event): Call remove_single_step_breakpoints directly
7040         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7041
7042         * alpha-tdep.c (alpha_software_single_step): Update argument list.
7043         Remove handling of !insert_breakpoints_p case.
7044         * arm-tdep.c (arm_software_single_step): Likewise.
7045         * cris-tdep.c (cris_software_single_step): Likewise.
7046         * mips-tdep.c (mips_software_single_step): Likewise.
7047         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7048         * sparc-tdep.c (sparc_software_single_step): Likewise.
7049         * spu-tdep.c (spu_software_single_step): Likewise.
7050
7051         * alpha-tdep.h (alpha_software_single_step): Update prototype.
7052         * mips-tdep.h (mips_software_single_step): Likewise.
7053         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7054         * sparc-tdep.h (sparc_software_single_step): Likewise.
7055
7056 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
7057
7058         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7059         when removing single-step breakpoints.
7060
7061 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
7062
7063         * varobj.h (varobj_set_frozen): New
7064         (varobj_get_frozen): New.
7065         (varobj_update): New parameter explicit.
7066         * varobj.c (struct varobj): New fields frozen
7067         and not_fetched.
7068         (varobj_set_frozen, varobj_get_frozen): New.
7069         (install_new_value): Don't fetch values for 
7070         frozen variable object, or children thereof.  Allow
7071         a frozen variable object to have non-fetched value.
7072         (varobj_update): Allow updating child variables.
7073         Don't traverse frozen children.
7074         (new_variable): Initialize the frozen field.
7075         (c_value_of_variable): Return NULL for frozen
7076         variable without any value yet. 
7077         * mi/mi-cmd-var.c (varobj_update_one): New parameter
7078         'explicit'.
7079         (mi_cmd_var_create): Output the 'frozen' field,
7080         as soon as testsuite is adjusted to expect that field.
7081         (mi_cmd_var_set_frozen): New.
7082         (mi_cmd_var_update): Pass the 'explicit' parameter to
7083         varobj_update_one.
7084         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7085         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7086         
7087 2007-04-13  Paul Brook  <paul@codesourcery.com>
7088
7089         * target-descriptions.c (tdesc_named_type): Add ieee_single and
7090         ieee_double.
7091         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7092
7093 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7094
7095         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7096         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7097         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7098         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7099         * Makefile.in: Remove references to deleted files.
7100         * README: Do not mention deleted ROM monitor interfaces.
7101         * defs.h (enum language): Delete language_scm.
7102         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7103         (dump_subexp_body_standard): Likewise.
7104         * parse.c (operator_length_standard): Likewise.
7105         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7106         * remote-mips.c: Do not include remote-utils.h.
7107         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
7108         throughout.
7109         * value.c: Do not include scm-lang.h.
7110         (unpack_long): Delete scm_unpack call.
7111         * config/h8300/h8300.mt, config/mips/embed.mt,
7112         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7113         config/sh/embed.mt, config/sh/linux.mt: Remove references to
7114         deleted files.
7115         * NEWS: Mention removed files.
7116
7117 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7118
7119         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7120         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7121
7122 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7123
7124         * NEWS: Mention removal of HP aCC support.
7125
7126 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7127
7128         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7129         first entry for static executables.
7130         (breakpoint_addr): Delete unused variable.
7131         (elf_locate_base): Search for _r_debug in static executables.
7132         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
7133         also.
7134
7135 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7136
7137         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7138         (bpstat_what, print_one_breakpoint, allocate_bp_location)
7139         (mention): Remove bp_through_sigtramp support.
7140         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7141
7142 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7143
7144         * breakpoint.c (bpstat_what): Give step-resume higher priority than
7145         shlib events.
7146
7147 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
7148
7149         * infrun.c: Doc fixes.
7150         (handle_inferior_event): Clarify debug message.
7151         (insert_step_resume_breakpoint_at_sal): Print a debug message.
7152
7153 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
7154
7155         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7156
7157 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
7158
7159         * config/m68k/tm-monitor.h: Delete file.
7160         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7161         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7162         call moved to ...
7163         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7164         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7165
7166 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
7167
7168         * gdbarch.sh (software_single_step): Change the return type
7169         from void to int and reformatted some comments to <= 80
7170         columns.
7171         * gdbarch.c, gdbarch.h: Regenerated.
7172         * alpha-tdep.c (alpha_software_single_step): Likewise.
7173         * alpha-tdep.h (alpha_software_single_step): Likewise.
7174         * arm-tdep.c (arm_software_single_step): Likewise.
7175         * cris-tdep.c (cris_software_single_step): Likewise.
7176         * mips-tdep.c (mips_software_single_step): Likewise.
7177         * mips-tdep.h (mips_software_single_step): Likewise.
7178         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7179         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7180         * sparc-tdep.c (sparc_software_single_step): Likewise.
7181         * sparc-tdep.h (sparc_software_single_step): Likewise.
7182         * spu-tdep.c (spu_software_single_step): Likewise.
7183         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7184         and act accordingly.
7185
7186 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
7187
7188         * configure.ac (build_warnings): Add -Wno-char-subscripts.
7189         * configure: Regenerate.
7190         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7191
7192 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7193
7194         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7195
7196 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7197
7198         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7199         macros.
7200         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7201         distinct on the TYPE_STUB_SUPPORTED debug targets.
7202         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7203
7204 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
7205
7206         * sparc-tdep.c (X_RS2): New macro.
7207         (sparc_skip_stack_check): New function.
7208         (sparc_analyze_prologue): Adjust PC past stack probing
7209         sequence if necessary.
7210
7211 2007-04-10  Andreas Schwab  <schwab@suse.de>
7212
7213         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7214         register.
7215
7216 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
7217
7218         * breakpoint.c (gdb_breakpoint_query): Really return an
7219         enum gdb_rc.
7220         (gdb_breakpoint): Likewise.
7221         * thread.c (gdb_list_thread_ids): Likewise.
7222         (gdb_thread_select): Likewise.
7223         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7224         (mi_cmd_thread_list_ids): Remove bogus initialization.
7225
7226 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
7227
7228         * Makefile.in (SFILES): Remove hpacc-abi.c.
7229         (COMMON_OBS): Remove hpacc-abi.o.
7230         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7231         (hpacc-abi.o, hpread.o): Delete rules.
7232         * somread.c: Delete extern declarations from hpread.c.
7233         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7234         (som_symfile_finish): Do not call hpread_symfile_finish.
7235         (som_symfile_init): Do not call hpread_symfile_init.
7236         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7237         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7238         * hpacc-abi.c, hpread.c: Deleted.
7239
7240 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
7241
7242         * solib-svr4.c (enable_break): Simplify return value.
7243         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7244
7245 2007-04-10  Andreas Schwab  <schwab@suse.de>
7246
7247         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7248         l_ld_size, l_next_size, l_prev_size, l_name_size.
7249
7250         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7251         to extract addresses from link map.
7252         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7253         (LM_NEXT): Likewise.
7254         (LM_NAME): Likewise.
7255         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7256         (elf_locate_base): Likewise.
7257         (open_symbol_file_object): Likewise.
7258         (svr4_fetch_objfile_link_map): Likewise.
7259         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7260         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7261         l_ld_size.
7262         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7263         (svr4_lp64_fetch_link_map_offsets): Likewise.
7264
7265         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7266         removed members.  Set l_ld_offset to -1 if not present.
7267
7268 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
7269         
7270         Pass stderr of program run with "target remote |"
7271         via gdb_stderr.
7272         * serial.c (serial_open): Set error_fd to -1.
7273         * serial.h (struct serial): New field error_fd.
7274         (struct serial_opts): New field avail.
7275         * ser-pipe.c (pipe_open): Create another pair
7276         of sockets.  Pass stderr to gdb.
7277         * ser-mingw.c (pipe_windows_open): Pass
7278         PEX_STDERR_TO_PIPE to pex_run.  Initialize
7279         sd->error_fd.
7280         (pipe_avail): New.
7281         (_initialize_ser_windows): Hook pipe_avail.
7282         * ser-base.c (generic_readchar): Check if there's
7283         anything in stderr channel and route that to gdb_stderr.
7284
7285 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
7286
7287         * dbxread.c (read_ofile_symtab): Move current_objfile
7288         clearing to after end_stabs.
7289
7290 2007-04-01  Andreas Schwab  <schwab@suse.de>
7291
7292         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7293         gdbarch instead of current_gdbarch.
7294
7295 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
7296
7297         * varobj.c (varobj_create): Keep varobj value
7298         NULL when evaluating the type.
7299         
7300 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
7301
7302         * NEWS: Mention new Windows CE support.
7303
7304 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
7305
7306         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
7307         the obsoletion stanza.
7308         * NEWS: Mention deleted targets.
7309
7310         * config/sh/tm-wince.h: Remove.
7311         * config/sh/wince.mt: Remove.
7312         * config/mips/tm-wince.h: Remove.
7313         * config/mips/wince.mt: Remove.
7314
7315         * wince.c: Remove.
7316         * wince-stub.c: Remove.
7317         * wince-stub.h: Remove.
7318         * Makefile.in (wince.o): Remove rule.
7319         (wince-stub.o): Likewise.
7320
7321         * mips-tdep.c (mips_next_pc): Make static.
7322         * mips-tdep.h (mips_next_pc): Remove declaration.
7323         * arm-tdep.c (arm_pc_is_thumb): Make static.
7324         (thumb_get_next_pc): Likewise.
7325         (arm_get_next_pc): Likewise.
7326         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7327         (arm_pc_is_thumb): Likewise.
7328         (thumb_get_next_pc): Likewise.
7329         (arm_get_next_pc): Likewise.
7330
7331 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7332
7333         * MAINTAINERS: Remove d10v entry.
7334         * Makefile.in (SFILES): Remove dwarfread.c.
7335         (COMMON_OBS): Remove dwarfread.o.
7336         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7337         (remote-est.o, rom68k-rom.o): Delete.
7338         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7339         target est, target rom68k, and DWARF 1.
7340         * configure.tgt: Mark d10v as removed.
7341         * dwarf2read.c: Doc update.
7342         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7343         and lnsize.
7344         (elf_locate_sections): Do not set them.
7345         (elf_symfile_read): Do not call dwarf_build_psymtabs.
7346         * symfile.h (dwarf_build_psymtabs): Delete prototype.
7347         * config/m68k/monitor.mt (TDEPFILES): Prune.
7348         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7349         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7350
7351 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7352
7353         * doublest.c (convert_floatformat_to_doublest): Use
7354         floatformat_classify.
7355         (floatformat_is_nan): Rename to...
7356         (floatformat_classify): ...this.  Return more information.
7357         * doublest.h (enum float_kind): New.
7358         (floatformat_is_nan): Replace prototype...
7359         (floatformat_classify): ...with this one.
7360         * valprint.c (print_floating): Use floatformat_classify.  Handle
7361         infinity.
7362
7363 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7364
7365         * README: Mention ISO C library requirement.
7366
7367 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7368
7369         * Makefile.in (SFILES): Remove nlmread.c.
7370         (COMMON_OBS): Remove nlmread.o.
7371         (nlmread.o): Delete rule.
7372         * README: Delete reference to remote-st.c.
7373         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7374         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7375         GDB_OSABI_LYNXOS.
7376         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7377         (_initialize_i386_tdep): Do not reference them.
7378         * nlmread.c: Delete file.
7379         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7380         * target.c: Doc update.
7381         * thread.c: Delete commented include.
7382         * config/alpha/tm-alpha.h: Doc update.
7383
7384 2007-03-30  Chris Dearman  <chris@mips.com>
7385
7386         * utils.c (string_to_core_addr): Comment typo.
7387
7388 2007-03-30  Chris Dearman  <chris@mips.com>
7389
7390         * mips-tdep.c: Comment typo.
7391
7392 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
7393
7394         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7395         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7396         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7397         * config/powerpc/nm-ppc64-linux.h: Remove file.
7398         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7399         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7400         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7401         * infptrace.c (call_ptrace): Likewise.
7402         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7403         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7404         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7405         (store_register): Likewise.
7406
7407 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
7408
7409         * Makefile.in (varobj.o): Add missing dependency.
7410
7411 2007-03-29  Michael Snyder  <msnyder@access-company.com>
7412
7413         * MAINTAINERS: Update my email address.
7414
7415 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
7416
7417         Add support for exception handling with multiple versions of
7418         the Ada runtime:
7419         * ada-lang.c: Update general comments on how Ada exception catchpoints
7420         are implemented.
7421         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7422         (__gnat_raise_nodefer_with_msg): Delete.
7423         (ada_unhandled_exception_name_addr_ftype): New type.
7424         (exception_support_info): New type.
7425         (ada_unhandled_exception_name_addr): Add forward declaration.
7426         (ada_unhandled_exception_name_addr_from_raise): Likewise.
7427         (default_exception_support_info): New constant.
7428         (exception_support_info_fallback): Likewise.
7429         (exception_info): New global variable.
7430         (ada_exception_support_info_sniffer): New function.
7431         (ada_executable_changed_observer): Likewise.
7432         (ada_unhandled_exception_name_addr_from_raise): Renamed from
7433         ada_unhandled_exception_name_addr.
7434         (ada_unhandled_exception_name_addr): Reimplement to match the
7435         latest Ada runtime implementation.
7436         (error_breakpoint_runtime_sym_not_found): Delete.
7437         (ada_exception_sym_name): Get the exception sym name from
7438         exception_info rather than hardcoding it.
7439         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7440         Update error handling.
7441         * Makefile.in (ada-lang.o): Add dependency on observer.h.
7442
7443 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
7444
7445         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7446         (remote-st.o, uw-thread.o): Delete.
7447         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7448         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7449         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7450         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7451         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7452         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7453         rs6000-*-lynxos* to an obsoletion stanza.
7454         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7455         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7456         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
7457         i[34567]86-*-netware*.
7458         * NEWS: Mention deleted targets.
7459
7460         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7461         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7462         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7463         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7464         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7465         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7466         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7467         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7468         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7469         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7470         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
7471         config/rs6000/tm-rs6000ly.h: Delete files.
7472
7473 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
7474
7475         * defs.h (deprecated_registers_changed_hook): Delete declaration.
7476         * interps.c (clear_interpreter_hooks): Do not clear
7477         deprecated_registers_changed_hook.
7478         * regcache.c (registers_changed): Do not call it.
7479         * top.c (deprecated_registers_changed_hook): Do not define it.
7480         * mi/mi-interp.c (mi_command_loop): Do not clear it.
7481         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
7482         (tui_remove_hooks): Do not remove it.
7483         (tui_selected_frame_level_changed_hook): Check for negative level.
7484         Use get_selected_frame.
7485         (tui_registers_changed_hook): Deleted.
7486
7487 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
7488
7489         * stabsread.c (add_undefined_type): Add extra parameter.
7490         Now handles nameless types separately.
7491         (struct nat): New type.
7492         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
7493         New static variables.
7494         (read_type): Update calls to add_undefined_type.
7495         (add_undefined_type_noname): New function.
7496         (add_undefined_type_1): Renames from add_undefined_type.
7497         (cleanup_undefined_types_noname): New function.
7498         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
7499         (cleanup_undefined_types): New handles nameless types separately.
7500         (_initialize_stabsread): Initialize our new static constants.
7501
7502 2007-03-29  Denis Pilat  <denis.pilat@st.com>
7503
7504         * configure.ac: Test for signal.h.
7505         * configure, config.in: Regenerate.
7506
7507 2007-03-29  Denis Pilat  <denis.pilat@st.com>
7508
7509         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
7510         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
7511
7512 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
7513
7514         * arm-wince-tdep.c: New.
7515         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
7516         (MT_CFLAGS): Delete.
7517         (TM_CLIBS): Delete.
7518         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
7519         solib-legacy.o, solib-svr4.o, and remove wince.o.
7520         * configure.tgt (arm*-*-mingw32ce*): Add.
7521         * signals/signals.c [HAVE_SIGNAL_H]: Check.
7522         (do_target_signal_to_host): Silence 'not used' warning.
7523         * config/arm/tm-wince.h: Remove.
7524
7525 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
7526
7527         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
7528         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
7529
7530         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
7531         * config/ia64/tm-linux.h: Remove file.
7532         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
7533         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
7534         legacy_pc_in_sigtramp.
7535         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
7536         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
7537         Remove func_name argument.
7538         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
7539
7540         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
7541         * target.c (update_current_target): Add to_have_steppable_watchpoint.
7542         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
7543         (HAVE_STEPPABLE_WATCHPOINT): Define.
7544
7545         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
7546         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
7547         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
7548         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
7549         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
7550         target_insert_watchpoint, target_remove_watchpoint): Remove.
7551         (FETCH_INFERIOR_REGISTERS): Define.
7552         * ia64-linux-nat.c (ia64_register_addr): Make static.
7553         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
7554         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
7555         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
7556         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
7557         (ia64_linux_stopped_by_watchpoint): Make static.
7558         (ia64_linux_can_use_hw_breakpoint): New function.
7559         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
7560         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
7561         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
7562
7563 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
7564
7565         * linespec.c: Include language.h.
7566         (find_methods): Add language parameter.  Call
7567         lookup_symbol_in_language.  Pass language down.
7568         (add_matching_methods): Likewise.  Call
7569         lookup_symbol_in_language.
7570         (add_constructors): Likewise.
7571         (find_method): Pass sym_class to collect_methods.
7572         (collect_methods): Add sym_class parameter.  Pass language
7573         down.
7574         * symtab.c (lookup_symbol): Rename to ...
7575         (lookup_symbol_in_language): ... this.  Add language
7576         parameter.  Use passed language instead of current_language.
7577         (lookup_symbol): New as wrapper around
7578         lookup_symbol_in_language.
7579         (lookup_symbol_aux): Add language parameter.  Use passed
7580         language instead of current_language.
7581         (search_symbols): Indent.
7582         * symtab.h (enum language): Forward declare.
7583         (lookup_symbol_in_language): Declare.
7584         (lookup_symbol): Update description.
7585         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
7586         * ada-lang.c (restore_language): Remove.
7587         (lookup_symbol_in_language): Remove.
7588
7589 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
7590
7591         * breakpoint.c (bpstat_num): Add int *num parameter.
7592         * breakpoint.h (bpstat_num): Likewise.
7593         * infcmd.c (continue_command): Adjust to new bpstat_num
7594         interface.
7595         (program_info): Likewise.
7596
7597 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
7598
7599         * config/sh/tm-sh.h: Remove file.
7600         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
7601         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
7602         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7603         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
7604
7605 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
7606
7607         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
7608         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
7609         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
7610         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
7611         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
7612         sequence if target_shortname is "remote".
7613
7614 2007-03-27  Anton Blanchard  <anton@samba.org>
7615
7616         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
7617         instead of wordsize when looking for the LR in a stack frame.
7618
7619 2007-03-27  Andreas Schwab  <schwab@suse.de>
7620             Daniel Jacobowitz  <dan@codesourcery.com>
7621
7622         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
7623         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
7624         argument.  Update all callers.
7625         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
7626         (dwarf2_frame_set_eh_frame_regnum): Rename to...
7627         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
7628         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
7629         (dwarf2_frame_set_adjust_regnum): ...this.
7630         (dwarf2_frame_eh_frame_regnum): Delete prototype.
7631         * rs6000-tdep.c: Include "dwarf2-frame.h".
7632         (rs6000_adjust_frame_regnum): Define.
7633         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
7634         Register rs6000_adjust_frame_regnum.
7635
7636         * Makefile.in (rs6000-tdep.o): Update dependencies.
7637
7638 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
7639
7640         * Makefile.in: Add support for a "pdf" target.
7641
7642 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
7643
7644         * amd64-tdep.c (amd64_init_frame_cache): New function.
7645         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
7646
7647 2007-03-26  Nigel Stephens  <nigel@mips.com>
7648             Maciej W. Rozycki  <macro@mips.com>
7649
7650         * ui-out.c (ui_out_field_core_addr): Truncate address to
7651         TARGET_ADDR_BIT size before printing.
7652
7653 2007-03-22  Nigel Stephens  <nigel@mips.com>
7654             Maciej W. Rozycki  <macro@mips.com>
7655
7656         * remote-mips.c (mips_xfer_memory): Update prototype.
7657
7658 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
7659
7660         * symfile.h: #include "symtab.h"
7661
7662 2007-03-22  Denis Pilat  <denis.pilat@st.com>
7663
7664         * utils.c (pagination_on_command, pagination_off_command):
7665         Remove useless prototypes.
7666
7667 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7668
7669         Fix PR pascal/2232.
7670         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
7671         instead of TYPE_NAME for object base class name.
7672
7673
7674 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
7675
7676         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
7677         Specify frame type in calls to frame_func_unwind().
7678
7679 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7680
7681         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
7682         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
7683         (refine_prologue_limit): Delete.
7684         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
7685         Assume lim_pc is set.  Correct check for incomplete prologues.
7686         Do not skip clobbers of the frame pointer.
7687         * symtab.c (skip_prologue_using_sal): Fail if there is only one
7688         sal.
7689
7690 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
7691
7692         * frame.c (frame_pop): Check to see whether there's a frame to
7693         which we can pop first.
7694
7695 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
7696
7697         * MAINTAINERS (Write After Approval): Add myself.
7698
7699 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
7700
7701         * infrun.c (breakpoints_failed): Remove unnecessary variable.
7702         (handle_inferior_event): Remove unnecessary braces.
7703         * breakpoint.c (bpstat_what): Remove wrong comment.
7704
7705 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
7706
7707         * spu-tdep.c (spu_in_function_epilogue_p): New function.
7708         (spu_gdbarch_init): Install it.
7709
7710 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
7711
7712         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
7713         object types, not 0.
7714
7715 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
7716
7717         * spu-tdep.c (spu_frame_align): New function.
7718         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
7719
7720 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
7721
7722         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
7723         (spu_software_single_step): Likewise.
7724         (spu_read_pc, spu_write_pc): New functions.
7725         (spu_gdbarch_init): Install them.
7726
7727 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
7728
7729         * cli/cli-dump.c (struct callback_data): load_offset needs to 
7730         have signed long type.
7731
7732 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
7733
7734         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
7735         Revert the previous change that had some unexpected side-effects
7736         on mips32.
7737         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
7738         function to get the address of the calling instruction.
7739
7740 2007-03-07  Denis Pilat  <denis.pilat@st.com>
7741
7742         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
7743         get_selected_frame by deprecated_safe_get_selected_frame.
7744
7745 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
7746
7747         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
7748         "gdb_string.h".  Don't include "nbsd-tdep.h".
7749         (SIZEOF_STRUCT_REG): Remove.
7750         (SHNBSD_SIZEOF_GREGS): New.
7751         (shnbsd_supply_gregset, shnbsd_collect_gregset)
7752         (shnbsd_regset_from_core_section): New functions.
7753         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
7754         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
7755         shnbsd_supply_gregset, shnbsd_collect_gregset.
7756         (shnbsd_gregset): New variable.
7757         (shnbsd_init_abi): Set regset_from_core_section.
7758         (GDB_OSABI_NETBSD_CORE): New define.
7759         (shnbsd_core_osabi_sniffer): New function.
7760         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
7761         * Makefile.in (shnbsd-tdep.o): Update dependencies.
7762         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
7763         nbsd-tdep.o.
7764         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
7765
7766 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
7767
7768         * gdbtypes.c (replace_type): Fix typo that caused us to not update
7769         length of the types referenced by the new type CV ring.
7770
7771 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
7772
7773         * frame.c (frame_pop, frame_observer_target_changed): Call
7774         reinit_frame_cache.
7775         (flush_cached_frames): Rename to reinit_frame_cache and delete
7776         old implementation.
7777         * frame.h (flush_cached_frames): Delete prototype and update comment.
7778
7779         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
7780         reinit_frame_cache instead of flush_cached_frames.  Do not call
7781         select_frame after reinit_frame_cache.
7782         * corelow.c (core_open): Likewise.
7783         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
7784         * infrun.c (prepare_to_proceed, context_switch)
7785         (handle_inferior_event): Likewise.
7786         * linux-fork.c (fork_load_infrun_state): Likewise.
7787         * ocd.c (ocd_start_remote): Likewise.
7788         * remote-e7000.c (e7000_start_remote): Likewise.
7789         * remote-mips.c (device): Likewise.
7790         * thread.c (switch_to_thread): Likewise.
7791         * tracepoint.c (finish_tfind_command): Likewise.
7792         * gdbarch.c: Regenerated.
7793
7794 2007-02-28  Jerome Guitton  <guitton@adacore.com>
7795             Joel Brobecker  <brobecker@adacore.com>
7796
7797         * gdbtypes.c (check_typedef): Do not replace stub type if
7798         the resolved type is not defined in the same objfile.
7799
7800 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
7801
7802         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
7803
7804 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
7805
7806         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
7807         symbol for Ada units when the symbol is defined using 't' rather
7808         than 'Tt' as symbol descriptor.
7809
7810 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
7811
7812         * config/mips/tm-nbsd.h: Delete file.
7813         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7814         * config/sh/tm-nbsd.h: Delete file.
7815         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
7816
7817 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
7818
7819         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
7820         unused WRONG_PARAM value since it was recently deleted.
7821
7822 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
7823
7824         * varobj.c (varobj_update): Free temporary vectors.
7825
7826 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
7827
7828         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
7829         * config/powerpc/tm-linux.h: Delete file.
7830         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
7831         (PROCESS_LINENUMBER_HOOK): Do not undefine.
7832         (TEXT_SEGMENT_BASE): Do not redefine.
7833         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
7834         from config/rs6000/tm-rs6000.h.
7835         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7836         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
7837         (TEXT_SEGMENT_BASE): Remove.
7838         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
7839         (rs6000_in_solib_return_trampoline): Remove.
7840         (SKIP_TRAMPOLINE_CODE): Remove.
7841         (rs6000_skip_trampoline_code): Remove.
7842         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
7843         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7844         (FP0_REGNUM): Remove.
7845         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
7846         (rs6000_set_host_arch_hook): Remove.
7847         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
7848         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
7849         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
7850         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
7851         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
7852         * rs6000-nat.c: Include "rs6000-tdep.h".
7853         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
7854         (set_host_arch): Rename to ...
7855         (rs6000_create_inferior): ... this.  Make public.
7856         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
7857         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
7858         (rs6000_create_inferior): Remove.
7859         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
7860         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
7861         set_gdbarch_in_solib_return_trampoline, and
7862         set_gdbarch_skip_trampoline_code.
7863         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
7864         from config/rs6000/tm-rs6000.h.
7865
7866 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
7867
7868         * buildsym.c (record_producer): Do nothing if no producer is provided.
7869
7870 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
7871
7872         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
7873         to check changelist is non-NULL.  Call error if the frontend tries
7874         to update a non-root variable.
7875
7876         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
7877
7878 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
7879
7880         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
7881         (dwarf2_frame_sniffer): Update.
7882         (dwarf2_signal_frame_this_id): New function.
7883         (dwarf2_signal_frame_unwind): Use it.
7884         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
7885         * frame.c (frame_func_unwind): Add this_type argument.
7886         (get_frame_func): Update.
7887         (frame_unwind_address_in_block): Add this_type argument and check it.
7888         Fix a typo.
7889         (get_frame_address_in_block): Update.
7890         * frame.h (enum frame_type): Move higher in the file.
7891         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
7892         argument.
7893
7894         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
7895         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
7896         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
7897         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
7898         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
7899         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
7900         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
7901         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
7902         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
7903         frame_func_unwind and frame_unwind_address_in_block to specify
7904         the frame type.  Use frame_unwind_address_in_block instead of
7905         frame_pc_unwind in sniffers.
7906
7907 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
7908
7909         * frame.c (deprecated_selected_frame): Rename to...
7910         (selected_frame): ...this.  Make static.
7911         (get_selected_frame, select_frame): Update.
7912         * frame.h (deprected_select_frame): Delete.
7913         (deprecated_safe_get_selected_frame): Update comments.
7914
7915         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
7916         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
7917         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
7918         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
7919         tui/tui.c: Replace references to deprecated_selected_frame.
7920
7921 2007-02-27  Fred Fish  <fnf@specifix.com>
7922
7923         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
7924         directly decrement the stack pointer, accumulate their operand into 
7925         the stack offset, and mark the function as not being frameless.
7926
7927 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
7928
7929         * arch-utils.c (selected_byte_order): New.
7930         * arch-utils.h (selected_byte_order): New prototype.
7931         * remote-sim.c (gdbsim_open): Use selected_byte_order.
7932
7933 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
7934
7935         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
7936         (default_symfile_offsets): Check VMA here.  Update section VMAs.
7937
7938 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
7939
7940         * remote.c (init_remote_state): Add special handling for placeholder
7941         registers.
7942
7943 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
7944
7945         * Makefile.in (XMLFILES): Include $(TDEP_XML).
7946         (filenames_h): New variable.
7947         (clean): Clean up xml-builtin.c and stamp-xml.
7948         (arm-linux-nat.o): Update.
7949         * config/arm/linux.mh (TDEP_XML): Define.
7950         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7951         (arm_linux_has_wmmx_registers): New.
7952         (GET_THREAD_ID): Fix typo.
7953         (IWMMXT_REGS_SIZE): Define.
7954         (fetch_wmmx_regs, store_wmmx_regs): New.
7955         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7956         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7957         (super_xfer_partial, arm_linux_xfer_partial): New.
7958         (_initialize_arm_linux_nat): Use them.
7959         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7960         (xml_builtin_xfer_partial): New function.
7961         * xml-support.h (xml_builtin_xfer_partial): New prototype.
7962         * NEWS: Update mention of iWMMXt support.
7963
7964 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
7965
7966         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7967         if there are no FPA registers.
7968         (arm_dwarf_reg_to_regnum): New function.
7969         (arm_register_type, arm_register_name): Return minimal values for
7970         unsupported registers.
7971         (arm_register_sim_regno): Handle iWMMXt registers.
7972         (arm_gdbarch_init): Record missing FPA registers if indicated by
7973         a target description.  Recognize iWMMXt registers.  Only register
7974         "info float" for FPA.  Use ARM_NUM_REGS.  Register
7975         arm_dwarf_reg_to_regnum.
7976         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7977         constants.
7978         (struct gdbarch_tdep): Add have_fpa_registers.
7979         * features/xscale-iwmmxt.xml: Update capitalization.
7980         * regformats/arm-with-iwmmxt.dat: Regenerated.
7981
7982 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
7983
7984         * NEWS (New targets): Add entry for the Toshiba Media Processor.
7985
7986 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
7987
7988         * MAINTAINERS (mep): New target.
7989
7990 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
7991
7992         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7993         Richard Sandiford:
7994         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7995         (mep-tdep.o): New rule.
7996         * configure.tgt (mep-*-*): New target.
7997         * mep-tdep.c: New file.
7998         * config/mep/mep.mt: New file.
7999
8000 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
8001
8002         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8003         BREAKPOINT_HIT and STOP_UNKNOWN.
8004
8005 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
8006
8007         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
8008
8009 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
8010
8011         * gdb_expat.h (XMLCALL): Define if not already defined.
8012
8013 2007-02-20  Andreas Schwab  <schwab@suse.de>
8014
8015         * Makefile.in (symfile.o): Update dependencies.
8016
8017 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
8018
8019         * MAINTAINERS: Disable -Werror for cris simulator.  Build
8020         sparc64-solaris2.10 instead of the broken sparc-elf.
8021         * solib-frv.c: Include "solib.h".
8022         * Makefile.in (solib-frv.o): Update.
8023         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8024         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8025         (xtensa_frame_this_id, xtensa_frame_prev_register)
8026         (xtensa_push_dummy_call): Use %p.
8027
8028 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
8029
8030         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8031         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8032         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8033         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8034         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8035         (sparc-linux-tdep.o): Update.
8036
8037 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
8038
8039         * xtensa-tdep.h (xtensa_reg_mask_t): New.
8040         (xtensa_mask_t): Change mask field to be a separate array.
8041         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8042         (xtensa_pseudo_register_write, xtensa_unwind_pc)
8043         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8044         (xtensa_breakpoint_from_pc): Remove implicit type casting.
8045         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8046         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8047         (mask14, mask15): Rename to
8048         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8049         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8050         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8051         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8052         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8053         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8054         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8055         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8056         (xtensa_submask14, xtensa_submask15): New.
8057         (rmap): Follow strict aliasing rules doing static initialization.
8058
8059 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
8060
8061         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8062         handling from here...
8063         (tdesc_register_type): ...to here.
8064         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8065         * features/arm-core.xml: Use code_ptr and data_ptr.
8066
8067 2007-02-13  Denis Pilat  <denis.pilat@st.com>
8068
8069         * varobj.h (enum varobj_update_error): New enum.
8070         * varobj.c (struct varobj_root): Add is_valid member.
8071         (varobj_get_type): Check for invalid varobj.
8072         (varobj_get_attributes): Likewise.
8073         (variable_editable):Likewise.
8074         (varobj_update): Likewise.  Use varobj_update_error.
8075         (new_root_variable): Set root varobj as valid by default.
8076         (varobj_invalidate): New function.
8077         * symfile.c (clear_symtab_users): Use varobj_invalidate.
8078         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8079         Use varobj_update_error.
8080
8081 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
8082
8083         Fix PR pascal/2223.
8084         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8085         Pascal language marker.
8086         * dwarf2read.c (set_cu_language): Likewise.
8087
8088 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
8089
8090         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8091         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8092         instead of target_terminal_init since inferior_ptid isn't set yet.
8093
8094 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
8095
8096         * MAINTAINERS (Write After Approval): Add myself.
8097
8098 2007-02-09  Fred Fish  <fnf@specifix.com>
8099
8100         Based on work by Apple Computer, Inc.
8101         * event-top.c (async_request_quit): Call quit() whenever either
8102         quit_flag is set or immediate_quit is set.
8103
8104 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8105
8106         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8107         type to a pointer to const struct block.
8108         (ada_lookup_symbol_list): Don't cast away constness when calling
8109         remove_out_of_scope_renamings.
8110
8111 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8112
8113         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8114         address of 'filename'; it is always non null.
8115
8116 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
8117
8118         * exec.c (add_to_section_table): Do not discard empty sections.
8119
8120 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8121
8122         * features/Makefile, features/arm-with-iwmmxt.xml,
8123         features/gdbserver-regs.xsl, features/number-regs.xsl,
8124         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8125         * regformats/arm-with-iwmmxt.dat: Generate.
8126         * NEWS: Mention iWMMXt.
8127
8128 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8129
8130         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8131         (xml-tdesc.o): Update.
8132         * xml-support.c: Add a comment.
8133         (gdb_xml_enums_boolean): New variable.
8134         (gdb_xml_parse_attr_enum): Use strcasecmp.
8135         * xml-support.h (gdb_xml_enums_boolean): Declare.
8136         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8137         next_regnum, and current_union.
8138         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8139         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8140         (field_attributes, union_children, reg_attributes, union_attributes)
8141         (vector_attributes, feature_attributes, feature_children): New.
8142         (target_children): Make static.  Add <feature>.
8143         (tdesc_elements): Make static.
8144         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8145         (struct tdesc_feature, tdesc_feature_p): New types.
8146         (struct target_desc): Add features member.
8147         (struct tdesc_arch_data, tdesc_data): New.
8148         (target_find_description): Clarify error message.  Warn about
8149         ignored register descriptions.
8150         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8151         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8152         (tdesc_data_cleanup, tdesc_numbered_register)
8153         (tdesc_numbered_register_choices, tdesc_find_register)
8154         (tdesc_register_name, tdesc_register_type)
8155         (tdesc_remote_register_number, tdesc_register_reggroup_p)
8156         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8157         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8158         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8159         (tdesc_create_feature, tdesc_record_type): New.
8160         (free_target_description): Free features.
8161         (_initialize_target_descriptions): Initialize tdesc_data.
8162         * arch-utils.c (default_remote_register_number): New.
8163         * arch-utils.h (default_remote_register_number): New prototype.
8164         * target-descriptions.h (set_tdesc_pseudo_register_name)
8165         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8166         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8167         (tdesc_numbered_register, tdesc_numbered_register_choices)
8168         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8169         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8170         (tdesc_create_reg): Declare.
8171         * gdbarch.sh (remote_register_number): New entry.
8172         * gdbarch.c, gdbarch.h: Regenerate.
8173         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8174         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8175
8176         * arm-tdep.c (arm_register_aliases): New.
8177         (arm_register_name_strings): Rename to...
8178         (arm_register_names): ...this.  Make const.  Delete the old version.
8179         (current_option, arm_register_byte): Delete.
8180         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
8181         (value_of_arm_user_reg): New.
8182         (arm_gdbarch_init): Verify any described registers.  Call
8183         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
8184         for standard register names.
8185         (_initialize_arm_tdep): Do not adjust arm_register_names.
8186         * user-regs.c (struct user_reg): Add baton member.
8187         (append_user_reg, user_reg_add_builtin, user_regs_init)
8188         (user_reg_add, value_of_user_reg): Use a baton for user
8189         register functions.
8190         * std-regs.c: Update.
8191         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8192         (user_reg_add): Add baton argument.
8193         * NEWS: Mention target description register support.
8194         * features/arm-core.xml, features/arm-fpa.xml: New.
8195         * eval.c (evaluate_subexp_standard): Allow ptype $register
8196         when the program is not running.
8197
8198 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
8199
8200         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
8201
8202 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8203
8204         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8205         info->disassembler_options to "any".
8206
8207 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8208
8209         * varobj.c (install_new_value): Only call value_get_print_value
8210         if changeable.
8211
8212 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8213
8214         Reported by timeless@gmail.com:
8215         * gdb/target.c (target_flash_erase): Do not return void value.
8216         (target_flash_done): Likewise.
8217         * gdb/cli/cli-cmds.c (source_command): Likewise.
8218
8219 2007-02-08  Fred Fish  <fnf@specifix.com>
8220
8221         Based on work by Apple Computer, Inc.
8222         * event-top.c (handle_sigint): Set quit_flag.
8223         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
8224         if quit_flag has already been reset.
8225
8226 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8227
8228         * ser-mingw.c (pipe_windows_close): Move variable initialization back
8229         up.
8230
8231 2007-02-08  Fred Fish  <fnf@specifix.com>
8232
8233         * defs.h (request_quit): Remove declaration.
8234         * utils.c (request_quit): Remove definition.
8235
8236 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
8237             Jan Kratochvil  <jan.kratochvil@redhat.com>
8238             Daniel Jacobowitz  <dan@codesourcery.com>
8239
8240         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8241         (skip_prologue): Allow bl->blrl used by PIC code.
8242
8243 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
8244             Daniel Jacobowitz  <dan@codesourcery.com>
8245
8246         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8247         initialize tmp_obstack.
8248         * p-valprint.c (pascal_object_print_value_fields)
8249         (pascal_object_print_value): Likewise.
8250
8251 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
8252
8253         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8254
8255 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
8256
8257         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8258         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8259
8260 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
8261
8262         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8263         (xml_cache): New.
8264         (tdesc_parse_xml): Cache expanded descriptions.
8265
8266 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
8267
8268         * Makefile.in (XMLFILES): New.
8269         (COMMON_OBS): Add xml-builtin.o.
8270         (xml-builtin.c, stamp-xml): New rules.
8271         (xml-tdesc.o): Update.
8272         * features/feature_to_c.sh: New file.
8273         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8274         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8275         (gdb_xml_start_element): Initialize scope after possibly reallocating
8276         scopes.  Move cleanup later.  Handle the XInclude description
8277         specially.
8278         (gdb_xml_end_element): Only parse the body if there is a current element.
8279         Call XML_DefaultCurrent if there is no element.
8280         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8281         (struct xinclude_parsing_data, xinclude_start_include)
8282         (xinclude_end_include, xml_xinclude_default)
8283         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8284         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8285         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8286         * xml-support.h (xml_fetch_another, xml_process_xincludes)
8287         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8288         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
8289         XInclude directives.  Use the compiled in DTD.
8290         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
8291         directory name.  Do not warn here.
8292         (file_read_description_xml): Update call.  Warn here instead.  Pass
8293         a dirname as baton.
8294         (fetch_available_features_from_target): New.
8295         (target_read_description_xml): Use it.
8296         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
8297         to handle XInclude.
8298         * features/xinclude.dtd: New file.
8299
8300 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
8301
8302         * linux-thread-db.c (check_for_thread_db): Return early if we have
8303         no libthread_db support.
8304
8305 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
8306
8307         * mi/mi-parse.h: Include <sys/time.h>.
8308
8309 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
8310
8311         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8312         instead of print_variable_value to print values.
8313
8314 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
8315
8316         * mi/mi-main.c: Numerous formatting changes.
8317         (mi_cmd_data_write_register_values): Replace clause inadvertantly
8318         removed in my previous change.
8319
8320 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
8321
8322         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8323         Use 1000000L instead of 1000000.
8324
8325 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
8326
8327             Based on work by Apple Computer, Inc.
8328
8329         * configure.ac: Test for sys/resource.h and getrusage.
8330         * configure, config.in: Regenerate.
8331
8332         * mi/mi-main.c: Include <sys/resource.h> if present.
8333         (rusage): Declare if HAVE_GETRUSAGE.
8334         (current_command_ts, do_timings): New static variables.
8335         (timestamp, print_diff_now, print_diff, timeval_diff):
8336         New static timing functions.
8337         (mi_cmd_enable_timings): New function for new MI command.
8338         (captured_mi_execute_command, mi_execute_async_cli_command): 
8339         Call timing functions.
8340
8341         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8342         -enable-timings.
8343
8344         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8345
8346         * mi/mi-parse.h: (mi_timestamp): New structure.
8347         (mi_parse): Add mi_timestamp* member.
8348
8349 2007-02-02  Denis Pilat  <denis.pilat@st.com>
8350
8351         * thread.c (make_cleanup_restore_current_thread): New function.
8352         (info_threads_command): Use of make_cleanup_restore_current_thread
8353         to restore the current thread and the selected frame.
8354         (restore_selected_frame): New function.
8355         (struct current_thread_cleanup): Add frame_id field.
8356         (do_restore_current_thread_cleanup): Add restoring of the selected
8357         frame.
8358         (make_cleanup_restore_current_thread): Likewise.
8359         (thread_apply_all_command): backup the selected frame while 
8360         entering the function and restore it at exit.
8361         (thread_apply_command): Likewise.
8362
8363 2007-02-02  Denis Pilat  <denis.pilat@st.com>
8364
8365         * MAINTAINERS (Write After Approval): Add myself to the list.
8366
8367 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8368
8369         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8370         (m32r_store_register): Ditto.
8371
8372 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
8373
8374         * ser-mingw.c (pipe_windows_open)
8375         (pipe_windows_read, pipe_windows_write): Declare
8376         variables at the top of the function.
8377
8378 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
8379
8380         * doublest.c (floatformat_from_length): Use the right element from
8381         gdbarch floatformats.
8382         (floatformat_from_type, extract_typed_floating)
8383         (store_typed_floating): Likewise.
8384         * doublest.h: Remove declarations for undefined floatformat arrays.
8385         * gdbarch.sh (float_format, double_format, long_double_format): Change
8386         to pairs.
8387         (pformat): Update for pairs.
8388         * gdbarch.c, gdbarch.h: Regenerated.
8389         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8390         (floatformats_ieee_double_littlebyte_bigword)
8391         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8392         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8393         (floatformats_vax_d): New variables.
8394         (builtin_type_ieee_single, builtin_type_ieee_double)
8395         (builtin_type_arm_ext, builtin_type_ia64_spill)
8396         (builtin_type_ia64_quad): Replace arrays with individual types.
8397         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8398         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8399         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8400         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8401         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8402         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8403         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8404         unused and endian-specific types.
8405         (recursive_dump_type): Update for floatformat pairs.
8406         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
8407         (build_gdbtypes): Use build_flt.
8408         (_initialize_gdbtypes): Update set of initialized types.
8409         * gdbtypes.h: Update declarations to match gdbtypes.c.
8410         (struct main_type): Store a pointer to two floatformats.
8411         * arch-utils.c (default_float_format, default_double_format): Delete.
8412         * arch-utils.h (default_float_format, default_double_format): Delete.
8413
8414         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8415         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8416         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8417         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8418         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8419
8420 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
8421
8422         * target.c (maintenance_print_target_stack): New function.
8423         (initialize_targets): Add new "maintenance print target-stack"
8424         command.
8425
8426 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
8427
8428         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8429
8430 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
8431
8432         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8433         (struct dwarf2_loclist_baton): Likewise.
8434
8435 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
8436
8437         * cli/cli-script.c: Include breakpoint.h.
8438         (build_command_line): Require arguments only for if and while
8439         commands.
8440         (get_command_line, execute_user_command, execute_control_command):
8441         Fix wording of warning messages.
8442         (print_command_lines): Print breakpoint commands.
8443         (execute_control_command): Call commands_from_control_command to
8444         handle the `commands' command inside a body of a flow-control
8445         command.
8446         (read_next_line): Recognize the `commands' command and build a
8447         command line structure for it.
8448         (recurse_read_control_structure, read_command_lines): Handle
8449         `commands' similarly to `if' and `while'.
8450
8451         * breakpoint.c (get_number_trailer): Document the special meaning
8452         of NULL as the first argument PP.
8453         (commands_from_control_command): New function.
8454
8455         * breakpoint.h (commands_from_control_command): Add prototype.
8456
8457         * defs.h (commands_control): New enumerated value for enum
8458         command_control_type.
8459
8460 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
8461
8462         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8463         (ada_exception_sal): Update accordingly.
8464
8465 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8468         * NEWS: Describe CHAR array vs. string identifcation rules.
8469
8470 2007-01-25  Paul Brook  <paul@codesourcery.com>
8471
8472         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
8473
8474 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
8475
8476         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
8477         expression is empty, bother to return the 'optimized out' value we
8478         construct.  (Thanks to Carl Burch.)
8479
8480 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
8481
8482         * varobj.c (c_value_of_root, c_value_of_child)
8483         (cplus_describe_child): Don't call release_value.
8484
8485 2007-01-24  Thiemo Seufer  <ths@mips.com>
8486
8487         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
8488         initialization.
8489
8490 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
8491
8492         Refactor getting children name, value and type access 
8493         for varobjs in C++.
8494         * varobj.c (get_type_deref): Remove.
8495         (adjust_value_for_child_access): New.
8496         (c_number_of_children): Use the above.
8497         (c_describe_child): Likewise.
8498         (enum accessibility): New.
8499         (match_accessibility): New function.
8500         (cplus_describe_child): New function.
8501         (cplus_name_of_child, cplus_value_of_child)
8502         (cplus_type_of_child): Reimplement in terms
8503         of cplus_describe_child.
8504         (cplus_number_of_children): Use 
8505         adjust_value_for_child_access.
8506         
8507 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
8508
8509         Fix computation of the 'editable' attribute and
8510         value changeability for for references.
8511         * varobj.c (get_value_type): New function.
8512         (c_variable_editable): Use get_value_type.
8513         (varobj_value_is_changeable): Likewise.
8514                 
8515 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
8516
8517         * source.c (find_and_open_source): Try rewriting the source
8518         path inside filename if dirname is NULL.
8519
8520 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
8521
8522         * dwarf2read.c (add_partial_symbol): Create an extra partial
8523         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
8524         (new_symbol): Likewise for symbols.
8525
8526 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
8527
8528         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
8529
8530 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
8531         
8532         * value.c (value_primitive_field): Copy the full 'location' 
8533         contents, instead of assuming that copying ADDRESS will 
8534         bring over everything in the union.  Remove obsolete comment.
8535         
8536 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
8537
8538         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
8539         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
8540         (m32c_m16c_pointer_to_address): Separate code from declarations.
8541
8542 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
8543
8544         * target.c (update_current_target): Correct typo.
8545
8546 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
8547
8548         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
8549         declaration.
8550
8551 2007-01-11  Andrew Cagney  <cagney@redhat.com>
8552             Daniel Jacobowitz  <dan@codesourcery.com>
8553             Jan Kratochvil  <jan.kratochvil@redhat.com>
8554
8555         * dwarf2-frame.c (execute_cfa_program): New support of
8556         `DW_CFA_GNU_negative_offset_extended'.
8557
8558 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
8559
8560         * NEWS: Mention flash support for "load" and new remote packets.
8561
8562 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
8563
8564         * breakpoint.c (delete_command): Skip redundant loop iterations.
8565
8566 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
8567
8568         * gdbarch.sh (register_type): Update comment.
8569         * gdbarch.h: Regenerated.
8570         * arch-utils.c (generic_register_size): Call register_type.
8571         * ia64-tdep.c (ia64_extract_return_value): Likewise.
8572         * m32c-tdep.c (check_for_saved): Likewise.
8573         * mips-tdep.c (mips_print_register, print_gp_register_row)
8574         (mips_print_registers_info): Likewise.
8575         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
8576         Likewise.
8577         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
8578         (sh64_do_register, sh64_print_register)
8579         (sh64_media_print_registers_info): Likewise.
8580         * tui/tui-regs.c (tui_register_format): Likewise.
8581
8582 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
8583
8584         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
8585
8586         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
8587         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
8588         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
8589         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8590         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
8591         (make_symbol_completion_list): Likewise.
8592
8593 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8594             Daniel Jacobowitz  <dan@codesourcery.com>
8595
8596         * buildsym.c (end_symtab): Use preallocated symtab if available.
8597         Fill in SYMBOL_SYMTAB.
8598         * buildsym.h (struct subfile): Add symtab member.
8599         * dwarf2read.c (struct dwarf2_cu): Add line_header.
8600         (struct file_entry): Add symtab.
8601         (free_cu_line_header): New function.
8602         (read_file_scope): Use it.  Save line_header in the cu.  Process
8603         lines before DIEs.
8604         (add_file_name): Initialize new symtab member.
8605         (dwarf_decode_lines): Create symtabs for included files.
8606         (new_symbol): Set SYMBOL_SYMTAB.
8607         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
8608         (search_symbols): Likewise.
8609         * symtab.h (struct symbol): Add symtab member.
8610         (SYMBOL_SYMTAB): Define.
8611
8612 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
8613
8614         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
8615
8616 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
8617
8618         * arch-utils.c (show_endian): Correct reversed condition.
8619
8620 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8621
8622         * MAINTAINERS (Write After Approval): Add myself.
8623
8624 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
8625             Vladimir Prus  <vladimir@codesourcery.com>
8626
8627         Fix 'selected frame' varobjs.
8628         * varobj.c (struct varobj): Remove the error field.
8629         (varobj_set_value): Don't check var->error.
8630         (install_new_value): Don't set var->error.
8631         (varobj_update): Always pass the new value
8632         of the root via install_new_value.
8633         (create_child): Don't set error field.
8634         (new_variable): Likewise.
8635         (c_value_of_root): Always reevaluate the value
8636         of selected frame varobjs in the selected frame.
8637         Don't call reinit_frame_cache.
8638
8639 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
8640
8641         * source.c (_initialize_source): Improve the help text of
8642         the substitute-path commands.
8643
8644 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
8645
8646         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
8647         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
8648         (frv_skip_prologue): Remove prototypes.
8649         (frv_adjust_breakpoint_address): Renamed from
8650         frv_gdbarch_adjust_breakpoint_address.
8651         (frv_gdbarch_init): Adjust.
8652
8653 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
8654
8655         * gdbarch.sh (deprecated_extract_return_value)
8656         (deprecated_store_return_value): Remove.
8657         (extract_return_value, store_return_value): Remove default values.
8658         * gdbarch.c, gdbarch.h: Regenerate.
8659         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
8660         (legacy_store_return_value): Remove.
8661         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
8662         Remove.
8663
8664         * mi/mi-main.c: Remove obsolete comment.
8665
8666         * regcache.c, regcache.h (deprecated_register_bytes)
8667         (deprecated_read_register_bytes)
8668         (deprecated_write_register_bytes): Remove.
8669
8670         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
8671         Don't forget to move destination pointer.
8672
8673 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
8674
8675         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
8676
8677 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
8678
8679         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
8680         past entry function with recent newlib.
8681
8682 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
8683
8684         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
8685         introduction.  Specify -var-update more exactly.
8686
8687 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
8688
8689         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
8690
8691 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
8692
8693         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
8694         the Global Maintainers' invitation to be a global maintainer.
8695
8696 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
8697
8698         * infrun.c (singlestep_pc): New variable.
8699         (resume): Set singlestep_pc.
8700         (context_switch): Add a debugging message.  Flush the frame cache.
8701         (handle_inferior_event): Add debugging messages.  Handle thread
8702         hops when a software single step has completed.  Let context_switch
8703         handle flushing the frame cache.
8704
8705 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8706
8707         * NEWS: Mention target descriptions, "set tdesc filename",
8708         "unset tdesc filename", "show tdesc filename", and
8709         qXfer:features:read.
8710         * arch-utils.c (choose_architecture_for_target): New function.
8711         (gdbarch_info_fill): Call it.
8712         * target-descriptions.c (struct property): Make members non-const.
8713         (struct target_desc): Add arch member.
8714         (target_description_filename): New variable.
8715         (target_find_description): Try via XML first.
8716         (tdesc_architecture): New.
8717         (free_target_description, make_cleanup_free_target_description): New.
8718         (set_tdesc_property): Call xstrdup.
8719         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
8720         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
8721         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
8722         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
8723         * target-descriptions.h (tdesc_architecture)
8724         (make_cleanup_free_target_description, set_tdesc_architecture): New
8725         prototypes.
8726         * Makefile.in (SFILES): Add xml-tdesc.c.
8727         (COMMON_OBS): Add xml-tdesc.o.
8728         (target-descriptions.o): Update.
8729         (xml-tdesc.o): New rule.
8730         * xml-tdesc.c, xml-tdesc.h: New files.
8731         * remote.c (PACKET_qXfer_features): New enum.
8732         (remote_protocol_features): Add qXfer:features:read.
8733         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
8734         (_initialize_remote): Register qXfer:features:read.
8735         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
8736         * features/gdb-target.dtd: New file.
8737
8738 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8739
8740         * copyright.sh: Clarify error.
8741
8742 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8743
8744         * symtab.c (matching_bfd_sections): Fix VMA matching for
8745         prelinked objects.
8746
8747 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8748
8749         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
8750         nested symbols.
8751
8752 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8753
8754         Updated copyright notices for most files.
8755
8756 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8757
8758         * copyright.sh (prunes): Add step-line.inp and step-line.c.
8759
8760 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8761
8762         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
8763         exec_prefix.
8764         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
8765         '${prefix}'.
8766         * configure, config.in: Regenerate.
8767         * defs.h (debug_file_directory): Declare.
8768         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
8769         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
8770         relocate it if DEBUGDIR_RELOCATABLE.
8771         * symfile.c (debug_file_directory): Make non-static.
8772         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
8773         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
8774         (_initialize_symfile): Don't initialize debug_file_directory here.
8775
8776 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
8777
8778         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
8779         statements.
8780
8781 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8782
8783         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
8784         frame_unwind_register to recurse.
8785         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
8786         (alpha_heuristic_frame_prev_register): Likewise.
8787         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
8788         * m32c-tdep.c (m32c_prev_register): Likewise.
8789         * frame.c (frame_register_unwind_location): Remove FIXME.
8790
8791 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8792             Eli Zaretskii  <eliz@gnu.org>
8793
8794         * copyright.sh: New file.
8795
8796 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
8797
8798         * configure.ac: Check for XML_StopParser.
8799         * xml-support.c (gdb_xml_body_text): Check for an error.
8800         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
8801         (gdb_xml_end_element_wrapper): Likewise.
8802         * config.in, configure: Regenerated.
8803
8804 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
8805
8806         * varobj.c (install_new_value): Always update print_value.
8807         (value_get_print_value): Immediately return NULL for missing
8808         values.
8809
8810 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
8811
8812         * configure.ac: Tighten pattern for extracting value of
8813         DEPRECATED_TM_FILE from the target makefile fragment.
8814         * configure: Regenerated.
8815
8816 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
8817
8818         * linux-nat.c (struct simple_pid_list): Add status.
8819         (add_to_pid_list): Record the PID's status.
8820         (linux_record_stopped_pid): Likewise.  Make static.
8821         (pull_pid_from_list): Return the saved status.
8822         (linux_nat_handle_extended): Deleted.
8823         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
8824         Make static.  Handle non-SIGSTOP for a new thread's first signal.
8825         (flush_callback): Handle unexpected pending signals.
8826         (linux_nat_wait): Update calls to changed functions.
8827         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
8828         Remove prototypes for newly static functions.
8829
8830 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
8831
8832         * gdbarch.sh (value_from_register): New gdbarch function.
8833         * gdbarch.c, gdbarch.h: Regenerate.
8834         * findvar.c (default_value_from_register): New function.
8835         (value_from_register): Use gdbarch_value_from_register.
8836         * value.h (default_value_from_register): Declare.
8837         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
8838         spu_value_to_register): Remove.
8839         (spu_value_from_register): New function.
8840         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8841         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8842         Call set_gdbarch_value_from_register.
8843         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
8844         s390_value_to_register): Remove.
8845         (s390_value_from_register): New function.
8846         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8847         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8848         Call set_gdbarch_value_from_register.
8849
8850 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
8851
8852         * NEWS: Add "set sysroot" and "show sysroot".
8853         * solib.c (solib_absolute_prefix): Delete.  Replace
8854         all uses with gdb_sysroot.
8855         (_initialize_solib): Add "set sysroot" and "show sysroot".
8856         Make "solib-absolute-prefix" an alias to it.
8857
8858 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
8859
8860         * frame.c (get_frame_register_bytes): New function.
8861         (put_frame_register_bytes): Likewise.
8862         * frame.h (get_frame_register_bytes): Declare.
8863         (put_frame_register_bytes): Likewise.
8864         * findvar.c (value_from_register): Always construct lval_register
8865         values.  Use get_frame_register_bytes.
8866         * valops.c (value_assign): Use get_frame_register_bytes and
8867         put_frame_register_bytes.
8868
8869 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
8870
8871         * MAINTAINERS: Update Stan Shebs' email address.
8872
8873 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
8874
8875         * ada-lang.c (is_known_support_routine): Improve the implementation.
8876
8877 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
8878
8879         * ada-lang.c: Add include of source.h.
8880         (is_known_support_routine): Improve the check verifying that the file
8881         associated to this frame exists.
8882         * Makefile.in (ada-lang.o): Add dependency on source.h.
8883
8884 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
8885
8886         * ax-general.c (ax_const_l): Select proper opcode for the given
8887         value.
8888
8889 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
8890
8891         * varobj.c (c_value_of_root): Don't select frame if variable
8892         object is out of scope.
8893
8894 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
8895
8896         * varobj.c (struct varobj): New member print_value.
8897         (install_new_value): Compare last printed value with current one
8898         instead of contents.
8899         (new_variable): Initialize var->print_value to NULL.
8900         (free_variable): Free var->print_value.
8901         (value_get_print_value): New function derived from
8902         c_value_of_variable.
8903         (c_value_of_variable): Use value_get_print_value.
8904
8905 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
8906
8907         * i386-tdep.c (i386_analyze_stack_align): Add comment.
8908
8909 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
8910
8911         * NEWS: Add entries for new catch commands.
8912
8913 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
8914
8915         * dwarf2read.c (partial_die_info): Add field has_byte_size.
8916         (add_partial_symbol): Correct identification of external references.
8917         (process_structure_scope): Likewise.
8918         (read_partial_die): Handle DW_AT_byte_size attribute.
8919
8920 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
8921
8922         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
8923
8924 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
8925
8926         * varobj.c (get_type_deref): Fix variable objects for references to
8927         pointers.
8928
8929 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8930
8931         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
8932         with no symbols.
8933
8934 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8935
8936         * memory-map.c (struct_memory_map_parsing_data): Remove most
8937         members.  Make property_name an array.
8938         (free_memory_map_parsing_data, memory_map_start_element)
8939         (memory_map_end_element, memory_map_character_data): Delete.
8940         (memory_map_start_memory, memory_map_end_memory)
8941         (memory_map_start_property, memory_map_end_property): New functions.
8942         (property_attributes, memory_children, memory_type_enum)
8943         (memory_attributes, memory_map_children, memory_map_elements): New.
8944         (parse_memory_map): Rewrite.
8945         * xml-support.c (debug_xml): New.
8946         (xml_get_required_attribute, xml_get_integer_attribute)
8947         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8948         Delete.
8949         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8950         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8951         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8952         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8953         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8954         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8955         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8956         New.
8957         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8958         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8959         (enum gdb_xml_element_flag, struct gdb_xml_element)
8960         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8961         (struct gdb_xml_enum): New.
8962         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8963         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8964         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8965         (xml_get_required_attribute, xml_get_integer_attribute)
8966         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8967         * Makefile.in (xml_support_h, xml-support.o): Update.
8968
8969 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8970
8971         * Makefile.in (eval.o): Update dependencies.
8972         * eval.c: Include "ui-out.h" and "exceptions.h".
8973         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8974         Use value_zero if an error occurs when avoiding side effects.
8975         * varobj.c (c_value_of_root): Initialize new_val.
8976
8977 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8978
8979         * varobj.c (varobj_list_children): Stop if the number of children is
8980         unknown.
8981         (c_number_of_children):
8982
8983 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
8984
8985         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8986         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8987         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8988         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8989         sizeof, instead of hardcoded constants.
8990
8991 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8992
8993         * CONTRIBUTE: Use sourceware.org.
8994
8995 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
8996
8997         * buildsym.c (start_subfile): Handle producer.
8998         (record_producer): New function.
8999         * buildsym.h (struct subfile): Include producer.
9000         (record_producer): New prototype.
9001         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9002         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9003         armcc_cfa_offsets_reversed.
9004         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9005         (dwarf2_frame_find_quirks): New function.
9006         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
9007         (decode_frame_entry_1): Record the CIE version.  Record the
9008         augmentation.  Skip armcc augmentations.
9009         * dwarf2read.c (read_file_scope): Save the producer.
9010         * symtab.h (struct symtab): Rename unused version member to
9011         producer.
9012
9013 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
9014
9015         * configure.ac (build_warnings): Use -Wall and
9016         -Wdeclaration-after-statement.
9017         * configure: Regenerated.
9018
9019 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
9020
9021         Simplify access to variours properties of child
9022         variable objects in C.
9023         * varobj.c (value_struct_element_index): New function.
9024         (c_describe_child): New function.
9025         (c_name_of_child, c_value_of_child)
9026         (c_type_of_child): Rewrite to use c_describe_child.
9027
9028 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
9029
9030         gdb/
9031         * varobj.c: Include "vec.h". 
9032         (varobj_p): New typedef, declare vector of those.
9033         (struct varobj): Use vector for the 'children' member.
9034         (child_exists): Remove.
9035         (save_child_in_parent): Remove.
9036         (remove_child_from_parent): Remove.
9037         (struct varobj_child): Remove.
9038         (struct vstack): Remove.
9039         (vpush, vpop): Remove.
9040         (varobj_list_children): Adjust to work work vector.
9041         (varobj_update): Likewise. Use vectors for
9042         working stack and result.
9043         (delete_variable_1): Likewise.
9044         * Makefile.in (varobj.o): Update dependencies.
9045
9046 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
9047
9048         Port from Apple's version.
9049         gdb/
9050         * varobj.c (type_changeable): Rename to...
9051         (varobj_value_is_changeable_p): ...this. Adjust all callers.
9052         (is_root_p): New function. Use it everywhere.
9053
9054 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
9055
9056         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9057         then plain 'fixup'.
9058
9059 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
9060
9061         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9062
9063 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
9064
9065         * hpread.c (hpread_type_lookup): Fix compilation failure.
9066
9067 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
9068
9069         * NEWS: New port to S+core.
9070         * MAINTAINERS (Write After Approval, Responsible Maintainers):
9071         Add myself.
9072
9073         * Makefile.in: Add dependencies for S+core files.
9074         * configure.tgt (score*, score-*-*): Add S+core target.
9075         * config/score/embed.mt: New file.
9076         * score-tdep.c: New file.
9077         * score-tdep.h: New file.
9078
9079 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
9080
9081         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9082         the appropriate type rather than a bogus void type.
9083
9084 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
9085
9086         * ada-lang.h (ada_find_printable_frame): Remove.
9087         (ada_exception_catchpoint_p, ada_decode_exception_location)
9088         (ada_decode_assert_location): Add declaration.
9089         * ada-lang.c: Add include of annotate.h and valprint.h.
9090         (exception_catchpoint_kind): New enum.
9091         (function_name_from_pc, is_known_support_routine)
9092         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9093         (ada_exception_name_addr_1, ada_exception_name_addr)
9094         (print_it_exception, print_one_exception, print_mention_exception)
9095         (print_it_catch_exception, print_one_catch_exception)
9096         (print_mention_catch_exception, catch_exception_breakpoint_ops)
9097         (print_it_catch_exception_unhandled)
9098         (print_one_catch_exception_unhandled)
9099         (print_mention_catch_exception_unhandled, print_it_catch_assert)
9100         (print_one_catch_assert, print_mention_catch_assert)
9101         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9102         (ada_get_next_arg, catch_ada_exception_command_split)
9103         (ada_exception_sym_name, ada_exception_sym_name)
9104         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9105         (ada_parse_catchpoint_condition, ada_exception_sal)
9106         (ada_decode_exception_location)
9107         (ada_decode_assert_location): New function.
9108         (catch_exception_unhandled_breakpoint_ops): New global variable.
9109         (catch_assert_breakpoint_ops): New global variable.
9110         * breakpoint.c: Add include of ada-lang.h.
9111         (print_one_breakpoint): Do not print the condition for Ada
9112         exception catchpoints.
9113         (create_ada_exception_breakpoint): New function.
9114         (catch_ada_exception_command, catch_assert_command): New function.
9115         (catch_command_1): Add support for the new "catch exception" and
9116         "catch assert" commands.
9117         (_initialize_breakpoint): Add help description for the new catch
9118         commands.
9119         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9120         valprint.h.
9121         (breakpoint.o): Add dependency on ada-lang.h.
9122
9123 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
9124
9125         * coffread.c (cs_to_section): If bfd_section is found, always
9126         return its section index.
9127         (coff_symtab_read): Determine the minimal_symbol_type using the
9128         bfd_section flags.
9129
9130 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9131             Daniel Jacobowitz  <dan@codesourcery.com>
9132
9133         * Makefile.in (top.o): Update.
9134         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9135         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9136         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9137         New.
9138         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9139
9140 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
9141
9142         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9143         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9144
9145 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
9146
9147         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9148         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9149         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9150         greater than or equal to zero.
9151         * m2-typeprint.c (m2_array): Likewise.
9152         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9153         * gdbtypes.c (copy_type_recursive): Correct == typo.
9154         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9155         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9156         greater than zero.
9157         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9158         (default_macro_scope): Remove unused variable.
9159         * prologue-value.h (pv_area_find_reg): Don't name an argument
9160         "register".
9161         * remote-fileio.c (remote_fio_func_map): Add missing braces.
9162         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9163         type.
9164         (cleanup_sigint_signal_handler): Remove casts.
9165         * valprint.c (val_print): Use a volatile local for the modified
9166         argument.
9167         * varobj.c (languages): Remove extra array dimension.
9168         (varobj_create): Correct access to languages array.
9169         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9170         missing braces.
9171         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9172         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9173         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9174         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9175         (mi_cmd_data_write_memory): Likewise.
9176         * signals/signals.c (target_signal_to_string): Cast to int before
9177         comparing.
9178         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9179         Update all callers.
9180
9181 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
9182
9183         * NEWS: Mention pointer to member improvements.
9184         * Makefile.in (gnu-v3-abi.o): Delete special rule.
9185         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9186         * ada-valprint.c (ada_print_scalar): Update for new type codes.
9187         * c-typeprint.c (c_print_type): Update for new type codes.
9188         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9189         (c_type_print_base): Likewise.
9190         (c_type_print_args): Rewrite.
9191         * c-valprint.c (c_val_print): Update for new type codes.  Remove
9192         support for references to members.  Treat methods like functions.
9193         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9194         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9195         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9196         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9197         (struct cp_abi_ops): Add corresponding members.
9198         * cp-valprint.c (cp_print_class_method): Delete.
9199         (cp_find_class_member): New function.
9200         (cp_print_class_member): Use it.  Simplify support for bogus
9201         member pointers.
9202         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9203         lookup_methodptr_type.
9204         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9205         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9206         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
9207         pointer support.
9208         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
9209         references returned by user defined operators.
9210         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9211         (f_type_print_varspec_suffix): Remove support for member pointers.
9212         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9213         and adjusted.
9214         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9215         (lookup_methodptr_type): New.
9216         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9217         (recursive_dump_type): Update for new types.
9218         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9219         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9220         (lookup_memberptr_type, lookup_methodptr_type)
9221         (smash_to_memberptr_type): New prototypes.
9222         (smash_to_method_type): Formatting fix.
9223         (lookup_member_type, smash_to_member_type): Delete prototypes.
9224         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9225         Do not rely on debug information for the vptr or the method's
9226         enclosing type.  Handle function descriptors for IA64.
9227         (gnuv3_virtual_fn_field): Rewrite using the new functions.
9228         (gnuv3_find_method_in, gnuv3_print_method_ptr)
9229         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9230         (gnuv3_method_ptr_to_value): New.
9231         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9232         * hpread.c (hpread_type_lookup): Update for new types.
9233         * infcall.c (value_arg_coerce): Likewise.
9234         * m2-typeprint.c (m2_print_type): Remove explicit support
9235         for member pointers.
9236         * m2-valprint.c (m2_val_print): Likewise.
9237         * p-typeprint.c (pascal_type_print_varspec_prefix)
9238         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9239         * p-valprint.c (pascal_val_print): Likewise.
9240         (pascal_object_print_class_method, pascal_object_print_class_member):
9241         Delete.
9242         * p-lang.h (pascal_object_print_class_method)
9243         (pascal_object_print_class_member): Delete prototypes.
9244         * stabsread.c (read_type): Update for new types.
9245         * typeprint.c (print_type_scalar): Likewise.
9246         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9247         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9248         argument.  Construct a pointer to member if the address of a
9249         function or data member is requested.
9250         (value_cast_pointers): Don't modify the input value.
9251         (value_cast): Adjust pointer to member handling for new types.
9252         Allow null pointer to member constants.  Don't modify the input
9253         value.
9254         (value_ind): Remove pointer to member check.  Handle function
9255         descriptors for function pointers.
9256         (value_struct_elt, value_find_oload_method_list, check_field):
9257         Remove pointer to member checks.
9258         * value.c (unpack_long): Allow pointers to data members.
9259         (value_from_longest): Allow member pointers.
9260         * value.h (value_aggregate_elt): Add want_address.
9261         * varobj.c (c_variable_editable): Remove check for members.
9262         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9263         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9264         in virtual tables.
9265         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9266         * c-lang.h (cp_print_class_method): Delete prototype.
9267         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9268         * mips-tdep.c (mips_gdbarch_init): Likewise.
9269         * gdbarch.c, gdbarch.h: Regenerated.
9270
9271 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
9272
9273         * rs6000-tdep.c (rs6000_use_struct_convention)
9274         (rs6000_extract_return_value, rs6000_store_return_value)
9275         (rs6000_extract_struct_value_address): Remove.
9276         (rs6000_return_value): New function.
9277         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9278         store_return_value, deprecated_extract_struct_value_address and
9279         deprecated_use_struct_convention.  Use rs6000_return_value
9280         instead.
9281
9282 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
9283
9284         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9285         -display-disable, -display-enable, -display-insert and
9286         -display-list.
9287
9288 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
9289
9290         * breakpoint.c (remove_breakpoint): Remove dead code.
9291
9292 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
9293
9294         * varobj.c: Include block.h.
9295         (c_value_of_root): Check scope within nested statements.
9296
9297 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
9298
9299         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9300         regcache_cooked_write_signed instead of
9301         deprecated_write_register_bytes.
9302
9303 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
9304
9305         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9306
9307 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
9308
9309         Followed the Start of New Year Procedure:
9310         * ChangeLog-2006: New file, containing all the entries for 2006.
9311         * ChangeLog: Removed all 2006 entries, and changed the reference
9312         to the previous ChangeLog to point to ChangeLog 2006.
9313         * top.c (print_gdb_version): Update copyright year.
9314
9315 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
9316
9317         * Makefile.in (remote-sds.o): Remove.
9318         * remote-sds.c: Delete.
9319
9320 For older changes see ChangeLog-2006.
9321 \f
9322 Local Variables:
9323 mode: change-log
9324 left-margin: 8
9325 fill-column: 74
9326 version-control: never
9327 coding: utf-8
9328 End: