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