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