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