1 2006-10-02 Daniel Jacobowitz <dan@codesourcery.com>
4 2006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
5 * Makefile.def (fixincludes): Correct extra_configure_flags
7 (expat): Don't install. Don't build shared libraries.
8 * Makefile.in: Regenerated.
10 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
13 * buildsym.c, symtab.c: Add local hack for FILENAME_CMP testing.
14 * utils.c (cygwin_filename_cmp): New.
17 2006-04-21 Frederic Riss <frederic.riss@st.com>
18 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
19 compilation directory as last argument.
20 Always pass comp_dir as second argument to start_subfile and prepend
21 dirname to the filename when necessary.
22 Remove now superfluous search for pre-existing subfile.
23 (dwarf_decode_lines): Pass the compilation directory to
27 * config/symbian.exp (gdb_target_symbian): Handle a running target.
28 (gdb_load): Add return value.
30 * gdb.base/completion.exp: Test arg rather than a. Handle
31 very small lists of symbols.
33 * gdb.base/list.exp: Differentiate run behavior based on
36 * gdb.base/maint.exp: Accept local symbols. Accept missing .data.
38 * gdb.base/remote.exp: Update packet limits.
40 * gdb.base/varargs.exp: Don't pass an empty list item.
42 * lib/gdb.exp (fullname_syntax): Recognize forward slashes in DOS
46 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
47 * gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
50 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
51 * gdb.stabs/exclfwd.exp: Skip the test if configure did not
54 2006-05-06 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
55 * gdb.mi/mi-basics.exp: Add missing serial number to
56 expected output in some mi_gdb_test statements.
57 * gdb.mi/mi2-basics.exp: Likewise.
59 2006-09-25 Daniel Jacobowitz <dan@codesourcery.com>
62 * gdb.arch/thumb-prologue.c: Update breakpoint mechanism. Restore
63 lr before returning for completeness.
64 * gdb.arch/thumb-prologue.exp: Update to set a breakpoint.
66 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
69 * infrun.c (handle_inferior_event): Always clear stop_stack_dummy.
70 Don't check it for load events.
72 2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
75 * config/symbian.exp (cyg_to_win): New.
76 (symbian_compile): Use it. Handle c++ and incdir.
78 2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
81 * gdb.base/commands.exp (bp_deleted_in_command_test)
82 (temporary_breakpoint_commands): Allow run.c without a pathname.
83 * gdb.base/ending-run.exp: Allow E32Main.
85 2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
88 * config/symbian.exp (infer_host_exec): Cope with MI.
89 (mi_target_gdb_load): New.
90 * lib/mi-support.exp: Use mi_target_gdb_load.
92 2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
95 * gdb.base/args.c (main): Add breakpoint marker.
96 * gdb.base/args.exp: Use args_test for tests. Add new tests which
97 really test empty arguments.
101 2006-08-30 Daniel Jacobowitz <dan@codesourcery.com>
104 * remote.c (remote_start_remote, extended_remote_attach_1)
105 (extended_remote_mourn_1, extended_remote_run): Use only rs->buf.
107 2006-08-23 Daniel Jacobowitz <dan@codesourcery.com>
110 * config/symbian.exp (symbian_compile): Fail after unknown options.
111 Copy ELF files from the build tree.
112 * gdb.asm/asm-source.exp: Use untested.
114 2006-08-17 Daniel Jacobowitz <dan@codesourcery.com>
117 * config/symbian.exp: New file.
119 2006-08-17 Daniel Jacobowitz <dan@codesourcery.com>
122 * objfiles.c (init_entry_point_info): Handle shared objects
125 2006-07-11 Daniel Jacobowitz <dan@codesourcery.com>
128 * symfile.c (symfile_section_offset_from_segment): Correct
131 * solib.c (solib_open): Always set errno.
133 2006-07-11 Daniel Jacobowitz <dan@codesourcery.com>
136 * symfile.c (symfile_map_offsets_to_segments): Don't warn
138 (symfile_section_offset_from_segment): Likewise.
140 2006-06-02 Daniel Jacobowitz <dan@codesourcery.com>
142 * gdb/remote.c (remote_hostio_write): Correct buffer length
145 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
147 * gdb/exec.c (exec_set_section_address): Always update the
149 * gdb/objfiles.c (objfile_relocate): Also relocate the
150 target sections table.
151 * gdb/Makefile.in (objfiles.o): Update.
153 * gdb/remote.c (remote_xfer_partial): Fail if the target is not
156 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
158 * gdb/remote.c (remote_download_command): Use FILEIO_O_TRUNC.
160 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
162 * gdb/remote.c (remote_hostio_parse_result): Check for strtol
165 2006-06-01 Daniel Jacobowitz <dan@codesourcery.com>
167 * gdb/doc/gdb.texinfo (Host I/O Packets): Mention explicit negative
170 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
172 * gdb/remote.c (remote_download_command): Correct short write
175 2006-05-23 Daniel Jacobowitz <dan@codesourcery.com>
177 * gdb/remote.c (remote_fileio_errno_to_host)
178 (remote_hostio_error): Rename argument to errnum.
179 (_initialize_remote): Update calls to add_packet_config_cmd.
181 2006-05-23 Daniel Jacobowitz <dan@codesourcery.com>
183 * gdb/remote.c: Include "gdb/fileio.h".
184 (PACKET_Fopen, PACKET_Fread, PACKET_Fwrite, PACKET_Fclose): New
186 (remote_escape_output, remote_unescape_input): New functions.
187 (remote_write_bytes): Use remote_escape_output.
188 (readchar): Do not mask off the high bit.
189 (read_frame): Print binary packets correctly.
190 (getpkt_sane): Likewise. Return the number of bytes read
192 (remote_buffer_add_string, remote_buffer_add_bytes)
193 (remote_buffer_add_int, remote_hostio_parse_result)
194 (remote_hostio_send_command, remote_hostio_open)
195 (remote_hostio_write, remote_hostio_read)
196 (remote_hostio_close, remote_fileio_errno_to_host)
197 (remote_hostio_error, fclose_cleanup, remote_download_command)
198 (remote_upload_command): New functions.
199 (_initialize_remote): Register new packets and remote-upload
200 and remote-download commands.
202 * gdb/doc/gdb.texinfo (File Transfer): New section.
203 (Remote Configuration): Document Host I/O packet commands.
204 (Host I/O Packets): New section.
205 (Packets): Mention overloading of F prefix.
207 * gdb/gdbserver/Makefile.in (OBS): Add hostio.o.
208 (hostio.o): New rule.
209 * gdb/gdbserver/hostio.c: New file.
210 * gdb/gdbserver/remote-utils.c (putpkt_binary): New function,
211 broken out from putpkt.
213 (readchar): Do not mask the high bits. Correct the buffer
215 * gdb/gdbserver/server.c (main): Leave space for a trailing
216 zero in the packet buffer. Save the length of the
217 received packet. Handle Host I/O requests. Optionally call
219 * gdb/gdbserver/server.h (handle_f_hostio, putpkt_binary): New
222 2006-05-10 Daniel Jacobowitz <dan@codesourcery.com>
224 * gdb/frame.c (get_prev_frame): Move check for pc == 0 ...
225 (get_prev_frame_1): ... to here.
227 2006-05-09 Daniel Jacobowitz <dan@codesourcery.com>
229 * gdb/bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
231 * gdb/remote.c (remote_get_shared_libraries): Don't call solib_add.
232 * gdb/solib.c: Include "exceptions.h".
233 (solib_map_sections): Throw NOT_FOUND_ERROR if appropriate.
234 (symbol_add_stub): Delete.
235 (solib_read_symbols): Use TRY_CATCH. Inline symbol_add_stub.
236 Use current from_tty, not a copy from the so_list. Don't warn
237 a second time for a missing library.
238 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Print
239 out a single warning for all missing libraries.
240 * gdb/solist.h (struct so_list): Remove from_tty.
241 * gdb/Makefile.in (solib.o): Update.
243 2006-05-08 Daniel Jacobowitz <dan@codesourcery.com>
245 * gdb/remote.c (remote_get_shared_libraries): Check for NULL ops.
246 (remote_wait): Handle ",nop" on DLL packets and "dll:dll" response.
248 2006-05-08 Daniel Jacobowitz <dan@codesourcery.com>
250 * gdb/solib-target.c (solib_target_remove_one_solib): Correct loop
253 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
255 * arm-tdep.c (thumb_heuristic_function_start): New function.
256 (thumb_scan_prologue): Use it.
257 (arm_prologue_this_id): Adjust LOWEST_PC check.
259 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
261 Merge from gdb-csl-20060226-branch:
263 2006-04-19 Daniel Jacobowitz <dan@codesourcery.com>
264 * gdb/doc/gdb.texinfo (Remote configuration): Mention "set remote
266 (General Query Packets): Document qPartInfo.
268 2006-04-18 Mark Mitchell <mark@codesourcery.com>
270 * gdb/mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
271 Iscramb2, Qscramb2, Qchannel2.
272 (mt_register_name): Likewise.
273 (mt_copro_register_type): Describe ZI2 and ZQ2.
275 2006-04-11 Mark Mitchell <mark@codesourcery.com>
277 * gdb/mt-tdep.c (mt_gdb_regnums): Define
278 MT_COPRO_PSEUDOREG_MAC_REGNUM.
279 (mt_register_name): Use it.
280 (mt_copro_register_type): Likewise.
281 (mt_register_type): Likewise.
282 (mt_pseudo_register_read): Likewise. Read the MAC register, not
283 the coprocessor register.
284 (mt_pseudo_register_write): Likewise.
286 2006-04-17 Daniel Jacobowitz <dan@codesourcery.com>
288 * gdb/buildsym.c (start_subfile): Handle producer.
289 (record_producer): New function.
290 * gdb/buildsym.h (struct subfile): Include producer.
291 (record_producer): New prototype.
292 * gdb/dwarf2-frame.c (struct dwarf2_cie): Add version.
293 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
294 armcc_cfa_offsets_reversed.
295 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
296 (dwarf2_frame_find_quirks): New function.
297 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
298 (decode_frame_entry_1): Record the CIE version.
299 * gdb/dwarf2read.c (read_file_scope): Save the producer.
300 * gdb/symtab.h (struct symtab): Rename unused version member to
303 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
305 * gdb/Makefile.in (ALLDEPFILES): Add solib-target.c.
306 (remote.o): Update dependencies.
307 (solib-target.o, symbian-tdep.o): New rules.
308 * gdb/arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
309 (arm_force_mode_string): New.
310 (arm_pc_is_thumb): Use them.
311 (thumb_scan_prologue): Abort scan when symbols are missing.
312 (arm_show_fallback_mode, arm_show_force_mode): New.
313 (_initialize_arm_tdep): Register fallback-mode and force-mode.
314 * gdb/configure.tgt: Add arm*-*-symbian*.
315 * gdb/infcmd.c (_initialize_infcmd): Make "set args" a string
317 * gdb/inflow.c (kill_command): Assume that a target with stack
319 * gdb/infrun.c (init_wait_for_inferior): Clear
320 target_last_wait_ptid.
321 (insert_step_resume_breakpoint_at_frame): Add use_previous argument.
322 Use get_prev_frame if requested.
323 (handle_inferior_event): Update TARGET_WAITKIND_LOADED support.
324 Update calls to insert_step_resume_breakpoint_at_frame.
325 * gdb/remote.c: Include "solist.h".
326 (remote_exec_file): New variable.
327 (PACKET_vAttach, PACKET_vRun, PACKET_qfDllInfo): New enums.
328 (remote_mark_running, remote_mark_killed): New functions.
329 (extended_remote_restart): Don't send a query.
330 (get_offsets): Handle TextSeg and DataSeg response.
331 (parse_load_response, remote_get_shared_libraries): New functions.
332 (remote_start_remote): Take a target as the second argument for
333 extended mode. Check whether the target is running. Reset
335 (remote_open_1): Assume the target is running. Don't reset
336 inferior_ptid here. Pass the target to remote_start_remote
337 in extended mode. Only do some setup if the target is running.
338 (remote_detach_1): New function, renamed from remote_detach.
339 Don't say we are disconnecting if we aren't.
340 (remote_detach): Call remote_detach_1.
341 (extended_remote_detach): New function.
342 (remote_disconnect): Take a target_ops argument. Correct the
343 error message. Call remote_mourn_1 directly.
344 (extended_remote_attach_1, extended_remote_attach)
345 (extended_async_remote_attach): New functions.
346 (remote_wait): Handle load and unload events.
347 (extended_remote_mourn_1): New function.
348 (extended_remote_mourn): Replace with a call to
349 extended_remote_mourn_1.
350 (extended_async_remote_mourn): New function.
351 (extended_remote_run): New function.
352 (extended_remote_create_inferior_1): New function, from
353 extended_remote_create_inferior. Call get_offsets.
354 (extended_remote_create_inferior)
355 (extended_remote_async_create_inferior): Use it.
356 (remote_stopped_by_watchpoint, crc32_table)
357 (compare_sections_command): Whitespace tweaks.
358 (init_remote_ops, init_extended_remote_ops): Update.
359 (init_remote_async_ops): Whitespace tweaks and update.
360 (init_extended_async_remote_ops): Update.
361 (_initialize_remote): Add new configurable packets. Add
362 "set remote exec-file".
363 * gdb/solib-som.c (som_current_sos): Set addr_low and addr_high.
364 * gdb/solib-target.c: New file.
365 * gdb/solib.c (solib_symbols_extension): New variable.
366 (solib_open): Use it.
367 (solib_map_sections): Set addr_low and addr_high instead of
369 (info_sharedlibrary_command): Use addr_low and addr_high.
370 * gdb/solib.h (solib_symbols_extension): New declaration.
371 * gdb/solist.h (struct so_list): Replace textsection
372 with addr_low and addr_high.
373 (struct target_so_ops): Add add_one_solib and remove_one_solib.
374 * gdb/symbian-tdep.c: New file.
375 * gdb/symfile.c (init_objfile_sect_indices): Use
376 symfile_find_segment_sections to find the text section.
377 (symfile_find_segments, symfile_find_segment_sections)
378 (symfile_map_offsets_to_segments, symfile_find_segment_lengths)
379 (symfile_section_offset_from_segment): New functions.
380 * gdb/symfile.h (symfile_map_offsets_to_segments)
381 (symfile_section_offset_from_segment)
382 (symfile_find_segment_lengths): New prototypes.
383 * gdb/target.c (debug_to_disconnect): Delete.
384 (update_current_target): Make global. Do not inherit to_disconnect.
385 Mention to_get_shared_libraries.
386 (target_disconnect): Search for to_disconnect.
387 (target_get_shared_libraries): New.
388 (setup_target_debug): Update.
389 * gdb/target.h (struct target_ops): Update to_disconnect prototype.
390 Add to_get_shared_libraries.
391 (target_has_execution): Update comment.
392 (target_get_shared_libraries, update_current_target): New
394 * gdb/cli/cli-setshow.c (do_setshow_command): Revise string variable
396 * gdb/config/arm/symbian.mt: New file.
397 * gdb/doc/gdb.texinfo (ARM): Document set/show arm fallback-mode
398 and set/show arm force-mode.
400 * gdb/testsuite/gdb.base/define.exp: Don't use backslashes in the
403 * readline/emacs_keymap.c: Add a MINGW32 hack.
404 * readline/readline.c: Use _rl_bind_if_unbound to avoid macro bugs.
406 * gdb/gdbserver/linux-low.c (linux_kill): Reset inferior thread and
408 (linux_detach): Likewise.
409 (linux_wait_for_process): Discard unexpected exits.
410 * gdb/gdbserver/remote-utils.c (unblock_async_io): Ignore if we are
412 * gdb/gdbserver/server.c (exit_requested, restarting_program)
413 (program_argv): New variables.
414 (attached): Move higher.
415 (start_inferior): Clear attached. Use restarting_program to avoid
416 troubles with the 'R' packet.
417 (attach_inferior): Set attached.
418 (handle_query): Implement "monitor exit".
419 (handle_query_non_running): New function.
420 (handle_v_cont): Report errors.
421 (handle_v_attach, handle_v_run): New.
422 (handle_v_requests): Handle vAttach and vRun.
423 (handle_v_requests_non_running, non_running): New.
424 (debug_threads): Add declaration.
425 (main): Handle --debug. Don't adjust attached here.
426 Save the argv. Keep track of requested exits. Use
427 non_running when the target is dead. Do not always exit
428 after detach. Fix up Hc support. Do not automatically
429 restart the inferior in extended mode.
431 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
434 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
435 * remote.c (extended_remote_restart): Pass the correct length
438 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
439 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
440 (init_remote_state): Initialize the new fields.
441 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
442 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
443 (remote_get_threadinfo, parse_threadlist_response)
444 (remote_get_threadlist, remote_current_thread, remote_threads_info)
445 (remote_threads_extra_info, extended_remote_restart, get_offsets)
446 (remote_check_symbols, remote_open_1, remote_detach)
447 (remove_vcont_probe, remote_vcont_resume, remote_resume)
448 (remote_wait, remote_async_wait, fetch_register_using_p)
449 (remote_fetch_registers, store_register_using_P)
450 (remote_store_registers, check_binary_download, remote_write_bytes)
451 (remote_read_bytes, remote_insert_breakpoint)
452 (remote_remove_breakpoint, remote_insert_watchpoint)
453 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
454 (remote_remove_hw_breakpoint, compare_sections_command)
455 (remote_xfer_partial, remote_rcmd, packet_command)
456 (remote_get_thread_local_address): Use the global incoming buffer
457 instead of alloca or xmalloc. Limit outgoing packets to
458 rs->remote_packet_size and incoming packets to rs->buf_size.
459 Update calls to getpkt and remote_send.
460 (remote_send): Take arguments by reference.
461 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
462 (skip_frame): New function.
463 (read_frame): Take arguments by reference. Expand the packet
464 buffer instead of issuing an error.
465 (getpkt, getpkt_sane): Take arguments by reference.
466 * remote.h (getpkt): Update prototype and doc.
467 * tracepoint.c (remote_get_noisy_reply): Take arguments by
469 (target_buf): Change from array to pointer.
470 (target_buf_size): New variable.
471 (remote_set_transparent_ranges): Update call to getpkt.
472 (trace_start_command, trace_stop_command, trace_status_command):
473 Update calls to remote_get_noisy_reply.
474 (finish_tfind_command): Take arguments by reference.
475 (trace_find_command, trace_find_pc_command)
476 (trace_find_tracepoint_command, trace_find_line_command):
477 (trace_find_range_command, trace_find_outside_command): Update
478 calls to finish_tfind_command.
479 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
481 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
483 * gdb/breakpoint.c (insert_bp_location, reattach_breakpoints)
484 (remove_breakpoint, delete_breakpoint): Update calls to changed
486 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
487 (single_step_breakpoints, insert_single_step_breakpoint)
488 (remove_single_step_breakpoints): New.
489 * gdb/breakpoint.h (struct bp_location): Add placed_address and
490 placed_size. Move shadow_contents below the new comment.
491 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
492 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
494 * gdb/gdbarch.sh: Forward struct bp_location in gdbarch.h.
495 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
497 * gdb/mem-break.c (default_memory_insert_breakpoint): Update. Set
498 placed_address and placed_size.
499 (default_memory_remove_breakpoint): Update. Don't use
501 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
502 * gdb/target.c (update_current_target): Update prototypes for changed
504 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
505 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
507 * gdb/target.h: Forward declare struct bp_location.
508 (struct target_ops): Use a bp_location argument for
509 to_insert_breakpoint, to_remove_breakpoint,
510 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
511 (target_insert_breakpoint, target_remove_breakpoint)
512 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
513 (memory_insert_breakpoint, memory_remove_breakpoint)
514 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
516 * gdb/config/i386/nm-i386.h: Forward declare struct bp_location.
517 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
518 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
520 * gdb/gdbarch.c, gdbarch.h: Regenerated.
522 * gdb/alpha-tdep.c (alpha_software_single_step): Use
523 insert_single_step_breakpoint and remove_single_step_breakpoints.
524 Remove unused statics.
525 * gdb/arm-tdep.c (arm_software_single_step): Likewise. Add a note.
526 * gdb/cris-tdep.c (cris_software_single_step): Likewise.
527 * gdb/mips-tdep.c (mips_software_single_step): Likewise.
528 * gdb/rs6000-tdep.c (rs6000_software_single_step): Likewise.
529 * gdb/sparc-tdep.c (sparc_software_single_step): Likewise.
530 * gdb/wince.c (struct thread_info_struct): Remove step_prev.
531 (undoSStep): Use remove_single_step_breakpoints.
532 (wince_software_single_step): Use insert_single_step_breakpoint.
534 * gdb/corelow.c (ignore): Remove unneeded prototype. Update second
536 * gdb/exec.c (ignore): Likewise.
537 * gdb/sol-thread.c (ignore): Likewise.
539 * gdb/procfs.c (dbx_link_bpt_addr, dbx_link_shadow_contents): Delete.
541 (procfs_wait): Check it.
542 (procfs_mourn_inferior): Remove it if necessary.
543 (remove_dbx_link_breakpoint): Use it.
544 (insert_dbx_link_bpt_in_file): Set it.
545 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
546 * gdb/rs6000-nat.c (exec_one_dummy_insn): Use
547 deprecated_insert_raw_breakpoint and
548 deprecated_remove_raw_breakpoint.
549 * gdb/solib-irix.c (shadow_contents, breakpoint_addr): Delete.
550 (base_breakpoint): New.
551 (disable_break): Use it.
552 (enable_break): Set it.
554 * gdb/i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
556 * gdb/ia64-tdep.c (ia64_memory_insert_breakpoint)
557 (ia64_memory_remove_breakpoint): Likewise.
558 * gdb/m32r-tdep.c (m32r_memory_insert_breakpoint)
559 (m32r_memory_remove_breakpoint): Likewise.
560 * gdb/monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
561 Likewise. Remove unnecessary prototypes. Use placed_address
562 and placed_size. Removed useless read from memory.
563 * gdb/nto-procfs.c (procfs_insert_breakpoint)
564 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
565 (procfs_remove_hw_breakpoint): Update.
566 * gdb/ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
567 * gdb/ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
568 * gdb/ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
569 * gdb/ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
570 * gdb/remote-e7000.c (e7000_insert_breakpoint)
571 (e7000_remove_breakpoint): Likewise.
572 * gdb/remote-m32r-sdi.c (m32r_insert_breakpoint)
573 (m32r_remove_breakpoint): Likewise.
574 * gdb/remote-mips.c (mips_insert_breakpoint)
575 (mips_remove_breakpoint): Likewise.
576 * gdb/remote-rdp.c (remote_rdp_insert_breakpoint)
577 (remote_rdp_remove_breakpoint): Likewise.
578 (rdp_step): Use deprecated_insert_raw_breakpoint and
579 deprecated_remove_raw_breakpoint.
580 * gdb/remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
582 * gdb/remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
584 (init_gdbsim_ops): Use memory_insert_breakpoint and
585 memory_remove_breakpoint.
586 * gdb/remote-st.c (st2000_insert_breakpoint)
587 (st2000_remove_breakpoint): Update. Remove unused
589 * gdb/remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
590 Update. Use placed_address and placed_size.
591 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
593 * gdb/doc/gdbint.texinfo (Watchpoints, Target Conditionals): Update insert
594 and remove breakpoint prototypes.
596 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
599 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
600 * remote.c (remote_wait): Convert warning to error before
601 parsing corrupt packets.
603 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
605 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
608 2006-04-11 Daniel Jacobowitz <dan@codesourcery.com>
611 2006-03-09 Paul Brook <paul@codesourcery.com>
612 * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
615 2006-04-02 Daniel Jacobowitz <dan@codesourcery.com>
617 * Makefile.def (host_modules, dependencies): Add expat.
618 * configure.in (host_libs): Add expat.
619 * Makefile.in, configure: Regenerate.
620 * expat: New directory.
622 * gdb/Makefile.in: Add expat, new files, and xml-builtin.c. Update
624 * gdb/acinclude.m4: Include stdint.m4.
625 * gdb/configure.ac: Use AC_C_BIGENDIAN and GCC_HEADER_STDINT.
626 * gdb/aclocal.m4, gdb/config.in, gdb/configure: Regenerate.
628 * gdb/auxv.h: Remove target_auxv_read prototype.
629 * gdb/auxv.c, gdb/avr-tdep.c, gdb/ia64-tdep.c, gdb/linux-nat.c,
630 gdb/procfs.c: Use target_read_whole.
631 * gdb/sparc-tdep.c: Use target_read.
633 * gdb/frame.c: Work around null frame_id handling.
635 * gdb/breakpoint.c, gdb/f-valprint.c, gdb/infcmd.c, gdb/inflow.c,
636 gdb/infrun.c, gdb/stack.c, gdb/valops.c, gdb/varobj.c,
637 gdb/cli-cmds.c, gdb/testsuite/gdb.base/default.exp,
638 gdb/tui/tui-disasm.c, gdb/tui/tui-source.c,
639 gdb/tui/tui-winsource.c: Selected frame fixups.
641 * gdb/README.AVAIL, gdb/available.c, gdb/available.h,
642 gdb/parse-avail.c, gdb/sha1.c, gdb/features/feature_to_c.sh,
643 gdb/features/gdb-target.dtd: New files.
644 * gdb/arm-tdep.c: Handle missing FPA, present VFP, and
645 self-described registers. Decode VFP register numbers from DWARF.
646 * gdb/arm-tdep.h: Add flags for VFP and FPA.
647 * gdb/gdbarch.sh: Add available_features_support and feature_set.
648 Export the arch's obstack. Check feature sets. Improve error
650 * gdb/gdbarch.c, gdb/gdbarch.h: Regenerated.
651 * gdb/infcmd.c: Trigger architecture selection.
652 * gdb/remote.c: Available feature support. qPacketInfo support.
653 Improved g/G packet support. Improved qPart support.
654 qPart:features support.
655 * gdb/symfile.c: Adjust download_write_size.
656 * gdb/target.c: Revise partial transfer support. Handle available
657 features method. Add target_read_whole.
658 * gdb/target.h: Add the available features object and methods.
659 * gdb/doc/gdb.texinfo: Document new features.
661 * gdb/symfile.h: Include symtab.h.
663 2006-03-31 Nathan Sidwell <nathan@codesourcery.com>
665 * gdb/config/m68k/monitor.mt (TDEPFILES): Remove unneeded
667 (DEPRECATED_TM_FILE): Remove.
669 * gdb/m68k-tdep.c (M68K_FPREG_SIZE): Define.
670 (REGISTER_BYTES_FP): Use it.
672 * gdb/configure.tgt (m68k-*-uclinux*): target is linux.
674 * gdb/remote.c (remote_fetch_registers): Revert bogus change.
676 * gdb/remote.c (remote_fetch_registers): Don't warn about short
677 register packet if we've not set the expected value.
679 * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
682 * gdb/gdbserver/Makefile.in (reg-cf.o, reg-cf.c): New targets.
683 * gdb/gdbserver/configure.srv (m68k*-*-uclinux*): New target.
684 * gdb/gdbserver/linux-low.c (linux_create_inferior): Use vfork on
686 (linux_resume_one_process): Remove extraneous cast.
687 (linux_read_offsets): New.
688 (linux_target_op): Add linux_read_offsets on mmuless systems.
689 * gdb/gdbserver/server.c (handle_query): Add qOffsets logic.
690 * gdb/gdbserver/target.h (struct target_ops): Add read_offsets.
692 2006-03-30 Mark Mitchell <mark@codesourcery.com>
694 * libiberty/configure.ac: Add cygpath for mingw hosts.
695 * libiberty/configure: Rebuilt.
696 * libiberty/Makefile.in: Add cygpath.
697 * libiberty/cygpath.c: New.
699 2006-03-30 Paul Brook <paul@codesourcery.com>
701 Backport form mainline.
702 * gdb/testsuite/gdb.mi/mi-until.exp: kfail broken until command.
703 * gdb/testsuite/gdb.mi/mi2-until.exp: Ditto.
705 2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
707 * gdb/m68k-tdep.c (M68K_FPREG_TYPE, M68K_LONG_DOUBLE_FORMAT,
708 M68K_RETURN_FP0): New. Set for Coldfire.
709 (m68k_register_type, m68k_register_to_value,
710 m68k_svr4_extract_return_value, m68k_svr4_store_return_value,
711 m68k_gdbarch_init): Use them.
713 2006-03-21 Mark Mitchell <mark@codesourcery.com>
715 * gdb/ser-mingw.c (net_windows_state): Add mutex.
716 (net_windows_select_thread): Grab lock around access to
718 (net_windows_wait_handle): Do not reset the read_event.
719 (net_windows_open): Create a mutex.
720 (net_windows_read_prim): New function.
721 (_initialize_ser_windows): Use it.
723 2006-03-20 Mark Mitchell <mark@codesourcery.com>
725 * libiberty/pex-common.c (pex_run): Close the write end of the
726 pipe after starting the child.
728 * gdb/config/arm/armv7m.mt (TDEPFILES): Add prologue-value.o.
730 2006-03-21 Paul Brook <paul@codesourcery.com>
731 Daniel Jacobowitz <dan@codesourcery.com>
732 Jim Blandy <jimb@codesourcery.com>
734 * gdb/Makefile.in: Add prologue_value.{c,h}
735 * gdb/arm-tdep.c: Include prologue-value.h.
736 (thumb_skip_prologue): Remove.
737 (thumb_analyze_prologue): New function.
738 (arm_skip_prologue): Use thumb_analyze_prologue.
739 (thumb_scan_prologue): Ditto.
740 * gdb/prologue-value.c: New file.
741 * gdb/prologue-value.h: New file.
742 * gdb/config/arm/embed.mt (TDEPFILES): Add prologue-value.o.
743 * gdb/config/arm/linux.mt (TDEPFILES): Add prologue-value.o.
744 * gdb/config/arm/nbsd.mt (TDEPFILES): Add prologue-value.o.
745 * gdb/config/arm/wince.mt (TDEPFILES): Add prologue-value.o.
746 * gdb/testsuite/gdb.arch/thumb-prologue.c: New file.
747 * gdb/testsuite/gdb.arch/thumb-prologue.exp: New file.
749 2006-03-20 Mark Mitchell <mark@codesourcery.com>
751 * configure.tgt (arm*-stellaris-*): Use armv7m configuration.
752 * config/arm/armv7m.mt: New file.
753 * config/arm/tm-armv7m.h: Likewise.
754 * arm-tdep.c (arm_register_name_strings): Use xPSR on ARM V7M.
755 (arm_pc_is_thumb): ARM V7M is always Thumb.
756 (set_disassembly_style): Use xPSR on ARM V7M.
757 (arm_write_pc): Do not set T bit in CSPR on V7M.
759 2006-03-20 Mark Mitchell <mark@codesourcery.com>
761 * libiberty/pex-win32.c (<errno.h>): Include.
763 (argv_to_cmdline): New function.
764 (std_suffixes): New variable.
765 (no_suffixes): Likewise.
766 (find_executable): New function.
767 (win32_spawn): Likewise.
768 (spawn_script): Use win32_spawn instead of _spawnv[p].
769 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
770 (pex_win32_wait): Likewise.
772 2006-03-19 Mark Mitchell <mark@codesourcery.com>
774 * gdb/ser-mingw.c (free_pipe_state): Close pipe before calling
777 2006-03-17 Mark Mitchell <mark@codesourcery.com>
779 * gdb/config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
781 2006-03-17 Jim Blandy <jimb@codesourcery.com>
783 Add support for 'target remote |' on MinGW.
784 * gdb/ser-mingw.c (struct pipe_state): New structure.
785 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
786 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
787 (pipe_windows_write, pipe_wait_handle): New functions.
788 (_initialize_ser_windows): Register a "pipe" interface based on
791 * libiberty/pex-common.c (pex_write_input): New function.
792 * libiberty/pexecute.txh (pex_write_input): Document it.
793 * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
794 * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
795 (funcs): List it as our fdopenw function.
796 * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
797 (funcs): List it as our fdopenw function.
798 * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
799 * libiberty/pex-msdos (funcs): Same.
800 * libiberty/functions.texi: Regenerated.
802 * include/libiberty.h (pex_write_input): New declaration.
804 * libiberty/pex-common.h (struct pex_obj): Doc fixes.
806 * libibery/functions.texi: Regenerate.
808 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
810 * gdb/gdb_proc_service.h (paddr_t): Use psaddr_t if available.
811 * gdb/proc-service.c (ps_xfer_memory): Cast paddr_t to unsigned
813 (ps_pglobal_lookup): Cast CORE_ADDR to paddr_t.
815 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
817 * gdb/gdbserver/linux-mips-low.c: Include <sys/ptrace.h> and
818 "gdb_proc_service.h".
819 (PTRACE_GET_THREAD_AREA): Define.
820 (ps_get_thread_area): New function.
821 * gdb/gdbserver/Makefile.in (linux-i386-low.o, linux-mips-low.o)
822 (linux-x86-64-low.o): Update.
824 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
826 * gdb/gdbserver/configure.ac: Remove checks for prfpregset_t.
827 * gdb/gdbserver/gdb_proc_service.h: New file.
828 * gdb/gdbserver/linux-i386-low.c, gdb/gdbserver/linux-x86-64-low.c,
829 gdb/gdbserver/thread-db.c: Use the new "gdb_proc_service.h".
830 * gdb/gdbserver/proc-service.c: Likewise.
831 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
832 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
833 * gdb/gdbserver/Makefile.in (gdb_proc_service_h): Updated.
834 * gdb/gdbserver/configure, config.in: Regenerated.
836 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
838 * gdb/Makefile.in (mips_linux_tdep_h): New.
839 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
840 * gdb/mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
842 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
843 (mips64_linux_regsets_fetch_registers)
844 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
845 (mips64_linux_store_registers): New.
846 (_initialize_mips_linux_nat): Override to_fetch_registers and
848 * gdb/mips-linux-tdep.h: New file.
849 * gdb/mips-linux-tdep.c: Include "mips-linux-tdep.c".
850 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
851 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
852 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
853 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
854 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
855 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
856 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
857 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
858 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
859 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
860 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
861 (supply_32bit_reg): Use gdb_byte.
862 (supply_64bit_reg): New.
863 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
864 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
865 (fill_gregset, supply_fpregset): Update for renamed types.
866 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
867 (mips64_fill_gregset): Make global. Handle 32-bit register
869 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
872 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
874 * gdb/mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
875 (mips_fill_gregset): Renamed from fill_gregset.
876 (mips_supply_fpregset): Renamed from supply_fpregset.
877 (mips_fill_fpregset): Renamed from fill_fpregset.
878 (fetch_core_registers): Update calls.
879 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
882 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
884 * gdb/mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
886 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
888 * gdb/mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
889 Correct arithmetic for 64-bit CORE_ADDR.
891 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
893 * gdb/mips-linux-tdep.c: Include "floatformat.h".
894 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
895 (mips_n32n64_return_value): Support 128-bit long double.
896 (print_gp_register_row): Don't print spaces before ignored
897 or floating point registers.
899 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
901 * gdb/mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
903 (non_heuristic_proc_desc): Likewise.
905 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
907 * gdb/mips-linux-nat.c: Include "gdb_proc_service.h".
908 (PTRACE_GET_THREAD_AREA): Define.
909 (ps_get_thread_area): New.
910 * gdb/Makefile.in (mips-linux-nat.o): Update.
912 2006-03-08 Paul Brook <paul@codesourcery.com>
914 Backport from mainline.
915 * gdb/arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
916 (arm_frame_align): New function.
917 (arm_gdbarch_init): Use it.
919 2006-03-07 Paul Brook <paul@codesourcery.com>
921 Backport from mainline.
922 * gdb/testsuite/gdb.base/assign.exp: Correct fail message.
924 2006-03-07 Paul Brook <paul@codesourcery.com>
926 Backport from mainline.
927 * sim/arm/elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
929 2006-03-07 Paul Brook <paul@codesourcery.com>
931 Backport from mainline.
932 * gdb/testsuite/lib/compiler.c: Extract armcc version number.
933 * gdb/testsuite/lib/compiler.cc: Ditto.
935 2006-03-07 Paul Brook <paul@codesourcery.com>
937 Backport from mainline.
938 2006-03-03 Khem Raj <khem@mvista.com>
939 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
941 2006-03-07 Paul Brook <paul@codesourcery.com>
943 Backport from mainline.
944 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
946 * gdb.arch/altivec-regs.exp: Ditto.
947 * gdb.arch/e500-abi.exp: Ditto.
948 * gdb.arch/e500-regs.exp: Ditto.
949 * gdb.base/all-bin.exp: Ditto.
950 * gdb.base/annota1.exp: Ditto.
951 * gdb.base/annota3.exp: Ditto.
952 * gdb.base/args.exp: Ditto.
953 * gdb.base/arithmet.exp: Ditto.
954 * gdb.base/assign.exp: Ditto.
955 * gdb.base/async.exp: Ditto.
956 * gdb.base/bang.exp: Ditto.
957 * gdb.base/break.exp: Ditto.
958 * gdb.base/call-rt-st.exp: Ditto.
959 * gdb.base/completion.exp: Ditto.
960 * gdb.base/cond-expr.exp: Ditto.
961 * gdb.base/condbreak.exp: Ditto.
962 * gdb.base/consecutive.exp: Ditto.
963 * gdb.base/define.exp: Ditto.
964 * gdb.base/display.exp: Ditto.
965 * gdb.base/ena-dis-br.exp: Ditto.
966 * gdb.base/environ.exp: Ditto.
967 * gdb.base/eval-skip.exp: Ditto.
968 * gdb.base/info-proc.exp: Ditto.
969 * gdb.base/jump.exp: Ditto.
970 * gdb.base/logical.exp: Ditto.
971 * gdb.base/long_long.exp: Ditto.
972 * gdb.base/maint.exp: Ditto.
973 * gdb.base/miscexprs.exp: Ditto.
974 * gdb.base/pc-fp.exp: Ditto.
975 * gdb.base/pointers.exp: Ditto.
976 * gdb.base/relational.exp: Ditto.
977 * gdb.base/reread.exp: Ditto.
978 * gdb.base/sect-cmd.exp: Ditto.
979 * gdb.base/sep.exp: Ditto.
980 * gdb.base/sepdebug.exp: Ditto.
981 * gdb.base/until.exp: Ditto.
982 * gdb.base/whatis-exp.exp: Ditto.
983 * gdb.cp/annota2.exp: Ditto.
984 * gdb.cp/annota3.exp: Ditto.
985 * gdb.trace/actions.exp: Ditto.
986 * gdb.trace/backtrace.exp: Ditto.
987 * gdb.trace/circ.exp: Ditto.
988 * gdb.trace/collection.exp: Ditto.
989 * gdb.trace/deltrace.exp: Ditto.
990 * gdb.trace/infotrace.exp: Ditto.
991 * gdb.trace/limits.exp: Ditto.
992 * gdb.trace/packetlen.exp: Ditto.
993 * gdb.trace/passc-dyn.exp: Ditto.
994 * gdb.trace/passcount.exp: Ditto.
995 * gdb.trace/report.exp: Ditto.
996 * gdb.trace/save-trace.exp: Ditto.
997 * gdb.trace/tfind.exp: Ditto.
998 * gdb.trace/tracecmd.exp: Ditto.
999 * gdb.trace/while-dyn.exp: Ditto.
1000 * gdb.trace/while-stepping.exp: Ditto.
1001 * lib/gdb.exp: Ditto.
1002 (gdb_compile): Handle nowarning option.