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