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