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