OSDN Git Service

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