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