* coffread.c (coff_sym_fns): Add default_symfile_segments.
[external/binutils.git] / gdb / ChangeLog
1 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
2
3         * coffread.c (coff_sym_fns): Add default_symfile_segments.
4         * dbxread.c (start_psymtab): Check HAVE_ELF.
5         (aout_sym_fns): Likewise.
6         * elfread.c (elf_symfile_segments): New.
7         (elf_sym_fns): Add elf_symfile_segments.
8         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
9         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
10         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
11         * somread.c (som_sym_fns): Use default_symfile_segments.
12         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
13         (init_objfile_sect_indices): Call symfile_find_segment_sections.
14         (default_symfile_segments): New function.
15         (syms_from_objfile): Update call to find_sym_fns.
16         (symfile_get_segment_data, free_symfile_segment_data): New.
17         (symfile_map_offsets_to_segments): New.
18         (symfile_find_segment_sections): New.
19         * symfile.h (struct symfile_segment_data): New.
20         (struct sym_fns): Add sym_segments.
21         (default_symfile_segments, symfile_get_segment_data)
22         (free_symfile_segment_data): New prototypes.
23         (symfile_map_offsets_to_segments): Likewise.
24         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
25         * Makefile.in (COMMON_OBS): Remove elfread.o.
26         (elf_internal_h): New.
27         (elfread.o): Update.
28         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
29         compiled.
30         * config.in, configure: Regenerated.
31         * NEWS: Mention qOffsets changes.
32
33 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
34
35         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
36         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
37         Replace global variable declaration with compatibility macro.
38         (struct builtin_m2_type): New data type.
39         (builtin_m2_type): Add prototype.
40         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
41         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
42         Remove global variables.
43         (m2_language_arch_info): Use builtin_m2_type instead of variables.
44         (build_m2_types): New function.
45         (m2_type_data): New variable.
46         (builtin_m2_type): New function.
47         (_initialize_m2_language): Do not build data types.  Register
48         m2_type_data per-gdbarch data.
49
50 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
51
52         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
53         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
54         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
55         builtin_type_f_real_s8, builtin_type_f_real_s16,
56         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
57         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
58         variable declaration with compatibility macro.
59         (struct builtin_f_type): New data type.
60         (builtin_f_type): Add prototype.
61         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
62         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
63         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
64         builtin_type_f_real_s8, builtin_type_f_real_s16,
65         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
66         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
67         (f_language_arch_info): Use builtin_f_type instead of variables.
68         (build_fortran_types): Build builtin_f_type structure instead of
69         setting global type variables.
70         (f_type_data): New variable.
71         (builtin_f_type): New function.
72         (_initialize_f_language): Do not call build_fortran_types.  Do not
73         swap global type variables.  Register f_type_data per-gdbarch data.
74
75 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
76
77         * f-lang.c (_initialize_f_language): Do not initialize or
78         swap builtin_type_string.
79
80 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
81
82         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
83         value_of_builtin_frame_reg): Remove.
84         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
85         inactive call to value_of_builtin_frame_reg.
86
87 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
88
89         * gdbarch.sh (bfd_vma_bit): Remove.
90         * gdbarch.c, gdbarch.h: Regenerate.
91
92         * gdbtypes.h (builtin_bfd_vma_type): Remove.
93         * gdbtypes.h (builtin_bfd_vma_type): Remove.
94         (build_gdbtypes): Do not initialize it.
95         (_initialize_gdbtypes): Do not swap it.
96
97 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
98
99         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
100         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
101         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
102         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
103         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
104         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
105         builtin_type_vec64, builtin_type_vec128): Remove.
106         (init_simd_type): Remove.
107         (init_vector_type): Make global.
108         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
109         (build_gdbtypes): Do not build vector types.
110         (_initialize_gdbtypes): Do not swap vector types.
111         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
112         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
113         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
114         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
115         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
116         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
117         builtin_type_vec64, builtin_type_vec128): Remove declarations.
118         (init_vector_type): Add prototype.
119
120         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
121         i386_sse_type members.
122         (i386_mmx_type, i386_sse_type): Change from variables to functions.
123         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
124         (i386_init_types): Do not build vector types.
125         (i386_mmx_type, i386_sse_type): New functions.
126         (i386_register_type): Call them instead of using global variables.
127         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
128         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
129         of using global variable.
130
131         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
132         and ppc_builtin_type_vec128 members.
133         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
134         (rs6000_builtin_type_vec128): Likewise.
135         (rs6000_register_type): Call them instead of using builtin_type_vec64
136         and builtin_type_vec128.
137         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
138
139         * spu-tdep.c (struct gdbarch_tdep): New data type.
140         (spu_builtin_type_vec128): Remove variable.
141         (spu_builtin_type_vec128): New function.
142         (spu_register_type): Call it instead of using global variable.
143         (spu_gdbarch_init): Allocate tdep structure.
144         (spu_init_vector_type): Remove function.
145         (_initialize_spu_tdep): Do not call it.
146
147 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
148
149         * amd64-tdep.c (struct amd64_register_info): Remove.
150         (amd64_register_info): Remove.
151         (amd64_register_names): New static variable.
152         (AMD64_NUM_REGS): Use amd64_register_names instead of
153         amd64_register_info.
154         (amd64_register_name): Likewise.
155         (amd64_register_type): Do not refer to amd64_register_info.
156
157         * s390-tdep.c (struct s390_register_info): Remove.
158         (s390_register_info): Remove.
159         (s390_register_name): Do not refer to s390_register_info.
160         (s390_register_type): Likewise.
161
162         * sparc64-tdep.c (struct sparc64_register_info): Remove.
163         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
164         (sparc64_register_names, sparc64_pseudo_register_names): New.
165         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
166         sparc64_register_names and sparc64_pseudo_register_names instead of
167         sparc64_register_info and sparc64_pseudo_register_info.
168         (sparc64_register_name): Likewise.
169         (sparc64_register_type): Do not refer to sparc64_register_info
170         and sparc64_pseudo_register_info.
171
172 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
173
174         * c-lang.c (cplus_builtin_types): Remove.
175         (enum cplus_primitive_types): New data type.
176         (cplus_language_arch_info): New function.
177         (cplus_language_defn): Set la_language_arch_info member.  Do not set
178         la_builtin_type_vector and string_char_type members.
179
180         * f-lang.c (f_builtin_types): Remove.
181         (enum f_primitive_types): New data type.
182         (f_language_arch_info): New function.
183         (f_language_de): Set la_language_arch_info member.  Do not set
184         la_builtin_type_vector and string_char_type members.
185
186         * m2-lang.c (m2_builtin_types): Remove.
187         (enum m2_primitive_types): New data type.
188         (m2_language_arch_info): New function.
189         (m2_language_defn): Set la_language_arch_info member.  Do not set
190         la_builtin_type_vector and string_char_type members.
191
192         * objc-lang.c (objc_builtin_types): Remove.
193         (objc_language): Set la_language_arch_info member.  Do not set
194         la_builtin_type_vector and string_char_type members.
195
196         * p-lang.c (pascal_builtin_types): Remove.
197         (enum pascal_primitive_types): New data type.
198         (pascal_language_arch_info): New function.
199         (pascal_language_defn): Set la_language_arch_info member.  Do not set
200         la_builtin_type_vector and string_char_type members.
201
202 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
203
204         * regcache.c (struct regcache): Add ptid_t member.
205         (regcache_xmalloc): Initialize it.
206         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
207         (regcache_dup): Likewise.
208         (regcache_dup_no_passthrough): Likewise.
209         (current_regcache): Make static.
210         (registers_ptid): Remove variable.
211         (get_thread_regcache): New function.
212         (get_current_regcache): New function.
213         (registers_changed): Implement by freeing current regcache.
214         (regcache_raw_read): Do not refer to current_regcache.  Set 
215         inferior_ptid to regcache->ptid while calling target routines.
216         (regcache_raw_write): Likewise.
217         (regcache_raw_supply): Do not refer to current_regcache.
218         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
219         (write_pc_pid): Likewise.
220         (build_regcache): Remove.
221         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
222         or deprecated_register_gdbarch_swap.  Do not initialize
223         registers_ptid.
224         * regcache.h (get_current_regcache): Add prototype.
225         (get_thread_regcache): Likewise.
226         (current_regcache): Remove declaration.
227
228         * corelow.c (core_open): Replace current_regcache by
229         get_current_regcache ().
230         * frame.c (frame_pop): Likewise.
231         (put_frame_register): Likewise.
232         (get_current_frame, create_new_frame): Likewise.
233         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
234         * stack.c (return_command): Likewise.
235         * infcall.c (call_function_by_hand): Likewise.
236         * infrun.c (resume): Likewise.
237         (save_inferior_status, restore_inferior_status): Likewise.
238         * linux-fork.c (fork_load_infrun_state): Likewise.
239         (fork_save_infrun_state): Likewise.
240         * win32-nat.c (win32_resume): Likewise.
241         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
242         * monitor.c (monitor_wait): Likewise.
243         * remote.c (remote_wait): Likewise.
244         * remote-mips.c (mips_wait): Likewise.
245
246         * bsd-kvm.c (bsd_kvm_open): Likewise
247         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
248         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
249         * i386-linux-nat.c (i386_linux_resume): Likewise.
250         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
251         (ia64_linux_stopped_data_address): Likewise.
252
253         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
254         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
255         * mep-tdep.c (current_me_module, current_options): Likewise.
256         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
257
258         * linux-nat.c (linux_nat_do_thread_registers): Use thread
259         regcache instead of current_regcache.  Call target_fetch_registers.
260         (linux_nat_corefile_thread_callback): Update call site.
261         (linux_nat_do_registers): Likewise.
262         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
263         of current_regcache.
264         (procfs_make_note_section): Likewise.
265         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
266         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
267         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
268         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
269
270 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
271
272         * regcache.c (read_register, read_register_pid): Remove.
273         (write_register, write_register_pid): Likewise.
274         * regcache.h (read_register, read_register_pid): Remove prototype.
275         (write_register, write_register_pid): Likewise.
276
277 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
278
279         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
280         (write_pc): Likewise.  Remove default implementation, add predicate.
281         * gdbarch.c, gdbarch.h: Regenerate.
282         * regcache.c (read_pc_pid): Use current regcache instead of calling
283         read_register_pid.
284         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
285         case inline.
286         (generic_target_write_pc): Remove.
287         * inferior.h (generic_target_write_pc): Remove.
288         * frv-tdep.c (frv_gdbarch_init): Do not install it.
289         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
290         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
291         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
292         * sh-tdep.c (sh_gdbarch_init): Likewise.
293         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
294
295         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
296         argument.  Use REGCACHE instead of calling read_register_pid.
297         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
298         * hppa-tdep.c (hppa_read_pc): Likewise.
299         * hppa-tdep.h (hppa_read_pc): Likewise.
300         * ia64-tdep.c (ia64_read_pc): Likewise.
301         * m32r-tdep.c (m32r_read_pc): Likewise.
302         * mep-tdep.c (mep_read_pc): Likewise.
303         * mn10300-tdep.c (mn10300_read_pc): Likewise.
304         * spu-tdep.c (spu_read_pc): Likewise.
305
306         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
307         argument.  Use REGCACHE instead of calling write_register_pid.
308         * avr-tdep.c (avr_write_pc): Likewise.
309         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
310         * hppa-tdep.c (hppa_write_pc): Likewise.
311         * hppa-tdep.h (hppa_write_pc): Likewise.
312         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
313         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
314         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
315         * ia64-tdep.c (ia64_write_pc): Likewise.
316         * ia64-tdep.h (ia64_write_pc): Likewise.
317         * m32r-tdep.c (m32r_write_pc): Likewise.
318         * m88k-tdep.c (m88k_write_pc): Likewise.
319         * mep-tdep.c (mep_write_pc): Likewise.
320         * mips-tdep.c (mips_write_pc): Likewise.
321         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
322         * mn10300-tdep.c (mn10300_write_pc): Likewise.
323         * sparc-tdep.c (sparc_write_pc): Likewise.
324         * spu-tdep.c (spu_write_pc): Likewise.
325
326         * mips-tdep.c (read_signed_register): Remove.
327         (read_signed_register_pid): Likewise.
328         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
329         Use REGCACHE instead of calling read_signed_register_pid.
330
331 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
332
333         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
334         * gdbarch.c, gdbarch.h: Regenerate.
335         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
336         (push_dummy_code): Likewise.  Pass it to callee.
337         (call_function_by_hand): Pass current regcache to push_dummy_code.
338
339         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
340         argument.  Use it instead of current_regcache.
341
342         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
343         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
344
345 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
346
347         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
348         * gdbarch.c, gdbarch.h: Regenerate.
349         * infrun.c (handle_inferior_event): Pass current frame to
350         gdbarch_get_longjmp_target.
351
352         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
353         Read registers from FRAME instead of using read_register.
354         Use get_frame_arch instead of current_gdbarch.
355         * arm-tdep.c (arm_get_longjmp_target): Likewise.
356         * i386-tdep.c (i386_get_longjmp_target): Likewise.
357         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
358         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
359         (mips64_linux_get_longjmp_target): Likewise.
360         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
361
362 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
363
364         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
365         * gdbarch.c, gdbarch.h: Regenerate.
366         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
367         * arch-utils.h (generic_skip_trampoline_code): Likewise.
368         * infrun.c (handle_inferior_event): Pass current frame to
369         gdbarch_skip_trampoline_code and skip_language_trampoline.
370
371         * language.c (unk_lang_trampoline): Add FRAME argument.
372         (skip_language_trampoline): Add FRAME argument.  Pass it to
373         skip_trampoline callback.
374         * language.h: Add forward declaration of struct frame_info.
375         (struct language_defn): Add FRAME argument to skip_trampoline.
376         (skip_language_trampoline): Add FRAME argument.
377         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
378         to skip_trampoline callback.
379         * cp-abi.h: Add forward declaration of struct frame_info.
380         (cplus_skip_trampoline): Add FRAME argument.
381         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
382         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
383         to gdbarch_skip_trampoline_code.
384         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
385         to gdbarch_skip_trampoline_code.
386
387         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
388         * symtab.h (find_solib_trampoline_target): Likewise.
389         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
390         find_solib_trampoline_target.
391
392         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
393         from FRAME instead of calling read_register.
394
395         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
396         argument.  Read registers from FRAME instead of using read_register.
397         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
398         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
399
400         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
401         argument.
402
403         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
404
405         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
406         registers from FRAME instead of using read_signed_register.
407
408         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
409         argument.
410         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
411         instead of using read_register.
412         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
413         ppc64_standard_linkage_target.
414         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
415         Pass it to find_solib_trampoline_target.  Read registers from FRAME
416         instead of using read_register.
417
418         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
419         argument.
420
421 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
422
423         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
424         FRAME argument.
425         * gdbarch.c, gdbarch.h: Regenerate.
426         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
427
428         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
429         registers from FRAME instead of using read_register.
430         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
431         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
432         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
433         argument by FRAME.
434
435         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
436         from FRAME instead of using read_register.
437         (thumb_get_next_pc): Likewise.
438         (arm_get_next_pc): Likewise.
439         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
440         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
441         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
442         argument by FRAME.
443
444         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
445         from FRAME instead of using read_register.
446         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
447         to find_step_target.
448
449         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
450         from FRAME instead of using read_register / read_signed_register.
451         (extended_mips16_next_pc): Likewise.
452         (mips16_next_pc): Likewise.
453         (mips_next_pc): Likewise.
454         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
455         to mips_next_pc.  Use get_frame_pc instead of read_pc.
456         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
457         argument by FRAME.
458
459         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
460         of current frame.  Read registers from FRAME.
461         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
462         branch_dest.  Use get_frame_pc instead of read_pc.
463         (rs6000_software_single_step): Likewise.
464         (bl_to_blrl_insn_p): Do not call branch_dest.
465         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
466         argument by FRAME.
467
468         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
469         Read registers from FRAME instead of current regcache.
470         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
471         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
472         * sparc-tdep.c (sparc_address_from_register): Remove.
473         (sparc_analyze_control_transfer): Pass FRAME argument instead of
474         GDBARCH.  Pass FRAME to step_trap callback.
475         (sparc_step_trap): Add FRAME argument.
476         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
477         to sparc_analyze_control_transfer.  Read registers from FRAME instead
478         of calling sparc_address_from_register.
479         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
480         step_trap callback.
481         (sparc_address_from_register): Remove prototype.
482         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
483         (sparcnbsd_step_trap): Add FRAME argument.
484
485         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
486         by FRAME.  Read registers from FRAME instead of REGCACHE.
487
488 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
489
490         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
491         instead of calling read_register.
492
493         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
494         calling write_register.
495
496         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
497         calling write_register.
498
499         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
500         instead of calling read_register.
501         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
502         instead of calling read_register and write_register.
503
504         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
505         instead of current_regcache.
506
507         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
508         of calling write_register.
509         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
510         parameter instead of current_regcache.
511
512         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
513         instead of calling read_register.
514         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
515         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
516         (mips_n32n64_push_dummy_call): Likewise.
517         (mips_o32_push_dummy_call): Likewise.
518         (mips_o64_push_dummy_call): Likewise.
519
520         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
521         parameter instead of current_regcache.
522
523         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
524         Use it instead of read_register and write_register.
525         (xtensa_register_read_masked): Likewise.
526         (xtensa_pseudo_register_read): Update call.
527         (xtensa_pseudo_register_write): Likewise.
528         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
529         instead of calling read_register.
530         (xtensa_push_dummy_call): Update comment.
531
532 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
533
534         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
535         by frame_unwind_register_signed calls.
536         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
537         frame allocations when called with NULL NEXT_FRAME parameter.
538         (read_next_frame_reg): Remove.
539
540         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
541         instead of reading the FPSCR register.
542         (sh_frame_cache): Pass unwound FPSCR register value to
543         sh_analyze_prologue.
544         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
545
546         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
547         instead of reading the CTBP register.
548         (v850_frame_cache): Pass unwound CTBP register value to
549         v850_analyze_prologue.
550
551 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
552
553         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
554         * sh-tdep.c (sh_show_regs): Likewise.
555         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
556         (sh_generic_show_regs): Add FRAME parameter.  Use register
557         values from that frame instead of calling read_register.
558         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
559         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
560         sh_dsp_show_regs): Likewise.
561         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
562         sh64_show_regs): Likewise.
563
564 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
565
566         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
567         current regcache instead of calling read_register.
568
569 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
570
571         * mep-tdep.c (current_me_module): Read from current regcache
572         instead of calling read_register.
573         (current_options): Likewise.
574
575 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
576
577         * cris-tdep.c (cris_stopped_data_address): Read register values
578         from current frame instead of calling read_register.
579         * frv-tdep.c (frv_stopped_data_address): Likewise.
580
581 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
582
583         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
584         instead of write_register (PC_REGNUM, ...).
585
586 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
587
588         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
589         explaining why the PC adjustment code is necessary.
590
591 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
592
593         * m68k-tdep.h (enum m68k_flavour): New. 
594         (struct gdbarch_tdep): New fields
595         float_return, flavour and fpregs_present.
596         * m68k-tdep.c (m68k_register_type): Use
597         fpregs_present and conditionalize floating
598         registers type on flavour.
599         (m68k_register_names): New.
600         (m68k_register_name): Use the above.
601         (m68k_convert_register_p): Consult fpregs_present.
602         (m68k_register_to_value, m68k_value_to_register):
603         Use register_type to obtain the type of floating
604         point registers.
605         (m68k_svr4_extract_return_value): Check tdep->float_return.
606         Use register_type to get the type of floating
607         point regiters.
608         (m68k_svr4_store_return_value): Likewise.
609         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
610         (m68k_analyze_register_saves): Likewise.
611         (m68k_gdbarch_init): Extract infromation
612         from XML description, if present.  Guess coldfire by
613         looking at the file, if present. Conditionalize
614         setting of long double format.  Set decr_pc_after_break
615         to 2 on coldfire and fido.  Enable XML-driven
616         register description.
617         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
618         size of tdep->fpreg_type, as opposed to hardcoded value.
619         * Makefile.in (m68k-tdep.o): Update dependencies.
620         
621 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
622
623         * NEWS: Mention "info spu" commands and qXfer:spu:read and
624         qXfer:spu:write remote packet types.
625
626 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
627
628         * xml-tdesc.c (tdesc_start_target): New.
629         (target_attributes): New.
630         (tdesc_elements): Use it.
631         * features/gdb-target.dtd: Add #FIXED version attribute for
632         <target>.
633
634 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
635
636         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
637
638 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
639
640         * fork-child.c (fork_inferior): Update comment.
641
642 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
643
644         * features/Makefile: Generate regformats for mips-linux and
645         mips64-linux.
646         * features/sort-regs.xsl: Correct typo.
647         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
648         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
649         files.
650
651 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
652
653         * config/mips/linux.mh (TDEP_XML): New.
654         * features/mips-linux.xml, features/mips64-linux.xml: New files.
655         * mips-linux-nat.c (mips_linux_register_addr): Handle
656         MIPS_RESTART_REGNUM.
657         (mips64_linux_register_addr): Likewise.
658         (super_xfer_partial, mips_linux_xfer_partial): New.
659         (_initialize_mips_linux_nat): Add them to the target_ops.
660         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
661         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
662         (mips_linux_o32_sigframe_init)
663         (mips_linux_n32n64_sigframe_init): Likewise.
664         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
665         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
666         "org.gnu.gdb.mips.linux" feature.
667         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
668         (mips_linux_restart_reg_p): New prototype.
669         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
670         initialization routine.
671         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
672
673 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
674
675         * Makefile.in (mips-tdep.o): Update.
676         * mips-tdep.c (struct register_alias, mips_o32_aliases)
677         (mips_n32_n64_aliases, mips_register_aliases): New.
678         (mips_register_name): Call tdesc_register_name.
679         (mips_tdesc_register_reggroup_p): New.
680         (mips_pseudo_register_type, value_of_mips_user_reg): New.
681         (mips_gdbarch_init): Add target-described register support.
682         Register aliases for register names.
683         * target-descriptions.c (tdesc_register_name): Make global.
684         (tdesc_register_in_reggroup_p): New function, broken out from
685         tdesc_register_reggroup_p.
686         (tdesc_register_reggroup_p): Use it.
687         * target-descriptions.h (tdesc_register_name)
688         (tdesc_register_in_reggroup_p): New prototypes.
689         * NEWS: Correct formatting.  Mention MIPS register support.
690         * features/mips-cp0.xml, features/mips-fpu.xml,
691         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
692         features/mips64-cpu.xml: New files.
693
694 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
695
696         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
697         * valops.c (value_cast): Likewise.
698         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
699         * ui-out.c (ui_out_field_core_addr): Likewise.
700         * tracepoint.c (tracepoints_info): Likewise.
701         * symtab.c (print_msymbol_info): Likewise.
702         * solib-irix.c (irix_current_sos)
703         (irix_open_symbol_file_object): Likewise.
704         * remote.c (build_remote_gdbarch_data): Likewise.
705         * prologue-value.c (make_pv_area): Likewise.
706         * procfs.c (info_mappings_callback): Likewise.
707         * printcmd.c (print_scalar_formatted)
708         (deprecated_print_address_numeric): Likewise.
709         * memattr.c (mem_info_command): Likewise.
710         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
711         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
712         * exec.c (print_section_info): Likewise.
713         * dwarf2read.c (read_subrange_type): Likewise.
714         * dwarf2loc.c (find_location_expression): Likewise.
715         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
716         (signed_address_type, execute_stack_op): Likewise.
717         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
718         * gdbarch.c, gdbarch.h: Regenerate.
719
720 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
721
722         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
723         * arch-utils.c (show_architecture): Likewise.
724         * remote-mips.c (mips_open): Likewise
725         * nto-tdep.c (nto_find_and_open_solib)
726         (nto_init_solib_absolute_prefix): Likewise.
727         * nto-procfs (procfs_open): Likewise.
728         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
729         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
730         * gdbarch.c, gdbarch.h: Regenerate.
731
732 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
733
734         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
735         * gdbtypes.c (build_flt): Likewise.
736         * gdbarch.c, gdbarch.h: Regenerate.
737
738 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
739
740         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
741         gdbarch_breakpoint_from_pc.
742         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
743         * remote.c (remote_insert_breakpoint)
744         (remote_insert_hw_breakpoint): Likewise.
745         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
746         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
747         * breakpoint.h (bp_target_info): Likewise (comment).
748         * breakpoint.c (read_memory_nobpt): Likewise.
749         * mem-break.c (default_memory_insert_breakpoint): Likewise.
750         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
751         * gdbarch.c, gdbarch.h: Regenerate.
752
753 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
754
755         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
756         * solib-svr4.c (svr4_truncate_ptr): Likewise.
757         * solib-pa64.c (read_dynamic_info): Likewise.
758         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
759         * solib.c (info_sharedlibrary_command): Likewise.
760         * s390-nat.c (SUBOFF): Likewise.
761         * p-valprint.c (pascal_val_print): Likewise.
762         * procfs.c (info_proc_mappings): Likewise.
763         * printcmd.c (decode_format): Likewise.
764         * nto-tdep.c (nto_truncate_ptr): Likewise.
765         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
766         (mips64_linux_get_longjmp_target): Likewise.
767         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
768         * jv-valprint.c (java_value_print): Likewise.
769         * jv-lang.c (get_java_object_header_size): Likewise.
770         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
771         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
772         (hppa_hpux_unwind_adjust_stub): Likewise.
773         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
774         * gdbtypes.c (make_pointer_type, make_reference_type)
775         (smash_to_memberptr_type): Likewise.
776         * gdbarch.c, gdbarch.h: Regenerate.
777
778 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
779
780         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
781         (print_gp_register_row): Stop before printing a register bigger
782         than the ABI register size.
783         (mips_print_registers_info): Update call to mips_print_register.
784
785 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
786
787         * expression.h (enum exp_opcode): Document a register name for
788         OP_REGISTER.
789         * parse.c (write_dollar_variable): Write the register name for
790         OP_REGISTER.
791         (operator_length_standard): Expect the register name following
792         OP_REGISTER.
793         * ada-lang.c (resolve_subexp): Likewise.
794         * ax-gdb.c (gen_expr): Likewise.
795         * eval.c (evaluate_subexp_standard): Likewise.
796         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
797         Likewise.
798         * tracepoint.c (encode_actions): Likewise.
799
800 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
801
802         * utils.c (set_screen_size): Use INT_MAX for default columns.
803
804 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
805
806         * remote.c (remote_protocol_features): Add qXfer:spu:read and
807         qXfer:spu:write packet types.
808
809 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
810
811         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
812         * gdbarch.c, gdbarch.h: Regenerate.
813
814 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
815
816         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
817         gdbarch_stab_reg_to_regnum.
818         * stabsread.c (define_symbol): Likewise.
819         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
820         gdbarch_ecoff_reg_to_regnum.
821         * mdebugread.c (parse_symbol): Likewise.
822         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
823         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
824         gdbarch_dwarf_reg_to_regnum.
825         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
826         * coffread.c (process_coff_symbol): Likewise.
827         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
828         gdbarch_dwarf2_reg_to_regnum.
829         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
830         (locexpr_describe_location): Likewise.
831         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
832         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
833         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
834         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
835         * gdbarch.c, gdbarch.h: Regenerate.
836
837 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
838
839         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
840         gdbarch_smash_text_address.
841         * somread.c (som_symtab_read): Likewise.
842         * elfread.c (record_minimal_symbol): Likewise.
843         * dbxread.c (process_one_symbol): Likewise.
844         * coffread.c (coff_symtab_read): Likewise.
845         * gdbarch.c, gdbarch.h: Regenerate.
846
847 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
848
849         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
850         * findvar.c (value_from_register): Likewise.
851         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
852         * valops.c (value_assign): Likewise.
853         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
854         gdbarch_convert_register_p.
855         * findvar.c (value_from_register): Likewise.
856         * valops.c (value_assign): Likewise.
857         * gdbarch.c, gdbarch.h: Regenerate.
858
859 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
860
861         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
862         gdbarch_register_sim_regno.
863         * sim-regno.h (sim_regno): Likewise (comment).
864         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
865         * gdbarch.c, gdbarch.h: Regenerate.
866
867 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
868
869         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
870         gdbarch_virtual_frame_pointer.
871         * tracepoint.c (encode_actions): Likewise.
872         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
873         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
874         * gdbarch.c, gdbarch.h: Regenerate.
875
876 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
877
878         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
879         * p-lang.c (pascal_create_fundamental_type): Likewise.
880         * objc-lang.c (objc_create_fundamental_type): Likewise.
881         * mdebugread.c (_initialize_mdebugread): Likewise.
882         * m2-lang.c (m2_create_fundamental_type)
883         (_initialize_m2_language): Likewise.
884         * gdbtypes.c (build_gdbtypes): Likewise.
885         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
886         * doublest.c (floatformat_from_length): Likewise.
887         * c-lang.c (c_create_fundamental_type): Likewise.
888         * ada-lang.c (ada_create_fundamental_type)
889         (ada_language_arch_info): Likewise.
890         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
891         * value.c (unpack_double): Likewise (comment).
892         * gdbtypes.c (build_gdbtypes): Likewise.
893         * doublest.c (floatformat_from_length): Likewise.
894         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
895         * valarith.c (value_binop): Likewise.
896         * p-lang.c (pascal_create_fundamental_type): Likewise.
897         * objc-lang.c (objc_create_fundamental_type): Likewise.
898         * mdebugread.c (_initialize_mdebugread): Likewise.
899         * m2-lang.c (m2_create_fundamental_type): Likewise.
900         * gdbtypes.c (build_gdbtypes): Likewise.
901         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
902         * doublest.c (floatformat_from_length): Likewise.
903         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
904         * c-lang.c (c_create_fundamental_type): Likewise.
905         * ada-lex.l (processReal): Likewise.
906         * ada-lang.c (ada_create_fundamental_type)
907         (ada_language_arch_info): Likewise.
908         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
909         * value.c (unpack_double): Likewise (comment).
910         * gdbtypes.c (build_gdbtypes): Likewise.
911         * doublest.c (floatformat_from_length): Likewise.
912         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
913         gdbarch_long_double_bit.
914         * p-lang.c (pascal_create_fundamental_type): Likewise.
915         * objc-lang.c (objc_create_fundamental_type): Likewise.
916         * m2-lang.c (m2_create_fundamental_type): Likewise.
917         * gdbtypes.c (build_gdbtypes): Likewise.
918         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
919         * doublest.c (floatformat_from_length): Likewise.
920         * c-lang.c (c_create_fundamental_type): Likewise.
921         * ada-lex.l (processReal): Likewise.
922         * ada-lang.c (ada_create_fundamental_type)
923         (ada_language_arch_info): Likewise.
924         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
925         gdbarch_long_double_format.
926         * gdbtypes.c (build_gdbtypes): Likewise.
927         * doublest.c (floatformat_from_length): Likewise.
928         * gdbarch.c, gdbarch.h: Regenerate.
929
930 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
931
932         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
933         * ada-lang.c (ada_create_fundamental_type)
934         (ada_language_arch_info): Likewise.
935         * c-lang.c (c_create_fundamental_type): Likewise.
936         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
937         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
938         * m2-lang.c (m2_create_fundamental_type): Likewise.
939         * objc-lang.c (objc_create_fundamental_type): Likewise.
940         * p-lang.c (pascal_create_fundamental_type): Likewise.
941         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
942         * c-exp.y (parse_number): Likewise.
943         * objc-exp.y (parse_number): Likewise.
944         * ada-lex.l (processInt): Likewise.
945         * f-exp.y (parse_number): Likewise.
946         * p-exp.y (parse_number): Likewise.
947         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
948         (gdbtypes_post_init, build_gdbtypes): Likewise.
949         * p-lang.c (pascal_create_fundamental_type): Likewise.
950         * parse.c (build_parse): Likewise.
951         * xcoffread.c (_initialize_xcoffread): Likewise.
952         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
953         (read_range_type): Likewise.
954         * objc-lang.c (objc_create_fundamental_type): Likewise.
955         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
956         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
957         (m2_create_fundamental_type): Likewise.
958         * c-lang.c (c_create_fundamental_type): Likewise.
959         * coffread.c (coff_read_enum_type): Likewise.
960         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
961         * dwarf2read.c (new_symbol): Likewise.
962         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
963         * c-exp.y (parse_number): Likewise.
964         * objc-exp.y (parse_number): Likewise.
965         * ada-lex.l (processInt): Likewise.
966         * f-exp.y (parse_number): Likewise.
967         * p-exp.y (parse_number): Likewise.
968         * valarith.c (value_binop): Likewise.
969         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
970         * ada-lang.c (ada_create_fundamental_type)
971         (ada_language_arch_info): Likewise.
972         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
973         * symfile.c (TARGET_LONG_BYTES): Likewise.
974         * p-lang.c (pascal_create_fundamental_type): Likewise.
975         * objc-lang.c (objc_create_fundamental_type): Likewise.
976         * m2-lang.c (m2_create_fundamental_type): Likewise.
977         * f-lang.c (f_create_fundamental_type): Likewise.
978         * c-lang.c (c_create_fundamental_type): Likewise.
979         * coffread.c (decode_base_type): Likewise.
980         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
981         * c-exp.y (parse_number): Likewise.
982         * objc-exp.y (parse_number): Likewise.
983         * p-exp.y (parse_number): Likewise.
984         * ada-lang.c (ada_create_fundamental_type)
985         (ada_language_arch_info): Likewise.
986         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
987         * stabsread.c (read_range_type): Likewise.
988         * p-lang.c (pascal_create_fundamental_type): Likewise.
989         * objc-lang.c (objc_create_fundamental_type): Likewise.
990         * m2-lang.c (m2_create_fundamental_type): Likewise.
991         * f-lang.c (f_create_fundamental_type): Likewise.
992         * c-lang.c (c_create_fundamental_type): Likewise.
993         * gdbarch.c, gdbarch.h: Regenerate.
994
995 2007-06-12  Andreas Schwab  <schwab@suse.de>
996
997         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
998         (struct frame_unwind): Add dealloc_cache.
999         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1000
1001         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1002         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1003         (libunwind_frame_unwind): Set dealloc_cache.
1004         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1005
1006 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1007             Markus Deuling  <deuling@de.ibm.com>
1008
1009         * remote.c (remote_write_qxfer): New function.
1010         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1011         (remote_read_qxfer): Do not cache empty objects.
1012         (_initialize_remote): Add PACKET_qXfer_spu_read and
1013         PACKET_qXfer_spu_write.
1014
1015 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1016
1017         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1018         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1019
1020         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1021         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1022         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1023         * spu-tdep.c (infospucmdlist): New variable.
1024         (spu_register_name): Handle additional pseudo registers.
1025         (spu_register_type): Likewise.
1026         (spu_pseudo_register_read): Likewise.
1027         (spu_pseudo_register_write): Likewise.
1028         (spu_pseudo_register_read_spu): New function.
1029         (spu_pseudo_register_write_spu): Likewise.
1030         (info_spu_event_command): New function.
1031         (info_spu_signal_command): Likewise.
1032         (info_spu_mailbox_list): Likewise.
1033         (info_spu_mailbox_command): Likewise.
1034         (spu_mfc_get_bitfield): Likewise.
1035         (info_spu_dma_cmdlist): Likewise.
1036         (info_spu_dma_command): Likewise.
1037         (info_spu_proxydma_command): Likewise.
1038         (info_spu_command): Likewise.
1039         (_initialize_spu_tdep): Install "info spu" commands.
1040
1041 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1042
1043         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1044         accessing non-seekable spufs files.
1045
1046 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1047
1048         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1049         gdbarch_skip_trampoline_code.
1050         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1051         * objc-lang.c (objc_skip_trampoline)
1052         (objc_submethod_helper_data): Likewise.
1053         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1054         * infrun.c (handle_inferior_event): Likewise.
1055         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1056         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1057         gdbarch_in_solib_return_trampoline.
1058         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1059         * infrun.c (handle_inferior_event): Likewise.
1060         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1061         * gdbarch.c, gdbarch.h: Regenerate.
1062
1063 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1064
1065         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1066         * symtab.c (find_function_start_sal, in_prologue): Likewise.
1067         * linespec.c (minsym_found): Likewise.
1068         * infrun.c (step_into_function): Likewise.
1069         * gdbarch.c, gdbarch.h: Regenerate.
1070
1071 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1072
1073         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1074         * valops.c (value_allocate_space_in_inferior): Likewise.
1075         * gdbarch.c, gdbarch.h: Regenerate.
1076
1077 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1078
1079         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1080         gdbarch_memory_insert_breakpoint.
1081         * mem-break.c (memory_insert_breakpoint): Likewise.
1082         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1083         gdbarch_memory_remove_breakpoint.
1084         * mem-break.c (memory_remove_breakpoint): Likewise.
1085         * gdbarch.c, gdbarch.h: Regenerate.
1086
1087 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1088
1089         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1090         gdbarch_fetch_tls_load_module_address.
1091         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1092         gdbarch_fetch_tls_load_module_address_p.
1093         * gdbarch.c, gdbarch.h: Regenerate.
1094
1095 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1096
1097         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1098         gdbarch_decr_pc_after_break.
1099         * tracepoint.c (trace_dump_command): Likewise.
1100         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1101         * linux-thread-db.c (check_event): Likewise.
1102         * linux-nat.c (cancel_breakpoints_callback): Likewise.
1103         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1104         * frame.h: Likewise (comment).
1105         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1106         * aix-thread.c (aix_thread_wait): Likewise.
1107         * gdbarch.c, gdbarch.h: Regenerate.
1108
1109 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1110
1111         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1112         gdbarch_address_class_type_flags.
1113         * dwarf2read.c (read_tag_pointer_type): Likewise.
1114         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1115         gdbarch_address_class_type_flags_p.
1116         * dwarf2read.c (read_tag_pointer_type): Likewise.
1117         * gdbarch.c, gdbarch.h: Regenerate.
1118
1119 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1120
1121         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1122         * value.c (value_as_address): Likewise (comment).
1123         * remote-mips.c (common_breakpoint): Likewise.
1124         * regcache.c (read_pc_pid): Likewise.
1125         * printcmd.c (do_one_display): Likewise.
1126         * monitor.c (monitor_write_memory, monitor_read_memory)
1127         (monitor_insert_breakpoint): Likewise.
1128         * mips-tdep.c (heuristic_proc_start): Likewise.
1129         * infrun.c (insert_step_resume_breakpoint_at_frame)
1130         (insert_step_resume_breakpoint_at_caller): Likewise.
1131         * buildsym.c (record_line): Likewise.
1132         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1133         (arm_get_next_pc): Likewise.
1134         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1135         (store_regs): Likewise.
1136         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1137         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1138         * gdbarch.c, gdbarch.h: Regenerate.
1139
1140 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1141
1142         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1143         * tracepoint.c (scope_info): Likewise.
1144         * target.c (debug_print_register): Likewise.
1145         * stack.c (frame_info): Likewise.
1146         * sh-tdep.c (sh_register_reggroup_p): Likewise.
1147         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1148         (sh64_media_print_registers_info)
1149         (sh64_compact_print_registers_info): Likewise.
1150         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1151         * remote-sim.c (gdbsim_fetch_register): Likewise.
1152         * remote.c (packet_reg): Likewise (comment).
1153         * reggroups.c (default_register_reggroup_p): Likewise.
1154         * regcache.c (regcache_dump): Likewise.
1155         * printcmd.c (address_info): Likewise.
1156         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1157         * mt-dep.c (mt_registers_info): Likewise.
1158         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1159         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1160         (mips_read_fp_register_double, mips_print_fp_register)
1161         (mips_print_register, print_gp_register_row, mips_print_registers_info)
1162         (mips_register_sim_regno): Likewise.
1163         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1164         * inf-ptrace.c (inf_ptrace_fetch_register)
1165         (inf_ptrace_store_register): Likewise.
1166         * infcmd.c (default_print_registers_info): Likewise.
1167         * ia64-linux-nat.c (ia64_linux_fetch_register)
1168         (ia64_linux_store_register): Likewise.
1169         * i386-linux-nat.c (fetch_register, store_register): Likewise.
1170         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1171         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1172         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1173         (hppa_hpux_store_register): Likewise.
1174         * findvar.c (locate_var_value): Likewise.
1175         * dwarf2loc.c (locexpr_describe_location): Likewise.
1176         * dwarf2-frame.c (execute_cfa_program): Likewise.
1177         * arm-tdep.c (arm_push_dummy_call): Likewise.
1178         * arch-utils.c (legacy_register_sim_regno): Likewise.
1179         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1180         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1181         * mi/mi-main.c (mi_cmd_data_list_register_names)
1182         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1183         (mi_cmd_data_write_register_values): Likewise.
1184         * gdbarch.c, gdbarch.h: Regenerate.
1185
1186 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
1187
1188         * target-memory.c (blocks_to_erase): Correct off-by-one error.
1189
1190 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
1191         
1192         * remote.c (process_g_packet): Don't check size.
1193         * gdbarch.sh: Remove register_bytes_ok.
1194         * gdbarch.c: Regenerated.
1195         * gdbarch.h: Regenerated.
1196         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1197         (m68k_register_bytes_ok): Remove.
1198         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1199         
1200 2007-06-06  Andreas Schwab  <schwab@suse.de>
1201
1202         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1203         (destroy_addr_space_name): Define.
1204         (libunwind_load): Get address of destroy_addr_space function.
1205         (libunwind_frame_cache): Destroy unw_addr_space_t object before
1206         returning unsuccessfully.
1207         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1208         returning.
1209         (libunwind_sigtramp_frame_sniffer): Likewise.
1210         (libunwind_get_reg_special): Likewise.
1211
1212 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1213
1214         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1215         gdbarch_fetch_pointer_argument.
1216         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1217         * gdbarch.c, gdbarch.h: Regenerate.
1218
1219 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1220
1221         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1222         gdbarch_have_nonsteppable_watchpoint.
1223         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1224         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1225         gdbarch_cannot_step_breakpoint.
1226         * infrun.c (resume): Likewise.
1227         * gdbarch.c, gdbarch.h: Regenerate.
1228
1229 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1230
1231         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1232         * stack.c (print_frame_args): Likewise.
1233         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1234         * stack.c (print_args_stub, frame_info): Likewise.
1235         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1236         * stack.c (print_args_stub, frame_info): Likewise.
1237         * gdbarch.c, gdbarch.h: Regenerate.
1238
1239 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1240
1241         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1242         gdbarch_coff_make_msymbol_special.
1243         * coffread.c (coff_symtab_read): Likewise.
1244         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1245         gdbarch_elf_make_msymbol_special.
1246         * elfread.c (elf_symtab_read): Likewise.
1247         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1248         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1249         * gdbarch.c, gdbarch.h: Regenerate.
1250
1251 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1252
1253         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1254         gdbarch_frame_red_zone_size.
1255         * gdbarch.c, gdbarch.h: Regenerate.
1256
1257 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1258
1259         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1260         * infcall.c (call_function_by_hand): Likewise.
1261         * gcore.c (derive_stack_segment): Likewise.
1262         * frame.c (frame_id_inner): Likewise.
1263         * arch-utils.c (core_addr_lessthan): Likewise (comment).
1264         * ada-lang.c (ensure_lval): Likewise.
1265         * gdbarch.c, gdbarch.h: Regenerate.
1266
1267 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1268
1269         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1270         gdbarch_address_to_pointer.
1271         * findvar.c (store_typed_address): Likewise.
1272         * gdbtypes.c (make_pointer_type): Likewise (comment).
1273         * procfs.c (procfs_address_to_host_pointer): Likewise.
1274         * std-regs.c (value_of_builtin_frame_reg): Likewise.
1275         (value_of_builtin_frame_fp_reg): Likewise.
1276         (value_of_builtin_frame_pc_reg): Likewise.
1277         * utils.c (paddress): Likewise (comment).
1278         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1279         gdbarch_pointer_to_address.
1280         * findvar.c (extract_typed_address): Likewise.
1281         * gdbtypes.c (make_pointer_type): Likewise (comment).
1282         * valops.c (value_cast): Likewise (comment).
1283         * gdbarch.c, gdbarch.h: Regenerate.
1284
1285 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1286
1287         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1288         * infrun.c (handle_inferior_event): Likewise.
1289         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1290         gdbarch_get_longjmp_target_p.
1291         * breakpoint.c (breakpoint_re_set): Likewise.
1292         * infrun.c (handle_inferior_event): Likewise.
1293         * gdbarch.c, gdbarch.h: Regenerate.
1294
1295 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1296
1297         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1298         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1299         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1300         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1301         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1302         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1303         find_stub_with_shl_get, cover_find_stub_with_shl_get,
1304         initialize_hp_cxx_exception_support, child_enable_exception_callback,
1305         current_ex_event, child_get_current_exception_event): Remove.
1306         (hppa_hpux_inferior_created): Remove.
1307         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1308
1309         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1310         (deprecated_exception_support_initialized): Remove.
1311         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1312         (deprecated_exception_support_initialized): Remove.
1313         (breakpoint_init_inferior): Remove handling of non-zero
1314         deprecated_exception_catchpoints_are_fragile.
1315
1316         * symtab.h (deprecated_hp_som_som_object_present): Remove.
1317         * symtab.c (deprecated_hp_som_som_object_present): Remove.
1318         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1319         deprecated_hp_som_som_object_present.
1320         * eval.c (evaluate_subexp_standard): Likewise.
1321         * valops.c (value_cast): Likewise.
1322
1323         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1324         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1325         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1326
1327 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1328
1329         * objfiles.h (ImportEntry, ExportEntry): Remove types.
1330         (struct objfile): Remove import_list, import_list_size,
1331         export_list, export_list_size members.
1332         (is_in_import_list): Remove prototype.
1333         * objfiles.c (is_in_import_list): Remove.
1334         * somread.c (init_import_symbols, init_export_symbols): Remove.
1335         (som_symfile_read): Do not call init_import_symbols.  Do not
1336         set objfile->export_list and objfile->export_list_size.
1337
1338 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
1339
1340         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1341         Use the original objfile if necessary.
1342
1343 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
1344
1345         * defs.h (ldirname): New prototype.
1346         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1347         missing.
1348         * utils.c (ldirname): New function.
1349         * xml-tdesc.c (file_read_description_xml): Use ldirname.
1350
1351 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1352
1353         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1354
1355 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
1356
1357         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1358
1359 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1360
1361         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1362
1363 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1364
1365         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1366         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1367         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1368         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1369         (ppc_linux_in_sigtramp, insn_is_sigreturn,
1370         ppc_linux_at_sigtramp_return_path): Remove.
1371
1372 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1373
1374         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1375         (xtensa_register_write_masked, xtensa_register_read_masked)
1376         (xtensa_extract_return_value, xtensa_store_return_value
1377         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
1378         TARGET_BYTE_ORDER by gdbarch_byte_order.
1379         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1380         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1381         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1382         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1383         (sh64_push_dummy_call, sh64_extract_return_value)
1384         (sh64_store_return_value, sh64_register_convert_to_virtual)
1385         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1386         (sh64_pseudo_register_write, sh64_do_fp_register)
1387         (sh64_frame_prev_register): Likewise.
1388         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1389         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1390         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1391         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1392         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1393         * ppc-linux-nat.c (store_register): Likewise.
1394         * nto-tdep.c (nto_find_and_open_solib)
1395         (nto_init_solib_absolute_prefix): Likewise.
1396         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1397         (mips_convert_register_p, mips_eabi_push_dummy_call)
1398         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1399         (mips_o32_push_dummy_call, mips_o32_return_value)
1400         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1401         (mips_read_fp_register_single, mips_read_fp_register_double)
1402         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1403         (mips_breakpoint_from_pc): Likewise.
1404         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1405         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1406         (mips_linux_o32_sigframe_init): Likewise.
1407         * m32r-tdep.c (m32r_memory_insert_breakpoint)
1408         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1409         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1410         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1411         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1412         * coffread.c (process_coff_symbol): Likewise.
1413         * arm-tdep.c (convert_from_extended, convert_to_extended)
1414         (gdb_print_insn_arm): Likewise.
1415
1416 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1417
1418         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1419         * i386-tdep.c (i386_dbx_reg_to_regnum)
1420         (i386_svr4_reg_to_regnum): Likewise.
1421         * inf-ptrace.c (inf_ptrace_fetch_registers)
1422         (inf_ptrace_store_registers): Likewise.
1423         * corelow.c (get_core_registers): Likewise.
1424         * i386-linux-nat.c (supply_gregset, fill_gregset)
1425         (i386_linux_fetch_inferior_registers)
1426         (i386_linux_store_inferior_registers): Likewise.
1427         * remote.c (init_remote_state,packet_reg_from_regnum)
1428         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1429         (remote_prepare_to_store,store_registers_using_G)
1430         (remote_store_registers,remote_arch_state): Likewise.
1431         * tracepoint.c (encode_actions): Likewise.
1432         * mi/mi-main.c (mi_cmd_data_list_register_names)
1433         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1434         (mi_cmd_data_write_register_values): Likewise.
1435         * tui/tui-regs.c (tui_show_register_group)
1436         (tui_show_register_group): Likewise.
1437         * xtensa-tdep.h (FP_ALIAS): Likewise.
1438         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1439         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1440         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1441         * win32-nat.c (do_win32_fetch_inferior_registers)
1442         (do_win32_store_inferior_registers,fetch_elf_core_registers
1443         * user-regs.h: Likewise (comment).
1444         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1445         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1446         * target-descriptions.h: Likewise (comment).
1447         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1448         * target.c (debug_print_register): Likewise.
1449         * stack.c (frame_info): Likewise.
1450         * stabsread.c (define_symbol): Likewise.
1451         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1452         (sh64_media_print_registers_info)
1453         (sh64_compact_print_registers_info): Likewise.
1454         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1455         * rs6000-nat.c (fetch_register,store_register): Likewise.
1456         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1457         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1458         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1459         * remote-m32r-sdi.c (m32r_fetch_registers)
1460         (m32r_store_registers): Likewise.
1461         * reggroups.c (default_register_reggroup_p): Likewise.
1462         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1463         (regcache_restore,regcache_dump): Likewise.
1464         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1465         * mips-tdep.c (mips_xfer_register,mips_register_name)
1466         (mips_register_reggroup_p,mips_pseudo_register_read)
1467         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1468         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1469         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1470         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1471         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1472         (print_gp_register_row,mips_print_registers_info)
1473         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1474         (mips_register_sim_regno): Likewise.
1475         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1476         (mips_linux_n32n64_sigframe_init): Likewise.
1477         * mips-linux-nat.c (mips_linux_register_addr)
1478         (mips64_linux_register_addr): Likewise.
1479         * findvar.c (value_of_register): Likewise.
1480         * infcmd.c (default_print_registers_info,registers_info)
1481         (print_vector_info,print_float_info): Likewise.
1482         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1483         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1484         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1485         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1486         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1487         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1488         (ia64_cannot_store_register,ia64_linux_fetch_registers)
1489         (ia64_linux_store_registers): Likewise.
1490         * hpux-thread.c (hpux_thread_fetch_registers)
1491         (hpux_thread_store_registers): Likewise.
1492         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1493         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1494         (h8300_register_type): Likewise.
1495         * dwarf2-frame.c (dwarf2_frame_cache)
1496         (dwarf2_frame_state_alloc_regs): Likewise.
1497         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1498         (cris_cannot_store_register,crisv32_cannot_fetch_register)
1499         (crisv32_cannot_store_register,cris_register_name): Likewise.
1500         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1501         * arch-utils.c (legacy_register_sim_regno)
1502         (legacy_virtual_frame_pointer): Likewise.
1503         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1504         * arm-tdep.h: Likewise (comment).
1505         * frv-tdep.c (frv_register_sim_regno): Likewise.
1506         * m68klinux-nat.c (old_fetch_inferior_registers)
1507         (old_store_inferior_registers): Likewise.
1508         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1509         * irix5-nat.c (fetch_core_registers): Likewise.
1510         * hppa-tdep.c (hppa_frame_cache): Likewise.
1511         * hppa-linux-nat.c (hppa_linux_register_addr)
1512         (hppa_linux_fetch_inferior_registers)
1513         (hppa_linux_store_inferior_registers): Likewise.
1514         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1515         (hppa_hpux_store_inferior_registers): Likewise.
1516         * amd64-nat.c (amd64_native_gregset_reg_offset)
1517         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1518         * dbug-rom.c (dbug_regname): Likewise.
1519         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1520         (HARD_PAGE_REGNUM (comment)): Likewise.
1521         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1522         * i386-tdep.c (i386_dbx_reg_to_regnum)
1523         (i386_svr4_reg_to_regnum): Likewise.
1524         * mi/mi-main.c (mi_cmd_data_list_register_names)
1525         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1526         (mi_cmd_data_write_register_values): Likewise.
1527         * gdbarch.c, gdbarch.h: Regenerate.
1528         * tui/tui-regs.c (tui_show_register_group): Likewise.
1529         * xtensa-tdep.h (FP_ALIAS): Likewise.
1530         * user-regs.h: Likewise (comment).
1531         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1532         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1533         * target-descriptions.h: Likewise (comment).
1534         * target.c (debug_print_register): Likewise.
1535         * stack.c (frame_info): Likewise.
1536         * stabsread.c (define_symbol): Likewise.
1537         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1538         (sh64_compact_print_registers_info): Likewise.
1539         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1540         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1541         (regcache_restore,regcache_dump): Likewise.
1542         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1543         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1544         (mips_stab_reg_to_regnum): Likewise.
1545         * findvar.c (value_of_register): Likewise.
1546         * infcmd.c (default_print_registers_info,registers_info)
1547         (print_vector_info,print_float_info): Likewise.
1548         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1549         * h8300-tdep.c (h8300_register_type): Likewise.
1550         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1551         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1552         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1553         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1554         * parse.c: Remove comment.
1555         * gdbarch.c, gdbarch.h: Regenerate
1556
1557 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1558
1559         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1560         gdbarch_cannot_fetch_register.
1561         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1562         * hppa-linux-nat.c (fetch_register): Likewise.
1563         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1564         * m68klinux-nat.c (fetch_register): Likewise.
1565         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1566         Likewise.
1567         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1568         gdbarch_cannot_store_register.
1569         * hppa-linux-nat.c (store_register): Likewise.
1570         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1571         * regcache.c (regcache_raw_write): Likewise.
1572         * m68klinux-nat.c (store_register): Likewise.
1573         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1574         * gdbarch.c, gdbarch.h: Regenerate.
1575
1576 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1577
1578         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
1579         * gdbarch.c, gdbarch.h: Regenerate.
1580
1581 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1582
1583         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
1584         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1585         * gdbarch.c, gdbarch.h: Regenerate.
1586
1587 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1588
1589         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
1590         * ax-gdb.c (gen_bitfield_ref): Likewise.
1591         * mi/mi-main.c (get_register): Likewise.
1592         * findvar.c (default_value_from_register, extract_signed_integer)
1593         (extract_unsigned_integer, extract_long_unsigned_integer)
1594         (store_signed_integer, store_unsigned_integer): Likewise.
1595         * regcache.c (regcache_dump): Likewise.
1596         * value.c (lookup_internalvar, value_of_internalvar)
1597         (set_internalvar): Likewise.
1598         * defs.h: Likewise.
1599         * valprint.c (print_binary_chars, print_octal_chars)
1600         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
1601         * infcmd.c (default_print_registers_info): Likewise.
1602         * arch-utils.c (selected_byte_order, show_endian): Likewise.
1603         * stabsread.c (define_symbol): Likewise.
1604         * doublest.c (floatformat_from_length, floatformat_from_type)
1605         (extract_typed_floating, store_typed_floating): Likewise.
1606         * gdbarch.c, gdbarch.h: Regenerate.
1607
1608 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1609
1610         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
1611         gdbarch_call_dummy_location.
1612         * infcall.c (call_function_by_hand): Likewise.
1613         * inferior.h: Change comment.
1614         * arch-utils.c: Change comment.
1615         * gdbarch.c, gdbarch.h: Regenerate.
1616
1617 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
1618
1619         * solib-aix5.c: Delete.
1620         * Makefile.in (solib-aix5.o): Delete rule.
1621
1622 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
1623
1624         * breakpoint.h (enum bpstat_what_main_action): Remove
1625         BPSTAT_WHAT_THROUGH_SIGTRAMP.
1626         * infrun.c (process_event_stop_test): Do not check for it.
1627
1628 2007-05-22  Chris Dearman  <chris@mips.com>
1629             Maciej W. Rozycki  <macro@mips.com>
1630
1631         * ser-unix.c (show_serial_hwflow): New function.
1632         (hardwire_raw): Add hardware flow control support.
1633         (_initialize_ser_hardwire): Add "set/show remoteflow".
1634         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
1635         * NEWS: Document the new command.
1636
1637 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
1638
1639         * config/i386/tm-linux.h (sys_quotactl): Do not define.
1640         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
1641         define for i[[3456]]86-*-linux* native configurations.
1642         * config.in, configure: Regenerate.
1643
1644 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
1645
1646         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
1647         a core file. Add comment in the function description.
1648
1649 2007-05-18  Caroline Tice  <ctice@apple.com>
1650
1651         * c-valprint.c (c_value_print):  If the initialized field of the
1652         value struct is 0, print out "[uninitialized]" before the value.
1653         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
1654         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
1655         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
1656         ctx->initialized appropriately. Verify no location op follows
1657         DW_OP_GNU_uninit.
1658         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
1659         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
1660         set_value_initialized.
1661         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1662         (decode_locdesc): Add case for DW_OP_GNU_uninit.
1663         * value.c (struct value):  New field, initialized.
1664         (allocate_value): Initialize new field.
1665         (set_value_initialized): New function.
1666         (value_initialized): New function.
1667         * value.h (value_initialized): New extern declaration.
1668         (set_value_initialized): Likewise.
1669         
1670 2007-05-18  Caroline Tice  <ctice@apple.com>
1671
1672         * MAINTAINERS (Write After Approval): Add self.
1673         
1674 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
1675
1676         * gdbtypes.c (make_reference_type): Preserve the type chain
1677         and set the length of all the variants of the pointer type.
1678
1679 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
1680
1681         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
1682         and set the length of all the variants of the pointer type.
1683
1684 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
1685
1686         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
1687         comment.
1688         (mips_o64_push_dummy_call): Reformat a comment.
1689
1690 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
1691
1692         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
1693         (score_prologue_frame_base_address): Return fp to keep gdb print
1694         local variables correctly when debugging information is stabs.
1695
1696         (score_analyze_prologue): For software watchpoint, fetch all the
1697         instructions from range [startaddr, pc] once and identify them locally
1698         to reduce memory access.
1699         (score_malloc_and_get_memblock, score_free_memblock)
1700         (score_adjust_memblock_ptr): New functions.
1701         (score_fetch_inst): Fetch single instruction or mutiple instructions.
1702
1703         (score_target_can_use_watch, score_stopped_by_watch)
1704         (score_target_insert_watchpoint, score_target_remove_watchpoint)
1705         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
1706         New functions for remote & local hw-watchpoint and hw-breakpoint.
1707
1708 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
1709
1710         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
1711         declarations as well.
1712
1713 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
1714
1715         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
1716         * config/arm/tm-embed.h: Delete file.
1717
1718         * arm-tdep.h (arm_software_single_step): Declare.
1719         * arm-tdep.c (arm_software_single_step): Make global.
1720         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
1721         from here to ...
1722         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
1723         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
1724         * armobsd-tdep.c (armobsd_init_abi): ... here ...
1725         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
1726
1727         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
1728         allow defines to be overriden by TM file.
1729         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
1730         change default to {0xbe,0xbe}.
1731         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
1732         arm_obsd_thumb_be_breakpoint): New global variables.
1733         (armobsd_init_abi): Override tdep->thumb_breakpoint and
1734         tdep->thumb_breakpoint_size.
1735         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
1736         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
1737         tdep->thumb_breakpoint_size.
1738
1739         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
1740
1741 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
1742
1743         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
1744         saved-gpreg-size".
1745
1746         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
1747         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
1748         (mips_stack_argsize_string, mips_stack_argsize): Delete.
1749         (mips_abi_regsize): Simplify.
1750         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1751         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1752         (mips_o32_return_value, mips_o64_push_dummy_call)
1753         (mips_o64_return_value): Propogate constant register sizes.  Use the
1754         ABI register size instead of mips_stack_argsize.
1755         (mips_dump_tdep): Don't print mips_stack_argsize.
1756         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
1757         settings.
1758
1759 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
1760
1761         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
1762         * config/mips/tm-linux.h: Delete.
1763         * mips-linux-tdep.c (mips_svr4_so_ops): New.
1764         (mips_linux_in_dynsym_resolve_code): Make static.  Use
1765         svr4_in_dynsym_resolve_code.
1766         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
1767         set_solib_ops.
1768         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
1769         global.
1770         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
1771         * Makefile.in (mips-linux-tdep.o): Update.
1772         * solib.c (set_solib_ops): New.
1773         (current_target_so_ops): Update comment.
1774         * solib.h (set_solib_ops): New prototype.
1775
1776 2007-05-16  Chris Dearman  <chris@mips.com>
1777
1778         * printcmd.c (do_examine): Fix typos in a comment.
1779
1780 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
1781
1782         * configure.ac: Allow sysroots to be relocated under $prefix as
1783         well as $exec_prefix.
1784         * configure: Regenerate.
1785
1786 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
1787
1788         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
1789         (offsetof): Do not define.
1790         (find_stub_with_shl_get): Use numerical value 3 instead of
1791         symbolic value TYPE_PROCEDURE.
1792
1793 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1794
1795         * gdb_proc_service.h (paddr_t): Delete typedef.
1796         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
1797         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
1798         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
1799         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
1800         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
1801         * Makefile.in (proc-service.o): Update.
1802
1803 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1804
1805         * Makefile.in (mips-tdep.o): Update.
1806         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
1807         unwinder.
1808
1809 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1810
1811         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
1812         instead of store_typed_address.
1813         * value.c (pack_long): New.
1814         (value_from_longest): Use it.
1815         * value.h (pack_long): New prototype.
1816
1817 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1818
1819         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
1820         DW_EH_PE_signed if appropriate.
1821
1822 2007-05-14  Paul Brook  <paul@codesourcery.com>
1823             Daniel Jacobowitz  <dan@codesourcery.com>
1824
1825         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
1826         function.
1827         (dwarf_decode_lines): Check for line info without a file.
1828
1829 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1830
1831         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
1832         as hexadecimal.
1833
1834 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1835
1836         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1837         STRUCTOP_STRUCT.
1838         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1839         STRUCTOP_STRUCT.
1840         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1841
1842 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
1843
1844         * gdbarch.sh (read_sp): Remove.
1845         * gdbarch.c, gdbarch.h: Regenerate.
1846         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1847
1848         * avr-tdep.c (avr_read_sp): Remove.
1849         (avr_unwind_sp): New function.
1850         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1851         * mips-tdep.c (mips_read_sp): Remove.
1852         (mips_unwind_sp): New function.
1853         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1854         * score-tdep.c (score_read_unsigned_register): Remove.
1855         (score_read_sp): Remove.
1856         (score_unwind_sp): New function.
1857         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1858
1859 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
1860
1861         * buildsym.c (start_subfile): Handle absolute pathnames
1862         while comparing subfile names.
1863
1864 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1865
1866         * hppa-hpux-tdep.c: Include "regcache.h".
1867         * hppa-linux-tdep.c: Likewise.
1868         * hppa-tdep.c: Include "gdb_stdint.h".
1869         (find_unwind_entry): Cast host pointer to uintptr_t before passing
1870         it to paddr_nz.
1871         * Makefile.in: Update dependencies.
1872
1873 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1874
1875         * blockframe.c: Remove obsolete comments.
1876         * alpha-nat.c (fetch_osf_core_registers): Update comment.
1877         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1878         * hppa-tdep.h (enum hppa_regnum): Likewise.
1879         * mips-tdep.h: Likewise.
1880         * m68hc11-tdep.c: Likewise.
1881
1882 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1883
1884         * inferior.h (read_sp): Remove prototype.
1885         * regcache.c (read_sp): Remove.
1886         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1887         * infcall.c (call_function_by_hand): Likewise.
1888         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1889         of calling read_sp.
1890         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1891
1892 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1893
1894         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
1895         instead of read_register and read_register_pid.
1896
1897         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
1898         argument instead of PTID.  Use regcache functions instead of
1899         read_register_pid.
1900         (ia64_linux_insert_watchpoint): Update call.
1901         (ia64_linux_stopped_data_address): Use regcache functions
1902         instead of read_register_pid and write_register_pid.
1903
1904 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1905
1906         * libunwind-frame.h (struct regcache): Add forward declaration.
1907         (libunwind_get_reg_special): Add REGCACHE argument.
1908         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1909         argument.  Pass it to unw_init_remote_p.
1910
1911         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1912         libunwind_get_reg_special.
1913         (ia64_access_reg): Remove "write" case.
1914         (ia64_access_fpreg): Likewise.  Read from next_frame passed
1915         as callback argument instead of from current_regcache.
1916         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
1917         passed as callback argument instead of from current_regcache.
1918         (ia64_access_rse_fpreg): New function.
1919         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1920
1921 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1922
1923         * NEWS: Mention SPU overlay support.
1924
1925 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1926
1927         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1928
1929 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1930
1931         * breakpoint.c (remove_breakpoint): Do not remove software
1932         breakpoints in unmapped overlay sections.
1933
1934 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1935
1936         * spu-tdep.c: Include "observer.h".
1937         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1938         (spu_overlay_data): New variable.
1939         (struct spu_overlay_table): New type.
1940         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1941         spu_overlay_new_objfile): New functions.
1942         (spu_gdbarch_init): Install spu_overlay_update.
1943         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
1944         allocate spu_overlay_data objfile data.
1945
1946 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1947
1948         * gdbarch.sh (overlay_update): New gdbarch function.
1949         (struct obj_section): Add forward declaration.
1950         * gdbarch.c, gdbarch.h: Regenerate.
1951
1952         * symfile.c (simple_overlay_update): Make global.
1953         (target_overlay_update): Remove variable.
1954         (overlay_is_mapped): Call gdbarch_overlay_update instead of
1955         target_overlay_update.
1956         (overlay_load_command): Likewise.
1957         * symfile.h (struct obj_section): Add forward declaration.
1958         (simple_overlay_update): Add prototype.
1959
1960         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1961
1962 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1963
1964         * observer.sh: Add "struct objfile" forward declaration.
1965         * target.h (deprecated_target_new_objfile_hook): Remove.
1966         * symfile.c (deprecated_target_new_objfile_hook): Remove.
1967         (clear_symtab_users): Call observer_notify_new_objfile.
1968         (symbol_file_add_with_addrs_or_offsets): Likewise.
1969         * rs6000-nat.c: Include "observer.h".
1970         (vmap_ldinfo): Call observer_notify_new_objfile.
1971         (xcoff_relocate_core): Likewise.
1972         * remote.c (remote_new_objfile_chain): Remove.
1973         (remote_new_objfile): Do not call remote_new_objfile_chain.
1974         (_initialize_remote): Use observer_attach_new_objfile.
1975         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1976         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1977         (_initialize_tui_hooks): Use observer_attach_new_objfile.
1978         * aix-thread.c: Include "observer.h".
1979         (target_new_objfile_chain): Remove.
1980         (new_objfile): Do not call target_new_objfile_chain.
1981         (_initialize_aix_thread): Use observer_attach_new_objfile.
1982         * hpux-thread.c: Include "observer.h"
1983         (target_new_objfile_chain): Remove.
1984         (hpux_thread_new_objfile): Make static.  Do not call
1985         target_new_objfile_chain.
1986         (_initialize_hpux_thread): Use observer_attach_new_objfile.
1987         * linux-thread-db.c: Include "observer.h".
1988         (target_new_objfile_chain): Remove.
1989         (thread_db_new_objfile): Do not call target_new_objfile_chain.
1990         (_initialize_thread_db): Use observer_attach_new_objfile.
1991         * sol-thread.c: Include "observer.h".
1992         (target_new_objfile_chain): Remove.
1993         (sol_thread_new_objfile): Make static.  Do not call
1994         target_new_objfile_chain.
1995         (_initialize_sol_thread): Use observer_attach_new_objfile.
1996         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1997         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1998         $(observer_h).
1999
2000 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2001
2002         * gdbarch.sh (remote_translate_xfer_address): Remove.
2003         * gdbarch.h, gdbarch.c: Regenerate.
2004         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2005         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2006         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2007         call gdbarch_remote_translate_xfer_address.
2008         * frv-tdep.c (frv_gdbarch_init): Do not call
2009         set_gdbarch_remote_translate_xfer_address.
2010         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2011         (ia64_gdbarch_init): Do not install it.
2012
2013 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
2014
2015         * NEWS: Mention change in handling the -tui option.
2016
2017 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
2018
2019         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2020         typo.
2021
2022 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2023
2024         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2025         (breakpoint_inserted_here_p): Call it.
2026         (software_breakpoint_inserted_here_p): Likewise.
2027
2028 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
2029
2030         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2031         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2032         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
2033         (inf_ptrace_store_register): Likewise.
2034         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2035         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2036
2037         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2038
2039         * linux-nat.c (linux_trad_target): Adapt parameter list.
2040         * linux-nat.h (linux_trad_target): Likewise.
2041
2042         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2043
2044         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2045         (mips_linux_cannot_store_register): Likewise.
2046         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2047         Return (CORE_ADDR) -1 for registers that cannot be fetched or
2048         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
2049         (mips64_linux_register_addr): Likewise.
2050         (mips_linux_register_u_offset): Adapt parameter list.  Pass
2051         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2052
2053         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2054         * config/mips/nm-linux.h: Delete file.
2055
2056 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
2057
2058         * remote.c (remote_detach): Error out if remote can't detach.
2059
2060 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
2061
2062         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2063         instruction's opcode in the "opcode" variable and declares new
2064         variable "closing_insn".
2065
2066 2007-05-10  Chris Dearman  <chris@mips.com>
2067             Maciej W. Rozycki  <macro@mips.com>
2068
2069         * cli/cli-setshow.c (do_setshow_command): Remove trailing
2070         whitespace when setting a var_filename.
2071
2072 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
2073         
2074         * main.c (captured_main): Recognize -tui option and print an error
2075         message when the TUI is not configured.
2076         
2077 2007-05-09  Andreas Schwab  <schwab@suse.de>
2078
2079         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2080         set removed members.
2081         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2082
2083 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2084
2085         * gdbarch.sh (deprecated_store_struct_return): Remove.
2086         * gdbarch.c, gdbarch.h: Regenerate.
2087         * frv-tdep.c (frv_store_struct_return): Remove.
2088         (frv_gdbarch_init): Do not install it.
2089
2090 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2091
2092         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2093         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2094         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2095
2096 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2097
2098         * spu-linux-nat.c: Include "gdb_stdint.h".
2099         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2100         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2101         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2102         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2103         (spu_child_wait): Mark up string for translation.
2104
2105 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
2106             Luis Machado  <luisgpm@br.ibm.com>
2107
2108         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2109         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2110         BC_INSTRUCTION): Define.
2111         (deal_with_atomic_sequence): New function.
2112         (rs6000_software_single_step): Call deal_with_atomic_sequence.
2113         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2114         gdbarch_software_single_step routine.
2115
2116 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
2117
2118         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2119         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2120         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2121         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2122         spu_child_post_attach, spu_fetch_inferior_registers,
2123         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2124         memory addresses as ULONGEST, not CORE_ADDR.
2125
2126 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
2127
2128         * gdbarch.sh: Add skip_permanent_breakpoint callback.
2129         * gdbarch.h, gdbarch.c: Regenerate.
2130
2131         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2132         (resume): Call gdbarch_skip_permanent_breakpoint instead of
2133         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
2134
2135         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2136         Add REGCACHE argument.  Use it instead of read/write_register.
2137         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2138
2139         * config/pa/tm-hppah.h: Delete file.
2140         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2141         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2142
2143 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
2144
2145         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2146         * NEWS: Mention improved C++ thunk support.
2147         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2148         * cp-abi.c (cplus_skip_trampoline): New.
2149         * cp-abi.h (cplus_skip_trampoline): New prototype.
2150         (struct cp_abi_ops): Add skip_trampoline member.
2151         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2152         (init_gnuv3_ops): Set skip_trampoline.
2153
2154 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
2155
2156         * rs6000-tdep.c (struct frame_extra_info): Delete.
2157
2158 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
2159
2160         * linux-thread-db.c: Update some FIXME comments.
2161         (thread_db_xfer_partial): Delete.
2162         (init_thread_db_ops): Do not set to_xfer_partial.
2163
2164 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2165
2166         * inftarg.c, infptrace.c: Remove files.
2167         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2168         (inftarg.o, infptrace.o): Remove rules.
2169         * gdbcore.h (register_addr): Remove prototype.
2170         * inferior.h (kill_inferior, store_inferior_registers,
2171         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2172         call_ptrace, pre_fork_inferior): Remove prototypes.
2173         * target.h (child_xfer_memory, child_pid_to_exec_file, 
2174         child_core_file_to_sym_file, child_post_attach,
2175         child_post_startup_inferior, child_acknowledge_created_inferior,
2176         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2177         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2178         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2179         child_follow_fork, child_reported_exec_events_per_exec_call,
2180         child_has_exited, child_thread_alive): Remove prototypes.
2181
2182 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2183
2184         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2185         (sparc_store_inferior_registers): Likewise.
2186         * sparc-nat.c (fetch_inferior_registers): Rename to ...
2187         (sparc_fetch_inferior_registers): ... this.
2188         (store_inferior_registers): Rename to ...
2189         (sparc_store_inferior_registers): ... this.
2190         (sparc_target): Update callback names.
2191         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
2192         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
2193
2194 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2195
2196         * linux-nat.c (child_post_attach): Rename to ...
2197         (linux_child_post_attach): ... this.  Make static.
2198         (child_follow_fork): Rename to ...
2199         (linux_child_follow_fork): ... this.  Make static.
2200         (child_insert_fork_catchpoint): Rename to ...
2201         (linux_child_insert_fork_catchpoint): ... this.  Make static.
2202         (child_insert_vfork_catchpoint): Rename to ...
2203         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
2204         (child_insert_exec_catchpoint): Rename to ...
2205         (linux_child_insert_exec_catchpoint): ... this.  Make static.
2206         (child_pid_to_exec_file): Rename to ...
2207         (linux_child_pid_to_exec_file): ... this.  Make static.
2208         Add prototype.
2209         (linux_handle_extended_wait): Update call.
2210         (linux_xfer_partial): Update callback routine names.
2211
2212 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2213
2214         * configure.host (alpha*-*-osf[12]*): Remove support.
2215         * NEWS: Mention removed configurations.
2216
2217         * config/alpha/alpha-osf1.mh: Delete file.
2218         * config/alpha/alpha-osf2.mh: Delete file.
2219         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2220         and infptrace.o.
2221         * config/alpha/nm-osf.h: Delete file.
2222         * config/alpha/nm-osf2.h: Delete file.
2223         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2224         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2225         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2226
2227         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2228         (register_addr, kernel_u_size): Remove.
2229         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2230
2231 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2232
2233         * regcache.c (regcache_invalidate): New function.
2234         (register_cached): Remove.
2235         (set_register_cached): Remove.
2236         (deprecated_registers_fetched): Remove.
2237         (registers_changed): Use regcache_invalidate instead
2238         of set_register_cached.
2239         (regcache_raw_read): Update comment.
2240
2241         * regcache.h (regcache_invalidate): Add prototype.
2242         (register_cached): Remove.
2243         (set_register_cached): Remove.
2244         (deprecated_registers_fetched): Remove.
2245
2246         * findvar.c (value_of_register): Do not call register_cached.
2247         * frame.c (frame_register): Likewise.
2248         * tui/tui-regs.c (tui_get_register): Likewise.
2249
2250         * remote.c (fetch_register_using_p): Do not call set_register_cached.
2251         (process_g_packet): Likewise.
2252         (remote_fetch_registers): Likewise.
2253         * remote-sim.c (gdbsim_fetch_register): Likewise.
2254         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2255         by regcache_invalidate.
2256         (mt_pseudo_register_write): Likewise.
2257         * sh-tdep.c (sh_pseudo_register_write): Likewise.
2258
2259         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2260         call by loop over regcache_raw_supply (..., NULL).
2261
2262 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2263
2264         * target.h (struct target_ops): Add REGCACHE parameter to
2265         to_prepare_to_store.
2266         (target_prepare_to_store): Likewise.
2267         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2268         (update_current_target): Adapt prepare_to_store de_fault rule.
2269
2270         * regcache.c (regcache_raw_write): Pass regcache to
2271         target_prepare_to_store.
2272
2273         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2274         Do not call CHILD_PREPARE_TO_STORE.
2275         * gnu-nat.c (gnu_prepare_to_store): Likewise.
2276         * procfs.c (procfs_prepare_to_store): Likewise.
2277
2278         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2279         * go32-nat.c (go32_prepare_to_store): Likewise.
2280         * monitor.c (monitor_prepare_to_store): Likewise.
2281         * nto-procfs.c (procfs_prepare_to_store): Likewise.
2282         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2283         * remote-mips.c (mips_prepare_to_store): Likewise.
2284         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2285         * win32-nat.c (win32_prepare_to_store): Likewise.
2286
2287         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2288         Use it instead of current_regcache.
2289
2290         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2291         parameter.  Pass it on to next target.
2292         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2293
2294 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2295
2296         * target.h (struct regcache): Add forward declaration.
2297         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2298         and to_store_registers target operations.
2299         (target_fetch_registers, target_store_registers): Update.
2300
2301         * regcache.c (regcache_raw_read): Replace register_cached by
2302         regcache_valid_p.  Pass regcache to target_fetch_registers.
2303         (regcache_raw_write): Pass regcache to target_store_registers.
2304
2305         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2306         store_regs, store_wmmx_regs): Replace register_cached by
2307         regcache_valid_p.
2308
2309         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2310         to target_fetch_registers calls.
2311         * corelow.c (core_open): Likewise.
2312         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2313         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2314         ps_lsetfpregs): Likewise.
2315         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2316         ps_lsetfpregs): Likewise.
2317         * win32-nat.c (win32_resume): Likewise.
2318         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2319         to target_store_registers call.
2320         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2321
2322         * inferior.h (store_inferior_registers): Update prototype.
2323         (fetch_inferior_registers): Likewise.
2324         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2325         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2326         Update function pointer signatures.
2327
2328         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2329         use it instead of current_regcache, update calls.
2330         (aix_thread_store_registers): Likewise.
2331         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2332         (alphabsd_store_inferior_registers): Likewise.
2333         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2334         (amd64bsd_store_inferior_registers): Likewise.
2335         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2336         (amd64_linux_store_inferior_registers): Likewise.
2337         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2338         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2339         fetch_wmmx_regs, store_wmmx_regs): Likewise.
2340         (arm_linux_fetch_inferior_registers): Likewise.
2341         (arm_linux_store_inferior_registers): Likewise.
2342         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2343         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2344         (store_register, store_regs, store_fp_register, store_fp_regs,
2345         armnbsd_store_registers): Likewise.
2346         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2347         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2348         (bsd_uthread_store_registers): Likewise.
2349         * corelow.c (get_core_registers): Likewise.
2350         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2351         go32_store_registers): Likewise.
2352         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2353         (hppabsd_store_registers): Likewise.
2354         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2355         (hppa_hpux_fetch_inferior_registers): Likewise.
2356         (hppa_hpux_store_register): Likewise.
2357         (hppa_hpux_store_inferior_registers): Likewise.
2358         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2359         (hppa_linux_fetch_inferior_registers): Likewise.
2360         (hppa_linux_store_inferior_registers): Likewise.
2361         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2362         (hpux_thread_store_registers): Likewise.
2363         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2364         (i386bsd_store_inferior_registers): Likewise.
2365         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2366         gnu_store_registers): Likewise.
2367         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2368         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2369         Likewise.
2370         (i386_linux_fetch_inferior_registers): Likewise.
2371         (i386_linux_store_inferior_registers): Likewise.
2372         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2373         (ia64_linux_fetch_registers): Likewise.
2374         (ia64_linux_store_register): Likewise.
2375         (ia64_linux_store_registers): Likewise.
2376         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2377         (inf_child_store_inferior_registers): Likewise.
2378         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2379         (inf_ptrace_fetch_registers): Likewise.
2380         (inf_ptrace_store_register): Likewise.
2381         (inf_ptrace_store_registers): Likewise.
2382         * infptrace.c (fetch_register, store_register): Likewise.
2383         (fetch_inferior_registers, store_inferior_registers): Likewise.
2384         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2385         (m32r_linux_fetch_inferior_registers): Likewise.
2386         (m32r_linux_store_inferior_registers): Likewise.
2387         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2388         (m68kbsd_store_inferior_registers): Likewise.
2389         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2390         store_register, old_store_inferior_registers, fetch_regs, store_regs,
2391         fetch_fpregs, store_fpregs): Likewise.
2392         (m68k_linux_fetch_inferior_registers): Likewise.
2393         (m68k_linux_store_inferior_registers): Likewise.
2394         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2395         (m88kbsd_store_inferior_registers): Likewise.
2396         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2397         (mips64obsd_store_inferior_registers): Likewise.
2398         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2399         (mips64_linux_regsets_store_registers): Likewise.
2400         (mips64_linux_fetch_registers): Likewise.
2401         (mips64_linux_store_registers): Likewise.
2402         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2403         (mipsnbsd_store_inferior_registers): Likewise.
2404         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2405         (monitor_fetch_registers, monitor_store_registers): Likewise.
2406         * nto-procfs.c (procfs_fetch_registers): Likewise.
2407         (procfs_store_registers): Likewise.
2408         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2409         fetch_register, supply_vrregset, fetch_altivec_registers,
2410         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2411         (store_altivec_register, store_spe_register, store_register, 
2412         fill_vrregset, store_altivec_registers, store_ppc_registers,
2413         ppc_linux_store_inferior_registers): Likewise.
2414         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2415         (ppcnbsd_store_inferior_registers): Likewise.
2416         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2417         (ppcobsd_store_registers): Likewise.
2418         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2419         * remote.c (fetch_register_using_p, process_g_packet,
2420         fetch_registers_using_g, remote_fetch_registers): Likewise.
2421         (store_register_using_P, store_registers_using_G, 
2422         remote_store_registers): Likewise.
2423         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2424         m32r_store_register, m32r_store_register): Likewise.
2425         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2426         * remote-sim.c (gdbsim_fetch_register): Likewise.
2427         (gdbsim_store_register): Likewise.
2428         * rs6000-nat.c (fetch_register, store_register): Likewise.
2429         (rs6000_fetch_inferior_registers): Likewise.
2430         (rs6000_store_inferior_registers): Likewise.
2431         * s390-nat.c (fetch_regs, store_regs): Likewise.
2432         (fetch_fpregs, store_fpregs): Likewise.
2433         (s390_linux_fetch_inferior_registers): Likewise.
2434         (s390_linux_store_inferior_registers): Likewise.
2435         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2436         (shnbsd_store_inferior_registers): Likewise.
2437         * sol-thread.c (sol_thread_fetch_registers): Likewise.
2438         (sol_thread_store_registers): Likewise.
2439         * sparc-nat.c (fetch_inferior_registers): Likewise.
2440         (store_inferior_registers): Likewise.
2441         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2442         (spu_store_inferior_registers): Likewise.
2443         * target.c (debug_print_register): Likewise.
2444         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2445         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2446         (vaxbsd_store_inferior_registers): Likewise.
2447         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2448         (win32_fetch_inferior_registers): Likewise.
2449         (win32_store_inferior_registers): Likewise.
2450
2451 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2452
2453         * gdbcore.h (struct regcache): Add forward declaration.
2454         (struct core_fns): Add REGCACHE argument to core_read_registers
2455         callback.
2456         * corelow.c (get_core_register_section): Add REGCACHE argument,
2457         use it instead of current_regcache, pass it to core_read_registers
2458         callback.
2459         (get_core_registers): Add current_regcache as parameter to
2460         get_core_register_section calls.
2461
2462         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2463         use it instead of current_regcache.
2464         * armnbsd-nat.c (fetch_core_registers): Likewise.
2465         (fetch_elfcore_registers): Likewise.
2466         * core-regset.c (fetch_core_registers): Likewise.
2467         * cris-tdep.c (fetch_core_registers): Likewise.
2468         * irix5-nat.c (fetch_core_registers): Likewise.
2469         * m68klinux-nat.c (fetch_core_registers): Likewise.
2470         * mips-linux-tdep.c (fetch_core_registers): Likewise.
2471         * win32-nat.c (fetch_elf_core_registers): Likewise.
2472
2473 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2474
2475         * gregset.h (struct regcache): Add forward declaration.
2476         (supply_gregset): Add REGCACHE parameter, make GREGS const.
2477         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2478         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2479         (fill_gregset): Add REGCACHE parameter.
2480         (fill_fpregset): Likewise.
2481         (fill_fpxregset): Likewise.
2482
2483         Update all definitions accordingly:
2484         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2485         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2486         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
2487         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2488         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
2489         (supply_gregset): Add REGCACHE parameter, use it instead of 
2490         current_regcache.  Make GREGSETP parameter const, adapt casts.
2491         (supply_fpregset): Add REGCACHE parameter, use it instead of
2492         current_regcache.  Make FPREGSETP parameter const, adapt casts.
2493         (fill_gregset): Add REGCACHE parameter, use it instead of
2494         current_regcache.
2495         (fill_fpregset): Likewise.
2496
2497         Update all callers to pass in current_regcache as the new argument:
2498         * core-regset.c: Include "regcache.h".
2499         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2500         * procfs.c: Include "regcache.h".
2501         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2502         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2503         (procfs_do_thread_registers): Likewise.
2504         (procfs_make_note_section): Likewise.
2505         * proc-service.c: Include "regcache.h".
2506         (ps_lgetregs): Update fill_gregset call.
2507         (ps_lsetregs): Update supply_gregset call.
2508         (ps_lgetfpregs): Update fill_fpregset call.
2509         (ps_lsetfpregs): Update supply_fpregset call.
2510         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2511         supply_fpregset calls.
2512         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2513         (ps_lgetregs): Update fill_gregset call.
2514         (ps_lsetregs): Update supply_gregset call.
2515         (ps_lgetfpregs): Update fill_fpregset call.
2516         (ps_lsetfpregs): Update supply_fpregset call.
2517         
2518         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2519         fill_fpregset, and fill_fpxregset calls.
2520         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2521         (store_regs): Update fill_gregset call.
2522         (fetch_fpregs): Update supply_fpregset call.
2523         (store_fpregs): Update fill_fpregset call.
2524         (fetch_fpxregs): Update supply_fpxregset call.
2525         (store_fpxregs): Update fill_fpxregset call.
2526         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2527         (store_regs): Update fill_gregset call.
2528         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2529         (store_regs): Update fill_gregset call.
2530         (fetch_fpregs): Update supply_fpregset call.
2531         (store_fpregs): Update fill_fpregset call.
2532         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2533         * s390-nat.c (fetch_regs): Update supply_gregset call.
2534         (store_regs): Update fill_gregset call.
2535         (fetch_fpregs): Update supply_fpregset call.
2536         (store_fpregs): Update fill_fpregset call.
2537
2538         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2539         dependencies.
2540
2541 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2542
2543         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2544         it instead of current_regcache.
2545         (parse_register_dump): Add REGCACHE parameter, pass it to 
2546         supply_register callback.
2547         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2548         parse_register_dump.
2549         (monitor_dump_regs): Add REGCACHE parameter, pass it to
2550         parse_register_dump and dumpregs callback.
2551         (monitor_wait): Pass current_regcache to parse_register_dump and
2552         monitor_dump_regs.
2553         (monitor_fetch_register): Pass current_regcache to
2554         monitor_supply_register.
2555         (monitor_fetch_registers): Pass current_regcache to
2556         monitor_dump_regs.
2557         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2558         supply_register and dumpregs callbacks.
2559         (monitor_supply_register, monitor_dump_reg_block): Update
2560         prototypes.
2561         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
2562         it to monitor_supply_register.
2563         * dink32-rom.c (dink32_supply_register): Likewise.
2564         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2565         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
2566         instead of current_regcache.
2567
2568 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2569
2570         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2571         Add REGCACHE parameter.  Use it instead of current_regcache.
2572         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2573         i386nto_supply_gregset and i386nto_supply_fpregset.
2574         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
2575         of current_regcache.
2576
2577         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
2578         nto_supply_ helper functions.
2579         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
2580
2581         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
2582
2583         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
2584         supply_greget, supply_fpregset, supply_altregset, supply_regset,
2585         and regset_fill member function pointers.
2586         (nto_dummy_supply_regset): Adapt prototype.
2587
2588 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2589
2590         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
2591         instead of current_regcache.  Make REGS const.
2592         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
2593         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
2594         prototypes.
2595         * shnbsd-nat.c: Include "regcache.h".
2596         (shnbsd_fetch_inferior_registers): Pass current_regcache to
2597         shnbsd_supply_reg.
2598         (shnbsd_store_inferior_registers): Pass current_regcache to
2599         shnbsd_fill_reg.
2600         * Makefile.in (shbsd-nat.o): Update dependencies.
2601
2602 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2603
2604         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
2605         instead of current_regcache.
2606         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
2607         Make GREGSETP const, remove superfluous casts.
2608         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2609         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
2610         superfluous casts.
2611         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2612         (supply_64bit_reg): Likewise
2613         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
2614         Make GREGSETP const, adapt casts accordingly.
2615         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2616         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
2617         casts accordingly.
2618         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2619         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
2620         helper routines.
2621         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
2622         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
2623         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
2624         Adapt prototypes.
2625         * mips-linux-nat.c: Include "regcache.h".
2626         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2627         current_regcache to mips{64}_(supply|fill)_ helper routines.
2628         (mips64_linux_regsets_fetch_registers): Likewise.
2629         (mips64_linux_regsets_store_registers): Likewise.
2630
2631         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
2632         REGCACHE argument; replace current_regcache.  Make REGS const.
2633         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
2634         replace current_regcache.
2635         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
2636         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
2637         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2638         mipsnbsd_store_inferior_registers): Pass current_regcache to
2639         mipsnbsd_(supply|fill)_... helper routines.
2640
2641         * Makefile.in (mips-linux-nat.o): Update dependencies.
2642
2643 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2644
2645         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
2646         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
2647         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
2648         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
2649         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
2650         * i386gnu-nat.c (store_fpregs): Likewise.
2651         * i386v4-nat.c (fill_fpregset): Likewise.
2652         * go32-nat.c (store_register, go32_store_registers): Likewise.
2653
2654 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2655
2656         * cris-tdep.c (supply_gregset): Rename to ...
2657         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
2658         instead of current_regcache.
2659         (fetch_core_registers): Update call.  Pass current_regcache.
2660
2661 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2662
2663         * arnmnbsd-nat.c (supply_gregset): Rename to ...
2664         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
2665         Use it instead of current_regcache.
2666         (supply_fparegset): Rename to ...
2667         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
2668         Use it instead of current_regcache.
2669         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
2670         (fetch_core_registers, fetch_elfcore_registers): Likewise.
2671
2672 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2673
2674         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
2675         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
2676         use it instead of current_regcache.
2677         * alpha-tdep.h (struct regcache): Add forward declaration.
2678         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
2679         alpha_fill_fp_regs): Update prototypes.
2680
2681         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
2682         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
2683         * alpha-linux-nat.c: Include "regcache.h".
2684         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2685         current_regcache to alpha_supply/fill_ routines.
2686
2687         * alphabsd-tdep.c: Include "regcache.h".
2688         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
2689         pass it to alpha_supply_ routines.  Make REGS const.
2690         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
2691         pass it to alpha_fill_ routines.
2692         * alphabsd-tdep.h (struct regcache): Add forward declaration.
2693         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
2694         alphabsd_fill_fpreg): Update prototypes.
2695
2696         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2697         fill_fpregset, alphabsd_fetch_inferior_registers,
2698         alphabsd_store_inferior_registers): Pass current_regcache to
2699         alphabsd_supply/fill_ routines.
2700
2701         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
2702         dependencies.
2703
2704 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2705
2706         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
2707         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
2708         instead of current_regcache.
2709         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
2710         REGCACHE parameter, pass it to supply_ routines.
2711         (aix_thread_fetch_registers): Pass current_regcache to
2712         fetch_regs_user_thread and fetch_regs_kernel_thread.
2713
2714         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
2715         Add REGCACHE parameter, use it instead of current_regcache.
2716         Call regcache_valid_p instead of register_cached.
2717         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
2718         Also, pass REGCACHE to fill_ routines.
2719         (aix_thread_store_registers): Pass current_regcache to
2720         store_regs_user_thread and store_regs_kernel_thread.
2721
2722 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2723
2724         * m32r-linux-nat.c (supply_gregset): Do not modify contents
2725         pointed to by GREGSETP.
2726
2727 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2728
2729         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
2730         of regcache_raw_read_signed.
2731         (fill_fpregset): Use regcache_raw_collect instead of
2732         regcache_raw_read.
2733
2734 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
2735
2736         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
2737         point arguments, test explicitly for use of the EABI32 ABI
2738         instead of inferring this condition from tests on register
2739         sizes.
2740
2741 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
2742
2743         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
2744         prior to allocating its location.
2745
2746 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
2747
2748         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
2749         based on mips_abi_regsize() whose result is known in advance.
2750         (mips_o64_push_dummy_call): Likewise.
2751
2752 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
2753
2754         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
2755         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
2756
2757         * mips-linux-nat.c: Include "gregset.h".
2758         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
2759         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
2760         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2761         fill_fpregset): Move to mips-linux-nat.c.
2762
2763         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
2764
2765 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2766
2767         * regcache.c (deprecated_read_register_gen): Remove, inline ...
2768         (read_register): ... here.
2769         (deprecated_write_register_gen): Remove, inline ...
2770         (write_register): ... here.
2771         * regcache.h (deprecated_read_register_gen): Remove prototype.
2772         (deprecated_write_register_gen): Likewise.
2773
2774         * remote-sim.c (gdbsim_store_register): Replace call to
2775         deprecated_read_register_gen with regcache_cooked_read.
2776         * target.c (debug_print_register): Replace calls to
2777         deprecated_read_register_gen and read_register with
2778         regcache_cooked_read.
2779
2780 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2781
2782         * hpux-thread.c (hpux_thread_store_registers): Use
2783         regcache_raw_collect, not regcache_raw_read.
2784         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
2785         not regcache_raw_write.
2786
2787 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2788
2789         * gdbarch.sh: Remove deprecated_register_byte.
2790         * gdbarch.c, gdbarch.h: Regenerate.
2791         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
2792         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
2793
2794         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
2795         * regcache.c (regcache_valid_p): Allow to query cooked registers in
2796         read-only register caches.  Make REGCACHE parameter const.
2797         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
2798
2799         * mi/mi-main.c (old_regs): Remove.
2800         (mi_setup_architecture_data, _initialize_mi_main): Remove.
2801         (register_changed_p): Reimplement to compare two register caches.
2802         (mi_cmd_data_list_changed_registers): Update caller.
2803         * mi/mi-main.h (mi_setup_architecture_data): Remove.
2804         * mi/mi-interp.c (mi_interpreter_init): Do not call
2805         mi_setup_architecture_data.
2806
2807 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2808
2809         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
2810         inline definition at the places the macros are used.
2811         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
2812
2813 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2814
2815         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
2816         "gdb_string.h".
2817         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
2818         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
2819         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
2820         (rs6000_aix_regset_from_core_section): New function.
2821         (rs6000_aix_init_osabi): Register it.
2822         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
2823         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
2824         * rs6000-nat.c (CoreRegs): Do not define type.
2825         (fetch_core_registers, rs6000_core_fns): Remove.
2826         (_initialize_core_rs6000): Do not register it.  Rename to ...
2827         (_initialize_rs6000_nat): ... this.
2828         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
2829
2830 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
2831
2832         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
2833         (dwarf2_read_address): Sign extend return address as required by
2834         target architecture.
2835
2836 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
2837
2838         * solib-frv.c (lm_base): Bail out if the main executable has
2839         not been relocated.
2840
2841 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2842
2843         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2844         of FPCR register in fpregset.
2845
2846 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
2847
2848         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2849         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2850
2851 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2852
2853         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2854         * rs6000-nat.c (rs6000_wait): New function.
2855         (_initialize_core_rs6000): Install it as to_wait target method.
2856         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2857
2858 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2859
2860         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2861         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2862         * rs6000-nat.c (super_create_inferior): New variable.
2863         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
2864         original version of create_inferior via super_create_inferior.
2865         (_initialize_core_rs6000): Install to_create_inferior target method.
2866
2867 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2868
2869         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2870         (aix_thread_xfer_partial): ... this.
2871         (init_aix_thread_ops): Install to_xfer_partial instead
2872         of deprecated_xfer_memory target method.
2873
2874         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2875         and inftarg.o, add inf-ptrace.o.
2876         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2877         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2878         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2879         (fetch_inferior_registers): Rename to ...
2880         (rs6000_fetch_inferior_registers): ... this.  Make static.
2881         (store_inferior_registers): Rename to ...
2882         (rs6000_store_inferior_registers): ... this.  Make static.
2883         (read_word, child_xfer_memory): Remove.
2884         (rs6000_xfer_partial): New function.
2885         (kernel_u_size): Remove.
2886         (_initialize_core_rs6000): Add inf_ptrace-based target.
2887         * Makefile.in (rs6000-nat.o): Update dependencies.
2888
2889 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2890
2891         * inf-ptrace.c: Include "gdb_stdint.h".
2892         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
2893         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2894         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2895         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2896         (inf_ptrace_store_register): Likewise.
2897         * Makefile.in (inf-ptrace.o): Update dependencies.
2898
2899 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2900
2901         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2902         * configure.tgt (rs6000-*-*): Likewise.
2903         * config/rs6000/aix4.mh: Delete file.
2904         * config/rs6000/aix4.mt: Delete file.
2905         * config/rs6000/rs6000.mh: Delete file.
2906         * config/rs6000/rs6000.mt: Delete file.
2907
2908         * config/powerpc/nm-aix.h: Delete file.
2909         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2910
2911 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2912
2913         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2914         Remove obsolete part of comment.
2915         (store_regs_user_thread): Use uint32_t temporaries when calling
2916         fill_sprs32.
2917         (store_regs_kernel_thread): Likewise.  Add assertion to verify
2918         correct size of struct ptsprs members.
2919         (aix_thread_xfer_memory): Fix type of myaddr.
2920         (aix_thread_extra_thread_info): Fix compiler warning.
2921         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2922         (fetch_register, store_register): Adapt callers.
2923
2924 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2925
2926         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
2927
2928 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2929
2930         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2931         and "regcache.h".
2932         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2933         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2934         (alpha_linux_regset_from_core_section): New function.
2935         (alpha_linux_init_abi): Install it.
2936         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
2937         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2938         <sys/procfs.h>, and "gregset.h".
2939         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2940         Move from config/alpha/nm-linux.h.
2941         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2942         from alpha-nat.c.
2943         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2944         * alpha-nat.c: Remove #ifdef __linux__ section.
2945         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2946         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2947         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2948         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2949         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2950         (NATDEPFILES): Remove alpha-nat.o.
2951         * config/alpha/nm-linux.h: Delete file.
2952         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2953         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2954         (alpha-linux-tdep.o): Likewise.
2955
2956 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2957
2958         * mips-linux-nat.c: No longer include "gdbcore.h".
2959         (mips_linux_register_addr): Move from mips-linux-tdep.c.
2960         (mips64_linux_register_addr): Likewise.
2961         (mips_linux_register_u_offset): Call mips_linux_register_addr or
2962         mips64_linux_register_addr instead of register_addr.
2963         * mips-linux-tdep.c (mips_linux_register_addr,
2964         mips64_linux_register_addr): Move to mips-linux-nat.c.
2965         (register_addr): Remove.
2966         (register_addr_data, init_register_addr_data): Remove.
2967         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2968         (set_mips_linux_register_addr): Remove.
2969         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2970         * Makefile.in (mips-linux-nat.o): Update dependencies.
2971
2972 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2973
2974         * linux-nat.c (linux_register_u_offset): Remove.
2975         (linux_target_install_ops): New function.
2976         (linux_target): Use it.
2977         (linux_trad_target): New function.
2978         * linux-nat.h (linux_trad_target): Declare.
2979
2980         * alpha-linux-nat.c: Include "gdbcore.h".
2981         (alpha_linux_register_u_offset): New function.
2982         (_initialize_alpha_linux_nat): Use linux_trad_target.
2983
2984         * mips-linux-nat.c: Include "gdbcore.h".
2985         (mips_linux_register_u_offset): New function.
2986         (_initialize_mips_linux_nat): Use linux_trad_target.
2987
2988         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2989         * config/arm/nm-linux.h: Delete file.
2990
2991         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2992         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2993
2994         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2995         * config/ia64/nm-linux.h: Delete file.
2996
2997         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2998         * config/m32r/nm-linux.h: Delete file.
2999
3000         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3001         * config/m68k/nm-linux.h: Delete file.
3002
3003         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3004         * config/pa/nm-linux.h: Delete file.
3005
3006         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3007         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3008         * config/powerpc/nm-linux.h: Delete file.
3009
3010         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3011         * config/s390/nm-linux.h: Delete file.
3012
3013         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3014         * config/sparc/linux64.mh (NAT_FILE): Likewise.
3015         * config/sparc/nm-linux.h: Delete file.
3016
3017         * Makefile.in (alpha-linux-nat.o): Update dependencies.
3018         (mips-linux-nat.o): Likewise.
3019
3020 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3021
3022         * core-aout.c: Delete file.
3023         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3024         (core-aout.o): Delete rule.
3025         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3026
3027         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3028
3029         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3030         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3031         KERNEL_U_ADDR): Remove.
3032
3033         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3034         (cannot_fetch_register, cannot_store_register): Remove.
3035         (fetch_register): Inline cannot_fetch_register and register_addr.
3036         (store_register): Inline cannot_store_register and register_addr.
3037         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3038         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3039         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3040         Remove.
3041
3042         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3043         (fetch_register): Inline register_addr.
3044         (store_register): Inline register_addr.
3045         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3046         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3047         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3048
3049         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3050         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3051         REGISTER_U_ADDR): Remove.
3052
3053         * hppa-linux-nat.c (register_addr): Rename to ...
3054         (hppa_linux_register_addr): ... this.  Make static.
3055         (fetch_register, store_register): Adapt callers.
3056         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3057
3058         * ppc-linux-nat.c (kernel_u_size): Remove.
3059         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3060
3061         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3062         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3063         (NAT_FILE): Remove.
3064         * config/vax/nm-vax.h: Delete file.
3065
3066 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
3067
3068         * MAINTAINERS (Write After Approval): Add myself.
3069
3070 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
3071
3072         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3073         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3074         (m68k_linux_sigcontext_reg_offset): Fix typo.
3075         (target_is_uclinux): New.
3076         (m68k_linux_inferior_created): New.
3077         (m68k_linux_get_sigtramp_info):  Check for uClinux or
3078         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
3079         uClinux.
3080         (_initialize_m68k_linux_tdep): Register
3081         m68k_linux_inferior_created.
3082
3083 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
3084
3085         * win32-nat.c (win32_detach): Remove delete_command call.
3086         Resume inferior with win32_resume instead of win32_continue.
3087
3088 2007-04-19  Jerome Guitton  <guitton@adacore.com>
3089
3090         * ser-mingw.c (fd_is_file): New function.
3091         (file_select_thread): New function.
3092         (ser_console_wait_handle): Add special handling for files.
3093
3094 2007-04-18  Denis Pilat  <denis.pilat@st.com>
3095
3096         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3097         when missing from DW_TAG_subrange_type.  Remove the handling of null
3098         return from die_type.
3099
3100 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
3101
3102         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3103         change to rearrange some brackets.
3104         (mips_n32n64_push_dummy_call): Likewise.
3105         (mips_o32_push_dummy_call): Likewise.
3106         (mips_o64_push_dummy_call): Likewise.
3107
3108 2007-04-18  Denis Pilat  <denis.pilat@st.com>
3109
3110         * infcmd.c (post_create_inferior): Start with a call to 
3111         target_terminal_ours.
3112
3113 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3114
3115         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3116         brackets.
3117         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
3118         expressions.
3119         (mips_o32_push_dummy_call): Likewise.
3120         (mips_o64_push_dummy_call): Likewise.
3121
3122 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3123
3124         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3125         comment.
3126
3127 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3128
3129         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3130         comment.
3131         (mips_o32_push_dummy_call): Likewise.
3132
3133 2007-04-17  Andreas Schwab  <schwab@suse.de>
3134
3135         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3136         sal to be bigger than the end of the function.
3137
3138 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3139             Nigel Stephens  <nigel@mips.com>
3140
3141         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3142         argument alignment requirements when calculating stack space
3143         required.  When aligning an arg register to eight bytes
3144         boundary, align stack_offset too.  Write floating-point
3145         arguments to the appropriate integer register if need go there.
3146         (mips_o64_push_dummy_call): Likewise.
3147
3148 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
3149
3150         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3151         "sig" arguments, add "regcache" argument.
3152         * gdbarch.c, gdbarch.h: Regenerate.
3153
3154         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3155         (handle_inferior_event): Call remove_single_step_breakpoints directly
3156         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3157
3158         * alpha-tdep.c (alpha_software_single_step): Update argument list.
3159         Remove handling of !insert_breakpoints_p case.
3160         * arm-tdep.c (arm_software_single_step): Likewise.
3161         * cris-tdep.c (cris_software_single_step): Likewise.
3162         * mips-tdep.c (mips_software_single_step): Likewise.
3163         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3164         * sparc-tdep.c (sparc_software_single_step): Likewise.
3165         * spu-tdep.c (spu_software_single_step): Likewise.
3166
3167         * alpha-tdep.h (alpha_software_single_step): Update prototype.
3168         * mips-tdep.h (mips_software_single_step): Likewise.
3169         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3170         * sparc-tdep.h (sparc_software_single_step): Likewise.
3171
3172 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
3173
3174         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3175         when removing single-step breakpoints.
3176
3177 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
3178
3179         * varobj.h (varobj_set_frozen): New
3180         (varobj_get_frozen): New.
3181         (varobj_update): New parameter explicit.
3182         * varobj.c (struct varobj): New fields frozen
3183         and not_fetched.
3184         (varobj_set_frozen, varobj_get_frozen): New.
3185         (install_new_value): Don't fetch values for 
3186         frozen variable object, or children thereof.  Allow
3187         a frozen variable object to have non-fetched value.
3188         (varobj_update): Allow updating child variables.
3189         Don't traverse frozen children.
3190         (new_variable): Initialize the frozen field.
3191         (c_value_of_variable): Return NULL for frozen
3192         variable without any value yet. 
3193         * mi/mi-cmd-var.c (varobj_update_one): New parameter
3194         'explicit'.
3195         (mi_cmd_var_create): Output the 'frozen' field,
3196         as soon as testsuite is adjusted to expect that field.
3197         (mi_cmd_var_set_frozen): New.
3198         (mi_cmd_var_update): Pass the 'explicit' parameter to
3199         varobj_update_one.
3200         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3201         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3202         
3203 2007-04-13  Paul Brook  <paul@codesourcery.com>
3204
3205         * target-descriptions.c (tdesc_named_type): Add ieee_single and
3206         ieee_double.
3207         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3208
3209 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3210
3211         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3212         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3213         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3214         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3215         * Makefile.in: Remove references to deleted files.
3216         * README: Do not mention deleted ROM monitor interfaces.
3217         * defs.h (enum language): Delete language_scm.
3218         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3219         (dump_subexp_body_standard): Likewise.
3220         * parse.c (operator_length_standard): Likewise.
3221         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3222         * remote-mips.c: Do not include remote-utils.h.
3223         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
3224         throughout.
3225         * value.c: Do not include scm-lang.h.
3226         (unpack_long): Delete scm_unpack call.
3227         * config/h8300/h8300.mt, config/mips/embed.mt,
3228         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3229         config/sh/embed.mt, config/sh/linux.mt: Remove references to
3230         deleted files.
3231         * NEWS: Mention removed files.
3232
3233 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3234
3235         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3236         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3237
3238 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3239
3240         * NEWS: Mention removal of HP aCC support.
3241
3242 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3243
3244         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3245         first entry for static executables.
3246         (breakpoint_addr): Delete unused variable.
3247         (elf_locate_base): Search for _r_debug in static executables.
3248         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
3249         also.
3250
3251 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3252
3253         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3254         (bpstat_what, print_one_breakpoint, allocate_bp_location)
3255         (mention): Remove bp_through_sigtramp support.
3256         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3257
3258 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3259
3260         * breakpoint.c (bpstat_what): Give step-resume higher priority than
3261         shlib events.
3262
3263 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3264
3265         * infrun.c: Doc fixes.
3266         (handle_inferior_event): Clarify debug message.
3267         (insert_step_resume_breakpoint_at_sal): Print a debug message.
3268
3269 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
3270
3271         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3272
3273 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
3274
3275         * config/m68k/tm-monitor.h: Delete file.
3276         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3277         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3278         call moved to ...
3279         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3280         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3281
3282 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
3283
3284         * gdbarch.sh (software_single_step): Change the return type
3285         from void to int and reformatted some comments to <= 80
3286         columns.
3287         * gdbarch.c, gdbarch.h: Regenerated.
3288         * alpha-tdep.c (alpha_software_single_step): Likewise.
3289         * alpha-tdep.h (alpha_software_single_step): Likewise.
3290         * arm-tdep.c (arm_software_single_step): Likewise.
3291         * cris-tdep.c (cris_software_single_step): Likewise.
3292         * mips-tdep.c (mips_software_single_step): Likewise.
3293         * mips-tdep.h (mips_software_single_step): Likewise.
3294         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3295         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3296         * sparc-tdep.c (sparc_software_single_step): Likewise.
3297         * sparc-tdep.h (sparc_software_single_step): Likewise.
3298         * spu-tdep.c (spu_software_single_step): Likewise.
3299         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3300         and act accordingly.
3301
3302 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
3303
3304         * configure.ac (build_warnings): Add -Wno-char-subscripts.
3305         * configure: Regenerate.
3306         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3307
3308 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3309
3310         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3311
3312 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3313
3314         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3315         macros.
3316         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3317         distinct on the TYPE_STUB_SUPPORTED debug targets.
3318         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3319
3320 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
3321
3322         * sparc-tdep.c (X_RS2): New macro.
3323         (sparc_skip_stack_check): New function.
3324         (sparc_analyze_prologue): Adjust PC past stack probing
3325         sequence if necessary.
3326
3327 2007-04-10  Andreas Schwab  <schwab@suse.de>
3328
3329         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3330         register.
3331
3332 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3333
3334         * breakpoint.c (gdb_breakpoint_query): Really return an
3335         enum gdb_rc.
3336         (gdb_breakpoint): Likewise.
3337         * thread.c (gdb_list_thread_ids): Likewise.
3338         (gdb_thread_select): Likewise.
3339         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3340         (mi_cmd_thread_list_ids): Remove bogus initialization.
3341
3342 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3343
3344         * Makefile.in (SFILES): Remove hpacc-abi.c.
3345         (COMMON_OBS): Remove hpacc-abi.o.
3346         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3347         (hpacc-abi.o, hpread.o): Delete rules.
3348         * somread.c: Delete extern declarations from hpread.c.
3349         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3350         (som_symfile_finish): Do not call hpread_symfile_finish.
3351         (som_symfile_init): Do not call hpread_symfile_init.
3352         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3353         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3354         * hpacc-abi.c, hpread.c: Deleted.
3355
3356 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3357
3358         * solib-svr4.c (enable_break): Simplify return value.
3359         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3360
3361 2007-04-10  Andreas Schwab  <schwab@suse.de>
3362
3363         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3364         l_ld_size, l_next_size, l_prev_size, l_name_size.
3365
3366         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3367         to extract addresses from link map.
3368         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3369         (LM_NEXT): Likewise.
3370         (LM_NAME): Likewise.
3371         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3372         (elf_locate_base): Likewise.
3373         (open_symbol_file_object): Likewise.
3374         (svr4_fetch_objfile_link_map): Likewise.
3375         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3376         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3377         l_ld_size.
3378         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3379         (svr4_lp64_fetch_link_map_offsets): Likewise.
3380
3381         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3382         removed members.  Set l_ld_offset to -1 if not present.
3383
3384 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
3385         
3386         Pass stderr of program run with "target remote |"
3387         via gdb_stderr.
3388         * serial.c (serial_open): Set error_fd to -1.
3389         * serial.h (struct serial): New field error_fd.
3390         (struct serial_opts): New field avail.
3391         * ser-pipe.c (pipe_open): Create another pair
3392         of sockets.  Pass stderr to gdb.
3393         * ser-mingw.c (pipe_windows_open): Pass
3394         PEX_STDERR_TO_PIPE to pex_run.  Initialize
3395         sd->error_fd.
3396         (pipe_avail): New.
3397         (_initialize_ser_windows): Hook pipe_avail.
3398         * ser-base.c (generic_readchar): Check if there's
3399         anything in stderr channel and route that to gdb_stderr.
3400
3401 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
3402
3403         * dbxread.c (read_ofile_symtab): Move current_objfile
3404         clearing to after end_stabs.
3405
3406 2007-04-01  Andreas Schwab  <schwab@suse.de>
3407
3408         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3409         gdbarch instead of current_gdbarch.
3410
3411 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
3412
3413         * varobj.c (varobj_create): Keep varobj value
3414         NULL when evaluating the type.
3415         
3416 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
3417
3418         * NEWS: Mention new Windows CE support.
3419
3420 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
3421
3422         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
3423         the obsoletion stanza.
3424         * NEWS: Mention deleted targets.
3425
3426         * config/sh/tm-wince.h: Remove.
3427         * config/sh/wince.mt: Remove.
3428         * config/mips/tm-wince.h: Remove.
3429         * config/mips/wince.mt: Remove.
3430
3431         * wince.c: Remove.
3432         * wince-stub.c: Remove.
3433         * wince-stub.h: Remove.
3434         * Makefile.in (wince.o): Remove rule.
3435         (wince-stub.o): Likewise.
3436
3437         * mips-tdep.c (mips_next_pc): Make static.
3438         * mips-tdep.h (mips_next_pc): Remove declaration.
3439         * arm-tdep.c (arm_pc_is_thumb): Make static.
3440         (thumb_get_next_pc): Likewise.
3441         (arm_get_next_pc): Likewise.
3442         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3443         (arm_pc_is_thumb): Likewise.
3444         (thumb_get_next_pc): Likewise.
3445         (arm_get_next_pc): Likewise.
3446
3447 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3448
3449         * MAINTAINERS: Remove d10v entry.
3450         * Makefile.in (SFILES): Remove dwarfread.c.
3451         (COMMON_OBS): Remove dwarfread.o.
3452         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3453         (remote-est.o, rom68k-rom.o): Delete.
3454         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3455         target est, target rom68k, and DWARF 1.
3456         * configure.tgt: Mark d10v as removed.
3457         * dwarf2read.c: Doc update.
3458         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3459         and lnsize.
3460         (elf_locate_sections): Do not set them.
3461         (elf_symfile_read): Do not call dwarf_build_psymtabs.
3462         * symfile.h (dwarf_build_psymtabs): Delete prototype.
3463         * config/m68k/monitor.mt (TDEPFILES): Prune.
3464         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3465         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3466
3467 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3468
3469         * doublest.c (convert_floatformat_to_doublest): Use
3470         floatformat_classify.
3471         (floatformat_is_nan): Rename to...
3472         (floatformat_classify): ...this.  Return more information.
3473         * doublest.h (enum float_kind): New.
3474         (floatformat_is_nan): Replace prototype...
3475         (floatformat_classify): ...with this one.
3476         * valprint.c (print_floating): Use floatformat_classify.  Handle
3477         infinity.
3478
3479 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3480
3481         * README: Mention ISO C library requirement.
3482
3483 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3484
3485         * Makefile.in (SFILES): Remove nlmread.c.
3486         (COMMON_OBS): Remove nlmread.o.
3487         (nlmread.o): Delete rule.
3488         * README: Delete reference to remote-st.c.
3489         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3490         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3491         GDB_OSABI_LYNXOS.
3492         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3493         (_initialize_i386_tdep): Do not reference them.
3494         * nlmread.c: Delete file.
3495         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3496         * target.c: Doc update.
3497         * thread.c: Delete commented include.
3498         * config/alpha/tm-alpha.h: Doc update.
3499
3500 2007-03-30  Chris Dearman  <chris@mips.com>
3501
3502         * utils.c (string_to_core_addr): Comment typo.
3503
3504 2007-03-30  Chris Dearman  <chris@mips.com>
3505
3506         * mips-tdep.c: Comment typo.
3507
3508 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
3509
3510         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3511         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3512         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3513         * config/powerpc/nm-ppc64-linux.h: Remove file.
3514         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3515         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3516         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3517         * infptrace.c (call_ptrace): Likewise.
3518         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3519         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3520         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3521         (store_register): Likewise.
3522
3523 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
3524
3525         * Makefile.in (varobj.o): Add missing dependency.
3526
3527 2007-03-29  Michael Snyder  <msnyder@access-company.com>
3528
3529         * MAINTAINERS: Update my email address.
3530
3531 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
3532
3533         Add support for exception handling with multiple versions of
3534         the Ada runtime:
3535         * ada-lang.c: Update general comments on how Ada exception catchpoints
3536         are implemented.
3537         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3538         (__gnat_raise_nodefer_with_msg): Delete.
3539         (ada_unhandled_exception_name_addr_ftype): New type.
3540         (exception_support_info): New type.
3541         (ada_unhandled_exception_name_addr): Add forward declaration.
3542         (ada_unhandled_exception_name_addr_from_raise): Likewise.
3543         (default_exception_support_info): New constant.
3544         (exception_support_info_fallback): Likewise.
3545         (exception_info): New global variable.
3546         (ada_exception_support_info_sniffer): New function.
3547         (ada_executable_changed_observer): Likewise.
3548         (ada_unhandled_exception_name_addr_from_raise): Renamed from
3549         ada_unhandled_exception_name_addr.
3550         (ada_unhandled_exception_name_addr): Reimplement to match the
3551         latest Ada runtime implementation.
3552         (error_breakpoint_runtime_sym_not_found): Delete.
3553         (ada_exception_sym_name): Get the exception sym name from
3554         exception_info rather than hardcoding it.
3555         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3556         Update error handling.
3557         * Makefile.in (ada-lang.o): Add dependency on observer.h.
3558
3559 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3560
3561         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3562         (remote-st.o, uw-thread.o): Delete.
3563         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3564         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3565         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3566         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3567         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3568         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3569         rs6000-*-lynxos* to an obsoletion stanza.
3570         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3571         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3572         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
3573         i[34567]86-*-netware*.
3574         * NEWS: Mention deleted targets.
3575
3576         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
3577         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
3578         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
3579         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
3580         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
3581         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
3582         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
3583         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
3584         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
3585         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
3586         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
3587         config/rs6000/tm-rs6000ly.h: Delete files.
3588
3589 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3590
3591         * defs.h (deprecated_registers_changed_hook): Delete declaration.
3592         * interps.c (clear_interpreter_hooks): Do not clear
3593         deprecated_registers_changed_hook.
3594         * regcache.c (registers_changed): Do not call it.
3595         * top.c (deprecated_registers_changed_hook): Do not define it.
3596         * mi/mi-interp.c (mi_command_loop): Do not clear it.
3597         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
3598         (tui_remove_hooks): Do not remove it.
3599         (tui_selected_frame_level_changed_hook): Check for negative level.
3600         Use get_selected_frame.
3601         (tui_registers_changed_hook): Deleted.
3602
3603 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
3604
3605         * stabsread.c (add_undefined_type): Add extra parameter.
3606         Now handles nameless types separately.
3607         (struct nat): New type.
3608         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
3609         New static variables.
3610         (read_type): Update calls to add_undefined_type.
3611         (add_undefined_type_noname): New function.
3612         (add_undefined_type_1): Renames from add_undefined_type.
3613         (cleanup_undefined_types_noname): New function.
3614         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
3615         (cleanup_undefined_types): New handles nameless types separately.
3616         (_initialize_stabsread): Initialize our new static constants.
3617
3618 2007-03-29  Denis Pilat  <denis.pilat@st.com>
3619
3620         * configure.ac: Test for signal.h.
3621         * configure, config.in: Regenerate.
3622
3623 2007-03-29  Denis Pilat  <denis.pilat@st.com>
3624
3625         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
3626         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
3627
3628 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
3629
3630         * arm-wince-tdep.c: New.
3631         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
3632         (MT_CFLAGS): Delete.
3633         (TM_CLIBS): Delete.
3634         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
3635         solib-legacy.o, solib-svr4.o, and remove wince.o.
3636         * configure.tgt (arm*-*-mingw32ce*): Add.
3637         * signals/signals.c [HAVE_SIGNAL_H]: Check.
3638         (do_target_signal_to_host): Silence 'not used' warning.
3639         * config/arm/tm-wince.h: Remove.
3640
3641 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
3642
3643         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
3644         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
3645
3646         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
3647         * config/ia64/tm-linux.h: Remove file.
3648         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
3649         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
3650         legacy_pc_in_sigtramp.
3651         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
3652         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
3653         Remove func_name argument.
3654         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
3655
3656         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
3657         * target.c (update_current_target): Add to_have_steppable_watchpoint.
3658         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
3659         (HAVE_STEPPABLE_WATCHPOINT): Define.
3660
3661         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
3662         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
3663         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
3664         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
3665         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
3666         target_insert_watchpoint, target_remove_watchpoint): Remove.
3667         (FETCH_INFERIOR_REGISTERS): Define.
3668         * ia64-linux-nat.c (ia64_register_addr): Make static.
3669         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
3670         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
3671         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
3672         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
3673         (ia64_linux_stopped_by_watchpoint): Make static.
3674         (ia64_linux_can_use_hw_breakpoint): New function.
3675         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
3676         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
3677         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
3678
3679 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
3680
3681         * linespec.c: Include language.h.
3682         (find_methods): Add language parameter.  Call
3683         lookup_symbol_in_language.  Pass language down.
3684         (add_matching_methods): Likewise.  Call
3685         lookup_symbol_in_language.
3686         (add_constructors): Likewise.
3687         (find_method): Pass sym_class to collect_methods.
3688         (collect_methods): Add sym_class parameter.  Pass language
3689         down.
3690         * symtab.c (lookup_symbol): Rename to ...
3691         (lookup_symbol_in_language): ... this.  Add language
3692         parameter.  Use passed language instead of current_language.
3693         (lookup_symbol): New as wrapper around
3694         lookup_symbol_in_language.
3695         (lookup_symbol_aux): Add language parameter.  Use passed
3696         language instead of current_language.
3697         (search_symbols): Indent.
3698         * symtab.h (enum language): Forward declare.
3699         (lookup_symbol_in_language): Declare.
3700         (lookup_symbol): Update description.
3701         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
3702         * ada-lang.c (restore_language): Remove.
3703         (lookup_symbol_in_language): Remove.
3704
3705 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
3706
3707         * breakpoint.c (bpstat_num): Add int *num parameter.
3708         * breakpoint.h (bpstat_num): Likewise.
3709         * infcmd.c (continue_command): Adjust to new bpstat_num
3710         interface.
3711         (program_info): Likewise.
3712
3713 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
3714
3715         * config/sh/tm-sh.h: Remove file.
3716         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
3717         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
3718         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3719         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
3720
3721 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
3722
3723         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
3724         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
3725         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
3726         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
3727         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
3728         sequence if target_shortname is "remote".
3729
3730 2007-03-27  Anton Blanchard  <anton@samba.org>
3731
3732         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
3733         instead of wordsize when looking for the LR in a stack frame.
3734
3735 2007-03-27  Andreas Schwab  <schwab@suse.de>
3736             Daniel Jacobowitz  <dan@codesourcery.com>
3737
3738         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
3739         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
3740         argument.  Update all callers.
3741         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
3742         (dwarf2_frame_set_eh_frame_regnum): Rename to...
3743         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
3744         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
3745         (dwarf2_frame_set_adjust_regnum): ...this.
3746         (dwarf2_frame_eh_frame_regnum): Delete prototype.
3747         * rs6000-tdep.c: Include "dwarf2-frame.h".
3748         (rs6000_adjust_frame_regnum): Define.
3749         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
3750         Register rs6000_adjust_frame_regnum.
3751
3752         * Makefile.in (rs6000-tdep.o): Update dependencies.
3753
3754 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
3755
3756         * Makefile.in: Add support for a "pdf" target.
3757
3758 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
3759
3760         * amd64-tdep.c (amd64_init_frame_cache): New function.
3761         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
3762
3763 2007-03-26  Nigel Stephens  <nigel@mips.com>
3764             Maciej W. Rozycki  <macro@mips.com>
3765
3766         * ui-out.c (ui_out_field_core_addr): Truncate address to
3767         TARGET_ADDR_BIT size before printing.
3768
3769 2007-03-22  Nigel Stephens  <nigel@mips.com>
3770             Maciej W. Rozycki  <macro@mips.com>
3771
3772         * remote-mips.c (mips_xfer_memory): Update prototype.
3773
3774 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
3775
3776         * symfile.h: #include "symtab.h"
3777
3778 2007-03-22  Denis Pilat  <denis.pilat@st.com>
3779
3780         * utils.c (pagination_on_command, pagination_off_command):
3781         Remove useless prototypes.
3782
3783 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3784
3785         Fix PR pascal/2232.
3786         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
3787         instead of TYPE_NAME for object base class name.
3788
3789
3790 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
3791
3792         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
3793         Specify frame type in calls to frame_func_unwind().
3794
3795 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
3796
3797         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
3798         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
3799         (refine_prologue_limit): Delete.
3800         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
3801         Assume lim_pc is set.  Correct check for incomplete prologues.
3802         Do not skip clobbers of the frame pointer.
3803         * symtab.c (skip_prologue_using_sal): Fail if there is only one
3804         sal.
3805
3806 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
3807
3808         * frame.c (frame_pop): Check to see whether there's a frame to
3809         which we can pop first.
3810
3811 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
3812
3813         * MAINTAINERS (Write After Approval): Add myself.
3814
3815 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
3816
3817         * infrun.c (breakpoints_failed): Remove unnecessary variable.
3818         (handle_inferior_event): Remove unnecessary braces.
3819         * breakpoint.c (bpstat_what): Remove wrong comment.
3820
3821 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
3822
3823         * spu-tdep.c (spu_in_function_epilogue_p): New function.
3824         (spu_gdbarch_init): Install it.
3825
3826 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3827
3828         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
3829         object types, not 0.
3830
3831 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3832
3833         * spu-tdep.c (spu_frame_align): New function.
3834         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
3835
3836 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3837
3838         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3839         (spu_software_single_step): Likewise.
3840         (spu_read_pc, spu_write_pc): New functions.
3841         (spu_gdbarch_init): Install them.
3842
3843 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3844
3845         * cli/cli-dump.c (struct callback_data): load_offset needs to 
3846         have signed long type.
3847
3848 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
3849
3850         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3851         Revert the previous change that had some unexpected side-effects
3852         on mips32.
3853         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3854         function to get the address of the calling instruction.
3855
3856 2007-03-07  Denis Pilat  <denis.pilat@st.com>
3857
3858         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3859         get_selected_frame by deprecated_safe_get_selected_frame.
3860
3861 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
3862
3863         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3864         "gdb_string.h".  Don't include "nbsd-tdep.h".
3865         (SIZEOF_STRUCT_REG): Remove.
3866         (SHNBSD_SIZEOF_GREGS): New.
3867         (shnbsd_supply_gregset, shnbsd_collect_gregset)
3868         (shnbsd_regset_from_core_section): New functions.
3869         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3870         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3871         shnbsd_supply_gregset, shnbsd_collect_gregset.
3872         (shnbsd_gregset): New variable.
3873         (shnbsd_init_abi): Set regset_from_core_section.
3874         (GDB_OSABI_NETBSD_CORE): New define.
3875         (shnbsd_core_osabi_sniffer): New function.
3876         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3877         * Makefile.in (shnbsd-tdep.o): Update dependencies.
3878         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3879         nbsd-tdep.o.
3880         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3881
3882 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3883
3884         * gdbtypes.c (replace_type): Fix typo that caused us to not update
3885         length of the types referenced by the new type CV ring.
3886
3887 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3888
3889         * frame.c (frame_pop, frame_observer_target_changed): Call
3890         reinit_frame_cache.
3891         (flush_cached_frames): Rename to reinit_frame_cache and delete
3892         old implementation.
3893         * frame.h (flush_cached_frames): Delete prototype and update comment.
3894
3895         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3896         reinit_frame_cache instead of flush_cached_frames.  Do not call
3897         select_frame after reinit_frame_cache.
3898         * corelow.c (core_open): Likewise.
3899         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3900         * infrun.c (prepare_to_proceed, context_switch)
3901         (handle_inferior_event): Likewise.
3902         * linux-fork.c (fork_load_infrun_state): Likewise.
3903         * ocd.c (ocd_start_remote): Likewise.
3904         * remote-e7000.c (e7000_start_remote): Likewise.
3905         * remote-mips.c (device): Likewise.
3906         * thread.c (switch_to_thread): Likewise.
3907         * tracepoint.c (finish_tfind_command): Likewise.
3908         * gdbarch.c: Regenerated.
3909
3910 2007-02-28  Jerome Guitton  <guitton@adacore.com>
3911             Joel Brobecker  <brobecker@adacore.com>
3912
3913         * gdbtypes.c (check_typedef): Do not replace stub type if
3914         the resolved type is not defined in the same objfile.
3915
3916 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3917
3918         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3919
3920 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3921
3922         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3923         symbol for Ada units when the symbol is defined using 't' rather
3924         than 'Tt' as symbol descriptor.
3925
3926 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3927
3928         * config/mips/tm-nbsd.h: Delete file.
3929         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3930         * config/sh/tm-nbsd.h: Delete file.
3931         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3932
3933 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3934
3935         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3936         unused WRONG_PARAM value since it was recently deleted.
3937
3938 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
3939
3940         * varobj.c (varobj_update): Free temporary vectors.
3941
3942 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3943
3944         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3945         * config/powerpc/tm-linux.h: Delete file.
3946         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3947         (PROCESS_LINENUMBER_HOOK): Do not undefine.
3948         (TEXT_SEGMENT_BASE): Do not redefine.
3949         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3950         from config/rs6000/tm-rs6000.h.
3951         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3952         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3953         (TEXT_SEGMENT_BASE): Remove.
3954         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3955         (rs6000_in_solib_return_trampoline): Remove.
3956         (SKIP_TRAMPOLINE_CODE): Remove.
3957         (rs6000_skip_trampoline_code): Remove.
3958         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3959         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3960         (FP0_REGNUM): Remove.
3961         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3962         (rs6000_set_host_arch_hook): Remove.
3963         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3964         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3965         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3966         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3967         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3968         * rs6000-nat.c: Include "rs6000-tdep.h".
3969         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3970         (set_host_arch): Rename to ...
3971         (rs6000_create_inferior): ... this.  Make public.
3972         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3973         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3974         (rs6000_create_inferior): Remove.
3975         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3976         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3977         set_gdbarch_in_solib_return_trampoline, and
3978         set_gdbarch_skip_trampoline_code.
3979         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3980         from config/rs6000/tm-rs6000.h.
3981
3982 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
3983
3984         * buildsym.c (record_producer): Do nothing if no producer is provided.
3985
3986 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
3987
3988         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
3989         to check changelist is non-NULL.  Call error if the frontend tries
3990         to update a non-root variable.
3991
3992         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3993
3994 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
3995
3996         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3997         (dwarf2_frame_sniffer): Update.
3998         (dwarf2_signal_frame_this_id): New function.
3999         (dwarf2_signal_frame_unwind): Use it.
4000         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4001         * frame.c (frame_func_unwind): Add this_type argument.
4002         (get_frame_func): Update.
4003         (frame_unwind_address_in_block): Add this_type argument and check it.
4004         Fix a typo.
4005         (get_frame_address_in_block): Update.
4006         * frame.h (enum frame_type): Move higher in the file.
4007         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4008         argument.
4009
4010         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4011         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4012         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4013         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4014         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4015         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4016         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4017         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4018         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4019         frame_func_unwind and frame_unwind_address_in_block to specify
4020         the frame type.  Use frame_unwind_address_in_block instead of
4021         frame_pc_unwind in sniffers.
4022
4023 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
4024
4025         * frame.c (deprecated_selected_frame): Rename to...
4026         (selected_frame): ...this.  Make static.
4027         (get_selected_frame, select_frame): Update.
4028         * frame.h (deprected_select_frame): Delete.
4029         (deprecated_safe_get_selected_frame): Update comments.
4030
4031         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4032         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4033         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4034         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4035         tui/tui.c: Replace references to deprecated_selected_frame.
4036
4037 2007-02-27  Fred Fish  <fnf@specifix.com>
4038
4039         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
4040         directly decrement the stack pointer, accumulate their operand into 
4041         the stack offset, and mark the function as not being frameless.
4042
4043 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4044
4045         * arch-utils.c (selected_byte_order): New.
4046         * arch-utils.h (selected_byte_order): New prototype.
4047         * remote-sim.c (gdbsim_open): Use selected_byte_order.
4048
4049 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4050
4051         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
4052         (default_symfile_offsets): Check VMA here.  Update section VMAs.
4053
4054 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4055
4056         * remote.c (init_remote_state): Add special handling for placeholder
4057         registers.
4058
4059 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4060
4061         * Makefile.in (XMLFILES): Include $(TDEP_XML).
4062         (filenames_h): New variable.
4063         (clean): Clean up xml-builtin.c and stamp-xml.
4064         (arm-linux-nat.o): Update.
4065         * config/arm/linux.mh (TDEP_XML): Define.
4066         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4067         (arm_linux_has_wmmx_registers): New.
4068         (GET_THREAD_ID): Fix typo.
4069         (IWMMXT_REGS_SIZE): Define.
4070         (fetch_wmmx_regs, store_wmmx_regs): New.
4071         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4072         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4073         (super_xfer_partial, arm_linux_xfer_partial): New.
4074         (_initialize_arm_linux_nat): Use them.
4075         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4076         (xml_builtin_xfer_partial): New function.
4077         * xml-support.h (xml_builtin_xfer_partial): New prototype.
4078         * NEWS: Update mention of iWMMXt support.
4079
4080 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4081
4082         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4083         if there are no FPA registers.
4084         (arm_dwarf_reg_to_regnum): New function.
4085         (arm_register_type, arm_register_name): Return minimal values for
4086         unsupported registers.
4087         (arm_register_sim_regno): Handle iWMMXt registers.
4088         (arm_gdbarch_init): Record missing FPA registers if indicated by
4089         a target description.  Recognize iWMMXt registers.  Only register
4090         "info float" for FPA.  Use ARM_NUM_REGS.  Register
4091         arm_dwarf_reg_to_regnum.
4092         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4093         constants.
4094         (struct gdbarch_tdep): Add have_fpa_registers.
4095         * features/xscale-iwmmxt.xml: Update capitalization.
4096         * regformats/arm-with-iwmmxt.dat: Regenerated.
4097
4098 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
4099
4100         * NEWS (New targets): Add entry for the Toshiba Media Processor.
4101
4102 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
4103
4104         * MAINTAINERS (mep): New target.
4105
4106 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
4107
4108         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4109         Richard Sandiford:
4110         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4111         (mep-tdep.o): New rule.
4112         * configure.tgt (mep-*-*): New target.
4113         * mep-tdep.c: New file.
4114         * config/mep/mep.mt: New file.
4115
4116 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
4117
4118         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4119         BREAKPOINT_HIT and STOP_UNKNOWN.
4120
4121 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
4122
4123         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
4124
4125 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
4126
4127         * gdb_expat.h (XMLCALL): Define if not already defined.
4128
4129 2007-02-20  Andreas Schwab  <schwab@suse.de>
4130
4131         * Makefile.in (symfile.o): Update dependencies.
4132
4133 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
4134
4135         * MAINTAINERS: Disable -Werror for cris simulator.  Build
4136         sparc64-solaris2.10 instead of the broken sparc-elf.
4137         * solib-frv.c: Include "solib.h".
4138         * Makefile.in (solib-frv.o): Update.
4139         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4140         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4141         (xtensa_frame_this_id, xtensa_frame_prev_register)
4142         (xtensa_push_dummy_call): Use %p.
4143
4144 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4145
4146         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4147         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4148         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4149         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4150         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4151         (sparc-linux-tdep.o): Update.
4152
4153 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
4154
4155         * xtensa-tdep.h (xtensa_reg_mask_t): New.
4156         (xtensa_mask_t): Change mask field to be a separate array.
4157         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4158         (xtensa_pseudo_register_write, xtensa_unwind_pc)
4159         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4160         (xtensa_breakpoint_from_pc): Remove implicit type casting.
4161         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4162         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4163         (mask14, mask15): Rename to
4164         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4165         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4166         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4167         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4168         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4169         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4170         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4171         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4172         (xtensa_submask14, xtensa_submask15): New.
4173         (rmap): Follow strict aliasing rules doing static initialization.
4174
4175 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
4176
4177         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4178         handling from here...
4179         (tdesc_register_type): ...to here.
4180         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4181         * features/arm-core.xml: Use code_ptr and data_ptr.
4182
4183 2007-02-13  Denis Pilat  <denis.pilat@st.com>
4184
4185         * varobj.h (enum varobj_update_error): New enum.
4186         * varobj.c (struct varobj_root): Add is_valid member.
4187         (varobj_get_type): Check for invalid varobj.
4188         (varobj_get_attributes): Likewise.
4189         (variable_editable):Likewise.
4190         (varobj_update): Likewise.  Use varobj_update_error.
4191         (new_root_variable): Set root varobj as valid by default.
4192         (varobj_invalidate): New function.
4193         * symfile.c (clear_symtab_users): Use varobj_invalidate.
4194         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4195         Use varobj_update_error.
4196
4197 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
4198
4199         Fix PR pascal/2223.
4200         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4201         Pascal language marker.
4202         * dwarf2read.c (set_cu_language): Likewise.
4203
4204 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
4205
4206         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4207         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4208         instead of target_terminal_init since inferior_ptid isn't set yet.
4209
4210 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
4211
4212         * MAINTAINERS (Write After Approval): Add myself.
4213
4214 2007-02-09  Fred Fish  <fnf@specifix.com>
4215
4216         Based on work by Apple Computer, Inc.
4217         * event-top.c (async_request_quit): Call quit() whenever either
4218         quit_flag is set or immediate_quit is set.
4219
4220 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4221
4222         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4223         type to a pointer to const struct block.
4224         (ada_lookup_symbol_list): Don't cast away constness when calling
4225         remove_out_of_scope_renamings.
4226
4227 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4228
4229         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4230         address of 'filename'; it is always non null.
4231
4232 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
4233
4234         * exec.c (add_to_section_table): Do not discard empty sections.
4235
4236 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4237
4238         * features/Makefile, features/arm-with-iwmmxt.xml,
4239         features/gdbserver-regs.xsl, features/number-regs.xsl,
4240         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4241         * regformats/arm-with-iwmmxt.dat: Generate.
4242         * NEWS: Mention iWMMXt.
4243
4244 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4245
4246         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4247         (xml-tdesc.o): Update.
4248         * xml-support.c: Add a comment.
4249         (gdb_xml_enums_boolean): New variable.
4250         (gdb_xml_parse_attr_enum): Use strcasecmp.
4251         * xml-support.h (gdb_xml_enums_boolean): Declare.
4252         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4253         next_regnum, and current_union.
4254         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4255         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4256         (field_attributes, union_children, reg_attributes, union_attributes)
4257         (vector_attributes, feature_attributes, feature_children): New.
4258         (target_children): Make static.  Add <feature>.
4259         (tdesc_elements): Make static.
4260         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4261         (struct tdesc_feature, tdesc_feature_p): New types.
4262         (struct target_desc): Add features member.
4263         (struct tdesc_arch_data, tdesc_data): New.
4264         (target_find_description): Clarify error message.  Warn about
4265         ignored register descriptions.
4266         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4267         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4268         (tdesc_data_cleanup, tdesc_numbered_register)
4269         (tdesc_numbered_register_choices, tdesc_find_register)
4270         (tdesc_register_name, tdesc_register_type)
4271         (tdesc_remote_register_number, tdesc_register_reggroup_p)
4272         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4273         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4274         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4275         (tdesc_create_feature, tdesc_record_type): New.
4276         (free_target_description): Free features.
4277         (_initialize_target_descriptions): Initialize tdesc_data.
4278         * arch-utils.c (default_remote_register_number): New.
4279         * arch-utils.h (default_remote_register_number): New prototype.
4280         * target-descriptions.h (set_tdesc_pseudo_register_name)
4281         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4282         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4283         (tdesc_numbered_register, tdesc_numbered_register_choices)
4284         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4285         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4286         (tdesc_create_reg): Declare.
4287         * gdbarch.sh (remote_register_number): New entry.
4288         * gdbarch.c, gdbarch.h: Regenerate.
4289         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4290         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4291
4292         * arm-tdep.c (arm_register_aliases): New.
4293         (arm_register_name_strings): Rename to...
4294         (arm_register_names): ...this.  Make const.  Delete the old version.
4295         (current_option, arm_register_byte): Delete.
4296         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
4297         (value_of_arm_user_reg): New.
4298         (arm_gdbarch_init): Verify any described registers.  Call
4299         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
4300         for standard register names.
4301         (_initialize_arm_tdep): Do not adjust arm_register_names.
4302         * user-regs.c (struct user_reg): Add baton member.
4303         (append_user_reg, user_reg_add_builtin, user_regs_init)
4304         (user_reg_add, value_of_user_reg): Use a baton for user
4305         register functions.
4306         * std-regs.c: Update.
4307         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4308         (user_reg_add): Add baton argument.
4309         * NEWS: Mention target description register support.
4310         * features/arm-core.xml, features/arm-fpa.xml: New.
4311         * eval.c (evaluate_subexp_standard): Allow ptype $register
4312         when the program is not running.
4313
4314 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
4315
4316         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
4317
4318 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4319
4320         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4321         info->disassembler_options to "any".
4322
4323 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4324
4325         * varobj.c (install_new_value): Only call value_get_print_value
4326         if changeable.
4327
4328 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4329
4330         Reported by timeless@gmail.com:
4331         * gdb/target.c (target_flash_erase): Do not return void value.
4332         (target_flash_done): Likewise.
4333         * gdb/cli/cli-cmds.c (source_command): Likewise.
4334
4335 2007-02-08  Fred Fish  <fnf@specifix.com>
4336
4337         Based on work by Apple Computer, Inc.
4338         * event-top.c (handle_sigint): Set quit_flag.
4339         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
4340         if quit_flag has already been reset.
4341
4342 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4343
4344         * ser-mingw.c (pipe_windows_close): Move variable initialization back
4345         up.
4346
4347 2007-02-08  Fred Fish  <fnf@specifix.com>
4348
4349         * defs.h (request_quit): Remove declaration.
4350         * utils.c (request_quit): Remove definition.
4351
4352 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
4353             Jan Kratochvil  <jan.kratochvil@redhat.com>
4354             Daniel Jacobowitz  <dan@codesourcery.com>
4355
4356         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4357         (skip_prologue): Allow bl->blrl used by PIC code.
4358
4359 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
4360             Daniel Jacobowitz  <dan@codesourcery.com>
4361
4362         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4363         initialize tmp_obstack.
4364         * p-valprint.c (pascal_object_print_value_fields)
4365         (pascal_object_print_value): Likewise.
4366
4367 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4368
4369         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4370
4371 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
4372
4373         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4374         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4375
4376 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
4377
4378         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4379         (xml_cache): New.
4380         (tdesc_parse_xml): Cache expanded descriptions.
4381
4382 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
4383
4384         * Makefile.in (XMLFILES): New.
4385         (COMMON_OBS): Add xml-builtin.o.
4386         (xml-builtin.c, stamp-xml): New rules.
4387         (xml-tdesc.o): Update.
4388         * features/feature_to_c.sh: New file.
4389         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4390         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4391         (gdb_xml_start_element): Initialize scope after possibly reallocating
4392         scopes.  Move cleanup later.  Handle the XInclude description
4393         specially.
4394         (gdb_xml_end_element): Only parse the body if there is a current element.
4395         Call XML_DefaultCurrent if there is no element.
4396         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4397         (struct xinclude_parsing_data, xinclude_start_include)
4398         (xinclude_end_include, xml_xinclude_default)
4399         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4400         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4401         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4402         * xml-support.h (xml_fetch_another, xml_process_xincludes)
4403         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4404         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
4405         XInclude directives.  Use the compiled in DTD.
4406         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
4407         directory name.  Do not warn here.
4408         (file_read_description_xml): Update call.  Warn here instead.  Pass
4409         a dirname as baton.
4410         (fetch_available_features_from_target): New.
4411         (target_read_description_xml): Use it.
4412         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
4413         to handle XInclude.
4414         * features/xinclude.dtd: New file.
4415
4416 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
4417
4418         * linux-thread-db.c (check_for_thread_db): Return early if we have
4419         no libthread_db support.
4420
4421 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
4422
4423         * mi/mi-parse.h: Include <sys/time.h>.
4424
4425 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
4426
4427         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4428         instead of print_variable_value to print values.
4429
4430 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
4431
4432         * mi/mi-main.c: Numerous formatting changes.
4433         (mi_cmd_data_write_register_values): Replace clause inadvertantly
4434         removed in my previous change.
4435
4436 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
4437
4438         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4439         Use 1000000L instead of 1000000.
4440
4441 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
4442
4443             Based on work by Apple Computer, Inc.
4444
4445         * configure.ac: Test for sys/resource.h and getrusage.
4446         * configure, config.in: Regenerate.
4447
4448         * mi/mi-main.c: Include <sys/resource.h> if present.
4449         (rusage): Declare if HAVE_GETRUSAGE.
4450         (current_command_ts, do_timings): New static variables.
4451         (timestamp, print_diff_now, print_diff, timeval_diff):
4452         New static timing functions.
4453         (mi_cmd_enable_timings): New function for new MI command.
4454         (captured_mi_execute_command, mi_execute_async_cli_command): 
4455         Call timing functions.
4456
4457         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4458         -enable-timings.
4459
4460         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4461
4462         * mi/mi-parse.h: (mi_timestamp): New structure.
4463         (mi_parse): Add mi_timestamp* member.
4464
4465 2007-02-02  Denis Pilat  <denis.pilat@st.com>
4466
4467         * thread.c (make_cleanup_restore_current_thread): New function.
4468         (info_threads_command): Use of make_cleanup_restore_current_thread
4469         to restore the current thread and the selected frame.
4470         (restore_selected_frame): New function.
4471         (struct current_thread_cleanup): Add frame_id field.
4472         (do_restore_current_thread_cleanup): Add restoring of the selected
4473         frame.
4474         (make_cleanup_restore_current_thread): Likewise.
4475         (thread_apply_all_command): backup the selected frame while 
4476         entering the function and restore it at exit.
4477         (thread_apply_command): Likewise.
4478
4479 2007-02-02  Denis Pilat  <denis.pilat@st.com>
4480
4481         * MAINTAINERS (Write After Approval): Add myself to the list.
4482
4483 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4484
4485         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4486         (m32r_store_register): Ditto.
4487
4488 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
4489
4490         * ser-mingw.c (pipe_windows_open)
4491         (pipe_windows_read, pipe_windows_write): Declare
4492         variables at the top of the function.
4493
4494 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
4495
4496         * doublest.c (floatformat_from_length): Use the right element from
4497         gdbarch floatformats.
4498         (floatformat_from_type, extract_typed_floating)
4499         (store_typed_floating): Likewise.
4500         * doublest.h: Remove declarations for undefined floatformat arrays.
4501         * gdbarch.sh (float_format, double_format, long_double_format): Change
4502         to pairs.
4503         (pformat): Update for pairs.
4504         * gdbarch.c, gdbarch.h: Regenerated.
4505         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4506         (floatformats_ieee_double_littlebyte_bigword)
4507         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4508         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4509         (floatformats_vax_d): New variables.
4510         (builtin_type_ieee_single, builtin_type_ieee_double)
4511         (builtin_type_arm_ext, builtin_type_ia64_spill)
4512         (builtin_type_ia64_quad): Replace arrays with individual types.
4513         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4514         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4515         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4516         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4517         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4518         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4519         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4520         unused and endian-specific types.
4521         (recursive_dump_type): Update for floatformat pairs.
4522         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
4523         (build_gdbtypes): Use build_flt.
4524         (_initialize_gdbtypes): Update set of initialized types.
4525         * gdbtypes.h: Update declarations to match gdbtypes.c.
4526         (struct main_type): Store a pointer to two floatformats.
4527         * arch-utils.c (default_float_format, default_double_format): Delete.
4528         * arch-utils.h (default_float_format, default_double_format): Delete.
4529
4530         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4531         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4532         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4533         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4534         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4535
4536 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
4537
4538         * target.c (maintenance_print_target_stack): New function.
4539         (initialize_targets): Add new "maintenance print target-stack"
4540         command.
4541
4542 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
4543
4544         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4545
4546 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
4547
4548         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4549         (struct dwarf2_loclist_baton): Likewise.
4550
4551 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
4552
4553         * cli/cli-script.c: Include breakpoint.h.
4554         (build_command_line): Require arguments only for if and while
4555         commands.
4556         (get_command_line, execute_user_command, execute_control_command):
4557         Fix wording of warning messages.
4558         (print_command_lines): Print breakpoint commands.
4559         (execute_control_command): Call commands_from_control_command to
4560         handle the `commands' command inside a body of a flow-control
4561         command.
4562         (read_next_line): Recognize the `commands' command and build a
4563         command line structure for it.
4564         (recurse_read_control_structure, read_command_lines): Handle
4565         `commands' similarly to `if' and `while'.
4566
4567         * breakpoint.c (get_number_trailer): Document the special meaning
4568         of NULL as the first argument PP.
4569         (commands_from_control_command): New function.
4570
4571         * breakpoint.h (commands_from_control_command): Add prototype.
4572
4573         * defs.h (commands_control): New enumerated value for enum
4574         command_control_type.
4575
4576 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
4577
4578         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4579         (ada_exception_sal): Update accordingly.
4580
4581 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
4582
4583         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
4584         * NEWS: Describe CHAR array vs. string identifcation rules.
4585
4586 2007-01-25  Paul Brook  <paul@codesourcery.com>
4587
4588         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
4589
4590 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
4591
4592         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
4593         expression is empty, bother to return the 'optimized out' value we
4594         construct.  (Thanks to Carl Burch.)
4595
4596 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
4597
4598         * varobj.c (c_value_of_root, c_value_of_child)
4599         (cplus_describe_child): Don't call release_value.
4600
4601 2007-01-24  Thiemo Seufer  <ths@mips.com>
4602
4603         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
4604         initialization.
4605
4606 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
4607
4608         Refactor getting children name, value and type access 
4609         for varobjs in C++.
4610         * varobj.c (get_type_deref): Remove.
4611         (adjust_value_for_child_access): New.
4612         (c_number_of_children): Use the above.
4613         (c_describe_child): Likewise.
4614         (enum accessibility): New.
4615         (match_accessibility): New function.
4616         (cplus_describe_child): New function.
4617         (cplus_name_of_child, cplus_value_of_child)
4618         (cplus_type_of_child): Reimplement in terms
4619         of cplus_describe_child.
4620         (cplus_number_of_children): Use 
4621         adjust_value_for_child_access.
4622         
4623 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
4624
4625         Fix computation of the 'editable' attribute and
4626         value changeability for for references.
4627         * varobj.c (get_value_type): New function.
4628         (c_variable_editable): Use get_value_type.
4629         (varobj_value_is_changeable): Likewise.
4630                 
4631 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
4632
4633         * source.c (find_and_open_source): Try rewriting the source
4634         path inside filename if dirname is NULL.
4635
4636 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
4637
4638         * dwarf2read.c (add_partial_symbol): Create an extra partial
4639         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
4640         (new_symbol): Likewise for symbols.
4641
4642 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
4643
4644         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
4645
4646 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
4647         
4648         * value.c (value_primitive_field): Copy the full 'location' 
4649         contents, instead of assuming that copying ADDRESS will 
4650         bring over everything in the union.  Remove obsolete comment.
4651         
4652 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
4653
4654         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
4655         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
4656         (m32c_m16c_pointer_to_address): Separate code from declarations.
4657
4658 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
4659
4660         * target.c (update_current_target): Correct typo.
4661
4662 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
4663
4664         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
4665         declaration.
4666
4667 2007-01-11  Andrew Cagney  <cagney@redhat.com>
4668             Daniel Jacobowitz  <dan@codesourcery.com>
4669             Jan Kratochvil  <jan.kratochvil@redhat.com>
4670
4671         * dwarf2-frame.c (execute_cfa_program): New support of
4672         `DW_CFA_GNU_negative_offset_extended'.
4673
4674 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
4675
4676         * NEWS: Mention flash support for "load" and new remote packets.
4677
4678 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
4679
4680         * breakpoint.c (delete_command): Skip redundant loop iterations.
4681
4682 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
4683
4684         * gdbarch.sh (register_type): Update comment.
4685         * gdbarch.h: Regenerated.
4686         * arch-utils.c (generic_register_size): Call register_type.
4687         * ia64-tdep.c (ia64_extract_return_value): Likewise.
4688         * m32c-tdep.c (check_for_saved): Likewise.
4689         * mips-tdep.c (mips_print_register, print_gp_register_row)
4690         (mips_print_registers_info): Likewise.
4691         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
4692         Likewise.
4693         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
4694         (sh64_do_register, sh64_print_register)
4695         (sh64_media_print_registers_info): Likewise.
4696         * tui/tui-regs.c (tui_register_format): Likewise.
4697
4698 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
4699
4700         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
4701
4702         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
4703         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
4704         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
4705         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4706         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
4707         (make_symbol_completion_list): Likewise.
4708
4709 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4710             Daniel Jacobowitz  <dan@codesourcery.com>
4711
4712         * buildsym.c (end_symtab): Use preallocated symtab if available.
4713         Fill in SYMBOL_SYMTAB.
4714         * buildsym.h (struct subfile): Add symtab member.
4715         * dwarf2read.c (struct dwarf2_cu): Add line_header.
4716         (struct file_entry): Add symtab.
4717         (free_cu_line_header): New function.
4718         (read_file_scope): Use it.  Save line_header in the cu.  Process
4719         lines before DIEs.
4720         (add_file_name): Initialize new symtab member.
4721         (dwarf_decode_lines): Create symtabs for included files.
4722         (new_symbol): Set SYMBOL_SYMTAB.
4723         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
4724         (search_symbols): Likewise.
4725         * symtab.h (struct symbol): Add symtab member.
4726         (SYMBOL_SYMTAB): Define.
4727
4728 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
4729
4730         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
4731
4732 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
4733
4734         * arch-utils.c (show_endian): Correct reversed condition.
4735
4736 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4737
4738         * MAINTAINERS (Write After Approval): Add myself.
4739
4740 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
4741             Vladimir Prus  <vladimir@codesourcery.com>
4742
4743         Fix 'selected frame' varobjs.
4744         * varobj.c (struct varobj): Remove the error field.
4745         (varobj_set_value): Don't check var->error.
4746         (install_new_value): Don't set var->error.
4747         (varobj_update): Always pass the new value
4748         of the root via install_new_value.
4749         (create_child): Don't set error field.
4750         (new_variable): Likewise.
4751         (c_value_of_root): Always reevaluate the value
4752         of selected frame varobjs in the selected frame.
4753         Don't call reinit_frame_cache.
4754
4755 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
4756
4757         * source.c (_initialize_source): Improve the help text of
4758         the substitute-path commands.
4759
4760 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
4761
4762         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
4763         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
4764         (frv_skip_prologue): Remove prototypes.
4765         (frv_adjust_breakpoint_address): Renamed from
4766         frv_gdbarch_adjust_breakpoint_address.
4767         (frv_gdbarch_init): Adjust.
4768
4769 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
4770
4771         * gdbarch.sh (deprecated_extract_return_value)
4772         (deprecated_store_return_value): Remove.
4773         (extract_return_value, store_return_value): Remove default values.
4774         * gdbarch.c, gdbarch.h: Regenerate.
4775         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
4776         (legacy_store_return_value): Remove.
4777         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
4778         Remove.
4779
4780         * mi/mi-main.c: Remove obsolete comment.
4781
4782         * regcache.c, regcache.h (deprecated_register_bytes)
4783         (deprecated_read_register_bytes)
4784         (deprecated_write_register_bytes): Remove.
4785
4786         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
4787         Don't forget to move destination pointer.
4788
4789 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4790
4791         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
4792
4793 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
4794
4795         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
4796         past entry function with recent newlib.
4797
4798 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
4799
4800         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
4801         introduction.  Specify -var-update more exactly.
4802
4803 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
4804
4805         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
4806
4807 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
4808
4809         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
4810         the Global Maintainers' invitation to be a global maintainer.
4811
4812 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
4813
4814         * infrun.c (singlestep_pc): New variable.
4815         (resume): Set singlestep_pc.
4816         (context_switch): Add a debugging message.  Flush the frame cache.
4817         (handle_inferior_event): Add debugging messages.  Handle thread
4818         hops when a software single step has completed.  Let context_switch
4819         handle flushing the frame cache.
4820
4821 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4822
4823         * NEWS: Mention target descriptions, "set tdesc filename",
4824         "unset tdesc filename", "show tdesc filename", and
4825         qXfer:features:read.
4826         * arch-utils.c (choose_architecture_for_target): New function.
4827         (gdbarch_info_fill): Call it.
4828         * target-descriptions.c (struct property): Make members non-const.
4829         (struct target_desc): Add arch member.
4830         (target_description_filename): New variable.
4831         (target_find_description): Try via XML first.
4832         (tdesc_architecture): New.
4833         (free_target_description, make_cleanup_free_target_description): New.
4834         (set_tdesc_property): Call xstrdup.
4835         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4836         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4837         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4838         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4839         * target-descriptions.h (tdesc_architecture)
4840         (make_cleanup_free_target_description, set_tdesc_architecture): New
4841         prototypes.
4842         * Makefile.in (SFILES): Add xml-tdesc.c.
4843         (COMMON_OBS): Add xml-tdesc.o.
4844         (target-descriptions.o): Update.
4845         (xml-tdesc.o): New rule.
4846         * xml-tdesc.c, xml-tdesc.h: New files.
4847         * remote.c (PACKET_qXfer_features): New enum.
4848         (remote_protocol_features): Add qXfer:features:read.
4849         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4850         (_initialize_remote): Register qXfer:features:read.
4851         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4852         * features/gdb-target.dtd: New file.
4853
4854 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4855
4856         * copyright.sh: Clarify error.
4857
4858 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4859
4860         * symtab.c (matching_bfd_sections): Fix VMA matching for
4861         prelinked objects.
4862
4863 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4864
4865         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4866         nested symbols.
4867
4868 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4869
4870         Updated copyright notices for most files.
4871
4872 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4873
4874         * copyright.sh (prunes): Add step-line.inp and step-line.c.
4875
4876 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4877
4878         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4879         exec_prefix.
4880         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4881         '${prefix}'.
4882         * configure, config.in: Regenerate.
4883         * defs.h (debug_file_directory): Declare.
4884         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
4885         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
4886         relocate it if DEBUGDIR_RELOCATABLE.
4887         * symfile.c (debug_file_directory): Make non-static.
4888         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4889         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4890         (_initialize_symfile): Don't initialize debug_file_directory here.
4891
4892 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
4893
4894         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4895         statements.
4896
4897 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4898
4899         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4900         frame_unwind_register to recurse.
4901         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4902         (alpha_heuristic_frame_prev_register): Likewise.
4903         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4904         * m32c-tdep.c (m32c_prev_register): Likewise.
4905         * frame.c (frame_register_unwind_location): Remove FIXME.
4906
4907 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4908             Eli Zaretskii  <eliz@gnu.org>
4909
4910         * copyright.sh: New file.
4911
4912 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4913
4914         * configure.ac: Check for XML_StopParser.
4915         * xml-support.c (gdb_xml_body_text): Check for an error.
4916         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4917         (gdb_xml_end_element_wrapper): Likewise.
4918         * config.in, configure: Regenerated.
4919
4920 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4921
4922         * varobj.c (install_new_value): Always update print_value.
4923         (value_get_print_value): Immediately return NULL for missing
4924         values.
4925
4926 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4927
4928         * configure.ac: Tighten pattern for extracting value of
4929         DEPRECATED_TM_FILE from the target makefile fragment.
4930         * configure: Regenerated.
4931
4932 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4933
4934         * linux-nat.c (struct simple_pid_list): Add status.
4935         (add_to_pid_list): Record the PID's status.
4936         (linux_record_stopped_pid): Likewise.  Make static.
4937         (pull_pid_from_list): Return the saved status.
4938         (linux_nat_handle_extended): Deleted.
4939         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4940         Make static.  Handle non-SIGSTOP for a new thread's first signal.
4941         (flush_callback): Handle unexpected pending signals.
4942         (linux_nat_wait): Update calls to changed functions.
4943         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4944         Remove prototypes for newly static functions.
4945
4946 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4947
4948         * gdbarch.sh (value_from_register): New gdbarch function.
4949         * gdbarch.c, gdbarch.h: Regenerate.
4950         * findvar.c (default_value_from_register): New function.
4951         (value_from_register): Use gdbarch_value_from_register.
4952         * value.h (default_value_from_register): Declare.
4953         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4954         spu_value_to_register): Remove.
4955         (spu_value_from_register): New function.
4956         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4957         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4958         Call set_gdbarch_value_from_register.
4959         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4960         s390_value_to_register): Remove.
4961         (s390_value_from_register): New function.
4962         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4963         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4964         Call set_gdbarch_value_from_register.
4965
4966 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4967
4968         * NEWS: Add "set sysroot" and "show sysroot".
4969         * solib.c (solib_absolute_prefix): Delete.  Replace
4970         all uses with gdb_sysroot.
4971         (_initialize_solib): Add "set sysroot" and "show sysroot".
4972         Make "solib-absolute-prefix" an alias to it.
4973
4974 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4975
4976         * frame.c (get_frame_register_bytes): New function.
4977         (put_frame_register_bytes): Likewise.
4978         * frame.h (get_frame_register_bytes): Declare.
4979         (put_frame_register_bytes): Likewise.
4980         * findvar.c (value_from_register): Always construct lval_register
4981         values.  Use get_frame_register_bytes.
4982         * valops.c (value_assign): Use get_frame_register_bytes and
4983         put_frame_register_bytes.
4984
4985 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4986
4987         * MAINTAINERS: Update Stan Shebs' email address.
4988
4989 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
4990
4991         * ada-lang.c (is_known_support_routine): Improve the implementation.
4992
4993 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
4994
4995         * ada-lang.c: Add include of source.h.
4996         (is_known_support_routine): Improve the check verifying that the file
4997         associated to this frame exists.
4998         * Makefile.in (ada-lang.o): Add dependency on source.h.
4999
5000 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
5001
5002         * ax-general.c (ax_const_l): Select proper opcode for the given
5003         value.
5004
5005 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
5006
5007         * varobj.c (c_value_of_root): Don't select frame if variable
5008         object is out of scope.
5009
5010 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
5011
5012         * varobj.c (struct varobj): New member print_value.
5013         (install_new_value): Compare last printed value with current one
5014         instead of contents.
5015         (new_variable): Initialize var->print_value to NULL.
5016         (free_variable): Free var->print_value.
5017         (value_get_print_value): New function derived from
5018         c_value_of_variable.
5019         (c_value_of_variable): Use value_get_print_value.
5020
5021 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5022
5023         * i386-tdep.c (i386_analyze_stack_align): Add comment.
5024
5025 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5026
5027         * NEWS: Add entries for new catch commands.
5028
5029 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5030
5031         * dwarf2read.c (partial_die_info): Add field has_byte_size.
5032         (add_partial_symbol): Correct identification of external references.
5033         (process_structure_scope): Likewise.
5034         (read_partial_die): Handle DW_AT_byte_size attribute.
5035
5036 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
5037
5038         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5039
5040 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
5041
5042         * varobj.c (get_type_deref): Fix variable objects for references to
5043         pointers.
5044
5045 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5046
5047         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
5048         with no symbols.
5049
5050 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5051
5052         * memory-map.c (struct_memory_map_parsing_data): Remove most
5053         members.  Make property_name an array.
5054         (free_memory_map_parsing_data, memory_map_start_element)
5055         (memory_map_end_element, memory_map_character_data): Delete.
5056         (memory_map_start_memory, memory_map_end_memory)
5057         (memory_map_start_property, memory_map_end_property): New functions.
5058         (property_attributes, memory_children, memory_type_enum)
5059         (memory_attributes, memory_map_children, memory_map_elements): New.
5060         (parse_memory_map): Rewrite.
5061         * xml-support.c (debug_xml): New.
5062         (xml_get_required_attribute, xml_get_integer_attribute)
5063         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5064         Delete.
5065         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5066         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5067         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5068         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5069         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5070         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5071         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5072         New.
5073         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5074         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5075         (enum gdb_xml_element_flag, struct gdb_xml_element)
5076         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5077         (struct gdb_xml_enum): New.
5078         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5079         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5080         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5081         (xml_get_required_attribute, xml_get_integer_attribute)
5082         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5083         * Makefile.in (xml_support_h, xml-support.o): Update.
5084
5085 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5086
5087         * Makefile.in (eval.o): Update dependencies.
5088         * eval.c: Include "ui-out.h" and "exceptions.h".
5089         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5090         Use value_zero if an error occurs when avoiding side effects.
5091         * varobj.c (c_value_of_root): Initialize new_val.
5092
5093 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5094
5095         * varobj.c (varobj_list_children): Stop if the number of children is
5096         unknown.
5097         (c_number_of_children):
5098
5099 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
5100
5101         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5102         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5103         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5104         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5105         sizeof, instead of hardcoded constants.
5106
5107 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5108
5109         * CONTRIBUTE: Use sourceware.org.
5110
5111 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5112
5113         * buildsym.c (start_subfile): Handle producer.
5114         (record_producer): New function.
5115         * buildsym.h (struct subfile): Include producer.
5116         (record_producer): New prototype.
5117         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5118         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5119         armcc_cfa_offsets_reversed.
5120         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5121         (dwarf2_frame_find_quirks): New function.
5122         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
5123         (decode_frame_entry_1): Record the CIE version.  Record the
5124         augmentation.  Skip armcc augmentations.
5125         * dwarf2read.c (read_file_scope): Save the producer.
5126         * symtab.h (struct symtab): Rename unused version member to
5127         producer.
5128
5129 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5130
5131         * configure.ac (build_warnings): Use -Wall and
5132         -Wdeclaration-after-statement.
5133         * configure: Regenerated.
5134
5135 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5136
5137         Simplify access to variours properties of child
5138         variable objects in C.
5139         * varobj.c (value_struct_element_index): New function.
5140         (c_describe_child): New function.
5141         (c_name_of_child, c_value_of_child)
5142         (c_type_of_child): Rewrite to use c_describe_child.
5143
5144 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5145
5146         gdb/
5147         * varobj.c: Include "vec.h". 
5148         (varobj_p): New typedef, declare vector of those.
5149         (struct varobj): Use vector for the 'children' member.
5150         (child_exists): Remove.
5151         (save_child_in_parent): Remove.
5152         (remove_child_from_parent): Remove.
5153         (struct varobj_child): Remove.
5154         (struct vstack): Remove.
5155         (vpush, vpop): Remove.
5156         (varobj_list_children): Adjust to work work vector.
5157         (varobj_update): Likewise. Use vectors for
5158         working stack and result.
5159         (delete_variable_1): Likewise.
5160         * Makefile.in (varobj.o): Update dependencies.
5161
5162 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5163
5164         Port from Apple's version.
5165         gdb/
5166         * varobj.c (type_changeable): Rename to...
5167         (varobj_value_is_changeable_p): ...this. Adjust all callers.
5168         (is_root_p): New function. Use it everywhere.
5169
5170 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
5171
5172         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5173         then plain 'fixup'.
5174
5175 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5176
5177         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5178
5179 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5180
5181         * hpread.c (hpread_type_lookup): Fix compilation failure.
5182
5183 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
5184
5185         * NEWS: New port to S+core.
5186         * MAINTAINERS (Write After Approval, Responsible Maintainers):
5187         Add myself.
5188
5189         * Makefile.in: Add dependencies for S+core files.
5190         * configure.tgt (score*, score-*-*): Add S+core target.
5191         * config/score/embed.mt: New file.
5192         * score-tdep.c: New file.
5193         * score-tdep.h: New file.
5194
5195 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5196
5197         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5198         the appropriate type rather than a bogus void type.
5199
5200 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5201
5202         * ada-lang.h (ada_find_printable_frame): Remove.
5203         (ada_exception_catchpoint_p, ada_decode_exception_location)
5204         (ada_decode_assert_location): Add declaration.
5205         * ada-lang.c: Add include of annotate.h and valprint.h.
5206         (exception_catchpoint_kind): New enum.
5207         (function_name_from_pc, is_known_support_routine)
5208         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5209         (ada_exception_name_addr_1, ada_exception_name_addr)
5210         (print_it_exception, print_one_exception, print_mention_exception)
5211         (print_it_catch_exception, print_one_catch_exception)
5212         (print_mention_catch_exception, catch_exception_breakpoint_ops)
5213         (print_it_catch_exception_unhandled)
5214         (print_one_catch_exception_unhandled)
5215         (print_mention_catch_exception_unhandled, print_it_catch_assert)
5216         (print_one_catch_assert, print_mention_catch_assert)
5217         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5218         (ada_get_next_arg, catch_ada_exception_command_split)
5219         (ada_exception_sym_name, ada_exception_sym_name)
5220         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5221         (ada_parse_catchpoint_condition, ada_exception_sal)
5222         (ada_decode_exception_location)
5223         (ada_decode_assert_location): New function.
5224         (catch_exception_unhandled_breakpoint_ops): New global variable.
5225         (catch_assert_breakpoint_ops): New global variable.
5226         * breakpoint.c: Add include of ada-lang.h.
5227         (print_one_breakpoint): Do not print the condition for Ada
5228         exception catchpoints.
5229         (create_ada_exception_breakpoint): New function.
5230         (catch_ada_exception_command, catch_assert_command): New function.
5231         (catch_command_1): Add support for the new "catch exception" and
5232         "catch assert" commands.
5233         (_initialize_breakpoint): Add help description for the new catch
5234         commands.
5235         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5236         valprint.h.
5237         (breakpoint.o): Add dependency on ada-lang.h.
5238
5239 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
5240
5241         * coffread.c (cs_to_section): If bfd_section is found, always
5242         return its section index.
5243         (coff_symtab_read): Determine the minimal_symbol_type using the
5244         bfd_section flags.
5245
5246 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5247             Daniel Jacobowitz  <dan@codesourcery.com>
5248
5249         * Makefile.in (top.o): Update.
5250         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5251         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5252         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5253         New.
5254         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5255
5256 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
5257
5258         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5259         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5260
5261 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
5262
5263         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5264         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5265         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5266         greater than or equal to zero.
5267         * m2-typeprint.c (m2_array): Likewise.
5268         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5269         * gdbtypes.c (copy_type_recursive): Correct == typo.
5270         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5271         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5272         greater than zero.
5273         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5274         (default_macro_scope): Remove unused variable.
5275         * prologue-value.h (pv_area_find_reg): Don't name an argument
5276         "register".
5277         * remote-fileio.c (remote_fio_func_map): Add missing braces.
5278         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5279         type.
5280         (cleanup_sigint_signal_handler): Remove casts.
5281         * valprint.c (val_print): Use a volatile local for the modified
5282         argument.
5283         * varobj.c (languages): Remove extra array dimension.
5284         (varobj_create): Correct access to languages array.
5285         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5286         missing braces.
5287         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5288         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5289         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5290         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5291         (mi_cmd_data_write_memory): Likewise.
5292         * signals/signals.c (target_signal_to_string): Cast to int before
5293         comparing.
5294         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5295         Update all callers.
5296
5297 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
5298
5299         * NEWS: Mention pointer to member improvements.
5300         * Makefile.in (gnu-v3-abi.o): Delete special rule.
5301         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5302         * ada-valprint.c (ada_print_scalar): Update for new type codes.
5303         * c-typeprint.c (c_print_type): Update for new type codes.
5304         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5305         (c_type_print_base): Likewise.
5306         (c_type_print_args): Rewrite.
5307         * c-valprint.c (c_val_print): Update for new type codes.  Remove
5308         support for references to members.  Treat methods like functions.
5309         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5310         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5311         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5312         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5313         (struct cp_abi_ops): Add corresponding members.
5314         * cp-valprint.c (cp_print_class_method): Delete.
5315         (cp_find_class_member): New function.
5316         (cp_print_class_member): Use it.  Simplify support for bogus
5317         member pointers.
5318         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5319         lookup_methodptr_type.
5320         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5321         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5322         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
5323         pointer support.
5324         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
5325         references returned by user defined operators.
5326         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5327         (f_type_print_varspec_suffix): Remove support for member pointers.
5328         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5329         and adjusted.
5330         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5331         (lookup_methodptr_type): New.
5332         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5333         (recursive_dump_type): Update for new types.
5334         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5335         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5336         (lookup_memberptr_type, lookup_methodptr_type)
5337         (smash_to_memberptr_type): New prototypes.
5338         (smash_to_method_type): Formatting fix.
5339         (lookup_member_type, smash_to_member_type): Delete prototypes.
5340         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5341         Do not rely on debug information for the vptr or the method's
5342         enclosing type.  Handle function descriptors for IA64.
5343         (gnuv3_virtual_fn_field): Rewrite using the new functions.
5344         (gnuv3_find_method_in, gnuv3_print_method_ptr)
5345         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5346         (gnuv3_method_ptr_to_value): New.
5347         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5348         * hpread.c (hpread_type_lookup): Update for new types.
5349         * infcall.c (value_arg_coerce): Likewise.
5350         * m2-typeprint.c (m2_print_type): Remove explicit support
5351         for member pointers.
5352         * m2-valprint.c (m2_val_print): Likewise.
5353         * p-typeprint.c (pascal_type_print_varspec_prefix)
5354         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5355         * p-valprint.c (pascal_val_print): Likewise.
5356         (pascal_object_print_class_method, pascal_object_print_class_member):
5357         Delete.
5358         * p-lang.h (pascal_object_print_class_method)
5359         (pascal_object_print_class_member): Delete prototypes.
5360         * stabsread.c (read_type): Update for new types.
5361         * typeprint.c (print_type_scalar): Likewise.
5362         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5363         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5364         argument.  Construct a pointer to member if the address of a
5365         function or data member is requested.
5366         (value_cast_pointers): Don't modify the input value.
5367         (value_cast): Adjust pointer to member handling for new types.
5368         Allow null pointer to member constants.  Don't modify the input
5369         value.
5370         (value_ind): Remove pointer to member check.  Handle function
5371         descriptors for function pointers.
5372         (value_struct_elt, value_find_oload_method_list, check_field):
5373         Remove pointer to member checks.
5374         * value.c (unpack_long): Allow pointers to data members.
5375         (value_from_longest): Allow member pointers.
5376         * value.h (value_aggregate_elt): Add want_address.
5377         * varobj.c (c_variable_editable): Remove check for members.
5378         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5379         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5380         in virtual tables.
5381         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5382         * c-lang.h (cp_print_class_method): Delete prototype.
5383         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5384         * mips-tdep.c (mips_gdbarch_init): Likewise.
5385         * gdbarch.c, gdbarch.h: Regenerated.
5386
5387 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5388
5389         * rs6000-tdep.c (rs6000_use_struct_convention)
5390         (rs6000_extract_return_value, rs6000_store_return_value)
5391         (rs6000_extract_struct_value_address): Remove.
5392         (rs6000_return_value): New function.
5393         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5394         store_return_value, deprecated_extract_struct_value_address and
5395         deprecated_use_struct_convention.  Use rs6000_return_value
5396         instead.
5397
5398 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
5399
5400         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5401         -display-disable, -display-enable, -display-insert and
5402         -display-list.
5403
5404 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5405
5406         * breakpoint.c (remove_breakpoint): Remove dead code.
5407
5408 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
5409
5410         * varobj.c: Include block.h.
5411         (c_value_of_root): Check scope within nested statements.
5412
5413 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5414
5415         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5416         regcache_cooked_write_signed instead of
5417         deprecated_write_register_bytes.
5418
5419 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5420
5421         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5422
5423 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5424
5425         Followed the Start of New Year Procedure:
5426         * ChangeLog-2006: New file, containing all the entries for 2006.
5427         * ChangeLog: Removed all 2006 entries, and changed the reference
5428         to the previous ChangeLog to point to ChangeLog 2006.
5429         * top.c (print_gdb_version): Update copyright year.
5430
5431 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5432
5433         * Makefile.in (remote-sds.o): Remove.
5434         * remote-sds.c: Delete.
5435
5436 For older changes see ChangeLog-2006.
5437 \f
5438 Local Variables:
5439 mode: change-log
5440 left-margin: 8
5441 fill-column: 74
5442 version-control: never
5443 End: