ChangeLog   [plain text]


2008-09-05  Jason Molenda  (jmolenda@apple.com)

	* gdb.c (gdb_show_objc_object): Update call to 
	target_check_safe_call to pass the appropriate arguments.

2008-03-05  Jason Molenda  (jmolenda@apple.com)

        * Makefile: Define TARGET_POWERPC so the tdep.h file knows which arch
        we're building for.

2007-11-06  Jim	Ingham	<jingham@apple.com>

	* Makefile: Pass "-arch	ppc" to	the final link ld -r stage.

2006-11-28  Jason Molenda  (jmolenda@apple.com)

	* gdb.c: Remove cvs merge goo added accidentally by Carolyn.

2006-10-30  Jim Ingham  <jingham@apple.com>

	From Ira:
	
        2006-08-21  Ira Ruben  <iraruben@acm.org>

	* gdb.c: Changed copyright date and fixed some formatting.
	(termios.h): Added #include for new gdb_show_objc_object().
	(demangle.h): Added #include for new gdb_demangled_symbol().
	(gdb_initialize): Changed comments and warning message.
	(gdb_get_function_start): Reworked to support minimal symbols.
	(gdb_address_symbol): Added function get symbolic address.
	(gdb_set_address): Fix address for 32-bit computations.
	(gdb_read_memory_from_addr): New report_error argument.
	Fix address for 32-bit computations.
	(gdb_write_memory_to_addr): Fix address for 32-bit computations.
	(gdb_demangled_symbol): New function to demangle symbols.
	(ignore_function_output): For gdb_show_objc_object() test.
	(cleanup_gdb_objc_object): Ditto.
	(gdb_show_objc_object): New function (variant of print-object).
	(gdb_is_addr_in_section): New function to get section for an
	address.
	(gdb_find_section): New function to find a section by name.
	(show_all_section_ranges): New private debugging function.

	* gdb.h: Changed copyright date.
	(gdb_initialize): Updatted comments.
	(gdb_define_set): Restored for_set_and_show arg.
	(gdb_define_set_enum): Ditto.
	(gdb_address_symbol): New function get symbolic address.
	(gdb_read_memory): Added report_error argument.
	(gdb_demangled_symbol): New function to demangle symbols.
	(gdb_show_objc_object): New function (variant of print-object).
	(gdb_is_addr_in_section): New function to get section for an
	address.
	(gdb_find_section): New function to find a section by name.

	* gdb_io_redirection.c:  Changed copyright date.
	(interps.h): Added #include for interpreter manipulations.
	(console_interp): New static to point to consle interpreter.
	(struct interp): !! HACK ALERT !! Copied friom interps.c since
	there is no other way to set it's interpreter_out field. 
	(set_interp_ui_out): New function which really needs to be
	added to interps.c.  See comments for this function for details.
	(gdb_redirect_output): Set consol interpreter's interpreter_out.
	(__initialize_io): Save console interpreter's struct interp ptr.

	* gdb_private_interfaces.h: Changed copyright date.
	(GDB4): Hard coded for backward compatibility with new comments.
	(GDB_VERSION): New macro.
	(FIX_TARGET_ADDR): Ditto.
	(deprecated_set_hook): Fixed comment terminator spacing.
	(rl_instream): Extern added (comment box also changed.
	(rl_outstream): Extern added.

	* gdb_set.c: Changed copyright date.
	(gdb_define_set): Restored support for for_set_and_show.
	(gdb_define_set_enum): Fixed comment and restored support
	for for_set_and_show.
	(gdb_define_set_generic): Restored support for for_set_and_show.
	(define_set): Changed to work with latest gdb interfaces.

	* gdb_special_events.c: Changed copyright date and fixed
	lots of formatting to accomodate the renamed "deprecated" hooks.
	(case Gdb_Before_Deleting_Breakpoint): Fixed comment.
	(case Gdb_After_Modified_Breakpoint_): Use GDB_ADDRESS address.
	(case Gdb_After_Memory_Changed): Ditto.
	(case Gdb_After_File_Changed): Fixed comment.
	(case Gdb_After_Attach_To_File:): Fixed comment and change
	deprecated_file_changed_hook to deprecated_exec_file_display_hook.

	* gdb_testing.i:  Changed copyright date.
	(gdb_teste): New test experimenting with object files.

	* ChangeLog: Moved Klee's gdb_plugin_support 2005-06-15 changes
	to here where they "belong" from the MacsBug ChangeLog.

2006-07-11  Jason Molenda  (jmolenda@apple.com)

	* Makefile: Build with the pre-conformance header file mode
	to be consistent with gdb.

2006-03-28  Jason Molenda  (jmolenda@apple.com)

        * gdb_set.c (my_set): Recognize new
        var_auto_boolean, var_optional_filename.
        (__my_set_hook_guts): Treat var_auto_boolean as a Set_Boolean 
        which is not correct.  Treat var_optional_filename as
        Set_Filename which is less likely to cause problems.

2006-02-16  Stan Shebs  <shebs@apple.com>

	* gdb.c: Uncomment #if 0 "APPLE MERGE" bits.
	* gdb_special_events.c: Likewise.

2006-01-26  Jim Ingham  <jingham@apple.com>

	* gdb.h: Change gdb_initialize to return int.
	* gdb.c: gdb_initialize returns int, 1 for success, 0 for failure.
	Use this to block loading plugin if target is not ppc.
	
2005-12-21  Jason Molenda  (jmolenda@apple.com)

	* gdb.c (gdb_set_register, gdb_get_register, gdb_get_sp):
	Don't use DEPRECATED_REGISTER_VIRTUAL_SIZE.
	* gdb_set.c (define_set): Hack the add_set_cmd call to be close,
	but not really right, to how this is supposed to work with the
	current sources.
	* gdb_sspecial_events.c (gdb_special_events): Update variable name.

2005-12-16  Jason Molenda  (jmolenda@apple.com)

	* gdb_private_interfaces.h (GDB4): Hardcode to be 0.

2005-09-14  Ira Ruben  <iraruben@acm.org>
	* gdb.c (gdb_enable_filename_completion): Replace explict
	setting of completer with call to set_cmd_completer() and
	comment out the setting of completer_word_break_characters.
	(gdb_get_sp): Fixed return type (GDB_ADDRESS).
	(gdb_read_memory): Handle negative n with a new routine.
	(gdb_write_memory): Ditto.
	(gdb_read_memory_from_addr): New routine.
	(gdb_write_memory_to_addr): Ditto.

	* gdb.h (gdb_get_sp): Fixed return type (GDB_ADDRESS).
	(gdb_read_memory): Changed comments.
	(gdb_write_memory): Ditto.
	(gdb_read_memory_from_addr): New declaration.
	(gdb_write_memory_to_addr): Ditto.

2005-07-25  Ira Ruben  <iraruben@acm.org>

	* Makefile: Changed copyright date.
	(mmalloc.framework): -I removed (not needed).
	(liberty.framework): Ditto.
	Add OPT to control -O level from command line.
	(GDB_BUILD_DIR) New switch for building without frameworks.
	(GDB_SRC_DIR) Ditto.
	
	* gdb.c: Changed copyright date.
	Added includes for objfiles.h and bfd.h.
	(suppress_errors): Fixed comments.
	(gdb_eval_silent): Redirect stdout (bug fix in redirection).
	(gdb_execute_command_silent): Ditto.
	(gdb_target_pid): New routine.
	(gdb_get_function_start): Ditto.
	(gdb_target_arch): Ditto.
	(gdb_set_long): New routine used to get long values instead
	of using gdb_set_int() for all data types.
	(gdb_set_long_long): Ditto (but for long long values).
	(gdb_get_long): New routine used to get long values instead
	of using gdb_get_int() for all data types.
	(gdb_get_long_long): Ditto (but for long long values).
	(gdb_get_address): Ditto (but for GDB_ADDRESS values).
	(gdb_set_register): Fix use of get_selected_frame() and
	assume value ptr is to a long long.
	(gdb_get_register): Changed comments and assumes register
	value can be a long long.
	(gdb_get_sp): Fixed comments.
	(gdb_get_reg_size): New routine.
	(gdb_read_memory): Changed to return a GDB_ADDRESS value.
	(gdb_print_address): The addr is typed as GDB_ADDRESS.
	show_file_line_info argument removed.
	Function changed to display load segment info if no line
	number info is available.
	
	* gdb.h: Changed copyright date.
	(GDB_ADDRESS): New typedef for all address values.
	(Gdb_Raw_Input_Set_Prompt): New handler.
	(gdb_target_pid): Extern for new routine.
	(gdb_get_function_start): Ditto.
	(gdb_target_arch): Ditto.
	(gdb_set_long): Ditto.
	(gdb_set_long_long): Ditto.
	(gdb_set_address): theValue type changed to GDB_ADDRESS.
	(gdb_get_long): Extern for new routine.
	(gdb_get_long_long): Ditto.
	(gdb_get_address): Ditto.
	(gdb_get_register): Fixed comments.
	(gdb_get_sp): Ditto.
	(gdb_get_reg_size): Extern for new routine.
	(gdb_read_memory): Changed to return a GDB_ADDRESS value.
	(gdb_print_address): Changed arguments and comments.
	(gdb_define_raw_input_handler): Fix comments.
	(GdbEvent): Added new Gdb_After_Attach_To_File and
	Gdb_History_Prompt special events.  Comments fixed for
	to agree with changes in gdb_special_events.c.
	
	* gdb_io_redirection.c: Changed copyright date.
	Moved forward static decls for my_query_hook, 
	my_rl_startup_hook, and my_command_line_input_hook.
	(Gdb_Raw_Input_Set_Prompt): New handler.
	(gdb_define_raw_input_handler): Fixed comments.
	(gdb_set_raw_input_prompt_handler): New handler for raw prompts.
	(my_disasm_fprintf): Conditioned out.
	(my_command_line_input_hook): Call users_raw_input_prompt_handler.
	
	* gdb_private_interfaces.h: Changed copyright date.
	(Gdb_Global_Data): Removed insn_stream and insn_printf.
	(rl_redisplay_function): Moved to "readline hooks" decls.
	(rl_display_prompt): Added to handle readline search prompts.
	(rl_prompt): Ditto.
	
	* gdb_set.c: Changed copyright date.
	Moved forward static decls for my_set and my_set_hook.
	
	* gdb_special_events.c: Changed copyright date.
	Add include for inferior.h.
	(users_create_bkpt): Pass a GDB_ADDRESS addr.
	(users_delete_bkpt): Ditto.
	(users_modify_bkpt): Ditto.
	(users_attach_hook): Callback changed to pass pid.
	(users_memory_changed_hook): Pass a GDB_ADDRESS addr.
	(saved_exec_file_display_hook): New hook data.
	(users_exec_file_display_hook): Ditto.
	(exec_file_display_hook_defined): Ditto.
	(saved_rl_redisplay_function): Ditto.
	(users_rl_redisplay_function): Ditto.
	(rl_redisplay_function_defined): Ditto.
	(my_attach_hook): Pass pid to callback.
	(my_memory_changed_hook): The addr is typed as GDB_ADDRESS.
	(my_exec_file_display_hook): New hook interface.
	(my_rl_redisplay_function): Ditto.
	(gdb_special_events): Fixed comments for addrs typed as
	GDB_ADDRESS.
	(case Gdb_After_Creating_Breakpoint): Pass GDB_ADDRESS addr.
	(case Gdb_Before_Deleting_Breakpoint): Ditto.
	(case Gdb_After_Modified_Breakpoint): Ditto.
	(case Gdb_After_Attach): Pass pid.
	(case Gdb_After_Memory_Changed): Pass GDB_ADDRESS addr.
	(case Gdb_After_File_Changed): Fixed use of wrong variable.
	(case Gdb_After_Attach_To_File): New special event.
	(case Gdb_History_Prompt): Ditto.
	
	* gdb_testing.i: Changed copyright date.
	Used gdb_testw() to experiment with getting objfile pathname.

2005-06-15  Klee Dienes  <kdienes@apple.com>
	* gdb.c: Include "exceptions.h" for some catch_error flags.
	Disable the quit-handling code --- we'll probably need to replace
	with some sort of observer.  Replace all get_selected_frame()
	calls with get_selected_frame(NULL).  Convert VALUE_TYPE to value_type.
	(gdb_enable_filename_completion): Just set the completer, don't
	need to set the wrap characters.
	(gdb_eval_silent): Remove cast from wrap_parse_and_eval.
	(gdb_define_set): Remove for_set_and_show argument.
	
	* gdb_io_redirection: Replace X_hook with deprecated_X_hook, where
	appropriate.
	
	* gdb_set.c (define_set): Remove for_set_and_show argument.
	(gdb_define_set): Remove for_set_and_show argument.
	(gdb_define_set_enum): Remove for_set_and_show argument.
	(define_set): Update (partially) to the new set/show conventions.
	
	* gdb_special_events.c: Replace X_hook with deprecated_X_hook,
	where appropriate.  Temporarily Remove state-changed hooks.

2005-01-21  Jim Ingham  <jingham@apple.com>

	* gdb_io_redirection.c: gcc 4.0 doesn't allow static function
	prototypes in a function body, so I moved the prototypes to
	before the function that used to contain it.
	* gdb_set.c: Ditto.

2004-03-24  Klee Dienes  <kdienes@apple.com>

	* gdb_special_events.c: Convert to the new breakpoint structures.

2004-01-14  Klee Dienes  <kdienes@apple.com>

	* gdb.c: Use gdbarch_deprecated_register_raw_size instead of
	gdb_register_raw_size.  Use get_selected_frame() for calls to
	frame_map_name_to_regnum.
	* gdb_private_interfaces.h: Include "dis-asm.h" for the
	instruction printing typedefs.
	* gdb_io_redirection.c: Remove references to
	TARGET_PRINT_INSN_INFO; remove instruction-printing stream code
	(the instruction printing code now explicitly takes a stream).
	This might still need some work, but it appears to behave
	correctly in basic tests.
		
2003-10-20  Ira Ruben  <iraruben@acm.org>

	* Makefile: Add OPT to control -O level from command line.
	* gdb.c: Change comment on #include "inferior.h".
	(gdb_set_register): Fix get_selected_frame call formatting.
	(gdb_get_register): Return an enum value instead of a string.
	Fix bug testing frame_register_read return value.
	(gdb_get_sp): New funtion to get $sp.
	(gdb_read_memory): Extend to accept an address value.
	(gdb_write_memory): Ditto.
	* gdb.h: Change comments for gdb_get_register, gdb_read_memory,
	gdb_write_memory, and new gdb_get_sp declaration.

2003-01-14  Klee Dienes  <kdienes@apple.com>

	* gdb_complete.c (get_y_or_n): Use rl_ding () instead of ding ().
	
2002-12-12  Klee Dienes  <kdienes@apple.com>

	* gdb.c: Replace selected_frame with get_selected_frame ().
	* gdb_complete.c (__cmd_completion_display_hook): Use
	rl_get_screen_size to get the current terminal width.
	
2002-11-17  Klee Dienes  <kdienes@apple.com>

	* gdb.c (gdb_set_register): Replace write_register_bytes with
	deprecate_write_register_bytes.
	
2002-10-01  Klee Dienes  <kdienes@apple.com>

	* gdb.c (gdb_set_register): Replace target_map_name_to_register
	with frame_map_name_to_regnum.
	(gdb_set_register): Ditto.
	* gdb_testing.i (gdb_testz): Ditto.

2002-09-24  Klee Dienes  <kdienes@apple.com>

	* Makefile: Use (cd dir && command), not (cd dir; command).