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