Commit graph

20062 commits

Author SHA1 Message Date
Daniel Jacobowitz
32ca6d6157 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
(linux_resume_one_process): Take a siginfo_t *.  Update all
	callers.  Queue it if necessary.  Use PTRACE_SETSIGINFO.
	(struct pending_signals): Add a siginfo_t.
	(linux_wait_for_process): Always set last_status.
	(linux_wait_for_event): Use PTRACE_GETSIGINFO.
	(linux_queue_one_thread): Use PTRACE_GETSIGINFO.
	* linux-low.h (struct process_info): Add last_status.
2006-09-28 22:46:29 +00:00
gdbadmin
2642de2a6c *** empty log message *** 2006-09-28 00:00:02 +00:00
gdbadmin
f2320d6ad5 *** empty log message *** 2006-09-27 00:00:03 +00:00
gdbadmin
172870a5b4 *** empty log message *** 2006-09-26 00:00:33 +00:00
gdbadmin
f983a9b6a3 *** empty log message *** 2006-09-25 00:00:02 +00:00
gdbadmin
86034c36bd *** empty log message *** 2006-09-24 00:00:35 +00:00
gdbadmin
b41e175056 *** empty log message *** 2006-09-23 00:00:33 +00:00
Daniel Jacobowitz
f08799f98e * remote.c (remote_write_bytes_aux): Doc fix. 2006-09-22 13:50:36 +00:00
gdbadmin
637ea4ae1f *** empty log message *** 2006-09-22 00:00:03 +00:00
Daniel Jacobowitz
5ffff7c1d1 * remote-utils.c (try_rle): New function.
(putpkt_binary): Use it.
2006-09-21 16:09:54 +00:00
Daniel Jacobowitz
68437a39ee * gdb.texinfo (Packets): Document vFlashErase,
vFlashWrite and vFlashDone packets.
	(General Query Packets): Document qXfer:memory-map:read.
	Add a new feature for qXfer:memory-map:read.
	(Memory map format): New section.
	(Target Commands): Mention that gdb can write flash.
2006-09-21 14:01:12 +00:00
Daniel Jacobowitz
a76d924dff * Makefile.in (SFILES): Add target-memory.c.
(COMMON_OBS): Add target-memory.o.
	* memattr.c (lookup_mem_region): Adjust handling for
	the top of memory.  Improve comments.
	* remote.c (packet_check_result): New function, split out
	from packet_ok.  Recognize "E." as an error prefix.
	(packet_ok): Use it.
	(remote_write_bytes_aux): New function, renamed from
	remote_write_bytes.  Take packet header, packet format,
	and length flag as arguments.
	(remote_write_bytes): Rewrite to use remote_write_bytes_aux.
	(remote_send_printf, restore_remote_timeout)
	(remote_flash_timeout, remote_flash_erase, remote_flash_write)
	(remote_flash_done): New.
	(remote_xfer_partial): Handle flash writes.
	(init_remote_ops, init_remote_async_ops): Set to_flash_erase
	and to_flash_done.
	* symfile.c (struct load_section_data): Include a pointer to
	the cumulative stats and a request queue.  Move most members
	to other types.
	(struct load_progress_data, struct load_progress_section_data): New
	types.
	(load_progress): Handle a NULL baton and zero bytes.  Update for
	type changes.
	(load_section_callback): Create memory write requests instead of
	writing to memory.  Don't print the progress message here.
	(clear_memory_write_data): New function.
	(generic_load): Use target_write_memory_blocks.
	* target-memory.c: New file.
	* target.c (update_current_target): Mention new uninherited methods.
	(memory_xfer_partial): Issue an error for flash writes.
	(target_flash_erase, target_flash_done): New functions.
	(target_write_with_progress): Call the progress callback at the
	start also.
	* target.h (enum target_object): Add TARGET_OBJECT_FLASH.
	(target_write_with_progress): Update comment.
	(struct target_ops): Add to_flash_erase and to_flash_done.
	(target_flash_erase, target_flash_done, struct memory_write_request)
	(memory_write_request_s, enum flash_preserve_mode)
	(target_write_memory_blocks): New, including a vector type
	for memory_write_request_s.
