]> Git Repo - binutils.git/blob - gdb/ChangeLog
* regcache.c (read_register, read_register_pid): Remove.
[binutils.git] / gdb / ChangeLog
1 2007-06-15  Ulrich Weigand  <[email protected]>
2
3         * regcache.c (read_register, read_register_pid): Remove.
4         (write_register, write_register_pid): Likewise.
5         * regcache.h (read_register, read_register_pid): Remove prototype.
6         (write_register, write_register_pid): Likewise.
7
8 2007-06-15  Ulrich Weigand  <[email protected]>
9
10         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
11         (write_pc): Likewise.  Remove default implementation, add predicate.
12         * gdbarch.c, gdbarch.h: Regenerate.
13         * regcache.c (read_pc_pid): Use current regcache instead of calling
14         read_register_pid.
15         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
16         case inline.
17         (generic_target_write_pc): Remove.
18         * inferior.h (generic_target_write_pc): Remove.
19         * frv-tdep.c (frv_gdbarch_init): Do not install it.
20         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
21         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
22         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
23         * sh-tdep.c (sh_gdbarch_init): Likewise.
24         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
25
26         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
27         argument.  Use REGCACHE instead of calling read_register_pid.
28         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
29         * hppa-tdep.c (hppa_read_pc): Likewise.
30         * hppa-tdep.h (hppa_read_pc): Likewise.
31         * ia64-tdep.c (ia64_read_pc): Likewise.
32         * m32r-tdep.c (m32r_read_pc): Likewise.
33         * mep-tdep.c (mep_read_pc): Likewise.
34         * mn10300-tdep.c (mn10300_read_pc): Likewise.
35         * spu-tdep.c (spu_read_pc): Likewise.
36
37         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
38         argument.  Use REGCACHE instead of calling write_register_pid.
39         * avr-tdep.c (avr_write_pc): Likewise.
40         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
41         * hppa-tdep.c (hppa_write_pc): Likewise.
42         * hppa-tdep.h (hppa_write_pc): Likewise.
43         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
44         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
45         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
46         * ia64-tdep.c (ia64_write_pc): Likewise.
47         * ia64-tdep.h (ia64_write_pc): Likewise.
48         * m32r-tdep.c (m32r_write_pc): Likewise.
49         * m88k-tdep.c (m88k_write_pc): Likewise.
50         * mep-tdep.c (mep_write_pc): Likewise.
51         * mips-tdep.c (mips_write_pc): Likewise.
52         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
53         * mn10300-tdep.c (mn10300_write_pc): Likewise.
54         * sparc-tdep.c (sparc_write_pc): Likewise.
55         * spu-tdep.c (spu_write_pc): Likewise.
56
57         * mips-tdep.c (read_signed_register): Remove.
58         (read_signed_register_pid): Likewise.
59         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
60         Use REGCACHE instead of calling read_signed_register_pid.
61
62 2007-06-15  Ulrich Weigand  <[email protected]>
63
64         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
65         * gdbarch.c, gdbarch.h: Regenerate.
66         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
67         (push_dummy_code): Likewise.  Pass it to callee.
68         (call_function_by_hand): Pass current regcache to push_dummy_code.
69
70         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
71         argument.  Use it instead of current_regcache.
72
73         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
74         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
75
76 2007-06-15  Ulrich Weigand  <[email protected]>
77
78         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
79         * gdbarch.c, gdbarch.h: Regenerate.
80         * infrun.c (handle_inferior_event): Pass current frame to
81         gdbarch_get_longjmp_target.
82
83         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
84         Read registers from FRAME instead of using read_register.
85         Use get_frame_arch instead of current_gdbarch.
86         * arm-tdep.c (arm_get_longjmp_target): Likewise.
87         * i386-tdep.c (i386_get_longjmp_target): Likewise.
88         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
89         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
90         (mips64_linux_get_longjmp_target): Likewise.
91         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
92
93 2007-06-15  Ulrich Weigand  <[email protected]>
94
95         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
96         * gdbarch.c, gdbarch.h: Regenerate.
97         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
98         * arch-utils.h (generic_skip_trampoline_code): Likewise.
99         * infrun.c (handle_inferior_event): Pass current frame to
100         gdbarch_skip_trampoline_code and skip_language_trampoline.
101
102         * language.c (unk_lang_trampoline): Add FRAME argument.
103         (skip_language_trampoline): Add FRAME argument.  Pass it to
104         skip_trampoline callback.
105         * language.h: Add forward declaration of struct frame_info.
106         (struct language_defn): Add FRAME argument to skip_trampoline.
107         (skip_language_trampoline): Add FRAME argument.
108         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
109         to skip_trampoline callback.
110         * cp-abi.h: Add forward declaration of struct frame_info.
111         (cplus_skip_trampoline): Add FRAME argument.
112         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
113         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
114         to gdbarch_skip_trampoline_code.
115         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
116         to gdbarch_skip_trampoline_code.
117
118         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
119         * symtab.h (find_solib_trampoline_target): Likewise.
120         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
121         find_solib_trampoline_target.
122
123         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
124         from FRAME instead of calling read_register.
125
126         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
127         argument.  Read registers from FRAME instead of using read_register.
128         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
129         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
130
131         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
132         argument.
133
134         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
135
136         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
137         registers from FRAME instead of using read_signed_register.
138
139         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
140         argument.
141         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
142         instead of using read_register.
143         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
144         ppc64_standard_linkage_target.
145         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
146         Pass it to find_solib_trampoline_target.  Read registers from FRAME
147         instead of using read_register.
148
149         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
150         argument.
151
152 2007-06-15  Ulrich Weigand  <[email protected]>
153
154         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
155         FRAME argument.
156         * gdbarch.c, gdbarch.h: Regenerate.
157         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
158
159         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
160         registers from FRAME instead of using read_register.
161         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
162         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
163         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
164         argument by FRAME.
165
166         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
167         from FRAME instead of using read_register.
168         (thumb_get_next_pc): Likewise.
169         (arm_get_next_pc): Likewise.
170         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
171         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
172         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
173         argument by FRAME.
174
175         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
176         from FRAME instead of using read_register.
177         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
178         to find_step_target.
179
180         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
181         from FRAME instead of using read_register / read_signed_register.
182         (extended_mips16_next_pc): Likewise.
183         (mips16_next_pc): Likewise.
184         (mips_next_pc): Likewise.
185         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
186         to mips_next_pc.  Use get_frame_pc instead of read_pc.
187         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
188         argument by FRAME.
189
190         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
191         of current frame.  Read registers from FRAME.
192         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
193         branch_dest.  Use get_frame_pc instead of read_pc.
194         (rs6000_software_single_step): Likewise.
195         (bl_to_blrl_insn_p): Do not call branch_dest.
196         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
197         argument by FRAME.
198
199         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
200         Read registers from FRAME instead of current regcache.
201         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
202         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
203         * sparc-tdep.c (sparc_address_from_register): Remove.
204         (sparc_analyze_control_transfer): Pass FRAME argument instead of
205         GDBARCH.  Pass FRAME to step_trap callback.
206         (sparc_step_trap): Add FRAME argument.
207         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
208         to sparc_analyze_control_transfer.  Read registers from FRAME instead
209         of calling sparc_address_from_register.
210         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
211         step_trap callback.
212         (sparc_address_from_register): Remove prototype.
213         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
214         (sparcnbsd_step_trap): Add FRAME argument.
215
216         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
217         by FRAME.  Read registers from FRAME instead of REGCACHE.
218
219 2007-06-15  Ulrich Weigand  <[email protected]>
220
221         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
222         instead of calling read_register.
223
224         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
225         calling write_register.
226
227         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
228         calling write_register.
229
230         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
231         instead of calling read_register.
232         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
233         instead of calling read_register and write_register.
234
235         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
236         instead of current_regcache.
237
238         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
239         of calling write_register.
240         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
241         parameter instead of current_regcache.
242
243         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
244         instead of calling read_register.
245         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
246         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
247         (mips_n32n64_push_dummy_call): Likewise.
248         (mips_o32_push_dummy_call): Likewise.
249         (mips_o64_push_dummy_call): Likewise.
250
251         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
252         parameter instead of current_regcache.
253
254         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
255         Use it instead of read_register and write_register.
256         (xtensa_register_read_masked): Likewise.
257         (xtensa_pseudo_register_read): Update call.
258         (xtensa_pseudo_register_write): Likewise.
259         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
260         instead of calling read_register.
261         (xtensa_push_dummy_call): Update comment.
262
263 2007-06-15  Ulrich Weigand  <[email protected]>
264
265         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
266         by frame_unwind_register_signed calls.
267         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
268         frame allocations when called with NULL NEXT_FRAME parameter.
269         (read_next_frame_reg): Remove.
270
271         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
272         instead of reading the FPSCR register.
273         (sh_frame_cache): Pass unwound FPSCR register value to
274         sh_analyze_prologue.
275         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
276
277         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
278         instead of reading the CTBP register.
279         (v850_frame_cache): Pass unwound CTBP register value to
280         v850_analyze_prologue.
281
282 2007-06-15  Ulrich Weigand  <[email protected]>
283
284         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
285         * sh-tdep.c (sh_show_regs): Likewise.
286         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
287         (sh_generic_show_regs): Add FRAME parameter.  Use register
288         values from that frame instead of calling read_register.
289         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
290         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
291         sh_dsp_show_regs): Likewise.
292         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
293         sh64_show_regs): Likewise.
294
295 2007-06-15  Ulrich Weigand  <[email protected]>
296
297         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
298         current regcache instead of calling read_register.
299
300 2007-06-15  Ulrich Weigand  <[email protected]>
301
302         * mep-tdep.c (current_me_module): Read from current regcache
303         instead of calling read_register.
304         (current_options): Likewise.
305
306 2007-06-15  Ulrich Weigand  <[email protected]>
307
308         * cris-tdep.c (cris_stopped_data_address): Read register values
309         from current frame instead of calling read_register.
310         * frv-tdep.c (frv_stopped_data_address): Likewise.
311
312 2007-06-15  Ulrich Weigand  <[email protected]>
313
314         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
315         instead of write_register (PC_REGNUM, ...).
316
317 2007-06-15  Ulrich Weigand  <[email protected]>
318
319         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
320         explaining why the PC adjustment code is necessary.
321
322 2007-06-15  Vladimir Prus  <[email protected]>
323
324         * m68k-tdep.h (enum m68k_flavour): New. 
325         (struct gdbarch_tdep): New fields
326         float_return, flavour and fpregs_present.
327         * m68k-tdep.c (m68k_register_type): Use
328         fpregs_present and conditionalize floating
329         registers type on flavour.
330         (m68k_register_names): New.
331         (m68k_register_name): Use the above.
332         (m68k_convert_register_p): Consult fpregs_present.
333         (m68k_register_to_value, m68k_value_to_register):
334         Use register_type to obtain the type of floating
335         point registers.
336         (m68k_svr4_extract_return_value): Check tdep->float_return.
337         Use register_type to get the type of floating
338         point regiters.
339         (m68k_svr4_store_return_value): Likewise.
340         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
341         (m68k_analyze_register_saves): Likewise.
342         (m68k_gdbarch_init): Extract infromation
343         from XML description, if present.  Guess coldfire by
344         looking at the file, if present. Conditionalize
345         setting of long double format.  Set decr_pc_after_break
346         to 2 on coldfire and fido.  Enable XML-driven
347         register description.
348         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
349         size of tdep->fpreg_type, as opposed to hardcoded value.
350         * Makefile.in (m68k-tdep.o): Update dependencies.
351         
352 2007-06-15  Ulrich Weigand  <[email protected]>
353
354         * NEWS: Mention "info spu" commands and qXfer:spu:read and
355         qXfer:spu:write remote packet types.
356
357 2007-06-13  Daniel Jacobowitz  <[email protected]>
358
359         * xml-tdesc.c (tdesc_start_target): New.
360         (target_attributes): New.
361         (tdesc_elements): Use it.
362         * features/gdb-target.dtd: Add #FIXED version attribute for
363         <target>.
364
365 2007-06-13  Arthur Huillet  <[email protected]>
366
367         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
368
369 2007-06-13  Claudio Fontana <[email protected]>
370
371         * fork-child.c (fork_inferior): Update comment.
372
373 2007-06-13  Daniel Jacobowitz  <[email protected]>
374
375         * features/Makefile: Generate regformats for mips-linux and
376         mips64-linux.
377         * features/sort-regs.xsl: Correct typo.
378         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
379         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
380         files.
381
382 2007-06-13  Daniel Jacobowitz  <[email protected]>
383
384         * config/mips/linux.mh (TDEP_XML): New.
385         * features/mips-linux.xml, features/mips64-linux.xml: New files.
386         * mips-linux-nat.c (mips_linux_register_addr): Handle
387         MIPS_RESTART_REGNUM.
388         (mips64_linux_register_addr): Likewise.
389         (super_xfer_partial, mips_linux_xfer_partial): New.
390         (_initialize_mips_linux_nat): Add them to the target_ops.
391         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
392         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
393         (mips_linux_o32_sigframe_init)
394         (mips_linux_n32n64_sigframe_init): Likewise.
395         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
396         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
397         "org.gnu.gdb.mips.linux" feature.
398         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
399         (mips_linux_restart_reg_p): New prototype.
400         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
401         initialization routine.
402         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
403
404 2007-06-13  Daniel Jacobowitz  <[email protected]>
405
406         * Makefile.in (mips-tdep.o): Update.
407         * mips-tdep.c (struct register_alias, mips_o32_aliases)
408         (mips_n32_n64_aliases, mips_register_aliases): New.
409         (mips_register_name): Call tdesc_register_name.
410         (mips_tdesc_register_reggroup_p): New.
411         (mips_pseudo_register_type, value_of_mips_user_reg): New.
412         (mips_gdbarch_init): Add target-described register support.
413         Register aliases for register names.
414         * target-descriptions.c (tdesc_register_name): Make global.
415         (tdesc_register_in_reggroup_p): New function, broken out from
416         tdesc_register_reggroup_p.
417         (tdesc_register_reggroup_p): Use it.
418         * target-descriptions.h (tdesc_register_name)
419         (tdesc_register_in_reggroup_p): New prototypes.
420         * NEWS: Correct formatting.  Mention MIPS register support.
421         * features/mips-cp0.xml, features/mips-fpu.xml,
422         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
423         features/mips64-cpu.xml: New files.
424
425 2007-06-13  Markus Deuling  <[email protected]>
426
427         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
428         * valops.c (value_cast): Likewise.
429         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
430         * ui-out.c (ui_out_field_core_addr): Likewise.
431         * tracepoint.c (tracepoints_info): Likewise.
432         * symtab.c (print_msymbol_info): Likewise.
433         * solib-irix.c (irix_current_sos)
434         (irix_open_symbol_file_object): Likewise.
435         * remote.c (build_remote_gdbarch_data): Likewise.
436         * prologue-value.c (make_pv_area): Likewise.
437         * procfs.c (info_mappings_callback): Likewise.
438         * printcmd.c (print_scalar_formatted)
439         (deprecated_print_address_numeric): Likewise.
440         * memattr.c (mem_info_command): Likewise.
441         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
442         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
443         * exec.c (print_section_info): Likewise.
444         * dwarf2read.c (read_subrange_type): Likewise.
445         * dwarf2loc.c (find_location_expression): Likewise.
446         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
447         (signed_address_type, execute_stack_op): Likewise.
448         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
449         * gdbarch.c, gdbarch.h: Regenerate.
450
451 2007-06-13  Markus Deuling  <[email protected]>
452
453         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
454         * arch-utils.c (show_architecture): Likewise.
455         * remote-mips.c (mips_open): Likewise
456         * nto-tdep.c (nto_find_and_open_solib)
457         (nto_init_solib_absolute_prefix): Likewise.
458         * nto-procfs (procfs_open): Likewise.
459         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
460         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
461         * gdbarch.c, gdbarch.h: Regenerate.
462
463 2007-06-13  Markus Deuling  <[email protected]>
464
465         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
466         * gdbtypes.c (build_flt): Likewise.
467         * gdbarch.c, gdbarch.h: Regenerate.
468
469 2007-06-13  Markus Deuling  <[email protected]>
470
471         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
472         gdbarch_breakpoint_from_pc.
473         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
474         * remote.c (remote_insert_breakpoint)
475         (remote_insert_hw_breakpoint): Likewise.
476         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
477         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
478         * breakpoint.h (bp_target_info): Likewise (comment).
479         * breakpoint.c (read_memory_nobpt): Likewise.
480         * mem-break.c (default_memory_insert_breakpoint): Likewise.
481         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
482         * gdbarch.c, gdbarch.h: Regenerate.
483
484 2007-06-13  Markus Deuling  <[email protected]>
485
486         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
487         * solib-svr4.c (svr4_truncate_ptr): Likewise.
488         * solib-pa64.c (read_dynamic_info): Likewise.
489         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
490         * solib.c (info_sharedlibrary_command): Likewise.
491         * s390-nat.c (SUBOFF): Likewise.
492         * p-valprint.c (pascal_val_print): Likewise.
493         * procfs.c (info_proc_mappings): Likewise.
494         * printcmd.c (decode_format): Likewise.
495         * nto-tdep.c (nto_truncate_ptr): Likewise.
496         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
497         (mips64_linux_get_longjmp_target): Likewise.
498         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
499         * jv-valprint.c (java_value_print): Likewise.
500         * jv-lang.c (get_java_object_header_size): Likewise.
501         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
502         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
503         (hppa_hpux_unwind_adjust_stub): Likewise.
504         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
505         * gdbtypes.c (make_pointer_type, make_reference_type)
506         (smash_to_memberptr_type): Likewise.
507         * gdbarch.c, gdbarch.h: Regenerate.
508
509 2007-06-13  Daniel Jacobowitz  <[email protected]>
510
511         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
512         (print_gp_register_row): Stop before printing a register bigger
513         than the ABI register size.
514         (mips_print_registers_info): Update call to mips_print_register.
515
516 2007-06-13  Daniel Jacobowitz  <[email protected]>
517
518         * expression.h (enum exp_opcode): Document a register name for
519         OP_REGISTER.
520         * parse.c (write_dollar_variable): Write the register name for
521         OP_REGISTER.
522         (operator_length_standard): Expect the register name following
523         OP_REGISTER.
524         * ada-lang.c (resolve_subexp): Likewise.
525         * ax-gdb.c (gen_expr): Likewise.
526         * eval.c (evaluate_subexp_standard): Likewise.
527         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
528         Likewise.
529         * tracepoint.c (encode_actions): Likewise.
530
531 2007-06-13  Daniel Jacobowitz  <[email protected]>
532
533         * utils.c (set_screen_size): Use INT_MAX for default columns.
534
535 2007-06-13  Ulrich Weigand  <[email protected]>
536
537         * remote.c (remote_protocol_features): Add qXfer:spu:read and
538         qXfer:spu:write packet types.
539
540 2007-06-12  Markus Deuling  <[email protected]>
541
542         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
543         * gdbarch.c, gdbarch.h: Regenerate.
544
545 2007-06-12  Markus Deuling  <[email protected]>
546
547         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
548         gdbarch_stab_reg_to_regnum.
549         * stabsread.c (define_symbol): Likewise.
550         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
551         gdbarch_ecoff_reg_to_regnum.
552         * mdebugread.c (parse_symbol): Likewise.
553         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
554         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
555         gdbarch_dwarf_reg_to_regnum.
556         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
557         * coffread.c (process_coff_symbol): Likewise.
558         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
559         gdbarch_dwarf2_reg_to_regnum.
560         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
561         (locexpr_describe_location): Likewise.
562         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
563         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
564         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
565         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
566         * gdbarch.c, gdbarch.h: Regenerate.
567
568 2007-06-12  Markus Deuling  <[email protected]>
569
570         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
571         gdbarch_smash_text_address.
572         * somread.c (som_symtab_read): Likewise.
573         * elfread.c (record_minimal_symbol): Likewise.
574         * dbxread.c (process_one_symbol): Likewise.
575         * coffread.c (coff_symtab_read): Likewise.
576         * gdbarch.c, gdbarch.h: Regenerate.
577
578 2007-06-12  Markus Deuling  <[email protected]>
579
580         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
581         * findvar.c (value_from_register): Likewise.
582         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
583         * valops.c (value_assign): Likewise.
584         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
585         gdbarch_convert_register_p.
586         * findvar.c (value_from_register): Likewise.
587         * valops.c (value_assign): Likewise.
588         * gdbarch.c, gdbarch.h: Regenerate.
589
590 2007-06-12  Markus Deuling  <[email protected]>
591
592         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
593         gdbarch_register_sim_regno.
594         * sim-regno.h (sim_regno): Likewise (comment).
595         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
596         * gdbarch.c, gdbarch.h: Regenerate.
597
598 2007-06-12  Markus Deuling  <[email protected]>
599
600         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
601         gdbarch_virtual_frame_pointer.
602         * tracepoint.c (encode_actions): Likewise.
603         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
604         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
605         * gdbarch.c, gdbarch.h: Regenerate.
606
607 2007-06-12  Markus Deuling  <[email protected]>
608
609         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
610         * p-lang.c (pascal_create_fundamental_type): Likewise.
611         * objc-lang.c (objc_create_fundamental_type): Likewise.
612         * mdebugread.c (_initialize_mdebugread): Likewise.
613         * m2-lang.c (m2_create_fundamental_type)
614         (_initialize_m2_language): Likewise.
615         * gdbtypes.c (build_gdbtypes): Likewise.
616         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
617         * doublest.c (floatformat_from_length): Likewise.
618         * c-lang.c (c_create_fundamental_type): Likewise.
619         * ada-lang.c (ada_create_fundamental_type)
620         (ada_language_arch_info): Likewise.
621         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
622         * value.c (unpack_double): Likewise (comment).
623         * gdbtypes.c (build_gdbtypes): Likewise.
624         * doublest.c (floatformat_from_length): Likewise.
625         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
626         * valarith.c (value_binop): Likewise.
627         * p-lang.c (pascal_create_fundamental_type): Likewise.
628         * objc-lang.c (objc_create_fundamental_type): Likewise.
629         * mdebugread.c (_initialize_mdebugread): Likewise.
630         * m2-lang.c (m2_create_fundamental_type): Likewise.
631         * gdbtypes.c (build_gdbtypes): Likewise.
632         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
633         * doublest.c (floatformat_from_length): Likewise.
634         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
635         * c-lang.c (c_create_fundamental_type): Likewise.
636         * ada-lex.l (processReal): Likewise.
637         * ada-lang.c (ada_create_fundamental_type)
638         (ada_language_arch_info): Likewise.
639         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
640         * value.c (unpack_double): Likewise (comment).
641         * gdbtypes.c (build_gdbtypes): Likewise.
642         * doublest.c (floatformat_from_length): Likewise.
643         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
644         gdbarch_long_double_bit.
645         * p-lang.c (pascal_create_fundamental_type): Likewise.
646         * objc-lang.c (objc_create_fundamental_type): Likewise.
647         * m2-lang.c (m2_create_fundamental_type): Likewise.
648         * gdbtypes.c (build_gdbtypes): Likewise.
649         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
650         * doublest.c (floatformat_from_length): Likewise.
651         * c-lang.c (c_create_fundamental_type): Likewise.
652         * ada-lex.l (processReal): Likewise.
653         * ada-lang.c (ada_create_fundamental_type)
654         (ada_language_arch_info): Likewise.
655         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
656         gdbarch_long_double_format.
657         * gdbtypes.c (build_gdbtypes): Likewise.
658         * doublest.c (floatformat_from_length): Likewise.
659         * gdbarch.c, gdbarch.h: Regenerate.
660
661 2007-06-12  Markus Deuling  <[email protected]>
662
663         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
664         * ada-lang.c (ada_create_fundamental_type)
665         (ada_language_arch_info): Likewise.
666         * c-lang.c (c_create_fundamental_type): Likewise.
667         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
668         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
669         * m2-lang.c (m2_create_fundamental_type): Likewise.
670         * objc-lang.c (objc_create_fundamental_type): Likewise.
671         * p-lang.c (pascal_create_fundamental_type): Likewise.
672         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
673         * c-exp.y (parse_number): Likewise.
674         * objc-exp.y (parse_number): Likewise.
675         * ada-lex.l (processInt): Likewise.
676         * f-exp.y (parse_number): Likewise.
677         * p-exp.y (parse_number): Likewise.
678         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
679         (gdbtypes_post_init, build_gdbtypes): Likewise.
680         * p-lang.c (pascal_create_fundamental_type): Likewise.
681         * parse.c (build_parse): Likewise.
682         * xcoffread.c (_initialize_xcoffread): Likewise.
683         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
684         (read_range_type): Likewise.
685         * objc-lang.c (objc_create_fundamental_type): Likewise.
686         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
687         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
688         (m2_create_fundamental_type): Likewise.
689         * c-lang.c (c_create_fundamental_type): Likewise.
690         * coffread.c (coff_read_enum_type): Likewise.
691         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
692         * dwarf2read.c (new_symbol): Likewise.
693         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
694         * c-exp.y (parse_number): Likewise.
695         * objc-exp.y (parse_number): Likewise.
696         * ada-lex.l (processInt): Likewise.
697         * f-exp.y (parse_number): Likewise.
698         * p-exp.y (parse_number): Likewise.
699         * valarith.c (value_binop): Likewise.
700         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
701         * ada-lang.c (ada_create_fundamental_type)
702         (ada_language_arch_info): Likewise.
703         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
704         * symfile.c (TARGET_LONG_BYTES): Likewise.
705         * p-lang.c (pascal_create_fundamental_type): Likewise.
706         * objc-lang.c (objc_create_fundamental_type): Likewise.
707         * m2-lang.c (m2_create_fundamental_type): Likewise.
708         * f-lang.c (f_create_fundamental_type): Likewise.
709         * c-lang.c (c_create_fundamental_type): Likewise.
710         * coffread.c (decode_base_type): Likewise.
711         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
712         * c-exp.y (parse_number): Likewise.
713         * objc-exp.y (parse_number): Likewise.
714         * p-exp.y (parse_number): Likewise.
715         * ada-lang.c (ada_create_fundamental_type)
716         (ada_language_arch_info): Likewise.
717         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
718         * stabsread.c (read_range_type): Likewise.
719         * p-lang.c (pascal_create_fundamental_type): Likewise.
720         * objc-lang.c (objc_create_fundamental_type): Likewise.
721         * m2-lang.c (m2_create_fundamental_type): Likewise.
722         * f-lang.c (f_create_fundamental_type): Likewise.
723         * c-lang.c (c_create_fundamental_type): Likewise.
724         * gdbarch.c, gdbarch.h: Regenerate.
725
726 2007-06-12  Andreas Schwab  <[email protected]>
727
728         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
729         (struct frame_unwind): Add dealloc_cache.
730         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
731
732         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
733         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
734         (libunwind_frame_unwind): Set dealloc_cache.
735         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
736
737 2007-06-12  Ulrich Weigand  <[email protected]>
738             Markus Deuling  <[email protected]>
739
740         * remote.c (remote_write_qxfer): New function.
741         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
742         (remote_read_qxfer): Do not cache empty objects.
743         (_initialize_remote): Add PACKET_qXfer_spu_read and
744         PACKET_qXfer_spu_write.
745
746 2007-06-12  Ulrich Weigand  <[email protected]>
747
748         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
749         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
750
751         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
752         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
753         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
754         * spu-tdep.c (infospucmdlist): New variable.
755         (spu_register_name): Handle additional pseudo registers.
756         (spu_register_type): Likewise.
757         (spu_pseudo_register_read): Likewise.
758         (spu_pseudo_register_write): Likewise.
759         (spu_pseudo_register_read_spu): New function.
760         (spu_pseudo_register_write_spu): Likewise.
761         (info_spu_event_command): New function.
762         (info_spu_signal_command): Likewise.
763         (info_spu_mailbox_list): Likewise.
764         (info_spu_mailbox_command): Likewise.
765         (spu_mfc_get_bitfield): Likewise.
766         (info_spu_dma_cmdlist): Likewise.
767         (info_spu_dma_command): Likewise.
768         (info_spu_proxydma_command): Likewise.
769         (info_spu_command): Likewise.
770         (_initialize_spu_tdep): Install "info spu" commands.
771
772 2007-06-12  Ulrich Weigand  <[email protected]>
773
774         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
775         accessing non-seekable spufs files.
776
777 2007-06-09  Markus Deuling  <[email protected]>
778
779         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
780         gdbarch_skip_trampoline_code.
781         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
782         * objc-lang.c (objc_skip_trampoline)
783         (objc_submethod_helper_data): Likewise.
784         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
785         * infrun.c (handle_inferior_event): Likewise.
786         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
787         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
788         gdbarch_in_solib_return_trampoline.
789         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
790         * infrun.c (handle_inferior_event): Likewise.
791         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
792         * gdbarch.c, gdbarch.h: Regenerate.
793
794 2007-06-09  Markus Deuling  <[email protected]>
795
796         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
797         * symtab.c (find_function_start_sal, in_prologue): Likewise.
798         * linespec.c (minsym_found): Likewise.
799         * infrun.c (step_into_function): Likewise.
800         * gdbarch.c, gdbarch.h: Regenerate.
801
802 2007-06-09  Markus Deuling  <[email protected]>
803
804         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
805         * valops.c (value_allocate_space_in_inferior): Likewise.
806         * gdbarch.c, gdbarch.h: Regenerate.
807
808 2007-06-09  Markus Deuling  <[email protected]>
809
810         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
811         gdbarch_memory_insert_breakpoint.
812         * mem-break.c (memory_insert_breakpoint): Likewise.
813         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
814         gdbarch_memory_remove_breakpoint.
815         * mem-break.c (memory_remove_breakpoint): Likewise.
816         * gdbarch.c, gdbarch.h: Regenerate.
817
818 2007-06-09  Markus Deuling  <[email protected]>
819
820         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
821         gdbarch_fetch_tls_load_module_address.
822         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
823         gdbarch_fetch_tls_load_module_address_p.
824         * gdbarch.c, gdbarch.h: Regenerate.
825
826 2007-06-09  Markus Deuling  <[email protected]>
827
828         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
829         gdbarch_decr_pc_after_break.
830         * tracepoint.c (trace_dump_command): Likewise.
831         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
832         * linux-thread-db.c (check_event): Likewise.
833         * linux-nat.c (cancel_breakpoints_callback): Likewise.
834         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
835         * frame.h: Likewise (comment).
836         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
837         * aix-thread.c (aix_thread_wait): Likewise.
838         * gdbarch.c, gdbarch.h: Regenerate.
839
840 2007-06-09  Markus Deuling  <[email protected]>
841
842         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
843         gdbarch_address_class_type_flags.
844         * dwarf2read.c (read_tag_pointer_type): Likewise.
845         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
846         gdbarch_address_class_type_flags_p.
847         * dwarf2read.c (read_tag_pointer_type): Likewise.
848         * gdbarch.c, gdbarch.h: Regenerate.
849
850 2007-06-09  Markus Deuling  <[email protected]>
851
852         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
853         * value.c (value_as_address): Likewise (comment).
854         * remote-mips.c (common_breakpoint): Likewise.
855         * regcache.c (read_pc_pid): Likewise.
856         * printcmd.c (do_one_display): Likewise.
857         * monitor.c (monitor_write_memory, monitor_read_memory)
858         (monitor_insert_breakpoint): Likewise.
859         * mips-tdep.c (heuristic_proc_start): Likewise.
860         * infrun.c (insert_step_resume_breakpoint_at_frame)
861         (insert_step_resume_breakpoint_at_caller): Likewise.
862         * buildsym.c (record_line): Likewise.
863         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
864         (arm_get_next_pc): Likewise.
865         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
866         (store_regs): Likewise.
867         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
868         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
869         * gdbarch.c, gdbarch.h: Regenerate.
870
871 2007-06-09  Markus Deuling  <[email protected]>
872
873         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
874         * tracepoint.c (scope_info): Likewise.
875         * target.c (debug_print_register): Likewise.
876         * stack.c (frame_info): Likewise.
877         * sh-tdep.c (sh_register_reggroup_p): Likewise.
878         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
879         (sh64_media_print_registers_info)
880         (sh64_compact_print_registers_info): Likewise.
881         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
882         * remote-sim.c (gdbsim_fetch_register): Likewise.
883         * remote.c (packet_reg): Likewise (comment).
884         * reggroups.c (default_register_reggroup_p): Likewise.
885         * regcache.c (regcache_dump): Likewise.
886         * printcmd.c (address_info): Likewise.
887         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
888         * mt-dep.c (mt_registers_info): Likewise.
889         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
890         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
891         (mips_read_fp_register_double, mips_print_fp_register)
892         (mips_print_register, print_gp_register_row, mips_print_registers_info)
893         (mips_register_sim_regno): Likewise.
894         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
895         * inf-ptrace.c (inf_ptrace_fetch_register)
896         (inf_ptrace_store_register): Likewise.
897         * infcmd.c (default_print_registers_info): Likewise.
898         * ia64-linux-nat.c (ia64_linux_fetch_register)
899         (ia64_linux_store_register): Likewise.
900         * i386-linux-nat.c (fetch_register, store_register): Likewise.
901         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
902         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
903         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
904         (hppa_hpux_store_register): Likewise.
905         * findvar.c (locate_var_value): Likewise.
906         * dwarf2loc.c (locexpr_describe_location): Likewise.
907         * dwarf2-frame.c (execute_cfa_program): Likewise.
908         * arm-tdep.c (arm_push_dummy_call): Likewise.
909         * arch-utils.c (legacy_register_sim_regno): Likewise.
910         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
911         * alpha-nat.c (fetch_osf_core_registers): Likewise.
912         * mi/mi-main.c (mi_cmd_data_list_register_names)
913         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
914         (mi_cmd_data_write_register_values): Likewise.
915         * gdbarch.c, gdbarch.h: Regenerate.
916
917 2007-06-07  Daniel Jacobowitz  <[email protected]>
918
919         * target-memory.c (blocks_to_erase): Correct off-by-one error.
920
921 2007-06-06  Vladimir Prus  <[email protected]>
922         
923         * remote.c (process_g_packet): Don't check size.
924         * gdbarch.sh: Remove register_bytes_ok.
925         * gdbarch.c: Regenerated.
926         * gdbarch.h: Regenerated.
927         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
928         (m68k_register_bytes_ok): Remove.
929         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
930         
931 2007-06-06  Andreas Schwab  <[email protected]>
932
933         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
934         (destroy_addr_space_name): Define.
935         (libunwind_load): Get address of destroy_addr_space function.
936         (libunwind_frame_cache): Destroy unw_addr_space_t object before
937         returning unsuccessfully.
938         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
939         returning.
940         (libunwind_sigtramp_frame_sniffer): Likewise.
941         (libunwind_get_reg_special): Likewise.
942
943 2007-06-06  Markus Deuling  <[email protected]>
944
945         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
946         gdbarch_fetch_pointer_argument.
947         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
948         * gdbarch.c, gdbarch.h: Regenerate.
949
950 2007-06-06  Markus Deuling  <[email protected]>
951
952         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
953         gdbarch_have_nonsteppable_watchpoint.
954         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
955         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
956         gdbarch_cannot_step_breakpoint.
957         * infrun.c (resume): Likewise.
958         * gdbarch.c, gdbarch.h: Regenerate.
959
960 2007-06-06  Markus Deuling  <[email protected]>
961
962         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
963         * stack.c (print_frame_args): Likewise.
964         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
965         * stack.c (print_args_stub, frame_info): Likewise.
966         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
967         * stack.c (print_args_stub, frame_info): Likewise.
968         * gdbarch.c, gdbarch.h: Regenerate.
969
970 2007-06-06  Markus Deuling  <[email protected]>
971
972         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
973         gdbarch_coff_make_msymbol_special.
974         * coffread.c (coff_symtab_read): Likewise.
975         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
976         gdbarch_elf_make_msymbol_special.
977         * elfread.c (elf_symtab_read): Likewise.
978         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
979         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
980         * gdbarch.c, gdbarch.h: Regenerate.
981
982 2007-06-06  Markus Deuling  <[email protected]>
983
984         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
985         gdbarch_frame_red_zone_size.
986         * gdbarch.c, gdbarch.h: Regenerate.
987
988 2007-06-06  Markus Deuling  <[email protected]>
989
990         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
991         * infcall.c (call_function_by_hand): Likewise.
992         * gcore.c (derive_stack_segment): Likewise.
993         * frame.c (frame_id_inner): Likewise.
994         * arch-utils.c (core_addr_lessthan): Likewise (comment).
995         * ada-lang.c (ensure_lval): Likewise.
996         * gdbarch.c, gdbarch.h: Regenerate.
997
998 2007-06-06  Markus Deuling  <[email protected]>
999
1000         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1001         gdbarch_address_to_pointer.
1002         * findvar.c (store_typed_address): Likewise.
1003         * gdbtypes.c (make_pointer_type): Likewise (comment).
1004         * procfs.c (procfs_address_to_host_pointer): Likewise.
1005         * std-regs.c (value_of_builtin_frame_reg): Likewise.
1006         (value_of_builtin_frame_fp_reg): Likewise.
1007         (value_of_builtin_frame_pc_reg): Likewise.
1008         * utils.c (paddress): Likewise (comment).
1009         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1010         gdbarch_pointer_to_address.
1011         * findvar.c (extract_typed_address): Likewise.
1012         * gdbtypes.c (make_pointer_type): Likewise (comment).
1013         * valops.c (value_cast): Likewise (comment).
1014         * gdbarch.c, gdbarch.h: Regenerate.
1015
1016 2007-06-06  Markus Deuling  <[email protected]>
1017
1018         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1019         * infrun.c (handle_inferior_event): Likewise.
1020         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1021         gdbarch_get_longjmp_target_p.
1022         * breakpoint.c (breakpoint_re_set): Likewise.
1023         * infrun.c (handle_inferior_event): Likewise.
1024         * gdbarch.c, gdbarch.h: Regenerate.
1025
1026 2007-06-06  Ulrich Weigand  <[email protected]>
1027
1028         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1029         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1030         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1031         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1032         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1033         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1034         find_stub_with_shl_get, cover_find_stub_with_shl_get,
1035         initialize_hp_cxx_exception_support, child_enable_exception_callback,
1036         current_ex_event, child_get_current_exception_event): Remove.
1037         (hppa_hpux_inferior_created): Remove.
1038         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1039
1040         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1041         (deprecated_exception_support_initialized): Remove.
1042         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1043         (deprecated_exception_support_initialized): Remove.
1044         (breakpoint_init_inferior): Remove handling of non-zero
1045         deprecated_exception_catchpoints_are_fragile.
1046
1047         * symtab.h (deprecated_hp_som_som_object_present): Remove.
1048         * symtab.c (deprecated_hp_som_som_object_present): Remove.
1049         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1050         deprecated_hp_som_som_object_present.
1051         * eval.c (evaluate_subexp_standard): Likewise.
1052         * valops.c (value_cast): Likewise.
1053
1054         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1055         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1056         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1057
1058 2007-06-06  Ulrich Weigand  <[email protected]>
1059
1060         * objfiles.h (ImportEntry, ExportEntry): Remove types.
1061         (struct objfile): Remove import_list, import_list_size,
1062         export_list, export_list_size members.
1063         (is_in_import_list): Remove prototype.
1064         * objfiles.c (is_in_import_list): Remove.
1065         * somread.c (init_import_symbols, init_export_symbols): Remove.
1066         (som_symfile_read): Do not call init_import_symbols.  Do not
1067         set objfile->export_list and objfile->export_list_size.
1068
1069 2007-06-05  Daniel Jacobowitz  <[email protected]>
1070
1071         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1072         Use the original objfile if necessary.
1073
1074 2007-06-04  Daniel Jacobowitz  <[email protected]>
1075
1076         * defs.h (ldirname): New prototype.
1077         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1078         missing.
1079         * utils.c (ldirname): New function.
1080         * xml-tdesc.c (file_read_description_xml): Use ldirname.
1081
1082 2007-06-01  Ulrich Weigand  <[email protected]>
1083
1084         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1085
1086 2007-06-01  Joel Brobecker  <[email protected]>
1087
1088         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1089
1090 2007-06-01  Ulrich Weigand  <[email protected]>
1091
1092         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1093
1094 2007-06-01  Ulrich Weigand  <[email protected]>
1095
1096         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1097         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1098         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1099         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1100         (ppc_linux_in_sigtramp, insn_is_sigreturn,
1101         ppc_linux_at_sigtramp_return_path): Remove.
1102
1103 2007-05-31  Markus Deuling  <[email protected]>
1104
1105         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1106         (xtensa_register_write_masked, xtensa_register_read_masked)
1107         (xtensa_extract_return_value, xtensa_store_return_value
1108         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
1109         TARGET_BYTE_ORDER by gdbarch_byte_order.
1110         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1111         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1112         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1113         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1114         (sh64_push_dummy_call, sh64_extract_return_value)
1115         (sh64_store_return_value, sh64_register_convert_to_virtual)
1116         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1117         (sh64_pseudo_register_write, sh64_do_fp_register)
1118         (sh64_frame_prev_register): Likewise.
1119         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1120         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1121         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1122         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1123         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1124         * ppc-linux-nat.c (store_register): Likewise.
1125         * nto-tdep.c (nto_find_and_open_solib)
1126         (nto_init_solib_absolute_prefix): Likewise.
1127         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1128         (mips_convert_register_p, mips_eabi_push_dummy_call)
1129         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1130         (mips_o32_push_dummy_call, mips_o32_return_value)
1131         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1132         (mips_read_fp_register_single, mips_read_fp_register_double)
1133         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1134         (mips_breakpoint_from_pc): Likewise.
1135         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1136         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1137         (mips_linux_o32_sigframe_init): Likewise.
1138         * m32r-tdep.c (m32r_memory_insert_breakpoint)
1139         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1140         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1141         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1142         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1143         * coffread.c (process_coff_symbol): Likewise.
1144         * arm-tdep.c (convert_from_extended, convert_to_extended)
1145         (gdb_print_insn_arm): Likewise.
1146
1147 2007-05-31  Markus Deuling  <[email protected]>
1148
1149         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1150         * i386-tdep.c (i386_dbx_reg_to_regnum)
1151         (i386_svr4_reg_to_regnum): Likewise.
1152         * inf-ptrace.c (inf_ptrace_fetch_registers)
1153         (inf_ptrace_store_registers): Likewise.
1154         * corelow.c (get_core_registers): Likewise.
1155         * i386-linux-nat.c (supply_gregset, fill_gregset)
1156         (i386_linux_fetch_inferior_registers)
1157         (i386_linux_store_inferior_registers): Likewise.
1158         * remote.c (init_remote_state,packet_reg_from_regnum)
1159         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1160         (remote_prepare_to_store,store_registers_using_G)
1161         (remote_store_registers,remote_arch_state): Likewise.
1162         * tracepoint.c (encode_actions): Likewise.
1163         * mi/mi-main.c (mi_cmd_data_list_register_names)
1164         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1165         (mi_cmd_data_write_register_values): Likewise.
1166         * tui/tui-regs.c (tui_show_register_group)
1167         (tui_show_register_group): Likewise.
1168         * xtensa-tdep.h (FP_ALIAS): Likewise.
1169         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1170         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1171         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1172         * win32-nat.c (do_win32_fetch_inferior_registers)
1173         (do_win32_store_inferior_registers,fetch_elf_core_registers
1174         * user-regs.h: Likewise (comment).
1175         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1176         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1177         * target-descriptions.h: Likewise (comment).
1178         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1179         * target.c (debug_print_register): Likewise.
1180         * stack.c (frame_info): Likewise.
1181         * stabsread.c (define_symbol): Likewise.
1182         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1183         (sh64_media_print_registers_info)
1184         (sh64_compact_print_registers_info): Likewise.
1185         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1186         * rs6000-nat.c (fetch_register,store_register): Likewise.
1187         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1188         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1189         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1190         * remote-m32r-sdi.c (m32r_fetch_registers)
1191         (m32r_store_registers): Likewise.
1192         * reggroups.c (default_register_reggroup_p): Likewise.
1193         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1194         (regcache_restore,regcache_dump): Likewise.
1195         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1196         * mips-tdep.c (mips_xfer_register,mips_register_name)
1197         (mips_register_reggroup_p,mips_pseudo_register_read)
1198         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1199         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1200         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1201         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1202         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1203         (print_gp_register_row,mips_print_registers_info)
1204         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1205         (mips_register_sim_regno): Likewise.
1206         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1207         (mips_linux_n32n64_sigframe_init): Likewise.
1208         * mips-linux-nat.c (mips_linux_register_addr)
1209         (mips64_linux_register_addr): Likewise.
1210         * findvar.c (value_of_register): Likewise.
1211         * infcmd.c (default_print_registers_info,registers_info)
1212         (print_vector_info,print_float_info): Likewise.
1213         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1214         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1215         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1216         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1217         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1218         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1219         (ia64_cannot_store_register,ia64_linux_fetch_registers)
1220         (ia64_linux_store_registers): Likewise.
1221         * hpux-thread.c (hpux_thread_fetch_registers)
1222         (hpux_thread_store_registers): Likewise.
1223         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1224         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1225         (h8300_register_type): Likewise.
1226         * dwarf2-frame.c (dwarf2_frame_cache)
1227         (dwarf2_frame_state_alloc_regs): Likewise.
1228         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1229         (cris_cannot_store_register,crisv32_cannot_fetch_register)
1230         (crisv32_cannot_store_register,cris_register_name): Likewise.
1231         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1232         * arch-utils.c (legacy_register_sim_regno)
1233         (legacy_virtual_frame_pointer): Likewise.
1234         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1235         * arm-tdep.h: Likewise (comment).
1236         * frv-tdep.c (frv_register_sim_regno): Likewise.
1237         * m68klinux-nat.c (old_fetch_inferior_registers)
1238         (old_store_inferior_registers): Likewise.
1239         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1240         * irix5-nat.c (fetch_core_registers): Likewise.
1241         * hppa-tdep.c (hppa_frame_cache): Likewise.
1242         * hppa-linux-nat.c (hppa_linux_register_addr)
1243         (hppa_linux_fetch_inferior_registers)
1244         (hppa_linux_store_inferior_registers): Likewise.
1245         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1246         (hppa_hpux_store_inferior_registers): Likewise.
1247         * amd64-nat.c (amd64_native_gregset_reg_offset)
1248         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1249         * dbug-rom.c (dbug_regname): Likewise.
1250         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1251         (HARD_PAGE_REGNUM (comment)): Likewise.
1252         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1253         * i386-tdep.c (i386_dbx_reg_to_regnum)
1254         (i386_svr4_reg_to_regnum): Likewise.
1255         * mi/mi-main.c (mi_cmd_data_list_register_names)
1256         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1257         (mi_cmd_data_write_register_values): Likewise.
1258         * gdbarch.c, gdbarch.h: Regenerate.
1259         * tui/tui-regs.c (tui_show_register_group): Likewise.
1260         * xtensa-tdep.h (FP_ALIAS): Likewise.
1261         * user-regs.h: Likewise (comment).
1262         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1263         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1264         * target-descriptions.h: Likewise (comment).
1265         * target.c (debug_print_register): Likewise.
1266         * stack.c (frame_info): Likewise.
1267         * stabsread.c (define_symbol): Likewise.
1268         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1269         (sh64_compact_print_registers_info): Likewise.
1270         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1271         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1272         (regcache_restore,regcache_dump): Likewise.
1273         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1274         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1275         (mips_stab_reg_to_regnum): Likewise.
1276         * findvar.c (value_of_register): Likewise.
1277         * infcmd.c (default_print_registers_info,registers_info)
1278         (print_vector_info,print_float_info): Likewise.
1279         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1280         * h8300-tdep.c (h8300_register_type): Likewise.
1281         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1282         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1283         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1284         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1285         * parse.c: Remove comment.
1286         * gdbarch.c, gdbarch.h: Regenerate
1287
1288 2007-05-31  Markus Deuling  <[email protected]>
1289
1290         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1291         gdbarch_cannot_fetch_register.
1292         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1293         * hppa-linux-nat.c (fetch_register): Likewise.
1294         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1295         * m68klinux-nat.c (fetch_register): Likewise.
1296         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1297         Likewise.
1298         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1299         gdbarch_cannot_store_register.
1300         * hppa-linux-nat.c (store_register): Likewise.
1301         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1302         * regcache.c (regcache_raw_write): Likewise.
1303         * m68klinux-nat.c (store_register): Likewise.
1304         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1305         * gdbarch.c, gdbarch.h: Regenerate.
1306
1307 2007-05-31  Markus Deuling  <[email protected]>
1308
1309         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
1310         * gdbarch.c, gdbarch.h: Regenerate.
1311
1312 2007-05-31  Markus Deuling  <[email protected]>
1313
1314         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
1315         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1316         * gdbarch.c, gdbarch.h: Regenerate.
1317
1318 2007-05-31  Markus Deuling  <[email protected]>
1319
1320         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
1321         * ax-gdb.c (gen_bitfield_ref): Likewise.
1322         * mi/mi-main.c (get_register): Likewise.
1323         * findvar.c (default_value_from_register, extract_signed_integer)
1324         (extract_unsigned_integer, extract_long_unsigned_integer)
1325         (store_signed_integer, store_unsigned_integer): Likewise.
1326         * regcache.c (regcache_dump): Likewise.
1327         * value.c (lookup_internalvar, value_of_internalvar)
1328         (set_internalvar): Likewise.
1329         * defs.h: Likewise.
1330         * valprint.c (print_binary_chars, print_octal_chars)
1331         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
1332         * infcmd.c (default_print_registers_info): Likewise.
1333         * arch-utils.c (selected_byte_order, show_endian): Likewise.
1334         * stabsread.c (define_symbol): Likewise.
1335         * doublest.c (floatformat_from_length, floatformat_from_type)
1336         (extract_typed_floating, store_typed_floating): Likewise.
1337         * gdbarch.c, gdbarch.h: Regenerate.
1338
1339 2007-05-31  Markus Deuling  <[email protected]>
1340
1341         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
1342         gdbarch_call_dummy_location.
1343         * infcall.c (call_function_by_hand): Likewise.
1344         * inferior.h: Change comment.
1345         * arch-utils.c: Change comment.
1346         * gdbarch.c, gdbarch.h: Regenerate.
1347
1348 2007-05-28  Joel Brobecker  <[email protected]>
1349
1350         * solib-aix5.c: Delete.
1351         * Makefile.in (solib-aix5.o): Delete rule.
1352
1353 2007-05-23  Daniel Jacobowitz  <[email protected]>
1354
1355         * breakpoint.h (enum bpstat_what_main_action): Remove
1356         BPSTAT_WHAT_THROUGH_SIGTRAMP.
1357         * infrun.c (process_event_stop_test): Do not check for it.
1358
1359 2007-05-22  Chris Dearman  <[email protected]>
1360             Maciej W. Rozycki  <[email protected]>
1361
1362         * ser-unix.c (show_serial_hwflow): New function.
1363         (hardwire_raw): Add hardware flow control support.
1364         (_initialize_ser_hardwire): Add "set/show remoteflow".
1365         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
1366         * NEWS: Document the new command.
1367
1368 2007-05-21  Ulrich Weigand  <[email protected]>
1369
1370         * config/i386/tm-linux.h (sys_quotactl): Do not define.
1371         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
1372         define for i[[3456]]86-*-linux* native configurations.
1373         * config.in, configure: Regenerate.
1374
1375 2007-05-19  Joel Brobecker  <[email protected]>
1376
1377         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
1378         a core file. Add comment in the function description.
1379
1380 2007-05-18  Caroline Tice  <[email protected]>
1381
1382         * c-valprint.c (c_value_print):  If the initialized field of the
1383         value struct is 0, print out "[uninitialized]" before the value.
1384         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
1385         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
1386         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
1387         ctx->initialized appropriately. Verify no location op follows
1388         DW_OP_GNU_uninit.
1389         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
1390         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
1391         set_value_initialized.
1392         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1393         (decode_locdesc): Add case for DW_OP_GNU_uninit.
1394         * value.c (struct value):  New field, initialized.
1395         (allocate_value): Initialize new field.
1396         (set_value_initialized): New function.
1397         (value_initialized): New function.
1398         * value.h (value_initialized): New extern declaration.
1399         (set_value_initialized): Likewise.
1400         
1401 2007-05-18  Caroline Tice  <[email protected]>
1402
1403         * MAINTAINERS (Write After Approval): Add self.
1404         
1405 2007-05-17  Joel Brobecker  <[email protected]>
1406
1407         * gdbtypes.c (make_reference_type): Preserve the type chain
1408         and set the length of all the variants of the pointer type.
1409
1410 2007-05-17  Joel Brobecker  <[email protected]>
1411
1412         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
1413         and set the length of all the variants of the pointer type.
1414
1415 2007-05-17  Maciej W. Rozycki  <[email protected]>
1416
1417         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
1418         comment.
1419         (mips_o64_push_dummy_call): Reformat a comment.
1420
1421 2007-05-17  Qinwei  <[email protected]>
1422
1423         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
1424         (score_prologue_frame_base_address): Return fp to keep gdb print
1425         local variables correctly when debugging information is stabs.
1426
1427         (score_analyze_prologue): For software watchpoint, fetch all the
1428         instructions from range [startaddr, pc] once and identify them locally
1429         to reduce memory access.
1430         (score_malloc_and_get_memblock, score_free_memblock)
1431         (score_adjust_memblock_ptr): New functions.
1432         (score_fetch_inst): Fetch single instruction or mutiple instructions.
1433
1434         (score_target_can_use_watch, score_stopped_by_watch)
1435         (score_target_insert_watchpoint, score_target_remove_watchpoint)
1436         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
1437         New functions for remote & local hw-watchpoint and hw-breakpoint.
1438
1439 2007-05-16  Alfred M. Szmidt  <[email protected]>
1440
1441         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
1442         declarations as well.
1443
1444 2007-05-16  Ulrich Weigand  <[email protected]>
1445
1446         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
1447         * config/arm/tm-embed.h: Delete file.
1448
1449         * arm-tdep.h (arm_software_single_step): Declare.
1450         * arm-tdep.c (arm_software_single_step): Make global.
1451         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
1452         from here to ...
1453         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
1454         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
1455         * armobsd-tdep.c (armobsd_init_abi): ... here ...
1456         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
1457
1458         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
1459         allow defines to be overriden by TM file.
1460         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
1461         change default to {0xbe,0xbe}.
1462         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
1463         arm_obsd_thumb_be_breakpoint): New global variables.
1464         (armobsd_init_abi): Override tdep->thumb_breakpoint and
1465         tdep->thumb_breakpoint_size.
1466         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
1467         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
1468         tdep->thumb_breakpoint_size.
1469
1470         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
1471
1472 2007-05-16  Daniel Jacobowitz  <[email protected]>
1473
1474         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
1475         saved-gpreg-size".
1476
1477         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
1478         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
1479         (mips_stack_argsize_string, mips_stack_argsize): Delete.
1480         (mips_abi_regsize): Simplify.
1481         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1482         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1483         (mips_o32_return_value, mips_o64_push_dummy_call)
1484         (mips_o64_return_value): Propogate constant register sizes.  Use the
1485         ABI register size instead of mips_stack_argsize.
1486         (mips_dump_tdep): Don't print mips_stack_argsize.
1487         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
1488         settings.
1489
1490 2007-05-16  Daniel Jacobowitz  <[email protected]>
1491
1492         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
1493         * config/mips/tm-linux.h: Delete.
1494         * mips-linux-tdep.c (mips_svr4_so_ops): New.
1495         (mips_linux_in_dynsym_resolve_code): Make static.  Use
1496         svr4_in_dynsym_resolve_code.
1497         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
1498         set_solib_ops.
1499         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
1500         global.
1501         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
1502         * Makefile.in (mips-linux-tdep.o): Update.
1503         * solib.c (set_solib_ops): New.
1504         (current_target_so_ops): Update comment.
1505         * solib.h (set_solib_ops): New prototype.
1506
1507 2007-05-16  Chris Dearman  <[email protected]>
1508
1509         * printcmd.c (do_examine): Fix typos in a comment.
1510
1511 2007-05-16  Richard Sandiford  <[email protected]>
1512
1513         * configure.ac: Allow sysroots to be relocated under $prefix as
1514         well as $exec_prefix.
1515         * configure: Regenerate.
1516
1517 2007-05-14  Ulrich Weigand  <[email protected]>
1518
1519         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
1520         (offsetof): Do not define.
1521         (find_stub_with_shl_get): Use numerical value 3 instead of
1522         symbolic value TYPE_PROCEDURE.
1523
1524 2007-05-14  Daniel Jacobowitz  <[email protected]>
1525
1526         * gdb_proc_service.h (paddr_t): Delete typedef.
1527         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
1528         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
1529         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
1530         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
1531         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
1532         * Makefile.in (proc-service.o): Update.
1533
1534 2007-05-14  Daniel Jacobowitz  <[email protected]>
1535
1536         * Makefile.in (mips-tdep.o): Update.
1537         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
1538         unwinder.
1539
1540 2007-05-14  Daniel Jacobowitz  <[email protected]>
1541
1542         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
1543         instead of store_typed_address.
1544         * value.c (pack_long): New.
1545         (value_from_longest): Use it.
1546         * value.h (pack_long): New prototype.
1547
1548 2007-05-14  Daniel Jacobowitz  <[email protected]>
1549
1550         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
1551         DW_EH_PE_signed if appropriate.
1552
1553 2007-05-14  Paul Brook  <[email protected]>
1554             Daniel Jacobowitz  <[email protected]>
1555
1556         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
1557         function.
1558         (dwarf_decode_lines): Check for line info without a file.
1559
1560 2007-05-14  Daniel Jacobowitz  <[email protected]>
1561
1562         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
1563         as hexadecimal.
1564
1565 2007-05-14  Daniel Jacobowitz  <[email protected]>
1566
1567         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1568         STRUCTOP_STRUCT.
1569         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1570         STRUCTOP_STRUCT.
1571         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1572
1573 2007-05-14  Ulrich Weigand  <[email protected]>
1574
1575         * gdbarch.sh (read_sp): Remove.
1576         * gdbarch.c, gdbarch.h: Regenerate.
1577         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1578
1579         * avr-tdep.c (avr_read_sp): Remove.
1580         (avr_unwind_sp): New function.
1581         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1582         * mips-tdep.c (mips_read_sp): Remove.
1583         (mips_unwind_sp): New function.
1584         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1585         * score-tdep.c (score_read_unsigned_register): Remove.
1586         (score_read_sp): Remove.
1587         (score_unwind_sp): New function.
1588         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1589
1590 2007-05-14  Maxim Grigoriev  <[email protected]>
1591
1592         * buildsym.c (start_subfile): Handle absolute pathnames
1593         while comparing subfile names.
1594
1595 2007-05-13  Ulrich Weigand  <[email protected]>
1596
1597         * hppa-hpux-tdep.c: Include "regcache.h".
1598         * hppa-linux-tdep.c: Likewise.
1599         * hppa-tdep.c: Include "gdb_stdint.h".
1600         (find_unwind_entry): Cast host pointer to uintptr_t before passing
1601         it to paddr_nz.
1602         * Makefile.in: Update dependencies.
1603
1604 2007-05-13  Ulrich Weigand  <[email protected]>
1605
1606         * blockframe.c: Remove obsolete comments.
1607         * alpha-nat.c (fetch_osf_core_registers): Update comment.
1608         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1609         * hppa-tdep.h (enum hppa_regnum): Likewise.
1610         * mips-tdep.h: Likewise.
1611         * m68hc11-tdep.c: Likewise.
1612
1613 2007-05-13  Ulrich Weigand  <[email protected]>
1614
1615         * inferior.h (read_sp): Remove prototype.
1616         * regcache.c (read_sp): Remove.
1617         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1618         * infcall.c (call_function_by_hand): Likewise.
1619         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1620         of calling read_sp.
1621         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1622
1623 2007-05-11  Ulrich Weigand  <[email protected]>
1624
1625         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
1626         instead of read_register and read_register_pid.
1627
1628         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
1629         argument instead of PTID.  Use regcache functions instead of
1630         read_register_pid.
1631         (ia64_linux_insert_watchpoint): Update call.
1632         (ia64_linux_stopped_data_address): Use regcache functions
1633         instead of read_register_pid and write_register_pid.
1634
1635 2007-05-11  Ulrich Weigand  <[email protected]>
1636
1637         * libunwind-frame.h (struct regcache): Add forward declaration.
1638         (libunwind_get_reg_special): Add REGCACHE argument.
1639         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1640         argument.  Pass it to unw_init_remote_p.
1641
1642         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1643         libunwind_get_reg_special.
1644         (ia64_access_reg): Remove "write" case.
1645         (ia64_access_fpreg): Likewise.  Read from next_frame passed
1646         as callback argument instead of from current_regcache.
1647         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
1648         passed as callback argument instead of from current_regcache.
1649         (ia64_access_rse_fpreg): New function.
1650         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1651
1652 2007-05-11  Ulrich Weigand  <[email protected]>
1653
1654         * NEWS: Mention SPU overlay support.
1655
1656 2007-05-11  Ulrich Weigand  <[email protected]>
1657
1658         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1659
1660 2007-05-11  Ulrich Weigand  <[email protected]>
1661
1662         * breakpoint.c (remove_breakpoint): Do not remove software
1663         breakpoints in unmapped overlay sections.
1664
1665 2007-05-11  Ulrich Weigand  <[email protected]>
1666
1667         * spu-tdep.c: Include "observer.h".
1668         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1669         (spu_overlay_data): New variable.
1670         (struct spu_overlay_table): New type.
1671         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1672         spu_overlay_new_objfile): New functions.
1673         (spu_gdbarch_init): Install spu_overlay_update.
1674         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
1675         allocate spu_overlay_data objfile data.
1676
1677 2007-05-11  Ulrich Weigand  <[email protected]>
1678
1679         * gdbarch.sh (overlay_update): New gdbarch function.
1680         (struct obj_section): Add forward declaration.
1681         * gdbarch.c, gdbarch.h: Regenerate.
1682
1683         * symfile.c (simple_overlay_update): Make global.
1684         (target_overlay_update): Remove variable.
1685         (overlay_is_mapped): Call gdbarch_overlay_update instead of
1686         target_overlay_update.
1687         (overlay_load_command): Likewise.
1688         * symfile.h (struct obj_section): Add forward declaration.
1689         (simple_overlay_update): Add prototype.
1690
1691         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1692
1693 2007-05-11  Ulrich Weigand  <[email protected]>
1694
1695         * observer.sh: Add "struct objfile" forward declaration.
1696         * target.h (deprecated_target_new_objfile_hook): Remove.
1697         * symfile.c (deprecated_target_new_objfile_hook): Remove.
1698         (clear_symtab_users): Call observer_notify_new_objfile.
1699         (symbol_file_add_with_addrs_or_offsets): Likewise.
1700         * rs6000-nat.c: Include "observer.h".
1701         (vmap_ldinfo): Call observer_notify_new_objfile.
1702         (xcoff_relocate_core): Likewise.
1703         * remote.c (remote_new_objfile_chain): Remove.
1704         (remote_new_objfile): Do not call remote_new_objfile_chain.
1705         (_initialize_remote): Use observer_attach_new_objfile.
1706         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1707         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1708         (_initialize_tui_hooks): Use observer_attach_new_objfile.
1709         * aix-thread.c: Include "observer.h".
1710         (target_new_objfile_chain): Remove.
1711         (new_objfile): Do not call target_new_objfile_chain.
1712         (_initialize_aix_thread): Use observer_attach_new_objfile.
1713         * hpux-thread.c: Include "observer.h"
1714         (target_new_objfile_chain): Remove.
1715         (hpux_thread_new_objfile): Make static.  Do not call
1716         target_new_objfile_chain.
1717         (_initialize_hpux_thread): Use observer_attach_new_objfile.
1718         * linux-thread-db.c: Include "observer.h".
1719         (target_new_objfile_chain): Remove.
1720         (thread_db_new_objfile): Do not call target_new_objfile_chain.
1721         (_initialize_thread_db): Use observer_attach_new_objfile.
1722         * sol-thread.c: Include "observer.h".
1723         (target_new_objfile_chain): Remove.
1724         (sol_thread_new_objfile): Make static.  Do not call
1725         target_new_objfile_chain.
1726         (_initialize_sol_thread): Use observer_attach_new_objfile.
1727         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1728         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1729         $(observer_h).
1730
1731 2007-05-11  Ulrich Weigand  <[email protected]>
1732
1733         * gdbarch.sh (remote_translate_xfer_address): Remove.
1734         * gdbarch.h, gdbarch.c: Regenerate.
1735         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
1736         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
1737         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
1738         call gdbarch_remote_translate_xfer_address.
1739         * frv-tdep.c (frv_gdbarch_init): Do not call
1740         set_gdbarch_remote_translate_xfer_address.
1741         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
1742         (ia64_gdbarch_init): Do not install it.
1743
1744 2007-05-11  Bob Wilson  <[email protected]>
1745
1746         * NEWS: Mention change in handling the -tui option.
1747
1748 2007-05-11  Daniel Jacobowitz  <[email protected]>
1749
1750         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
1751         typo.
1752
1753 2007-05-11  Ulrich Weigand  <[email protected]>
1754
1755         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
1756         (breakpoint_inserted_here_p): Call it.
1757         (software_breakpoint_inserted_here_p): Likewise.
1758
1759 2007-05-10  Ulrich Weigand  <[email protected]>
1760
1761         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
1762         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
1763         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
1764         (inf_ptrace_store_register): Likewise.
1765         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
1766         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
1767
1768         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
1769
1770         * linux-nat.c (linux_trad_target): Adapt parameter list.
1771         * linux-nat.h (linux_trad_target): Likewise.
1772
1773         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
1774
1775         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
1776         (mips_linux_cannot_store_register): Likewise.
1777         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
1778         Return (CORE_ADDR) -1 for registers that cannot be fetched or
1779         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
1780         (mips64_linux_register_addr): Likewise.
1781         (mips_linux_register_u_offset): Adapt parameter list.  Pass
1782         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
1783
1784         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
1785         * config/mips/nm-linux.h: Delete file.
1786
1787 2007-05-10  Pedro Alves  <[email protected]>
1788
1789         * remote.c (remote_detach): Error out if remote can't detach.
1790
1791 2007-05-10  Luis Machado  <[email protected]>
1792
1793         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
1794         instruction's opcode in the "opcode" variable and declares new
1795         variable "closing_insn".
1796
1797 2007-05-10  Chris Dearman  <[email protected]>
1798             Maciej W. Rozycki  <[email protected]>
1799
1800         * cli/cli-setshow.c (do_setshow_command): Remove trailing
1801         whitespace when setting a var_filename.
1802
1803 2007-05-09  Bob Wilson  <[email protected]>
1804         
1805         * main.c (captured_main): Recognize -tui option and print an error
1806         message when the TUI is not configured.
1807         
1808 2007-05-09  Andreas Schwab  <[email protected]>
1809
1810         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
1811         set removed members.
1812         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1813
1814 2007-05-08  Ulrich Weigand  <[email protected]>
1815
1816         * gdbarch.sh (deprecated_store_struct_return): Remove.
1817         * gdbarch.c, gdbarch.h: Regenerate.
1818         * frv-tdep.c (frv_store_struct_return): Remove.
1819         (frv_gdbarch_init): Do not install it.
1820
1821 2007-05-08  Ulrich Weigand  <[email protected]>
1822
1823         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
1824         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
1825         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
1826
1827 2007-05-08  Ulrich Weigand  <[email protected]>
1828
1829         * spu-linux-nat.c: Include "gdb_stdint.h".
1830         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
1831         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
1832         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
1833         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
1834         (spu_child_wait): Mark up string for translation.
1835
1836 2007-05-08  Paul Gilliam  <[email protected]>
1837             Luis Machado  <[email protected]>
1838
1839         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
1840         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
1841         BC_INSTRUCTION): Define.
1842         (deal_with_atomic_sequence): New function.
1843         (rs6000_software_single_step): Call deal_with_atomic_sequence.
1844         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
1845         gdbarch_software_single_step routine.
1846
1847 2007-05-07  Ulrich Weigand  <[email protected]>
1848
1849         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
1850         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
1851         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
1852         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
1853         spu_child_post_attach, spu_fetch_inferior_registers,
1854         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
1855         memory addresses as ULONGEST, not CORE_ADDR.
1856
1857 2007-05-07  Ulrich Weigand  <[email protected]>
1858
1859         * gdbarch.sh: Add skip_permanent_breakpoint callback.
1860         * gdbarch.h, gdbarch.c: Regenerate.
1861
1862         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
1863         (resume): Call gdbarch_skip_permanent_breakpoint instead of
1864         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
1865
1866         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
1867         Add REGCACHE argument.  Use it instead of read/write_register.
1868         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
1869
1870         * config/pa/tm-hppah.h: Delete file.
1871         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
1872         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
1873
1874 2007-05-07  Daniel Jacobowitz  <[email protected]>
1875
1876         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
1877         * NEWS: Mention improved C++ thunk support.
1878         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
1879         * cp-abi.c (cplus_skip_trampoline): New.
1880         * cp-abi.h (cplus_skip_trampoline): New prototype.
1881         (struct cp_abi_ops): Add skip_trampoline member.
1882         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
1883         (init_gnuv3_ops): Set skip_trampoline.
1884
1885 2007-05-06  Daniel Jacobowitz  <[email protected]>
1886
1887         * rs6000-tdep.c (struct frame_extra_info): Delete.
1888
1889 2007-05-06  Daniel Jacobowitz  <[email protected]>
1890
1891         * linux-thread-db.c: Update some FIXME comments.
1892         (thread_db_xfer_partial): Delete.
1893         (init_thread_db_ops): Do not set to_xfer_partial.
1894
1895 2007-05-06  Ulrich Weigand  <[email protected]>
1896
1897         * inftarg.c, infptrace.c: Remove files.
1898         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
1899         (inftarg.o, infptrace.o): Remove rules.
1900         * gdbcore.h (register_addr): Remove prototype.
1901         * inferior.h (kill_inferior, store_inferior_registers,
1902         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
1903         call_ptrace, pre_fork_inferior): Remove prototypes.
1904         * target.h (child_xfer_memory, child_pid_to_exec_file, 
1905         child_core_file_to_sym_file, child_post_attach,
1906         child_post_startup_inferior, child_acknowledge_created_inferior,
1907         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
1908         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
1909         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
1910         child_follow_fork, child_reported_exec_events_per_exec_call,
1911         child_has_exited, child_thread_alive): Remove prototypes.
1912
1913 2007-05-06  Ulrich Weigand  <[email protected]>
1914
1915         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
1916         (sparc_store_inferior_registers): Likewise.
1917         * sparc-nat.c (fetch_inferior_registers): Rename to ...
1918         (sparc_fetch_inferior_registers): ... this.
1919         (store_inferior_registers): Rename to ...
1920         (sparc_store_inferior_registers): ... this.
1921         (sparc_target): Update callback names.
1922         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
1923         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
1924
1925 2007-05-06  Ulrich Weigand  <[email protected]>
1926
1927         * linux-nat.c (child_post_attach): Rename to ...
1928         (linux_child_post_attach): ... this.  Make static.
1929         (child_follow_fork): Rename to ...
1930         (linux_child_follow_fork): ... this.  Make static.
1931         (child_insert_fork_catchpoint): Rename to ...
1932         (linux_child_insert_fork_catchpoint): ... this.  Make static.
1933         (child_insert_vfork_catchpoint): Rename to ...
1934         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
1935         (child_insert_exec_catchpoint): Rename to ...
1936         (linux_child_insert_exec_catchpoint): ... this.  Make static.
1937         (child_pid_to_exec_file): Rename to ...
1938         (linux_child_pid_to_exec_file): ... this.  Make static.
1939         Add prototype.
1940         (linux_handle_extended_wait): Update call.
1941         (linux_xfer_partial): Update callback routine names.
1942
1943 2007-05-06  Ulrich Weigand  <[email protected]>
1944
1945         * configure.host (alpha*-*-osf[12]*): Remove support.
1946         * NEWS: Mention removed configurations.
1947
1948         * config/alpha/alpha-osf1.mh: Delete file.
1949         * config/alpha/alpha-osf2.mh: Delete file.
1950         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
1951         and infptrace.o.
1952         * config/alpha/nm-osf.h: Delete file.
1953         * config/alpha/nm-osf2.h: Delete file.
1954         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
1955         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
1956         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
1957
1958         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
1959         (register_addr, kernel_u_size): Remove.
1960         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
1961
1962 2007-05-06  Ulrich Weigand  <[email protected]>
1963
1964         * regcache.c (regcache_invalidate): New function.
1965         (register_cached): Remove.
1966         (set_register_cached): Remove.
1967         (deprecated_registers_fetched): Remove.
1968         (registers_changed): Use regcache_invalidate instead
1969         of set_register_cached.
1970         (regcache_raw_read): Update comment.
1971
1972         * regcache.h (regcache_invalidate): Add prototype.
1973         (register_cached): Remove.
1974         (set_register_cached): Remove.
1975         (deprecated_registers_fetched): Remove.
1976
1977         * findvar.c (value_of_register): Do not call register_cached.
1978         * frame.c (frame_register): Likewise.
1979         * tui/tui-regs.c (tui_get_register): Likewise.
1980
1981         * remote.c (fetch_register_using_p): Do not call set_register_cached.
1982         (process_g_packet): Likewise.
1983         (remote_fetch_registers): Likewise.
1984         * remote-sim.c (gdbsim_fetch_register): Likewise.
1985         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
1986         by regcache_invalidate.
1987         (mt_pseudo_register_write): Likewise.
1988         * sh-tdep.c (sh_pseudo_register_write): Likewise.
1989
1990         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
1991         call by loop over regcache_raw_supply (..., NULL).
1992
1993 2007-05-06  Ulrich Weigand  <[email protected]>
1994
1995         * target.h (struct target_ops): Add REGCACHE parameter to
1996         to_prepare_to_store.
1997         (target_prepare_to_store): Likewise.
1998         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
1999         (update_current_target): Adapt prepare_to_store de_fault rule.
2000
2001         * regcache.c (regcache_raw_write): Pass regcache to
2002         target_prepare_to_store.
2003
2004         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2005         Do not call CHILD_PREPARE_TO_STORE.
2006         * gnu-nat.c (gnu_prepare_to_store): Likewise.
2007         * procfs.c (procfs_prepare_to_store): Likewise.
2008
2009         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2010         * go32-nat.c (go32_prepare_to_store): Likewise.
2011         * monitor.c (monitor_prepare_to_store): Likewise.
2012         * nto-procfs.c (procfs_prepare_to_store): Likewise.
2013         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2014         * remote-mips.c (mips_prepare_to_store): Likewise.
2015         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2016         * win32-nat.c (win32_prepare_to_store): Likewise.
2017
2018         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2019         Use it instead of current_regcache.
2020
2021         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2022         parameter.  Pass it on to next target.
2023         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2024
2025 2007-05-06  Ulrich Weigand  <[email protected]>
2026
2027         * target.h (struct regcache): Add forward declaration.
2028         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2029         and to_store_registers target operations.
2030         (target_fetch_registers, target_store_registers): Update.
2031
2032         * regcache.c (regcache_raw_read): Replace register_cached by
2033         regcache_valid_p.  Pass regcache to target_fetch_registers.
2034         (regcache_raw_write): Pass regcache to target_store_registers.
2035
2036         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2037         store_regs, store_wmmx_regs): Replace register_cached by
2038         regcache_valid_p.
2039
2040         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2041         to target_fetch_registers calls.
2042         * corelow.c (core_open): Likewise.
2043         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2044         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2045         ps_lsetfpregs): Likewise.
2046         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2047         ps_lsetfpregs): Likewise.
2048         * win32-nat.c (win32_resume): Likewise.
2049         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2050         to target_store_registers call.
2051         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2052
2053         * inferior.h (store_inferior_registers): Update prototype.
2054         (fetch_inferior_registers): Likewise.
2055         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2056         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2057         Update function pointer signatures.
2058
2059         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2060         use it instead of current_regcache, update calls.
2061         (aix_thread_store_registers): Likewise.
2062         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2063         (alphabsd_store_inferior_registers): Likewise.
2064         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2065         (amd64bsd_store_inferior_registers): Likewise.
2066         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2067         (amd64_linux_store_inferior_registers): Likewise.
2068         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2069         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2070         fetch_wmmx_regs, store_wmmx_regs): Likewise.
2071         (arm_linux_fetch_inferior_registers): Likewise.
2072         (arm_linux_store_inferior_registers): Likewise.
2073         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2074         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2075         (store_register, store_regs, store_fp_register, store_fp_regs,
2076         armnbsd_store_registers): Likewise.
2077         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2078         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2079         (bsd_uthread_store_registers): Likewise.
2080         * corelow.c (get_core_registers): Likewise.
2081         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2082         go32_store_registers): Likewise.
2083         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2084         (hppabsd_store_registers): Likewise.
2085         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2086         (hppa_hpux_fetch_inferior_registers): Likewise.
2087         (hppa_hpux_store_register): Likewise.
2088         (hppa_hpux_store_inferior_registers): Likewise.
2089         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2090         (hppa_linux_fetch_inferior_registers): Likewise.
2091         (hppa_linux_store_inferior_registers): Likewise.
2092         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2093         (hpux_thread_store_registers): Likewise.
2094         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2095         (i386bsd_store_inferior_registers): Likewise.
2096         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2097         gnu_store_registers): Likewise.
2098         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2099         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2100         Likewise.
2101         (i386_linux_fetch_inferior_registers): Likewise.
2102         (i386_linux_store_inferior_registers): Likewise.
2103         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2104         (ia64_linux_fetch_registers): Likewise.
2105         (ia64_linux_store_register): Likewise.
2106         (ia64_linux_store_registers): Likewise.
2107         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2108         (inf_child_store_inferior_registers): Likewise.
2109         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2110         (inf_ptrace_fetch_registers): Likewise.
2111         (inf_ptrace_store_register): Likewise.
2112         (inf_ptrace_store_registers): Likewise.
2113         * infptrace.c (fetch_register, store_register): Likewise.
2114         (fetch_inferior_registers, store_inferior_registers): Likewise.
2115         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2116         (m32r_linux_fetch_inferior_registers): Likewise.
2117         (m32r_linux_store_inferior_registers): Likewise.
2118         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2119         (m68kbsd_store_inferior_registers): Likewise.
2120         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2121         store_register, old_store_inferior_registers, fetch_regs, store_regs,
2122         fetch_fpregs, store_fpregs): Likewise.
2123         (m68k_linux_fetch_inferior_registers): Likewise.
2124         (m68k_linux_store_inferior_registers): Likewise.
2125         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2126         (m88kbsd_store_inferior_registers): Likewise.
2127         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2128         (mips64obsd_store_inferior_registers): Likewise.
2129         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2130         (mips64_linux_regsets_store_registers): Likewise.
2131         (mips64_linux_fetch_registers): Likewise.
2132         (mips64_linux_store_registers): Likewise.
2133         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2134         (mipsnbsd_store_inferior_registers): Likewise.
2135         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2136         (monitor_fetch_registers, monitor_store_registers): Likewise.
2137         * nto-procfs.c (procfs_fetch_registers): Likewise.
2138         (procfs_store_registers): Likewise.
2139         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2140         fetch_register, supply_vrregset, fetch_altivec_registers,
2141         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2142         (store_altivec_register, store_spe_register, store_register, 
2143         fill_vrregset, store_altivec_registers, store_ppc_registers,
2144         ppc_linux_store_inferior_registers): Likewise.
2145         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2146         (ppcnbsd_store_inferior_registers): Likewise.
2147         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2148         (ppcobsd_store_registers): Likewise.
2149         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2150         * remote.c (fetch_register_using_p, process_g_packet,
2151         fetch_registers_using_g, remote_fetch_registers): Likewise.
2152         (store_register_using_P, store_registers_using_G, 
2153         remote_store_registers): Likewise.
2154         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2155         m32r_store_register, m32r_store_register): Likewise.
2156         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2157         * remote-sim.c (gdbsim_fetch_register): Likewise.
2158         (gdbsim_store_register): Likewise.
2159         * rs6000-nat.c (fetch_register, store_register): Likewise.
2160         (rs6000_fetch_inferior_registers): Likewise.
2161         (rs6000_store_inferior_registers): Likewise.
2162         * s390-nat.c (fetch_regs, store_regs): Likewise.
2163         (fetch_fpregs, store_fpregs): Likewise.
2164         (s390_linux_fetch_inferior_registers): Likewise.
2165         (s390_linux_store_inferior_registers): Likewise.
2166         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2167         (shnbsd_store_inferior_registers): Likewise.
2168         * sol-thread.c (sol_thread_fetch_registers): Likewise.
2169         (sol_thread_store_registers): Likewise.
2170         * sparc-nat.c (fetch_inferior_registers): Likewise.
2171         (store_inferior_registers): Likewise.
2172         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2173         (spu_store_inferior_registers): Likewise.
2174         * target.c (debug_print_register): Likewise.
2175         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2176         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2177         (vaxbsd_store_inferior_registers): Likewise.
2178         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2179         (win32_fetch_inferior_registers): Likewise.
2180         (win32_store_inferior_registers): Likewise.
2181
2182 2007-05-06  Ulrich Weigand  <[email protected]>
2183
2184         * gdbcore.h (struct regcache): Add forward declaration.
2185         (struct core_fns): Add REGCACHE argument to core_read_registers
2186         callback.
2187         * corelow.c (get_core_register_section): Add REGCACHE argument,
2188         use it instead of current_regcache, pass it to core_read_registers
2189         callback.
2190         (get_core_registers): Add current_regcache as parameter to
2191         get_core_register_section calls.
2192
2193         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2194         use it instead of current_regcache.
2195         * armnbsd-nat.c (fetch_core_registers): Likewise.
2196         (fetch_elfcore_registers): Likewise.
2197         * core-regset.c (fetch_core_registers): Likewise.
2198         * cris-tdep.c (fetch_core_registers): Likewise.
2199         * irix5-nat.c (fetch_core_registers): Likewise.
2200         * m68klinux-nat.c (fetch_core_registers): Likewise.
2201         * mips-linux-tdep.c (fetch_core_registers): Likewise.
2202         * win32-nat.c (fetch_elf_core_registers): Likewise.
2203
2204 2007-05-06  Ulrich Weigand  <[email protected]>
2205
2206         * gregset.h (struct regcache): Add forward declaration.
2207         (supply_gregset): Add REGCACHE parameter, make GREGS const.
2208         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2209         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2210         (fill_gregset): Add REGCACHE parameter.
2211         (fill_fpregset): Likewise.
2212         (fill_fpxregset): Likewise.
2213
2214         Update all definitions accordingly:
2215         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2216         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2217         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
2218         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2219         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
2220         (supply_gregset): Add REGCACHE parameter, use it instead of 
2221         current_regcache.  Make GREGSETP parameter const, adapt casts.
2222         (supply_fpregset): Add REGCACHE parameter, use it instead of
2223         current_regcache.  Make FPREGSETP parameter const, adapt casts.
2224         (fill_gregset): Add REGCACHE parameter, use it instead of
2225         current_regcache.
2226         (fill_fpregset): Likewise.
2227
2228         Update all callers to pass in current_regcache as the new argument:
2229         * core-regset.c: Include "regcache.h".
2230         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2231         * procfs.c: Include "regcache.h".
2232         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2233         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2234         (procfs_do_thread_registers): Likewise.
2235         (procfs_make_note_section): Likewise.
2236         * proc-service.c: Include "regcache.h".
2237         (ps_lgetregs): Update fill_gregset call.
2238         (ps_lsetregs): Update supply_gregset call.
2239         (ps_lgetfpregs): Update fill_fpregset call.
2240         (ps_lsetfpregs): Update supply_fpregset call.
2241         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2242         supply_fpregset calls.
2243         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2244         (ps_lgetregs): Update fill_gregset call.
2245         (ps_lsetregs): Update supply_gregset call.
2246         (ps_lgetfpregs): Update fill_fpregset call.
2247         (ps_lsetfpregs): Update supply_fpregset call.
2248         
2249         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2250         fill_fpregset, and fill_fpxregset calls.
2251         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2252         (store_regs): Update fill_gregset call.
2253         (fetch_fpregs): Update supply_fpregset call.
2254         (store_fpregs): Update fill_fpregset call.
2255         (fetch_fpxregs): Update supply_fpxregset call.
2256         (store_fpxregs): Update fill_fpxregset call.
2257         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2258         (store_regs): Update fill_gregset call.
2259         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2260         (store_regs): Update fill_gregset call.
2261         (fetch_fpregs): Update supply_fpregset call.
2262         (store_fpregs): Update fill_fpregset call.
2263         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2264         * s390-nat.c (fetch_regs): Update supply_gregset call.
2265         (store_regs): Update fill_gregset call.
2266         (fetch_fpregs): Update supply_fpregset call.
2267         (store_fpregs): Update fill_fpregset call.
2268
2269         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2270         dependencies.
2271
2272 2007-05-06  Ulrich Weigand  <[email protected]>
2273
2274         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2275         it instead of current_regcache.
2276         (parse_register_dump): Add REGCACHE parameter, pass it to 
2277         supply_register callback.
2278         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2279         parse_register_dump.
2280         (monitor_dump_regs): Add REGCACHE parameter, pass it to
2281         parse_register_dump and dumpregs callback.
2282         (monitor_wait): Pass current_regcache to parse_register_dump and
2283         monitor_dump_regs.
2284         (monitor_fetch_register): Pass current_regcache to
2285         monitor_supply_register.
2286         (monitor_fetch_registers): Pass current_regcache to
2287         monitor_dump_regs.
2288         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2289         supply_register and dumpregs callbacks.
2290         (monitor_supply_register, monitor_dump_reg_block): Update
2291         prototypes.
2292         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
2293         it to monitor_supply_register.
2294         * dink32-rom.c (dink32_supply_register): Likewise.
2295         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2296         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
2297         instead of current_regcache.
2298
2299 2007-05-06  Ulrich Weigand  <[email protected]>
2300
2301         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2302         Add REGCACHE parameter.  Use it instead of current_regcache.
2303         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2304         i386nto_supply_gregset and i386nto_supply_fpregset.
2305         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
2306         of current_regcache.
2307
2308         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
2309         nto_supply_ helper functions.
2310         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
2311
2312         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
2313
2314         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
2315         supply_greget, supply_fpregset, supply_altregset, supply_regset,
2316         and regset_fill member function pointers.
2317         (nto_dummy_supply_regset): Adapt prototype.
2318
2319 2007-05-06  Ulrich Weigand  <[email protected]>
2320
2321         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
2322         instead of current_regcache.  Make REGS const.
2323         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
2324         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
2325         prototypes.
2326         * shnbsd-nat.c: Include "regcache.h".
2327         (shnbsd_fetch_inferior_registers): Pass current_regcache to
2328         shnbsd_supply_reg.
2329         (shnbsd_store_inferior_registers): Pass current_regcache to
2330         shnbsd_fill_reg.
2331         * Makefile.in (shbsd-nat.o): Update dependencies.
2332
2333 2007-05-06  Ulrich Weigand  <[email protected]>
2334
2335         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
2336         instead of current_regcache.
2337         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
2338         Make GREGSETP const, remove superfluous casts.
2339         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2340         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
2341         superfluous casts.
2342         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2343         (supply_64bit_reg): Likewise
2344         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
2345         Make GREGSETP const, adapt casts accordingly.
2346         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2347         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
2348         casts accordingly.
2349         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2350         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
2351         helper routines.
2352         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
2353         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
2354         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
2355         Adapt prototypes.
2356         * mips-linux-nat.c: Include "regcache.h".
2357         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2358         current_regcache to mips{64}_(supply|fill)_ helper routines.
2359         (mips64_linux_regsets_fetch_registers): Likewise.
2360         (mips64_linux_regsets_store_registers): Likewise.
2361
2362         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
2363         REGCACHE argument; replace current_regcache.  Make REGS const.
2364         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
2365         replace current_regcache.
2366         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
2367         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
2368         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2369         mipsnbsd_store_inferior_registers): Pass current_regcache to
2370         mipsnbsd_(supply|fill)_... helper routines.
2371
2372         * Makefile.in (mips-linux-nat.o): Update dependencies.
2373
2374 2007-05-06  Ulrich Weigand  <[email protected]>
2375
2376         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
2377         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
2378         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
2379         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
2380         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
2381         * i386gnu-nat.c (store_fpregs): Likewise.
2382         * i386v4-nat.c (fill_fpregset): Likewise.
2383         * go32-nat.c (store_register, go32_store_registers): Likewise.
2384
2385 2007-05-06  Ulrich Weigand  <[email protected]>
2386
2387         * cris-tdep.c (supply_gregset): Rename to ...
2388         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
2389         instead of current_regcache.
2390         (fetch_core_registers): Update call.  Pass current_regcache.
2391
2392 2007-05-06  Ulrich Weigand  <[email protected]>
2393
2394         * arnmnbsd-nat.c (supply_gregset): Rename to ...
2395         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
2396         Use it instead of current_regcache.
2397         (supply_fparegset): Rename to ...
2398         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
2399         Use it instead of current_regcache.
2400         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
2401         (fetch_core_registers, fetch_elfcore_registers): Likewise.
2402
2403 2007-05-06  Ulrich Weigand  <[email protected]>
2404
2405         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
2406         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
2407         use it instead of current_regcache.
2408         * alpha-tdep.h (struct regcache): Add forward declaration.
2409         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
2410         alpha_fill_fp_regs): Update prototypes.
2411
2412         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
2413         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
2414         * alpha-linux-nat.c: Include "regcache.h".
2415         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2416         current_regcache to alpha_supply/fill_ routines.
2417
2418         * alphabsd-tdep.c: Include "regcache.h".
2419         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
2420         pass it to alpha_supply_ routines.  Make REGS const.
2421         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
2422         pass it to alpha_fill_ routines.
2423         * alphabsd-tdep.h (struct regcache): Add forward declaration.
2424         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
2425         alphabsd_fill_fpreg): Update prototypes.
2426
2427         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2428         fill_fpregset, alphabsd_fetch_inferior_registers,
2429         alphabsd_store_inferior_registers): Pass current_regcache to
2430         alphabsd_supply/fill_ routines.
2431
2432         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
2433         dependencies.
2434
2435 2007-05-06  Ulrich Weigand  <[email protected]>
2436
2437         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
2438         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
2439         instead of current_regcache.
2440         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
2441         REGCACHE parameter, pass it to supply_ routines.
2442         (aix_thread_fetch_registers): Pass current_regcache to
2443         fetch_regs_user_thread and fetch_regs_kernel_thread.
2444
2445         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
2446         Add REGCACHE parameter, use it instead of current_regcache.
2447         Call regcache_valid_p instead of register_cached.
2448         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
2449         Also, pass REGCACHE to fill_ routines.
2450         (aix_thread_store_registers): Pass current_regcache to
2451         store_regs_user_thread and store_regs_kernel_thread.
2452
2453 2007-05-06  Ulrich Weigand  <[email protected]>
2454
2455         * m32r-linux-nat.c (supply_gregset): Do not modify contents
2456         pointed to by GREGSETP.
2457
2458 2007-05-06  Ulrich Weigand  <[email protected]>
2459
2460         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
2461         of regcache_raw_read_signed.
2462         (fill_fpregset): Use regcache_raw_collect instead of
2463         regcache_raw_read.
2464
2465 2007-05-03  Kevin Buettner  <[email protected]>
2466
2467         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
2468         point arguments, test explicitly for use of the EABI32 ABI
2469         instead of inferring this condition from tests on register
2470         sizes.
2471
2472 2007-05-03  Kevin Buettner  <[email protected]>
2473
2474         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
2475         prior to allocating its location.
2476
2477 2007-05-02  Maciej W. Rozycki  <[email protected]>
2478
2479         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
2480         based on mips_abi_regsize() whose result is known in advance.
2481         (mips_o64_push_dummy_call): Likewise.
2482
2483 2007-04-29  Ulrich Weigand  <[email protected]>
2484
2485         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
2486         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
2487
2488         * mips-linux-nat.c: Include "gregset.h".
2489         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
2490         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
2491         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2492         fill_fpregset): Move to mips-linux-nat.c.
2493
2494         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
2495
2496 2007-04-28  Ulrich Weigand  <[email protected]>
2497
2498         * regcache.c (deprecated_read_register_gen): Remove, inline ...
2499         (read_register): ... here.
2500         (deprecated_write_register_gen): Remove, inline ...
2501         (write_register): ... here.
2502         * regcache.h (deprecated_read_register_gen): Remove prototype.
2503         (deprecated_write_register_gen): Likewise.
2504
2505         * remote-sim.c (gdbsim_store_register): Replace call to
2506         deprecated_read_register_gen with regcache_cooked_read.
2507         * target.c (debug_print_register): Replace calls to
2508         deprecated_read_register_gen and read_register with
2509         regcache_cooked_read.
2510
2511 2007-04-28  Ulrich Weigand  <[email protected]>
2512
2513         * hpux-thread.c (hpux_thread_store_registers): Use
2514         regcache_raw_collect, not regcache_raw_read.
2515         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
2516         not regcache_raw_write.
2517
2518 2007-04-28  Ulrich Weigand  <[email protected]>
2519
2520         * gdbarch.sh: Remove deprecated_register_byte.
2521         * gdbarch.c, gdbarch.h: Regenerate.
2522         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
2523         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
2524
2525         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
2526         * regcache.c (regcache_valid_p): Allow to query cooked registers in
2527         read-only register caches.  Make REGCACHE parameter const.
2528         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
2529
2530         * mi/mi-main.c (old_regs): Remove.
2531         (mi_setup_architecture_data, _initialize_mi_main): Remove.
2532         (register_changed_p): Reimplement to compare two register caches.
2533         (mi_cmd_data_list_changed_registers): Update caller.
2534         * mi/mi-main.h (mi_setup_architecture_data): Remove.
2535         * mi/mi-interp.c (mi_interpreter_init): Do not call
2536         mi_setup_architecture_data.
2537
2538 2007-04-28  Ulrich Weigand  <[email protected]>
2539
2540         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
2541         inline definition at the places the macros are used.
2542         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
2543
2544 2007-04-28  Ulrich Weigand  <[email protected]>
2545
2546         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
2547         "gdb_string.h".
2548         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
2549         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
2550         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
2551         (rs6000_aix_regset_from_core_section): New function.
2552         (rs6000_aix_init_osabi): Register it.
2553         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
2554         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
2555         * rs6000-nat.c (CoreRegs): Do not define type.
2556         (fetch_core_registers, rs6000_core_fns): Remove.
2557         (_initialize_core_rs6000): Do not register it.  Rename to ...
2558         (_initialize_rs6000_nat): ... this.
2559         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
2560
2561 2007-04-27  Kevin Buettner  <[email protected]>
2562
2563         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
2564         (dwarf2_read_address): Sign extend return address as required by
2565         target architecture.
2566
2567 2007-04-27  Kevin Buettner  <[email protected]>
2568
2569         * solib-frv.c (lm_base): Bail out if the main executable has
2570         not been relocated.
2571
2572 2007-04-27  Ulrich Weigand  <[email protected]>
2573
2574         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2575         of FPCR register in fpregset.
2576
2577 2007-04-27  Maciej W. Rozycki  <[email protected]>
2578
2579         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2580         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2581
2582 2007-04-27  Ulrich Weigand  <[email protected]>
2583
2584         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2585         * rs6000-nat.c (rs6000_wait): New function.
2586         (_initialize_core_rs6000): Install it as to_wait target method.
2587         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2588
2589 2007-04-27  Ulrich Weigand  <[email protected]>
2590
2591         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2592         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2593         * rs6000-nat.c (super_create_inferior): New variable.
2594         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
2595         original version of create_inferior via super_create_inferior.
2596         (_initialize_core_rs6000): Install to_create_inferior target method.
2597
2598 2007-04-27  Ulrich Weigand  <[email protected]>
2599
2600         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2601         (aix_thread_xfer_partial): ... this.
2602         (init_aix_thread_ops): Install to_xfer_partial instead
2603         of deprecated_xfer_memory target method.
2604
2605         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2606         and inftarg.o, add inf-ptrace.o.
2607         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2608         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2609         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2610         (fetch_inferior_registers): Rename to ...
2611         (rs6000_fetch_inferior_registers): ... this.  Make static.
2612         (store_inferior_registers): Rename to ...
2613         (rs6000_store_inferior_registers): ... this.  Make static.
2614         (read_word, child_xfer_memory): Remove.
2615         (rs6000_xfer_partial): New function.
2616         (kernel_u_size): Remove.
2617         (_initialize_core_rs6000): Add inf_ptrace-based target.
2618         * Makefile.in (rs6000-nat.o): Update dependencies.
2619
2620 2007-04-27  Ulrich Weigand  <[email protected]>
2621
2622         * inf-ptrace.c: Include "gdb_stdint.h".
2623         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
2624         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2625         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2626         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2627         (inf_ptrace_store_register): Likewise.
2628         * Makefile.in (inf-ptrace.o): Update dependencies.
2629
2630 2007-04-27  Ulrich Weigand  <[email protected]>
2631
2632         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2633         * configure.tgt (rs6000-*-*): Likewise.
2634         * config/rs6000/aix4.mh: Delete file.
2635         * config/rs6000/aix4.mt: Delete file.
2636         * config/rs6000/rs6000.mh: Delete file.
2637         * config/rs6000/rs6000.mt: Delete file.
2638
2639         * config/powerpc/nm-aix.h: Delete file.
2640         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2641
2642 2007-04-27  Ulrich Weigand  <[email protected]>
2643
2644         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2645         Remove obsolete part of comment.
2646         (store_regs_user_thread): Use uint32_t temporaries when calling
2647         fill_sprs32.
2648         (store_regs_kernel_thread): Likewise.  Add assertion to verify
2649         correct size of struct ptsprs members.
2650         (aix_thread_xfer_memory): Fix type of myaddr.
2651         (aix_thread_extra_thread_info): Fix compiler warning.
2652         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2653         (fetch_register, store_register): Adapt callers.
2654
2655 2007-04-27  Ulrich Weigand  <[email protected]>
2656
2657         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
2658
2659 2007-04-25  Ulrich Weigand  <[email protected]>
2660
2661         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2662         and "regcache.h".
2663         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2664         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2665         (alpha_linux_regset_from_core_section): New function.
2666         (alpha_linux_init_abi): Install it.
2667         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
2668         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2669         <sys/procfs.h>, and "gregset.h".
2670         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2671         Move from config/alpha/nm-linux.h.
2672         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2673         from alpha-nat.c.
2674         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2675         * alpha-nat.c: Remove #ifdef __linux__ section.
2676         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2677         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2678         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2679         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2680         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2681         (NATDEPFILES): Remove alpha-nat.o.
2682         * config/alpha/nm-linux.h: Delete file.
2683         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2684         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2685         (alpha-linux-tdep.o): Likewise.
2686
2687 2007-04-25  Ulrich Weigand  <[email protected]>
2688
2689         * mips-linux-nat.c: No longer include "gdbcore.h".
2690         (mips_linux_register_addr): Move from mips-linux-tdep.c.
2691         (mips64_linux_register_addr): Likewise.
2692         (mips_linux_register_u_offset): Call mips_linux_register_addr or
2693         mips64_linux_register_addr instead of register_addr.
2694         * mips-linux-tdep.c (mips_linux_register_addr,
2695         mips64_linux_register_addr): Move to mips-linux-nat.c.
2696         (register_addr): Remove.
2697         (register_addr_data, init_register_addr_data): Remove.
2698         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2699         (set_mips_linux_register_addr): Remove.
2700         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2701         * Makefile.in (mips-linux-nat.o): Update dependencies.
2702
2703 2007-04-25  Ulrich Weigand  <[email protected]>
2704
2705         * linux-nat.c (linux_register_u_offset): Remove.
2706         (linux_target_install_ops): New function.
2707         (linux_target): Use it.
2708         (linux_trad_target): New function.
2709         * linux-nat.h (linux_trad_target): Declare.
2710
2711         * alpha-linux-nat.c: Include "gdbcore.h".
2712         (alpha_linux_register_u_offset): New function.
2713         (_initialize_alpha_linux_nat): Use linux_trad_target.
2714
2715         * mips-linux-nat.c: Include "gdbcore.h".
2716         (mips_linux_register_u_offset): New function.
2717         (_initialize_mips_linux_nat): Use linux_trad_target.
2718
2719         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2720         * config/arm/nm-linux.h: Delete file.
2721
2722         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2723         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2724
2725         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2726         * config/ia64/nm-linux.h: Delete file.
2727
2728         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2729         * config/m32r/nm-linux.h: Delete file.
2730
2731         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2732         * config/m68k/nm-linux.h: Delete file.
2733
2734         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2735         * config/pa/nm-linux.h: Delete file.
2736
2737         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2738         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
2739         * config/powerpc/nm-linux.h: Delete file.
2740
2741         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
2742         * config/s390/nm-linux.h: Delete file.
2743
2744         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2745         * config/sparc/linux64.mh (NAT_FILE): Likewise.
2746         * config/sparc/nm-linux.h: Delete file.
2747
2748         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2749         (mips-linux-nat.o): Likewise.
2750
2751 2007-04-25  Ulrich Weigand  <[email protected]>
2752
2753         * core-aout.c: Delete file.
2754         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
2755         (core-aout.o): Delete rule.
2756         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
2757
2758         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
2759
2760         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
2761         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
2762         KERNEL_U_ADDR): Remove.
2763
2764         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
2765         (cannot_fetch_register, cannot_store_register): Remove.
2766         (fetch_register): Inline cannot_fetch_register and register_addr.
2767         (store_register): Inline cannot_store_register and register_addr.
2768         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
2769         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2770         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
2771         Remove.
2772
2773         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
2774         (fetch_register): Inline register_addr.
2775         (store_register): Inline register_addr.
2776         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
2777         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2778         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
2779
2780         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
2781         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
2782         REGISTER_U_ADDR): Remove.
2783
2784         * hppa-linux-nat.c (register_addr): Rename to ...
2785         (hppa_linux_register_addr): ... this.  Make static.
2786         (fetch_register, store_register): Adapt callers.
2787         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
2788
2789         * ppc-linux-nat.c (kernel_u_size): Remove.
2790         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
2791
2792         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
2793         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
2794         (NAT_FILE): Remove.
2795         * config/vax/nm-vax.h: Delete file.
2796
2797 2007-04-20  Mark Shinwell  <[email protected]>
2798
2799         * MAINTAINERS (Write After Approval): Add myself.
2800
2801 2007-04-20  Mark Shinwell  <[email protected]>
2802
2803         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
2804         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
2805         (m68k_linux_sigcontext_reg_offset): Fix typo.
2806         (target_is_uclinux): New.
2807         (m68k_linux_inferior_created): New.
2808         (m68k_linux_get_sigtramp_info):  Check for uClinux or
2809         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
2810         uClinux.
2811         (_initialize_m68k_linux_tdep): Register
2812         m68k_linux_inferior_created.
2813
2814 2007-04-19  Pedro Alves  <[email protected]>
2815
2816         * win32-nat.c (win32_detach): Remove delete_command call.
2817         Resume inferior with win32_resume instead of win32_continue.
2818
2819 2007-04-19  Jerome Guitton  <[email protected]>
2820
2821         * ser-mingw.c (fd_is_file): New function.
2822         (file_select_thread): New function.
2823         (ser_console_wait_handle): Add special handling for files.
2824
2825 2007-04-18  Denis Pilat  <[email protected]>
2826
2827         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
2828         when missing from DW_TAG_subrange_type.  Remove the handling of null
2829         return from die_type.
2830
2831 2007-04-18  Maciej W. Rozycki  <[email protected]>
2832
2833         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
2834         change to rearrange some brackets.
2835         (mips_n32n64_push_dummy_call): Likewise.
2836         (mips_o32_push_dummy_call): Likewise.
2837         (mips_o64_push_dummy_call): Likewise.
2838
2839 2007-04-18  Denis Pilat  <[email protected]>
2840
2841         * infcmd.c (post_create_inferior): Start with a call to 
2842         target_terminal_ours.
2843
2844 2007-04-17  Maciej W. Rozycki  <[email protected]>
2845
2846         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
2847         brackets.
2848         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
2849         expressions.
2850         (mips_o32_push_dummy_call): Likewise.
2851         (mips_o64_push_dummy_call): Likewise.
2852
2853 2007-04-17  Maciej W. Rozycki  <[email protected]>
2854
2855         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2856         comment.
2857
2858 2007-04-17  Maciej W. Rozycki  <[email protected]>
2859
2860         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2861         comment.
2862         (mips_o32_push_dummy_call): Likewise.
2863
2864 2007-04-17  Andreas Schwab  <[email protected]>
2865
2866         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
2867         sal to be bigger than the end of the function.
2868
2869 2007-04-17  Maciej W. Rozycki  <[email protected]>
2870             Nigel Stephens  <[email protected]>
2871
2872         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
2873         argument alignment requirements when calculating stack space
2874         required.  When aligning an arg register to eight bytes
2875         boundary, align stack_offset too.  Write floating-point
2876         arguments to the appropriate integer register if need go there.
2877         (mips_o64_push_dummy_call): Likewise.
2878
2879 2007-04-14  Ulrich Weigand  <[email protected]>
2880
2881         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
2882         "sig" arguments, add "regcache" argument.
2883         * gdbarch.c, gdbarch.h: Regenerate.
2884
2885         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
2886         (handle_inferior_event): Call remove_single_step_breakpoints directly
2887         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
2888
2889         * alpha-tdep.c (alpha_software_single_step): Update argument list.
2890         Remove handling of !insert_breakpoints_p case.
2891         * arm-tdep.c (arm_software_single_step): Likewise.
2892         * cris-tdep.c (cris_software_single_step): Likewise.
2893         * mips-tdep.c (mips_software_single_step): Likewise.
2894         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2895         * sparc-tdep.c (sparc_software_single_step): Likewise.
2896         * spu-tdep.c (spu_software_single_step): Likewise.
2897
2898         * alpha-tdep.h (alpha_software_single_step): Update prototype.
2899         * mips-tdep.h (mips_software_single_step): Likewise.
2900         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2901         * sparc-tdep.h (sparc_software_single_step): Likewise.
2902
2903 2007-04-14  Ulrich Weigand  <[email protected]>
2904
2905         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
2906         when removing single-step breakpoints.
2907
2908 2007-04-14  Vladimir Prus  <[email protected]>
2909
2910         * varobj.h (varobj_set_frozen): New
2911         (varobj_get_frozen): New.
2912         (varobj_update): New parameter explicit.
2913         * varobj.c (struct varobj): New fields frozen
2914         and not_fetched.
2915         (varobj_set_frozen, varobj_get_frozen): New.
2916         (install_new_value): Don't fetch values for 
2917         frozen variable object, or children thereof.  Allow
2918         a frozen variable object to have non-fetched value.
2919         (varobj_update): Allow updating child variables.
2920         Don't traverse frozen children.
2921         (new_variable): Initialize the frozen field.
2922         (c_value_of_variable): Return NULL for frozen
2923         variable without any value yet. 
2924         * mi/mi-cmd-var.c (varobj_update_one): New parameter
2925         'explicit'.
2926         (mi_cmd_var_create): Output the 'frozen' field,
2927         as soon as testsuite is adjusted to expect that field.
2928         (mi_cmd_var_set_frozen): New.
2929         (mi_cmd_var_update): Pass the 'explicit' parameter to
2930         varobj_update_one.
2931         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
2932         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
2933         
2934 2007-04-13  Paul Brook  <[email protected]>
2935
2936         * target-descriptions.c (tdesc_named_type): Add ieee_single and
2937         ieee_double.
2938         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
2939
2940 2007-04-13  Daniel Jacobowitz  <[email protected]>
2941
2942         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
2943         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
2944         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
2945         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
2946         * Makefile.in: Remove references to deleted files.
2947         * README: Do not mention deleted ROM monitor interfaces.
2948         * defs.h (enum language): Delete language_scm.
2949         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
2950         (dump_subexp_body_standard): Likewise.
2951         * parse.c (operator_length_standard): Likewise.
2952         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
2953         * remote-mips.c: Do not include remote-utils.h.
2954         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
2955         throughout.
2956         * value.c: Do not include scm-lang.h.
2957         (unpack_long): Delete scm_unpack call.
2958         * config/h8300/h8300.mt, config/mips/embed.mt,
2959         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
2960         config/sh/embed.mt, config/sh/linux.mt: Remove references to
2961         deleted files.
2962         * NEWS: Mention removed files.
2963
2964 2007-04-13  Daniel Jacobowitz  <[email protected]>
2965
2966         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
2967         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
2968
2969 2007-04-13  Daniel Jacobowitz  <[email protected]>
2970
2971         * NEWS: Mention removal of HP aCC support.
2972
2973 2007-04-13  Daniel Jacobowitz  <[email protected]>
2974
2975         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
2976         first entry for static executables.
2977         (breakpoint_addr): Delete unused variable.
2978         (elf_locate_base): Search for _r_debug in static executables.
2979         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
2980         also.
2981
2982 2007-04-13  Daniel Jacobowitz  <[email protected]>
2983
2984         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
2985         (bpstat_what, print_one_breakpoint, allocate_bp_location)
2986         (mention): Remove bp_through_sigtramp support.
2987         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
2988
2989 2007-04-13  Daniel Jacobowitz  <[email protected]>
2990
2991         * breakpoint.c (bpstat_what): Give step-resume higher priority than
2992         shlib events.
2993
2994 2007-04-13  Daniel Jacobowitz  <[email protected]>
2995
2996         * infrun.c: Doc fixes.
2997         (handle_inferior_event): Clarify debug message.
2998         (insert_step_resume_breakpoint_at_sal): Print a debug message.
2999
3000 2007-04-12  Ulrich Weigand  <[email protected]>
3001
3002         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3003
3004 2007-04-12  Ulrich Weigand  <[email protected]>
3005
3006         * config/m68k/tm-monitor.h: Delete file.
3007         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3008         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3009         call moved to ...
3010         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3011         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3012
3013 2007-04-12  Luis Machado  <[email protected]>
3014
3015         * gdbarch.sh (software_single_step): Change the return type
3016         from void to int and reformatted some comments to <= 80
3017         columns.
3018         * gdbarch.c, gdbarch.h: Regenerated.
3019         * alpha-tdep.c (alpha_software_single_step): Likewise.
3020         * alpha-tdep.h (alpha_software_single_step): Likewise.
3021         * arm-tdep.c (arm_software_single_step): Likewise.
3022         * cris-tdep.c (cris_software_single_step): Likewise.
3023         * mips-tdep.c (mips_software_single_step): Likewise.
3024         * mips-tdep.h (mips_software_single_step): Likewise.
3025         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3026         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3027         * sparc-tdep.c (sparc_software_single_step): Likewise.
3028         * sparc-tdep.h (sparc_software_single_step): Likewise.
3029         * spu-tdep.c (spu_software_single_step): Likewise.
3030         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3031         and act accordingly.
3032
3033 2007-04-11  Steve Ellcey  <[email protected]>
3034
3035         * configure.ac (build_warnings): Add -Wno-char-subscripts.
3036         * configure: Regenerate.
3037         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3038
3039 2007-04-11  Jan Kratochvil  <[email protected]>
3040
3041         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3042
3043 2007-04-11  Jan Kratochvil  <[email protected]>
3044
3045         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3046         macros.
3047         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3048         distinct on the TYPE_STUB_SUPPORTED debug targets.
3049         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3050
3051 2007-04-11  Joel Brobecker  <[email protected]>
3052
3053         * sparc-tdep.c (X_RS2): New macro.
3054         (sparc_skip_stack_check): New function.
3055         (sparc_analyze_prologue): Adjust PC past stack probing
3056         sequence if necessary.
3057
3058 2007-04-10  Andreas Schwab  <[email protected]>
3059
3060         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3061         register.
3062
3063 2007-04-10  Daniel Jacobowitz  <[email protected]>
3064
3065         * breakpoint.c (gdb_breakpoint_query): Really return an
3066         enum gdb_rc.
3067         (gdb_breakpoint): Likewise.
3068         * thread.c (gdb_list_thread_ids): Likewise.
3069         (gdb_thread_select): Likewise.
3070         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3071         (mi_cmd_thread_list_ids): Remove bogus initialization.
3072
3073 2007-04-10  Daniel Jacobowitz  <[email protected]>
3074
3075         * Makefile.in (SFILES): Remove hpacc-abi.c.
3076         (COMMON_OBS): Remove hpacc-abi.o.
3077         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3078         (hpacc-abi.o, hpread.o): Delete rules.
3079         * somread.c: Delete extern declarations from hpread.c.
3080         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3081         (som_symfile_finish): Do not call hpread_symfile_finish.
3082         (som_symfile_init): Do not call hpread_symfile_init.
3083         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3084         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3085         * hpacc-abi.c, hpread.c: Deleted.
3086
3087 2007-04-10  Daniel Jacobowitz  <[email protected]>
3088
3089         * solib-svr4.c (enable_break): Simplify return value.
3090         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3091
3092 2007-04-10  Andreas Schwab  <[email protected]>
3093
3094         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3095         l_ld_size, l_next_size, l_prev_size, l_name_size.
3096
3097         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3098         to extract addresses from link map.
3099         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3100         (LM_NEXT): Likewise.
3101         (LM_NAME): Likewise.
3102         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3103         (elf_locate_base): Likewise.
3104         (open_symbol_file_object): Likewise.
3105         (svr4_fetch_objfile_link_map): Likewise.
3106         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3107         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3108         l_ld_size.
3109         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3110         (svr4_lp64_fetch_link_map_offsets): Likewise.
3111
3112         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3113         removed members.  Set l_ld_offset to -1 if not present.
3114
3115 2007-04-08  Vladimir Prus  <[email protected]>
3116         
3117         Pass stderr of program run with "target remote |"
3118         via gdb_stderr.
3119         * serial.c (serial_open): Set error_fd to -1.
3120         * serial.h (struct serial): New field error_fd.
3121         (struct serial_opts): New field avail.
3122         * ser-pipe.c (pipe_open): Create another pair
3123         of sockets.  Pass stderr to gdb.
3124         * ser-mingw.c (pipe_windows_open): Pass
3125         PEX_STDERR_TO_PIPE to pex_run.  Initialize
3126         sd->error_fd.
3127         (pipe_avail): New.
3128         (_initialize_ser_windows): Hook pipe_avail.
3129         * ser-base.c (generic_readchar): Check if there's
3130         anything in stderr channel and route that to gdb_stderr.
3131
3132 2007-04-03  Pedro Alves  <[email protected]>
3133
3134         * dbxread.c (read_ofile_symtab): Move current_objfile
3135         clearing to after end_stabs.
3136
3137 2007-04-01  Andreas Schwab  <[email protected]>
3138
3139         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3140         gdbarch instead of current_gdbarch.
3141
3142 2007-04-01  Vladimir Prus  <[email protected]>
3143
3144         * varobj.c (varobj_create): Keep varobj value
3145         NULL when evaluating the type.
3146         
3147 2007-03-31  Pedro Alves  <[email protected]>
3148
3149         * NEWS: Mention new Windows CE support.
3150
3151 2007-03-30  Pedro Alves  <[email protected]>
3152
3153         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
3154         the obsoletion stanza.
3155         * NEWS: Mention deleted targets.
3156
3157         * config/sh/tm-wince.h: Remove.
3158         * config/sh/wince.mt: Remove.
3159         * config/mips/tm-wince.h: Remove.
3160         * config/mips/wince.mt: Remove.
3161
3162         * wince.c: Remove.
3163         * wince-stub.c: Remove.
3164         * wince-stub.h: Remove.
3165         * Makefile.in (wince.o): Remove rule.
3166         (wince-stub.o): Likewise.
3167
3168         * mips-tdep.c (mips_next_pc): Make static.
3169         * mips-tdep.h (mips_next_pc): Remove declaration.
3170         * arm-tdep.c (arm_pc_is_thumb): Make static.
3171         (thumb_get_next_pc): Likewise.
3172         (arm_get_next_pc): Likewise.
3173         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3174         (arm_pc_is_thumb): Likewise.
3175         (thumb_get_next_pc): Likewise.
3176         (arm_get_next_pc): Likewise.
3177
3178 2007-03-30  Daniel Jacobowitz  <[email protected]>
3179
3180         * MAINTAINERS: Remove d10v entry.
3181         * Makefile.in (SFILES): Remove dwarfread.c.
3182         (COMMON_OBS): Remove dwarfread.o.
3183         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3184         (remote-est.o, rom68k-rom.o): Delete.
3185         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3186         target est, target rom68k, and DWARF 1.
3187         * configure.tgt: Mark d10v as removed.
3188         * dwarf2read.c: Doc update.
3189         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3190         and lnsize.
3191         (elf_locate_sections): Do not set them.
3192         (elf_symfile_read): Do not call dwarf_build_psymtabs.
3193         * symfile.h (dwarf_build_psymtabs): Delete prototype.
3194         * config/m68k/monitor.mt (TDEPFILES): Prune.
3195         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3196         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3197
3198 2007-03-30  Daniel Jacobowitz  <[email protected]>
3199
3200         * doublest.c (convert_floatformat_to_doublest): Use
3201         floatformat_classify.
3202         (floatformat_is_nan): Rename to...
3203         (floatformat_classify): ...this.  Return more information.
3204         * doublest.h (enum float_kind): New.
3205         (floatformat_is_nan): Replace prototype...
3206         (floatformat_classify): ...with this one.
3207         * valprint.c (print_floating): Use floatformat_classify.  Handle
3208         infinity.
3209
3210 2007-03-30  Daniel Jacobowitz  <[email protected]>
3211
3212         * README: Mention ISO C library requirement.
3213
3214 2007-03-30  Daniel Jacobowitz  <[email protected]>
3215
3216         * Makefile.in (SFILES): Remove nlmread.c.
3217         (COMMON_OBS): Remove nlmread.o.
3218         (nlmread.o): Delete rule.
3219         * README: Delete reference to remote-st.c.
3220         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3221         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3222         GDB_OSABI_LYNXOS.
3223         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3224         (_initialize_i386_tdep): Do not reference them.
3225         * nlmread.c: Delete file.
3226         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3227         * target.c: Doc update.
3228         * thread.c: Delete commented include.
3229         * config/alpha/tm-alpha.h: Doc update.
3230
3231 2007-03-30  Chris Dearman  <[email protected]>
3232
3233         * utils.c (string_to_core_addr): Comment typo.
3234
3235 2007-03-30  Chris Dearman  <[email protected]>
3236
3237         * mips-tdep.c: Comment typo.
3238
3239 2007-03-29  Ulrich Weigand  <[email protected]>
3240
3241         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3242         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3243         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3244         * config/powerpc/nm-ppc64-linux.h: Remove file.
3245         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3246         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3247         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3248         * infptrace.c (call_ptrace): Likewise.
3249         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3250         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3251         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3252         (store_register): Likewise.
3253
3254 2007-03-29  Joel Brobecker  <[email protected]>
3255
3256         * Makefile.in (varobj.o): Add missing dependency.
3257
3258 2007-03-29  Michael Snyder  <[email protected]>
3259
3260         * MAINTAINERS: Update my email address.
3261
3262 2007-03-29  Joel Brobecker  <[email protected]>
3263
3264         Add support for exception handling with multiple versions of
3265         the Ada runtime:
3266         * ada-lang.c: Update general comments on how Ada exception catchpoints
3267         are implemented.
3268         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3269         (__gnat_raise_nodefer_with_msg): Delete.
3270         (ada_unhandled_exception_name_addr_ftype): New type.
3271         (exception_support_info): New type.
3272         (ada_unhandled_exception_name_addr): Add forward declaration.
3273         (ada_unhandled_exception_name_addr_from_raise): Likewise.
3274         (default_exception_support_info): New constant.
3275         (exception_support_info_fallback): Likewise.
3276         (exception_info): New global variable.
3277         (ada_exception_support_info_sniffer): New function.
3278         (ada_executable_changed_observer): Likewise.
3279         (ada_unhandled_exception_name_addr_from_raise): Renamed from
3280         ada_unhandled_exception_name_addr.
3281         (ada_unhandled_exception_name_addr): Reimplement to match the
3282         latest Ada runtime implementation.
3283         (error_breakpoint_runtime_sym_not_found): Delete.
3284         (ada_exception_sym_name): Get the exception sym name from
3285         exception_info rather than hardcoding it.
3286         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3287         Update error handling.
3288         * Makefile.in (ada-lang.o): Add dependency on observer.h.
3289
3290 2007-03-29  Daniel Jacobowitz  <[email protected]>
3291
3292         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3293         (remote-st.o, uw-thread.o): Delete.
3294         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3295         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3296         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3297         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3298         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3299         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3300         rs6000-*-lynxos* to an obsoletion stanza.
3301         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3302         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3303         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
3304         i[34567]86-*-netware*.
3305         * NEWS: Mention deleted targets.
3306
3307         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
3308         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
3309         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
3310         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
3311         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
3312         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
3313         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
3314         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
3315         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
3316         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
3317         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
3318         config/rs6000/tm-rs6000ly.h: Delete files.
3319
3320 2007-03-29  Daniel Jacobowitz  <[email protected]>
3321
3322         * defs.h (deprecated_registers_changed_hook): Delete declaration.
3323         * interps.c (clear_interpreter_hooks): Do not clear
3324         deprecated_registers_changed_hook.
3325         * regcache.c (registers_changed): Do not call it.
3326         * top.c (deprecated_registers_changed_hook): Do not define it.
3327         * mi/mi-interp.c (mi_command_loop): Do not clear it.
3328         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
3329         (tui_remove_hooks): Do not remove it.
3330         (tui_selected_frame_level_changed_hook): Check for negative level.
3331         Use get_selected_frame.
3332         (tui_registers_changed_hook): Deleted.
3333
3334 2007-03-29  Joel Brobecker  <[email protected]>
3335
3336         * stabsread.c (add_undefined_type): Add extra parameter.
3337         Now handles nameless types separately.
3338         (struct nat): New type.
3339         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
3340         New static variables.
3341         (read_type): Update calls to add_undefined_type.
3342         (add_undefined_type_noname): New function.
3343         (add_undefined_type_1): Renames from add_undefined_type.
3344         (cleanup_undefined_types_noname): New function.
3345         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
3346         (cleanup_undefined_types): New handles nameless types separately.
3347         (_initialize_stabsread): Initialize our new static constants.
3348
3349 2007-03-29  Denis Pilat  <[email protected]>
3350
3351         * configure.ac: Test for signal.h.
3352         * configure, config.in: Regenerate.
3353
3354 2007-03-29  Denis Pilat  <[email protected]>
3355
3356         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
3357         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
3358
3359 2007-03-29  Pedro Alves  <[email protected]>
3360
3361         * arm-wince-tdep.c: New.
3362         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
3363         (MT_CFLAGS): Delete.
3364         (TM_CLIBS): Delete.
3365         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
3366         solib-legacy.o, solib-svr4.o, and remove wince.o.
3367         * configure.tgt (arm*-*-mingw32ce*): Add.
3368         * signals/signals.c [HAVE_SIGNAL_H]: Check.
3369         (do_target_signal_to_host): Silence 'not used' warning.
3370         * config/arm/tm-wince.h: Remove.
3371
3372 2007-03-28  Ulrich Weigand  <[email protected]>
3373
3374         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
3375         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
3376
3377         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
3378         * config/ia64/tm-linux.h: Remove file.
3379         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
3380         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
3381         legacy_pc_in_sigtramp.
3382         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
3383         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
3384         Remove func_name argument.
3385         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
3386
3387         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
3388         * target.c (update_current_target): Add to_have_steppable_watchpoint.
3389         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
3390         (HAVE_STEPPABLE_WATCHPOINT): Define.
3391
3392         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
3393         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
3394         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
3395         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
3396         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
3397         target_insert_watchpoint, target_remove_watchpoint): Remove.
3398         (FETCH_INFERIOR_REGISTERS): Define.
3399         * ia64-linux-nat.c (ia64_register_addr): Make static.
3400         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
3401         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
3402         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
3403         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
3404         (ia64_linux_stopped_by_watchpoint): Make static.
3405         (ia64_linux_can_use_hw_breakpoint): New function.
3406         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
3407         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
3408         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
3409
3410 2007-03-28  Pedro Alves  <[email protected]>
3411
3412         * linespec.c: Include language.h.
3413         (find_methods): Add language parameter.  Call
3414         lookup_symbol_in_language.  Pass language down.
3415         (add_matching_methods): Likewise.  Call
3416         lookup_symbol_in_language.
3417         (add_constructors): Likewise.
3418         (find_method): Pass sym_class to collect_methods.
3419         (collect_methods): Add sym_class parameter.  Pass language
3420         down.
3421         * symtab.c (lookup_symbol): Rename to ...
3422         (lookup_symbol_in_language): ... this.  Add language
3423         parameter.  Use passed language instead of current_language.
3424         (lookup_symbol): New as wrapper around
3425         lookup_symbol_in_language.
3426         (lookup_symbol_aux): Add language parameter.  Use passed
3427         language instead of current_language.
3428         (search_symbols): Indent.
3429         * symtab.h (enum language): Forward declare.
3430         (lookup_symbol_in_language): Declare.
3431         (lookup_symbol): Update description.
3432         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
3433         * ada-lang.c (restore_language): Remove.
3434         (lookup_symbol_in_language): Remove.
3435
3436 2007-03-27  Pedro Alves  <[email protected]>
3437
3438         * breakpoint.c (bpstat_num): Add int *num parameter.
3439         * breakpoint.h (bpstat_num): Likewise.
3440         * infcmd.c (continue_command): Adjust to new bpstat_num
3441         interface.
3442         (program_info): Likewise.
3443
3444 2007-03-27  Ulrich Weigand  <[email protected]>
3445
3446         * config/sh/tm-sh.h: Remove file.
3447         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
3448         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
3449         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3450         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
3451
3452 2007-03-27  Ulrich Weigand  <[email protected]>
3453
3454         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
3455         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
3456         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
3457         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
3458         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
3459         sequence if target_shortname is "remote".
3460
3461 2007-03-27  Anton Blanchard  <[email protected]>
3462
3463         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
3464         instead of wordsize when looking for the LR in a stack frame.
3465
3466 2007-03-27  Andreas Schwab  <[email protected]>
3467             Daniel Jacobowitz  <[email protected]>
3468
3469         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
3470         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
3471         argument.  Update all callers.
3472         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
3473         (dwarf2_frame_set_eh_frame_regnum): Rename to...
3474         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
3475         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
3476         (dwarf2_frame_set_adjust_regnum): ...this.
3477         (dwarf2_frame_eh_frame_regnum): Delete prototype.
3478         * rs6000-tdep.c: Include "dwarf2-frame.h".
3479         (rs6000_adjust_frame_regnum): Define.
3480         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
3481         Register rs6000_adjust_frame_regnum.
3482
3483         * Makefile.in (rs6000-tdep.o): Update dependencies.
3484
3485 2007-03-27  Brooks Moses  <[email protected]>
3486
3487         * Makefile.in: Add support for a "pdf" target.
3488
3489 2007-03-27  Daniel Jacobowitz  <[email protected]>
3490
3491         * amd64-tdep.c (amd64_init_frame_cache): New function.
3492         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
3493
3494 2007-03-26  Nigel Stephens  <[email protected]>
3495             Maciej W. Rozycki  <[email protected]>
3496
3497         * ui-out.c (ui_out_field_core_addr): Truncate address to
3498         TARGET_ADDR_BIT size before printing.
3499
3500 2007-03-22  Nigel Stephens  <[email protected]>
3501             Maciej W. Rozycki  <[email protected]>
3502
3503         * remote-mips.c (mips_xfer_memory): Update prototype.
3504
3505 2007-03-22  Joel Brobecker  <[email protected]>
3506
3507         * symfile.h: #include "symtab.h"
3508
3509 2007-03-22  Denis Pilat  <[email protected]>
3510
3511         * utils.c (pagination_on_command, pagination_off_command):
3512         Remove useless prototypes.
3513
3514 2007-03-21  Pierre Muller  <[email protected]>
3515
3516         Fix PR pascal/2232.
3517         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
3518         instead of TYPE_NAME for object base class name.
3519
3520
3521 2007-03-19  Kevin Buettner  <[email protected]>
3522
3523         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
3524         Specify frame type in calls to frame_func_unwind().
3525
3526 2007-03-13  Daniel Jacobowitz  <[email protected]>
3527
3528         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
3529         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
3530         (refine_prologue_limit): Delete.
3531         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
3532         Assume lim_pc is set.  Correct check for incomplete prologues.
3533         Do not skip clobbers of the frame pointer.
3534         * symtab.c (skip_prologue_using_sal): Fail if there is only one
3535         sal.
3536
3537 2007-03-13  Nathan Froyd  <[email protected]>
3538
3539         * frame.c (frame_pop): Check to see whether there's a frame to
3540         which we can pop first.
3541
3542 2007-03-13  Nathan Froyd  <[email protected]>
3543
3544         * MAINTAINERS (Write After Approval): Add myself.
3545
3546 2007-03-09  Markus Deuling  <[email protected]>
3547
3548         * infrun.c (breakpoints_failed): Remove unnecessary variable.
3549         (handle_inferior_event): Remove unnecessary braces.
3550         * breakpoint.c (bpstat_what): Remove wrong comment.
3551
3552 2007-03-09  Ulrich Weigand  <[email protected]>
3553
3554         * spu-tdep.c (spu_in_function_epilogue_p): New function.
3555         (spu_gdbarch_init): Install it.
3556
3557 2007-03-08  Ulrich Weigand  <[email protected]>
3558
3559         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
3560         object types, not 0.
3561
3562 2007-03-08  Ulrich Weigand  <[email protected]>
3563
3564         * spu-tdep.c (spu_frame_align): New function.
3565         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
3566
3567 2007-03-08  Ulrich Weigand  <[email protected]>
3568
3569         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3570         (spu_software_single_step): Likewise.
3571         (spu_read_pc, spu_write_pc): New functions.
3572         (spu_gdbarch_init): Install them.
3573
3574 2007-03-08  Ulrich Weigand  <[email protected]>
3575
3576         * cli/cli-dump.c (struct callback_data): load_offset needs to 
3577         have signed long type.
3578
3579 2007-03-07  Joel Brobecker  <[email protected]>
3580
3581         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3582         Revert the previous change that had some unexpected side-effects
3583         on mips32.
3584         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3585         function to get the address of the calling instruction.
3586
3587 2007-03-07  Denis Pilat  <[email protected]>
3588
3589         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3590         get_selected_frame by deprecated_safe_get_selected_frame.
3591
3592 2007-03-02  Mark Kettenis  <[email protected]>
3593
3594         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3595         "gdb_string.h".  Don't include "nbsd-tdep.h".
3596         (SIZEOF_STRUCT_REG): Remove.
3597         (SHNBSD_SIZEOF_GREGS): New.
3598         (shnbsd_supply_gregset, shnbsd_collect_gregset)
3599         (shnbsd_regset_from_core_section): New functions.
3600         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3601         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3602         shnbsd_supply_gregset, shnbsd_collect_gregset.
3603         (shnbsd_gregset): New variable.
3604         (shnbsd_init_abi): Set regset_from_core_section.
3605         (GDB_OSABI_NETBSD_CORE): New define.
3606         (shnbsd_core_osabi_sniffer): New function.
3607         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3608         * Makefile.in (shnbsd-tdep.o): Update dependencies.
3609         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3610         nbsd-tdep.o.
3611         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3612
3613 2007-02-28  Joel Brobecker  <[email protected]>
3614
3615         * gdbtypes.c (replace_type): Fix typo that caused us to not update
3616         length of the types referenced by the new type CV ring.
3617
3618 2007-02-28  Daniel Jacobowitz  <[email protected]>
3619
3620         * frame.c (frame_pop, frame_observer_target_changed): Call
3621         reinit_frame_cache.
3622         (flush_cached_frames): Rename to reinit_frame_cache and delete
3623         old implementation.
3624         * frame.h (flush_cached_frames): Delete prototype and update comment.
3625
3626         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3627         reinit_frame_cache instead of flush_cached_frames.  Do not call
3628         select_frame after reinit_frame_cache.
3629         * corelow.c (core_open): Likewise.
3630         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3631         * infrun.c (prepare_to_proceed, context_switch)
3632         (handle_inferior_event): Likewise.
3633         * linux-fork.c (fork_load_infrun_state): Likewise.
3634         * ocd.c (ocd_start_remote): Likewise.
3635         * remote-e7000.c (e7000_start_remote): Likewise.
3636         * remote-mips.c (device): Likewise.
3637         * thread.c (switch_to_thread): Likewise.
3638         * tracepoint.c (finish_tfind_command): Likewise.
3639         * gdbarch.c: Regenerated.
3640
3641 2007-02-28  Jerome Guitton  <[email protected]>
3642             Joel Brobecker  <[email protected]>
3643
3644         * gdbtypes.c (check_typedef): Do not replace stub type if
3645         the resolved type is not defined in the same objfile.
3646
3647 2007-02-28  Daniel Jacobowitz  <[email protected]>
3648
3649         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3650
3651 2007-02-28  Joel Brobecker  <[email protected]>
3652
3653         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3654         symbol for Ada units when the symbol is defined using 't' rather
3655         than 'Tt' as symbol descriptor.
3656
3657 2007-02-28  Ulrich Weigand  <[email protected]>
3658
3659         * config/mips/tm-nbsd.h: Delete file.
3660         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3661         * config/sh/tm-nbsd.h: Delete file.
3662         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3663
3664 2007-02-28  Joel Brobecker  <[email protected]>
3665
3666         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3667         unused WRONG_PARAM value since it was recently deleted.
3668
3669 2007-02-28  Vladimir Prus  <[email protected]>
3670
3671         * varobj.c (varobj_update): Free temporary vectors.
3672
3673 2007-02-28  Ulrich Weigand  <[email protected]>
3674
3675         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3676         * config/powerpc/tm-linux.h: Delete file.
3677         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3678         (PROCESS_LINENUMBER_HOOK): Do not undefine.
3679         (TEXT_SEGMENT_BASE): Do not redefine.
3680         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3681         from config/rs6000/tm-rs6000.h.
3682         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3683         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3684         (TEXT_SEGMENT_BASE): Remove.
3685         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3686         (rs6000_in_solib_return_trampoline): Remove.
3687         (SKIP_TRAMPOLINE_CODE): Remove.
3688         (rs6000_skip_trampoline_code): Remove.
3689         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3690         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3691         (FP0_REGNUM): Remove.
3692         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3693         (rs6000_set_host_arch_hook): Remove.
3694         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3695         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3696         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3697         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3698         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3699         * rs6000-nat.c: Include "rs6000-tdep.h".
3700         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3701         (set_host_arch): Rename to ...
3702         (rs6000_create_inferior): ... this.  Make public.
3703         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3704         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3705         (rs6000_create_inferior): Remove.
3706         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3707         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3708         set_gdbarch_in_solib_return_trampoline, and
3709         set_gdbarch_skip_trampoline_code.
3710         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3711         from config/rs6000/tm-rs6000.h.
3712
3713 2007-02-27  Joel Brobecker  <[email protected]>
3714
3715         * buildsym.c (record_producer): Do nothing if no producer is provided.
3716
3717 2007-02-27  Nick Roberts  <[email protected]>
3718
3719         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
3720         to check changelist is non-NULL.  Call error if the frontend tries
3721         to update a non-root variable.
3722
3723         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3724
3725 2007-02-27  Daniel Jacobowitz  <[email protected]>
3726
3727         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3728         (dwarf2_frame_sniffer): Update.
3729         (dwarf2_signal_frame_this_id): New function.
3730         (dwarf2_signal_frame_unwind): Use it.
3731         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
3732         * frame.c (frame_func_unwind): Add this_type argument.
3733         (get_frame_func): Update.
3734         (frame_unwind_address_in_block): Add this_type argument and check it.
3735         Fix a typo.
3736         (get_frame_address_in_block): Update.
3737         * frame.h (enum frame_type): Move higher in the file.
3738         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
3739         argument.
3740
3741         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
3742         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
3743         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
3744         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
3745         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
3746         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
3747         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
3748         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
3749         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
3750         frame_func_unwind and frame_unwind_address_in_block to specify
3751         the frame type.  Use frame_unwind_address_in_block instead of
3752         frame_pc_unwind in sniffers.
3753
3754 2007-02-27  Daniel Jacobowitz  <[email protected]>
3755
3756         * frame.c (deprecated_selected_frame): Rename to...
3757         (selected_frame): ...this.  Make static.
3758         (get_selected_frame, select_frame): Update.
3759         * frame.h (deprected_select_frame): Delete.
3760         (deprecated_safe_get_selected_frame): Update comments.
3761
3762         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
3763         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
3764         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
3765         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
3766         tui/tui.c: Replace references to deprecated_selected_frame.
3767
3768 2007-02-27  Fred Fish  <[email protected]>
3769
3770         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
3771         directly decrement the stack pointer, accumulate their operand into 
3772         the stack offset, and mark the function as not being frameless.
3773
3774 2007-02-26  Daniel Jacobowitz  <[email protected]>
3775
3776         * arch-utils.c (selected_byte_order): New.
3777         * arch-utils.h (selected_byte_order): New prototype.
3778         * remote-sim.c (gdbsim_open): Use selected_byte_order.
3779
3780 2007-02-26  Daniel Jacobowitz  <[email protected]>
3781
3782         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
3783         (default_symfile_offsets): Check VMA here.  Update section VMAs.
3784
3785 2007-02-26  Daniel Jacobowitz  <[email protected]>
3786
3787         * remote.c (init_remote_state): Add special handling for placeholder
3788         registers.
3789
3790 2007-02-26  Daniel Jacobowitz  <[email protected]>
3791
3792         * Makefile.in (XMLFILES): Include $(TDEP_XML).
3793         (filenames_h): New variable.
3794         (clean): Clean up xml-builtin.c and stamp-xml.
3795         (arm-linux-nat.o): Update.
3796         * config/arm/linux.mh (TDEP_XML): Define.
3797         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
3798         (arm_linux_has_wmmx_registers): New.
3799         (GET_THREAD_ID): Fix typo.
3800         (IWMMXT_REGS_SIZE): Define.
3801         (fetch_wmmx_regs, store_wmmx_regs): New.
3802         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
3803         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
3804         (super_xfer_partial, arm_linux_xfer_partial): New.
3805         (_initialize_arm_linux_nat): Use them.
3806         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
3807         (xml_builtin_xfer_partial): New function.
3808         * xml-support.h (xml_builtin_xfer_partial): New prototype.
3809         * NEWS: Update mention of iWMMXt support.
3810
3811 2007-02-26  Daniel Jacobowitz  <[email protected]>
3812
3813         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
3814         if there are no FPA registers.
3815         (arm_dwarf_reg_to_regnum): New function.
3816         (arm_register_type, arm_register_name): Return minimal values for
3817         unsupported registers.
3818         (arm_register_sim_regno): Handle iWMMXt registers.
3819         (arm_gdbarch_init): Record missing FPA registers if indicated by
3820         a target description.  Recognize iWMMXt registers.  Only register
3821         "info float" for FPA.  Use ARM_NUM_REGS.  Register
3822         arm_dwarf_reg_to_regnum.
3823         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
3824         constants.
3825         (struct gdbarch_tdep): Add have_fpa_registers.
3826         * features/xscale-iwmmxt.xml: Update capitalization.
3827         * regformats/arm-with-iwmmxt.dat: Regenerated.
3828
3829 2007-02-24  Kevin Buettner  <[email protected]>
3830
3831         * NEWS (New targets): Add entry for the Toshiba Media Processor.
3832
3833 2007-02-23  Kevin Buettner  <[email protected]>
3834
3835         * MAINTAINERS (mep): New target.
3836
3837 2007-02-23  Kevin Buettner  <[email protected]>
3838
3839         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
3840         Richard Sandiford:
3841         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
3842         (mep-tdep.o): New rule.
3843         * configure.tgt (mep-*-*): New target.
3844         * mep-tdep.c: New file.
3845         * config/mep/mep.mt: New file.
3846
3847 2007-02-22  Markus Deuling  <[email protected]>
3848
3849         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
3850         BREAKPOINT_HIT and STOP_UNKNOWN.
3851
3852 2007-02-22  Markus Deuling  <[email protected]>
3853
3854         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
3855
3856 2007-02-20  Joel Brobecker  <[email protected]>
3857
3858         * gdb_expat.h (XMLCALL): Define if not already defined.
3859
3860 2007-02-20  Andreas Schwab  <[email protected]>
3861
3862         * Makefile.in (symfile.o): Update dependencies.
3863
3864 2007-02-20  Daniel Jacobowitz  <[email protected]>
3865
3866         * MAINTAINERS: Disable -Werror for cris simulator.  Build
3867         sparc64-solaris2.10 instead of the broken sparc-elf.
3868         * solib-frv.c: Include "solib.h".
3869         * Makefile.in (solib-frv.o): Update.
3870         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
3871         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
3872         (xtensa_frame_this_id, xtensa_frame_prev_register)
3873         (xtensa_push_dummy_call): Use %p.
3874
3875 2007-02-16  Daniel Jacobowitz  <[email protected]>
3876
3877         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3878         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
3879         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3880         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
3881         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
3882         (sparc-linux-tdep.o): Update.
3883
3884 2007-02-15  Maxim Grigoriev  <[email protected]>
3885
3886         * xtensa-tdep.h (xtensa_reg_mask_t): New.
3887         (xtensa_mask_t): Change mask field to be a separate array.
3888         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
3889         (xtensa_pseudo_register_write, xtensa_unwind_pc)
3890         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
3891         (xtensa_breakpoint_from_pc): Remove implicit type casting.
3892         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
3893         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
3894         (mask14, mask15): Rename to
3895         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
3896         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
3897         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
3898         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
3899         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
3900         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
3901         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
3902         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
3903         (xtensa_submask14, xtensa_submask15): New.
3904         (rmap): Follow strict aliasing rules doing static initialization.
3905
3906 2007-02-13  Daniel Jacobowitz  <[email protected]>
3907
3908         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
3909         handling from here...
3910         (tdesc_register_type): ...to here.
3911         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
3912         * features/arm-core.xml: Use code_ptr and data_ptr.
3913
3914 2007-02-13  Denis Pilat  <[email protected]>
3915
3916         * varobj.h (enum varobj_update_error): New enum.
3917         * varobj.c (struct varobj_root): Add is_valid member.
3918         (varobj_get_type): Check for invalid varobj.
3919         (varobj_get_attributes): Likewise.
3920         (variable_editable):Likewise.
3921         (varobj_update): Likewise.  Use varobj_update_error.
3922         (new_root_variable): Set root varobj as valid by default.
3923         (varobj_invalidate): New function.
3924         * symfile.c (clear_symtab_users): Use varobj_invalidate.
3925         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
3926         Use varobj_update_error.
3927
3928 2007-02-12  Pierre Muller  <[email protected]>
3929
3930         Fix PR pascal/2223.
3931         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
3932         Pascal language marker.
3933         * dwarf2read.c (set_cu_language): Likewise.
3934
3935 2007-02-12  Corinna Vinschen  <[email protected]>
3936
3937         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
3938         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
3939         instead of target_terminal_init since inferior_ptid isn't set yet.
3940
3941 2007-02-10  Pedro Alves  <[email protected]>
3942
3943         * MAINTAINERS (Write After Approval): Add myself.
3944
3945 2007-02-09  Fred Fish  <[email protected]>
3946
3947         Based on work by Apple Computer, Inc.
3948         * event-top.c (async_request_quit): Call quit() whenever either
3949         quit_flag is set or immediate_quit is set.
3950
3951 2007-02-09  Gabriel Dos Reis  <[email protected]>
3952
3953         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
3954         type to a pointer to const struct block.
3955         (ada_lookup_symbol_list): Don't cast away constness when calling
3956         remove_out_of_scope_renamings.
3957
3958 2007-02-09  Gabriel Dos Reis  <[email protected]>
3959
3960         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
3961         address of 'filename'; it is always non null.
3962
3963 2007-02-09  Joel Brobecker  <[email protected]>
3964
3965         * exec.c (add_to_section_table): Do not discard empty sections.
3966
3967 2007-02-08  Daniel Jacobowitz  <[email protected]>
3968
3969         * features/Makefile, features/arm-with-iwmmxt.xml,
3970         features/gdbserver-regs.xsl, features/number-regs.xsl,
3971         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
3972         * regformats/arm-with-iwmmxt.dat: Generate.
3973         * NEWS: Mention iWMMXt.
3974
3975 2007-02-08  Daniel Jacobowitz  <[email protected]>
3976
3977         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
3978         (xml-tdesc.o): Update.
3979         * xml-support.c: Add a comment.
3980         (gdb_xml_enums_boolean): New variable.
3981         (gdb_xml_parse_attr_enum): Use strcasecmp.
3982         * xml-support.h (gdb_xml_enums_boolean): Declare.
3983         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
3984         next_regnum, and current_union.
3985         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
3986         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
3987         (field_attributes, union_children, reg_attributes, union_attributes)
3988         (vector_attributes, feature_attributes, feature_children): New.
3989         (target_children): Make static.  Add <feature>.
3990         (tdesc_elements): Make static.
3991         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
3992         (struct tdesc_feature, tdesc_feature_p): New types.
3993         (struct target_desc): Add features member.
3994         (struct tdesc_arch_data, tdesc_data): New.
3995         (target_find_description): Clarify error message.  Warn about
3996         ignored register descriptions.
3997         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3998         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
3999         (tdesc_data_cleanup, tdesc_numbered_register)
4000         (tdesc_numbered_register_choices, tdesc_find_register)
4001         (tdesc_register_name, tdesc_register_type)
4002         (tdesc_remote_register_number, tdesc_register_reggroup_p)
4003         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4004         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4005         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4006         (tdesc_create_feature, tdesc_record_type): New.
4007         (free_target_description): Free features.
4008         (_initialize_target_descriptions): Initialize tdesc_data.
4009         * arch-utils.c (default_remote_register_number): New.
4010         * arch-utils.h (default_remote_register_number): New prototype.
4011         * target-descriptions.h (set_tdesc_pseudo_register_name)
4012         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4013         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4014         (tdesc_numbered_register, tdesc_numbered_register_choices)
4015         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4016         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4017         (tdesc_create_reg): Declare.
4018         * gdbarch.sh (remote_register_number): New entry.
4019         * gdbarch.c, gdbarch.h: Regenerate.
4020         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4021         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4022
4023         * arm-tdep.c (arm_register_aliases): New.
4024         (arm_register_name_strings): Rename to...
4025         (arm_register_names): ...this.  Make const.  Delete the old version.
4026         (current_option, arm_register_byte): Delete.
4027         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
4028         (value_of_arm_user_reg): New.
4029         (arm_gdbarch_init): Verify any described registers.  Call
4030         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
4031         for standard register names.
4032         (_initialize_arm_tdep): Do not adjust arm_register_names.
4033         * user-regs.c (struct user_reg): Add baton member.
4034         (append_user_reg, user_reg_add_builtin, user_regs_init)
4035         (user_reg_add, value_of_user_reg): Use a baton for user
4036         register functions.
4037         * std-regs.c: Update.
4038         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4039         (user_reg_add): Add baton argument.
4040         * NEWS: Mention target description register support.
4041         * features/arm-core.xml, features/arm-fpa.xml: New.
4042         * eval.c (evaluate_subexp_standard): Allow ptype $register
4043         when the program is not running.
4044
4045 2007-02-09  Nick Roberts  <[email protected]>
4046
4047         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
4048
4049 2007-02-08  Thiago Jung Bauermann  <[email protected]>
4050
4051         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4052         info->disassembler_options to "any".
4053
4054 2007-02-08  Daniel Jacobowitz  <[email protected]>
4055
4056         * varobj.c (install_new_value): Only call value_get_print_value
4057         if changeable.
4058
4059 2007-02-08  Daniel Jacobowitz  <[email protected]>
4060
4061         Reported by [email protected]:
4062         * gdb/target.c (target_flash_erase): Do not return void value.
4063         (target_flash_done): Likewise.
4064         * gdb/cli/cli-cmds.c (source_command): Likewise.
4065
4066 2007-02-08  Fred Fish  <[email protected]>
4067
4068         Based on work by Apple Computer, Inc.
4069         * event-top.c (handle_sigint): Set quit_flag.
4070         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
4071         if quit_flag has already been reset.
4072
4073 2007-02-08  Daniel Jacobowitz  <[email protected]>
4074
4075         * ser-mingw.c (pipe_windows_close): Move variable initialization back
4076         up.
4077
4078 2007-02-08  Fred Fish  <[email protected]>
4079
4080         * defs.h (request_quit): Remove declaration.
4081         * utils.c (request_quit): Remove definition.
4082
4083 2007-02-08  Joel Brobecker  <[email protected]>
4084             Jan Kratochvil  <[email protected]>
4085             Daniel Jacobowitz  <[email protected]>
4086
4087         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4088         (skip_prologue): Allow bl->blrl used by PIC code.
4089
4090 2007-02-08  Mark Kettenis  <[email protected]>
4091             Daniel Jacobowitz  <[email protected]>
4092
4093         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4094         initialize tmp_obstack.
4095         * p-valprint.c (pascal_object_print_value_fields)
4096         (pascal_object_print_value): Likewise.
4097
4098 2007-02-08  Daniel Jacobowitz  <[email protected]>
4099
4100         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4101
4102 2007-02-08  Mark Kettenis  <[email protected]>
4103
4104         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4105         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4106
4107 2007-02-07  Daniel Jacobowitz  <[email protected]>
4108
4109         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4110         (xml_cache): New.
4111         (tdesc_parse_xml): Cache expanded descriptions.
4112
4113 2007-02-07  Daniel Jacobowitz  <[email protected]>
4114
4115         * Makefile.in (XMLFILES): New.
4116         (COMMON_OBS): Add xml-builtin.o.
4117         (xml-builtin.c, stamp-xml): New rules.
4118         (xml-tdesc.o): Update.
4119         * features/feature_to_c.sh: New file.
4120         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4121         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4122         (gdb_xml_start_element): Initialize scope after possibly reallocating
4123         scopes.  Move cleanup later.  Handle the XInclude description
4124         specially.
4125         (gdb_xml_end_element): Only parse the body if there is a current element.
4126         Call XML_DefaultCurrent if there is no element.
4127         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4128         (struct xinclude_parsing_data, xinclude_start_include)
4129         (xinclude_end_include, xml_xinclude_default)
4130         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4131         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4132         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4133         * xml-support.h (xml_fetch_another, xml_process_xincludes)
4134         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4135         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
4136         XInclude directives.  Use the compiled in DTD.
4137         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
4138         directory name.  Do not warn here.
4139         (file_read_description_xml): Update call.  Warn here instead.  Pass
4140         a dirname as baton.
4141         (fetch_available_features_from_target): New.
4142         (target_read_description_xml): Use it.
4143         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
4144         to handle XInclude.
4145         * features/xinclude.dtd: New file.
4146
4147 2007-02-05  Daniel Jacobowitz  <[email protected]>
4148
4149         * linux-thread-db.c (check_for_thread_db): Return early if we have
4150         no libthread_db support.
4151
4152 2007-02-05  Daniel Jacobowitz  <[email protected]>
4153
4154         * mi/mi-parse.h: Include <sys/time.h>.
4155
4156 2007-02-05  Nick Roberts  <[email protected]>
4157
4158         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4159         instead of print_variable_value to print values.
4160
4161 2007-02-03  Nick Roberts  <[email protected]>
4162
4163         * mi/mi-main.c: Numerous formatting changes.
4164         (mi_cmd_data_write_register_values): Replace clause inadvertantly
4165         removed in my previous change.
4166
4167 2007-02-03   Eli Zaretskii  <[email protected]>
4168
4169         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4170         Use 1000000L instead of 1000000.
4171
4172 2007-02-03  Nick Roberts  <[email protected]>
4173
4174             Based on work by Apple Computer, Inc.
4175
4176         * configure.ac: Test for sys/resource.h and getrusage.
4177         * configure, config.in: Regenerate.
4178
4179         * mi/mi-main.c: Include <sys/resource.h> if present.
4180         (rusage): Declare if HAVE_GETRUSAGE.
4181         (current_command_ts, do_timings): New static variables.
4182         (timestamp, print_diff_now, print_diff, timeval_diff):
4183         New static timing functions.
4184         (mi_cmd_enable_timings): New function for new MI command.
4185         (captured_mi_execute_command, mi_execute_async_cli_command): 
4186         Call timing functions.
4187
4188         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4189         -enable-timings.
4190
4191         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4192
4193         * mi/mi-parse.h: (mi_timestamp): New structure.
4194         (mi_parse): Add mi_timestamp* member.
4195
4196 2007-02-02  Denis Pilat  <[email protected]>
4197
4198         * thread.c (make_cleanup_restore_current_thread): New function.
4199         (info_threads_command): Use of make_cleanup_restore_current_thread
4200         to restore the current thread and the selected frame.
4201         (restore_selected_frame): New function.
4202         (struct current_thread_cleanup): Add frame_id field.
4203         (do_restore_current_thread_cleanup): Add restoring of the selected
4204         frame.
4205         (make_cleanup_restore_current_thread): Likewise.
4206         (thread_apply_all_command): backup the selected frame while 
4207         entering the function and restore it at exit.
4208         (thread_apply_command): Likewise.
4209
4210 2007-02-02  Denis Pilat  <[email protected]>
4211
4212         * MAINTAINERS (Write After Approval): Add myself to the list.
4213
4214 2007-02-01  Kazuhiro Inaoka <[email protected]>
4215
4216         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4217         (m32r_store_register): Ditto.
4218
4219 2007-01-30  Vladimir Prus  <[email protected]>
4220
4221         * ser-mingw.c (pipe_windows_open)
4222         (pipe_windows_read, pipe_windows_write): Declare
4223         variables at the top of the function.
4224
4225 2007-01-29  Daniel Jacobowitz  <[email protected]>
4226
4227         * doublest.c (floatformat_from_length): Use the right element from
4228         gdbarch floatformats.
4229         (floatformat_from_type, extract_typed_floating)
4230         (store_typed_floating): Likewise.
4231         * doublest.h: Remove declarations for undefined floatformat arrays.
4232         * gdbarch.sh (float_format, double_format, long_double_format): Change
4233         to pairs.
4234         (pformat): Update for pairs.
4235         * gdbarch.c, gdbarch.h: Regenerated.
4236         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4237         (floatformats_ieee_double_littlebyte_bigword)
4238         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4239         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4240         (floatformats_vax_d): New variables.
4241         (builtin_type_ieee_single, builtin_type_ieee_double)
4242         (builtin_type_arm_ext, builtin_type_ia64_spill)
4243         (builtin_type_ia64_quad): Replace arrays with individual types.
4244         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4245         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4246         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4247         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4248         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4249         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4250         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4251         unused and endian-specific types.
4252         (recursive_dump_type): Update for floatformat pairs.
4253         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
4254         (build_gdbtypes): Use build_flt.
4255         (_initialize_gdbtypes): Update set of initialized types.
4256         * gdbtypes.h: Update declarations to match gdbtypes.c.
4257         (struct main_type): Store a pointer to two floatformats.
4258         * arch-utils.c (default_float_format, default_double_format): Delete.
4259         * arch-utils.h (default_float_format, default_double_format): Delete.
4260
4261         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4262         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4263         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4264         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4265         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4266
4267 2007-01-29  Joel Brobecker  <[email protected]>
4268
4269         * target.c (maintenance_print_target_stack): New function.
4270         (initialize_targets): Add new "maintenance print target-stack"
4271         command.
4272
4273 2007-01-28  Mark Kettenis  <[email protected]>
4274
4275         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4276
4277 2007-01-27  Daniel Jacobowitz  <[email protected]>
4278
4279         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4280         (struct dwarf2_loclist_baton): Likewise.
4281
4282 2007-01-27  Eli Zaretskii  <[email protected]>
4283
4284         * cli/cli-script.c: Include breakpoint.h.
4285         (build_command_line): Require arguments only for if and while
4286         commands.
4287         (get_command_line, execute_user_command, execute_control_command):
4288         Fix wording of warning messages.
4289         (print_command_lines): Print breakpoint commands.
4290         (execute_control_command): Call commands_from_control_command to
4291         handle the `commands' command inside a body of a flow-control
4292         command.
4293         (read_next_line): Recognize the `commands' command and build a
4294         command line structure for it.
4295         (recurse_read_control_structure, read_command_lines): Handle
4296         `commands' similarly to `if' and `while'.
4297
4298         * breakpoint.c (get_number_trailer): Document the special meaning
4299         of NULL as the first argument PP.
4300         (commands_from_control_command): New function.
4301
4302         * breakpoint.h (commands_from_control_command): Add prototype.
4303
4304         * defs.h (commands_control): New enumerated value for enum
4305         command_control_type.
4306
4307 2007-01-26  Joel Brobecker  <[email protected]>
4308
4309         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4310         (ada_exception_sal): Update accordingly.
4311
4312 2007-01-26  Jan Kratochvil <[email protected]>
4313
4314         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
4315         * NEWS: Describe CHAR array vs. string identifcation rules.
4316
4317 2007-01-25  Paul Brook  <[email protected]>
4318
4319         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
4320
4321 2007-01-24  Jim Blandy  <[email protected]>
4322
4323         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
4324         expression is empty, bother to return the 'optimized out' value we
4325         construct.  (Thanks to Carl Burch.)
4326
4327 2007-01-24  Vladimir Prus  <[email protected]>
4328
4329         * varobj.c (c_value_of_root, c_value_of_child)
4330         (cplus_describe_child): Don't call release_value.
4331
4332 2007-01-24  Thiemo Seufer  <[email protected]>
4333
4334         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
4335         initialization.
4336
4337 2007-01-24  Vladimir Prus  <[email protected]>
4338
4339         Refactor getting children name, value and type access 
4340         for varobjs in C++.
4341         * varobj.c (get_type_deref): Remove.
4342         (adjust_value_for_child_access): New.
4343         (c_number_of_children): Use the above.
4344         (c_describe_child): Likewise.
4345         (enum accessibility): New.
4346         (match_accessibility): New function.
4347         (cplus_describe_child): New function.
4348         (cplus_name_of_child, cplus_value_of_child)
4349         (cplus_type_of_child): Reimplement in terms
4350         of cplus_describe_child.
4351         (cplus_number_of_children): Use 
4352         adjust_value_for_child_access.
4353         
4354 2007-01-24  Vladimir Prus  <[email protected]>
4355
4356         Fix computation of the 'editable' attribute and
4357         value changeability for for references.
4358         * varobj.c (get_value_type): New function.
4359         (c_variable_editable): Use get_value_type.
4360         (varobj_value_is_changeable): Likewise.
4361                 
4362 2007-01-24  Joel Brobecker  <[email protected]>
4363
4364         * source.c (find_and_open_source): Try rewriting the source
4365         path inside filename if dirname is NULL.
4366
4367 2007-01-24  Joel Brobecker  <[email protected]>
4368
4369         * dwarf2read.c (add_partial_symbol): Create an extra partial
4370         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
4371         (new_symbol): Likewise for symbols.
4372
4373 2007-01-24  Nick Roberts  <[email protected]>
4374
4375         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
4376
4377 2007-01-23  Vladimir Prus  <[email protected]>
4378         
4379         * value.c (value_primitive_field): Copy the full 'location' 
4380         contents, instead of assuming that copying ADDRESS will 
4381         bring over everything in the union.  Remove obsolete comment.
4382         
4383 2007-01-23  Masaki Muranaka  <[email protected]>
4384
4385         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
4386         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
4387         (m32c_m16c_pointer_to_address): Separate code from declarations.
4388
4389 2007-01-23  Nick Hudson  <[email protected]>
4390
4391         * target.c (update_current_target): Correct typo.
4392
4393 2007-01-22  Masaki Muranaka  <[email protected]>
4394
4395         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
4396         declaration.
4397
4398 2007-01-11  Andrew Cagney  <[email protected]>
4399             Daniel Jacobowitz  <[email protected]>
4400             Jan Kratochvil  <[email protected]>
4401
4402         * dwarf2-frame.c (execute_cfa_program): New support of
4403         `DW_CFA_GNU_negative_offset_extended'.
4404
4405 2007-01-21  Daniel Jacobowitz  <[email protected]>
4406
4407         * NEWS: Mention flash support for "load" and new remote packets.
4408
4409 2007-01-21  Markus Deuling  <[email protected]>
4410
4411         * breakpoint.c (delete_command): Skip redundant loop iterations.
4412
4413 2007-01-21  Daniel Jacobowitz  <[email protected]>
4414
4415         * gdbarch.sh (register_type): Update comment.
4416         * gdbarch.h: Regenerated.
4417         * arch-utils.c (generic_register_size): Call register_type.
4418         * ia64-tdep.c (ia64_extract_return_value): Likewise.
4419         * m32c-tdep.c (check_for_saved): Likewise.
4420         * mips-tdep.c (mips_print_register, print_gp_register_row)
4421         (mips_print_registers_info): Likewise.
4422         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
4423         Likewise.
4424         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
4425         (sh64_do_register, sh64_print_register)
4426         (sh64_media_print_registers_info): Likewise.
4427         * tui/tui-regs.c (tui_register_format): Likewise.
4428
4429 2007-01-21  Daniel Jacobowitz  <[email protected]>
4430
4431         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
4432
4433         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
4434         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
4435         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
4436         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4437         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
4438         (make_symbol_completion_list): Likewise.
4439
4440 2007-01-21  Jan Kratochvil  <[email protected]>
4441             Daniel Jacobowitz  <[email protected]>
4442
4443         * buildsym.c (end_symtab): Use preallocated symtab if available.
4444         Fill in SYMBOL_SYMTAB.
4445         * buildsym.h (struct subfile): Add symtab member.
4446         * dwarf2read.c (struct dwarf2_cu): Add line_header.
4447         (struct file_entry): Add symtab.
4448         (free_cu_line_header): New function.
4449         (read_file_scope): Use it.  Save line_header in the cu.  Process
4450         lines before DIEs.
4451         (add_file_name): Initialize new symtab member.
4452         (dwarf_decode_lines): Create symtabs for included files.
4453         (new_symbol): Set SYMBOL_SYMTAB.
4454         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
4455         (search_symbols): Likewise.
4456         * symtab.h (struct symbol): Add symtab member.
4457         (SYMBOL_SYMTAB): Define.
4458
4459 2007-01-20  Daniel Jacobowitz  <[email protected]>
4460
4461         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
4462
4463 2007-01-20  Daniel Jacobowitz  <[email protected]>
4464
4465         * arch-utils.c (show_endian): Correct reversed condition.
4466
4467 2007-01-19  Jan Kratochvil  <[email protected]>
4468
4469         * MAINTAINERS (Write After Approval): Add myself.
4470
4471 2007-01-16  Daniel Jacobowitz  <[email protected]>
4472             Vladimir Prus  <[email protected]>
4473
4474         Fix 'selected frame' varobjs.
4475         * varobj.c (struct varobj): Remove the error field.
4476         (varobj_set_value): Don't check var->error.
4477         (install_new_value): Don't set var->error.
4478         (varobj_update): Always pass the new value
4479         of the root via install_new_value.
4480         (create_child): Don't set error field.
4481         (new_variable): Likewise.
4482         (c_value_of_root): Always reevaluate the value
4483         of selected frame varobjs in the selected frame.
4484         Don't call reinit_frame_cache.
4485
4486 2007-01-15  Joel Brobecker  <[email protected]>
4487
4488         * source.c (_initialize_source): Improve the help text of
4489         the substitute-path commands.
4490
4491 2007-01-14  Mark Kettenis  <[email protected]>
4492
4493         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
4494         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
4495         (frv_skip_prologue): Remove prototypes.
4496         (frv_adjust_breakpoint_address): Renamed from
4497         frv_gdbarch_adjust_breakpoint_address.
4498         (frv_gdbarch_init): Adjust.
4499
4500 2007-01-13  Mark Kettenis  <[email protected]>
4501
4502         * gdbarch.sh (deprecated_extract_return_value)
4503         (deprecated_store_return_value): Remove.
4504         (extract_return_value, store_return_value): Remove default values.
4505         * gdbarch.c, gdbarch.h: Regenerate.
4506         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
4507         (legacy_store_return_value): Remove.
4508         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
4509         Remove.
4510
4511         * mi/mi-main.c: Remove obsolete comment.
4512
4513         * regcache.c, regcache.h (deprecated_register_bytes)
4514         (deprecated_read_register_bytes)
4515         (deprecated_write_register_bytes): Remove.
4516
4517         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
4518         Don't forget to move destination pointer.
4519
4520 2007-01-01  Mark Kettenis  <[email protected]>
4521
4522         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
4523
4524 2007-01-11  Ulrich Weigand  <[email protected]>
4525
4526         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
4527         past entry function with recent newlib.
4528
4529 2007-01-11  Vladimir Prus  <[email protected]>
4530
4531         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
4532         introduction.  Specify -var-update more exactly.
4533
4534 2007-01-11  Daniel Jacobowitz  <[email protected]>
4535
4536         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
4537
4538 2007-01-10  Jim Blandy  <[email protected]>
4539
4540         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
4541         the Global Maintainers' invitation to be a global maintainer.
4542
4543 2007-01-10  Daniel Jacobowitz  <[email protected]>
4544
4545         * infrun.c (singlestep_pc): New variable.
4546         (resume): Set singlestep_pc.
4547         (context_switch): Add a debugging message.  Flush the frame cache.
4548         (handle_inferior_event): Add debugging messages.  Handle thread
4549         hops when a software single step has completed.  Let context_switch
4550         handle flushing the frame cache.
4551
4552 2007-01-09  Daniel Jacobowitz  <[email protected]>
4553
4554         * NEWS: Mention target descriptions, "set tdesc filename",
4555         "unset tdesc filename", "show tdesc filename", and
4556         qXfer:features:read.
4557         * arch-utils.c (choose_architecture_for_target): New function.
4558         (gdbarch_info_fill): Call it.
4559         * target-descriptions.c (struct property): Make members non-const.
4560         (struct target_desc): Add arch member.
4561         (target_description_filename): New variable.
4562         (target_find_description): Try via XML first.
4563         (tdesc_architecture): New.
4564         (free_target_description, make_cleanup_free_target_description): New.
4565         (set_tdesc_property): Call xstrdup.
4566         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4567         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4568         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4569         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4570         * target-descriptions.h (tdesc_architecture)
4571         (make_cleanup_free_target_description, set_tdesc_architecture): New
4572         prototypes.
4573         * Makefile.in (SFILES): Add xml-tdesc.c.
4574         (COMMON_OBS): Add xml-tdesc.o.
4575         (target-descriptions.o): Update.
4576         (xml-tdesc.o): New rule.
4577         * xml-tdesc.c, xml-tdesc.h: New files.
4578         * remote.c (PACKET_qXfer_features): New enum.
4579         (remote_protocol_features): Add qXfer:features:read.
4580         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4581         (_initialize_remote): Register qXfer:features:read.
4582         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4583         * features/gdb-target.dtd: New file.
4584
4585 2007-01-09  Daniel Jacobowitz  <[email protected]>
4586
4587         * copyright.sh: Clarify error.
4588
4589 2007-01-09  Jan Kratochvil  <[email protected]>
4590
4591         * symtab.c (matching_bfd_sections): Fix VMA matching for
4592         prelinked objects.
4593
4594 2007-01-09  Jan Kratochvil  <[email protected]>
4595
4596         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4597         nested symbols.
4598
4599 2007-01-09  Daniel Jacobowitz  <[email protected]>
4600
4601         Updated copyright notices for most files.
4602
4603 2007-01-09  Daniel Jacobowitz  <[email protected]>
4604
4605         * copyright.sh (prunes): Add step-line.inp and step-line.c.
4606
4607 2007-01-09  Daniel Jacobowitz  <[email protected]>
4608
4609         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4610         exec_prefix.
4611         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4612         '${prefix}'.
4613         * configure, config.in: Regenerate.
4614         * defs.h (debug_file_directory): Declare.
4615         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
4616         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
4617         relocate it if DEBUGDIR_RELOCATABLE.
4618         * symfile.c (debug_file_directory): Make non-static.
4619         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4620         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4621         (_initialize_symfile): Don't initialize debug_file_directory here.
4622
4623 2007-01-09  Jim Blandy  <[email protected]>
4624
4625         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4626         statements.
4627
4628 2007-01-09  Daniel Jacobowitz  <[email protected]>
4629
4630         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4631         frame_unwind_register to recurse.
4632         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4633         (alpha_heuristic_frame_prev_register): Likewise.
4634         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4635         * m32c-tdep.c (m32c_prev_register): Likewise.
4636         * frame.c (frame_register_unwind_location): Remove FIXME.
4637
4638 2007-01-09  Daniel Jacobowitz  <[email protected]>
4639             Eli Zaretskii  <[email protected]>
4640
4641         * copyright.sh: New file.
4642
4643 2007-01-09  Daniel Jacobowitz  <[email protected]>
4644
4645         * configure.ac: Check for XML_StopParser.
4646         * xml-support.c (gdb_xml_body_text): Check for an error.
4647         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4648         (gdb_xml_end_element_wrapper): Likewise.
4649         * config.in, configure: Regenerated.
4650
4651 2007-01-08  Daniel Jacobowitz  <[email protected]>
4652
4653         * varobj.c (install_new_value): Always update print_value.
4654         (value_get_print_value): Immediately return NULL for missing
4655         values.
4656
4657 2007-01-08  Jim Blandy  <[email protected]>
4658
4659         * configure.ac: Tighten pattern for extracting value of
4660         DEPRECATED_TM_FILE from the target makefile fragment.
4661         * configure: Regenerated.
4662
4663 2007-01-08  Daniel Jacobowitz  <[email protected]>
4664
4665         * linux-nat.c (struct simple_pid_list): Add status.
4666         (add_to_pid_list): Record the PID's status.
4667         (linux_record_stopped_pid): Likewise.  Make static.
4668         (pull_pid_from_list): Return the saved status.
4669         (linux_nat_handle_extended): Deleted.
4670         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4671         Make static.  Handle non-SIGSTOP for a new thread's first signal.
4672         (flush_callback): Handle unexpected pending signals.
4673         (linux_nat_wait): Update calls to changed functions.
4674         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4675         Remove prototypes for newly static functions.
4676
4677 2007-01-08  Ulrich Weigand  <[email protected]>
4678
4679         * gdbarch.sh (value_from_register): New gdbarch function.
4680         * gdbarch.c, gdbarch.h: Regenerate.
4681         * findvar.c (default_value_from_register): New function.
4682         (value_from_register): Use gdbarch_value_from_register.
4683         * value.h (default_value_from_register): Declare.
4684         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4685         spu_value_to_register): Remove.
4686         (spu_value_from_register): New function.
4687         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4688         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4689         Call set_gdbarch_value_from_register.
4690         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4691         s390_value_to_register): Remove.
4692         (s390_value_from_register): New function.
4693         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4694         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4695         Call set_gdbarch_value_from_register.
4696
4697 2007-01-08  Daniel Jacobowitz  <[email protected]>
4698
4699         * NEWS: Add "set sysroot" and "show sysroot".
4700         * solib.c (solib_absolute_prefix): Delete.  Replace
4701         all uses with gdb_sysroot.
4702         (_initialize_solib): Add "set sysroot" and "show sysroot".
4703         Make "solib-absolute-prefix" an alias to it.
4704
4705 2007-01-08  Ulrich Weigand  <[email protected]>
4706
4707         * frame.c (get_frame_register_bytes): New function.
4708         (put_frame_register_bytes): Likewise.
4709         * frame.h (get_frame_register_bytes): Declare.
4710         (put_frame_register_bytes): Likewise.
4711         * findvar.c (value_from_register): Always construct lval_register
4712         values.  Use get_frame_register_bytes.
4713         * valops.c (value_assign): Use get_frame_register_bytes and
4714         put_frame_register_bytes.
4715
4716 2007-01-08  Jim Blandy  <[email protected]>
4717
4718         * MAINTAINERS: Update Stan Shebs' email address.
4719
4720 2007-01-07  Joel Brobecker  <[email protected]>
4721
4722         * ada-lang.c (is_known_support_routine): Improve the implementation.
4723
4724 2007-01-06  Joel Brobecker  <[email protected]>
4725
4726         * ada-lang.c: Add include of source.h.
4727         (is_known_support_routine): Improve the check verifying that the file
4728         associated to this frame exists.
4729         * Makefile.in (ada-lang.o): Add dependency on source.h.
4730
4731 2007-01-07  Jim Blandy  <[email protected]>
4732
4733         * ax-general.c (ax_const_l): Select proper opcode for the given
4734         value.
4735
4736 2007-01-05  Vladimir Prus  <[email protected]>
4737
4738         * varobj.c (c_value_of_root): Don't select frame if variable
4739         object is out of scope.
4740
4741 2007-01-05  Nick Roberts  <[email protected]>
4742
4743         * varobj.c (struct varobj): New member print_value.
4744         (install_new_value): Compare last printed value with current one
4745         instead of contents.
4746         (new_variable): Initialize var->print_value to NULL.
4747         (free_variable): Free var->print_value.
4748         (value_get_print_value): New function derived from
4749         c_value_of_variable.
4750         (c_value_of_variable): Use value_get_print_value.
4751
4752 2007-01-05  Joel Brobecker  <[email protected]>
4753
4754         * i386-tdep.c (i386_analyze_stack_align): Add comment.
4755
4756 2007-01-05  Joel Brobecker  <[email protected]>
4757
4758         * NEWS: Add entries for new catch commands.
4759
4760 2007-01-05  Joel Brobecker  <[email protected]>
4761
4762         * dwarf2read.c (partial_die_info): Add field has_byte_size.
4763         (add_partial_symbol): Correct identification of external references.
4764         (process_structure_scope): Likewise.
4765         (read_partial_die): Handle DW_AT_byte_size attribute.
4766
4767 2007-01-05  Daniel Jacobowitz  <[email protected]>
4768
4769         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
4770
4771 2007-01-05  Nick Roberts  <[email protected]>
4772
4773         * varobj.c (get_type_deref): Fix variable objects for references to
4774         pointers.
4775
4776 2007-01-04  Daniel Jacobowitz  <[email protected]>
4777
4778         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
4779         with no symbols.
4780
4781 2007-01-04  Daniel Jacobowitz  <[email protected]>
4782
4783         * memory-map.c (struct_memory_map_parsing_data): Remove most
4784         members.  Make property_name an array.
4785         (free_memory_map_parsing_data, memory_map_start_element)
4786         (memory_map_end_element, memory_map_character_data): Delete.
4787         (memory_map_start_memory, memory_map_end_memory)
4788         (memory_map_start_property, memory_map_end_property): New functions.
4789         (property_attributes, memory_children, memory_type_enum)
4790         (memory_attributes, memory_map_children, memory_map_elements): New.
4791         (parse_memory_map): Rewrite.
4792         * xml-support.c (debug_xml): New.
4793         (xml_get_required_attribute, xml_get_integer_attribute)
4794         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
4795         Delete.
4796         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
4797         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
4798         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
4799         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
4800         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
4801         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
4802         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
4803         New.
4804         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
4805         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
4806         (enum gdb_xml_element_flag, struct gdb_xml_element)
4807         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
4808         (struct gdb_xml_enum): New.
4809         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
4810         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
4811         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
4812         (xml_get_required_attribute, xml_get_integer_attribute)
4813         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
4814         * Makefile.in (xml_support_h, xml-support.o): Update.
4815
4816 2007-01-04  Daniel Jacobowitz  <[email protected]>
4817
4818         * Makefile.in (eval.o): Update dependencies.
4819         * eval.c: Include "ui-out.h" and "exceptions.h".
4820         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
4821         Use value_zero if an error occurs when avoiding side effects.
4822         * varobj.c (c_value_of_root): Initialize new_val.
4823
4824 2007-01-04  Daniel Jacobowitz  <[email protected]>
4825
4826         * varobj.c (varobj_list_children): Stop if the number of children is
4827         unknown.
4828         (c_number_of_children):
4829
4830 2007-01-04  Mark Kettenis  <[email protected]>
4831
4832         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
4833         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
4834         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
4835         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
4836         sizeof, instead of hardcoded constants.
4837
4838 2007-01-04  Daniel Jacobowitz  <[email protected]>
4839
4840         * CONTRIBUTE: Use sourceware.org.
4841
4842 2007-01-04  Daniel Jacobowitz  <[email protected]>
4843
4844         * buildsym.c (start_subfile): Handle producer.
4845         (record_producer): New function.
4846         * buildsym.h (struct subfile): Include producer.
4847         (record_producer): New prototype.
4848         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
4849         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
4850         armcc_cfa_offsets_reversed.
4851         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
4852         (dwarf2_frame_find_quirks): New function.
4853         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
4854         (decode_frame_entry_1): Record the CIE version.  Record the
4855         augmentation.  Skip armcc augmentations.
4856         * dwarf2read.c (read_file_scope): Save the producer.
4857         * symtab.h (struct symtab): Rename unused version member to
4858         producer.
4859
4860 2007-01-04  Daniel Jacobowitz  <[email protected]>
4861
4862         * configure.ac (build_warnings): Use -Wall and
4863         -Wdeclaration-after-statement.
4864         * configure: Regenerated.
4865
4866 2007-01-04  Vladimir Prus  <[email protected]>
4867
4868         Simplify access to variours properties of child
4869         variable objects in C.
4870         * varobj.c (value_struct_element_index): New function.
4871         (c_describe_child): New function.
4872         (c_name_of_child, c_value_of_child)
4873         (c_type_of_child): Rewrite to use c_describe_child.
4874
4875 2007-01-04  Vladimir Prus  <[email protected]>
4876
4877         gdb/
4878         * varobj.c: Include "vec.h". 
4879         (varobj_p): New typedef, declare vector of those.
4880         (struct varobj): Use vector for the 'children' member.
4881         (child_exists): Remove.
4882         (save_child_in_parent): Remove.
4883         (remove_child_from_parent): Remove.
4884         (struct varobj_child): Remove.
4885         (struct vstack): Remove.
4886         (vpush, vpop): Remove.
4887         (varobj_list_children): Adjust to work work vector.
4888         (varobj_update): Likewise. Use vectors for
4889         working stack and result.
4890         (delete_variable_1): Likewise.
4891         * Makefile.in (varobj.o): Update dependencies.
4892
4893 2007-01-04  Vladimir Prus  <[email protected]>
4894
4895         Port from Apple's version.
4896         gdb/
4897         * varobj.c (type_changeable): Rename to...
4898         (varobj_value_is_changeable_p): ...this. Adjust all callers.
4899         (is_root_p): New function. Use it everywhere.
4900
4901 2007-01-04  Jim Blandy  <[email protected]>
4902
4903         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
4904         then plain 'fixup'.
4905
4906 2007-01-04  Joel Brobecker  <[email protected]>
4907
4908         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
4909
4910 2007-01-04  Joel Brobecker  <[email protected]>
4911
4912         * hpread.c (hpread_type_lookup): Fix compilation failure.
4913
4914 2007-01-04  Qinwei  <[email protected]>
4915
4916         * NEWS: New port to S+core.
4917         * MAINTAINERS (Write After Approval, Responsible Maintainers):
4918         Add myself.
4919
4920         * Makefile.in: Add dependencies for S+core files.
4921         * configure.tgt (score*, score-*-*): Add S+core target.
4922         * config/score/embed.mt: New file.
4923         * score-tdep.c: New file.
4924         * score-tdep.h: New file.
4925
4926 2007-01-04  Joel Brobecker  <[email protected]>
4927
4928         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
4929         the appropriate type rather than a bogus void type.
4930
4931 2007-01-04  Joel Brobecker  <[email protected]>
4932
4933         * ada-lang.h (ada_find_printable_frame): Remove.
4934         (ada_exception_catchpoint_p, ada_decode_exception_location)
4935         (ada_decode_assert_location): Add declaration.
4936         * ada-lang.c: Add include of annotate.h and valprint.h.
4937         (exception_catchpoint_kind): New enum.
4938         (function_name_from_pc, is_known_support_routine)
4939         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
4940         (ada_exception_name_addr_1, ada_exception_name_addr)
4941         (print_it_exception, print_one_exception, print_mention_exception)
4942         (print_it_catch_exception, print_one_catch_exception)
4943         (print_mention_catch_exception, catch_exception_breakpoint_ops)
4944         (print_it_catch_exception_unhandled)
4945         (print_one_catch_exception_unhandled)
4946         (print_mention_catch_exception_unhandled, print_it_catch_assert)
4947         (print_one_catch_assert, print_mention_catch_assert)
4948         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
4949         (ada_get_next_arg, catch_ada_exception_command_split)
4950         (ada_exception_sym_name, ada_exception_sym_name)
4951         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
4952         (ada_parse_catchpoint_condition, ada_exception_sal)
4953         (ada_decode_exception_location)
4954         (ada_decode_assert_location): New function.
4955         (catch_exception_unhandled_breakpoint_ops): New global variable.
4956         (catch_assert_breakpoint_ops): New global variable.
4957         * breakpoint.c: Add include of ada-lang.h.
4958         (print_one_breakpoint): Do not print the condition for Ada
4959         exception catchpoints.
4960         (create_ada_exception_breakpoint): New function.
4961         (catch_ada_exception_command, catch_assert_command): New function.
4962         (catch_command_1): Add support for the new "catch exception" and
4963         "catch assert" commands.
4964         (_initialize_breakpoint): Add help description for the new catch
4965         commands.
4966         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
4967         valprint.h.
4968         (breakpoint.o): Add dependency on ada-lang.h.
4969
4970 2007-01-03  Pedro Alves  <[email protected]>
4971
4972         * coffread.c (cs_to_section): If bfd_section is found, always
4973         return its section index.
4974         (coff_symtab_read): Determine the minimal_symbol_type using the
4975         bfd_section flags.
4976
4977 2007-01-03  Jan Kratochvil  <[email protected]>
4978             Daniel Jacobowitz  <[email protected]>
4979
4980         * Makefile.in (top.o): Update.
4981         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
4982         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
4983         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
4984         New.
4985         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
4986
4987 2007-01-03  Mark Kettenis  <[email protected]>
4988
4989         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
4990         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
4991
4992 2007-01-03  Daniel Jacobowitz  <[email protected]>
4993
4994         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
4995         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
4996         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
4997         greater than or equal to zero.
4998         * m2-typeprint.c (m2_array): Likewise.
4999         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5000         * gdbtypes.c (copy_type_recursive): Correct == typo.
5001         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5002         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5003         greater than zero.
5004         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5005         (default_macro_scope): Remove unused variable.
5006         * prologue-value.h (pv_area_find_reg): Don't name an argument
5007         "register".
5008         * remote-fileio.c (remote_fio_func_map): Add missing braces.
5009         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5010         type.
5011         (cleanup_sigint_signal_handler): Remove casts.
5012         * valprint.c (val_print): Use a volatile local for the modified
5013         argument.
5014         * varobj.c (languages): Remove extra array dimension.
5015         (varobj_create): Correct access to languages array.
5016         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5017         missing braces.
5018         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5019         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5020         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5021         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5022         (mi_cmd_data_write_memory): Likewise.
5023         * signals/signals.c (target_signal_to_string): Cast to int before
5024         comparing.
5025         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5026         Update all callers.
5027
5028 2007-01-03  Daniel Jacobowitz  <[email protected]>
5029
5030         * NEWS: Mention pointer to member improvements.
5031         * Makefile.in (gnu-v3-abi.o): Delete special rule.
5032         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5033         * ada-valprint.c (ada_print_scalar): Update for new type codes.
5034         * c-typeprint.c (c_print_type): Update for new type codes.
5035         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5036         (c_type_print_base): Likewise.
5037         (c_type_print_args): Rewrite.
5038         * c-valprint.c (c_val_print): Update for new type codes.  Remove
5039         support for references to members.  Treat methods like functions.
5040         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5041         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5042         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5043         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5044         (struct cp_abi_ops): Add corresponding members.
5045         * cp-valprint.c (cp_print_class_method): Delete.
5046         (cp_find_class_member): New function.
5047         (cp_print_class_member): Use it.  Simplify support for bogus
5048         member pointers.
5049         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5050         lookup_methodptr_type.
5051         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5052         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5053         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
5054         pointer support.
5055         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
5056         references returned by user defined operators.
5057         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5058         (f_type_print_varspec_suffix): Remove support for member pointers.
5059         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5060         and adjusted.
5061         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5062         (lookup_methodptr_type): New.
5063         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5064         (recursive_dump_type): Update for new types.
5065         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5066         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5067         (lookup_memberptr_type, lookup_methodptr_type)
5068         (smash_to_memberptr_type): New prototypes.
5069         (smash_to_method_type): Formatting fix.
5070         (lookup_member_type, smash_to_member_type): Delete prototypes.
5071         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5072         Do not rely on debug information for the vptr or the method's
5073         enclosing type.  Handle function descriptors for IA64.
5074         (gnuv3_virtual_fn_field): Rewrite using the new functions.
5075         (gnuv3_find_method_in, gnuv3_print_method_ptr)
5076         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5077         (gnuv3_method_ptr_to_value): New.
5078         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5079         * hpread.c (hpread_type_lookup): Update for new types.
5080         * infcall.c (value_arg_coerce): Likewise.
5081         * m2-typeprint.c (m2_print_type): Remove explicit support
5082         for member pointers.
5083         * m2-valprint.c (m2_val_print): Likewise.
5084         * p-typeprint.c (pascal_type_print_varspec_prefix)
5085         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5086         * p-valprint.c (pascal_val_print): Likewise.
5087         (pascal_object_print_class_method, pascal_object_print_class_member):
5088         Delete.
5089         * p-lang.h (pascal_object_print_class_method)
5090         (pascal_object_print_class_member): Delete prototypes.
5091         * stabsread.c (read_type): Update for new types.
5092         * typeprint.c (print_type_scalar): Likewise.
5093         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5094         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5095         argument.  Construct a pointer to member if the address of a
5096         function or data member is requested.
5097         (value_cast_pointers): Don't modify the input value.
5098         (value_cast): Adjust pointer to member handling for new types.
5099         Allow null pointer to member constants.  Don't modify the input
5100         value.
5101         (value_ind): Remove pointer to member check.  Handle function
5102         descriptors for function pointers.
5103         (value_struct_elt, value_find_oload_method_list, check_field):
5104         Remove pointer to member checks.
5105         * value.c (unpack_long): Allow pointers to data members.
5106         (value_from_longest): Allow member pointers.
5107         * value.h (value_aggregate_elt): Add want_address.
5108         * varobj.c (c_variable_editable): Remove check for members.
5109         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5110         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5111         in virtual tables.
5112         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5113         * c-lang.h (cp_print_class_method): Delete prototype.
5114         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5115         * mips-tdep.c (mips_gdbarch_init): Likewise.
5116         * gdbarch.c, gdbarch.h: Regenerated.
5117
5118 2007-01-01  Mark Kettenis  <[email protected]>
5119
5120         * rs6000-tdep.c (rs6000_use_struct_convention)
5121         (rs6000_extract_return_value, rs6000_store_return_value)
5122         (rs6000_extract_struct_value_address): Remove.
5123         (rs6000_return_value): New function.
5124         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5125         store_return_value, deprecated_extract_struct_value_address and
5126         deprecated_use_struct_convention.  Use rs6000_return_value
5127         instead.
5128
5129 2007-01-02  Nick Roberts  <[email protected]>
5130
5131         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5132         -display-disable, -display-enable, -display-insert and
5133         -display-list.
5134
5135 2007-01-01  Joel Brobecker  <[email protected]>
5136
5137         * breakpoint.c (remove_breakpoint): Remove dead code.
5138
5139 2007-01-01  Nick Roberts  <[email protected]>
5140
5141         * varobj.c: Include block.h.
5142         (c_value_of_root): Check scope within nested statements.
5143
5144 2007-01-01  Mark Kettenis  <[email protected]>
5145
5146         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5147         regcache_cooked_write_signed instead of
5148         deprecated_write_register_bytes.
5149
5150 2007-01-01  Joel Brobecker  <[email protected]>
5151
5152         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5153
5154 2007-01-01  Joel Brobecker  <[email protected]>
5155
5156         Followed the Start of New Year Procedure:
5157         * ChangeLog-2006: New file, containing all the entries for 2006.
5158         * ChangeLog: Removed all 2006 entries, and changed the reference
5159         to the previous ChangeLog to point to ChangeLog 2006.
5160         * top.c (print_gdb_version): Update copyright year.
5161
5162 2007-01-01  Mark Kettenis  <[email protected]>
5163
5164         * Makefile.in (remote-sds.o): Remove.
5165         * remote-sds.c: Delete.
5166
5167 For older changes see ChangeLog-2006.
5168 \f
5169 Local Variables:
5170 mode: change-log
5171 left-margin: 8
5172 fill-column: 74
5173 version-control: never
5174 End:
This page took 0.315935 seconds and 4 git commands to generate.