1 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
3 * gdb/remote.c (remote_download_command): Use FILEIO_O_TRUNC.
5 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
7 * gdb/remote.c (remote_hostio_parse_result): Check for strtol
10 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
12 * gdb/doc/gdb.texinfo (Host I/O Packets): Mention explicit negative
15 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
17 * gdb/remote.c (remote_download_command): Correct short write
20 2006-05-23 Daniel Jacobowitz <dan@codesourcery.com>
22 * gdb/remote.c (remote_fileio_errno_to_host)
23 (remote_hostio_error): Rename argument to errnum.
24 (_initialize_remote): Update calls to add_packet_config_cmd.
26 2006-05-23 Daniel Jacobowitz <dan@codesourcery.com>
28 * gdb/remote.c: Include "gdb/fileio.h".
29 (PACKET_Fopen, PACKET_Fread, PACKET_Fwrite, PACKET_Fclose): New
31 (remote_escape_output, remote_unescape_input): New functions.
32 (remote_write_bytes): Use remote_escape_output.
33 (readchar): Do not mask off the high bit.
34 (read_frame): Print binary packets correctly.
35 (getpkt_sane): Likewise. Return the number of bytes read
37 (remote_buffer_add_string, remote_buffer_add_bytes)
38 (remote_buffer_add_int, remote_hostio_parse_result)
39 (remote_hostio_send_command, remote_hostio_open)
40 (remote_hostio_write, remote_hostio_read)
41 (remote_hostio_close, remote_fileio_errno_to_host)
42 (remote_hostio_error, fclose_cleanup, remote_download_command)
43 (remote_upload_command): New functions.
44 (_initialize_remote): Register new packets and remote-upload
45 and remote-download commands.
47 * gdb/doc/gdb.texinfo (File Transfer): New section.
48 (Remote Configuration): Document Host I/O packet commands.
49 (Host I/O Packets): New section.
50 (Packets): Mention overloading of F prefix.
52 * gdb/gdbserver/Makefile.in (OBS): Add hostio.o.
54 * gdb/gdbserver/hostio.c: New file.
55 * gdb/gdbserver/remote-utils.c (putpkt_binary): New function,
56 broken out from putpkt.
58 (readchar): Do not mask the high bits. Correct the buffer
60 * gdb/gdbserver/server.c (main): Leave space for a trailing
61 zero in the packet buffer. Save the length of the
62 received packet. Handle Host I/O requests. Optionally call
64 * gdb/gdbserver/server.h (handle_f_hostio, putpkt_binary): New
67 2006-05-10 Daniel Jacobowitz <dan@codesourcery.com>
69 * gdb/frame.c (get_prev_frame): Move check for pc == 0 ...
70 (get_prev_frame_1): ... to here.
72 2006-05-09 Daniel Jacobowitz <dan@codesourcery.com>
74 * gdb/bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
76 * gdb/remote.c (remote_get_shared_libraries): Don't call solib_add.
77 * gdb/solib.c: Include "exceptions.h".
78 (solib_map_sections): Throw NOT_FOUND_ERROR if appropriate.
79 (symbol_add_stub): Delete.
80 (solib_read_symbols): Use TRY_CATCH. Inline symbol_add_stub.
81 Use current from_tty, not a copy from the so_list. Don't warn
82 a second time for a missing library.
83 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Print
84 out a single warning for all missing libraries.
85 * gdb/solist.h (struct so_list): Remove from_tty.
86 * gdb/Makefile.in (solib.o): Update.
88 2006-05-08 Daniel Jacobowitz <dan@codesourcery.com>
90 * gdb/remote.c (remote_get_shared_libraries): Check for NULL ops.
91 (remote_wait): Handle ",nop" on DLL packets and "dll:dll" response.
93 2006-05-08 Daniel Jacobowitz <dan@codesourcery.com>
95 * gdb/solib-target.c (solib_target_remove_one_solib): Correct loop
98 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
100 * arm-tdep.c (thumb_heuristic_function_start): New function.
101 (thumb_scan_prologue): Use it.
102 (arm_prologue_this_id): Adjust LOWEST_PC check.
104 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
106 Merge from gdb-csl-20060226-branch:
108 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
109 * gdb/doc/gdb.texinfo (Remote configuration): Mention "set remote
111 (General Query Packets): Document qPartInfo.
113 2006-04-18 Mark Mitchell <mark@codesourcery.com>
115 * gdb/mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
116 Iscramb2, Qscramb2, Qchannel2.
117 (mt_register_name): Likewise.
118 (mt_copro_register_type): Describe ZI2 and ZQ2.
120 2006-04-11 Mark Mitchell <mark@codesourcery.com>
122 * gdb/mt-tdep.c (mt_gdb_regnums): Define
123 MT_COPRO_PSEUDOREG_MAC_REGNUM.
124 (mt_register_name): Use it.
125 (mt_copro_register_type): Likewise.
126 (mt_register_type): Likewise.
127 (mt_pseudo_register_read): Likewise. Read the MAC register, not
128 the coprocessor register.
129 (mt_pseudo_register_write): Likewise.
131 2006-04-17 Daniel Jacobowitz <dan@codesourcery.com>
133 * gdb/buildsym.c (start_subfile): Handle producer.
134 (record_producer): New function.
135 * gdb/buildsym.h (struct subfile): Include producer.
136 (record_producer): New prototype.
137 * gdb/dwarf2-frame.c (struct dwarf2_cie): Add version.
138 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
139 armcc_cfa_offsets_reversed.
140 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
141 (dwarf2_frame_find_quirks): New function.
142 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
143 (decode_frame_entry_1): Record the CIE version.
144 * gdb/dwarf2read.c (read_file_scope): Save the producer.
145 * gdb/symtab.h (struct symtab): Rename unused version member to
148 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
150 * gdb/Makefile.in (ALLDEPFILES): Add solib-target.c.
151 (remote.o): Update dependencies.
152 (solib-target.o, symbian-tdep.o): New rules.
153 * gdb/arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
154 (arm_force_mode_string): New.
155 (arm_pc_is_thumb): Use them.
156 (thumb_scan_prologue): Abort scan when symbols are missing.
157 (arm_show_fallback_mode, arm_show_force_mode): New.
158 (_initialize_arm_tdep): Register fallback-mode and force-mode.
159 * gdb/configure.tgt: Add arm*-*-symbian*.
160 * gdb/infcmd.c (_initialize_infcmd): Make "set args" a string
162 * gdb/inflow.c (kill_command): Assume that a target with stack
164 * gdb/infrun.c (init_wait_for_inferior): Clear
165 target_last_wait_ptid.
166 (insert_step_resume_breakpoint_at_frame): Add use_previous argument.
167 Use get_prev_frame if requested.
168 (handle_inferior_event): Update TARGET_WAITKIND_LOADED support.
169 Update calls to insert_step_resume_breakpoint_at_frame.
170 * gdb/remote.c: Include "solist.h".
171 (remote_exec_file): New variable.
172 (PACKET_vAttach, PACKET_vRun, PACKET_qfDllInfo): New enums.
173 (remote_mark_running, remote_mark_killed): New functions.
174 (extended_remote_restart): Don't send a query.
175 (get_offsets): Handle TextSeg and DataSeg response.
176 (parse_load_response, remote_get_shared_libraries): New functions.
177 (remote_start_remote): Take a target as the second argument for
178 extended mode. Check whether the target is running. Reset
180 (remote_open_1): Assume the target is running. Don't reset
181 inferior_ptid here. Pass the target to remote_start_remote
182 in extended mode. Only do some setup if the target is running.
183 (remote_detach_1): New function, renamed from remote_detach.
184 Don't say we are disconnecting if we aren't.
185 (remote_detach): Call remote_detach_1.
186 (extended_remote_detach): New function.
187 (remote_disconnect): Take a target_ops argument. Correct the
188 error message. Call remote_mourn_1 directly.
189 (extended_remote_attach_1, extended_remote_attach)
190 (extended_async_remote_attach): New functions.
191 (remote_wait): Handle load and unload events.
192 (extended_remote_mourn_1): New function.
193 (extended_remote_mourn): Replace with a call to
194 extended_remote_mourn_1.
195 (extended_async_remote_mourn): New function.
196 (extended_remote_run): New function.
197 (extended_remote_create_inferior_1): New function, from
198 extended_remote_create_inferior. Call get_offsets.
199 (extended_remote_create_inferior)
200 (extended_remote_async_create_inferior): Use it.
201 (remote_stopped_by_watchpoint, crc32_table)
202 (compare_sections_command): Whitespace tweaks.
203 (init_remote_ops, init_extended_remote_ops): Update.
204 (init_remote_async_ops): Whitespace tweaks and update.
205 (init_extended_async_remote_ops): Update.
206 (_initialize_remote): Add new configurable packets. Add
207 "set remote exec-file".
208 * gdb/solib-som.c (som_current_sos): Set addr_low and addr_high.
209 * gdb/solib-target.c: New file.
210 * gdb/solib.c (solib_symbols_extension): New variable.
211 (solib_open): Use it.
212 (solib_map_sections): Set addr_low and addr_high instead of
214 (info_sharedlibrary_command): Use addr_low and addr_high.
215 * gdb/solib.h (solib_symbols_extension): New declaration.
216 * gdb/solist.h (struct so_list): Replace textsection
217 with addr_low and addr_high.
218 (struct target_so_ops): Add add_one_solib and remove_one_solib.
219 * gdb/symbian-tdep.c: New file.
220 * gdb/symfile.c (init_objfile_sect_indices): Use
221 symfile_find_segment_sections to find the text section.
222 (symfile_find_segments, symfile_find_segment_sections)
223 (symfile_map_offsets_to_segments, symfile_find_segment_lengths)
224 (symfile_section_offset_from_segment): New functions.
225 * gdb/symfile.h (symfile_map_offsets_to_segments)
226 (symfile_section_offset_from_segment)
227 (symfile_find_segment_lengths): New prototypes.
228 * gdb/target.c (debug_to_disconnect): Delete.
229 (update_current_target): Make global. Do not inherit to_disconnect.
230 Mention to_get_shared_libraries.
231 (target_disconnect): Search for to_disconnect.
232 (target_get_shared_libraries): New.
233 (setup_target_debug): Update.
234 * gdb/target.h (struct target_ops): Update to_disconnect prototype.
235 Add to_get_shared_libraries.
236 (target_has_execution): Update comment.
237 (target_get_shared_libraries, update_current_target): New
239 * gdb/cli/cli-setshow.c (do_setshow_command): Revise string variable
241 * gdb/config/arm/symbian.mt: New file.
242 * gdb/doc/gdb.texinfo (ARM): Document set/show arm fallback-mode
243 and set/show arm force-mode.
245 * gdb/testsuite/gdb.base/define.exp: Don't use backslashes in the
248 * readline/emacs_keymap.c: Add a MINGW32 hack.
249 * readline/readline.c: Use _rl_bind_if_unbound to avoid macro bugs.
251 * gdb/gdbserver/linux-low.c (linux_kill): Reset inferior thread and
253 (linux_detach): Likewise.
254 (linux_wait_for_process): Discard unexpected exits.
255 * gdb/gdbserver/remote-utils.c (unblock_async_io): Ignore if we are
257 * gdb/gdbserver/server.c (exit_requested, restarting_program)
258 (program_argv): New variables.
259 (attached): Move higher.
260 (start_inferior): Clear attached. Use restarting_program to avoid
261 troubles with the 'R' packet.
262 (attach_inferior): Set attached.
263 (handle_query): Implement "monitor exit".
264 (handle_query_non_running): New function.
265 (handle_v_cont): Report errors.
266 (handle_v_attach, handle_v_run): New.
267 (handle_v_requests): Handle vAttach and vRun.
268 (handle_v_requests_non_running, non_running): New.
269 (debug_threads): Add declaration.
270 (main): Handle --debug. Don't adjust attached here.
271 Save the argv. Keep track of requested exits. Use
272 non_running when the target is dead. Do not always exit
273 after detach. Fix up Hc support. Do not automatically
274 restart the inferior in extended mode.
276 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
279 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
280 * remote.c (extended_remote_restart): Pass the correct length
283 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
284 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
285 (init_remote_state): Initialize the new fields.
286 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
287 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
288 (remote_get_threadinfo, parse_threadlist_response)
289 (remote_get_threadlist, remote_current_thread, remote_threads_info)
290 (remote_threads_extra_info, extended_remote_restart, get_offsets)
291 (remote_check_symbols, remote_open_1, remote_detach)
292 (remove_vcont_probe, remote_vcont_resume, remote_resume)
293 (remote_wait, remote_async_wait, fetch_register_using_p)
294 (remote_fetch_registers, store_register_using_P)
295 (remote_store_registers, check_binary_download, remote_write_bytes)
296 (remote_read_bytes, remote_insert_breakpoint)
297 (remote_remove_breakpoint, remote_insert_watchpoint)
298 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
299 (remote_remove_hw_breakpoint, compare_sections_command)
300 (remote_xfer_partial, remote_rcmd, packet_command)
301 (remote_get_thread_local_address): Use the global incoming buffer
302 instead of alloca or xmalloc. Limit outgoing packets to
303 rs->remote_packet_size and incoming packets to rs->buf_size.
304 Update calls to getpkt and remote_send.
305 (remote_send): Take arguments by reference.
306 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
307 (skip_frame): New function.
308 (read_frame): Take arguments by reference. Expand the packet
309 buffer instead of issuing an error.
310 (getpkt, getpkt_sane): Take arguments by reference.
311 * remote.h (getpkt): Update prototype and doc.
312 * tracepoint.c (remote_get_noisy_reply): Take arguments by
314 (target_buf): Change from array to pointer.
315 (target_buf_size): New variable.
316 (remote_set_transparent_ranges): Update call to getpkt.
317 (trace_start_command, trace_stop_command, trace_status_command):
318 Update calls to remote_get_noisy_reply.
319 (finish_tfind_command): Take arguments by reference.
320 (trace_find_command, trace_find_pc_command)
321 (trace_find_tracepoint_command, trace_find_line_command):
322 (trace_find_range_command, trace_find_outside_command): Update
323 calls to finish_tfind_command.
324 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
326 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
328 * gdb/breakpoint.c (insert_bp_location, reattach_breakpoints)
329 (remove_breakpoint, delete_breakpoint): Update calls to changed
331 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
332 (single_step_breakpoints, insert_single_step_breakpoint)
333 (remove_single_step_breakpoints): New.
334 * gdb/breakpoint.h (struct bp_location): Add placed_address and
335 placed_size. Move shadow_contents below the new comment.
336 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
337 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
339 * gdb/gdbarch.sh: Forward struct bp_location in gdbarch.h.
340 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
342 * gdb/mem-break.c (default_memory_insert_breakpoint): Update. Set
343 placed_address and placed_size.
344 (default_memory_remove_breakpoint): Update. Don't use
346 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
347 * gdb/target.c (update_current_target): Update prototypes for changed
349 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
350 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
352 * gdb/target.h: Forward declare struct bp_location.
353 (struct target_ops): Use a bp_location argument for
354 to_insert_breakpoint, to_remove_breakpoint,
355 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
356 (target_insert_breakpoint, target_remove_breakpoint)
357 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
358 (memory_insert_breakpoint, memory_remove_breakpoint)
359 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
361 * gdb/config/i386/nm-i386.h: Forward declare struct bp_location.
362 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
363 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
365 * gdb/gdbarch.c, gdbarch.h: Regenerated.
367 * gdb/alpha-tdep.c (alpha_software_single_step): Use
368 insert_single_step_breakpoint and remove_single_step_breakpoints.
369 Remove unused statics.
370 * gdb/arm-tdep.c (arm_software_single_step): Likewise. Add a note.
371 * gdb/cris-tdep.c (cris_software_single_step): Likewise.
372 * gdb/mips-tdep.c (mips_software_single_step): Likewise.
373 * gdb/rs6000-tdep.c (rs6000_software_single_step): Likewise.
374 * gdb/sparc-tdep.c (sparc_software_single_step): Likewise.
375 * gdb/wince.c (struct thread_info_struct): Remove step_prev.
376 (undoSStep): Use remove_single_step_breakpoints.
377 (wince_software_single_step): Use insert_single_step_breakpoint.
379 * gdb/corelow.c (ignore): Remove unneeded prototype. Update second
381 * gdb/exec.c (ignore): Likewise.
382 * gdb/sol-thread.c (ignore): Likewise.
384 * gdb/procfs.c (dbx_link_bpt_addr, dbx_link_shadow_contents): Delete.
386 (procfs_wait): Check it.
387 (procfs_mourn_inferior): Remove it if necessary.
388 (remove_dbx_link_breakpoint): Use it.
389 (insert_dbx_link_bpt_in_file): Set it.
390 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
391 * gdb/rs6000-nat.c (exec_one_dummy_insn): Use
392 deprecated_insert_raw_breakpoint and
393 deprecated_remove_raw_breakpoint.
394 * gdb/solib-irix.c (shadow_contents, breakpoint_addr): Delete.
395 (base_breakpoint): New.
396 (disable_break): Use it.
397 (enable_break): Set it.
399 * gdb/i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
401 * gdb/ia64-tdep.c (ia64_memory_insert_breakpoint)
402 (ia64_memory_remove_breakpoint): Likewise.
403 * gdb/m32r-tdep.c (m32r_memory_insert_breakpoint)
404 (m32r_memory_remove_breakpoint): Likewise.
405 * gdb/monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
406 Likewise. Remove unnecessary prototypes. Use placed_address
407 and placed_size. Removed useless read from memory.
408 * gdb/nto-procfs.c (procfs_insert_breakpoint)
409 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
410 (procfs_remove_hw_breakpoint): Update.
411 * gdb/ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
412 * gdb/ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
413 * gdb/ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
414 * gdb/ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
415 * gdb/remote-e7000.c (e7000_insert_breakpoint)
416 (e7000_remove_breakpoint): Likewise.
417 * gdb/remote-m32r-sdi.c (m32r_insert_breakpoint)
418 (m32r_remove_breakpoint): Likewise.
419 * gdb/remote-mips.c (mips_insert_breakpoint)
420 (mips_remove_breakpoint): Likewise.
421 * gdb/remote-rdp.c (remote_rdp_insert_breakpoint)
422 (remote_rdp_remove_breakpoint): Likewise.
423 (rdp_step): Use deprecated_insert_raw_breakpoint and
424 deprecated_remove_raw_breakpoint.
425 * gdb/remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
427 * gdb/remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
429 (init_gdbsim_ops): Use memory_insert_breakpoint and
430 memory_remove_breakpoint.
431 * gdb/remote-st.c (st2000_insert_breakpoint)
432 (st2000_remove_breakpoint): Update. Remove unused
434 * gdb/remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
435 Update. Use placed_address and placed_size.
436 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
438 * gdb/doc/gdbint.texinfo (Watchpoints, Target Conditionals): Update insert
439 and remove breakpoint prototypes.
441 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
444 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
445 * remote.c (remote_wait): Convert warning to error before
446 parsing corrupt packets.
448 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
450 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
453 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
456 2006-03-09 Paul Brook <paul@codesourcery.com>
457 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
460 2006-04-02 Daniel Jacobowitz <dan@codesourcery.com>
462 * Makefile.def (host_modules, dependencies): Add expat.
463 * configure.in (host_libs): Add expat.
464 * Makefile.in, configure: Regenerate.
465 * expat: New directory.
467 * gdb/Makefile.in: Add expat, new files, and xml-builtin.c. Update
469 * gdb/acinclude.m4: Include stdint.m4.
470 * gdb/configure.ac: Use AC_C_BIGENDIAN and GCC_HEADER_STDINT.
471 * gdb/aclocal.m4, gdb/config.in, gdb/configure: Regenerate.
473 * gdb/auxv.h: Remove target_auxv_read prototype.
474 * gdb/auxv.c, gdb/avr-tdep.c, gdb/ia64-tdep.c, gdb/linux-nat.c,
475 gdb/procfs.c: Use target_read_whole.
476 * gdb/sparc-tdep.c: Use target_read.
478 * gdb/frame.c: Work around null frame_id handling.
480 * gdb/breakpoint.c, gdb/f-valprint.c, gdb/infcmd.c, gdb/inflow.c,
481 gdb/infrun.c, gdb/stack.c, gdb/valops.c, gdb/varobj.c,
482 gdb/cli-cmds.c, gdb/testsuite/gdb.base/default.exp,
483 gdb/tui/tui-disasm.c, gdb/tui/tui-source.c,
484 gdb/tui/tui-winsource.c: Selected frame fixups.
486 * gdb/README.AVAIL, gdb/available.c, gdb/available.h,
487 gdb/parse-avail.c, gdb/sha1.c, gdb/features/feature_to_c.sh,
488 gdb/features/gdb-target.dtd: New files.
489 * gdb/arm-tdep.c: Handle missing FPA, present VFP, and
490 self-described registers. Decode VFP register numbers from DWARF.
491 * gdb/arm-tdep.h: Add flags for VFP and FPA.
492 * gdb/gdbarch.sh: Add available_features_support and feature_set.
493 Export the arch's obstack. Check feature sets. Improve error
495 * gdb/gdbarch.c, gdb/gdbarch.h: Regenerated.
496 * gdb/infcmd.c: Trigger architecture selection.
497 * gdb/remote.c: Available feature support. qPacketInfo support.
498 Improved g/G packet support. Improved qPart support.
499 qPart:features support.
500 * gdb/symfile.c: Adjust download_write_size.
501 * gdb/target.c: Revise partial transfer support. Handle available
502 features method. Add target_read_whole.
503 * gdb/target.h: Add the available features object and methods.
504 * gdb/doc/gdb.texinfo: Document new features.
506 * gdb/symfile.h: Include symtab.h.
508 2006-03-31 Nathan Sidwell <nathan@codesourcery.com>
510 * gdb/config/m68k/monitor.mt (TDEPFILES): Remove unneeded
512 (DEPRECATED_TM_FILE): Remove.
514 * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Define.
515 (REGISTER_BYTES_FP): Use it.
517 * gdb/configure.tgt (m68k-*-uclinux*): target is linux.
519 * gdb/remote.c (remote_fetch_registers): Revert bogus change.
521 * gdb/remote.c (remote_fetch_registers): Don't warn about short
522 register packet if we've not set the expected value.
524 * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
527 * gdb/gdbserver/Makefile.in (reg-cf.o, reg-cf.c): New targets.
528 * gdb/gdbserver/configure.srv (m68k*-*-uclinux*): New target.
529 * gdb/gdbserver/linux-low.c (linux_create_inferior): Use vfork on
531 (linux_resume_one_process): Remove extraneous cast.
532 (linux_read_offsets): New.
533 (linux_target_op): Add linux_read_offsets on mmuless systems.
534 * gdb/gdbserver/server.c (handle_query): Add qOffsets logic.
535 * gdb/gdbserver/target.h (struct target_ops): Add read_offsets.
537 2006-03-30 Mark Mitchell <mark@codesourcery.com>
539 * libiberty/configure.ac: Add cygpath for mingw hosts.
540 * libiberty/configure: Rebuilt.
541 * libiberty/Makefile.in: Add cygpath.
542 * libiberty/cygpath.c: New.
544 2006-03-30 Paul Brook <paul@codesourcery.com>
546 Backport form mainline.
547 * gdb/testsuite/gdb.mi/mi-until.exp: kfail broken until command.
548 * gdb/testsuite/gdb.mi/mi2-until.exp: Ditto.
550 2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
552 * gdb/m68k-tdep.c (M68K_FPREG_TYPE, M68K_LONG_DOUBLE_FORMAT,
553 M68K_RETURN_FP0): New. Set for Coldfire.
554 (m68k_register_type, m68k_register_to_value,
555 m68k_svr4_extract_return_value, m68k_svr4_store_return_value,
556 m68k_gdbarch_init): Use them.
558 2006-03-21 Mark Mitchell <mark@codesourcery.com>
560 * gdb/ser-mingw.c (net_windows_state): Add mutex.
561 (net_windows_select_thread): Grab lock around access to
563 (net_windows_wait_handle): Do not reset the read_event.
564 (net_windows_open): Create a mutex.
565 (net_windows_read_prim): New function.
566 (_initialize_ser_windows): Use it.
568 2006-03-20 Mark Mitchell <mark@codesourcery.com>
570 * libiberty/pex-common.c (pex_run): Close the write end of the
571 pipe after starting the child.
573 * gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
575 2006-03-21 Paul Brook <paul@codesourcery.com>
576 Daniel Jacobowitz <dan@codesourcery.com>
577 Jim Blandy <jimb@codesourcery.com>
579 * gdb/Makefile.in: Add prologue_value.{c,h}
580 * gdb/arm-tdep.c: Include prologue-value.h.
581 (thumb_skip_prologue): Remove.
582 (thumb_analyze_prologue): New function.
583 (arm_skip_prologue): Use thumb_analyze_prologue.
584 (thumb_scan_prologue): Ditto.
585 * gdb/prologue-value.c: New file.
586 * gdb/prologue-value.h: New file.
587 * gdb/config/arm/embed.mt (TDEPFILES): Add prologue-value.o.
588 * gdb/config/arm/linux.mt (TDEPFILES): Add prologue-value.o.
589 * gdb/config/arm/nbsd.mt (TDEPFILES): Add prologue-value.o.
590 * gdb/config/arm/wince.mt (TDEPFILES): Add prologue-value.o.
591 * gdb/testsuite/gdb.arch/thumb-prologue.c: New file.
592 * gdb/testsuite/gdb.arch/thumb-prologue.exp: New file.
594 2006-03-20 Mark Mitchell <mark@codesourcery.com>
596 * configure.tgt (arm*-stellaris-*): Use armv7m configuration.
597 * config/arm/armv7m.mt: New file.
598 * config/arm/tm-armv7m.h: Likewise.
599 * arm-tdep.c (arm_register_name_strings): Use xPSR on ARM V7M.
600 (arm_pc_is_thumb): ARM V7M is always Thumb.
601 (set_disassembly_style): Use xPSR on ARM V7M.
602 (arm_write_pc): Do not set T bit in CSPR on V7M.
604 2006-03-20 Mark Mitchell <mark@codesourcery.com>
606 * libiberty/pex-win32.c (<errno.h>): Include.
608 (argv_to_cmdline): New function.
609 (std_suffixes): New variable.
610 (no_suffixes): Likewise.
611 (find_executable): New function.
612 (win32_spawn): Likewise.
613 (spawn_script): Use win32_spawn instead of _spawnv[p].
614 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
615 (pex_win32_wait): Likewise.
617 2006-03-19 Mark Mitchell <mark@codesourcery.com>
619 * gdb/ser-mingw.c (free_pipe_state): Close pipe before calling
622 2006-03-17 Mark Mitchell <mark@codesourcery.com>
624 * gdb/config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
626 2006-03-17 Jim Blandy <jimb@codesourcery.com>
628 Add support for 'target remote |' on MinGW.
629 * gdb/ser-mingw.c (struct pipe_state): New structure.
630 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
631 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
632 (pipe_windows_write, pipe_wait_handle): New functions.
633 (_initialize_ser_windows): Register a "pipe" interface based on
636 * libiberty/pex-common.c (pex_write_input): New function.
637 * libiberty/pexecute.txh (pex_write_input): Document it.
638 * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
639 * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
640 (funcs): List it as our fdopenw function.
641 * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
642 (funcs): List it as our fdopenw function.
643 * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
644 * libiberty/pex-msdos (funcs): Same.
645 * libiberty/functions.texi: Regenerated.
647 * include/libiberty.h (pex_write_input): New declaration.
649 * libiberty/pex-common.h (struct pex_obj): Doc fixes.
651 * libibery/functions.texi: Regenerate.
653 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
655 * gdb/gdb_proc_service.h (paddr_t): Use psaddr_t if available.
656 * gdb/proc-service.c (ps_xfer_memory): Cast paddr_t to unsigned
658 (ps_pglobal_lookup): Cast CORE_ADDR to paddr_t.
660 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
662 * gdb/gdbserver/linux-mips-low.c: Include <sys/ptrace.h> and
663 "gdb_proc_service.h".
664 (PTRACE_GET_THREAD_AREA): Define.
665 (ps_get_thread_area): New function.
666 * gdb/gdbserver/Makefile.in (linux-i386-low.o, linux-mips-low.o)
667 (linux-x86-64-low.o): Update.
669 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
671 * gdb/gdbserver/configure.ac: Remove checks for prfpregset_t.
672 * gdb/gdbserver/gdb_proc_service.h: New file.
673 * gdb/gdbserver/linux-i386-low.c, gdb/gdbserver/linux-x86-64-low.c,
674 gdb/gdbserver/thread-db.c: Use the new "gdb_proc_service.h".
675 * gdb/gdbserver/proc-service.c: Likewise.
676 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
677 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
678 * gdb/gdbserver/Makefile.in (gdb_proc_service_h): Updated.
679 * gdb/gdbserver/configure, config.in: Regenerated.
681 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
683 * gdb/Makefile.in (mips_linux_tdep_h): New.
684 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
685 * gdb/mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
687 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
688 (mips64_linux_regsets_fetch_registers)
689 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
690 (mips64_linux_store_registers): New.
691 (_initialize_mips_linux_nat): Override to_fetch_registers and
693 * gdb/mips-linux-tdep.h: New file.
694 * gdb/mips-linux-tdep.c: Include "mips-linux-tdep.c".
695 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
696 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
697 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
698 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
699 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
700 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
701 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
702 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
703 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
704 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
705 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
706 (supply_32bit_reg): Use gdb_byte.
707 (supply_64bit_reg): New.
708 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
709 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
710 (fill_gregset, supply_fpregset): Update for renamed types.
711 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
712 (mips64_fill_gregset): Make global. Handle 32-bit register
714 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
717 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
719 * gdb/mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
720 (mips_fill_gregset): Renamed from fill_gregset.
721 (mips_supply_fpregset): Renamed from supply_fpregset.
722 (mips_fill_fpregset): Renamed from fill_fpregset.
723 (fetch_core_registers): Update calls.
724 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
727 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
729 * gdb/mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
731 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
733 * gdb/mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
734 Correct arithmetic for 64-bit CORE_ADDR.
736 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
738 * gdb/mips-linux-tdep.c: Include "floatformat.h".
739 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
740 (mips_n32n64_return_value): Support 128-bit long double.
741 (print_gp_register_row): Don't print spaces before ignored
742 or floating point registers.
744 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
746 * gdb/mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
748 (non_heuristic_proc_desc): Likewise.
750 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
752 * gdb/mips-linux-nat.c: Include "gdb_proc_service.h".
753 (PTRACE_GET_THREAD_AREA): Define.
754 (ps_get_thread_area): New.
755 * gdb/Makefile.in (mips-linux-nat.o): Update.
757 2006-03-08 Paul Brook <paul@codesourcery.com>
759 Backport from mainline.
760 * gdb/arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
761 (arm_frame_align): New function.
762 (arm_gdbarch_init): Use it.
764 2006-03-07 Paul Brook <paul@codesourcery.com>
766 Backport from mainline.
767 * gdb/testsuite/gdb.base/assign.exp: Correct fail message.
769 2006-03-07 Paul Brook <paul@codesourcery.com>
771 Backport from mainline.
772 * sim/arm/elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
774 2006-03-07 Paul Brook <paul@codesourcery.com>
776 Backport from mainline.
777 * gdb/testsuite/lib/compiler.c: Extract armcc version number.
778 * gdb/testsuite/lib/compiler.cc: Ditto.
780 2006-03-07 Paul Brook <paul@codesourcery.com>
782 Backport from mainline.
783 2006-03-03 Khem Raj <khem@mvista.com>
784 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
786 2006-03-07 Paul Brook <paul@codesourcery.com>
788 Backport from mainline.
789 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
791 * gdb.arch/altivec-regs.exp: Ditto.
792 * gdb.arch/e500-abi.exp: Ditto.
793 * gdb.arch/e500-regs.exp: Ditto.
794 * gdb.base/all-bin.exp: Ditto.
795 * gdb.base/annota1.exp: Ditto.
796 * gdb.base/annota3.exp: Ditto.
797 * gdb.base/args.exp: Ditto.
798 * gdb.base/arithmet.exp: Ditto.
799 * gdb.base/assign.exp: Ditto.
800 * gdb.base/async.exp: Ditto.
801 * gdb.base/bang.exp: Ditto.
802 * gdb.base/break.exp: Ditto.
803 * gdb.base/call-rt-st.exp: Ditto.
804 * gdb.base/completion.exp: Ditto.
805 * gdb.base/cond-expr.exp: Ditto.
806 * gdb.base/condbreak.exp: Ditto.
807 * gdb.base/consecutive.exp: Ditto.
808 * gdb.base/define.exp: Ditto.
809 * gdb.base/display.exp: Ditto.
810 * gdb.base/ena-dis-br.exp: Ditto.
811 * gdb.base/environ.exp: Ditto.
812 * gdb.base/eval-skip.exp: Ditto.
813 * gdb.base/info-proc.exp: Ditto.
814 * gdb.base/jump.exp: Ditto.
815 * gdb.base/logical.exp: Ditto.
816 * gdb.base/long_long.exp: Ditto.
817 * gdb.base/maint.exp: Ditto.
818 * gdb.base/miscexprs.exp: Ditto.
819 * gdb.base/pc-fp.exp: Ditto.
820 * gdb.base/pointers.exp: Ditto.
821 * gdb.base/relational.exp: Ditto.
822 * gdb.base/reread.exp: Ditto.
823 * gdb.base/sect-cmd.exp: Ditto.
824 * gdb.base/sep.exp: Ditto.
825 * gdb.base/sepdebug.exp: Ditto.
826 * gdb.base/until.exp: Ditto.
827 * gdb.base/whatis-exp.exp: Ditto.
828 * gdb.cp/annota2.exp: Ditto.
829 * gdb.cp/annota3.exp: Ditto.
830 * gdb.trace/actions.exp: Ditto.
831 * gdb.trace/backtrace.exp: Ditto.
832 * gdb.trace/circ.exp: Ditto.
833 * gdb.trace/collection.exp: Ditto.
834 * gdb.trace/deltrace.exp: Ditto.
835 * gdb.trace/infotrace.exp: Ditto.
836 * gdb.trace/limits.exp: Ditto.
837 * gdb.trace/packetlen.exp: Ditto.
838 * gdb.trace/passc-dyn.exp: Ditto.
839 * gdb.trace/passcount.exp: Ditto.
840 * gdb.trace/report.exp: Ditto.
841 * gdb.trace/save-trace.exp: Ditto.
842 * gdb.trace/tfind.exp: Ditto.
843 * gdb.trace/tracecmd.exp: Ditto.
844 * gdb.trace/while-dyn.exp: Ditto.
845 * gdb.trace/while-stepping.exp: Ditto.
846 * lib/gdb.exp: Ditto.
847 (gdb_compile): Handle nowarning option.