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