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