2006-09-21 14:00:53 +00:00
Daniel Jacobowitz
fd79eceebf gdb/
2006-09-21  Vladimir Prus  <vladimir@codesourcery.com>
	    Daniel Jacobowitz  <dan@codesourcery.com>
	    Nathan Sidwell  <nathan@codesourcery.com>

	* Makefile.in (SFILES): Add memory-map.c and xml-support.c.
	(memory_map_h, xml_support_h): New.
	(target_h): Add vec_h dependency.
	(COMMON_OBS): Add memory-map.o and xml-support.o.
	(memory-map.o, xml-support.o): New rules.
	(remote.o): Update.
	* exceptions.h (enum errors): Add XML_PARSE_ERROR.
	* infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
	* memattr.c (default_mem_attrib): Initialize blocksize.
	(target_mem_region_list, mem_use_target)
	(target_mem_regions_valid, mem_region_cmp, mem_region_init)
	(require_user_regions, require_target_regions)
	(invalidate_target_mem_regions): New.
	(create_mem_region): Use mem_region_init.
	(mem_clear): Move higher.
	(lookup_mem_region): Use require_target_regions.
	(mem_command): Implement "mem auto".
	(mem_info_command): Handle target-supplied regions and flash
	attributes.
	(mem_enable_command, mem_disable_command, mem_delete_command): Use
	require_user_regions.
	(_initialize_mem): Mention "mem auto" in help.
	* memattr.h (enum mem_access_mode): Add MEM_FLASH.
	(struct mem_attrib): Add blocksize.
	(invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
	prototypes.
	* remote.c: Include "memory-map.h".
	(PACKET_qXfer_memory_map): New enum value.
	(remote_protocol_features): Add qXfer:memory-map:read.
	(remote_xfer_partial): Handle memory maps.
	(remote_memory_map): New.
	(init_remote_ops, init_remote_async_ops): Set to_memory_map.
	(_initialize_remote): Register qXfer:memory-map:read.
	* target.c (update_current_target): Mention to_memory_map.
	(target_memory_map, target_pre_inferior): New.
	(target_preopen): Call target_pre_inferior.
	* target.h: Include "vec.h".
	(enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
	(struct target_ops): Add to_memory_map.
	(target_memory_map, target_pre_inferior): New prototypes.
	* memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
gdb/doc/
2006-09-21  Vladimir Prus  <vladimir@codesourcery.com>
	    Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.texinfo (Memory Region Attributes): Mention target-supplied
	memory regions and "mem auto".
2006-09-21 13:54:03 +00:00
Daniel Jacobowitz
253c8abb67 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
(strtoulst): Moved to ...
	* utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
	(strtoulst): ... here.  Enhanced to behave more similarly
	to strtoul.
	* defs.h (strtoulst): New prototype.
2006-09-21 13:50:51 +00:00
Daniel Jacobowitz
c96fc75e9e * Makefile.in (memattr_h, memattr.o): Update.
* memattr.h: Include "vec.h".
	(struct mem_region): Remove linked list pointer.
	(mem_region_s): New typedef and corresponding vector.
	* memattr.c: Include "vec.h".
	(mem_region_chain): Delete.
	(mem_region_list): New vector pointer.
	(mem_region_lessthan): New function.
	(create_mem_region): Remove unused return value.  Use vector
	operations.  Remove linear search.
	(delete_mem_region): Delete.
	(lookup_mem_region): Use vector operations.  Add a FIXME.
	(mem_info_command): Update to work with vectors.
	(mem_enable, mem_enable_command, mem_disable, mem_disable_command)
	(mem_free, mem_delete): Likewise.
2006-09-21 13:48:29 +00:00
Daniel Jacobowitz
350da6eece 2006-09-21 Nathan Sidwell <nathan@codesourcery.com>
gdb/
	* vec.h: New file.
	* vec.c: New file.
	* Makefile.in (SFILES): Add vec.c.
	(vec_h): New.
	(COMMON_OBJS): Add vec.o.
	(vec.o): New target.
gdb/doc/
	* gdbint.texinfo (Array Containers): New section.
2006-09-21 13:47:56 +00:00
Michael Snyder
f286fbddac Fix identity in ChangeLog. 2006-09-21 00:03:43 +00:00
gdbadmin
1a77fc0bcb *** empty log message *** 2006-09-21 00:00:05 +00:00
Michael Snyder
7b880e0bb7 2006-09-20 Michael Snyder <michael.snyder@localhost.localdomain>
* abug.exp, cpu32bug.exp, est.exp hmsirom.exp, nind.exp:
	Remove unused / obsolete files.
2006-09-20 22:56:34 +00:00
Daniel Jacobowitz
2e9f762528 PR remote/2154
* remote.c (remote_thread_alive): Remove local buf.
	(remote_get_threadinfo): Remove local threadinfo_pkt.
	(remote_get_threadlist): Remove unused threadlist_packet.
	(remote_current_thread): Remove local buf.
	(remote_threads_info): Set bufp after getpkt.
	(remote_threads_extra_info): Remove local bufp.
	(get_offsets): Set buf after getpkt.
	(remote_check_symbols): Set reply after getpkt.
	(remote_vcont_probe): Set buf after getpkt.
	(remote_resume): Set buf after set_thread.
	(remote_wait, remote_async_wait): Set buf after getpkt.
	(fetch_register_using_p): Set buf after remote_send.
	(remote_fetch_registers): Likewise.
	(store_register_using_P): Don't use buf after remote_send.
	(check_binary_download, remote_write_bytes)
	(remote_read_bytes, remote_rcmd): Remove local buf.
2006-09-20 19:13:02 +00:00
gdbadmin
a8bbe5b03e *** empty log message *** 2006-09-20 00:00:32 +00:00
gdbadmin
8b9b0076ae *** empty log message *** 2006-09-19 00:00:32 +00:00
Nick Roberts
9cb8286385 Include __kernel_vsyscall in regexp. 2006-09-18 21:17:07 +00:00
Nick Roberts
7c07f34970 *** empty log message *** 2006-09-18 21:16:42 +00:00
gdbadmin
6d7c49282b *** empty log message *** 2006-09-18 00:00:03 +00:00
Vladimir Prus
a5451f4e4e Fix grammar. 2006-09-17 17:05:27 +00:00
Vladimir Prus
2f1acb09b6 * gdb.texinfo (GDB/MI Stack Manipulation): Mention that
-stack-list-arguments HIGH_FRAME argument can be larger then the
	actual number of frames.
2006-09-17 17:03:51 +00:00
Vladimir Prus
cd5ff84afd * gdb.mi/mi-stack.exp (test_stack_args_listing): Test that
HIGH_FRAME argument to -stack-list-arguments can be larger than
        the number of frames.
2006-09-17 15:49:32 +00:00
Vladimir Prus
f28f46e7d6 Fix grammar 2006-09-17 15:48:34 +00:00
Vladimir Prus
6e90a7df84 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
if high requested frame number is larger then number of available
	frames.
2006-09-17 15:45:50 +00:00
gdbadmin
882d0cb477 *** empty log message *** 2006-09-17 00:00:02 +00:00
Nick Roberts
97725dc4f6 (linux_test_for_tracefork): Don't leave zombie
process.
2006-09-16 09:48:12 +00:00
Nick Roberts
d51ca893c3 *** empty log message *** 2006-09-16 09:47:42 +00:00
Daniel Jacobowitz
04d1f77003 2006-09-16 Andrzej Zaborowski <balrog@zabor.org>
* interps.c (interpreter_exec_cmd): Restore interpreter properties.
2006-09-16 04:10:41 +00:00
gdbadmin
f8576127ef *** empty log message *** 2006-09-16 00:00:03 +00:00
Daniel Jacobowitz
ae018d1aa1 * gdb.base/args.c (main): Add breakpoint marker.
* gdb.base/args.exp: Use args_test for tests.  Add new tests which
	really test empty arguments.
	(args_load): Delete.
	(args_test): New.
2006-09-15 20:06:42 +00:00
gdbadmin
11352df049 *** empty log message *** 2006-09-15 00:00:06 +00:00
gdbadmin
87699a25a2 *** empty log message *** 2006-09-14 00:00:32 +00:00
gdbadmin
e935a3233f *** empty log message *** 2006-09-13 00:00:32 +00:00
Nick Roberts
cd26961926 (test_file_list_exec_source_files): Just
check for one file.
2006-09-12 20:11:42 +00:00
Nick Roberts
b399c54988 *** empty log message *** 2006-09-12 20:11:22 +00:00
gdbadmin
3447f01503 *** empty log message *** 2006-09-12 00:00:03 +00:00
gdbadmin
3cd97e27c1 *** empty log message *** 2006-09-11 00:00:33 +00:00
Daniel Jacobowitz
5a2901d9ed PR threads/2149
* infrun.c (handle_inferior_event): Context switch after fork
	and exec events.
2006-09-10 16:21:03 +00:00
Daniel Jacobowitz
4c85081011 * infcall.c (call_function_by_hand): Check for function pointer
types.
2006-09-10 15:44:36 +00:00
gdbadmin
a4697170c7 *** empty log message *** 2006-09-10 00:00:02 +00:00
Andreas Schwab
0ba5a9325b * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
`move.l %R,-(%sp)'.
2006-09-09 23:07:32 +00:00
gdbadmin
98cfafa399 *** empty log message *** 2006-09-09 00:00:04 +00:00
gdbadmin
1a67c70765 *** empty log message *** 2006-09-08 00:00:32 +00:00
Vladimir Prus
2ab1eb7abc Allow the HIGH-FRAME parameter for -stack-list-frames to be larger
than the number of available frames.
2006-09-07 16:40:19 +00:00