* gdb/remote.c (remote_insert_watchpoint): Return -1, rather than
[external/binutils.git] / ChangeLog.csl
1 2006-06-05  Nathan Sidwell  <nathan@codesourcery.com>
2
3         * gdb/remote.c (remote_insert_watchpoint): Return -1, rather than
4         fatal error if packet is disabled.
5         (remote_remove_watchpoint, remote_insert_hw_breakpoint,
6         remote_remove_hw_breakpoint): Likewise.
7         Revert my 2006-06-01  Nathan Sidwell  <nathan@codesourcery.com>
8         change to breakpoint.c
9
10         * gdb/testsuite/gdb.asm/m68k.inc (gdbasm_call): Use jsr.
11         * gdb/testsuite/gdb.base/fileio.c (stop): New.  Call it everywhere
12         the debugger should stop.
13         * gdb/testsuite/gdb.base/fileio.exp: Add breakpoint to stop
14         routine and adjust.
15         * gdb/testsuite/gdb.base/charset.exp: Specify source file for
16         breakpoint address.
17
18         * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Remove.
19         (REGISTER_BYTES_FP): Use tdep->fpreg_type.
20         (m68k_register_bytes_ok): adjust.
21         (m68k_register_type): Use tdep->fpreg_type.
22         (m68k_register_to_value, m68k_value_to_register): Likewise.
23         (m68k_svr4_extract_return_value): Use tdep->float_return &
24         tdep->fpreg_type.
25         (m68k_svr4_store_return_value): Likewise.
26         (m68k_gdbarch_init): Set tdep->float_return & tdep->fpreg_type.
27         * gdb/m68k-tdep.h (struct gdbarch_tdep): Add floar_return &
28         fpreg_type fields.
29         * gdb/m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use tdep->fpreg_type.
30
31         * gdb/m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
32         (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
33         conversion. Use M68K_NUM_REGS for number of regs.
34
35         * gdb/configure.tgt (gdb_osabi): uclinux is like linux.
36         * gdb/m68k-tdep.c (m68k_svr4_extract_return_value): Return value
37         is never in %a0.
38         (m68k_reg_struct_return_p): Duplicate gcc's struct mode algorithm.
39         (m68k_svr4_return_value) Use VALUE_STRUCT_CONVENTION.  do not rely
40         on %a0.
41         (m68k_push_dummy_call): Force stack alignment.
42         (m68k_svr4_init_abi): Set struct_return convention.
43         (m68k_aout_init_abi): New.
44         (m68k_gdbarch_init): Default to bare elf ABI that gcc provides.
45         * gdb/m68k-tdep.h (m68k_aout_init_abi): Declare.
46         * gdb/m68kbsd-tdep.c (m68kbsd_aout_init_abi): Use m68k_aout_init_abi.
47         (m68kbsd_elf_init_abi): Add comment.
48         * gdb/m68klinux-tdep.c (m68k_linux_init_abi): Just set the struct
49         pointer register here.
50
51 2006-06-01  Nathan Sidwell  <nathan@codesourcery.com>
52
53         * gdb/breakpoint.c (insert_bp_location): Remember the failing
54         watchpoint address and pass to remove_breakpoint.
55         (remove_breakpoints, remove_hw_watchpoints, reattach_breakpoints,
56         detach_breakpoints): Adjust remove_breakpoint call.
57         (remove_breakpoint): Add VAL_FAILED parameter.  Stop removing
58         watchpoint addresses when it is reached.
59         (delete_breakpoint): Adjust remove_breakpoint call.
60
61 2006-05-24  Nathan Sidwell  <nathan@codesourcery.com>
62
63         * gdb/remote-fileio.c (remote_fileio_reset): New.
64         * gdb/remote-fileio.h (remote_fileio_reset): Prototype.
65         * gdb/remote.c (extended_remote_restart, remote_open_1): Call it.
66
67 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
68
69         opcodes/
70         * m68k-dis.c (m68k_scan_mask): Add missing return.
71
72 2006-05-08  Richard Sandiford  <richard@codesourcery.com>
73
74         include/opcodes/
75         * m68k.h (mcf_mask): Define.
76
77         opcodes/
78         * m68k-opc.c (m68k_opcodes): Fix the masks of the Coldfire fmovemd
79         and fmovem entries.  Put register list entries before immediate
80         mask entries.  Use "l" rather than "L" in the fmovem entries.
81         * m68k-dis.c (match_insn_m68k): Remove the PRIV argument and work it
82         out from INFO.
83         (m68k_scan_mask): New function, split out from...
84         (print_insn_m68k): ...here.  If no architecture has been set,
85         first try printing an m680x0 instruction, then try a Coldfire one.
86
87 2006-05-03  Paul Brook  <paul@codesourcery.com>
88         Daniel Jacobowitz  <dan@codesourcery.com>
89
90         * gdb/testsuite/gdb.cp/gdb1355.exp: Accept different spellings of
91         integer types.
92         * gdb/testsuite/gdb.cp/gdb1355.cc: Ensure all types are referenced.
93         * gdb/testsuite/gdb.cp/hang2.C: Ditto.
94         * gdb/testsuite/gdb.cp/m-data.cc: Ditto.
95         * gdb/testsuite/gdb.cp/hang3.C: Ditto.
96         * gdb/testsuite/gdb.cp/hang1.C: Ditto.
97
98         * gdb/gdbtypes.c (rank_one_type): Check for plain char -> signed/
99         unsigned char.
100
101         * gdb/testsuite/gdb.base/completion.exp: Accept "long" as a type.
102
103         * gdb/testsuite/gdb.base/volatile.exp: Accept different spellings of
104         integer types.
105         * gdb/testsuite/gdb.base/constvars.c: Ensure all types are referenced.
106
107         * gdb/testsuite/gdb.stabs/weird.exp: Return -1 instead of issuing
108         error.
109
110         * gdb/testsuite/gdb.base/advance.c: Add proper function prototype.
111
112         * gdb/testsuite/gdb.base/ending-run.exp: Add case for ARM runtime.
113
114         * gdb/testsuite/gdb.base/gdb1821.c: Ensure all types are referenced.
115
116         * gdb/testsuite/gdb.base/ptype.exp: Accept different spellings of
117         integer types.
118
119         * gdb/testsuite/gdb.cp/inherit.exp: Cope with armcc vtable pointers.
120
121         * gdb/testsuite/gdb.mi/mi2-var-child.exp: Accept different spellings
122         of integer types.
123         * gdb/testsuite/gdb.mi/mi-var-display.exp: Ditto.
124         * gdb/testsuite/gdb.mi/mi2-var-display.exp: Ditto.
125         * gdb/testsuite/gdb.mi/mi2-var-cmd.exp: Ditto.
126
127 2006-05-03  Paul Brook  <paul@codesourcery.com>
128
129         * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
130
131 2006-05-03  Paul Brook  <paul@codesourcery.com>
132         Daniel Jacobowitz  <dan@codesourcery.com>
133
134         * gdb/c-valprint.c: Handle class member typedefs.
135
136         * gdb/symtab.c (skip_prologue_using_sal): Treat two consecutive lines
137         at the same address as a prolouge marker.
138         * gdb/arm-tdep.c (arm_skip_prologue): Use skip_prologue_using_sal.
139
140         * gdb/dwarf2expr.c (execute_stack_op): Check for bogus DW_OP_reg.
141
142         * gdb/dwarf2read.c (read_structure_type): Use tag name for C++/Java
143         classes.
144
145         * Makefile.in (eval.o): Update dependencies.
146         * eval.c: Include "ui-out.h" and "exceptions.h".
147         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
148         Use value_zero if an error occurs when avoiding side effects.
149         * varobj.c (varobj_create): Call release_value after evaluate_type.
150         (c_value_of_root): Initialize new_val.  Don't release_value a NULL
151         value.
152
153         * gdb/c-typeprint.c (cp_type_print_method_args): Don't print type
154         details.
155
156         * gdb/dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
157         function.
158         (dwarf_decode_lines): Check for line info without a file.
159
160 2006-05-03  Paul Brook  <paul@codesourcery.com>
161         Daniel Jacobowitz  <dan@codesourcery.com>
162
163         * gdb/dwarf2read.c (read_subroutine_type): Add armcc workaround.
164
165         * gdb/dwarf2read.c (read_structure_type): Look for ADS vtable
166         pointers.
167
168         * gdb/dwarf2read.c (dwarf_decode_lines): Don't set dir for absolute
169         paths.
170         (dwarf_decode_lines): Ditto.
171         (dwarf2_start_subfile): Split absolute filenames into path+file.
172
173         * gdb/symtab.h (struct symbol): Add is_argument.
174         (SYMBOL_IS_ARGUMENT): Define.
175         * gdb/stack.c (print_frame_args): Use SYMBOL_IS_ARGUMENT.
176         (print_frame_arg_vars): Ditto.
177         * gdb/dwarf2read.c (new_symbol): Set SYMBOL_IS_ARGUMENT.
178         (new_symbol): Mark optimized out arguments.
179
180         * gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
181
182         * gdb/dwarf2read.c (read_unspecified_type): New function.
183         (read_type_die): Handle DW_TAG_unspecified_type.
184
185 2006-05-03  Paul Brook  <paul@codesourcery.com>
186         Daniel Jacobowitz  <dan@codesourcery.com>
187
188         * gdb/dwarf2read.c (field_info): Add baseclasses.
189         (dwarf2_add_field): Check base classes.
190         (dwarf2_attach_fields_to_type): Ditto.
191         
192         * gdb/gnu-v3-abi.c (gnuv3_rtti_type): Check for NULL base_type.
193         (gnuv3_virtual_fn_field): Handle missing base.
194         (gnuv3_baseclass_offset): Handle missing vptr.
195         * gdb/varobj.c (cplus_class_num_children): Call fill_in_vptr_fieldno.
196         (cplus_name_of_child): Ditto.
197         * gdb/eval.c (evaluate_subexp_standard): Ditto.
198         * gdb/dwarf2read.c (read_structure_type): Search for vtable pointer
199         by name in objects built by ARM compiler.
200         
201         * gdb/dwarf2read.c (dwarf2_add_member_fn): Calculate virtual function
202         offset for classes without DW_AT_containing_type.
203
204 2006-04-28  Mark Mitchell  <mark@codesourcery.com>
205
206         * gdb/mt-tdep.c (mt_register_name): Correct out-of-range logic to
207         include additional registers. 
208
209 2006-04-28  Richard Sandiford  <richard@codesourcery.com>
210
211         * gdb/gdbserver/configure.srv (m68k*-*-linux*): Use reg-cf.o.
212
213 2006-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
214
215         * gdb/doc/gdb.texinfo (Remote configuration): Mention "set remote
216         load-offsets".
217         (General Query Packets): Document qPartInfo.
218
219 2006-04-18  Mark Mitchell  <mark@codesourcery.com>
220
221         Issue #655
222         * gdb/mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
223         Iscramb2, Qscramb2, Qchannel2.
224         (mt_register_name): Likewise.
225         (mt_copro_register_type): Describe ZI2 and ZQ2.
226         
227 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
228
229         Issue #658
230         * gdb/mt-tdep.c (mt_gdb_regnums): Define
231         MT_COPRO_PSEUDOREG_MAC_REGNUM.
232         (mt_register_name): Use it.
233         (mt_copro_register_type): Likewise.
234         (mt_register_type): Likewise.
235         (mt_pseudo_register_read): Likewise.  Read the MAC register, not
236         the coprocessor register.
237         (mt_pseudo_register_write): Likewise.
238
239 2006-04-11  Daniel Jacobowitz  <dan@codesourcery.com>
240
241         * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
242         mapping symbols.
243
244 2006-04-11  Daniel Jacobowitz  <dan@codesourcery.com>
245
246         Backport:
247         2006-03-09  Paul Brook  <paul@codesourcery.com>
248         * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
249         mapping symbols.
250
251 2006-04-02  Daniel Jacobowitz  <dan@codesourcery.com>
252
253         * Makefile.def (host_modules, dependencies): Add expat.
254         * configure.in (host_libs): Add expat.
255         * Makefile.in, configure: Regenerate.
256         * expat: New directory.
257
258         * gdb/Makefile.in: Add expat, new files, and xml-builtin.c.  Update
259         dependencies.
260         * gdb/acinclude.m4: Include stdint.m4.
261         * gdb/configure.ac: Use AC_C_BIGENDIAN and GCC_HEADER_STDINT.
262         * gdb/aclocal.m4, gdb/config.in, gdb/configure: Regenerate.
263
264         * gdb/auxv.h: Remove target_auxv_read prototype.
265         * gdb/auxv.c, gdb/avr-tdep.c, gdb/ia64-tdep.c, gdb/linux-nat.c,
266         gdb/procfs.c: Use target_read_whole.
267         * gdb/sparc-tdep.c: Use target_read.
268
269         * gdb/frame.c: Work around null frame_id handling.
270
271         * gdb/breakpoint.c, gdb/f-valprint.c, gdb/infcmd.c, gdb/inflow.c,
272         gdb/infrun.c, gdb/stack.c, gdb/valops.c, gdb/varobj.c,
273         gdb/cli-cmds.c, gdb/testsuite/gdb.base/default.exp,
274         gdb/tui/tui-disasm.c, gdb/tui/tui-source.c,
275         gdb/tui/tui-winsource.c: Selected frame fixups.
276
277         * gdb/README.AVAIL, gdb/available.c, gdb/available.h,
278         gdb/parse-avail.c, gdb/sha1.c, gdb/features/feature_to_c.sh,
279         gdb/features/gdb-target.dtd: New files.
280         * gdb/arm-tdep.c: Handle missing FPA, present VFP, and
281         self-described registers.  Decode VFP register numbers from DWARF.
282         * gdb/arm-tdep.h: Add flags for VFP and FPA.
283         * gdb/gdbarch.sh: Add available_features_support and feature_set.
284         Export the arch's obstack.  Check feature sets.  Improve error
285         handling.
286         * gdb/gdbarch.c, gdb/gdbarch.h: Regenerated.
287         * gdb/infcmd.c: Trigger architecture selection.
288         * gdb/remote.c: Available feature support.  qPacketInfo support.
289         Improved g/G packet support.  Improved qPart support.
290         qPart:features support.
291         * gdb/symfile.c: Adjust download_write_size.
292         * gdb/target.c: Revise partial transfer support.  Handle available
293         features method.  Add target_read_whole.
294         * gdb/target.h: Add the available features object and methods.
295         * gdb/doc/gdb.texinfo: Document new features.
296
297         * gdb/symfile.h: Include symtab.h.
298
299 2006-03-31  Nathan Sidwell  <nathan@codesourcery.com>
300
301         * gdb/config/m68k/monitor.mt (TDEPFILES): Remove unneeded
302         monitors.
303         (DEPRECATED_TM_FILE): Remove.
304
305         * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Define.
306         (REGISTER_BYTES_FP): Use it.
307
308         * gdb/configure.tgt (m68k-*-uclinux*): target is linux.
309
310         * gdb/remote.c (remote_fetch_registers): Revert bogus change.
311
312         * gdb/remote.c (remote_fetch_registers): Don't warn about short
313         register packet if we've not set the expected value.
314
315         * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
316         printf.
317
318         * gdb/gdbserver/Makefile.in (reg-cf.o, reg-cf.c): New targets.
319         * gdb/gdbserver/configure.srv (m68k*-*-uclinux*): New target.
320         * gdb/gdbserver/linux-low.c (linux_create_inferior): Use vfork on
321         mmuless systems.
322         (linux_resume_one_process): Remove extraneous cast.
323         (linux_read_offsets): New.
324         (linux_target_op): Add linux_read_offsets on mmuless systems.
325         * gdb/gdbserver/server.c (handle_query): Add qOffsets logic.
326         * gdb/gdbserver/target.h (struct target_ops): Add read_offsets.
327
328 2006-03-30  Mark Mitchell <mark@codesourcery.com>
329
330         * libiberty/configure.ac: Add cygpath for mingw hosts.
331         * libiberty/configure: Rebuilt.
332         * libiberty/Makefile.in: Add cygpath.
333         * libiberty/cygpath.c: New.
334
335 2006-03-30  Paul Brook  <paul@codesourcery.com>
336
337         Backport form mainline.
338         * gdb/testsuite/gdb.mi/mi-until.exp: kfail broken until command.
339         * gdb/testsuite/gdb.mi/mi2-until.exp: Ditto.
340
341 2006-03-29  Nathan Sidwell  <nathan@codesourcery.com>
342
343         * gdb/m68k-tdep.c (M68K_FPREG_TYPE, M68K_LONG_DOUBLE_FORMAT,
344         M68K_RETURN_FP0): New.  Set for Coldfire.
345         (m68k_register_type, m68k_register_to_value,
346         m68k_svr4_extract_return_value, m68k_svr4_store_return_value,
347         m68k_gdbarch_init): Use them.
348
349 2006-03-21  Mark Mitchell  <mark@codesourcery.com>
350
351         * gdb/ser-mingw.c (net_windows_state): Add mutex.
352         (net_windows_select_thread): Grab lock around access to
353         read_event.
354         (net_windows_wait_handle): Do not reset the read_event.
355         (net_windows_open): Create a mutex.
356         (net_windows_read_prim): New function.
357         (_initialize_ser_windows): Use it.
358
359 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
360
361         * libiberty/pex-common.c (pex_run): Close the write end of the
362         pipe after starting the child.
363
364         * gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
365
366 2006-03-21  Paul Brook  <paul@codesourcery.com>
367         Daniel Jacobowitz <dan@codesourcery.com>
368         Jim Blandy <jimb@codesourcery.com>
369
370         * gdb/Makefile.in: Add prologue_value.{c,h}
371         * gdb/arm-tdep.c: Include prologue-value.h.
372         (thumb_skip_prologue): Remove.
373         (thumb_analyze_prologue): New function.
374         (arm_skip_prologue): Use thumb_analyze_prologue.
375         (thumb_scan_prologue): Ditto.
376         * gdb/prologue-value.c: New file.
377         * gdb/prologue-value.h: New file.
378         * gdb/config/arm/embed.mt (TDEPFILES): Add prologue-value.o.
379         * gdb/config/arm/linux.mt (TDEPFILES): Add prologue-value.o.
380         * gdb/config/arm/nbsd.mt (TDEPFILES): Add prologue-value.o.
381         * gdb/config/arm/wince.mt (TDEPFILES): Add prologue-value.o.
382         * gdb/testsuite/gdb.arch/thumb-prologue.c: New file.
383         * gdb/testsuite/gdb.arch/thumb-prologue.exp: New file.
384
385 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
386
387         * configure.tgt (arm*-stellaris-*): Use armv7m configuration.
388         * config/arm/armv7m.mt: New file.
389         * config/arm/tm-armv7m.h: Likewise.
390         * arm-tdep.c (arm_register_name_strings): Use xPSR on ARM V7M.
391         (arm_pc_is_thumb): ARM V7M is always Thumb.
392         (set_disassembly_style): Use xPSR on ARM V7M.
393         (arm_write_pc): Do not set T bit in CSPR on V7M.
394
395 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
396
397         * libiberty/pex-win32.c (<errno.h>): Include.
398         (fix_argv): Remove.
399         (argv_to_cmdline): New function.
400         (std_suffixes): New variable.
401         (no_suffixes): Likewise.
402         (find_executable): New function.
403         (win32_spawn): Likewise.
404         (spawn_script): Use win32_spawn instead of _spawnv[p].
405         (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
406         (pex_win32_wait): Likewise.
407
408 2006-03-19  Mark Mitchell  <mark@codesourcery.com>
409
410         * gdb/ser-mingw.c (free_pipe_state): Close pipe before calling
411         pex_free. 
412
413 2006-03-17  Mark Mitchell  <mark@codesourcery.com>
414
415         * gdb/config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
416
417 2006-03-17  Jim Blandy  <jimb@codesourcery.com>
418
419         Add support for 'target remote |' on MinGW.
420         * gdb/ser-mingw.c (struct pipe_state): New structure.
421         (make_pipe_state, free_pipe_state, cleanup_pipe_state)
422         (pipe_windows_open, pipe_windows_close, pipe_windows_read)
423         (pipe_windows_write, pipe_wait_handle): New functions.
424         (_initialize_ser_windows): Register a "pipe" interface based on
425         them.
426
427         * libiberty/pex-common.c (pex_write_input): New function.
428         * libiberty/pexecute.txh (pex_write_input): Document it.
429         * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
430         * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
431         (funcs): List it as our fdopenw function.
432         * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
433         (funcs): List it as our fdopenw function.
434         * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
435         * libiberty/pex-msdos (funcs): Same.
436         * libiberty/functions.texi: Regenerated.
437
438         * include/libiberty.h (pex_write_input): New declaration.
439
440         * libiberty/pex-common.h (struct pex_obj): Doc fixes.
441
442         * libibery/functions.texi: Regenerate.
443
444 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
445
446         * gdb/gdb_proc_service.h (paddr_t): Use psaddr_t if available.
447         * gdb/proc-service.c (ps_xfer_memory): Cast paddr_t to unsigned
448         long.
449         (ps_pglobal_lookup): Cast CORE_ADDR to paddr_t.
450
451 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
452
453         * gdb/gdbserver/linux-mips-low.c: Include <sys/ptrace.h> and
454         "gdb_proc_service.h".
455         (PTRACE_GET_THREAD_AREA): Define.
456         (ps_get_thread_area): New function.
457         * gdb/gdbserver/Makefile.in (linux-i386-low.o, linux-mips-low.o)
458         (linux-x86-64-low.o): Update.
459
460 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
461
462         * gdb/gdbserver/configure.ac: Remove checks for prfpregset_t.
463         * gdb/gdbserver/gdb_proc_service.h: New file.
464         * gdb/gdbserver/linux-i386-low.c, gdb/gdbserver/linux-x86-64-low.c,
465         gdb/gdbserver/thread-db.c: Use the new "gdb_proc_service.h".
466         * gdb/gdbserver/proc-service.c: Likewise.
467         (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
468         (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
469         * gdb/gdbserver/Makefile.in (gdb_proc_service_h): Updated.
470         * gdb/gdbserver/configure, config.in: Regenerated.
471
472 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
473
474         * gdb/Makefile.in (mips_linux_tdep_h): New.
475         (mpis-linux-nat.o, mips-linux-tdep.o): Update.
476         * gdb/mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
477         <sys/ptrace.h>.
478         (have_ptrace_regsets, super_fetch_registers, super_store_registers)
479         (mips64_linux_regsets_fetch_registers)
480         (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
481         (mips64_linux_store_registers): New.
482         (_initialize_mips_linux_nat): Override to_fetch_registers and
483         to_store_registers.
484         * gdb/mips-linux-tdep.h: New file.
485         * gdb/mips-linux-tdep.c: Include "mips-linux-tdep.c".
486         (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
487         (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
488         (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
489         (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
490         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
491         (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
492         (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
493         (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
494         (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
495         (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
496         (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
497         (supply_32bit_reg): Use gdb_byte.
498         (supply_64bit_reg): New.
499         (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
500         (mips_fill_fpregset, fetch_core_registers, supply_gregset)
501         (fill_gregset, supply_fpregset): Update for renamed types.
502         (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
503         (mips64_fill_gregset): Make global.  Handle 32-bit register
504         sizes.
505         (mips64_fill_fpregset): Make global.  Use gdb_byte.  Handle
506         FP regsets properly.
507
508 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
509
510         * gdb/mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
511         (mips_fill_gregset): Renamed from fill_gregset.
512         (mips_supply_fpregset): Renamed from supply_fpregset.
513         (mips_fill_fpregset): Renamed from fill_fpregset.
514         (fetch_core_registers): Update calls.
515         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
516         functions.
517
518 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
519
520         * gdb/mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
521
522 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
523
524         * gdb/mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
525         Correct arithmetic for 64-bit CORE_ADDR.
526
527 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
528
529         * gdb/mips-linux-tdep.c: Include "floatformat.h".
530         (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
531         (mips_n32n64_return_value): Support 128-bit long double.
532         (print_gp_register_row): Don't print spaces before ignored
533         or floating point registers.
534
535 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
536
537         * gdb/mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
538         for code addresses.
539         (non_heuristic_proc_desc): Likewise.
540
541 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
542
543         * gdb/mips-linux-nat.c: Include "gdb_proc_service.h".
544         (PTRACE_GET_THREAD_AREA): Define.
545         (ps_get_thread_area): New.
546         * gdb/Makefile.in (mips-linux-nat.o): Update.
547
548 2006-03-08  Paul Brook  <paul@codesourcery.com>
549
550         Backport from mainline.
551         * gdb/arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
552         (arm_frame_align): New function.
553         (arm_gdbarch_init): Use it.
554
555 2006-03-07  Paul Brook  <paul@codesourcery.com>
556
557         Backport from mainline.
558         * gdb/testsuite/gdb.base/assign.exp: Correct fail message.
559
560 2006-03-07  Paul Brook  <paul@codesourcery.com>
561
562         Backport from mainline.
563         * sim/arm/elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
564
565 2006-03-07  Paul Brook  <paul@codesourcery.com>
566
567         Backport from mainline.
568         * gdb/testsuite/lib/compiler.c: Extract armcc version number.
569         * gdb/testsuite/lib/compiler.cc: Ditto.
570
571 2006-03-07  Paul Brook  <paul@codesourcery.com>
572
573         Backport from mainline.
574         2006-03-03  Khem Raj <khem@mvista.com>
575         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
576
577 2006-03-07  Paul Brook  <paul@codesourcery.com>
578
579         Backport from mainline.
580         * gdb.arch/altivec-abi.exp: Use nowarnings instead of
581         additional_flags=-w.
582         * gdb.arch/altivec-regs.exp: Ditto.
583         * gdb.arch/e500-abi.exp: Ditto.
584         * gdb.arch/e500-regs.exp: Ditto.
585         * gdb.base/all-bin.exp: Ditto.
586         * gdb.base/annota1.exp: Ditto.
587         * gdb.base/annota3.exp: Ditto.
588         * gdb.base/args.exp: Ditto.
589         * gdb.base/arithmet.exp: Ditto.
590         * gdb.base/assign.exp: Ditto.
591         * gdb.base/async.exp: Ditto.
592         * gdb.base/bang.exp: Ditto.
593         * gdb.base/break.exp: Ditto.
594         * gdb.base/call-rt-st.exp: Ditto.
595         * gdb.base/completion.exp: Ditto.
596         * gdb.base/cond-expr.exp: Ditto.
597         * gdb.base/condbreak.exp: Ditto.
598         * gdb.base/consecutive.exp: Ditto.
599         * gdb.base/define.exp: Ditto.
600         * gdb.base/display.exp: Ditto.
601         * gdb.base/ena-dis-br.exp: Ditto.
602         * gdb.base/environ.exp: Ditto.
603         * gdb.base/eval-skip.exp: Ditto.
604         * gdb.base/info-proc.exp: Ditto.
605         * gdb.base/jump.exp: Ditto.
606         * gdb.base/logical.exp: Ditto.
607         * gdb.base/long_long.exp: Ditto.
608         * gdb.base/maint.exp: Ditto.
609         * gdb.base/miscexprs.exp: Ditto.
610         * gdb.base/pc-fp.exp: Ditto.
611         * gdb.base/pointers.exp: Ditto.
612         * gdb.base/relational.exp: Ditto.
613         * gdb.base/reread.exp: Ditto.
614         * gdb.base/sect-cmd.exp: Ditto.
615         * gdb.base/sep.exp: Ditto.
616         * gdb.base/sepdebug.exp: Ditto.
617         * gdb.base/until.exp: Ditto.
618         * gdb.base/whatis-exp.exp: Ditto.
619         * gdb.cp/annota2.exp: Ditto.
620         * gdb.cp/annota3.exp: Ditto.
621         * gdb.trace/actions.exp: Ditto.
622         * gdb.trace/backtrace.exp: Ditto.
623         * gdb.trace/circ.exp: Ditto.
624         * gdb.trace/collection.exp: Ditto.
625         * gdb.trace/deltrace.exp: Ditto.
626         * gdb.trace/infotrace.exp: Ditto.
627         * gdb.trace/limits.exp: Ditto.
628         * gdb.trace/packetlen.exp: Ditto.
629         * gdb.trace/passc-dyn.exp: Ditto.
630         * gdb.trace/passcount.exp: Ditto.
631         * gdb.trace/report.exp: Ditto.
632         * gdb.trace/save-trace.exp: Ditto.
633         * gdb.trace/tfind.exp: Ditto.
634         * gdb.trace/tracecmd.exp: Ditto.
635         * gdb.trace/while-dyn.exp: Ditto.
636         * gdb.trace/while-stepping.exp: Ditto.
637         * lib/gdb.exp: Ditto.
638         (gdb_compile): Handle nowarning option.
639