1 2006-05-03 Paul Brook <paul@codesourcery.com>
2 Daniel Jacobowitz <dan@codesourcery.com>
4 * gdb/dwarf2read.c (read_subroutine_type): Add armcc workaround.
6 * gdb/dwarf2read.c (read_structure_type): Look for ADS vtable
9 * gdb/dwarf2read.c (dwarf_decode_lines): Don't set dir for absolute
11 (dwarf_decode_lines): Ditto.
12 (dwarf2_start_subfile): Split absolute filenames into path+file.
14 * gdb/symtab.h (struct symbol): Add is_argument.
15 (SYMBOL_IS_ARGUMENT): Define.
16 * gdb/stack.c (print_frame_args): Use SYMBOL_IS_ARGUMENT.
17 (print_frame_arg_vars): Ditto.
18 * gdb/dwarf2read.c (new_symbol): Set SYMBOL_IS_ARGUMENT.
19 (new_symbol): Mark optimized out arguments.
21 * gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
23 * gdb/dwarf2read.c (read_unspecified_type): New function.
24 (read_type_die): Handle DW_TAG_unspecified_type.
26 2006-05-03 Paul Brook <paul@codesourcery.com>
27 Daniel Jacobowitz <dan@codesourcery.com>
29 * gdb/dwarf2read.c (field_info): Add baseclasses.
30 (dwarf2_add_field): Check base classes.
31 (dwarf2_attach_fields_to_type): Ditto.
33 * gdb/gnu-v3-abi.c (gnuv3_rtti_type): Check for NULL base_type.
34 (gnuv3_virtual_fn_field): Handle missing base.
35 (gnuv3_baseclass_offset): Handle missing vptr.
36 * gdb/varobj.c (cplus_class_num_children): Call fill_in_vptr_fieldno.
37 (cplus_name_of_child): Ditto.
38 * gdb/eval.c (evaluate_subexp_standard): Ditto.
39 * gdb/dwarf2read.c (read_structure_type): Search for vtable pointer
40 by name in objects built by ARM compiler.
42 * gdb/dwarf2read.c (dwarf2_add_member_fn): Calculate virtual function
43 offset for classes without DW_AT_containing_type.
45 2006-04-28 Mark Mitchell <mark@codesourcery.com>
47 * gdb/mt-tdep.c (mt_register_name): Correct out-of-range logic to
48 include additional registers.
50 2006-04-28 Richard Sandiford <richard@codesourcery.com>
52 * gdb/gdbserver/configure.srv (m68k*-*-linux*): Use reg-cf.o.
54 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
56 * gdb/doc/gdb.texinfo (Remote configuration): Mention "set remote
58 (General Query Packets): Document qPartInfo.
60 2006-04-18 Mark Mitchell <mark@codesourcery.com>
63 * gdb/mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
64 Iscramb2, Qscramb2, Qchannel2.
65 (mt_register_name): Likewise.
66 (mt_copro_register_type): Describe ZI2 and ZQ2.
68 2006-04-11 Mark Mitchell <mark@codesourcery.com>
71 * gdb/mt-tdep.c (mt_gdb_regnums): Define
72 MT_COPRO_PSEUDOREG_MAC_REGNUM.
73 (mt_register_name): Use it.
74 (mt_copro_register_type): Likewise.
75 (mt_register_type): Likewise.
76 (mt_pseudo_register_read): Likewise. Read the MAC register, not
77 the coprocessor register.
78 (mt_pseudo_register_write): Likewise.
80 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
82 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
85 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
88 2006-03-09 Paul Brook <paul@codesourcery.com>
89 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
92 2006-04-02 Daniel Jacobowitz <dan@codesourcery.com>
94 * Makefile.def (host_modules, dependencies): Add expat.
95 * configure.in (host_libs): Add expat.
96 * Makefile.in, configure: Regenerate.
97 * expat: New directory.
99 * gdb/Makefile.in: Add expat, new files, and xml-builtin.c. Update
101 * gdb/acinclude.m4: Include stdint.m4.
102 * gdb/configure.ac: Use AC_C_BIGENDIAN and GCC_HEADER_STDINT.
103 * gdb/aclocal.m4, gdb/config.in, gdb/configure: Regenerate.
105 * gdb/auxv.h: Remove target_auxv_read prototype.
106 * gdb/auxv.c, gdb/avr-tdep.c, gdb/ia64-tdep.c, gdb/linux-nat.c,
107 gdb/procfs.c: Use target_read_whole.
108 * gdb/sparc-tdep.c: Use target_read.
110 * gdb/frame.c: Work around null frame_id handling.
112 * gdb/breakpoint.c, gdb/f-valprint.c, gdb/infcmd.c, gdb/inflow.c,
113 gdb/infrun.c, gdb/stack.c, gdb/valops.c, gdb/varobj.c,
114 gdb/cli-cmds.c, gdb/testsuite/gdb.base/default.exp,
115 gdb/tui/tui-disasm.c, gdb/tui/tui-source.c,
116 gdb/tui/tui-winsource.c: Selected frame fixups.
118 * gdb/README.AVAIL, gdb/available.c, gdb/available.h,
119 gdb/parse-avail.c, gdb/sha1.c, gdb/features/feature_to_c.sh,
120 gdb/features/gdb-target.dtd: New files.
121 * gdb/arm-tdep.c: Handle missing FPA, present VFP, and
122 self-described registers. Decode VFP register numbers from DWARF.
123 * gdb/arm-tdep.h: Add flags for VFP and FPA.
124 * gdb/gdbarch.sh: Add available_features_support and feature_set.
125 Export the arch's obstack. Check feature sets. Improve error
127 * gdb/gdbarch.c, gdb/gdbarch.h: Regenerated.
128 * gdb/infcmd.c: Trigger architecture selection.
129 * gdb/remote.c: Available feature support. qPacketInfo support.
130 Improved g/G packet support. Improved qPart support.
131 qPart:features support.
132 * gdb/symfile.c: Adjust download_write_size.
133 * gdb/target.c: Revise partial transfer support. Handle available
134 features method. Add target_read_whole.
135 * gdb/target.h: Add the available features object and methods.
136 * gdb/doc/gdb.texinfo: Document new features.
138 * gdb/symfile.h: Include symtab.h.
140 2006-03-31 Nathan Sidwell <nathan@codesourcery.com>
142 * gdb/config/m68k/monitor.mt (TDEPFILES): Remove unneeded
144 (DEPRECATED_TM_FILE): Remove.
146 * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Define.
147 (REGISTER_BYTES_FP): Use it.
149 * gdb/configure.tgt (m68k-*-uclinux*): target is linux.
151 * gdb/remote.c (remote_fetch_registers): Revert bogus change.
153 * gdb/remote.c (remote_fetch_registers): Don't warn about short
154 register packet if we've not set the expected value.
156 * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
159 * gdb/gdbserver/Makefile.in (reg-cf.o, reg-cf.c): New targets.
160 * gdb/gdbserver/configure.srv (m68k*-*-uclinux*): New target.
161 * gdb/gdbserver/linux-low.c (linux_create_inferior): Use vfork on
163 (linux_resume_one_process): Remove extraneous cast.
164 (linux_read_offsets): New.
165 (linux_target_op): Add linux_read_offsets on mmuless systems.
166 * gdb/gdbserver/server.c (handle_query): Add qOffsets logic.
167 * gdb/gdbserver/target.h (struct target_ops): Add read_offsets.
169 2006-03-30 Mark Mitchell <mark@codesourcery.com>
171 * libiberty/configure.ac: Add cygpath for mingw hosts.
172 * libiberty/configure: Rebuilt.
173 * libiberty/Makefile.in: Add cygpath.
174 * libiberty/cygpath.c: New.
176 2006-03-30 Paul Brook <paul@codesourcery.com>
178 Backport form mainline.
179 * gdb/testsuite/gdb.mi/mi-until.exp: kfail broken until command.
180 * gdb/testsuite/gdb.mi/mi2-until.exp: Ditto.
182 2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
184 * gdb/m68k-tdep.c (M68K_FPREG_TYPE, M68K_LONG_DOUBLE_FORMAT,
185 M68K_RETURN_FP0): New. Set for Coldfire.
186 (m68k_register_type, m68k_register_to_value,
187 m68k_svr4_extract_return_value, m68k_svr4_store_return_value,
188 m68k_gdbarch_init): Use them.
190 2006-03-21 Mark Mitchell <mark@codesourcery.com>
192 * gdb/ser-mingw.c (net_windows_state): Add mutex.
193 (net_windows_select_thread): Grab lock around access to
195 (net_windows_wait_handle): Do not reset the read_event.
196 (net_windows_open): Create a mutex.
197 (net_windows_read_prim): New function.
198 (_initialize_ser_windows): Use it.
200 2006-03-20 Mark Mitchell <mark@codesourcery.com>
202 * libiberty/pex-common.c (pex_run): Close the write end of the
203 pipe after starting the child.
205 * gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
207 2006-03-21 Paul Brook <paul@codesourcery.com>
208 Daniel Jacobowitz <dan@codesourcery.com>
209 Jim Blandy <jimb@codesourcery.com>
211 * gdb/Makefile.in: Add prologue_value.{c,h}
212 * gdb/arm-tdep.c: Include prologue-value.h.
213 (thumb_skip_prologue): Remove.
214 (thumb_analyze_prologue): New function.
215 (arm_skip_prologue): Use thumb_analyze_prologue.
216 (thumb_scan_prologue): Ditto.
217 * gdb/prologue-value.c: New file.
218 * gdb/prologue-value.h: New file.
219 * gdb/config/arm/embed.mt (TDEPFILES): Add prologue-value.o.
220 * gdb/config/arm/linux.mt (TDEPFILES): Add prologue-value.o.
221 * gdb/config/arm/nbsd.mt (TDEPFILES): Add prologue-value.o.
222 * gdb/config/arm/wince.mt (TDEPFILES): Add prologue-value.o.
223 * gdb/testsuite/gdb.arch/thumb-prologue.c: New file.
224 * gdb/testsuite/gdb.arch/thumb-prologue.exp: New file.
226 2006-03-20 Mark Mitchell <mark@codesourcery.com>
228 * configure.tgt (arm*-stellaris-*): Use armv7m configuration.
229 * config/arm/armv7m.mt: New file.
230 * config/arm/tm-armv7m.h: Likewise.
231 * arm-tdep.c (arm_register_name_strings): Use xPSR on ARM V7M.
232 (arm_pc_is_thumb): ARM V7M is always Thumb.
233 (set_disassembly_style): Use xPSR on ARM V7M.
234 (arm_write_pc): Do not set T bit in CSPR on V7M.
236 2006-03-20 Mark Mitchell <mark@codesourcery.com>
238 * libiberty/pex-win32.c (<errno.h>): Include.
240 (argv_to_cmdline): New function.
241 (std_suffixes): New variable.
242 (no_suffixes): Likewise.
243 (find_executable): New function.
244 (win32_spawn): Likewise.
245 (spawn_script): Use win32_spawn instead of _spawnv[p].
246 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
247 (pex_win32_wait): Likewise.
249 2006-03-19 Mark Mitchell <mark@codesourcery.com>
251 * gdb/ser-mingw.c (free_pipe_state): Close pipe before calling
254 2006-03-17 Mark Mitchell <mark@codesourcery.com>
256 * gdb/config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
258 2006-03-17 Jim Blandy <jimb@codesourcery.com>
260 Add support for 'target remote |' on MinGW.
261 * gdb/ser-mingw.c (struct pipe_state): New structure.
262 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
263 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
264 (pipe_windows_write, pipe_wait_handle): New functions.
265 (_initialize_ser_windows): Register a "pipe" interface based on
268 * libiberty/pex-common.c (pex_write_input): New function.
269 * libiberty/pexecute.txh (pex_write_input): Document it.
270 * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
271 * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
272 (funcs): List it as our fdopenw function.
273 * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
274 (funcs): List it as our fdopenw function.
275 * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
276 * libiberty/pex-msdos (funcs): Same.
277 * libiberty/functions.texi: Regenerated.
279 * include/libiberty.h (pex_write_input): New declaration.
281 * libiberty/pex-common.h (struct pex_obj): Doc fixes.
283 * libibery/functions.texi: Regenerate.
285 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
287 * gdb/gdb_proc_service.h (paddr_t): Use psaddr_t if available.
288 * gdb/proc-service.c (ps_xfer_memory): Cast paddr_t to unsigned
290 (ps_pglobal_lookup): Cast CORE_ADDR to paddr_t.
292 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
294 * gdb/gdbserver/linux-mips-low.c: Include <sys/ptrace.h> and
295 "gdb_proc_service.h".
296 (PTRACE_GET_THREAD_AREA): Define.
297 (ps_get_thread_area): New function.
298 * gdb/gdbserver/Makefile.in (linux-i386-low.o, linux-mips-low.o)
299 (linux-x86-64-low.o): Update.
301 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
303 * gdb/gdbserver/configure.ac: Remove checks for prfpregset_t.
304 * gdb/gdbserver/gdb_proc_service.h: New file.
305 * gdb/gdbserver/linux-i386-low.c, gdb/gdbserver/linux-x86-64-low.c,
306 gdb/gdbserver/thread-db.c: Use the new "gdb_proc_service.h".
307 * gdb/gdbserver/proc-service.c: Likewise.
308 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
309 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
310 * gdb/gdbserver/Makefile.in (gdb_proc_service_h): Updated.
311 * gdb/gdbserver/configure, config.in: Regenerated.
313 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
315 * gdb/Makefile.in (mips_linux_tdep_h): New.
316 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
317 * gdb/mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
319 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
320 (mips64_linux_regsets_fetch_registers)
321 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
322 (mips64_linux_store_registers): New.
323 (_initialize_mips_linux_nat): Override to_fetch_registers and
325 * gdb/mips-linux-tdep.h: New file.
326 * gdb/mips-linux-tdep.c: Include "mips-linux-tdep.c".
327 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
328 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
329 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
330 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
331 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
332 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
333 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
334 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
335 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
336 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
337 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
338 (supply_32bit_reg): Use gdb_byte.
339 (supply_64bit_reg): New.
340 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
341 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
342 (fill_gregset, supply_fpregset): Update for renamed types.
343 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
344 (mips64_fill_gregset): Make global. Handle 32-bit register
346 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
349 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
351 * gdb/mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
352 (mips_fill_gregset): Renamed from fill_gregset.
353 (mips_supply_fpregset): Renamed from supply_fpregset.
354 (mips_fill_fpregset): Renamed from fill_fpregset.
355 (fetch_core_registers): Update calls.
356 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
359 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
361 * gdb/mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
363 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
365 * gdb/mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
366 Correct arithmetic for 64-bit CORE_ADDR.
368 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
370 * gdb/mips-linux-tdep.c: Include "floatformat.h".
371 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
372 (mips_n32n64_return_value): Support 128-bit long double.
373 (print_gp_register_row): Don't print spaces before ignored
374 or floating point registers.
376 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
378 * gdb/mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
380 (non_heuristic_proc_desc): Likewise.
382 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
384 * gdb/mips-linux-nat.c: Include "gdb_proc_service.h".
385 (PTRACE_GET_THREAD_AREA): Define.
386 (ps_get_thread_area): New.
387 * gdb/Makefile.in (mips-linux-nat.o): Update.
389 2006-03-08 Paul Brook <paul@codesourcery.com>
391 Backport from mainline.
392 * gdb/arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
393 (arm_frame_align): New function.
394 (arm_gdbarch_init): Use it.
396 2006-03-07 Paul Brook <paul@codesourcery.com>
398 Backport from mainline.
399 * gdb/testsuite/gdb.base/assign.exp: Correct fail message.
401 2006-03-07 Paul Brook <paul@codesourcery.com>
403 Backport from mainline.
404 * sim/arm/elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
406 2006-03-07 Paul Brook <paul@codesourcery.com>
408 Backport from mainline.
409 * gdb/testsuite/lib/compiler.c: Extract armcc version number.
410 * gdb/testsuite/lib/compiler.cc: Ditto.
412 2006-03-07 Paul Brook <paul@codesourcery.com>
414 Backport from mainline.
415 2006-03-03 Khem Raj <khem@mvista.com>
416 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
418 2006-03-07 Paul Brook <paul@codesourcery.com>
420 Backport from mainline.
421 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
423 * gdb.arch/altivec-regs.exp: Ditto.
424 * gdb.arch/e500-abi.exp: Ditto.
425 * gdb.arch/e500-regs.exp: Ditto.
426 * gdb.base/all-bin.exp: Ditto.
427 * gdb.base/annota1.exp: Ditto.
428 * gdb.base/annota3.exp: Ditto.
429 * gdb.base/args.exp: Ditto.
430 * gdb.base/arithmet.exp: Ditto.
431 * gdb.base/assign.exp: Ditto.
432 * gdb.base/async.exp: Ditto.
433 * gdb.base/bang.exp: Ditto.
434 * gdb.base/break.exp: Ditto.
435 * gdb.base/call-rt-st.exp: Ditto.
436 * gdb.base/completion.exp: Ditto.
437 * gdb.base/cond-expr.exp: Ditto.
438 * gdb.base/condbreak.exp: Ditto.
439 * gdb.base/consecutive.exp: Ditto.
440 * gdb.base/define.exp: Ditto.
441 * gdb.base/display.exp: Ditto.
442 * gdb.base/ena-dis-br.exp: Ditto.
443 * gdb.base/environ.exp: Ditto.
444 * gdb.base/eval-skip.exp: Ditto.
445 * gdb.base/info-proc.exp: Ditto.
446 * gdb.base/jump.exp: Ditto.
447 * gdb.base/logical.exp: Ditto.
448 * gdb.base/long_long.exp: Ditto.
449 * gdb.base/maint.exp: Ditto.
450 * gdb.base/miscexprs.exp: Ditto.
451 * gdb.base/pc-fp.exp: Ditto.
452 * gdb.base/pointers.exp: Ditto.
453 * gdb.base/relational.exp: Ditto.
454 * gdb.base/reread.exp: Ditto.
455 * gdb.base/sect-cmd.exp: Ditto.
456 * gdb.base/sep.exp: Ditto.
457 * gdb.base/sepdebug.exp: Ditto.
458 * gdb.base/until.exp: Ditto.
459 * gdb.base/whatis-exp.exp: Ditto.
460 * gdb.cp/annota2.exp: Ditto.
461 * gdb.cp/annota3.exp: Ditto.
462 * gdb.trace/actions.exp: Ditto.
463 * gdb.trace/backtrace.exp: Ditto.
464 * gdb.trace/circ.exp: Ditto.
465 * gdb.trace/collection.exp: Ditto.
466 * gdb.trace/deltrace.exp: Ditto.
467 * gdb.trace/infotrace.exp: Ditto.
468 * gdb.trace/limits.exp: Ditto.
469 * gdb.trace/packetlen.exp: Ditto.
470 * gdb.trace/passc-dyn.exp: Ditto.
471 * gdb.trace/passcount.exp: Ditto.
472 * gdb.trace/report.exp: Ditto.
473 * gdb.trace/save-trace.exp: Ditto.
474 * gdb.trace/tfind.exp: Ditto.
475 * gdb.trace/tracecmd.exp: Ditto.
476 * gdb.trace/while-dyn.exp: Ditto.
477 * gdb.trace/while-stepping.exp: Ditto.
478 * lib/gdb.exp: Ditto.
479 (gdb_compile): Handle nowarning option.