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