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