1 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
3 * gdb/doc/gdb.texinfo (Remote configuration): Mention "set remote
5 (General Query Packets): Document qPartInfo.
7 2006-04-18 Mark Mitchell <mark@codesourcery.com>
10 * gdb/mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
11 Iscramb2, Qscramb2, Qchannel2.
12 (mt_register_name): Likewise.
13 (mt_copro_register_type): Describe ZI2 and ZQ2.
15 2006-04-11 Mark Mitchell <mark@codesourcery.com>
18 * gdb/mt-tdep.c (mt_gdb_regnums): Define
19 MT_COPRO_PSEUDOREG_MAC_REGNUM.
20 (mt_register_name): Use it.
21 (mt_copro_register_type): Likewise.
22 (mt_register_type): Likewise.
23 (mt_pseudo_register_read): Likewise. Read the MAC register, not
24 the coprocessor register.
25 (mt_pseudo_register_write): Likewise.
27 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
29 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
32 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
35 2006-03-09 Paul Brook <paul@codesourcery.com>
36 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
39 2006-04-02 Daniel Jacobowitz <dan@codesourcery.com>
41 * Makefile.def (host_modules, dependencies): Add expat.
42 * configure.in (host_libs): Add expat.
43 * Makefile.in, configure: Regenerate.
44 * expat: New directory.
46 * gdb/Makefile.in: Add expat, new files, and xml-builtin.c. Update
48 * gdb/acinclude.m4: Include stdint.m4.
49 * gdb/configure.ac: Use AC_C_BIGENDIAN and GCC_HEADER_STDINT.
50 * gdb/aclocal.m4, gdb/config.in, gdb/configure: Regenerate.
52 * gdb/auxv.h: Remove target_auxv_read prototype.
53 * gdb/auxv.c, gdb/avr-tdep.c, gdb/ia64-tdep.c, gdb/linux-nat.c,
54 gdb/procfs.c: Use target_read_whole.
55 * gdb/sparc-tdep.c: Use target_read.
57 * gdb/frame.c: Work around null frame_id handling.
59 * gdb/breakpoint.c, gdb/f-valprint.c, gdb/infcmd.c, gdb/inflow.c,
60 gdb/infrun.c, gdb/stack.c, gdb/valops.c, gdb/varobj.c,
61 gdb/cli-cmds.c, gdb/testsuite/gdb.base/default.exp,
62 gdb/tui/tui-disasm.c, gdb/tui/tui-source.c,
63 gdb/tui/tui-winsource.c: Selected frame fixups.
65 * gdb/README.AVAIL, gdb/available.c, gdb/available.h,
66 gdb/parse-avail.c, gdb/sha1.c, gdb/features/feature_to_c.sh,
67 gdb/features/gdb-target.dtd: New files.
68 * gdb/arm-tdep.c: Handle missing FPA, present VFP, and
69 self-described registers. Decode VFP register numbers from DWARF.
70 * gdb/arm-tdep.h: Add flags for VFP and FPA.
71 * gdb/gdbarch.sh: Add available_features_support and feature_set.
72 Export the arch's obstack. Check feature sets. Improve error
74 * gdb/gdbarch.c, gdb/gdbarch.h: Regenerated.
75 * gdb/infcmd.c: Trigger architecture selection.
76 * gdb/remote.c: Available feature support. qPacketInfo support.
77 Improved g/G packet support. Improved qPart support.
78 qPart:features support.
79 * gdb/symfile.c: Adjust download_write_size.
80 * gdb/target.c: Revise partial transfer support. Handle available
81 features method. Add target_read_whole.
82 * gdb/target.h: Add the available features object and methods.
83 * gdb/doc/gdb.texinfo: Document new features.
85 * gdb/symfile.h: Include symtab.h.
87 2006-03-31 Nathan Sidwell <nathan@codesourcery.com>
89 * gdb/config/m68k/monitor.mt (TDEPFILES): Remove unneeded
91 (DEPRECATED_TM_FILE): Remove.
93 * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Define.
94 (REGISTER_BYTES_FP): Use it.
96 * gdb/configure.tgt (m68k-*-uclinux*): target is linux.
98 * gdb/remote.c (remote_fetch_registers): Revert bogus change.
100 * gdb/remote.c (remote_fetch_registers): Don't warn about short
101 register packet if we've not set the expected value.
103 * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
106 * gdb/gdbserver/Makefile.in (reg-cf.o, reg-cf.c): New targets.
107 * gdb/gdbserver/configure.srv (m68k*-*-uclinux*): New target.
108 * gdb/gdbserver/linux-low.c (linux_create_inferior): Use vfork on
110 (linux_resume_one_process): Remove extraneous cast.
111 (linux_read_offsets): New.
112 (linux_target_op): Add linux_read_offsets on mmuless systems.
113 * gdb/gdbserver/server.c (handle_query): Add qOffsets logic.
114 * gdb/gdbserver/target.h (struct target_ops): Add read_offsets.
116 2006-03-30 Mark Mitchell <mark@codesourcery.com>
118 * libiberty/configure.ac: Add cygpath for mingw hosts.
119 * libiberty/configure: Rebuilt.
120 * libiberty/Makefile.in: Add cygpath.
121 * libiberty/cygpath.c: New.
123 2006-03-30 Paul Brook <paul@codesourcery.com>
125 Backport form mainline.
126 * gdb/testsuite/gdb.mi/mi-until.exp: kfail broken until command.
127 * gdb/testsuite/gdb.mi/mi2-until.exp: Ditto.
129 2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
131 * gdb/m68k-tdep.c (M68K_FPREG_TYPE, M68K_LONG_DOUBLE_FORMAT,
132 M68K_RETURN_FP0): New. Set for Coldfire.
133 (m68k_register_type, m68k_register_to_value,
134 m68k_svr4_extract_return_value, m68k_svr4_store_return_value,
135 m68k_gdbarch_init): Use them.
137 2006-03-21 Mark Mitchell <mark@codesourcery.com>
139 * gdb/ser-mingw.c (net_windows_state): Add mutex.
140 (net_windows_select_thread): Grab lock around access to
142 (net_windows_wait_handle): Do not reset the read_event.
143 (net_windows_open): Create a mutex.
144 (net_windows_read_prim): New function.
145 (_initialize_ser_windows): Use it.
147 2006-03-20 Mark Mitchell <mark@codesourcery.com>
149 * libiberty/pex-common.c (pex_run): Close the write end of the
150 pipe after starting the child.
152 * gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
154 2006-03-21 Paul Brook <paul@codesourcery.com>
155 Daniel Jacobowitz <dan@codesourcery.com>
156 Jim Blandy <jimb@codesourcery.com>
158 * gdb/Makefile.in: Add prologue_value.{c,h}
159 * gdb/arm-tdep.c: Include prologue-value.h.
160 (thumb_skip_prologue): Remove.
161 (thumb_analyze_prologue): New function.
162 (arm_skip_prologue): Use thumb_analyze_prologue.
163 (thumb_scan_prologue): Ditto.
164 * gdb/prologue-value.c: New file.
165 * gdb/prologue-value.h: New file.
166 * gdb/config/arm/embed.mt (TDEPFILES): Add prologue-value.o.
167 * gdb/config/arm/linux.mt (TDEPFILES): Add prologue-value.o.
168 * gdb/config/arm/nbsd.mt (TDEPFILES): Add prologue-value.o.
169 * gdb/config/arm/wince.mt (TDEPFILES): Add prologue-value.o.
170 * gdb/testsuite/gdb.arch/thumb-prologue.c: New file.
171 * gdb/testsuite/gdb.arch/thumb-prologue.exp: New file.
173 2006-03-20 Mark Mitchell <mark@codesourcery.com>
175 * configure.tgt (arm*-stellaris-*): Use armv7m configuration.
176 * config/arm/armv7m.mt: New file.
177 * config/arm/tm-armv7m.h: Likewise.
178 * arm-tdep.c (arm_register_name_strings): Use xPSR on ARM V7M.
179 (arm_pc_is_thumb): ARM V7M is always Thumb.
180 (set_disassembly_style): Use xPSR on ARM V7M.
181 (arm_write_pc): Do not set T bit in CSPR on V7M.
183 2006-03-20 Mark Mitchell <mark@codesourcery.com>
185 * libiberty/pex-win32.c (<errno.h>): Include.
187 (argv_to_cmdline): New function.
188 (std_suffixes): New variable.
189 (no_suffixes): Likewise.
190 (find_executable): New function.
191 (win32_spawn): Likewise.
192 (spawn_script): Use win32_spawn instead of _spawnv[p].
193 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
194 (pex_win32_wait): Likewise.
196 2006-03-19 Mark Mitchell <mark@codesourcery.com>
198 * gdb/ser-mingw.c (free_pipe_state): Close pipe before calling
201 2006-03-17 Mark Mitchell <mark@codesourcery.com>
203 * gdb/config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
205 2006-03-17 Jim Blandy <jimb@codesourcery.com>
207 Add support for 'target remote |' on MinGW.
208 * gdb/ser-mingw.c (struct pipe_state): New structure.
209 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
210 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
211 (pipe_windows_write, pipe_wait_handle): New functions.
212 (_initialize_ser_windows): Register a "pipe" interface based on
215 * libiberty/pex-common.c (pex_write_input): New function.
216 * libiberty/pexecute.txh (pex_write_input): Document it.
217 * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
218 * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
219 (funcs): List it as our fdopenw function.
220 * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
221 (funcs): List it as our fdopenw function.
222 * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
223 * libiberty/pex-msdos (funcs): Same.
224 * libiberty/functions.texi: Regenerated.
226 * include/libiberty.h (pex_write_input): New declaration.
228 * libiberty/pex-common.h (struct pex_obj): Doc fixes.
230 * libibery/functions.texi: Regenerate.
232 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
234 * gdb/gdb_proc_service.h (paddr_t): Use psaddr_t if available.
235 * gdb/proc-service.c (ps_xfer_memory): Cast paddr_t to unsigned
237 (ps_pglobal_lookup): Cast CORE_ADDR to paddr_t.
239 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
241 * gdb/gdbserver/linux-mips-low.c: Include <sys/ptrace.h> and
242 "gdb_proc_service.h".
243 (PTRACE_GET_THREAD_AREA): Define.
244 (ps_get_thread_area): New function.
245 * gdb/gdbserver/Makefile.in (linux-i386-low.o, linux-mips-low.o)
246 (linux-x86-64-low.o): Update.
248 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
250 * gdb/gdbserver/configure.ac: Remove checks for prfpregset_t.
251 * gdb/gdbserver/gdb_proc_service.h: New file.
252 * gdb/gdbserver/linux-i386-low.c, gdb/gdbserver/linux-x86-64-low.c,
253 gdb/gdbserver/thread-db.c: Use the new "gdb_proc_service.h".
254 * gdb/gdbserver/proc-service.c: Likewise.
255 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
256 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
257 * gdb/gdbserver/Makefile.in (gdb_proc_service_h): Updated.
258 * gdb/gdbserver/configure, config.in: Regenerated.
260 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
262 * gdb/Makefile.in (mips_linux_tdep_h): New.
263 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
264 * gdb/mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
266 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
267 (mips64_linux_regsets_fetch_registers)
268 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
269 (mips64_linux_store_registers): New.
270 (_initialize_mips_linux_nat): Override to_fetch_registers and
272 * gdb/mips-linux-tdep.h: New file.
273 * gdb/mips-linux-tdep.c: Include "mips-linux-tdep.c".
274 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
275 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
276 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
277 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
278 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
279 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
280 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
281 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
282 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
283 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
284 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
285 (supply_32bit_reg): Use gdb_byte.
286 (supply_64bit_reg): New.
287 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
288 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
289 (fill_gregset, supply_fpregset): Update for renamed types.
290 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
291 (mips64_fill_gregset): Make global. Handle 32-bit register
293 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
296 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
298 * gdb/mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
299 (mips_fill_gregset): Renamed from fill_gregset.
300 (mips_supply_fpregset): Renamed from supply_fpregset.
301 (mips_fill_fpregset): Renamed from fill_fpregset.
302 (fetch_core_registers): Update calls.
303 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
306 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
308 * gdb/mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
310 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
312 * gdb/mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
313 Correct arithmetic for 64-bit CORE_ADDR.
315 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
317 * gdb/mips-linux-tdep.c: Include "floatformat.h".
318 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
319 (mips_n32n64_return_value): Support 128-bit long double.
320 (print_gp_register_row): Don't print spaces before ignored
321 or floating point registers.
323 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
325 * gdb/mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
327 (non_heuristic_proc_desc): Likewise.
329 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
331 * gdb/mips-linux-nat.c: Include "gdb_proc_service.h".
332 (PTRACE_GET_THREAD_AREA): Define.
333 (ps_get_thread_area): New.
334 * gdb/Makefile.in (mips-linux-nat.o): Update.
336 2006-03-08 Paul Brook <paul@codesourcery.com>
338 Backport from mainline.
339 * gdb/arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
340 (arm_frame_align): New function.
341 (arm_gdbarch_init): Use it.
343 2006-03-07 Paul Brook <paul@codesourcery.com>
345 Backport from mainline.
346 * gdb/testsuite/gdb.base/assign.exp: Correct fail message.
348 2006-03-07 Paul Brook <paul@codesourcery.com>
350 Backport from mainline.
351 * sim/arm/elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
353 2006-03-07 Paul Brook <paul@codesourcery.com>
355 Backport from mainline.
356 * gdb/testsuite/lib/compiler.c: Extract armcc version number.
357 * gdb/testsuite/lib/compiler.cc: Ditto.
359 2006-03-07 Paul Brook <paul@codesourcery.com>
361 Backport from mainline.
362 2006-03-03 Khem Raj <khem@mvista.com>
363 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
365 2006-03-07 Paul Brook <paul@codesourcery.com>
367 Backport from mainline.
368 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
370 * gdb.arch/altivec-regs.exp: Ditto.
371 * gdb.arch/e500-abi.exp: Ditto.
372 * gdb.arch/e500-regs.exp: Ditto.
373 * gdb.base/all-bin.exp: Ditto.
374 * gdb.base/annota1.exp: Ditto.
375 * gdb.base/annota3.exp: Ditto.
376 * gdb.base/args.exp: Ditto.
377 * gdb.base/arithmet.exp: Ditto.
378 * gdb.base/assign.exp: Ditto.
379 * gdb.base/async.exp: Ditto.
380 * gdb.base/bang.exp: Ditto.
381 * gdb.base/break.exp: Ditto.
382 * gdb.base/call-rt-st.exp: Ditto.
383 * gdb.base/completion.exp: Ditto.
384 * gdb.base/cond-expr.exp: Ditto.
385 * gdb.base/condbreak.exp: Ditto.
386 * gdb.base/consecutive.exp: Ditto.
387 * gdb.base/define.exp: Ditto.
388 * gdb.base/display.exp: Ditto.
389 * gdb.base/ena-dis-br.exp: Ditto.
390 * gdb.base/environ.exp: Ditto.
391 * gdb.base/eval-skip.exp: Ditto.
392 * gdb.base/info-proc.exp: Ditto.
393 * gdb.base/jump.exp: Ditto.
394 * gdb.base/logical.exp: Ditto.
395 * gdb.base/long_long.exp: Ditto.
396 * gdb.base/maint.exp: Ditto.
397 * gdb.base/miscexprs.exp: Ditto.
398 * gdb.base/pc-fp.exp: Ditto.
399 * gdb.base/pointers.exp: Ditto.
400 * gdb.base/relational.exp: Ditto.
401 * gdb.base/reread.exp: Ditto.
402 * gdb.base/sect-cmd.exp: Ditto.
403 * gdb.base/sep.exp: Ditto.
404 * gdb.base/sepdebug.exp: Ditto.
405 * gdb.base/until.exp: Ditto.
406 * gdb.base/whatis-exp.exp: Ditto.
407 * gdb.cp/annota2.exp: Ditto.
408 * gdb.cp/annota3.exp: Ditto.
409 * gdb.trace/actions.exp: Ditto.
410 * gdb.trace/backtrace.exp: Ditto.
411 * gdb.trace/circ.exp: Ditto.
412 * gdb.trace/collection.exp: Ditto.
413 * gdb.trace/deltrace.exp: Ditto.
414 * gdb.trace/infotrace.exp: Ditto.
415 * gdb.trace/limits.exp: Ditto.
416 * gdb.trace/packetlen.exp: Ditto.
417 * gdb.trace/passc-dyn.exp: Ditto.
418 * gdb.trace/passcount.exp: Ditto.
419 * gdb.trace/report.exp: Ditto.
420 * gdb.trace/save-trace.exp: Ditto.
421 * gdb.trace/tfind.exp: Ditto.
422 * gdb.trace/tracecmd.exp: Ditto.
423 * gdb.trace/while-dyn.exp: Ditto.
424 * gdb.trace/while-stepping.exp: Ditto.
425 * lib/gdb.exp: Ditto.
426 (gdb_compile): Handle nowarning option.