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