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